turbo-ignore 2.8.2-canary.7 → 2.8.2-canary.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -10
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -26,12 +26,12 @@ GFS4: `),console.error(t)});At[Pt]||(zk=global[Pt]||[],$k(At,zk),At.close=(funct
|
|
|
26
26
|
|
|
27
27
|
see https://github.com/jprichardson/node-fs-extra/issues/269`),ru.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:A}=s;ru.checkParentPaths(t,o,e,"copy",a=>a?n(a):r.filter?S_(w_,A,t,e,r,n):w_(A,t,e,r,n))})}function w_(t,e,r,n,i){let s=tu.dirname(r);TZ(s,(o,A)=>{if(o)return i(o);if(A)return oI(t,e,r,n,i);NZ(s,a=>a?i(a):oI(t,e,r,n,i))})}function S_(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function oI(t,e,r,n,i){return n.filter?S_(b_,t,e,r,n,i):b_(t,e,r,n,i)}function b_(t,e,r,n,i){(n.dereference?Ht.stat:Ht.lstat)(e,(o,A)=>{if(o)return i(o);if(A.isDirectory())return HZ(A,t,e,r,n,i);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return UZ(A,t,e,r,n,i);if(A.isSymbolicLink())return YZ(t,e,r,n,i)})}function UZ(t,e,r,n,i,s){return e?OZ(t,r,n,i,s):R_(t,r,n,i,s)}function OZ(t,e,r,n,i){if(n.overwrite)Ht.unlink(r,s=>s?i(s):R_(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function R_(t,e,r,n,i){return typeof Ht.copyFile=="function"?Ht.copyFile(e,r,s=>s?i(s):v_(t,r,n,i)):PZ(t,e,r,n,i)}function PZ(t,e,r,n,i){let s=Ht.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=Ht.createWriteStream(r,{mode:t.mode});o.on("error",A=>i(A)).on("open",()=>s.pipe(o)).once("close",()=>v_(t,r,n,i))})}function v_(t,e,r,n){Ht.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?MZ(e,t.atime,t.mtime,n):n())}function HZ(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):k_(r,n,i,s):GZ(t,r,n,i,s)}function GZ(t,e,r,n,i){Ht.mkdir(r,s=>{if(s)return i(s);k_(e,r,n,o=>o?i(o):Ht.chmod(r,t.mode,i))})}function k_(t,e,r,n){Ht.readdir(t,(i,s)=>i?n(i):__(s,t,e,r,n))}function __(t,e,r,n,i){let s=t.pop();return s?qZ(t,s,e,r,n,i):i()}function qZ(t,e,r,n,i,s){let o=tu.join(r,e),A=tu.join(n,e);ru.checkPaths(o,A,"copy",(a,c)=>{if(a)return s(a);let{destStat:l}=c;oI(l,o,A,i,u=>u?s(u):__(t,r,n,i,s))})}function YZ(t,e,r,n,i){Ht.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=tu.resolve(process.cwd(),o)),t)Ht.readlink(r,(A,a)=>A?A.code==="EINVAL"||A.code==="UNKNOWN"?Ht.symlink(o,r,i):i(A):(n.dereference&&(a=tu.resolve(process.cwd(),a)),ru.isSrcSubdir(o,a)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`)):t.isDirectory()&&ru.isSrcSubdir(a,o)?i(new Error(`Cannot overwrite '${a}' with '${o}'.`)):VZ(o,r,i)));else return Ht.symlink(o,r,i)})}function VZ(t,e,r){Ht.unlink(e,n=>n?r(n):Ht.symlink(t,e,r))}D_.exports=LZ});var AI=g(($Re,F_)=>{"use strict";var JZ=Er().fromCallback;F_.exports={copy:JZ(x_())}});var G_=g((KRe,H_)=>{"use strict";var N_=mt(),U_=require("path"),Me=require("assert"),nu=process.platform==="win32";function O_(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||N_[r],r=r+"Sync",t[r]=t[r]||N_[r]}),t.maxBusyTries=t.maxBusyTries||3}function aI(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),Me(t,"rimraf: missing path"),Me.strictEqual(typeof t,"string","rimraf: path should be a string"),Me.strictEqual(typeof r,"function","rimraf: callback function required"),Me(e,"rimraf: invalid options argument provided"),Me.strictEqual(typeof e,"object","rimraf: options should be object"),O_(e),T_(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>T_(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function T_(t,e,r){Me(t),Me(e),Me(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&nu)return M_(t,e,n,r);if(i&&i.isDirectory())return Gf(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return nu?M_(t,e,s,r):Gf(t,e,s,r);if(s.code==="EISDIR")return Gf(t,e,s,r)}return r(s)})})}function M_(t,e,r,n){Me(t),Me(e),Me(typeof n=="function"),r&&Me(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Gf(t,e,r,n):e.unlink(t,n)})})}function L_(t,e,r){let n;Me(t),Me(e),r&&Me(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?qf(t,e,r):e.unlinkSync(t)}function Gf(t,e,r,n){Me(t),Me(e),r&&Me(r instanceof Error),Me(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?WZ(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function WZ(t,e,r){Me(t),Me(e),Me(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(A=>{aI(U_.join(t,A),e,a=>{if(!o){if(a)return r(o=a);--s===0&&e.rmdir(t,r)}})})})}function P_(t,e){let r;e=e||{},O_(e),Me(t,"rimraf: missing path"),Me.strictEqual(typeof t,"string","rimraf: path should be a string"),Me(e,"rimraf: missing options"),Me.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&nu&&L_(t,e,n)}try{r&&r.isDirectory()?qf(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return nu?L_(t,e,n):qf(t,e,n);if(n.code!=="EISDIR")throw n;qf(t,e,n)}}function qf(t,e,r){Me(t),Me(e),r&&Me(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")jZ(t,e);else if(n.code!=="ENOENT")throw n}}function jZ(t,e){if(Me(t),Me(e),e.readdirSync(t).forEach(r=>P_(U_.join(t,r),e)),nu){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}H_.exports=aI;aI.sync=P_});var iu=g((XRe,Y_)=>{"use strict";var zZ=Er().fromCallback,q_=G_();Y_.exports={remove:zZ(q_),removeSync:q_.sync}});var K_=g((eve,$_)=>{"use strict";var ZZ=Er().fromCallback,W_=mt(),j_=require("path"),z_=Tr(),Z_=iu(),V_=ZZ(function(e,r){r=r||function(){},W_.readdir(e,(n,i)=>{if(n)return z_.mkdirs(e,r);i=i.map(o=>j_.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();Z_.remove(o,A=>{if(A)return r(A);s()})}})});function J_(t){let e;try{e=W_.readdirSync(t)}catch{return z_.mkdirsSync(t)}e.forEach(r=>{r=j_.join(t,r),Z_.removeSync(r)})}$_.exports={emptyDirSync:J_,emptydirSync:J_,emptyDir:V_,emptydir:V_}});var rD=g((tve,tD)=>{"use strict";var $Z=Er().fromCallback,X_=require("path"),su=mt(),eD=Tr(),KZ=$n().pathExists;function XZ(t,e){function r(){su.writeFile(t,"",n=>{if(n)return e(n);e()})}su.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=X_.dirname(t);KZ(s,(o,A)=>{if(o)return e(o);if(A)return r();eD.mkdirs(s,a=>{if(a)return e(a);r()})})})}function e$(t){let e;try{e=su.statSync(t)}catch{}if(e&&e.isFile())return;let r=X_.dirname(t);su.existsSync(r)||eD.mkdirsSync(r),su.writeFileSync(t,"")}tD.exports={createFile:$Z(XZ),createFileSync:e$}});var AD=g((rve,oD)=>{"use strict";var t$=Er().fromCallback,iD=require("path"),Fo=mt(),sD=Tr(),nD=$n().pathExists;function r$(t,e,r){function n(i,s){Fo.link(i,s,o=>{if(o)return r(o);r(null)})}nD(e,(i,s)=>{if(i)return r(i);if(s)return r(null);Fo.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let A=iD.dirname(e);nD(A,(a,c)=>{if(a)return r(a);if(c)return n(t,e);sD.mkdirs(A,l=>{if(l)return r(l);n(t,e)})})})})}function n$(t,e){if(Fo.existsSync(e))return;try{Fo.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=iD.dirname(e);return Fo.existsSync(n)||sD.mkdirsSync(n),Fo.linkSync(t,e)}oD.exports={createLink:t$(r$),createLinkSync:n$}});var cD=g((nve,aD)=>{"use strict";var ys=require("path"),ou=mt(),i$=$n().pathExists;function s$(t,e,r){if(ys.isAbsolute(t))return ou.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=ys.dirname(e),i=ys.join(n,t);return i$(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):ou.lstat(t,A=>A?(A.message=A.message.replace("lstat","ensureSymlink"),r(A)):r(null,{toCwd:t,toDst:ys.relative(n,t)})))}}function o$(t,e){let r;if(ys.isAbsolute(t)){if(r=ou.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=ys.dirname(e),i=ys.join(n,t);if(r=ou.existsSync(i),r)return{toCwd:i,toDst:t};if(r=ou.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:ys.relative(n,t)}}}aD.exports={symlinkPaths:s$,symlinkPathsSync:o$}});var hD=g((ive,uD)=>{"use strict";var lD=mt();function A$(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);lD.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function a$(t,e){let r;if(e)return e;try{r=lD.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}uD.exports={symlinkType:A$,symlinkTypeSync:a$}});var mD=g((sve,CD)=>{"use strict";var c$=Er().fromCallback,dD=require("path"),oa=mt(),gD=Tr(),l$=gD.mkdirs,u$=gD.mkdirsSync,ED=cD(),h$=ED.symlinkPaths,f$=ED.symlinkPathsSync,pD=hD(),d$=pD.symlinkType,g$=pD.symlinkTypeSync,fD=$n().pathExists;function E$(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,fD(e,(i,s)=>{if(i)return n(i);if(s)return n(null);h$(t,e,(o,A)=>{if(o)return n(o);t=A.toDst,d$(A.toCwd,r,(a,c)=>{if(a)return n(a);let l=dD.dirname(e);fD(l,(u,h)=>{if(u)return n(u);if(h)return oa.symlink(t,e,c,n);l$(l,f=>{if(f)return n(f);oa.symlink(t,e,c,n)})})})})})}function p$(t,e,r){if(oa.existsSync(e))return;let i=f$(t,e);t=i.toDst,r=g$(i.toCwd,r);let s=dD.dirname(e);return oa.existsSync(s)||u$(s),oa.symlinkSync(t,e,r)}CD.exports={createSymlink:c$(E$),createSymlinkSync:p$}});var BD=g((ove,ID)=>{"use strict";var Yf=rD(),Vf=AD(),Jf=mD();ID.exports={createFile:Yf.createFile,createFileSync:Yf.createFileSync,ensureFile:Yf.createFile,ensureFileSync:Yf.createFileSync,createLink:Vf.createLink,createLinkSync:Vf.createLinkSync,ensureLink:Vf.createLink,ensureLinkSync:Vf.createLinkSync,createSymlink:Jf.createSymlink,createSymlinkSync:Jf.createSymlinkSync,ensureSymlink:Jf.createSymlink,ensureSymlinkSync:Jf.createSymlinkSync}});var bD=g((Ave,wD)=>{"use strict";var Aa;try{Aa=mt()}catch{Aa=require("fs")}function C$(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||Aa,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=yD(o);var A;try{A=JSON.parse(o,e?e.reviver:null)}catch(a){return i?(a.message=t+": "+a.message,r(a)):r(null,null)}r(null,A)})}function m$(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||Aa,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=yD(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function QD(t,e){var r,n=`
|
|
28
28
|
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function I$(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Aa,s="";try{s=QD(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function B$(t,e,r){r=r||{};var n=r.fs||Aa,i=QD(e,r);return n.writeFileSync(t,i,r)}function yD(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var Q$={readFile:C$,readFileSync:m$,writeFile:I$,writeFileSync:B$};wD.exports=Q$});var jf=g((ave,RD)=>{"use strict";var SD=Er().fromCallback,Wf=bD();RD.exports={readJson:SD(Wf.readFile),readJsonSync:Wf.readFileSync,writeJson:SD(Wf.writeFile),writeJsonSync:Wf.writeFileSync}});var _D=g((cve,kD)=>{"use strict";var y$=require("path"),w$=Tr(),b$=$n().pathExists,vD=jf();function S$(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=y$.dirname(t);b$(i,(s,o)=>{if(s)return n(s);if(o)return vD.writeJson(t,e,r,n);w$.mkdirs(i,A=>{if(A)return n(A);vD.writeJson(t,e,r,n)})})}kD.exports=S$});var xD=g((lve,DD)=>{"use strict";var R$=mt(),v$=require("path"),k$=Tr(),_$=jf();function D$(t,e,r){let n=v$.dirname(t);R$.existsSync(n)||k$.mkdirsSync(n),_$.writeJsonSync(t,e,r)}DD.exports=D$});var ND=g((uve,FD)=>{"use strict";var x$=Er().fromCallback,lr=jf();lr.outputJson=x$(_D());lr.outputJsonSync=xD();lr.outputJSON=lr.outputJson;lr.outputJSONSync=lr.outputJsonSync;lr.writeJSON=lr.writeJson;lr.writeJSONSync=lr.writeJsonSync;lr.readJSON=lr.readJson;lr.readJSONSync=lr.readJsonSync;FD.exports=lr});var PD=g((hve,OD)=>{"use strict";var LD=mt(),F$=require("path"),N$=sI().copySync,UD=iu().removeSync,T$=Tr().mkdirpSync,TD=Kl();function M$(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=TD.checkPathsSync(t,e,"move");return TD.checkParentPathsSync(t,i,e,"move"),T$(F$.dirname(e)),L$(t,e,n)}function L$(t,e,r){if(r)return UD(e),MD(t,e,r);if(LD.existsSync(e))throw new Error("dest already exists.");return MD(t,e,r)}function MD(t,e,r){try{LD.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return U$(t,e,r)}}function U$(t,e,r){return N$(t,e,{overwrite:r,errorOnExist:!0}),UD(t)}OD.exports=M$});var GD=g((fve,HD)=>{"use strict";HD.exports={moveSync:PD()}});var WD=g((dve,JD)=>{"use strict";var O$=mt(),P$=require("path"),H$=AI().copy,VD=iu().remove,G$=Tr().mkdirp,q$=$n().pathExists,qD=Kl();function Y$(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;qD.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:A}=o;qD.checkParentPaths(t,A,e,"move",a=>{if(a)return n(a);G$(P$.dirname(e),c=>c?n(c):V$(t,e,i,n))})})}function V$(t,e,r,n){if(r)return VD(e,i=>i?n(i):YD(t,e,r,n));q$(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):YD(t,e,r,n))}function YD(t,e,r,n){O$.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):J$(t,e,r,n):n())}function J$(t,e,r,n){H$(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):VD(t,n))}JD.exports=Y$});var zD=g((gve,jD)=>{"use strict";var W$=Er().fromCallback;jD.exports={move:W$(WD())}});var XD=g((Eve,KD)=>{"use strict";var j$=Er().fromCallback,Au=mt(),ZD=require("path"),$D=Tr(),z$=$n().pathExists;function Z$(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=ZD.dirname(t);z$(i,(s,o)=>{if(s)return n(s);if(o)return Au.writeFile(t,e,r,n);$D.mkdirs(i,A=>{if(A)return n(A);Au.writeFile(t,e,r,n)})})}function $$(t,...e){let r=ZD.dirname(t);if(Au.existsSync(r))return Au.writeFileSync(t,...e);$D.mkdirsSync(r),Au.writeFileSync(t,...e)}KD.exports={outputFile:j$(Z$),outputFileSync:$$}});var tx=g((pve,cI)=>{"use strict";cI.exports=Object.assign({},Jm(),sI(),AI(),K_(),BD(),ND(),Tr(),GD(),zD(),XD(),$n(),iu());var ex=require("fs");Object.getOwnPropertyDescriptor(ex,"promises")&&Object.defineProperty(cI.exports,"promises",{get(){return ex.promises}})});var Yx=g(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.splitWhen=ha.flatten=void 0;function SX(t){return t.reduce((e,r)=>[].concat(e,r),[])}ha.flatten=SX;function RX(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}ha.splitWhen=RX});var Vx=g(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.isEnoentCodeError=void 0;function vX(t){return t.code==="ENOENT"}id.isEnoentCodeError=vX});var Jx=g(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.createDirentFromStats=void 0;var RI=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 kX(t,e){return new RI(t,e)}sd.createDirentFromStats=kX});var Wx=g(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.removeLeadingDotSegment=Xn.escape=Xn.makeAbsolute=Xn.unixify=void 0;var _X=require("path"),DX=2,xX=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function FX(t){return t.replace(/\\/g,"/")}Xn.unixify=FX;function NX(t,e){return _X.resolve(t,e)}Xn.makeAbsolute=NX;function TX(t){return t.replace(xX,"\\$2")}Xn.escape=TX;function MX(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(DX)}return t}Xn.removeLeadingDotSegment=MX});var zx=g((Hve,jx)=>{"use strict";jx.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 Kx=g((Gve,$x)=>{"use strict";var LX=zx(),Zx={"{":"}","(":")","[":"]"},UX=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var A=t[e+1];e+=2;var a=Zx[A];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},OX=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 n=Zx[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};$x.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(LX(e))return!0;var n=UX;return r&&r.strict===!1&&(n=OX),n(e)}});var eF=g((qve,Xx)=>{"use strict";var PX=Kx(),HX=require("path").posix.dirname,GX=require("os").platform()==="win32",vI="/",qX=/\\/g,YX=/[\{\[].*[\}\]]$/,VX=/(^|[^\\])([\{\[]|\([^\)]+$)/,JX=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Xx.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&GX&&e.indexOf(vI)<0&&(e=e.replace(qX,vI)),YX.test(e)&&(e+=vI),e+="a";do e=HX(e);while(PX(e)||VX.test(e));return e.replace(JX,"$1")}});var od=g(rn=>{"use strict";rn.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;rn.find=(t,e)=>t.nodes.find(r=>r.type===e);rn.exceedsLimit=(t,e,r=1,n)=>n===!1||!rn.isInteger(t)||!rn.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;rn.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};rn.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;rn.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;rn.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;rn.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);rn.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var Ad=g((Vve,rF)=>{"use strict";var tF=od();rF.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&tF.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,A="";if(n.value)return(s||o)&&tF.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let a of n.nodes)A+=r(a);return A};return r(t)}});var iF=g((Jve,nF)=>{"use strict";nF.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var fF=g((Wve,hF)=>{"use strict";var sF=iF(),Mo=(t,e,r)=>{if(sF(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(sF(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),A=String(n.wrap),a=t+":"+e+"="+i+s+o+A;if(Mo.cache.hasOwnProperty(a))return Mo.cache[a].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let u=uF(t)||uF(e),h={min:t,max:e,a:c,b:l},f=[],d=[];if(u&&(h.isPadded=u,h.maxLen=String(h.max).length),c<0){let E=l<0?Math.abs(l):1;d=oF(E,Math.abs(c),h,n),c=h.a=0}return l>=0&&(f=oF(c,l,h,n)),h.negatives=d,h.positives=f,h.result=WX(d,f,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&f.length+d.length>1&&(h.result=`(?:${h.result})`),Mo.cache[a]=h,h.result};function WX(t,e,r){let n=kI(t,e,"-",!1,r)||[],i=kI(e,t,"",!1,r)||[],s=kI(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function jX(t,e){let r=1,n=1,i=aF(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=aF(t,r);for(i=cF(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=cF(e+1,n)-1;return s=[...s],s.sort($X),s}function zX(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=ZX(t,e),i=n.length,s="",o=0;for(let A=0;A<i;A++){let[a,c]=n[A];a===c?s+=a:a!=="0"||c!=="9"?s+=KX(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function oF(t,e,r,n){let i=jX(t,e),s=[],o=t,A;for(let a=0;a<i.length;a++){let c=i[a],l=zX(String(o),String(c),n),u="";if(!r.isPadded&&A&&A.pattern===l.pattern){A.count.length>1&&A.count.pop(),A.count.push(l.count[0]),A.string=A.pattern+lF(A.count),o=c+1;continue}r.isPadded&&(u=XX(c,r,n)),l.string=u+l.pattern+lF(l.count),s.push(l),o=c+1,A=l}return s}function kI(t,e,r,n,i){let s=[];for(let o of t){let{string:A}=o;!n&&!AF(e,"string",A)&&s.push(r+A),n&&AF(e,"string",A)&&s.push(r+A)}return s}function ZX(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function $X(t,e){return t>e?1:e>t?-1:0}function AF(t,e,r){return t.some(n=>n[e]===r)}function aF(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function cF(t,e){return t-t%Math.pow(10,e)}function lF(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function KX(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function uF(t){return/^-?(0+)\d/.test(t)}function XX(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Mo.cache={};Mo.clearCache=()=>Mo.cache={};hF.exports=Mo});var xI=g((jve,IF)=>{"use strict";var e7=require("util"),gF=fF(),dF=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),t7=t=>e=>t===!0?Number(e):String(e),_I=t=>typeof t=="number"||typeof t=="string"&&t!=="",du=t=>Number.isInteger(+t),DI=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},r7=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,n7=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},cd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},i7=(t,e,r)=>{t.negatives.sort((A,a)=>A<a?-1:A>a?1:0),t.positives.sort((A,a)=>A<a?-1:A>a?1:0);let n=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(A=>cd(String(A),r)).join("|")),t.negatives.length&&(s=`-(${n}${t.negatives.map(A=>cd(String(A),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${n}${o})`:o},EF=(t,e,r,n)=>{if(r)return gF(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},pF=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return gF(t,e,r)},CF=(...t)=>new RangeError("Invalid range arguments: "+e7.inspect(...t)),mF=(t,e,r)=>{if(r.strictRanges===!0)throw CF([t,e]);return[]},s7=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},o7=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw CF([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,A=String(t),a=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=DI(A)||DI(a)||DI(c),u=l?Math.max(A.length,a.length,c.length):0,h=l===!1&&r7(t,e,n)===!1,f=n.transform||t7(h);if(n.toRegex&&r===1)return EF(cd(t,u),cd(e,u),!0,n);let d={negatives:[],positives:[]},E=w=>d[w<0?"negatives":"positives"].push(Math.abs(w)),p=[],C=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):p.push(n7(f(i,C),u,h)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?i7(d,n,u):pF(p,null,{wrap:!1,...n}):p},A7=(t,e,r=1,n={})=>{if(!du(t)&&t.length>1||!du(e)&&e.length>1)return mF(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),A=s>o,a=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return EF(a,c,!1,n);let l=[],u=0;for(;A?s>=o:s<=o;)l.push(i(s,u)),s=A?s-r:s+r,u++;return n.toRegex===!0?pF(l,null,{wrap:!1,options:n}):l},ad=(t,e,r,n={})=>{if(e==null&&_I(t))return[t];if(!_I(t)||!_I(e))return mF(t,e,n);if(typeof r=="function")return ad(t,e,1,{transform:r});if(dF(r))return ad(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,du(r)?du(t)&&du(e)?o7(t,e,r,i):A7(t,e,Math.max(Math.abs(r),1),i):r!=null&&!dF(r)?s7(r,i):ad(t,e,1,r)};IF.exports=ad});var yF=g((zve,QF)=>{"use strict";var a7=xI(),BF=od(),c7=(t,e={})=>{let r=(n,i={})=>{let s=BF.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,A=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return a+n.value;if(n.isClose===!0)return console.log("node.isClose",a,n.value),a+n.value;if(n.type==="open")return A?a+n.value:"(";if(n.type==="close")return A?a+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":A?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=BF.reduce(n.nodes),u=a7(...l,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(u.length!==0)return l.length>1&&u.length>1?`(${u})`:u}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};QF.exports=c7});var SF=g((Zve,bF)=>{"use strict";var l7=xI(),wF=Ad(),fa=od(),Lo=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?fa.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(Lo(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Lo(i,s,r):i+s);return fa.flatten(n)},u7=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,A=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,A=o.queue;if(i.invalid||i.dollar){A.push(Lo(A.pop(),wF(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){A.push(Lo(A.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let u=fa.reduce(i.nodes);if(fa.exceedsLimit(...u,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=l7(...u,e);h.length===0&&(h=wF(i,e)),A.push(Lo(A.pop(),h)),i.nodes=[];return}let a=fa.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let u=0;u<i.nodes.length;u++){let h=i.nodes[u];if(h.type==="comma"&&i.type==="brace"){u===1&&c.push(""),c.push("");continue}if(h.type==="close"){A.push(Lo(A.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(Lo(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return fa.flatten(n(t))};bF.exports=u7});var vF=g(($ve,RF)=>{"use strict";RF.exports={MAX_LENGTH:1e4,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:`
|
|
29
|
-
`,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 FF=g((Kve,xF)=>{"use strict";var h7=Ad(),{MAX_LENGTH:kF,CHAR_BACKSLASH:FI,CHAR_BACKTICK:f7,CHAR_COMMA:d7,CHAR_DOT:g7,CHAR_LEFT_PARENTHESES:E7,CHAR_RIGHT_PARENTHESES:p7,CHAR_LEFT_CURLY_BRACE:C7,CHAR_RIGHT_CURLY_BRACE:m7,CHAR_LEFT_SQUARE_BRACKET:_F,CHAR_RIGHT_SQUARE_BRACKET:DF,CHAR_DOUBLE_QUOTE:I7,CHAR_SINGLE_QUOTE:B7,CHAR_NO_BREAK_SPACE:Q7,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y7}=vF(),w7=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(kF,r.maxLength):kF;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,A=i,a=0,c=t.length,l=0,u=0,h,f=()=>t[l++],d=E=>{if(E.type==="text"&&A.type==="dot"&&(A.type="text"),A&&A.type==="text"&&E.type==="text"){A.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=A,A=E,E};for(d({type:"bos"});l<c;)if(o=s[s.length-1],h=f(),!(h===y7||h===Q7)){if(h===FI){d({type:"text",value:(e.keepEscaping?h:"")+f()});continue}if(h===DF){d({type:"text",value:"\\"+h});continue}if(h===_F){a++;let E;for(;l<c&&(E=f());){if(h+=E,E===_F){a++;continue}if(E===FI){h+=f();continue}if(E===DF&&(a--,a===0))break}d({type:"text",value:h});continue}if(h===E7){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===p7){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===I7||h===B7||h===f7){let E=h,p;for(e.keepQuotes!==!0&&(h="");l<c&&(p=f());){if(p===FI){h+=p+f();continue}if(p===E){e.keepQuotes===!0&&(h+=p);break}h+=p}d({type:"text",value:h});continue}if(h===C7){u++;let p={type:"brace",open:!0,close:!1,dollar:A.value&&A.value.slice(-1)==="$"||o.dollar===!0,depth:u,commas:0,ranges:0,nodes:[]};o=d(p),s.push(o),d({type:"open",value:h});continue}if(h===m7){if(o.type!=="brace"){d({type:"text",value:h});continue}let E="close";o=s.pop(),o.close=!0,d({type:E,value:h}),u--,o=s[s.length-1];continue}if(h===d7&&u>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:h7(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===g7&&u>0&&o.commas===0){let E=o.nodes;if(u===0||E.length===0){d({type:"text",value:h});continue}if(A.type==="dot"){if(o.range=[],A.value+=h,A.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,A.type="text";continue}o.ranges++,o.args=[];continue}if(A.type==="range"){E.pop();let p=E[E.length-1];p.value+=A.value+h,A=p,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let E=s[s.length-1],p=E.nodes.indexOf(o);E.nodes.splice(p,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),i};xF.exports=w7});var MF=g((Xve,TF)=>{"use strict";var NF=Ad(),b7=yF(),S7=SF(),R7=FF(),Mr=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Mr.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Mr.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Mr.parse=(t,e={})=>R7(t,e);Mr.stringify=(t,e={})=>NF(typeof t=="string"?Mr.parse(t,e):t,e);Mr.compile=(t,e={})=>(typeof t=="string"&&(t=Mr.parse(t,e)),b7(t,e));Mr.expand=(t,e={})=>{typeof t=="string"&&(t=Mr.parse(t,e));let r=S7(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Mr.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Mr.compile(t,e):Mr.expand(t,e);TF.exports=Mr});var gu=g((eke,HF)=>{"use strict";var v7=require("path"),ei="\\\\/",LF=`[^${ei}]`,Ti="\\.",k7="\\+",_7="\\?",ld="\\/",D7="(?=.)",UF="[^/]",NI=`(?:${ld}|$)`,OF=`(?:^|${ld})`,TI=`${Ti}{1,2}${NI}`,x7=`(?!${Ti})`,F7=`(?!${OF}${TI})`,N7=`(?!${Ti}{0,1}${NI})`,T7=`(?!${TI})`,M7=`[^.${ld}]`,L7=`${UF}*?`,PF={DOT_LITERAL:Ti,PLUS_LITERAL:k7,QMARK_LITERAL:_7,SLASH_LITERAL:ld,ONE_CHAR:D7,QMARK:UF,END_ANCHOR:NI,DOTS_SLASH:TI,NO_DOT:x7,NO_DOTS:F7,NO_DOT_SLASH:N7,NO_DOTS_SLASH:T7,QMARK_NO_DOT:M7,STAR:L7,START_ANCHOR:OF},U7={...PF,SLASH_LITERAL:`[${ei}]`,QMARK:LF,STAR:`${LF}*?`,DOTS_SLASH:`${Ti}{1,2}(?:[${ei}]|$)`,NO_DOT:`(?!${Ti})`,NO_DOTS:`(?!(?:^|[${ei}])${Ti}{1,2}(?:[${ei}]|$))`,NO_DOT_SLASH:`(?!${Ti}{0,1}(?:[${ei}]|$))`,NO_DOTS_SLASH:`(?!${Ti}{1,2}(?:[${ei}]|$))`,QMARK_NO_DOT:`[^.${ei}]`,START_ANCHOR:`(?:^|[${ei}])`,END_ANCHOR:`(?:[${ei}]|$)`},O7={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"};HF.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O7,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:v7.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?U7:PF}}});var Eu=g(Ir=>{"use strict";var P7=require("path"),H7=process.platform==="win32",{REGEX_BACKSLASH:G7,REGEX_REMOVE_BACKSLASH:q7,REGEX_SPECIAL_CHARS:Y7,REGEX_SPECIAL_CHARS_GLOBAL:V7}=gu();Ir.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ir.hasRegexChars=t=>Y7.test(t);Ir.isRegexChar=t=>t.length===1&&Ir.hasRegexChars(t);Ir.escapeRegex=t=>t.replace(V7,"\\$1");Ir.toPosixSlashes=t=>t.replace(G7,"/");Ir.removeBackslashes=t=>t.replace(q7,e=>e==="\\"?"":e);Ir.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ir.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:H7===!0||P7.sep==="\\";Ir.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ir.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ir.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ir.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var zF=g((rke,jF)=>{"use strict";var GF=Eu(),{CHAR_ASTERISK:MI,CHAR_AT:J7,CHAR_BACKWARD_SLASH:pu,CHAR_COMMA:W7,CHAR_DOT:LI,CHAR_EXCLAMATION_MARK:UI,CHAR_FORWARD_SLASH:WF,CHAR_LEFT_CURLY_BRACE:OI,CHAR_LEFT_PARENTHESES:PI,CHAR_LEFT_SQUARE_BRACKET:j7,CHAR_PLUS:z7,CHAR_QUESTION_MARK:qF,CHAR_RIGHT_CURLY_BRACE:Z7,CHAR_RIGHT_PARENTHESES:YF,CHAR_RIGHT_SQUARE_BRACKET:$7}=gu(),VF=t=>t===WF||t===pu,JF=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},K7=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],A=[],a=t,c=-1,l=0,u=0,h=!1,f=!1,d=!1,E=!1,p=!1,C=!1,w=!1,R=!1,S=!1,_=!1,O=0,N,V,M={value:"",depth:0,isGlob:!1},j=()=>c>=n,k=()=>a.charCodeAt(c+1),ee=()=>(N=V,a.charCodeAt(++c));for(;c<n;){V=ee();let x;if(V===pu){w=M.backslashes=!0,V=ee(),V===OI&&(C=!0);continue}if(C===!0||V===OI){for(O++;j()!==!0&&(V=ee());){if(V===pu){w=M.backslashes=!0,ee();continue}if(V===OI){O++;continue}if(C!==!0&&V===LI&&(V=ee())===LI){if(h=M.isBrace=!0,d=M.isGlob=!0,_=!0,i===!0)continue;break}if(C!==!0&&V===W7){if(h=M.isBrace=!0,d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===Z7&&(O--,O===0)){C=!1,h=M.isBrace=!0,_=!0;break}}if(i===!0)continue;break}if(V===WF){if(s.push(c),o.push(M),M={value:"",depth:0,isGlob:!1},_===!0)continue;if(N===LI&&c===l+1){l+=2;continue}u=c+1;continue}if(r.noext!==!0&&(V===z7||V===J7||V===MI||V===qF||V===UI)===!0&&k()===PI){if(d=M.isGlob=!0,E=M.isExtglob=!0,_=!0,V===UI&&c===l&&(S=!0),i===!0){for(;j()!==!0&&(V=ee());){if(V===pu){w=M.backslashes=!0,V=ee();continue}if(V===YF){d=M.isGlob=!0,_=!0;break}}continue}break}if(V===MI){if(N===MI&&(p=M.isGlobstar=!0),d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===qF){if(d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===j7){for(;j()!==!0&&(x=ee());){if(x===pu){w=M.backslashes=!0,ee();continue}if(x===$7){f=M.isBracket=!0,d=M.isGlob=!0,_=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&V===UI&&c===l){R=M.negated=!0,l++;continue}if(r.noparen!==!0&&V===PI){if(d=M.isGlob=!0,i===!0){for(;j()!==!0&&(V=ee());){if(V===PI){w=M.backslashes=!0,V=ee();continue}if(V===YF){_=!0;break}}continue}break}if(d===!0){if(_=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,d=!1);let te=a,ye="",v="";l>0&&(ye=a.slice(0,l),a=a.slice(l),u-=l),te&&d===!0&&u>0?(te=a.slice(0,u),v=a.slice(u)):d===!0?(te="",v=a):te=a,te&&te!==""&&te!=="/"&&te!==a&&VF(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(v&&(v=GF.removeBackslashes(v)),te&&w===!0&&(te=GF.removeBackslashes(te)));let y={prefix:ye,input:t,start:l,base:te,glob:v,isBrace:h,isBracket:f,isGlob:d,isExtglob:E,isGlobstar:p,negated:R,negatedExtglob:S};if(r.tokens===!0&&(y.maxDepth=0,VF(V)||o.push(M),y.tokens=o),r.parts===!0||r.tokens===!0){let x;for(let F=0;F<s.length;F++){let T=x?x+1:l,ie=s[F],z=t.slice(T,ie);r.tokens&&(F===0&&l!==0?(o[F].isPrefix=!0,o[F].value=ye):o[F].value=z,JF(o[F]),y.maxDepth+=o[F].depth),(F!==0||z!=="")&&A.push(z),x=ie}if(x&&x+1<t.length){let F=t.slice(x+1);A.push(F),r.tokens&&(o[o.length-1].value=F,JF(o[o.length-1]),y.maxDepth+=o[o.length-1].depth)}y.slashes=s,y.parts=A}return y};jF.exports=K7});var KF=g((nke,$F)=>{"use strict";var ud=gu(),Lr=Eu(),{MAX_LENGTH:hd,POSIX_REGEX_SOURCE:X7,REGEX_NON_SPECIAL_CHARS:eee,REGEX_SPECIAL_CHARS_BACKREF:tee,REPLACEMENTS:ZF}=ud,ree=(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(i=>Lr.escapeRegex(i)).join("..")}return r},da=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,HI=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ZF[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(hd,r.maxLength):hd,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],A=r.capture?"":"?:",a=Lr.isWindows(e),c=ud.globChars(a),l=ud.extglobChars(c),{DOT_LITERAL:u,PLUS_LITERAL:h,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:E,NO_DOT:p,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:R,QMARK_NO_DOT:S,STAR:_,START_ANCHOR:O}=c,N=W=>`(${A}(?:(?!${O}${W.dot?E:u}).)*?)`,V=r.dot?"":p,M=r.dot?R:S,j=r.bash===!0?N(r):_;r.capture&&(j=`(${j})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let k={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:o};t=Lr.removePrefix(t,k),i=t.length;let ee=[],te=[],ye=[],v=s,y,x=()=>k.index===i-1,F=k.peek=(W=1)=>t[k.index+W],T=k.advance=()=>t[++k.index]||"",ie=()=>t.slice(k.index+1),z=(W="",Je=0)=>{k.consumed+=W,k.index+=Je},Ge=W=>{k.output+=W.output!=null?W.output:W.value,z(W.value)},bt=()=>{let W=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)T(),k.start++,W++;return W%2===0?!1:(k.negated=!0,k.start++,!0)},Ne=W=>{k[W]++,ye.push(W)},ht=W=>{k[W]--,ye.pop()},ge=W=>{if(v.type==="globstar"){let Je=k.braces>0&&(W.type==="comma"||W.type==="brace"),J=W.extglob===!0||ee.length&&(W.type==="pipe"||W.type==="paren");W.type!=="slash"&&W.type!=="paren"&&!Je&&!J&&(k.output=k.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=j,k.output+=v.output)}if(ee.length&&W.type!=="paren"&&(ee[ee.length-1].inner+=W.value),(W.value||W.output)&&Ge(W),v&&v.type==="text"&&W.type==="text"){v.value+=W.value,v.output=(v.output||"")+W.value;return}W.prev=v,o.push(W),v=W},cr=(W,Je)=>{let J={...l[Je],conditions:1,inner:""};J.prev=v,J.parens=k.parens,J.output=k.output;let I=(r.capture?"(":"")+J.open;Ne("parens"),ge({type:W,value:Je,output:k.output?"":d}),ge({type:"paren",extglob:!0,value:T(),output:I}),ee.push(J)},Nr=W=>{let Je=W.close+(r.capture?")":""),J;if(W.type==="negate"){let I=j;if(W.inner&&W.inner.length>1&&W.inner.includes("/")&&(I=N(r)),(I!==j||x()||/^\)+$/.test(ie()))&&(Je=W.close=`)$))${I}`),W.inner.includes("*")&&(J=ie())&&/^\.[^\\/.]+$/.test(J)){let b=HI(J,{...e,fastpaths:!1}).output;Je=W.close=`)${b})${I})`}W.prev.type==="bos"&&(k.negatedExtglob=!0)}ge({type:"paren",extglob:!0,value:y,output:Je}),ht("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let W=!1,Je=t.replace(tee,(J,I,b,B,L,$)=>B==="\\"?(W=!0,J):B==="?"?I?I+B+(L?R.repeat(L.length):""):$===0?M+(L?R.repeat(L.length):""):R.repeat(b.length):B==="."?u.repeat(b.length):B==="*"?I?I+B+(L?j:""):j:I?J:`\\${J}`);return W===!0&&(r.unescape===!0?Je=Je.replace(/\\/g,""):Je=Je.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),Je===t&&r.contains===!0?(k.output=t,k):(k.output=Lr.wrapOutput(Je,k,e),k)}for(;!x();){if(y=T(),y==="\0")continue;if(y==="\\"){let J=F();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){y+="\\",ge({type:"text",value:y});continue}let I=/^\\+/.exec(ie()),b=0;if(I&&I[0].length>2&&(b=I[0].length,k.index+=b,b%2!==0&&(y+="\\")),r.unescape===!0?y=T():y+=T(),k.brackets===0){ge({type:"text",value:y});continue}}if(k.brackets>0&&(y!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&y===":"){let J=v.value.slice(1);if(J.includes("[")&&(v.posix=!0,J.includes(":"))){let I=v.value.lastIndexOf("["),b=v.value.slice(0,I),B=v.value.slice(I+2),L=X7[B];if(L){v.value=b+L,k.backtrack=!0,T(),!s.output&&o.indexOf(v)===1&&(s.output=d);continue}}}(y==="["&&F()!==":"||y==="-"&&F()==="]")&&(y=`\\${y}`),y==="]"&&(v.value==="["||v.value==="[^")&&(y=`\\${y}`),r.posix===!0&&y==="!"&&v.value==="["&&(y="^"),v.value+=y,Ge({value:y});continue}if(k.quotes===1&&y!=='"'){y=Lr.escapeRegex(y),v.value+=y,Ge({value:y});continue}if(y==='"'){k.quotes=k.quotes===1?0:1,r.keepQuotes===!0&&ge({type:"text",value:y});continue}if(y==="("){Ne("parens"),ge({type:"paren",value:y});continue}if(y===")"){if(k.parens===0&&r.strictBrackets===!0)throw new SyntaxError(da("opening","("));let J=ee[ee.length-1];if(J&&k.parens===J.parens+1){Nr(ee.pop());continue}ge({type:"paren",value:y,output:k.parens?")":"\\)"}),ht("parens");continue}if(y==="["){if(r.nobracket===!0||!ie().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(da("closing","]"));y=`\\${y}`}else Ne("brackets");ge({type:"bracket",value:y});continue}if(y==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){ge({type:"text",value:y,output:`\\${y}`});continue}if(k.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(da("opening","["));ge({type:"text",value:y,output:`\\${y}`});continue}ht("brackets");let J=v.value.slice(1);if(v.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(y=`/${y}`),v.value+=y,Ge({value:y}),r.literalBrackets===!1||Lr.hasRegexChars(J))continue;let I=Lr.escapeRegex(v.value);if(k.output=k.output.slice(0,-v.value.length),r.literalBrackets===!0){k.output+=I,v.value=I;continue}v.value=`(${A}${I}|${v.value})`,k.output+=v.value;continue}if(y==="{"&&r.nobrace!==!0){Ne("braces");let J={type:"brace",value:y,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};te.push(J),ge(J);continue}if(y==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){ge({type:"text",value:y,output:y});continue}let I=")";if(J.dots===!0){let b=o.slice(),B=[];for(let L=b.length-1;L>=0&&(o.pop(),b[L].type!=="brace");L--)b[L].type!=="dots"&&B.unshift(b[L].value);I=ree(B,r),k.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let b=k.output.slice(0,J.outputIndex),B=k.tokens.slice(J.tokensIndex);J.value=J.output="\\{",y=I="\\}",k.output=b;for(let L of B)k.output+=L.output||L.value}ge({type:"brace",value:y,output:I}),ht("braces"),te.pop();continue}if(y==="|"){ee.length>0&&ee[ee.length-1].conditions++,ge({type:"text",value:y});continue}if(y===","){let J=y,I=te[te.length-1];I&&ye[ye.length-1]==="braces"&&(I.comma=!0,J="|"),ge({type:"comma",value:y,output:J});continue}if(y==="/"){if(v.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),v=s;continue}ge({type:"slash",value:y,output:f});continue}if(y==="."){if(k.braces>0&&v.type==="dot"){v.value==="."&&(v.output=u);let J=te[te.length-1];v.type="dots",v.output+=y,v.value+=y,J.dots=!0;continue}if(k.braces+k.parens===0&&v.type!=="bos"&&v.type!=="slash"){ge({type:"text",value:y,output:u});continue}ge({type:"dot",value:y,output:u});continue}if(y==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("qmark",y);continue}if(v&&v.type==="paren"){let I=F(),b=y;if(I==="<"&&!Lr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(ie()))&&(b=`\\${y}`),ge({type:"text",value:y,output:b});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){ge({type:"qmark",value:y,output:S});continue}ge({type:"qmark",value:y,output:R});continue}if(y==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){cr("negate",y);continue}if(r.nonegate!==!0&&k.index===0){bt();continue}}if(y==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("plus",y);continue}if(v&&v.value==="("||r.regex===!1){ge({type:"plus",value:y,output:h});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||k.parens>0){ge({type:"plus",value:y});continue}ge({type:"plus",value:h});continue}if(y==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ge({type:"at",extglob:!0,value:y,output:""});continue}ge({type:"text",value:y});continue}if(y!=="*"){(y==="$"||y==="^")&&(y=`\\${y}`);let J=eee.exec(ie());J&&(y+=J[0],k.index+=J[0].length),ge({type:"text",value:y});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=y,v.output=j,k.backtrack=!0,k.globstar=!0,z(y);continue}let W=ie();if(r.noextglob!==!0&&/^\([^?]/.test(W)){cr("star",y);continue}if(v.type==="star"){if(r.noglobstar===!0){z(y);continue}let J=v.prev,I=J.prev,b=J.type==="slash"||J.type==="bos",B=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!b||W[0]&&W[0]!=="/")){ge({type:"star",value:y,output:""});continue}let L=k.braces>0&&(J.type==="comma"||J.type==="brace"),$=ee.length&&(J.type==="pipe"||J.type==="paren");if(!b&&J.type!=="paren"&&!L&&!$){ge({type:"star",value:y,output:""});continue}for(;W.slice(0,3)==="/**";){let Z=t[k.index+4];if(Z&&Z!=="/")break;W=W.slice(3),z("/**",3)}if(J.type==="bos"&&x()){v.type="globstar",v.value+=y,v.output=N(r),k.output=v.output,k.globstar=!0,z(y);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!B&&x()){k.output=k.output.slice(0,-(J.output+v.output).length),J.output=`(?:${J.output}`,v.type="globstar",v.output=N(r)+(r.strictSlashes?")":"|$)"),v.value+=y,k.globstar=!0,k.output+=J.output+v.output,z(y);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&W[0]==="/"){let Z=W[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(J.output+v.output).length),J.output=`(?:${J.output}`,v.type="globstar",v.output=`${N(r)}${f}|${f}${Z})`,v.value+=y,k.output+=J.output+v.output,k.globstar=!0,z(y+T()),ge({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&W[0]==="/"){v.type="globstar",v.value+=y,v.output=`(?:^|${f}|${N(r)}${f})`,k.output=v.output,k.globstar=!0,z(y+T()),ge({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-v.output.length),v.type="globstar",v.output=N(r),v.value+=y,k.output+=v.output,k.globstar=!0,z(y);continue}let Je={type:"star",value:y,output:j};if(r.bash===!0){Je.output=".*?",(v.type==="bos"||v.type==="slash")&&(Je.output=V+Je.output),ge(Je);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){Je.output=y,ge(Je);continue}(k.index===k.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(k.output+=C,v.output+=C):r.dot===!0?(k.output+=w,v.output+=w):(k.output+=V,v.output+=V),F()!=="*"&&(k.output+=d,v.output+=d)),ge(Je)}for(;k.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing","]"));k.output=Lr.escapeLast(k.output,"["),ht("brackets")}for(;k.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing",")"));k.output=Lr.escapeLast(k.output,"("),ht("parens")}for(;k.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing","}"));k.output=Lr.escapeLast(k.output,"{"),ht("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&ge({type:"maybe_slash",value:"",output:`${f}?`}),k.backtrack===!0){k.output="";for(let W of k.tokens)k.output+=W.output!=null?W.output:W.value,W.suffix&&(k.output+=W.suffix)}return k};HI.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(hd,r.maxLength):hd,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=ZF[t]||t;let s=Lr.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:A,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:u,NO_DOTS_SLASH:h,STAR:f,START_ANCHOR:d}=ud.globChars(s),E=r.dot?u:l,p=r.dot?h:l,C=r.capture?"":"?:",w={negated:!1,prefix:""},R=r.bash===!0?".*?":f;r.capture&&(R=`(${R})`);let S=V=>V.noglobstar===!0?R:`(${C}(?:(?!${d}${V.dot?c:o}).)*?)`,_=V=>{switch(V){case"*":return`${E}${a}${R}`;case".*":return`${o}${a}${R}`;case"*.*":return`${E}${R}${o}${a}${R}`;case"*/*":return`${E}${R}${A}${a}${p}${R}`;case"**":return E+S(r);case"**/*":return`(?:${E}${S(r)}${A})?${p}${a}${R}`;case"**/*.*":return`(?:${E}${S(r)}${A})?${p}${R}${o}${a}${R}`;case"**/.*":return`(?:${E}${S(r)}${A})?${o}${a}${R}`;default:{let M=/^(.*?)\.(\w+)$/.exec(V);if(!M)return;let j=_(M[1]);return j?j+o+M[2]:void 0}}},O=Lr.removePrefix(t,w),N=_(O);return N&&r.strictSlashes!==!0&&(N+=`${A}?`),N};$F.exports=HI});var eN=g((ike,XF)=>{"use strict";var nee=require("path"),iee=zF(),GI=KF(),qI=Eu(),see=gu(),oee=t=>t&&typeof t=="object"&&!Array.isArray(t),dt=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>dt(h,e,r));return h=>{for(let f of l){let d=f(h);if(d)return d}return!1}}let n=oee(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=qI.isWindows(e),o=n?dt.compileRe(t,e):dt.makeRe(t,e,!1,!0),A=o.state;delete o.state;let a=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=dt(i.ignore,l,r)}let c=(l,u=!1)=>{let{isMatch:h,match:f,output:d}=dt.test(l,o,e,{glob:t,posix:s}),E={glob:t,state:A,regex:o,posix:s,input:l,output:d,match:f,isMatch:h};return typeof i.onResult=="function"&&i.onResult(E),h===!1?(E.isMatch=!1,u?E:!1):a(l)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,u?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),u?E:!0)};return r&&(c.state=A),c};dt.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?qI.toPosixSlashes:null),A=t===n,a=A&&o?o(t):t;return A===!1&&(a=o?o(t):t,A=a===n),(A===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?A=dt.matchBase(t,e,r,i):A=e.exec(a)),{isMatch:!!A,match:A,output:a}};dt.matchBase=(t,e,r,n=qI.isWindows(r))=>(e instanceof RegExp?e:dt.makeRe(e,r)).test(nee.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)):GI(t,{...e,fastpaths:!1});dt.scan=(t,e)=>iee(t,e);dt.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",A=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(A=`^(?!${A}).*$`);let a=dt.toRegex(A,e);return n===!0&&(a.state=t),a};dt.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=GI.fastpaths(t,e)),i.output||(i=GI(t,e)),dt.compileRe(i,e,r,n)};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=see;XF.exports=dt});var rN=g((ske,tN)=>{"use strict";tN.exports=eN()});var aN=g((oke,AN)=>{"use strict";var iN=require("util"),sN=MF(),ti=rN(),YI=Eu(),nN=t=>t===""||t==="./",oN=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},$e=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,A=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let u=ti(String(e[l]),{...r,onResult:A},!0),h=u.state.negated||u.state.negatedExtglob;h&&o++;for(let f of t){let d=u(f,!0);(h?!d.isMatch:d.isMatch)&&(h?n.add(d.output):(n.delete(d.output),i.add(d.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.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(l=>l.replace(/\\/g,"")):e}return c};$e.match=$e;$e.matcher=(t,e)=>ti(t,e);$e.isMatch=(t,e,r)=>ti(e,r)(t);$e.any=$e.isMatch;$e.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=A=>{r.onResult&&r.onResult(A),i.push(A.output)},o=new Set($e(t,e,{...r,onResult:s}));for(let A of i)o.has(A)||n.add(A);return[...n]};$e.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${iN.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>$e.contains(t,n,r));if(typeof e=="string"){if(nN(t)||nN(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return $e.isMatch(t,e,{...r,contains:!0})};$e.matchKeys=(t,e,r)=>{if(!YI.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=$e(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};$e.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=ti(String(i),r);if(n.some(o=>s(o)))return!0}return!1};$e.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=ti(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};$e.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${iN.inspect(t)}"`);return[].concat(e).every(n=>ti(n,r)(t))};$e.capture=(t,e,r)=>{let n=YI.isWindows(r),s=ti.makeRe(String(t),{...r,capture:!0}).exec(n?YI.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};$e.makeRe=(...t)=>ti.makeRe(...t);$e.scan=(...t)=>ti.scan(...t);$e.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of sN(String(n),e))r.push(ti.parse(i,e));return r};$e.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!oN(t)?[t]:sN(t,e)};$e.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return $e.braces(t,{...e,expand:!0})};$e.hasBraces=oN;AN.exports=$e});var EN=g(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.matchAny=Ce.convertPatternsToRe=Ce.makeRe=Ce.getPatternParts=Ce.expandBraceExpansion=Ce.expandPatternsWithBraceExpansion=Ce.isAffectDepthOfReadingPattern=Ce.endsWithSlashGlobStar=Ce.hasGlobStar=Ce.getBaseDirectory=Ce.isPatternRelatedToParentDirectory=Ce.getPatternsOutsideCurrentDirectory=Ce.getPatternsInsideCurrentDirectory=Ce.getPositivePatterns=Ce.getNegativePatterns=Ce.isPositivePattern=Ce.isNegativePattern=Ce.convertToNegativePattern=Ce.convertToPositivePattern=Ce.isDynamicPattern=Ce.isStaticPattern=void 0;var Aee=require("path"),aee=eF(),VI=aN(),cN="**",cee="\\",lee=/[*?]|^!/,uee=/\[[^[]*]/,hee=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fee=/[!*+?@]\([^(]*\)/,dee=/,|\.\./;function lN(t,e={}){return!uN(t,e)}Ce.isStaticPattern=lN;function uN(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(cee)||lee.test(t)||uee.test(t)||hee.test(t)||e.extglob!==!1&&fee.test(t)||e.braceExpansion!==!1&&gee(t))}Ce.isDynamicPattern=uN;function gee(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return dee.test(n)}function Eee(t){return fd(t)?t.slice(1):t}Ce.convertToPositivePattern=Eee;function pee(t){return"!"+t}Ce.convertToNegativePattern=pee;function fd(t){return t.startsWith("!")&&t[1]!=="("}Ce.isNegativePattern=fd;function hN(t){return!fd(t)}Ce.isPositivePattern=hN;function Cee(t){return t.filter(fd)}Ce.getNegativePatterns=Cee;function mee(t){return t.filter(hN)}Ce.getPositivePatterns=mee;function Iee(t){return t.filter(e=>!JI(e))}Ce.getPatternsInsideCurrentDirectory=Iee;function Bee(t){return t.filter(JI)}Ce.getPatternsOutsideCurrentDirectory=Bee;function JI(t){return t.startsWith("..")||t.startsWith("./..")}Ce.isPatternRelatedToParentDirectory=JI;function Qee(t){return aee(t,{flipBackslashes:!1})}Ce.getBaseDirectory=Qee;function yee(t){return t.includes(cN)}Ce.hasGlobStar=yee;function fN(t){return t.endsWith("/"+cN)}Ce.endsWithSlashGlobStar=fN;function wee(t){let e=Aee.basename(t);return fN(t)||lN(e)}Ce.isAffectDepthOfReadingPattern=wee;function bee(t){return t.reduce((e,r)=>e.concat(dN(r)),[])}Ce.expandPatternsWithBraceExpansion=bee;function dN(t){return VI.braces(t,{expand:!0,nodupes:!0})}Ce.expandBraceExpansion=dN;function See(t,e){let{parts:r}=VI.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}Ce.getPatternParts=See;function gN(t,e){return VI.makeRe(t,e)}Ce.makeRe=gN;function Ree(t,e){return t.map(r=>gN(r,e))}Ce.convertPatternsToRe=Ree;function vee(t,e){return e.some(r=>r.test(t))}Ce.matchAny=vee});var IN=g((ake,mN)=>{"use strict";var kee=require("stream"),pN=kee.PassThrough,_ee=Array.prototype.slice;mN.exports=Dee;function Dee(){let t=[],e=_ee.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=pN(n);function A(){for(let l=0,u=arguments.length;l<u;l++)t.push(CN(arguments[l],n));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let u=l.length+1;function h(){--u>0||(r=!1,a())}function f(d){function E(){d.removeListener("merge2UnpipeEnd",E),d.removeListener("end",E),s&&d.removeListener("error",p),h()}function p(C){o.emit("error",C)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",E),d.on("end",E),s&&d.on("error",p),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<l.length;d++)f(l[d]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=A,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&A.apply(null,e),o}function CN(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=CN(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(pN(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var QN=g(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.merge=void 0;var xee=IN();function Fee(t){let e=xee(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>BN(t)),e.once("end",()=>BN(t)),e}dd.merge=Fee;function BN(t){t.forEach(e=>e.emit("close"))}});var yN=g(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.isEmpty=ga.isString=void 0;function Nee(t){return typeof t=="string"}ga.isString=Nee;function Tee(t){return t===""}ga.isEmpty=Tee});var Mi=g(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.string=zt.stream=zt.pattern=zt.path=zt.fs=zt.errno=zt.array=void 0;var Mee=Yx();zt.array=Mee;var Lee=Vx();zt.errno=Lee;var Uee=Jx();zt.fs=Uee;var Oee=Wx();zt.path=Oee;var Pee=EN();zt.pattern=Pee;var Hee=QN();zt.stream=Hee;var Gee=yN();zt.string=Gee});var SN=g(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.convertPatternGroupToTask=Zt.convertPatternGroupsToTasks=Zt.groupPatternsByBaseDirectory=Zt.getNegativePatternsAsPositive=Zt.getPositivePatterns=Zt.convertPatternsToTasks=Zt.generate=void 0;var Li=Mi();function qee(t,e){let r=wN(t),n=bN(t,e.ignore),i=r.filter(a=>Li.pattern.isStaticPattern(a,e)),s=r.filter(a=>Li.pattern.isDynamicPattern(a,e)),o=WI(i,n,!1),A=WI(s,n,!0);return o.concat(A)}Zt.generate=qee;function WI(t,e,r){let n=[],i=Li.pattern.getPatternsOutsideCurrentDirectory(t),s=Li.pattern.getPatternsInsideCurrentDirectory(t),o=jI(i),A=jI(s);return n.push(...zI(o,e,r)),"."in A?n.push(ZI(".",s,e,r)):n.push(...zI(A,e,r)),n}Zt.convertPatternsToTasks=WI;function wN(t){return Li.pattern.getPositivePatterns(t)}Zt.getPositivePatterns=wN;function bN(t,e){return Li.pattern.getNegativePatterns(t).concat(e).map(Li.pattern.convertToPositivePattern)}Zt.getNegativePatternsAsPositive=bN;function jI(t){let e={};return t.reduce((r,n)=>{let i=Li.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}Zt.groupPatternsByBaseDirectory=jI;function zI(t,e,r){return Object.keys(t).map(n=>ZI(n,t[n],e,r))}Zt.convertPatternGroupsToTasks=zI;function ZI(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Li.pattern.convertToNegativePattern))}}Zt.convertPatternGroupToTask=ZI});var vN=g(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.removeDuplicateSlashes=Ea.transform=void 0;var Yee=/(?!^)\/{2,}/g;function Vee(t){return t.map(e=>RN(e))}Ea.transform=Vee;function RN(t){return t.replace(Yee,"/")}Ea.removeDuplicateSlashes=RN});var _N=g(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.read=void 0;function Jee(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){kN(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){$I(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){kN(r,s);return}$I(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),$I(r,o)})})}gd.read=Jee;function kN(t,e){t(e)}function $I(t,e){t(null,e)}});var DN=g(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.read=void 0;function Wee(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ed.read=Wee});var xN=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.createFileSystemAdapter=Ss.FILE_SYSTEM_ADAPTER=void 0;var pd=require("fs");Ss.FILE_SYSTEM_ADAPTER={lstat:pd.lstat,stat:pd.stat,lstatSync:pd.lstatSync,statSync:pd.statSync};function jee(t){return t===void 0?Ss.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ss.FILE_SYSTEM_ADAPTER),t)}Ss.createFileSystemAdapter=jee});var FN=g(XI=>{"use strict";Object.defineProperty(XI,"__esModule",{value:!0});var zee=xN(),KI=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zee.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!=null?e:r}};XI.default=KI});var Uo=g(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.statSync=Rs.stat=Rs.Settings=void 0;var NN=_N(),Zee=DN(),eB=FN();Rs.Settings=eB.default;function $ee(t,e,r){if(typeof e=="function"){NN.read(t,tB(),e);return}NN.read(t,tB(e),r)}Rs.stat=$ee;function Kee(t,e){let r=tB(e);return Zee.read(t,r)}Rs.statSync=Kee;function tB(t={}){return t instanceof eB.default?t:new eB.default(t)}});var LN=g((mke,MN)=>{"use strict";var TN;MN.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(TN||(TN=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var ON=g((Ike,UN)=>{"use strict";UN.exports=ete;var Xee=LN();function ete(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(a){function c(){e&&e(a,r),e=null}s?Xee(c):c()}function A(a,c,l){r[a]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){t[a](function(c,l){A(a,c,l)})}):t.forEach(function(a,c){a(function(l,u){A(c,l,u)})}):o(null),s=!1}});var rB=g(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cd=process.versions.node.split(".");if(Cd[0]===void 0||Cd[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var PN=Number.parseInt(Cd[0],10),tte=Number.parseInt(Cd[1],10),HN=10,rte=10,nte=PN>HN,ite=PN===HN&&tte>=rte;md.IS_SUPPORT_READDIR_WITH_FILE_TYPES=nte||ite});var GN=g(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.createDirentFromStats=void 0;var nB=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 ste(t,e){return new nB(t,e)}Id.createDirentFromStats=ste});var iB=g(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.fs=void 0;var ote=GN();Bd.fs=ote});var sB=g(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.joinPathSegments=void 0;function Ate(t,e,r){return t.endsWith(r)?t+e:t+r+e}Qd.joinPathSegments=Ate});var jN=g(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.readdir=vs.readdirWithFileTypes=vs.read=void 0;var ate=Uo(),qN=ON(),cte=rB(),YN=iB(),VN=sB();function lte(t,e,r){if(!e.stats&&cte.IS_SUPPORT_READDIR_WITH_FILE_TYPES){JN(t,e,r);return}WN(t,e,r)}vs.read=lte;function JN(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){yd(r,n);return}let s=i.map(A=>({dirent:A,name:A.name,path:VN.joinPathSegments(t,A.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){oB(r,s);return}let o=s.map(A=>ute(A,e));qN(o,(A,a)=>{if(A!==null){yd(r,A);return}oB(r,a)})})}vs.readdirWithFileTypes=JN;function ute(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=YN.fs.createDirentFromStats(t.name,i),r(null,t)})}}function WN(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){yd(r,n);return}let s=i.map(o=>{let A=VN.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{ate.stat(A,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let u={name:o,path:A,dirent:YN.fs.createDirentFromStats(o,l)};e.stats&&(u.stats=l),a(null,u)})}});qN(s,(o,A)=>{if(o!==null){yd(r,o);return}oB(r,A)})})}vs.readdir=WN;function yd(t,e){t(e)}function oB(t,e){t(null,e)}});var XN=g(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.readdir=ks.readdirWithFileTypes=ks.read=void 0;var hte=Uo(),fte=rB(),zN=iB(),ZN=sB();function dte(t,e){return!e.stats&&fte.IS_SUPPORT_READDIR_WITH_FILE_TYPES?$N(t,e):KN(t,e)}ks.read=dte;function $N(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:ZN.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=zN.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}ks.readdirWithFileTypes=$N;function KN(t,e){return e.fs.readdirSync(t).map(n=>{let i=ZN.joinPathSegments(t,n,e.pathSegmentSeparator),s=hte.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:zN.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}ks.readdir=KN});var e1=g(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createFileSystemAdapter=_s.FILE_SYSTEM_ADAPTER=void 0;var pa=require("fs");_s.FILE_SYSTEM_ADAPTER={lstat:pa.lstat,stat:pa.stat,lstatSync:pa.lstatSync,statSync:pa.statSync,readdir:pa.readdir,readdirSync:pa.readdirSync};function gte(t){return t===void 0?_s.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},_s.FILE_SYSTEM_ADAPTER),t)}_s.createFileSystemAdapter=gte});var t1=g(aB=>{"use strict";Object.defineProperty(aB,"__esModule",{value:!0});var Ete=require("path"),pte=Uo(),Cte=e1(),AB=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Cte.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ete.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new pte.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};aB.default=AB});var wd=g(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.Settings=Ds.scandirSync=Ds.scandir=void 0;var r1=jN(),mte=XN(),cB=t1();Ds.Settings=cB.default;function Ite(t,e,r){if(typeof e=="function"){r1.read(t,lB(),e);return}r1.read(t,lB(e),r)}Ds.scandir=Ite;function Bte(t,e){let r=lB(e);return mte.read(t,r)}Ds.scandirSync=Bte;function lB(t={}){return t instanceof cB.default?t:new cB.default(t)}});var i1=g((_ke,n1)=>{"use strict";function Qte(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}n1.exports=Qte});var o1=g((Dke,uB)=>{"use strict";var yte=i1();function s1(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 n=yte(wte),i=null,s=null,o=0,A=null,a={push:E,drain:nn,saturated:nn,pause:l,paused:!1,concurrency:r,running:c,resume:f,idle:d,length:u,getQueue:h,unshift:p,empty:nn,kill:w,killAndDrain:R,error:S};return a;function c(){return o}function l(){a.paused=!0}function u(){for(var _=i,O=0;_;)_=_.next,O++;return O}function h(){for(var _=i,O=[];_;)O.push(_.value),_=_.next;return O}function f(){if(a.paused){a.paused=!1;for(var _=0;_<a.concurrency;_++)o++,C()}}function d(){return o===0&&a.length()===0}function E(_,O){var N=n.get();N.context=t,N.release=C,N.value=_,N.callback=O||nn,N.errorHandler=A,o===a.concurrency||a.paused?s?(s.next=N,s=N):(i=N,s=N,a.saturated()):(o++,e.call(t,N.value,N.worked))}function p(_,O){var N=n.get();N.context=t,N.release=C,N.value=_,N.callback=O||nn,o===a.concurrency||a.paused?i?(N.next=i,i=N):(i=N,s=N,a.saturated()):(o++,e.call(t,N.value,N.worked))}function C(_){_&&n.release(_);var O=i;O?a.paused?o--:(s===i&&(s=null),i=O.next,O.next=null,e.call(t,O.value,O.worked),s===null&&a.empty()):--o===0&&a.drain()}function w(){i=null,s=null,a.drain=nn}function R(){i=null,s=null,a.drain(),a.drain=nn}function S(_){A=_}}function nn(){}function wte(){this.value=null,this.callback=nn,this.next=null,this.release=nn,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=nn,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function bte(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,u){e.call(this,l).then(function(h){u(null,h)},u)}var i=s1(t,n,r),s=i.push,o=i.unshift;return i.push=A,i.unshift=a,i.drained=c,i;function A(l){var u=new Promise(function(h,f){s(l,function(d,E){if(d){f(d);return}h(E)})});return u.catch(nn),u}function a(l){var u=new Promise(function(h,f){o(l,function(d,E){if(d){f(d);return}h(E)})});return u.catch(nn),u}function c(){var l=i.drain,u=new Promise(function(h){i.drain=function(){l(),h()}});return u}}uB.exports=s1;uB.exports.promise=bte});var bd=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.joinPathSegments=ri.replacePathSegmentSeparator=ri.isAppliedFilter=ri.isFatalError=void 0;function Ste(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}ri.isFatalError=Ste;function Rte(t,e){return t===null||t(e)}ri.isAppliedFilter=Rte;function vte(t,e){return t.split(/[/\\]/).join(e)}ri.replacePathSegmentSeparator=vte;function kte(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}ri.joinPathSegments=kte});var dB=g(fB=>{"use strict";Object.defineProperty(fB,"__esModule",{value:!0});var _te=bd(),hB=class{constructor(e,r){this._root=e,this._settings=r,this._root=_te.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};fB.default=hB});var pB=g(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});var Dte=require("events"),xte=wd(),Fte=o1(),Sd=bd(),Nte=dB(),gB=class extends Nte.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xte.scandir,this._emitter=new Dte.EventEmitter,this._queue=Fte(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 n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Sd.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 n=e.path;r!==void 0&&(e.path=Sd.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Sd.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Sd.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};EB.default=gB});var A1=g(mB=>{"use strict";Object.defineProperty(mB,"__esModule",{value:!0});var Tte=pB(),CB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Tte.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Mte(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Lte(e,this._storage)}),this._reader.read()}};mB.default=CB;function Mte(t,e){t(e)}function Lte(t,e){t(null,e)}});var a1=g(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});var Ute=require("stream"),Ote=pB(),IB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ote.default(this._root,this._settings),this._stream=new Ute.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}};BB.default=IB});var c1=g(yB=>{"use strict";Object.defineProperty(yB,"__esModule",{value:!0});var Pte=wd(),Rd=bd(),Hte=dB(),QB=class extends Hte.default{constructor(){super(...arguments),this._scandir=Pte.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 n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Rd.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Rd.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Rd.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Rd.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};yB.default=QB});var l1=g(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});var Gte=c1(),wB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Gte.default(this._root,this._settings)}read(){return this._reader.read()}};bB.default=wB});var u1=g(RB=>{"use strict";Object.defineProperty(RB,"__esModule",{value:!0});var qte=require("path"),Yte=wd(),SB=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,qte.sep),this.fsScandirSettings=new Yte.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!=null?e:r}};RB.default=SB});var kd=g(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.Settings=ni.walkStream=ni.walkSync=ni.walk=void 0;var h1=A1(),Vte=a1(),Jte=l1(),vB=u1();ni.Settings=vB.default;function Wte(t,e,r){if(typeof e=="function"){new h1.default(t,vd()).read(e);return}new h1.default(t,vd(e)).read(r)}ni.walk=Wte;function jte(t,e){let r=vd(e);return new Jte.default(t,r).read()}ni.walkSync=jte;function zte(t,e){let r=vd(e);return new Vte.default(t,r).read()}ni.walkStream=zte;function vd(t={}){return t instanceof vB.default?t:new vB.default(t)}});var _d=g(_B=>{"use strict";Object.defineProperty(_B,"__esModule",{value:!0});var Zte=require("path"),$te=Uo(),f1=Mi(),kB=class{constructor(e){this._settings=e,this._fsStatSettings=new $te.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Zte.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:f1.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!f1.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};_B.default=kB});var FB=g(xB=>{"use strict";Object.defineProperty(xB,"__esModule",{value:!0});var Kte=require("stream"),Xte=Uo(),ere=kd(),tre=_d(),DB=class extends tre.default{constructor(){super(...arguments),this._walkStream=ere.walkStream,this._stat=Xte.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Kte.PassThrough({objectMode:!0});i._write=(s,o,A)=>this._getEntry(n[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),s===n.length-1&&i.end(),A()}).catch(A);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};xB.default=DB});var d1=g(TB=>{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});var rre=kd(),nre=_d(),ire=FB(),NB=class extends nre.default{constructor(){super(...arguments),this._walkAsync=rre.walk,this._readerStream=new ire.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",A=>n.push(A)),i.once("end",()=>s(n))})}};TB.default=NB});var g1=g(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});var Ca=Mi(),MB=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ca.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Ca.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Ca.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ca.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Ca.array.splitWhen(e,r=>r.dynamic&&Ca.pattern.hasGlobStar(r.pattern))}};LB.default=MB});var E1=g(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});var sre=g1(),UB=class extends sre.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};OB.default=UB});var p1=g(HB=>{"use strict";Object.defineProperty(HB,"__esModule",{value:!0});var Dd=Mi(),ore=E1(),PB=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new ore.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Dd.pattern.isAffectDepthOfReadingPattern);return Dd.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Dd.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Dd.pattern.matchAny(e,r)}};HB.default=PB});var C1=g(qB=>{"use strict";Object.defineProperty(qB,"__esModule",{value:!0});var Oo=Mi(),GB=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=Oo.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Oo.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_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 n=Oo.path.makeAbsolute(this._settings.cwd,e);return Oo.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=Oo.path.removeLeadingDotSegment(e),s=Oo.pattern.matchAny(i,r);return!s&&n?Oo.pattern.matchAny(i+"/",r):s}};qB.default=GB});var m1=g(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});var Are=Mi(),YB=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Are.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};VB.default=YB});var B1=g(WB=>{"use strict";Object.defineProperty(WB,"__esModule",{value:!0});var I1=Mi(),JB=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=I1.path.makeAbsolute(this._settings.cwd,r),r=I1.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};WB.default=JB});var xd=g(zB=>{"use strict";Object.defineProperty(zB,"__esModule",{value:!0});var are=require("path"),cre=p1(),lre=C1(),ure=m1(),hre=B1(),jB=class{constructor(e){this._settings=e,this.errorFilter=new ure.default(this._settings),this.entryFilter=new lre.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new cre.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hre.default(this._settings)}_getRootDirectory(e){return are.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}}};zB.default=jB});var Q1=g($B=>{"use strict";Object.defineProperty($B,"__esModule",{value:!0});var fre=d1(),dre=xd(),ZB=class extends dre.default{constructor(){super(...arguments),this._reader=new fre.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};$B.default=ZB});var y1=g(XB=>{"use strict";Object.defineProperty(XB,"__esModule",{value:!0});var gre=require("stream"),Ere=FB(),pre=xd(),KB=class extends pre.default{constructor(){super(...arguments),this._reader=new Ere.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new gre.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};XB.default=KB});var w1=g(tQ=>{"use strict";Object.defineProperty(tQ,"__esModule",{value:!0});var Cre=Uo(),mre=kd(),Ire=_d(),eQ=class extends Ire.default{constructor(){super(...arguments),this._walkSync=mre.walkSync,this._statSync=Cre.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};tQ.default=eQ});var b1=g(nQ=>{"use strict";Object.defineProperty(nQ,"__esModule",{value:!0});var Bre=w1(),Qre=xd(),rQ=class extends Qre.default{constructor(){super(...arguments),this._reader=new Bre.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};nQ.default=rQ});var S1=g(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ma=require("fs"),yre=require("os"),wre=Math.max(yre.cpus().length,1);Ia.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ma.lstat,lstatSync:ma.lstatSync,stat:ma.stat,statSync:ma.statSync,readdir:ma.readdir,readdirSync:ma.readdirSync};var iQ=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,wre),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({},Ia.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Ia.default=iQ});var _1=g((r_e,k1)=>{"use strict";var R1=SN(),v1=vN(),bre=Q1(),Sre=y1(),Rre=b1(),sQ=S1(),Po=Mi();async function oQ(t,e){Ba(t);let r=AQ(t,bre.default,e),n=await Promise.all(r);return Po.array.flatten(n)}(function(t){function e(o,A){Ba(o);let a=AQ(o,Rre.default,A);return Po.array.flatten(a)}t.sync=e;function r(o,A){Ba(o);let a=AQ(o,Sre.default,A);return Po.stream.merge(a)}t.stream=r;function n(o,A){Ba(o);let a=v1.transform([].concat(o)),c=new sQ.default(A);return R1.generate(a,c)}t.generateTasks=n;function i(o,A){Ba(o);let a=new sQ.default(A);return Po.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=i;function s(o){return Ba(o),Po.path.escape(o)}t.escapePath=s})(oQ||(oQ={}));function AQ(t,e,r){let n=v1.transform([].concat(t)),i=new sQ.default(r),s=R1.generate(n,i),o=new e(i);return s.map(o.read,o)}function Ba(t){if(![].concat(t).every(n=>Po.string.isString(n)&&!Po.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}k1.exports=oQ});var Nd=g((n_e,aQ)=>{"use strict";var D1=process.argv||[],Fd=process.env,vre=!("NO_COLOR"in Fd||D1.includes("--no-color"))&&("FORCE_COLOR"in Fd||D1.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Fd.TERM!=="dumb"||"CI"in Fd),kre=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+_re(i,e,r,s)+e:t+i+e},_re=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},x1=(t=vre)=>{let e=t?kre:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};aQ.exports=x1();aQ.exports.createColors=x1});var N1=g((i_e,F1)=>{"use strict";F1.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 cQ=g((s_e,M1)=>{"use strict";var Cu=N1(),T1={};for(let t of Object.keys(Cu))T1[Cu[t]]=t;var re={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"]}};M1.exports=re;for(let t of Object.keys(re)){if(!("channels"in re[t]))throw new Error("missing channels property: "+t);if(!("labels"in re[t]))throw new Error("missing channel labels property: "+t);if(re[t].labels.length!==re[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=re[t];delete re[t].channels,delete re[t].labels,Object.defineProperty(re[t],"channels",{value:e}),Object.defineProperty(re[t],"labels",{value:r})}re.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,A,a;s===i?A=0:e===s?A=(r-n)/o:r===s?A=2+(n-e)/o:n===s&&(A=4+(e-r)/o),A=Math.min(A*60,360),A<0&&(A+=360);let c=(i+s)/2;return s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[A,a*100,c*100]};re.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,A=t[1]/255,a=t[2]/255,c=Math.max(o,A,a),l=c-Math.min(o,A,a),u=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,e=u(o),r=u(A),n=u(a),o===c?i=n-r:A===c?i=1/3+e-n:a===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};re.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=re.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};re.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,A=(1-n-i)/(1-i)||0;return[s*100,o*100,A*100,i*100]};function Dre(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}re.rgb.keyword=function(t){let e=T1[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Cu)){let s=Cu[i],o=Dre(t,s);o<r&&(r=o,n=i)}return n};re.keyword.rgb=function(t){return Cu[t]};re.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};re.rgb.lab=function(t){let e=re.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),A=200*(n-i);return[s,o,A]};re.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let A=2*n-i,a=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=A+(i-A)*6*s:2*s<1?o=i:3*s<2?o=A+(i-A)*(2/3-s)*6:o=A,a[c]=o*255;return a};re.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,A=n===0?2*i/(s+i):2*r/(n+r);return[e,A*100,o*100]};re.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),A=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[A,n,o];case 2:return[o,n,a];case 3:return[o,A,n];case 4:return[a,o,n];case 5:return[n,o,A]}};re.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let A=(2-r)*i;return s=r*i,s/=A<=1?A:2-A,s=s||0,o/=2,[e,s*100,o*100]};re.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),A=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let a=r+s*(A-r),c,l,u;switch(o){default:case 6:case 0:c=A,l=a,u=r;break;case 1:c=a,l=A,u=r;break;case 2:c=r,l=A,u=a;break;case 3:c=r,l=a,u=A;break;case 4:c=a,l=r,u=A;break;case 5:c=A,l=r,u=a;break}return[c*255,l*255,u*255]};re.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),A=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,A*255]};re.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};re.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};re.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let A=s**3,a=i**3,c=o**3;return s=A>.008856?A:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};re.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};re.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};re.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?re.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};re.hsv.ansi16=function(t){return re.rgb.ansi16(re.hsv.rgb(t),t[2])};re.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};re.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};re.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};re.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};re.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(A=>A+A).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};re.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,A,a;return o<1?A=s/(1-o):A=0,o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,A*100]};re.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};re.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};re.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,A=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=A,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=A,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=A}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};re.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};re.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};re.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};re.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};re.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};re.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};re.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};re.gray.hsl=function(t){return[0,0,t[0]]};re.gray.hsv=re.gray.hsl;re.gray.hwb=function(t){return[0,100,t[0]]};re.gray.cmyk=function(t){return[0,0,0,t[0]]};re.gray.lab=function(t){return[t[0],0,0]};re.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};re.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var U1=g((o_e,L1)=>{"use strict";var Td=cQ();function xre(){let t={},e=Object.keys(Td);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Fre(t){let e=xre(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Td[n]);for(let s=i.length,o=0;o<s;o++){let A=i[o],a=e[A];a.distance===-1&&(a.distance=e[n].distance+1,a.parent=n,r.unshift(A))}}return e}function Nre(t,e){return function(r){return e(t(r))}}function Tre(t,e){let r=[e[t].parent,t],n=Td[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Nre(Td[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}L1.exports=function(t){let e=Fre(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Tre(o,e))}return r}});var P1=g((A_e,O1)=>{"use strict";var lQ=cQ(),Mre=U1(),Qa={},Lre=Object.keys(lQ);function Ure(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ore(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Lre.forEach(t=>{Qa[t]={},Object.defineProperty(Qa[t],"channels",{value:lQ[t].channels}),Object.defineProperty(Qa[t],"labels",{value:lQ[t].labels});let e=Mre(t);Object.keys(e).forEach(n=>{let i=e[n];Qa[t][n]=Ore(i),Qa[t][n].raw=Ure(i)})});O1.exports=Qa});var hQ=g((a_e,V1)=>{"use strict";var H1=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,G1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},q1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Md=t=>t,Y1=(t,e,r)=>[t,e,r],ya=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},uQ,wa=(t,e,r,n)=>{uQ===void 0&&(uQ=P1());let i=n?10:0,s={};for(let[o,A]of Object.entries(uQ)){let a=o==="ansi16"?"ansi":o;o===e?s[a]=t(r,i):typeof A=="object"&&(s[a]=t(A[e],i))}return s};function Pre(){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],blackBright:[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.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ya(e.color,"ansi",()=>wa(H1,"ansi16",Md,!1)),ya(e.color,"ansi256",()=>wa(G1,"ansi256",Md,!1)),ya(e.color,"ansi16m",()=>wa(q1,"rgb",Y1,!1)),ya(e.bgColor,"ansi",()=>wa(H1,"ansi16",Md,!0)),ya(e.bgColor,"ansi256",()=>wa(G1,"ansi256",Md,!0)),ya(e.bgColor,"ansi16m",()=>wa(q1,"rgb",Y1,!0)),e}Object.defineProperty(V1,"exports",{enumerable:!0,get:Pre})});var W1=g((c_e,J1)=>{"use strict";J1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var gQ=g((l_e,z1)=>{"use strict";var Hre=require("os"),j1=require("tty"),sn=W1(),{env:xt}=process,xs;sn("no-color")||sn("no-colors")||sn("color=false")||sn("color=never")?xs=0:(sn("color")||sn("colors")||sn("color=true")||sn("color=always"))&&(xs=1);"FORCE_COLOR"in xt&&(xt.FORCE_COLOR==="true"?xs=1:xt.FORCE_COLOR==="false"?xs=0:xs=xt.FORCE_COLOR.length===0?1:Math.min(parseInt(xt.FORCE_COLOR,10),3));function fQ(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function dQ(t,e){if(xs===0)return 0;if(sn("color=16m")||sn("color=full")||sn("color=truecolor"))return 3;if(sn("color=256"))return 2;if(t&&!e&&xs===void 0)return 0;let r=xs||0;if(xt.TERM==="dumb")return r;if(process.platform==="win32"){let n=Hre.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in xt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in xt)||xt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in xt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xt.TEAMCITY_VERSION)?1:0;if(xt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in xt){let n=parseInt((xt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xt.TERM)||"COLORTERM"in xt?1:r}function Gre(t){let e=dQ(t,t&&t.isTTY);return fQ(e)}z1.exports={supportsColor:Gre,stdout:fQ(dQ(!0,j1.isatty(1))),stderr:fQ(dQ(!0,j1.isatty(2)))}});var $1=g((u_e,Z1)=>{"use strict";var qre=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Yre=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
29
|
+
`,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 FF=g((Kve,xF)=>{"use strict";var h7=Ad(),{MAX_LENGTH:kF,CHAR_BACKSLASH:FI,CHAR_BACKTICK:f7,CHAR_COMMA:d7,CHAR_DOT:g7,CHAR_LEFT_PARENTHESES:E7,CHAR_RIGHT_PARENTHESES:p7,CHAR_LEFT_CURLY_BRACE:C7,CHAR_RIGHT_CURLY_BRACE:m7,CHAR_LEFT_SQUARE_BRACKET:_F,CHAR_RIGHT_SQUARE_BRACKET:DF,CHAR_DOUBLE_QUOTE:I7,CHAR_SINGLE_QUOTE:B7,CHAR_NO_BREAK_SPACE:Q7,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y7}=vF(),w7=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(kF,r.maxLength):kF;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,A=i,a=0,c=t.length,l=0,u=0,h,f=()=>t[l++],d=E=>{if(E.type==="text"&&A.type==="dot"&&(A.type="text"),A&&A.type==="text"&&E.type==="text"){A.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=A,A=E,E};for(d({type:"bos"});l<c;)if(o=s[s.length-1],h=f(),!(h===y7||h===Q7)){if(h===FI){d({type:"text",value:(e.keepEscaping?h:"")+f()});continue}if(h===DF){d({type:"text",value:"\\"+h});continue}if(h===_F){a++;let E;for(;l<c&&(E=f());){if(h+=E,E===_F){a++;continue}if(E===FI){h+=f();continue}if(E===DF&&(a--,a===0))break}d({type:"text",value:h});continue}if(h===E7){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===p7){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===I7||h===B7||h===f7){let E=h,p;for(e.keepQuotes!==!0&&(h="");l<c&&(p=f());){if(p===FI){h+=p+f();continue}if(p===E){e.keepQuotes===!0&&(h+=p);break}h+=p}d({type:"text",value:h});continue}if(h===C7){u++;let p={type:"brace",open:!0,close:!1,dollar:A.value&&A.value.slice(-1)==="$"||o.dollar===!0,depth:u,commas:0,ranges:0,nodes:[]};o=d(p),s.push(o),d({type:"open",value:h});continue}if(h===m7){if(o.type!=="brace"){d({type:"text",value:h});continue}let E="close";o=s.pop(),o.close=!0,d({type:E,value:h}),u--,o=s[s.length-1];continue}if(h===d7&&u>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:h7(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===g7&&u>0&&o.commas===0){let E=o.nodes;if(u===0||E.length===0){d({type:"text",value:h});continue}if(A.type==="dot"){if(o.range=[],A.value+=h,A.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,A.type="text";continue}o.ranges++,o.args=[];continue}if(A.type==="range"){E.pop();let p=E[E.length-1];p.value+=A.value+h,A=p,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let E=s[s.length-1],p=E.nodes.indexOf(o);E.nodes.splice(p,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),i};xF.exports=w7});var MF=g((Xve,TF)=>{"use strict";var NF=Ad(),b7=yF(),S7=SF(),R7=FF(),Mr=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Mr.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Mr.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Mr.parse=(t,e={})=>R7(t,e);Mr.stringify=(t,e={})=>NF(typeof t=="string"?Mr.parse(t,e):t,e);Mr.compile=(t,e={})=>(typeof t=="string"&&(t=Mr.parse(t,e)),b7(t,e));Mr.expand=(t,e={})=>{typeof t=="string"&&(t=Mr.parse(t,e));let r=S7(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Mr.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Mr.compile(t,e):Mr.expand(t,e);TF.exports=Mr});var gu=g((eke,HF)=>{"use strict";var v7=require("path"),ei="\\\\/",LF=`[^${ei}]`,Ti="\\.",k7="\\+",_7="\\?",ld="\\/",D7="(?=.)",UF="[^/]",NI=`(?:${ld}|$)`,OF=`(?:^|${ld})`,TI=`${Ti}{1,2}${NI}`,x7=`(?!${Ti})`,F7=`(?!${OF}${TI})`,N7=`(?!${Ti}{0,1}${NI})`,T7=`(?!${TI})`,M7=`[^.${ld}]`,L7=`${UF}*?`,PF={DOT_LITERAL:Ti,PLUS_LITERAL:k7,QMARK_LITERAL:_7,SLASH_LITERAL:ld,ONE_CHAR:D7,QMARK:UF,END_ANCHOR:NI,DOTS_SLASH:TI,NO_DOT:x7,NO_DOTS:F7,NO_DOT_SLASH:N7,NO_DOTS_SLASH:T7,QMARK_NO_DOT:M7,STAR:L7,START_ANCHOR:OF},U7={...PF,SLASH_LITERAL:`[${ei}]`,QMARK:LF,STAR:`${LF}*?`,DOTS_SLASH:`${Ti}{1,2}(?:[${ei}]|$)`,NO_DOT:`(?!${Ti})`,NO_DOTS:`(?!(?:^|[${ei}])${Ti}{1,2}(?:[${ei}]|$))`,NO_DOT_SLASH:`(?!${Ti}{0,1}(?:[${ei}]|$))`,NO_DOTS_SLASH:`(?!${Ti}{1,2}(?:[${ei}]|$))`,QMARK_NO_DOT:`[^.${ei}]`,START_ANCHOR:`(?:^|[${ei}])`,END_ANCHOR:`(?:[${ei}]|$)`},O7={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"};HF.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O7,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:v7.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?U7:PF}}});var Eu=g(Ir=>{"use strict";var P7=require("path"),H7=process.platform==="win32",{REGEX_BACKSLASH:G7,REGEX_REMOVE_BACKSLASH:q7,REGEX_SPECIAL_CHARS:Y7,REGEX_SPECIAL_CHARS_GLOBAL:V7}=gu();Ir.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ir.hasRegexChars=t=>Y7.test(t);Ir.isRegexChar=t=>t.length===1&&Ir.hasRegexChars(t);Ir.escapeRegex=t=>t.replace(V7,"\\$1");Ir.toPosixSlashes=t=>t.replace(G7,"/");Ir.removeBackslashes=t=>t.replace(q7,e=>e==="\\"?"":e);Ir.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ir.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:H7===!0||P7.sep==="\\";Ir.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ir.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ir.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ir.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var zF=g((rke,jF)=>{"use strict";var GF=Eu(),{CHAR_ASTERISK:MI,CHAR_AT:J7,CHAR_BACKWARD_SLASH:pu,CHAR_COMMA:W7,CHAR_DOT:LI,CHAR_EXCLAMATION_MARK:UI,CHAR_FORWARD_SLASH:WF,CHAR_LEFT_CURLY_BRACE:OI,CHAR_LEFT_PARENTHESES:PI,CHAR_LEFT_SQUARE_BRACKET:j7,CHAR_PLUS:z7,CHAR_QUESTION_MARK:qF,CHAR_RIGHT_CURLY_BRACE:Z7,CHAR_RIGHT_PARENTHESES:YF,CHAR_RIGHT_SQUARE_BRACKET:$7}=gu(),VF=t=>t===WF||t===pu,JF=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},K7=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],A=[],a=t,c=-1,l=0,u=0,h=!1,f=!1,d=!1,E=!1,p=!1,C=!1,w=!1,R=!1,S=!1,_=!1,O=0,N,V,M={value:"",depth:0,isGlob:!1},j=()=>c>=n,k=()=>a.charCodeAt(c+1),ee=()=>(N=V,a.charCodeAt(++c));for(;c<n;){V=ee();let x;if(V===pu){w=M.backslashes=!0,V=ee(),V===OI&&(C=!0);continue}if(C===!0||V===OI){for(O++;j()!==!0&&(V=ee());){if(V===pu){w=M.backslashes=!0,ee();continue}if(V===OI){O++;continue}if(C!==!0&&V===LI&&(V=ee())===LI){if(h=M.isBrace=!0,d=M.isGlob=!0,_=!0,i===!0)continue;break}if(C!==!0&&V===W7){if(h=M.isBrace=!0,d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===Z7&&(O--,O===0)){C=!1,h=M.isBrace=!0,_=!0;break}}if(i===!0)continue;break}if(V===WF){if(s.push(c),o.push(M),M={value:"",depth:0,isGlob:!1},_===!0)continue;if(N===LI&&c===l+1){l+=2;continue}u=c+1;continue}if(r.noext!==!0&&(V===z7||V===J7||V===MI||V===qF||V===UI)===!0&&k()===PI){if(d=M.isGlob=!0,E=M.isExtglob=!0,_=!0,V===UI&&c===l&&(S=!0),i===!0){for(;j()!==!0&&(V=ee());){if(V===pu){w=M.backslashes=!0,V=ee();continue}if(V===YF){d=M.isGlob=!0,_=!0;break}}continue}break}if(V===MI){if(N===MI&&(p=M.isGlobstar=!0),d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===qF){if(d=M.isGlob=!0,_=!0,i===!0)continue;break}if(V===j7){for(;j()!==!0&&(x=ee());){if(x===pu){w=M.backslashes=!0,ee();continue}if(x===$7){f=M.isBracket=!0,d=M.isGlob=!0,_=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&V===UI&&c===l){R=M.negated=!0,l++;continue}if(r.noparen!==!0&&V===PI){if(d=M.isGlob=!0,i===!0){for(;j()!==!0&&(V=ee());){if(V===PI){w=M.backslashes=!0,V=ee();continue}if(V===YF){_=!0;break}}continue}break}if(d===!0){if(_=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,d=!1);let te=a,ye="",v="";l>0&&(ye=a.slice(0,l),a=a.slice(l),u-=l),te&&d===!0&&u>0?(te=a.slice(0,u),v=a.slice(u)):d===!0?(te="",v=a):te=a,te&&te!==""&&te!=="/"&&te!==a&&VF(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(v&&(v=GF.removeBackslashes(v)),te&&w===!0&&(te=GF.removeBackslashes(te)));let y={prefix:ye,input:t,start:l,base:te,glob:v,isBrace:h,isBracket:f,isGlob:d,isExtglob:E,isGlobstar:p,negated:R,negatedExtglob:S};if(r.tokens===!0&&(y.maxDepth=0,VF(V)||o.push(M),y.tokens=o),r.parts===!0||r.tokens===!0){let x;for(let F=0;F<s.length;F++){let T=x?x+1:l,ie=s[F],z=t.slice(T,ie);r.tokens&&(F===0&&l!==0?(o[F].isPrefix=!0,o[F].value=ye):o[F].value=z,JF(o[F]),y.maxDepth+=o[F].depth),(F!==0||z!=="")&&A.push(z),x=ie}if(x&&x+1<t.length){let F=t.slice(x+1);A.push(F),r.tokens&&(o[o.length-1].value=F,JF(o[o.length-1]),y.maxDepth+=o[o.length-1].depth)}y.slashes=s,y.parts=A}return y};jF.exports=K7});var KF=g((nke,$F)=>{"use strict";var ud=gu(),Lr=Eu(),{MAX_LENGTH:hd,POSIX_REGEX_SOURCE:X7,REGEX_NON_SPECIAL_CHARS:eee,REGEX_SPECIAL_CHARS_BACKREF:tee,REPLACEMENTS:ZF}=ud,ree=(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(i=>Lr.escapeRegex(i)).join("..")}return r},da=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,HI=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ZF[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(hd,r.maxLength):hd,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],A=r.capture?"":"?:",a=Lr.isWindows(e),c=ud.globChars(a),l=ud.extglobChars(c),{DOT_LITERAL:u,PLUS_LITERAL:h,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:E,NO_DOT:p,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:R,QMARK_NO_DOT:S,STAR:_,START_ANCHOR:O}=c,N=W=>`(${A}(?:(?!${O}${W.dot?E:u}).)*?)`,V=r.dot?"":p,M=r.dot?R:S,j=r.bash===!0?N(r):_;r.capture&&(j=`(${j})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let k={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:o};t=Lr.removePrefix(t,k),i=t.length;let ee=[],te=[],ye=[],v=s,y,x=()=>k.index===i-1,F=k.peek=(W=1)=>t[k.index+W],T=k.advance=()=>t[++k.index]||"",ie=()=>t.slice(k.index+1),z=(W="",Je=0)=>{k.consumed+=W,k.index+=Je},Ge=W=>{k.output+=W.output!=null?W.output:W.value,z(W.value)},bt=()=>{let W=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)T(),k.start++,W++;return W%2===0?!1:(k.negated=!0,k.start++,!0)},Ne=W=>{k[W]++,ye.push(W)},ht=W=>{k[W]--,ye.pop()},ge=W=>{if(v.type==="globstar"){let Je=k.braces>0&&(W.type==="comma"||W.type==="brace"),J=W.extglob===!0||ee.length&&(W.type==="pipe"||W.type==="paren");W.type!=="slash"&&W.type!=="paren"&&!Je&&!J&&(k.output=k.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=j,k.output+=v.output)}if(ee.length&&W.type!=="paren"&&(ee[ee.length-1].inner+=W.value),(W.value||W.output)&&Ge(W),v&&v.type==="text"&&W.type==="text"){v.value+=W.value,v.output=(v.output||"")+W.value;return}W.prev=v,o.push(W),v=W},cr=(W,Je)=>{let J={...l[Je],conditions:1,inner:""};J.prev=v,J.parens=k.parens,J.output=k.output;let I=(r.capture?"(":"")+J.open;Ne("parens"),ge({type:W,value:Je,output:k.output?"":d}),ge({type:"paren",extglob:!0,value:T(),output:I}),ee.push(J)},Nr=W=>{let Je=W.close+(r.capture?")":""),J;if(W.type==="negate"){let I=j;if(W.inner&&W.inner.length>1&&W.inner.includes("/")&&(I=N(r)),(I!==j||x()||/^\)+$/.test(ie()))&&(Je=W.close=`)$))${I}`),W.inner.includes("*")&&(J=ie())&&/^\.[^\\/.]+$/.test(J)){let b=HI(J,{...e,fastpaths:!1}).output;Je=W.close=`)${b})${I})`}W.prev.type==="bos"&&(k.negatedExtglob=!0)}ge({type:"paren",extglob:!0,value:y,output:Je}),ht("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let W=!1,Je=t.replace(tee,(J,I,b,B,L,$)=>B==="\\"?(W=!0,J):B==="?"?I?I+B+(L?R.repeat(L.length):""):$===0?M+(L?R.repeat(L.length):""):R.repeat(b.length):B==="."?u.repeat(b.length):B==="*"?I?I+B+(L?j:""):j:I?J:`\\${J}`);return W===!0&&(r.unescape===!0?Je=Je.replace(/\\/g,""):Je=Je.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),Je===t&&r.contains===!0?(k.output=t,k):(k.output=Lr.wrapOutput(Je,k,e),k)}for(;!x();){if(y=T(),y==="\0")continue;if(y==="\\"){let J=F();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){y+="\\",ge({type:"text",value:y});continue}let I=/^\\+/.exec(ie()),b=0;if(I&&I[0].length>2&&(b=I[0].length,k.index+=b,b%2!==0&&(y+="\\")),r.unescape===!0?y=T():y+=T(),k.brackets===0){ge({type:"text",value:y});continue}}if(k.brackets>0&&(y!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&y===":"){let J=v.value.slice(1);if(J.includes("[")&&(v.posix=!0,J.includes(":"))){let I=v.value.lastIndexOf("["),b=v.value.slice(0,I),B=v.value.slice(I+2),L=X7[B];if(L){v.value=b+L,k.backtrack=!0,T(),!s.output&&o.indexOf(v)===1&&(s.output=d);continue}}}(y==="["&&F()!==":"||y==="-"&&F()==="]")&&(y=`\\${y}`),y==="]"&&(v.value==="["||v.value==="[^")&&(y=`\\${y}`),r.posix===!0&&y==="!"&&v.value==="["&&(y="^"),v.value+=y,Ge({value:y});continue}if(k.quotes===1&&y!=='"'){y=Lr.escapeRegex(y),v.value+=y,Ge({value:y});continue}if(y==='"'){k.quotes=k.quotes===1?0:1,r.keepQuotes===!0&&ge({type:"text",value:y});continue}if(y==="("){Ne("parens"),ge({type:"paren",value:y});continue}if(y===")"){if(k.parens===0&&r.strictBrackets===!0)throw new SyntaxError(da("opening","("));let J=ee[ee.length-1];if(J&&k.parens===J.parens+1){Nr(ee.pop());continue}ge({type:"paren",value:y,output:k.parens?")":"\\)"}),ht("parens");continue}if(y==="["){if(r.nobracket===!0||!ie().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(da("closing","]"));y=`\\${y}`}else Ne("brackets");ge({type:"bracket",value:y});continue}if(y==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){ge({type:"text",value:y,output:`\\${y}`});continue}if(k.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(da("opening","["));ge({type:"text",value:y,output:`\\${y}`});continue}ht("brackets");let J=v.value.slice(1);if(v.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(y=`/${y}`),v.value+=y,Ge({value:y}),r.literalBrackets===!1||Lr.hasRegexChars(J))continue;let I=Lr.escapeRegex(v.value);if(k.output=k.output.slice(0,-v.value.length),r.literalBrackets===!0){k.output+=I,v.value=I;continue}v.value=`(${A}${I}|${v.value})`,k.output+=v.value;continue}if(y==="{"&&r.nobrace!==!0){Ne("braces");let J={type:"brace",value:y,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};te.push(J),ge(J);continue}if(y==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){ge({type:"text",value:y,output:y});continue}let I=")";if(J.dots===!0){let b=o.slice(),B=[];for(let L=b.length-1;L>=0&&(o.pop(),b[L].type!=="brace");L--)b[L].type!=="dots"&&B.unshift(b[L].value);I=ree(B,r),k.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let b=k.output.slice(0,J.outputIndex),B=k.tokens.slice(J.tokensIndex);J.value=J.output="\\{",y=I="\\}",k.output=b;for(let L of B)k.output+=L.output||L.value}ge({type:"brace",value:y,output:I}),ht("braces"),te.pop();continue}if(y==="|"){ee.length>0&&ee[ee.length-1].conditions++,ge({type:"text",value:y});continue}if(y===","){let J=y,I=te[te.length-1];I&&ye[ye.length-1]==="braces"&&(I.comma=!0,J="|"),ge({type:"comma",value:y,output:J});continue}if(y==="/"){if(v.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),v=s;continue}ge({type:"slash",value:y,output:f});continue}if(y==="."){if(k.braces>0&&v.type==="dot"){v.value==="."&&(v.output=u);let J=te[te.length-1];v.type="dots",v.output+=y,v.value+=y,J.dots=!0;continue}if(k.braces+k.parens===0&&v.type!=="bos"&&v.type!=="slash"){ge({type:"text",value:y,output:u});continue}ge({type:"dot",value:y,output:u});continue}if(y==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("qmark",y);continue}if(v&&v.type==="paren"){let I=F(),b=y;if(I==="<"&&!Lr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(ie()))&&(b=`\\${y}`),ge({type:"text",value:y,output:b});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){ge({type:"qmark",value:y,output:S});continue}ge({type:"qmark",value:y,output:R});continue}if(y==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){cr("negate",y);continue}if(r.nonegate!==!0&&k.index===0){bt();continue}}if(y==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("plus",y);continue}if(v&&v.value==="("||r.regex===!1){ge({type:"plus",value:y,output:h});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||k.parens>0){ge({type:"plus",value:y});continue}ge({type:"plus",value:h});continue}if(y==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ge({type:"at",extglob:!0,value:y,output:""});continue}ge({type:"text",value:y});continue}if(y!=="*"){(y==="$"||y==="^")&&(y=`\\${y}`);let J=eee.exec(ie());J&&(y+=J[0],k.index+=J[0].length),ge({type:"text",value:y});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=y,v.output=j,k.backtrack=!0,k.globstar=!0,z(y);continue}let W=ie();if(r.noextglob!==!0&&/^\([^?]/.test(W)){cr("star",y);continue}if(v.type==="star"){if(r.noglobstar===!0){z(y);continue}let J=v.prev,I=J.prev,b=J.type==="slash"||J.type==="bos",B=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!b||W[0]&&W[0]!=="/")){ge({type:"star",value:y,output:""});continue}let L=k.braces>0&&(J.type==="comma"||J.type==="brace"),$=ee.length&&(J.type==="pipe"||J.type==="paren");if(!b&&J.type!=="paren"&&!L&&!$){ge({type:"star",value:y,output:""});continue}for(;W.slice(0,3)==="/**";){let Z=t[k.index+4];if(Z&&Z!=="/")break;W=W.slice(3),z("/**",3)}if(J.type==="bos"&&x()){v.type="globstar",v.value+=y,v.output=N(r),k.output=v.output,k.globstar=!0,z(y);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!B&&x()){k.output=k.output.slice(0,-(J.output+v.output).length),J.output=`(?:${J.output}`,v.type="globstar",v.output=N(r)+(r.strictSlashes?")":"|$)"),v.value+=y,k.globstar=!0,k.output+=J.output+v.output,z(y);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&W[0]==="/"){let Z=W[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(J.output+v.output).length),J.output=`(?:${J.output}`,v.type="globstar",v.output=`${N(r)}${f}|${f}${Z})`,v.value+=y,k.output+=J.output+v.output,k.globstar=!0,z(y+T()),ge({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&W[0]==="/"){v.type="globstar",v.value+=y,v.output=`(?:^|${f}|${N(r)}${f})`,k.output=v.output,k.globstar=!0,z(y+T()),ge({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-v.output.length),v.type="globstar",v.output=N(r),v.value+=y,k.output+=v.output,k.globstar=!0,z(y);continue}let Je={type:"star",value:y,output:j};if(r.bash===!0){Je.output=".*?",(v.type==="bos"||v.type==="slash")&&(Je.output=V+Je.output),ge(Je);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){Je.output=y,ge(Je);continue}(k.index===k.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(k.output+=C,v.output+=C):r.dot===!0?(k.output+=w,v.output+=w):(k.output+=V,v.output+=V),F()!=="*"&&(k.output+=d,v.output+=d)),ge(Je)}for(;k.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing","]"));k.output=Lr.escapeLast(k.output,"["),ht("brackets")}for(;k.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing",")"));k.output=Lr.escapeLast(k.output,"("),ht("parens")}for(;k.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(da("closing","}"));k.output=Lr.escapeLast(k.output,"{"),ht("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&ge({type:"maybe_slash",value:"",output:`${f}?`}),k.backtrack===!0){k.output="";for(let W of k.tokens)k.output+=W.output!=null?W.output:W.value,W.suffix&&(k.output+=W.suffix)}return k};HI.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(hd,r.maxLength):hd,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=ZF[t]||t;let s=Lr.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:A,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:u,NO_DOTS_SLASH:h,STAR:f,START_ANCHOR:d}=ud.globChars(s),E=r.dot?u:l,p=r.dot?h:l,C=r.capture?"":"?:",w={negated:!1,prefix:""},R=r.bash===!0?".*?":f;r.capture&&(R=`(${R})`);let S=V=>V.noglobstar===!0?R:`(${C}(?:(?!${d}${V.dot?c:o}).)*?)`,_=V=>{switch(V){case"*":return`${E}${a}${R}`;case".*":return`${o}${a}${R}`;case"*.*":return`${E}${R}${o}${a}${R}`;case"*/*":return`${E}${R}${A}${a}${p}${R}`;case"**":return E+S(r);case"**/*":return`(?:${E}${S(r)}${A})?${p}${a}${R}`;case"**/*.*":return`(?:${E}${S(r)}${A})?${p}${R}${o}${a}${R}`;case"**/.*":return`(?:${E}${S(r)}${A})?${o}${a}${R}`;default:{let M=/^(.*?)\.(\w+)$/.exec(V);if(!M)return;let j=_(M[1]);return j?j+o+M[2]:void 0}}},O=Lr.removePrefix(t,w),N=_(O);return N&&r.strictSlashes!==!0&&(N+=`${A}?`),N};$F.exports=HI});var e1=g((ike,XF)=>{"use strict";var nee=require("path"),iee=zF(),GI=KF(),qI=Eu(),see=gu(),oee=t=>t&&typeof t=="object"&&!Array.isArray(t),dt=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>dt(h,e,r));return h=>{for(let f of l){let d=f(h);if(d)return d}return!1}}let n=oee(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=qI.isWindows(e),o=n?dt.compileRe(t,e):dt.makeRe(t,e,!1,!0),A=o.state;delete o.state;let a=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=dt(i.ignore,l,r)}let c=(l,u=!1)=>{let{isMatch:h,match:f,output:d}=dt.test(l,o,e,{glob:t,posix:s}),E={glob:t,state:A,regex:o,posix:s,input:l,output:d,match:f,isMatch:h};return typeof i.onResult=="function"&&i.onResult(E),h===!1?(E.isMatch=!1,u?E:!1):a(l)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,u?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),u?E:!0)};return r&&(c.state=A),c};dt.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?qI.toPosixSlashes:null),A=t===n,a=A&&o?o(t):t;return A===!1&&(a=o?o(t):t,A=a===n),(A===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?A=dt.matchBase(t,e,r,i):A=e.exec(a)),{isMatch:!!A,match:A,output:a}};dt.matchBase=(t,e,r,n=qI.isWindows(r))=>(e instanceof RegExp?e:dt.makeRe(e,r)).test(nee.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)):GI(t,{...e,fastpaths:!1});dt.scan=(t,e)=>iee(t,e);dt.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",A=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(A=`^(?!${A}).*$`);let a=dt.toRegex(A,e);return n===!0&&(a.state=t),a};dt.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=GI.fastpaths(t,e)),i.output||(i=GI(t,e)),dt.compileRe(i,e,r,n)};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=see;XF.exports=dt});var r1=g((ske,t1)=>{"use strict";t1.exports=e1()});var a1=g((oke,A1)=>{"use strict";var i1=require("util"),s1=MF(),ti=r1(),YI=Eu(),n1=t=>t===""||t==="./",o1=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},$e=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,A=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let u=ti(String(e[l]),{...r,onResult:A},!0),h=u.state.negated||u.state.negatedExtglob;h&&o++;for(let f of t){let d=u(f,!0);(h?!d.isMatch:d.isMatch)&&(h?n.add(d.output):(n.delete(d.output),i.add(d.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.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(l=>l.replace(/\\/g,"")):e}return c};$e.match=$e;$e.matcher=(t,e)=>ti(t,e);$e.isMatch=(t,e,r)=>ti(e,r)(t);$e.any=$e.isMatch;$e.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=A=>{r.onResult&&r.onResult(A),i.push(A.output)},o=new Set($e(t,e,{...r,onResult:s}));for(let A of i)o.has(A)||n.add(A);return[...n]};$e.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${i1.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>$e.contains(t,n,r));if(typeof e=="string"){if(n1(t)||n1(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return $e.isMatch(t,e,{...r,contains:!0})};$e.matchKeys=(t,e,r)=>{if(!YI.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=$e(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};$e.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=ti(String(i),r);if(n.some(o=>s(o)))return!0}return!1};$e.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=ti(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};$e.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${i1.inspect(t)}"`);return[].concat(e).every(n=>ti(n,r)(t))};$e.capture=(t,e,r)=>{let n=YI.isWindows(r),s=ti.makeRe(String(t),{...r,capture:!0}).exec(n?YI.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};$e.makeRe=(...t)=>ti.makeRe(...t);$e.scan=(...t)=>ti.scan(...t);$e.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of s1(String(n),e))r.push(ti.parse(i,e));return r};$e.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!o1(t)?[t]:s1(t,e)};$e.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return $e.braces(t,{...e,expand:!0})};$e.hasBraces=o1;A1.exports=$e});var E1=g(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.matchAny=Ce.convertPatternsToRe=Ce.makeRe=Ce.getPatternParts=Ce.expandBraceExpansion=Ce.expandPatternsWithBraceExpansion=Ce.isAffectDepthOfReadingPattern=Ce.endsWithSlashGlobStar=Ce.hasGlobStar=Ce.getBaseDirectory=Ce.isPatternRelatedToParentDirectory=Ce.getPatternsOutsideCurrentDirectory=Ce.getPatternsInsideCurrentDirectory=Ce.getPositivePatterns=Ce.getNegativePatterns=Ce.isPositivePattern=Ce.isNegativePattern=Ce.convertToNegativePattern=Ce.convertToPositivePattern=Ce.isDynamicPattern=Ce.isStaticPattern=void 0;var Aee=require("path"),aee=eF(),VI=a1(),c1="**",cee="\\",lee=/[*?]|^!/,uee=/\[[^[]*]/,hee=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fee=/[!*+?@]\([^(]*\)/,dee=/,|\.\./;function l1(t,e={}){return!u1(t,e)}Ce.isStaticPattern=l1;function u1(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(cee)||lee.test(t)||uee.test(t)||hee.test(t)||e.extglob!==!1&&fee.test(t)||e.braceExpansion!==!1&&gee(t))}Ce.isDynamicPattern=u1;function gee(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return dee.test(n)}function Eee(t){return fd(t)?t.slice(1):t}Ce.convertToPositivePattern=Eee;function pee(t){return"!"+t}Ce.convertToNegativePattern=pee;function fd(t){return t.startsWith("!")&&t[1]!=="("}Ce.isNegativePattern=fd;function h1(t){return!fd(t)}Ce.isPositivePattern=h1;function Cee(t){return t.filter(fd)}Ce.getNegativePatterns=Cee;function mee(t){return t.filter(h1)}Ce.getPositivePatterns=mee;function Iee(t){return t.filter(e=>!JI(e))}Ce.getPatternsInsideCurrentDirectory=Iee;function Bee(t){return t.filter(JI)}Ce.getPatternsOutsideCurrentDirectory=Bee;function JI(t){return t.startsWith("..")||t.startsWith("./..")}Ce.isPatternRelatedToParentDirectory=JI;function Qee(t){return aee(t,{flipBackslashes:!1})}Ce.getBaseDirectory=Qee;function yee(t){return t.includes(c1)}Ce.hasGlobStar=yee;function f1(t){return t.endsWith("/"+c1)}Ce.endsWithSlashGlobStar=f1;function wee(t){let e=Aee.basename(t);return f1(t)||l1(e)}Ce.isAffectDepthOfReadingPattern=wee;function bee(t){return t.reduce((e,r)=>e.concat(d1(r)),[])}Ce.expandPatternsWithBraceExpansion=bee;function d1(t){return VI.braces(t,{expand:!0,nodupes:!0})}Ce.expandBraceExpansion=d1;function See(t,e){let{parts:r}=VI.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}Ce.getPatternParts=See;function g1(t,e){return VI.makeRe(t,e)}Ce.makeRe=g1;function Ree(t,e){return t.map(r=>g1(r,e))}Ce.convertPatternsToRe=Ree;function vee(t,e){return e.some(r=>r.test(t))}Ce.matchAny=vee});var I1=g((ake,m1)=>{"use strict";var kee=require("stream"),p1=kee.PassThrough,_ee=Array.prototype.slice;m1.exports=Dee;function Dee(){let t=[],e=_ee.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=p1(n);function A(){for(let l=0,u=arguments.length;l<u;l++)t.push(C1(arguments[l],n));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let u=l.length+1;function h(){--u>0||(r=!1,a())}function f(d){function E(){d.removeListener("merge2UnpipeEnd",E),d.removeListener("end",E),s&&d.removeListener("error",p),h()}function p(C){o.emit("error",C)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",E),d.on("end",E),s&&d.on("error",p),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<l.length;d++)f(l[d]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=A,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&A.apply(null,e),o}function C1(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=C1(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(p1(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Q1=g(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.merge=void 0;var xee=I1();function Fee(t){let e=xee(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>B1(t)),e.once("end",()=>B1(t)),e}dd.merge=Fee;function B1(t){t.forEach(e=>e.emit("close"))}});var y1=g(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.isEmpty=ga.isString=void 0;function Nee(t){return typeof t=="string"}ga.isString=Nee;function Tee(t){return t===""}ga.isEmpty=Tee});var Mi=g(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.string=zt.stream=zt.pattern=zt.path=zt.fs=zt.errno=zt.array=void 0;var Mee=Yx();zt.array=Mee;var Lee=Vx();zt.errno=Lee;var Uee=Jx();zt.fs=Uee;var Oee=Wx();zt.path=Oee;var Pee=E1();zt.pattern=Pee;var Hee=Q1();zt.stream=Hee;var Gee=y1();zt.string=Gee});var S1=g(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.convertPatternGroupToTask=Zt.convertPatternGroupsToTasks=Zt.groupPatternsByBaseDirectory=Zt.getNegativePatternsAsPositive=Zt.getPositivePatterns=Zt.convertPatternsToTasks=Zt.generate=void 0;var Li=Mi();function qee(t,e){let r=w1(t),n=b1(t,e.ignore),i=r.filter(a=>Li.pattern.isStaticPattern(a,e)),s=r.filter(a=>Li.pattern.isDynamicPattern(a,e)),o=WI(i,n,!1),A=WI(s,n,!0);return o.concat(A)}Zt.generate=qee;function WI(t,e,r){let n=[],i=Li.pattern.getPatternsOutsideCurrentDirectory(t),s=Li.pattern.getPatternsInsideCurrentDirectory(t),o=jI(i),A=jI(s);return n.push(...zI(o,e,r)),"."in A?n.push(ZI(".",s,e,r)):n.push(...zI(A,e,r)),n}Zt.convertPatternsToTasks=WI;function w1(t){return Li.pattern.getPositivePatterns(t)}Zt.getPositivePatterns=w1;function b1(t,e){return Li.pattern.getNegativePatterns(t).concat(e).map(Li.pattern.convertToPositivePattern)}Zt.getNegativePatternsAsPositive=b1;function jI(t){let e={};return t.reduce((r,n)=>{let i=Li.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}Zt.groupPatternsByBaseDirectory=jI;function zI(t,e,r){return Object.keys(t).map(n=>ZI(n,t[n],e,r))}Zt.convertPatternGroupsToTasks=zI;function ZI(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Li.pattern.convertToNegativePattern))}}Zt.convertPatternGroupToTask=ZI});var v1=g(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.removeDuplicateSlashes=Ea.transform=void 0;var Yee=/(?!^)\/{2,}/g;function Vee(t){return t.map(e=>R1(e))}Ea.transform=Vee;function R1(t){return t.replace(Yee,"/")}Ea.removeDuplicateSlashes=R1});var _1=g(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.read=void 0;function Jee(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){k1(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){$I(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){k1(r,s);return}$I(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),$I(r,o)})})}gd.read=Jee;function k1(t,e){t(e)}function $I(t,e){t(null,e)}});var D1=g(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.read=void 0;function Wee(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ed.read=Wee});var x1=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.createFileSystemAdapter=Ss.FILE_SYSTEM_ADAPTER=void 0;var pd=require("fs");Ss.FILE_SYSTEM_ADAPTER={lstat:pd.lstat,stat:pd.stat,lstatSync:pd.lstatSync,statSync:pd.statSync};function jee(t){return t===void 0?Ss.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ss.FILE_SYSTEM_ADAPTER),t)}Ss.createFileSystemAdapter=jee});var F1=g(XI=>{"use strict";Object.defineProperty(XI,"__esModule",{value:!0});var zee=x1(),KI=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zee.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!=null?e:r}};XI.default=KI});var Uo=g(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.statSync=Rs.stat=Rs.Settings=void 0;var N1=_1(),Zee=D1(),eB=F1();Rs.Settings=eB.default;function $ee(t,e,r){if(typeof e=="function"){N1.read(t,tB(),e);return}N1.read(t,tB(e),r)}Rs.stat=$ee;function Kee(t,e){let r=tB(e);return Zee.read(t,r)}Rs.statSync=Kee;function tB(t={}){return t instanceof eB.default?t:new eB.default(t)}});var L1=g((mke,M1)=>{"use strict";var T1;M1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(T1||(T1=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var O1=g((Ike,U1)=>{"use strict";U1.exports=ete;var Xee=L1();function ete(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(a){function c(){e&&e(a,r),e=null}s?Xee(c):c()}function A(a,c,l){r[a]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){t[a](function(c,l){A(a,c,l)})}):t.forEach(function(a,c){a(function(l,u){A(c,l,u)})}):o(null),s=!1}});var rB=g(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cd=process.versions.node.split(".");if(Cd[0]===void 0||Cd[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var P1=Number.parseInt(Cd[0],10),tte=Number.parseInt(Cd[1],10),H1=10,rte=10,nte=P1>H1,ite=P1===H1&&tte>=rte;md.IS_SUPPORT_READDIR_WITH_FILE_TYPES=nte||ite});var G1=g(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.createDirentFromStats=void 0;var nB=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 ste(t,e){return new nB(t,e)}Id.createDirentFromStats=ste});var iB=g(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.fs=void 0;var ote=G1();Bd.fs=ote});var sB=g(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.joinPathSegments=void 0;function Ate(t,e,r){return t.endsWith(r)?t+e:t+r+e}Qd.joinPathSegments=Ate});var j1=g(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.readdir=vs.readdirWithFileTypes=vs.read=void 0;var ate=Uo(),q1=O1(),cte=rB(),Y1=iB(),V1=sB();function lte(t,e,r){if(!e.stats&&cte.IS_SUPPORT_READDIR_WITH_FILE_TYPES){J1(t,e,r);return}W1(t,e,r)}vs.read=lte;function J1(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){yd(r,n);return}let s=i.map(A=>({dirent:A,name:A.name,path:V1.joinPathSegments(t,A.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){oB(r,s);return}let o=s.map(A=>ute(A,e));q1(o,(A,a)=>{if(A!==null){yd(r,A);return}oB(r,a)})})}vs.readdirWithFileTypes=J1;function ute(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Y1.fs.createDirentFromStats(t.name,i),r(null,t)})}}function W1(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){yd(r,n);return}let s=i.map(o=>{let A=V1.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{ate.stat(A,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let u={name:o,path:A,dirent:Y1.fs.createDirentFromStats(o,l)};e.stats&&(u.stats=l),a(null,u)})}});q1(s,(o,A)=>{if(o!==null){yd(r,o);return}oB(r,A)})})}vs.readdir=W1;function yd(t,e){t(e)}function oB(t,e){t(null,e)}});var X1=g(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.readdir=ks.readdirWithFileTypes=ks.read=void 0;var hte=Uo(),fte=rB(),z1=iB(),Z1=sB();function dte(t,e){return!e.stats&&fte.IS_SUPPORT_READDIR_WITH_FILE_TYPES?$1(t,e):K1(t,e)}ks.read=dte;function $1(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Z1.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=z1.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}ks.readdirWithFileTypes=$1;function K1(t,e){return e.fs.readdirSync(t).map(n=>{let i=Z1.joinPathSegments(t,n,e.pathSegmentSeparator),s=hte.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:z1.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}ks.readdir=K1});var eN=g(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createFileSystemAdapter=_s.FILE_SYSTEM_ADAPTER=void 0;var pa=require("fs");_s.FILE_SYSTEM_ADAPTER={lstat:pa.lstat,stat:pa.stat,lstatSync:pa.lstatSync,statSync:pa.statSync,readdir:pa.readdir,readdirSync:pa.readdirSync};function gte(t){return t===void 0?_s.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},_s.FILE_SYSTEM_ADAPTER),t)}_s.createFileSystemAdapter=gte});var tN=g(aB=>{"use strict";Object.defineProperty(aB,"__esModule",{value:!0});var Ete=require("path"),pte=Uo(),Cte=eN(),AB=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Cte.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ete.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new pte.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};aB.default=AB});var wd=g(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.Settings=Ds.scandirSync=Ds.scandir=void 0;var rN=j1(),mte=X1(),cB=tN();Ds.Settings=cB.default;function Ite(t,e,r){if(typeof e=="function"){rN.read(t,lB(),e);return}rN.read(t,lB(e),r)}Ds.scandir=Ite;function Bte(t,e){let r=lB(e);return mte.read(t,r)}Ds.scandirSync=Bte;function lB(t={}){return t instanceof cB.default?t:new cB.default(t)}});var iN=g((_ke,nN)=>{"use strict";function Qte(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}nN.exports=Qte});var oN=g((Dke,uB)=>{"use strict";var yte=iN();function sN(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 n=yte(wte),i=null,s=null,o=0,A=null,a={push:E,drain:nn,saturated:nn,pause:l,paused:!1,concurrency:r,running:c,resume:f,idle:d,length:u,getQueue:h,unshift:p,empty:nn,kill:w,killAndDrain:R,error:S};return a;function c(){return o}function l(){a.paused=!0}function u(){for(var _=i,O=0;_;)_=_.next,O++;return O}function h(){for(var _=i,O=[];_;)O.push(_.value),_=_.next;return O}function f(){if(a.paused){a.paused=!1;for(var _=0;_<a.concurrency;_++)o++,C()}}function d(){return o===0&&a.length()===0}function E(_,O){var N=n.get();N.context=t,N.release=C,N.value=_,N.callback=O||nn,N.errorHandler=A,o===a.concurrency||a.paused?s?(s.next=N,s=N):(i=N,s=N,a.saturated()):(o++,e.call(t,N.value,N.worked))}function p(_,O){var N=n.get();N.context=t,N.release=C,N.value=_,N.callback=O||nn,o===a.concurrency||a.paused?i?(N.next=i,i=N):(i=N,s=N,a.saturated()):(o++,e.call(t,N.value,N.worked))}function C(_){_&&n.release(_);var O=i;O?a.paused?o--:(s===i&&(s=null),i=O.next,O.next=null,e.call(t,O.value,O.worked),s===null&&a.empty()):--o===0&&a.drain()}function w(){i=null,s=null,a.drain=nn}function R(){i=null,s=null,a.drain(),a.drain=nn}function S(_){A=_}}function nn(){}function wte(){this.value=null,this.callback=nn,this.next=null,this.release=nn,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=nn,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function bte(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,u){e.call(this,l).then(function(h){u(null,h)},u)}var i=sN(t,n,r),s=i.push,o=i.unshift;return i.push=A,i.unshift=a,i.drained=c,i;function A(l){var u=new Promise(function(h,f){s(l,function(d,E){if(d){f(d);return}h(E)})});return u.catch(nn),u}function a(l){var u=new Promise(function(h,f){o(l,function(d,E){if(d){f(d);return}h(E)})});return u.catch(nn),u}function c(){var l=i.drain,u=new Promise(function(h){i.drain=function(){l(),h()}});return u}}uB.exports=sN;uB.exports.promise=bte});var bd=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.joinPathSegments=ri.replacePathSegmentSeparator=ri.isAppliedFilter=ri.isFatalError=void 0;function Ste(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}ri.isFatalError=Ste;function Rte(t,e){return t===null||t(e)}ri.isAppliedFilter=Rte;function vte(t,e){return t.split(/[/\\]/).join(e)}ri.replacePathSegmentSeparator=vte;function kte(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}ri.joinPathSegments=kte});var dB=g(fB=>{"use strict";Object.defineProperty(fB,"__esModule",{value:!0});var _te=bd(),hB=class{constructor(e,r){this._root=e,this._settings=r,this._root=_te.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};fB.default=hB});var pB=g(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});var Dte=require("events"),xte=wd(),Fte=oN(),Sd=bd(),Nte=dB(),gB=class extends Nte.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xte.scandir,this._emitter=new Dte.EventEmitter,this._queue=Fte(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 n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Sd.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 n=e.path;r!==void 0&&(e.path=Sd.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Sd.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Sd.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};EB.default=gB});var AN=g(mB=>{"use strict";Object.defineProperty(mB,"__esModule",{value:!0});var Tte=pB(),CB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Tte.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Mte(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Lte(e,this._storage)}),this._reader.read()}};mB.default=CB;function Mte(t,e){t(e)}function Lte(t,e){t(null,e)}});var aN=g(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});var Ute=require("stream"),Ote=pB(),IB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ote.default(this._root,this._settings),this._stream=new Ute.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}};BB.default=IB});var cN=g(yB=>{"use strict";Object.defineProperty(yB,"__esModule",{value:!0});var Pte=wd(),Rd=bd(),Hte=dB(),QB=class extends Hte.default{constructor(){super(...arguments),this._scandir=Pte.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 n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Rd.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Rd.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Rd.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Rd.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};yB.default=QB});var lN=g(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});var Gte=cN(),wB=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Gte.default(this._root,this._settings)}read(){return this._reader.read()}};bB.default=wB});var uN=g(RB=>{"use strict";Object.defineProperty(RB,"__esModule",{value:!0});var qte=require("path"),Yte=wd(),SB=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,qte.sep),this.fsScandirSettings=new Yte.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!=null?e:r}};RB.default=SB});var kd=g(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.Settings=ni.walkStream=ni.walkSync=ni.walk=void 0;var hN=AN(),Vte=aN(),Jte=lN(),vB=uN();ni.Settings=vB.default;function Wte(t,e,r){if(typeof e=="function"){new hN.default(t,vd()).read(e);return}new hN.default(t,vd(e)).read(r)}ni.walk=Wte;function jte(t,e){let r=vd(e);return new Jte.default(t,r).read()}ni.walkSync=jte;function zte(t,e){let r=vd(e);return new Vte.default(t,r).read()}ni.walkStream=zte;function vd(t={}){return t instanceof vB.default?t:new vB.default(t)}});var _d=g(_B=>{"use strict";Object.defineProperty(_B,"__esModule",{value:!0});var Zte=require("path"),$te=Uo(),fN=Mi(),kB=class{constructor(e){this._settings=e,this._fsStatSettings=new $te.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Zte.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:fN.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!fN.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};_B.default=kB});var FB=g(xB=>{"use strict";Object.defineProperty(xB,"__esModule",{value:!0});var Kte=require("stream"),Xte=Uo(),ere=kd(),tre=_d(),DB=class extends tre.default{constructor(){super(...arguments),this._walkStream=ere.walkStream,this._stat=Xte.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Kte.PassThrough({objectMode:!0});i._write=(s,o,A)=>this._getEntry(n[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),s===n.length-1&&i.end(),A()}).catch(A);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};xB.default=DB});var dN=g(TB=>{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});var rre=kd(),nre=_d(),ire=FB(),NB=class extends nre.default{constructor(){super(...arguments),this._walkAsync=rre.walk,this._readerStream=new ire.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",A=>n.push(A)),i.once("end",()=>s(n))})}};TB.default=NB});var gN=g(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});var Ca=Mi(),MB=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ca.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Ca.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Ca.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ca.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Ca.array.splitWhen(e,r=>r.dynamic&&Ca.pattern.hasGlobStar(r.pattern))}};LB.default=MB});var EN=g(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});var sre=gN(),UB=class extends sre.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};OB.default=UB});var pN=g(HB=>{"use strict";Object.defineProperty(HB,"__esModule",{value:!0});var Dd=Mi(),ore=EN(),PB=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new ore.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Dd.pattern.isAffectDepthOfReadingPattern);return Dd.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Dd.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Dd.pattern.matchAny(e,r)}};HB.default=PB});var CN=g(qB=>{"use strict";Object.defineProperty(qB,"__esModule",{value:!0});var Oo=Mi(),GB=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=Oo.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Oo.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_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 n=Oo.path.makeAbsolute(this._settings.cwd,e);return Oo.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=Oo.path.removeLeadingDotSegment(e),s=Oo.pattern.matchAny(i,r);return!s&&n?Oo.pattern.matchAny(i+"/",r):s}};qB.default=GB});var mN=g(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});var Are=Mi(),YB=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Are.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};VB.default=YB});var BN=g(WB=>{"use strict";Object.defineProperty(WB,"__esModule",{value:!0});var IN=Mi(),JB=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=IN.path.makeAbsolute(this._settings.cwd,r),r=IN.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};WB.default=JB});var xd=g(zB=>{"use strict";Object.defineProperty(zB,"__esModule",{value:!0});var are=require("path"),cre=pN(),lre=CN(),ure=mN(),hre=BN(),jB=class{constructor(e){this._settings=e,this.errorFilter=new ure.default(this._settings),this.entryFilter=new lre.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new cre.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hre.default(this._settings)}_getRootDirectory(e){return are.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}}};zB.default=jB});var QN=g($B=>{"use strict";Object.defineProperty($B,"__esModule",{value:!0});var fre=dN(),dre=xd(),ZB=class extends dre.default{constructor(){super(...arguments),this._reader=new fre.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};$B.default=ZB});var yN=g(XB=>{"use strict";Object.defineProperty(XB,"__esModule",{value:!0});var gre=require("stream"),Ere=FB(),pre=xd(),KB=class extends pre.default{constructor(){super(...arguments),this._reader=new Ere.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new gre.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};XB.default=KB});var wN=g(tQ=>{"use strict";Object.defineProperty(tQ,"__esModule",{value:!0});var Cre=Uo(),mre=kd(),Ire=_d(),eQ=class extends Ire.default{constructor(){super(...arguments),this._walkSync=mre.walkSync,this._statSync=Cre.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};tQ.default=eQ});var bN=g(nQ=>{"use strict";Object.defineProperty(nQ,"__esModule",{value:!0});var Bre=wN(),Qre=xd(),rQ=class extends Qre.default{constructor(){super(...arguments),this._reader=new Bre.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};nQ.default=rQ});var SN=g(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ma=require("fs"),yre=require("os"),wre=Math.max(yre.cpus().length,1);Ia.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ma.lstat,lstatSync:ma.lstatSync,stat:ma.stat,statSync:ma.statSync,readdir:ma.readdir,readdirSync:ma.readdirSync};var iQ=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,wre),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({},Ia.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Ia.default=iQ});var _N=g((r_e,kN)=>{"use strict";var RN=S1(),vN=v1(),bre=QN(),Sre=yN(),Rre=bN(),sQ=SN(),Po=Mi();async function oQ(t,e){Ba(t);let r=AQ(t,bre.default,e),n=await Promise.all(r);return Po.array.flatten(n)}(function(t){function e(o,A){Ba(o);let a=AQ(o,Rre.default,A);return Po.array.flatten(a)}t.sync=e;function r(o,A){Ba(o);let a=AQ(o,Sre.default,A);return Po.stream.merge(a)}t.stream=r;function n(o,A){Ba(o);let a=vN.transform([].concat(o)),c=new sQ.default(A);return RN.generate(a,c)}t.generateTasks=n;function i(o,A){Ba(o);let a=new sQ.default(A);return Po.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=i;function s(o){return Ba(o),Po.path.escape(o)}t.escapePath=s})(oQ||(oQ={}));function AQ(t,e,r){let n=vN.transform([].concat(t)),i=new sQ.default(r),s=RN.generate(n,i),o=new e(i);return s.map(o.read,o)}function Ba(t){if(![].concat(t).every(n=>Po.string.isString(n)&&!Po.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kN.exports=oQ});var Nd=g((n_e,aQ)=>{"use strict";var DN=process.argv||[],Fd=process.env,vre=!("NO_COLOR"in Fd||DN.includes("--no-color"))&&("FORCE_COLOR"in Fd||DN.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&Fd.TERM!=="dumb"||"CI"in Fd),kre=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+_re(i,e,r,s)+e:t+i+e},_re=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},xN=(t=vre)=>{let e=t?kre:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};aQ.exports=xN();aQ.exports.createColors=xN});var NN=g((i_e,FN)=>{"use strict";FN.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 cQ=g((s_e,MN)=>{"use strict";var Cu=NN(),TN={};for(let t of Object.keys(Cu))TN[Cu[t]]=t;var re={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"]}};MN.exports=re;for(let t of Object.keys(re)){if(!("channels"in re[t]))throw new Error("missing channels property: "+t);if(!("labels"in re[t]))throw new Error("missing channel labels property: "+t);if(re[t].labels.length!==re[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=re[t];delete re[t].channels,delete re[t].labels,Object.defineProperty(re[t],"channels",{value:e}),Object.defineProperty(re[t],"labels",{value:r})}re.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,A,a;s===i?A=0:e===s?A=(r-n)/o:r===s?A=2+(n-e)/o:n===s&&(A=4+(e-r)/o),A=Math.min(A*60,360),A<0&&(A+=360);let c=(i+s)/2;return s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[A,a*100,c*100]};re.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,A=t[1]/255,a=t[2]/255,c=Math.max(o,A,a),l=c-Math.min(o,A,a),u=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,e=u(o),r=u(A),n=u(a),o===c?i=n-r:A===c?i=1/3+e-n:a===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};re.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=re.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};re.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,A=(1-n-i)/(1-i)||0;return[s*100,o*100,A*100,i*100]};function Dre(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}re.rgb.keyword=function(t){let e=TN[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Cu)){let s=Cu[i],o=Dre(t,s);o<r&&(r=o,n=i)}return n};re.keyword.rgb=function(t){return Cu[t]};re.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};re.rgb.lab=function(t){let e=re.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),A=200*(n-i);return[s,o,A]};re.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let A=2*n-i,a=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=A+(i-A)*6*s:2*s<1?o=i:3*s<2?o=A+(i-A)*(2/3-s)*6:o=A,a[c]=o*255;return a};re.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,A=n===0?2*i/(s+i):2*r/(n+r);return[e,A*100,o*100]};re.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),A=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[A,n,o];case 2:return[o,n,a];case 3:return[o,A,n];case 4:return[a,o,n];case 5:return[n,o,A]}};re.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let A=(2-r)*i;return s=r*i,s/=A<=1?A:2-A,s=s||0,o/=2,[e,s*100,o*100]};re.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),A=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let a=r+s*(A-r),c,l,u;switch(o){default:case 6:case 0:c=A,l=a,u=r;break;case 1:c=a,l=A,u=r;break;case 2:c=r,l=A,u=a;break;case 3:c=r,l=a,u=A;break;case 4:c=a,l=r,u=A;break;case 5:c=A,l=r,u=a;break}return[c*255,l*255,u*255]};re.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),A=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,A*255]};re.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};re.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};re.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let A=s**3,a=i**3,c=o**3;return s=A>.008856?A:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};re.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};re.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};re.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?re.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};re.hsv.ansi16=function(t){return re.rgb.ansi16(re.hsv.rgb(t),t[2])};re.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};re.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};re.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};re.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};re.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(A=>A+A).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};re.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,A,a;return o<1?A=s/(1-o):A=0,o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,A*100]};re.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};re.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};re.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,A=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=A,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=A,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=A}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};re.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};re.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};re.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};re.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};re.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};re.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};re.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};re.gray.hsl=function(t){return[0,0,t[0]]};re.gray.hsv=re.gray.hsl;re.gray.hwb=function(t){return[0,100,t[0]]};re.gray.cmyk=function(t){return[0,0,0,t[0]]};re.gray.lab=function(t){return[t[0],0,0]};re.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};re.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var UN=g((o_e,LN)=>{"use strict";var Td=cQ();function xre(){let t={},e=Object.keys(Td);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Fre(t){let e=xre(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Td[n]);for(let s=i.length,o=0;o<s;o++){let A=i[o],a=e[A];a.distance===-1&&(a.distance=e[n].distance+1,a.parent=n,r.unshift(A))}}return e}function Nre(t,e){return function(r){return e(t(r))}}function Tre(t,e){let r=[e[t].parent,t],n=Td[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Nre(Td[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}LN.exports=function(t){let e=Fre(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Tre(o,e))}return r}});var PN=g((A_e,ON)=>{"use strict";var lQ=cQ(),Mre=UN(),Qa={},Lre=Object.keys(lQ);function Ure(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ore(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Lre.forEach(t=>{Qa[t]={},Object.defineProperty(Qa[t],"channels",{value:lQ[t].channels}),Object.defineProperty(Qa[t],"labels",{value:lQ[t].labels});let e=Mre(t);Object.keys(e).forEach(n=>{let i=e[n];Qa[t][n]=Ore(i),Qa[t][n].raw=Ure(i)})});ON.exports=Qa});var hQ=g((a_e,VN)=>{"use strict";var HN=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,GN=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},qN=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Md=t=>t,YN=(t,e,r)=>[t,e,r],ya=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},uQ,wa=(t,e,r,n)=>{uQ===void 0&&(uQ=PN());let i=n?10:0,s={};for(let[o,A]of Object.entries(uQ)){let a=o==="ansi16"?"ansi":o;o===e?s[a]=t(r,i):typeof A=="object"&&(s[a]=t(A[e],i))}return s};function Pre(){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],blackBright:[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.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ya(e.color,"ansi",()=>wa(HN,"ansi16",Md,!1)),ya(e.color,"ansi256",()=>wa(GN,"ansi256",Md,!1)),ya(e.color,"ansi16m",()=>wa(qN,"rgb",YN,!1)),ya(e.bgColor,"ansi",()=>wa(HN,"ansi16",Md,!0)),ya(e.bgColor,"ansi256",()=>wa(GN,"ansi256",Md,!0)),ya(e.bgColor,"ansi16m",()=>wa(qN,"rgb",YN,!0)),e}Object.defineProperty(VN,"exports",{enumerable:!0,get:Pre})});var WN=g((c_e,JN)=>{"use strict";JN.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var gQ=g((l_e,zN)=>{"use strict";var Hre=require("os"),jN=require("tty"),sn=WN(),{env:xt}=process,xs;sn("no-color")||sn("no-colors")||sn("color=false")||sn("color=never")?xs=0:(sn("color")||sn("colors")||sn("color=true")||sn("color=always"))&&(xs=1);"FORCE_COLOR"in xt&&(xt.FORCE_COLOR==="true"?xs=1:xt.FORCE_COLOR==="false"?xs=0:xs=xt.FORCE_COLOR.length===0?1:Math.min(parseInt(xt.FORCE_COLOR,10),3));function fQ(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function dQ(t,e){if(xs===0)return 0;if(sn("color=16m")||sn("color=full")||sn("color=truecolor"))return 3;if(sn("color=256"))return 2;if(t&&!e&&xs===void 0)return 0;let r=xs||0;if(xt.TERM==="dumb")return r;if(process.platform==="win32"){let n=Hre.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in xt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in xt)||xt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in xt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xt.TEAMCITY_VERSION)?1:0;if(xt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in xt){let n=parseInt((xt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xt.TERM)||"COLORTERM"in xt?1:r}function Gre(t){let e=dQ(t,t&&t.isTTY);return fQ(e)}zN.exports={supportsColor:Gre,stdout:fQ(dQ(!0,jN.isatty(1))),stderr:fQ(dQ(!0,jN.isatty(2)))}});var $N=g((u_e,ZN)=>{"use strict";var qre=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Yre=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
30
30
|
`:`
|
|
31
31
|
`)+r,i=n+1,n=t.indexOf(`
|
|
32
|
-
`,i)}while(n!==-1);return s+=t.substr(i),s};
|
|
33
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function eT(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):jre.get(t)||t}function zre(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Jre))r.push(i[2].replace(Wre,(A,a,c)=>a?eT(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Zre(t){
|
|
34
|
-
`);return s!==-1&&(e=Kre(e,i,n,s)),n+e+i},EQ,rne=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return EQ===void 0&&(EQ=rT()),EQ(t,i.join(""))};Object.defineProperties(Ld.prototype,ba);var Iu=Ld();Iu.supportsColor=pQ;Iu.stderr=Ld({level:CQ?CQ.level:0});Iu.stderr.supportsColor=CQ;Iu.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};oT.exports=Iu});var cT=g((d_e,BQ)=>{"use strict";var aT=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};BQ.exports=aT;BQ.exports.default=aT});var QQ=g((g_e,Pd)=>{"use strict";var nne=cT(),Od=new WeakMap,lT=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Od.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return nne(s,t),Od.set(s,n),s};Pd.exports=lT;Pd.exports.default=lT;Pd.exports.callCount=t=>{if(!Od.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Od.get(t)}});var uT=g((E_e,Hd)=>{"use strict";Hd.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Hd.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Hd.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bQ=g((p_e,va)=>{"use strict";var nt=global.process,Ho=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ho(nt)?(hT=require("assert"),Sa=uT(),fT=/^win/i.test(nt.platform),Bu=require("events"),typeof Bu!="function"&&(Bu=Bu.EventEmitter),nt.__signal_exit_emitter__?Ft=nt.__signal_exit_emitter__:(Ft=nt.__signal_exit_emitter__=new Bu,Ft.count=0,Ft.emitted={}),Ft.infinite||(Ft.setMaxListeners(1/0),Ft.infinite=!0),va.exports=function(t,e){if(!Ho(global.process))return function(){};hT.equal(typeof t,"function","a callback must be provided for exit handler"),Ra===!1&&yQ();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ft.removeListener(r,t),Ft.listeners("exit").length===0&&Ft.listeners("afterexit").length===0&&Gd()};return Ft.on(r,t),n},Gd=function(){!Ra||!Ho(global.process)||(Ra=!1,Sa.forEach(function(e){try{nt.removeListener(e,qd[e])}catch{}}),nt.emit=Yd,nt.reallyExit=wQ,Ft.count-=1)},va.exports.unload=Gd,Go=function(e,r,n){Ft.emitted[e]||(Ft.emitted[e]=!0,Ft.emit(e,r,n))},qd={},Sa.forEach(function(t){qd[t]=function(){if(Ho(global.process)){var r=nt.listeners(t);r.length===Ft.count&&(Gd(),Go("exit",null,t),Go("afterexit",null,t),fT&&t==="SIGHUP"&&(t="SIGINT"),nt.kill(nt.pid,t))}}}),va.exports.signals=function(){return Sa},Ra=!1,yQ=function(){Ra||!Ho(global.process)||(Ra=!0,Ft.count+=1,Sa=Sa.filter(function(e){try{return nt.on(e,qd[e]),!0}catch{return!1}}),nt.emit=gT,nt.reallyExit=dT)},va.exports.load=yQ,wQ=nt.reallyExit,dT=function(e){Ho(global.process)&&(nt.exitCode=e||0,Go("exit",nt.exitCode,null),Go("afterexit",nt.exitCode,null),wQ.call(nt,nt.exitCode))},Yd=nt.emit,gT=function(e,r){if(e==="exit"&&Ho(global.process)){r!==void 0&&(nt.exitCode=r);var n=Yd.apply(this,arguments);return Go("exit",nt.exitCode,null),Go("afterexit",nt.exitCode,null),n}else return Yd.apply(this,arguments)}):va.exports=function(){return function(){}};var hT,Sa,fT,Bu,Ft,Gd,Go,qd,Ra,yQ,wQ,dT,Yd,gT});var pT=g((C_e,ET)=>{"use strict";var ine=QQ(),sne=bQ();ET.exports=ine(()=>{sne(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var CT=g(ka=>{"use strict";var one=pT(),Vd=!1;ka.show=(t=process.stderr)=>{t.isTTY&&(Vd=!1,t.write("\x1B[?25h"))};ka.hide=(t=process.stderr)=>{t.isTTY&&(one(),Vd=!0,t.write("\x1B[?25l"))};ka.toggle=(t,e)=>{t!==void 0&&(Vd=t),Vd?ka.show(e):ka.hide(e)}});var mT=g((I_e,Ane)=>{Ane.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var QT=g((B_e,BT)=>{"use strict";var Jd=Object.assign({},mT()),IT=Object.keys(Jd);Object.defineProperty(Jd,"random",{get(){let t=Math.floor(Math.random()*IT.length),e=IT[t];return Jd[e]}});BT.exports=Jd});var wT=g((Q_e,yT)=>{"use strict";var ane=/[|\\{}()[\]^$+*?.]/g;yT.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(ane,"\\$&")}});var ST=g((y_e,bT)=>{"use strict";bT.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 SQ=g((w_e,_T)=>{"use strict";var qo=ST(),kT={};for(Wd in qo)qo.hasOwnProperty(Wd)&&(kT[qo[Wd]]=Wd);var Wd,ne=_T.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(ur in ne)if(ne.hasOwnProperty(ur)){if(!("channels"in ne[ur]))throw new Error("missing channels property: "+ur);if(!("labels"in ne[ur]))throw new Error("missing channel labels property: "+ur);if(ne[ur].labels.length!==ne[ur].channels)throw new Error("channel and label counts mismatch: "+ur);RT=ne[ur].channels,vT=ne[ur].labels,delete ne[ur].channels,delete ne[ur].labels,Object.defineProperty(ne[ur],"channels",{value:RT}),Object.defineProperty(ne[ur],"labels",{value:vT})}var RT,vT,ur;ne.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,A,a,c;return s===i?A=0:e===s?A=(r-n)/o:r===s?A=2+(n-e)/o:n===s&&(A=4+(e-r)/o),A=Math.min(A*60,360),A<0&&(A+=360),c=(i+s)/2,s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[A,a*100,c*100]};ne.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,A=t[1]/255,a=t[2]/255,c=Math.max(o,A,a),l=c-Math.min(o,A,a),u=function(h){return(c-h)/6/l+1/2};return l===0?i=s=0:(s=l/c,e=u(o),r=u(A),n=u(a),o===c?i=n-r:A===c?i=1/3+e-n:a===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};ne.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=ne.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};ne.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,A;return A=Math.min(1-e,1-r,1-n),i=(1-e-A)/(1-A)||0,s=(1-r-A)/(1-A)||0,o=(1-n-A)/(1-A)||0,[i*100,s*100,o*100,A*100]};function cne(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}ne.rgb.keyword=function(t){var e=kT[t];if(e)return e;var r=1/0,n;for(var i in qo)if(qo.hasOwnProperty(i)){var s=qo[i],o=cne(t,s);o<r&&(r=o,n=i)}return n};ne.keyword.rgb=function(t){return qo[t]};ne.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=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,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};ne.rgb.lab=function(t){var e=ne.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,A;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),A=200*(n-i),[s,o,A]};ne.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,A,a;if(r===0)return a=n*255,[a,a,a];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,A=[0,0,0];for(var c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=i+(s-i)*6*o:2*o<1?a=s:3*o<2?a=i+(s-i)*(2/3-o)*6:a=i,A[c]=a*255;return A};ne.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,A;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,A=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,A*100]};ne.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),A=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[A,n,o];case 2:return[o,n,a];case 3:return[o,A,n];case 4:return[a,o,n];case 5:return[n,o,A]}};ne.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,A;return A=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,A/=2,[e,o*100,A*100]};ne.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,A,a;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,A=6*e-s,(s&1)!==0&&(A=1-A),a=r+A*(o-r);var c,l,u;switch(s){default:case 6:case 0:c=o,l=a,u=r;break;case 1:c=a,l=o,u=r;break;case 2:c=r,l=o,u=a;break;case 3:c=r,l=a,u=o;break;case 4:c=a,l=r,u=o;break;case 5:c=o,l=r,u=a;break}return[c*255,l*255,u*255]};ne.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,A;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),A=1-Math.min(1,n*(1-i)+i),[s*255,o*255,A*255]};ne.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};ne.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=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,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};ne.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var A=Math.pow(s,3),a=Math.pow(i,3),c=Math.pow(o,3);return s=A>.008856?A:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};ne.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};ne.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};ne.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:ne.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};ne.hsv.ansi16=function(t){return ne.rgb.ansi16(ne.hsv.rgb(t),t[2])};ne.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};ne.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,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};ne.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};ne.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};ne.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(A){return A+A}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};ne.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,A,a;return o<1?A=s/(1-o):A=0,o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o+4,a/=6,a%=1,[a*360,o*100,A*100]};ne.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};ne.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};ne.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,A=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=A,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=A,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=A}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};ne.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};ne.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};ne.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};ne.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};ne.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};ne.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};ne.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};ne.gray.hsl=ne.gray.hsv=function(t){return[0,0,t[0]]};ne.gray.hwb=function(t){return[0,100,t[0]]};ne.gray.cmyk=function(t){return[0,0,0,t[0]]};ne.gray.lab=function(t){return[t[0],0,0]};ne.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};ne.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var xT=g((b_e,DT)=>{"use strict";var jd=SQ();function lne(){for(var t={},e=Object.keys(jd),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function une(t){var e=lne(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jd[n]),s=i.length,o=0;o<s;o++){var A=i[o],a=e[A];a.distance===-1&&(a.distance=e[n].distance+1,a.parent=n,r.unshift(A))}return e}function hne(t,e){return function(r){return e(t(r))}}function fne(t,e){for(var r=[e[t].parent,t],n=jd[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=hne(jd[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}DT.exports=function(t){for(var e=une(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],A=e[o];A.parent!==null&&(r[o]=fne(o,e))}return r}});var NT=g((S_e,FT)=>{"use strict";var RQ=SQ(),dne=xT(),_a={},gne=Object.keys(RQ);function Ene(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 pne(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}gne.forEach(function(t){_a[t]={},Object.defineProperty(_a[t],"channels",{value:RQ[t].channels}),Object.defineProperty(_a[t],"labels",{value:RQ[t].labels});var e=dne(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];_a[t][n]=pne(i),_a[t][n].raw=Ene(i)})});FT.exports=_a});var MT=g((R_e,TT)=>{"use strict";var Da=NT(),zd=(t,e)=>function(){return`\x1B[${t.apply(Da,arguments)+e}m`},Zd=(t,e)=>function(){let r=t.apply(Da,arguments);return`\x1B[${38+e};5;${r}m`},$d=(t,e)=>function(){let r=t.apply(Da,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Cne(){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 i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let A=s[o];e[o]={open:`\x1B[${A[0]}m`,close:`\x1B[${A[1]}m`},s[o]=e[o],t.set(A[0],A[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:zd(r,0)},e.color.ansi256={ansi256:Zd(r,0)},e.color.ansi16m={rgb:$d(n,0)},e.bgColor.ansi={ansi:zd(r,10)},e.bgColor.ansi256={ansi256:Zd(r,10)},e.bgColor.ansi16m={rgb:$d(n,10)};for(let i of Object.keys(Da)){if(typeof Da[i]!="object")continue;let s=Da[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=zd(s.ansi16,0),e.bgColor.ansi[i]=zd(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Zd(s.ansi256,0),e.bgColor.ansi256[i]=Zd(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=$d(s.rgb,0),e.bgColor.ansi16m[i]=$d(s.rgb,10))}return e}Object.defineProperty(TT,"exports",{enumerable:!0,get:Cne})});var UT=g((v_e,LT)=>{"use strict";LT.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var PT=g((k_e,OT)=>{"use strict";var mne=require("os"),Dn=UT(),$t=process.env,xa;Dn("no-color")||Dn("no-colors")||Dn("color=false")?xa=!1:(Dn("color")||Dn("colors")||Dn("color=true")||Dn("color=always"))&&(xa=!0);"FORCE_COLOR"in $t&&(xa=$t.FORCE_COLOR.length===0||parseInt($t.FORCE_COLOR,10)!==0);function Ine(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Bne(t){if(xa===!1)return 0;if(Dn("color=16m")||Dn("color=full")||Dn("color=truecolor"))return 3;if(Dn("color=256"))return 2;if(t&&!t.isTTY&&xa!==!0)return 0;let e=xa?1:0;if(process.platform==="win32"){let r=mne.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 $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in $t)||$t.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let r=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:($t.TERM==="dumb",e)}function vQ(t){let e=Bne(t);return Ine(e)}OT.exports={supportsColor:vQ,stdout:vQ(process.stdout),stderr:vQ(process.stderr)}});var VT=g((__e,YT)=>{"use strict";var Qne=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,HT=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yne=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,wne=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bne=new Map([["n",`
|
|
32
|
+
`,i)}while(n!==-1);return s+=t.substr(i),s};ZN.exports={stringReplaceAll:qre,stringEncaseCRLFWithFirstIndex:Yre}});var rT=g((h_e,tT)=>{"use strict";var Vre=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,KN=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Jre=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Wre=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,jre=new Map([["n",`
|
|
33
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function eT(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):jre.get(t)||t}function zre(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Jre))r.push(i[2].replace(Wre,(A,a,c)=>a?eT(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Zre(t){KN.lastIndex=0;let e=[],r;for(;(r=KN.exec(t))!==null;){let n=r[1];if(r[2]){let i=zre(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function XN(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}tT.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Vre,(s,o,A,a,c,l)=>{if(o)i.push(eT(o));else if(a){let u=i.join("");i=[],n.push(r.length===0?u:XN(t,r)(u)),r.push({inverse:A,styles:Zre(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(XN(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var AT=g((f_e,oT)=>{"use strict";var mu=hQ(),{stdout:pQ,stderr:CQ}=gQ(),{stringReplaceAll:$re,stringEncaseCRLFWithFirstIndex:Kre}=$N(),nT=["ansi","ansi","ansi256","ansi16m"],ba=Object.create(null),Xre=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=pQ?pQ.level:0;t.level=e.level===void 0?r:e.level},mQ=class{constructor(e){return iT(e)}},iT=t=>{let e={};return Xre(e,t),e.template=(...r)=>rne(e.template,...r),Object.setPrototypeOf(e,Ld.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=mQ,e.template};function Ld(t){return iT(t)}for(let[t,e]of Object.entries(mu))ba[t]={get(){let r=Ud(this,IQ(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ba.visible={get(){let t=Ud(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var sT=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of sT)ba[t]={get(){let{level:e}=this;return function(...r){let n=IQ(mu.color[nT[e]][t](...r),mu.color.close,this._styler);return Ud(this,n,this._isEmpty)}}};for(let t of sT){let e="bg"+t[0].toUpperCase()+t.slice(1);ba[e]={get(){let{level:r}=this;return function(...n){let i=IQ(mu.bgColor[nT[r]][t](...n),mu.bgColor.close,this._styler);return Ud(this,i,this._isEmpty)}}}}var ene=Object.defineProperties(()=>{},{...ba,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),IQ=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Ud=(t,e,r)=>{let n=(...i)=>tne(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=ene,n._generator=t,n._styler=e,n._isEmpty=r,n},tne=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=$re(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
34
|
+
`);return s!==-1&&(e=Kre(e,i,n,s)),n+e+i},EQ,rne=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return EQ===void 0&&(EQ=rT()),EQ(t,i.join(""))};Object.defineProperties(Ld.prototype,ba);var Iu=Ld();Iu.supportsColor=pQ;Iu.stderr=Ld({level:CQ?CQ.level:0});Iu.stderr.supportsColor=CQ;Iu.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};oT.exports=Iu});var cT=g((d_e,BQ)=>{"use strict";var aT=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};BQ.exports=aT;BQ.exports.default=aT});var QQ=g((g_e,Pd)=>{"use strict";var nne=cT(),Od=new WeakMap,lT=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Od.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return nne(s,t),Od.set(s,n),s};Pd.exports=lT;Pd.exports.default=lT;Pd.exports.callCount=t=>{if(!Od.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Od.get(t)}});var uT=g((E_e,Hd)=>{"use strict";Hd.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Hd.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Hd.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bQ=g((p_e,va)=>{"use strict";var nt=global.process,Ho=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ho(nt)?(hT=require("assert"),Sa=uT(),fT=/^win/i.test(nt.platform),Bu=require("events"),typeof Bu!="function"&&(Bu=Bu.EventEmitter),nt.__signal_exit_emitter__?Ft=nt.__signal_exit_emitter__:(Ft=nt.__signal_exit_emitter__=new Bu,Ft.count=0,Ft.emitted={}),Ft.infinite||(Ft.setMaxListeners(1/0),Ft.infinite=!0),va.exports=function(t,e){if(!Ho(global.process))return function(){};hT.equal(typeof t,"function","a callback must be provided for exit handler"),Ra===!1&&yQ();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ft.removeListener(r,t),Ft.listeners("exit").length===0&&Ft.listeners("afterexit").length===0&&Gd()};return Ft.on(r,t),n},Gd=function(){!Ra||!Ho(global.process)||(Ra=!1,Sa.forEach(function(e){try{nt.removeListener(e,qd[e])}catch{}}),nt.emit=Yd,nt.reallyExit=wQ,Ft.count-=1)},va.exports.unload=Gd,Go=function(e,r,n){Ft.emitted[e]||(Ft.emitted[e]=!0,Ft.emit(e,r,n))},qd={},Sa.forEach(function(t){qd[t]=function(){if(Ho(global.process)){var r=nt.listeners(t);r.length===Ft.count&&(Gd(),Go("exit",null,t),Go("afterexit",null,t),fT&&t==="SIGHUP"&&(t="SIGINT"),nt.kill(nt.pid,t))}}}),va.exports.signals=function(){return Sa},Ra=!1,yQ=function(){Ra||!Ho(global.process)||(Ra=!0,Ft.count+=1,Sa=Sa.filter(function(e){try{return nt.on(e,qd[e]),!0}catch{return!1}}),nt.emit=gT,nt.reallyExit=dT)},va.exports.load=yQ,wQ=nt.reallyExit,dT=function(e){Ho(global.process)&&(nt.exitCode=e||0,Go("exit",nt.exitCode,null),Go("afterexit",nt.exitCode,null),wQ.call(nt,nt.exitCode))},Yd=nt.emit,gT=function(e,r){if(e==="exit"&&Ho(global.process)){r!==void 0&&(nt.exitCode=r);var n=Yd.apply(this,arguments);return Go("exit",nt.exitCode,null),Go("afterexit",nt.exitCode,null),n}else return Yd.apply(this,arguments)}):va.exports=function(){return function(){}};var hT,Sa,fT,Bu,Ft,Gd,Go,qd,Ra,yQ,wQ,dT,Yd,gT});var pT=g((C_e,ET)=>{"use strict";var ine=QQ(),sne=bQ();ET.exports=ine(()=>{sne(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var CT=g(ka=>{"use strict";var one=pT(),Vd=!1;ka.show=(t=process.stderr)=>{t.isTTY&&(Vd=!1,t.write("\x1B[?25h"))};ka.hide=(t=process.stderr)=>{t.isTTY&&(one(),Vd=!0,t.write("\x1B[?25l"))};ka.toggle=(t,e)=>{t!==void 0&&(Vd=t),Vd?ka.show(e):ka.hide(e)}});var mT=g((I_e,Ane)=>{Ane.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var QT=g((B_e,BT)=>{"use strict";var Jd=Object.assign({},mT()),IT=Object.keys(Jd);Object.defineProperty(Jd,"random",{get(){let t=Math.floor(Math.random()*IT.length),e=IT[t];return Jd[e]}});BT.exports=Jd});var wT=g((Q_e,yT)=>{"use strict";var ane=/[|\\{}()[\]^$+*?.]/g;yT.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(ane,"\\$&")}});var ST=g((y_e,bT)=>{"use strict";bT.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 SQ=g((w_e,_T)=>{"use strict";var qo=ST(),kT={};for(Wd in qo)qo.hasOwnProperty(Wd)&&(kT[qo[Wd]]=Wd);var Wd,ne=_T.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(ur in ne)if(ne.hasOwnProperty(ur)){if(!("channels"in ne[ur]))throw new Error("missing channels property: "+ur);if(!("labels"in ne[ur]))throw new Error("missing channel labels property: "+ur);if(ne[ur].labels.length!==ne[ur].channels)throw new Error("channel and label counts mismatch: "+ur);RT=ne[ur].channels,vT=ne[ur].labels,delete ne[ur].channels,delete ne[ur].labels,Object.defineProperty(ne[ur],"channels",{value:RT}),Object.defineProperty(ne[ur],"labels",{value:vT})}var RT,vT,ur;ne.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,A,a,c;return s===i?A=0:e===s?A=(r-n)/o:r===s?A=2+(n-e)/o:n===s&&(A=4+(e-r)/o),A=Math.min(A*60,360),A<0&&(A+=360),c=(i+s)/2,s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[A,a*100,c*100]};ne.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,A=t[1]/255,a=t[2]/255,c=Math.max(o,A,a),l=c-Math.min(o,A,a),u=function(h){return(c-h)/6/l+1/2};return l===0?i=s=0:(s=l/c,e=u(o),r=u(A),n=u(a),o===c?i=n-r:A===c?i=1/3+e-n:a===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};ne.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=ne.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};ne.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,A;return A=Math.min(1-e,1-r,1-n),i=(1-e-A)/(1-A)||0,s=(1-r-A)/(1-A)||0,o=(1-n-A)/(1-A)||0,[i*100,s*100,o*100,A*100]};function cne(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}ne.rgb.keyword=function(t){var e=kT[t];if(e)return e;var r=1/0,n;for(var i in qo)if(qo.hasOwnProperty(i)){var s=qo[i],o=cne(t,s);o<r&&(r=o,n=i)}return n};ne.keyword.rgb=function(t){return qo[t]};ne.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=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,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};ne.rgb.lab=function(t){var e=ne.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,A;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),A=200*(n-i),[s,o,A]};ne.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,A,a;if(r===0)return a=n*255,[a,a,a];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,A=[0,0,0];for(var c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=i+(s-i)*6*o:2*o<1?a=s:3*o<2?a=i+(s-i)*(2/3-o)*6:a=i,A[c]=a*255;return A};ne.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,A;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,A=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,A*100]};ne.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),A=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[A,n,o];case 2:return[o,n,a];case 3:return[o,A,n];case 4:return[a,o,n];case 5:return[n,o,A]}};ne.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,A;return A=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,A/=2,[e,o*100,A*100]};ne.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,A,a;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,A=6*e-s,(s&1)!==0&&(A=1-A),a=r+A*(o-r);var c,l,u;switch(s){default:case 6:case 0:c=o,l=a,u=r;break;case 1:c=a,l=o,u=r;break;case 2:c=r,l=o,u=a;break;case 3:c=r,l=a,u=o;break;case 4:c=a,l=r,u=o;break;case 5:c=o,l=r,u=a;break}return[c*255,l*255,u*255]};ne.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,A;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),A=1-Math.min(1,n*(1-i)+i),[s*255,o*255,A*255]};ne.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};ne.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=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,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};ne.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var A=Math.pow(s,3),a=Math.pow(i,3),c=Math.pow(o,3);return s=A>.008856?A:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};ne.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};ne.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};ne.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:ne.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};ne.hsv.ansi16=function(t){return ne.rgb.ansi16(ne.hsv.rgb(t),t[2])};ne.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};ne.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,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};ne.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};ne.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};ne.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(A){return A+A}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};ne.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,A,a;return o<1?A=s/(1-o):A=0,o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o+4,a/=6,a%=1,[a*360,o*100,A*100]};ne.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};ne.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};ne.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,A=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=A,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=A,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=A}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};ne.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};ne.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};ne.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};ne.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};ne.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};ne.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};ne.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};ne.gray.hsl=ne.gray.hsv=function(t){return[0,0,t[0]]};ne.gray.hwb=function(t){return[0,100,t[0]]};ne.gray.cmyk=function(t){return[0,0,0,t[0]]};ne.gray.lab=function(t){return[t[0],0,0]};ne.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};ne.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var xT=g((b_e,DT)=>{"use strict";var jd=SQ();function lne(){for(var t={},e=Object.keys(jd),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function une(t){var e=lne(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jd[n]),s=i.length,o=0;o<s;o++){var A=i[o],a=e[A];a.distance===-1&&(a.distance=e[n].distance+1,a.parent=n,r.unshift(A))}return e}function hne(t,e){return function(r){return e(t(r))}}function fne(t,e){for(var r=[e[t].parent,t],n=jd[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=hne(jd[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}DT.exports=function(t){for(var e=une(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],A=e[o];A.parent!==null&&(r[o]=fne(o,e))}return r}});var NT=g((S_e,FT)=>{"use strict";var RQ=SQ(),dne=xT(),_a={},gne=Object.keys(RQ);function Ene(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 pne(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}gne.forEach(function(t){_a[t]={},Object.defineProperty(_a[t],"channels",{value:RQ[t].channels}),Object.defineProperty(_a[t],"labels",{value:RQ[t].labels});var e=dne(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];_a[t][n]=pne(i),_a[t][n].raw=Ene(i)})});FT.exports=_a});var MT=g((R_e,TT)=>{"use strict";var Da=NT(),zd=(t,e)=>function(){return`\x1B[${t.apply(Da,arguments)+e}m`},Zd=(t,e)=>function(){let r=t.apply(Da,arguments);return`\x1B[${38+e};5;${r}m`},$d=(t,e)=>function(){let r=t.apply(Da,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Cne(){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 i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let A=s[o];e[o]={open:`\x1B[${A[0]}m`,close:`\x1B[${A[1]}m`},s[o]=e[o],t.set(A[0],A[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:zd(r,0)},e.color.ansi256={ansi256:Zd(r,0)},e.color.ansi16m={rgb:$d(n,0)},e.bgColor.ansi={ansi:zd(r,10)},e.bgColor.ansi256={ansi256:Zd(r,10)},e.bgColor.ansi16m={rgb:$d(n,10)};for(let i of Object.keys(Da)){if(typeof Da[i]!="object")continue;let s=Da[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=zd(s.ansi16,0),e.bgColor.ansi[i]=zd(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Zd(s.ansi256,0),e.bgColor.ansi256[i]=Zd(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=$d(s.rgb,0),e.bgColor.ansi16m[i]=$d(s.rgb,10))}return e}Object.defineProperty(TT,"exports",{enumerable:!0,get:Cne})});var UT=g((v_e,LT)=>{"use strict";LT.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var PT=g((k_e,OT)=>{"use strict";var mne=require("os"),Dn=UT(),$t=process.env,xa;Dn("no-color")||Dn("no-colors")||Dn("color=false")?xa=!1:(Dn("color")||Dn("colors")||Dn("color=true")||Dn("color=always"))&&(xa=!0);"FORCE_COLOR"in $t&&(xa=$t.FORCE_COLOR.length===0||parseInt($t.FORCE_COLOR,10)!==0);function Ine(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Bne(t){if(xa===!1)return 0;if(Dn("color=16m")||Dn("color=full")||Dn("color=truecolor"))return 3;if(Dn("color=256"))return 2;if(t&&!t.isTTY&&xa!==!0)return 0;let e=xa?1:0;if(process.platform==="win32"){let r=mne.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 $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in $t)||$t.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let r=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:($t.TERM==="dumb",e)}function vQ(t){let e=Bne(t);return Ine(e)}OT.exports={supportsColor:vQ,stdout:vQ(process.stdout),stderr:vQ(process.stderr)}});var VT=g((__e,YT)=>{"use strict";var Qne=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,HT=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yne=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,wne=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bne=new Map([["n",`
|
|
35
35
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function qT(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):bne.get(t)||t}function Sne(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(yne))r.push(i[2].replace(wne,(o,A,a)=>A?qT(A):a));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function Rne(t){HT.lastIndex=0;let e=[],r;for(;(r=HT.exec(t))!==null;){let n=r[1];if(r[2]){let i=Sne(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function GT(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}YT.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Qne,(s,o,A,a,c,l)=>{if(o)i.push(qT(o));else if(a){let u=i.join("");i=[],n.push(r.length===0?u:GT(t,r)(u)),r.push({inverse:A,styles:Rne(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(GT(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var ZT=g((D_e,yu)=>{"use strict";var _Q=wT(),Bt=MT(),kQ=PT().stdout,vne=VT(),WT=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),jT=["ansi","ansi","ansi256","ansi16m"],zT=new Set(["gray"]),Fa=Object.create(null);function JT(t,e){e=e||{};let r=kQ?kQ.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Qu(t){if(!this||!(this instanceof Qu)||this.template){let e={};return JT(e,t),e.template=function(){let r=[].slice.call(arguments);return Dne.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Qu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Qu,e.template}JT(this,t)}WT&&(Bt.blue.open="\x1B[94m");for(let t of Object.keys(Bt))Bt[t].closeRe=new RegExp(_Q(Bt[t].close),"g"),Fa[t]={get(){let e=Bt[t];return Kd.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};Fa.visible={get(){return Kd.call(this,this._styles||[],!0,"visible")}};Bt.color.closeRe=new RegExp(_Q(Bt.color.close),"g");for(let t of Object.keys(Bt.color.ansi))zT.has(t)||(Fa[t]={get(){let e=this.level;return function(){let n={open:Bt.color[jT[e]][t].apply(null,arguments),close:Bt.color.close,closeRe:Bt.color.closeRe};return Kd.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Bt.bgColor.closeRe=new RegExp(_Q(Bt.bgColor.close),"g");for(let t of Object.keys(Bt.bgColor.ansi)){if(zT.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);Fa[e]={get(){let r=this.level;return function(){let i={open:Bt.bgColor[jT[r]][t].apply(null,arguments),close:Bt.bgColor.close,closeRe:Bt.bgColor.closeRe};return Kd.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var kne=Object.defineProperties(()=>{},Fa);function Kd(t,e,r){let n=function(){return _ne.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=kne,n}function _ne(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Bt.dim.open;WT&&this.hasGrey&&(Bt.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Bt.dim.open=n,r}function Dne(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return vne(t,n.join(""))}Object.defineProperties(Qu.prototype,Fa);yu.exports=Qu();yu.exports.supportsColor=kQ;yu.exports.default=yu.exports});var KT=g((x_e,$T)=>{"use strict";var Fs=ZT(),xne=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",Fne={info:Fs.blue("\u2139"),success:Fs.green("\u2714"),warning:Fs.yellow("\u26A0"),error:Fs.red("\u2716")},Nne={info:Fs.blue("i"),success:Fs.green("\u221A"),warning:Fs.yellow("\u203C"),error:Fs.red("\xD7")};$T.exports=xne?Fne:Nne});var eM=g((F_e,XT)=>{"use strict";XT.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var rM=g((N_e,tM)=>{"use strict";var Tne=eM();tM.exports=t=>typeof t=="string"?t.replace(Tne(),""):t});var nM=g((T_e,Xd)=>{"use strict";var Mne=(function(){"use strict";function t(o,A,a,c){var l;typeof A=="object"&&(a=A.depth,c=A.prototype,l=A.filter,A=A.circular);var u=[],h=[],f=typeof Buffer!="undefined";typeof A=="undefined"&&(A=!0),typeof a=="undefined"&&(a=1/0);function d(E,p){if(E===null)return null;if(p==0)return E;var C,w;if(typeof E!="object")return E;if(t.__isArray(E))C=[];else if(t.__isRegExp(E))C=new RegExp(E.source,s(E)),E.lastIndex&&(C.lastIndex=E.lastIndex);else if(t.__isDate(E))C=new Date(E.getTime());else{if(f&&Buffer.isBuffer(E))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(E.length):C=new Buffer(E.length),E.copy(C),C;typeof c=="undefined"?(w=Object.getPrototypeOf(E),C=Object.create(w)):(C=Object.create(c),w=c)}if(A){var R=u.indexOf(E);if(R!=-1)return h[R];u.push(E),h.push(C)}for(var S in E){var _;w&&(_=Object.getOwnPropertyDescriptor(w,S)),!(_&&_.set==null)&&(C[S]=d(E[S],p-1))}return C}return d(o,a)}t.clonePrototype=function(A){if(A===null)return null;var a=function(){};return a.prototype=A,new a};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var A="";return o.global&&(A+="g"),o.ignoreCase&&(A+="i"),o.multiline&&(A+="m"),A}return t.__getRegExpFlags=s,t})();typeof Xd=="object"&&Xd.exports&&(Xd.exports=Mne)});var sM=g((M_e,iM)=>{"use strict";var Lne=nM();iM.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=Lne(e[r]))}),t}});var AM=g((L_e,oM)=>{"use strict";oM.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var uM=g((U_e,DQ)=>{"use strict";var Une=sM(),wu=AM(),cM={nul:0,control:0};DQ.exports=function(e){return lM(e,cM)};DQ.exports.config=function(t){return t=Une(t||{},cM),function(r){return lM(r,t)}};function lM(t,e){if(typeof t!="string")return aM(t,e);for(var r=0,n=0;n<t.length;n++){var i=aM(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function aM(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:One(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function One(t){var e=0,r=wu.length-1,n;if(t<wu[0][0]||t>wu[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>wu[n][1])e=n+1;else if(t<wu[n][0])r=n-1;else return!0;return!1}});var fM=g((O_e,hM)=>{"use strict";hM.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var gM=g((P_e,dM)=>{"use strict";var xQ=require("stream");dM.exports=Nt;function Nt(t){xQ.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Nt.prototype=Object.create(xQ.prototype);Object.defineProperty(Nt.prototype,"constructor",{value:Nt,enumerable:!1});Nt.prototype.mute=function(){this.muted=!0};Nt.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Nt.prototype,"_onpipe",{value:Pne,enumerable:!1,writable:!0,configurable:!0});function Pne(t){this._src=t}Object.defineProperty(Nt.prototype,"isTTY",{get:Hne,set:Gne,enumerable:!0,configurable:!0});function Hne(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function Gne(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Nt.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Nt.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Nt.prototype.pipe=function(t,e){return this._dest=t,xQ.prototype.pipe.call(this,t,e)};Nt.prototype.pause=function(){if(this._src)return this._src.pause()};Nt.prototype.resume=function(){if(this._src)return this._src.resume()};Nt.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Nt.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function FQ(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Nt.prototype.destroy=FQ("destroy");Nt.prototype.destroySoon=FQ("destroySoon");Nt.prototype.close=FQ("close")});var pM=g((H_e,MQ)=>{"use strict";var qne=require("readline"),Yne=AT(),EM=CT(),eg=QT(),tg=KT(),Vne=rM(),Jne=uM(),Wne=fM(),jne=gM(),NQ=Symbol("text"),rg=Symbol("prefixText"),zne=3,TQ=class{constructor(){this.requests=0,this.mutedStream=new jne,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(zne)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=qne.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},ng,ig=class{constructor(e){ng||(ng=new TQ),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Wne({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=eg.line;else if(e===void 0)this._spinner=eg.dots;else if(eg[e])this._spinner=eg[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[NQ]}get prefixText(){return this[rg]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[rg]=="string"?this[rg]+"-":"";this.lineCount=Vne(r+"--"+this[NQ]).split(`
|
|
36
36
|
`).reduce((n,i)=>n+Math.max(1,Math.ceil(Jne(i)/e)),0)}set text(e){this[NQ]=e,this.updateLineCount()}set prefixText(e){this[rg]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=Yne[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&EM.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,ng.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
37
37
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&EM.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(ng.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:tg.success,text:e})}fail(e){return this.stopAndPersist({symbol:tg.error,text:e})}warn(e){return this.stopAndPersist({symbol:tg.warning,text:e})}info(e){return this.stopAndPersist({symbol:tg.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
|
@@ -42,7 +42,7 @@ GFS4: `),console.error(t)});At[Pt]||(zk=global[Pt]||[],$k(At,zk),At.close=(funct
|
|
|
42
42
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function QM(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):rie.get(t)||t}function nie(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(eie))r.push(i[2].replace(tie,(A,a,c)=>a?QM(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function iie(t){IM.lastIndex=0;let e=[],r;for(;(r=IM.exec(t))!==null;){let n=r[1];if(r[2]){let i=nie(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function BM(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}yM.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Xne,(s,o,A,a,c,l)=>{if(o)i.push(QM(o));else if(a){let u=i.join("");i=[],n.push(r.length===0?u:BM(t,r)(u)),r.push({inverse:A,styles:iie(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(BM(t,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var DM=g((Y_e,_M)=>{"use strict";var bu=hQ(),{stdout:UQ,stderr:OQ}=gQ(),{stringReplaceAll:sie,stringEncaseCRLFWithFirstIndex:oie}=mM(),{isArray:sg}=Array,SM=["ansi","ansi","ansi256","ansi16m"],Na=Object.create(null),Aie=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=UQ?UQ.level:0;t.level=e.level===void 0?r:e.level},PQ=class{constructor(e){return RM(e)}},RM=t=>{let e={};return Aie(e,t),e.template=(...r)=>kM(e.template,...r),Object.setPrototypeOf(e,og.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=PQ,e.template};function og(t){return RM(t)}for(let[t,e]of Object.entries(bu))Na[t]={get(){let r=Ag(this,HQ(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Na.visible={get(){let t=Ag(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var vM=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of vM)Na[t]={get(){let{level:e}=this;return function(...r){let n=HQ(bu.color[SM[e]][t](...r),bu.color.close,this._styler);return Ag(this,n,this._isEmpty)}}};for(let t of vM){let e="bg"+t[0].toUpperCase()+t.slice(1);Na[e]={get(){let{level:r}=this;return function(...n){let i=HQ(bu.bgColor[SM[r]][t](...n),bu.bgColor.close,this._styler);return Ag(this,i,this._isEmpty)}}}}var aie=Object.defineProperties(()=>{},{...Na,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),HQ=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Ag=(t,e,r)=>{let n=(...i)=>sg(i[0])&&sg(i[0].raw)?bM(n,kM(n,...i)):bM(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,aie),n._generator=t,n._styler=e,n._isEmpty=r,n},bM=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=sie(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
43
43
|
`);return s!==-1&&(e=oie(e,i,n,s)),n+e+i},LQ,kM=(t,...e)=>{let[r]=e;if(!sg(r)||!sg(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return LQ===void 0&&(LQ=wM()),LQ(t,i.join(""))};Object.defineProperties(og.prototype,Na);var ag=og();ag.supportsColor=UQ;ag.stderr=og({level:OQ?OQ.level:0});ag.stderr.supportsColor=OQ;_M.exports=ag});var xM=g((V_e,cg)=>{"use strict";(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,A=t.random;function a(I,b){if(I=I||"",b=b||{},I instanceof a)return I;if(!(this instanceof a))return new a(I,b);var B=c(I);this._originalInput=I,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=i(100*this._a)/100,this._format=b.format||B.format,this._gradientType=b.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=B.ok,this._tc_id=n++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var I=this.toRgb();return(I.r*299+I.g*587+I.b*114)/1e3},getLuminance:function(){var I=this.toRgb(),b,B,L,$,Z,Te;return b=I.r/255,B=I.g/255,L=I.b/255,b<=.03928?$=b/12.92:$=t.pow((b+.055)/1.055,2.4),B<=.03928?Z=B/12.92:Z=t.pow((B+.055)/1.055,2.4),L<=.03928?Te=L/12.92:Te=t.pow((L+.055)/1.055,2.4),.2126*$+.7152*Z+.0722*Te},setAlpha:function(I){return this._a=F(I),this._roundA=i(100*this._a)/100,this},toHsv:function(){var I=f(this._r,this._g,this._b);return{h:I.h*360,s:I.s,v:I.v,a:this._a}},toHsvString:function(){var I=f(this._r,this._g,this._b),b=i(I.h*360),B=i(I.s*100),L=i(I.v*100);return this._a==1?"hsv("+b+", "+B+"%, "+L+"%)":"hsva("+b+", "+B+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var I=u(this._r,this._g,this._b);return{h:I.h*360,s:I.s,l:I.l,a:this._a}},toHslString:function(){var I=u(this._r,this._g,this._b),b=i(I.h*360),B=i(I.s*100),L=i(I.l*100);return this._a==1?"hsl("+b+", "+B+"%, "+L+"%)":"hsla("+b+", "+B+"%, "+L+"%, "+this._roundA+")"},toHex:function(I){return E(this._r,this._g,this._b,I)},toHexString:function(I){return"#"+this.toHex(I)},toHex8:function(I){return p(this._r,this._g,this._b,this._a,I)},toHex8String:function(I){return"#"+this.toHex8(I)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(T(this._r,255)*100)+"%",g:i(T(this._g,255)*100)+"%",b:i(T(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(T(this._r,255)*100)+"%, "+i(T(this._g,255)*100)+"%, "+i(T(this._b,255)*100)+"%)":"rgba("+i(T(this._r,255)*100)+"%, "+i(T(this._g,255)*100)+"%, "+i(T(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:y[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(I){var b="#"+C(this._r,this._g,this._b,this._a),B=b,L=this._gradientType?"GradientType = 1, ":"";if(I){var $=a(I);B="#"+C($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+b+",endColorstr="+B+")"},toString:function(I){var b=!!I;I=I||this._format;var B=!1,L=this._a<1&&this._a>=0,$=!b&&L&&(I==="hex"||I==="hex6"||I==="hex3"||I==="hex4"||I==="hex8"||I==="name");return $?I==="name"&&this._a===0?this.toName():this.toRgbString():(I==="rgb"&&(B=this.toRgbString()),I==="prgb"&&(B=this.toPercentageRgbString()),(I==="hex"||I==="hex6")&&(B=this.toHexString()),I==="hex3"&&(B=this.toHexString(!0)),I==="hex4"&&(B=this.toHex8String(!0)),I==="hex8"&&(B=this.toHex8String()),I==="name"&&(B=this.toName()),I==="hsl"&&(B=this.toHslString()),I==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(I,b){var B=I.apply(null,[this].concat([].slice.call(b)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(V,arguments)},_applyCombination:function(I,b){return I.apply(null,[this].concat([].slice.call(b)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(ye,arguments)},splitcomplement:function(){return this._applyCombination(ee,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},a.fromRatio=function(I,b){if(typeof I=="object"){var B={};for(var L in I)I.hasOwnProperty(L)&&(L==="a"?B[L]=I[L]:B[L]=ht(I[L]));I=B}return a(I,b)};function c(I){var b={r:0,g:0,b:0},B=1,L=null,$=null,Z=null,Te=!1,ot=!1;return typeof I=="string"&&(I=Je(I)),typeof I=="object"&&(W(I.r)&&W(I.g)&&W(I.b)?(b=l(I.r,I.g,I.b),Te=!0,ot=String(I.r).substr(-1)==="%"?"prgb":"rgb"):W(I.h)&&W(I.s)&&W(I.v)?(L=ht(I.s),$=ht(I.v),b=d(I.h,L,$),Te=!0,ot="hsv"):W(I.h)&&W(I.s)&&W(I.l)&&(L=ht(I.s),Z=ht(I.l),b=h(I.h,L,Z),Te=!0,ot="hsl"),I.hasOwnProperty("a")&&(B=I.a)),B=F(B),{ok:Te,format:I.format||ot,r:s(255,o(b.r,0)),g:s(255,o(b.g,0)),b:s(255,o(b.b,0)),a:B}}function l(I,b,B){return{r:T(I,255)*255,g:T(b,255)*255,b:T(B,255)*255}}function u(I,b,B){I=T(I,255),b=T(b,255),B=T(B,255);var L=o(I,b,B),$=s(I,b,B),Z,Te,ot=(L+$)/2;if(L==$)Z=Te=0;else{var ft=L-$;switch(Te=ot>.5?ft/(2-L-$):ft/(L+$),L){case I:Z=(b-B)/ft+(b<B?6:0);break;case b:Z=(B-I)/ft+2;break;case B:Z=(I-b)/ft+4;break}Z/=6}return{h:Z,s:Te,l:ot}}function h(I,b,B){var L,$,Z;I=T(I,360),b=T(b,100),B=T(B,100);function Te(Xr,Vl,kn){return kn<0&&(kn+=1),kn>1&&(kn-=1),kn<1/6?Xr+(Vl-Xr)*6*kn:kn<1/2?Vl:kn<2/3?Xr+(Vl-Xr)*(2/3-kn)*6:Xr}if(b===0)L=$=Z=B;else{var ot=B<.5?B*(1+b):B+b-B*b,ft=2*B-ot;L=Te(ft,ot,I+1/3),$=Te(ft,ot,I),Z=Te(ft,ot,I-1/3)}return{r:L*255,g:$*255,b:Z*255}}function f(I,b,B){I=T(I,255),b=T(b,255),B=T(B,255);var L=o(I,b,B),$=s(I,b,B),Z,Te,ot=L,ft=L-$;if(Te=L===0?0:ft/L,L==$)Z=0;else{switch(L){case I:Z=(b-B)/ft+(b<B?6:0);break;case b:Z=(B-I)/ft+2;break;case B:Z=(I-b)/ft+4;break}Z/=6}return{h:Z,s:Te,v:ot}}function d(I,b,B){I=T(I,360)*6,b=T(b,100),B=T(B,100);var L=t.floor(I),$=I-L,Z=B*(1-b),Te=B*(1-$*b),ot=B*(1-(1-$)*b),ft=L%6,Xr=[B,Te,Z,Z,ot,B][ft],Vl=[ot,B,B,Te,Z,Z][ft],kn=[Z,Z,ot,B,B,Te][ft];return{r:Xr*255,g:Vl*255,b:kn*255}}function E(I,b,B,L){var $=[Ne(i(I).toString(16)),Ne(i(b).toString(16)),Ne(i(B).toString(16))];return L&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function p(I,b,B,L,$){var Z=[Ne(i(I).toString(16)),Ne(i(b).toString(16)),Ne(i(B).toString(16)),Ne(ge(L))];return $&&Z[0].charAt(0)==Z[0].charAt(1)&&Z[1].charAt(0)==Z[1].charAt(1)&&Z[2].charAt(0)==Z[2].charAt(1)&&Z[3].charAt(0)==Z[3].charAt(1)?Z[0].charAt(0)+Z[1].charAt(0)+Z[2].charAt(0)+Z[3].charAt(0):Z.join("")}function C(I,b,B,L){var $=[Ne(ge(L)),Ne(i(I).toString(16)),Ne(i(b).toString(16)),Ne(i(B).toString(16))];return $.join("")}a.equals=function(I,b){return!I||!b?!1:a(I).toRgbString()==a(b).toRgbString()},a.random=function(){return a.fromRatio({r:A(),g:A(),b:A()})};function w(I,b){b=b===0?0:b||10;var B=a(I).toHsl();return B.s-=b/100,B.s=ie(B.s),a(B)}function R(I,b){b=b===0?0:b||10;var B=a(I).toHsl();return B.s+=b/100,B.s=ie(B.s),a(B)}function S(I){return a(I).desaturate(100)}function _(I,b){b=b===0?0:b||10;var B=a(I).toHsl();return B.l+=b/100,B.l=ie(B.l),a(B)}function O(I,b){b=b===0?0:b||10;var B=a(I).toRgb();return B.r=o(0,s(255,B.r-i(255*-(b/100)))),B.g=o(0,s(255,B.g-i(255*-(b/100)))),B.b=o(0,s(255,B.b-i(255*-(b/100)))),a(B)}function N(I,b){b=b===0?0:b||10;var B=a(I).toHsl();return B.l-=b/100,B.l=ie(B.l),a(B)}function V(I,b){var B=a(I).toHsl(),L=(B.h+b)%360;return B.h=L<0?360+L:L,a(B)}function M(I){var b=a(I).toHsl();return b.h=(b.h+180)%360,a(b)}function j(I){var b=a(I).toHsl(),B=b.h;return[a(I),a({h:(B+120)%360,s:b.s,l:b.l}),a({h:(B+240)%360,s:b.s,l:b.l})]}function k(I){var b=a(I).toHsl(),B=b.h;return[a(I),a({h:(B+90)%360,s:b.s,l:b.l}),a({h:(B+180)%360,s:b.s,l:b.l}),a({h:(B+270)%360,s:b.s,l:b.l})]}function ee(I){var b=a(I).toHsl(),B=b.h;return[a(I),a({h:(B+72)%360,s:b.s,l:b.l}),a({h:(B+216)%360,s:b.s,l:b.l})]}function te(I,b,B){b=b||6,B=B||30;var L=a(I).toHsl(),$=360/B,Z=[a(I)];for(L.h=(L.h-($*b>>1)+720)%360;--b;)L.h=(L.h+$)%360,Z.push(a(L));return Z}function ye(I,b){b=b||6;for(var B=a(I).toHsv(),L=B.h,$=B.s,Z=B.v,Te=[],ot=1/b;b--;)Te.push(a({h:L,s:$,v:Z})),Z=(Z+ot)%1;return Te}a.mix=function(I,b,B){B=B===0?0:B||50;var L=a(I).toRgb(),$=a(b).toRgb(),Z=B/100,Te={r:($.r-L.r)*Z+L.r,g:($.g-L.g)*Z+L.g,b:($.b-L.b)*Z+L.b,a:($.a-L.a)*Z+L.a};return a(Te)},a.readability=function(I,b){var B=a(I),L=a(b);return(t.max(B.getLuminance(),L.getLuminance())+.05)/(t.min(B.getLuminance(),L.getLuminance())+.05)},a.isReadable=function(I,b,B){var L=a.readability(I,b),$,Z;switch(Z=!1,$=J(B),$.level+$.size){case"AAsmall":case"AAAlarge":Z=L>=4.5;break;case"AAlarge":Z=L>=3;break;case"AAAsmall":Z=L>=7;break}return Z},a.mostReadable=function(I,b,B){var L=null,$=0,Z,Te,ot,ft;B=B||{},Te=B.includeFallbackColors,ot=B.level,ft=B.size;for(var Xr=0;Xr<b.length;Xr++)Z=a.readability(I,b[Xr]),Z>$&&($=Z,L=a(b[Xr]));return a.isReadable(I,L,{level:ot,size:ft})||!Te?L:(B.includeFallbackColors=!1,a.mostReadable(I,["#fff","#000"],B))};var v=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},y=a.hexNames=x(v);function x(I){var b={};for(var B in I)I.hasOwnProperty(B)&&(b[I[B]]=B);return b}function F(I){return I=parseFloat(I),(isNaN(I)||I<0||I>1)&&(I=1),I}function T(I,b){Ge(I)&&(I="100%");var B=bt(I);return I=s(b,o(0,parseFloat(I))),B&&(I=parseInt(I*b,10)/100),t.abs(I-b)<1e-6?1:I%b/parseFloat(b)}function ie(I){return s(1,o(0,I))}function z(I){return parseInt(I,16)}function Ge(I){return typeof I=="string"&&I.indexOf(".")!=-1&&parseFloat(I)===1}function bt(I){return typeof I=="string"&&I.indexOf("%")!=-1}function Ne(I){return I.length==1?"0"+I:""+I}function ht(I){return I<=1&&(I=I*100+"%"),I}function ge(I){return t.round(parseFloat(I)*255).toString(16)}function cr(I){return z(I)/255}var Nr=(function(){var I="[-\\+]?\\d+%?",b="[-\\+]?\\d*\\.\\d+%?",B="(?:"+b+")|(?:"+I+")",L="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",$="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function W(I){return!!Nr.CSS_UNIT.exec(I)}function Je(I){I=I.replace(e,"").replace(r,"").toLowerCase();var b=!1;if(v[I])I=v[I],b=!0;else if(I=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=Nr.rgb.exec(I))?{r:B[1],g:B[2],b:B[3]}:(B=Nr.rgba.exec(I))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=Nr.hsl.exec(I))?{h:B[1],s:B[2],l:B[3]}:(B=Nr.hsla.exec(I))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=Nr.hsv.exec(I))?{h:B[1],s:B[2],v:B[3]}:(B=Nr.hsva.exec(I))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=Nr.hex8.exec(I))?{r:z(B[1]),g:z(B[2]),b:z(B[3]),a:cr(B[4]),format:b?"name":"hex8"}:(B=Nr.hex6.exec(I))?{r:z(B[1]),g:z(B[2]),b:z(B[3]),format:b?"name":"hex"}:(B=Nr.hex4.exec(I))?{r:z(B[1]+""+B[1]),g:z(B[2]+""+B[2]),b:z(B[3]+""+B[3]),a:cr(B[4]+""+B[4]),format:b?"name":"hex8"}:(B=Nr.hex3.exec(I))?{r:z(B[1]+""+B[1]),g:z(B[2]+""+B[2]),b:z(B[3]+""+B[3]),format:b?"name":"hex"}:!1}function J(I){var b,B;return I=I||{level:"AA",size:"small"},b=(I.level||"AA").toUpperCase(),B=(I.size||"small").toLowerCase(),b!=="AA"&&b!=="AAA"&&(b="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:b,size:B}}typeof cg!="undefined"&&cg.exports?cg.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a})(Math)});var OM=g((J_e,UM)=>{"use strict";var Su=xM(),MM={r:256,g:256,b:256,a:1},LM={h:360,s:1,v:1,a:1};function YQ(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function VQ(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function GQ(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=YQ(n,i,r),o=[t.color];for(let A=1;A<r;A++){let a=VQ(s,n,A,MM);o.push(Su(a))}return o}function FM(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return GQ(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let A=YQ(i,s,r),a=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,A.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let u=VQ(A,i,l,LM);a.push(Su(u))}return a}function NM(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function TM(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let a=0,c=t.length;a<c-1;a++)if(e>=t[a].pos&&e<t[a+1].pos){i=t[a],s=t[a+1];break}i||(i=s=t[t.length-1]);let o=YQ(i.color[r](),s.color[r](),(s.pos-i.pos)*100),A=VQ(o,i.color[r](),(e-i.pos)*100,n);return Su(A)}var qQ=class t{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,A)=>{let a=o.pos!==void 0;if(r^a)throw new Error("Cannot mix positionned and not posionned color stops");if(a){let c=o.color!==void 0;if(!c&&(s||A===0||A===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Su(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Su(o.color!==void 0?o.color:o),pos:A/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new t(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new t(e.concat(r.reverse()))}rgb(e){let r=NM(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=GQ(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=GQ(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=NM(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=FM(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let A=FM(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...A)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return TM(this.stops,e,"toRgb",MM)}hsvAt(e){return TM(this.stops,e,"toHsv",LM)}};UM.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new qQ(t)}});var YM=g((W_e,lg)=>{"use strict";var HM=DM(),cie=OM(),PM=/\s/g;function JQ(...t){let e=cie.apply(this,t),r=(n,i)=>lie(n?n.toString():"",e,i);return r.multiline=(n,i)=>uie(n?n.toString():"",e,i),r}var GM=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function lie(t,e,r){let n=qM(r),i=Math.max(t.replace(PM,"").length,e.stops.length),s=GM(e,n,i),o="";for(let A of t)o+=A.match(PM)?A:HM.hex(s.shift().toHex())(A);return o}function uie(t,e,r){let n=qM(r),i=t.split(`
|
|
44
44
|
`),s=Math.max.apply(null,i.map(a=>a.length).concat([e.stops.length])),o=GM(e,n,s),A=[];for(let a of i){let c=o.slice(0),l="";for(let u of a)l+=HM.hex(c.shift().toHex())(u);A.push(l)}return A.join(`
|
|
45
|
-
`)}function qM(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Ru={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};lg.exports=JQ;for(let t in Ru)lg.exports[t]=e=>new JQ(Ru[t].colors)(e,Ru[t].options),lg.exports[t].multiline=e=>new JQ(Ru[t].colors).multiline(e,Ru[t].options)});var rL=g((K_e,tL)=>{"use strict";tL.exports=eL;eL.sync=Rie;var KM=require("fs");function Sie(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function XM(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Sie(e,r)}function eL(t,e,r){KM.stat(t,function(n,i){r(n,n?!1:XM(i,t,e))})}function Rie(t,e){return XM(KM.statSync(t),t,e)}});var AL=g((X_e,oL)=>{"use strict";oL.exports=iL;iL.sync=vie;var nL=require("fs");function iL(t,e,r){nL.stat(t,function(n,i){r(n,n?!1:sL(i,e))})}function vie(t,e){return sL(nL.statSync(t),e)}function sL(t,e){return t.isFile()&&kie(t,e)}function kie(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),A=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=A|a,u=r&c||r&a&&i===o||r&A&&n===s||r&l&&s===0;return u}});var cL=g((tDe,aL)=>{"use strict";var eDe=require("fs"),ug;process.platform==="win32"||global.TESTING_WINDOWS?ug=rL():ug=AL();aL.exports=zQ;zQ.sync=_ie;function zQ(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){zQ(t,e||{},function(s,o){s?i(s):n(o)})})}ug(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function _ie(t,e){try{return ug.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var EL=g((rDe,gL)=>{"use strict";var Ma=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",lL=require("path"),Die=Ma?";":":",uL=cL(),hL=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),fL=(t,e)=>{let r=e.colon||Die,n=t.match(/\//)||Ma&&t.match(/\\/)?[""]:[...Ma?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Ma?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ma?i.split(r):[""];return Ma&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},dL=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=fL(t,e),o=[],A=c=>new Promise((l,u)=>{if(c===n.length)return e.all&&o.length?l(o):u(hL(t));let h=n[c],f=/^".*"$/.test(h)?h.slice(1,-1):h,d=lL.join(f,t),E=!f&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;l(a(E,c,0))}),a=(c,l,u)=>new Promise((h,f)=>{if(u===i.length)return h(A(l+1));let d=i[u];uL(c+d,{pathExt:s},(E,p)=>{if(!E&&p)if(e.all)o.push(c+d);else return h(c+d);return h(a(c,l,u+1))})});return r?A(0).then(c=>r(null,c),r):A(0)},xie=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=fL(t,e),s=[];for(let o=0;o<r.length;o++){let A=r[o],a=/^".*"$/.test(A)?A.slice(1,-1):A,c=lL.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let u=0;u<n.length;u++){let h=l+n[u];try{if(uL.sync(h,{pathExt:i}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw hL(t)};gL.exports=dL;dL.sync=xie});var $Q=g((nDe,ZQ)=>{"use strict";var pL=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ZQ.exports=pL;ZQ.exports.default=pL});var BL=g((iDe,IL)=>{"use strict";var CL=require("path"),Fie=EL(),Nie=$Q();function mL(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=Fie.sync(t.command,{path:r[Nie({env:r})],pathExt:e?CL.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=CL.resolve(i?t.options.cwd:"",o)),o}function Tie(t){return mL(t)||mL(t,!0)}IL.exports=Tie});var QL=g((sDe,XQ)=>{"use strict";var KQ=/([()\][%!^"`<>&|;, *?])/g;function Mie(t){return t=t.replace(KQ,"^$1"),t}function Lie(t,e){return t=`${t}`,t=t.replace(/(
|
|
45
|
+
`)}function qM(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Ru={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};lg.exports=JQ;for(let t in Ru)lg.exports[t]=e=>new JQ(Ru[t].colors)(e,Ru[t].options),lg.exports[t].multiline=e=>new JQ(Ru[t].colors).multiline(e,Ru[t].options)});var rL=g((K_e,tL)=>{"use strict";tL.exports=eL;eL.sync=Rie;var KM=require("fs");function Sie(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function XM(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Sie(e,r)}function eL(t,e,r){KM.stat(t,function(n,i){r(n,n?!1:XM(i,t,e))})}function Rie(t,e){return XM(KM.statSync(t),t,e)}});var AL=g((X_e,oL)=>{"use strict";oL.exports=iL;iL.sync=vie;var nL=require("fs");function iL(t,e,r){nL.stat(t,function(n,i){r(n,n?!1:sL(i,e))})}function vie(t,e){return sL(nL.statSync(t),e)}function sL(t,e){return t.isFile()&&kie(t,e)}function kie(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),A=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=A|a,u=r&c||r&a&&i===o||r&A&&n===s||r&l&&s===0;return u}});var cL=g((tDe,aL)=>{"use strict";var eDe=require("fs"),ug;process.platform==="win32"||global.TESTING_WINDOWS?ug=rL():ug=AL();aL.exports=zQ;zQ.sync=_ie;function zQ(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){zQ(t,e||{},function(s,o){s?i(s):n(o)})})}ug(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function _ie(t,e){try{return ug.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var EL=g((rDe,gL)=>{"use strict";var Ma=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",lL=require("path"),Die=Ma?";":":",uL=cL(),hL=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),fL=(t,e)=>{let r=e.colon||Die,n=t.match(/\//)||Ma&&t.match(/\\/)?[""]:[...Ma?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Ma?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ma?i.split(r):[""];return Ma&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},dL=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=fL(t,e),o=[],A=c=>new Promise((l,u)=>{if(c===n.length)return e.all&&o.length?l(o):u(hL(t));let h=n[c],f=/^".*"$/.test(h)?h.slice(1,-1):h,d=lL.join(f,t),E=!f&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;l(a(E,c,0))}),a=(c,l,u)=>new Promise((h,f)=>{if(u===i.length)return h(A(l+1));let d=i[u];uL(c+d,{pathExt:s},(E,p)=>{if(!E&&p)if(e.all)o.push(c+d);else return h(c+d);return h(a(c,l,u+1))})});return r?A(0).then(c=>r(null,c),r):A(0)},xie=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=fL(t,e),s=[];for(let o=0;o<r.length;o++){let A=r[o],a=/^".*"$/.test(A)?A.slice(1,-1):A,c=lL.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let u=0;u<n.length;u++){let h=l+n[u];try{if(uL.sync(h,{pathExt:i}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw hL(t)};gL.exports=dL;dL.sync=xie});var $Q=g((nDe,ZQ)=>{"use strict";var pL=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ZQ.exports=pL;ZQ.exports.default=pL});var BL=g((iDe,IL)=>{"use strict";var CL=require("path"),Fie=EL(),Nie=$Q();function mL(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=Fie.sync(t.command,{path:r[Nie({env:r})],pathExt:e?CL.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=CL.resolve(i?t.options.cwd:"",o)),o}function Tie(t){return mL(t)||mL(t,!0)}IL.exports=Tie});var QL=g((sDe,XQ)=>{"use strict";var KQ=/([()\][%!^"`<>&|;, *?])/g;function Mie(t){return t=t.replace(KQ,"^$1"),t}function Lie(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(KQ,"^$1"),e&&(t=t.replace(KQ,"^$1")),t}XQ.exports.command=Mie;XQ.exports.argument=Lie});var wL=g((oDe,yL)=>{"use strict";yL.exports=/^#!(.*)/});var SL=g((ADe,bL)=>{"use strict";var Uie=wL();bL.exports=(t="")=>{let e=t.match(Uie);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var vL=g((aDe,RL)=>{"use strict";var ey=require("fs"),Oie=SL();function Pie(t){let r=Buffer.alloc(150),n;try{n=ey.openSync(t,"r"),ey.readSync(n,r,0,150,0),ey.closeSync(n)}catch{}return Oie(r.toString())}RL.exports=Pie});var xL=g((cDe,DL)=>{"use strict";var Hie=require("path"),kL=BL(),_L=QL(),Gie=vL(),qie=process.platform==="win32",Yie=/\.(?:com|exe)$/i,Vie=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jie(t){t.file=kL(t);let e=t.file&&Gie(t.file);return e?(t.args.unshift(t.file),t.command=e,kL(t)):t.file}function Wie(t){if(!qie)return t;let e=Jie(t),r=!Yie.test(e);if(t.options.forceShell||r){let n=Vie.test(e);t.command=Hie.normalize(t.command),t.command=_L.command(t.command),t.args=t.args.map(s=>_L.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function jie(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Wie(n)}DL.exports=jie});var TL=g((lDe,NL)=>{"use strict";var ty=process.platform==="win32";function ry(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function zie(t,e){if(!ty)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=FL(i,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function FL(t,e){return ty&&t===1&&!e.file?ry(e.original,"spawn"):null}function Zie(t,e){return ty&&t===1&&!e.file?ry(e.original,"spawnSync"):null}NL.exports={hookChildProcess:zie,verifyENOENT:FL,verifyENOENTSync:Zie,notFoundError:ry}});var UL=g((uDe,La)=>{"use strict";var ML=require("child_process"),ny=xL(),iy=TL();function LL(t,e,r){let n=ny(t,e,r),i=ML.spawn(n.command,n.args,n.options);return iy.hookChildProcess(i,n),i}function $ie(t,e,r){let n=ny(t,e,r),i=ML.spawnSync(n.command,n.args,n.options);return i.error=i.error||iy.verifyENOENTSync(i.status,n),i}La.exports=LL;La.exports.spawn=LL;La.exports.sync=$ie;La.exports._parse=ny;La.exports._enoent=iy});var PL=g((hDe,OL)=>{"use strict";OL.exports=t=>{let e=typeof t=="string"?`
|
|
46
46
|
`:10,r=typeof t=="string"?"\r":13;return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var qL=g((fDe,_u)=>{"use strict";var ku=require("path"),HL=$Q(),GL=t=>{t={cwd:process.cwd(),path:process.env[HL()],execPath:process.execPath,...t};let e,r=ku.resolve(t.cwd),n=[];for(;e!==r;)n.push(ku.join(r,"node_modules/.bin")),e=r,r=ku.resolve(r,"..");let i=ku.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(ku.delimiter)};_u.exports=GL;_u.exports.default=GL;_u.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=HL({env:e});return t.path=e[r],e[r]=_u.exports(t),e}});var YL=g(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.SIGNALS=void 0;var Kie=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];hg.SIGNALS=Kie});var sy=g(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.SIGRTMAX=Ua.getRealtimeSignals=void 0;var Xie=function(){let t=JL-VL+1;return Array.from({length:t},ese)};Ua.getRealtimeSignals=Xie;var ese=function(t,e){return{name:`SIGRT${e+1}`,number:VL+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},VL=34,JL=64;Ua.SIGRTMAX=JL});var WL=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.getSignals=void 0;var tse=require("os"),rse=YL(),nse=sy(),ise=function(){let t=(0,nse.getRealtimeSignals)();return[...rse.SIGNALS,...t].map(sse)};fg.getSignals=ise;var sse=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=tse.constants,A=o!==void 0;return{name:t,number:A?o:e,description:r,supported:A,action:n,forced:i,standard:s}}});var zL=g(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.signalsByNumber=Oa.signalsByName=void 0;var ose=require("os"),jL=WL(),Ase=sy(),ase=function(){return(0,jL.getSignals)().reduce(cse,{})},cse=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:A}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:A}}},lse=ase();Oa.signalsByName=lse;var use=function(){let t=(0,jL.getSignals)(),e=Ase.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>hse(i,t));return Object.assign({},...r)},hse=function(t,e){let r=fse(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:A,standard:a}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:A,standard:a}}},fse=function(t,e){let r=e.find(({name:n})=>ose.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},dse=use();Oa.signalsByNumber=dse});var $L=g((CDe,ZL)=>{"use strict";var{signalsByName:gse}=zL(),Ese=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",pse=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:A,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:u}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let h=i===void 0?void 0:gse[i].description,f=n&&n.code,E=`Command ${Ese({timedOut:a,timeout:u,errorCode:f,signal:i,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,p=Object.prototype.toString.call(n)==="[object Error]",C=p?`${E}
|
|
47
47
|
${n.message}`:E,w=[C,e,t].filter(Boolean).join(`
|
|
48
48
|
`);return p?(n.originalMessage=n.message,n.message=w):n=new Error(w),n.shortMessage=C,n.command=o,n.escapedCommand=A,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=l&&!a,n};ZL.exports=pse});var XL=g((mDe,oy)=>{"use strict";var dg=["stdin","stdout","stderr"],Cse=t=>dg.some(e=>t[e]!==void 0),KL=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return dg.map(n=>t[n]);if(Cse(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${dg.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,dg.length);return Array.from({length:r},(n,i)=>e[i])};oy.exports=KL;oy.exports.node=t=>{let e=KL(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var t2=g((IDe,e2)=>{"use strict";var mse=require("os"),Ise=bQ(),Bse=1e3*5,Qse=(t,e="SIGTERM",r={})=>{let n=t(e);return yse(t,e,r,n),n},yse=(t,e,r,n)=>{if(!wse(e,r,n))return;let i=Sse(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},wse=(t,{forceKillAfterTimeout:e},r)=>bse(t)&&e!==!1&&r,bse=t=>t===mse.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Sse=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Bse;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Rse=(t,e)=>{t.kill()&&(e.isCanceled=!0)},vse=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},kse=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((A,a)=>{i=setTimeout(()=>{vse(t,r,a)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},_se=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Dse=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=Ise(()=>{t.kill()});return n.finally(()=>{i()})};e2.exports={spawnedKill:Qse,spawnedCancel:Rse,setupTimeout:kse,validateTimeout:_se,setExitHandler:Dse}});var n2=g((BDe,r2)=>{"use strict";var ii=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ii.writable=t=>ii(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ii.readable=t=>ii(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ii.duplex=t=>ii.writable(t)&&ii.readable(t);ii.transform=t=>ii.duplex(t)&&typeof t._transform=="function";r2.exports=ii});var s2=g((QDe,i2)=>{"use strict";var{PassThrough:xse}=require("stream");i2.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new xse({objectMode:i});r&&s.setEncoding(r);let o=0,A=[];return s.on("data",a=>{A.push(a),i?o=A.length:o+=a.length}),s.getBufferedValue=()=>e?A:n?Buffer.concat(A,o):A.join(""),s.getBufferedLength=()=>o,s}});var o2=g((yDe,Du)=>{"use strict";var{constants:Fse}=require("buffer"),Nse=require("stream"),{promisify:Tse}=require("util"),Mse=s2(),Lse=Tse(Nse.pipeline),gg=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ay(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=Mse(e);return await new Promise((i,s)=>{let o=A=>{A&&n.getBufferedLength()<=Fse.MAX_LENGTH&&(A.bufferedData=n.getBufferedValue()),s(A)};(async()=>{try{await Lse(t,n),i()}catch(A){o(A)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new gg)})}),n.getBufferedValue()}Du.exports=Ay;Du.exports.buffer=(t,e)=>Ay(t,{...e,encoding:"buffer"});Du.exports.array=(t,e)=>Ay(t,{...e,array:!0});Du.exports.MaxBufferError=gg});var a2=g((wDe,A2)=>{"use strict";var{PassThrough:Use}=require("stream");A2.exports=function(){var t=[],e=new Use({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var h2=g((bDe,u2)=>{"use strict";var l2=n2(),c2=o2(),Ose=a2(),Pse=(t,e)=>{e===void 0||t.stdin===void 0||(l2(e)?e.pipe(t.stdin):t.stdin.end(e))},Hse=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Ose();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},ay=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},cy=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?c2(t,{encoding:e,maxBuffer:n}):c2.buffer(t,{maxBuffer:n})},Gse=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let A=cy(t,{encoding:n,buffer:i,maxBuffer:s}),a=cy(e,{encoding:n,buffer:i,maxBuffer:s}),c=cy(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,A,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},ay(t,A),ay(e,a),ay(r,c)])}},qse=({input:t})=>{if(l2(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};u2.exports={handleInput:Pse,makeAllStream:Hse,getSpawnedResult:Gse,validateInputSync:qse}});var d2=g((SDe,f2)=>{"use strict";var Yse=(async()=>{})().constructor.prototype,Vse=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Yse,t)]),Jse=(t,e)=>{for(let[r,n]of Vse){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},Wse=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});f2.exports={mergePromise:Jse,getSpawnedPromise:Wse}});var p2=g((RDe,E2)=>{"use strict";var g2=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jse=/^[\w.-]+$/,zse=/"/g,Zse=t=>typeof t!="string"||jse.test(t)?t:`"${t.replace(zse,'\\"')}"`,$se=(t,e)=>g2(t,e).join(" "),Kse=(t,e)=>g2(t,e).map(r=>Zse(r)).join(" "),Xse=/ +/g,eoe=t=>{let e=[];for(let r of t.trim().split(Xse)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};E2.exports={joinCommand:$se,getEscapedCommand:Kse,parseCommand:eoe}});var w2=g((vDe,Pa)=>{"use strict";var toe=require("path"),ly=require("child_process"),roe=UL(),noe=PL(),ioe=qL(),soe=QQ(),Eg=$L(),m2=XL(),{spawnedKill:ooe,spawnedCancel:Aoe,setupTimeout:aoe,validateTimeout:coe,setExitHandler:loe}=t2(),{handleInput:uoe,getSpawnedResult:hoe,makeAllStream:foe,validateInputSync:doe}=h2(),{mergePromise:C2,getSpawnedPromise:goe}=d2(),{joinCommand:I2,parseCommand:B2,getEscapedCommand:Q2}=p2(),Eoe=1e3*1e3*100,poe=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?ioe.env({env:s,cwd:n,execPath:i}):s},y2=(t,e,r={})=>{let n=roe._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:Eoe,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=poe(r),r.stdio=m2(r),process.platform==="win32"&&toe.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},xu=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?noe(e):e,pg=(t,e,r)=>{let n=y2(t,e,r),i=I2(t,e),s=Q2(t,e);coe(n.options);let o;try{o=ly.spawn(n.file,n.args,n.options)}catch(f){let d=new ly.ChildProcess,E=Promise.reject(Eg({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return C2(d,E)}let A=goe(o),a=aoe(o,n.options,A),c=loe(o,n.options,a),l={isCanceled:!1};o.kill=ooe.bind(null,o.kill.bind(o)),o.cancel=Aoe.bind(null,o,l);let h=soe(async()=>{let[{error:f,exitCode:d,signal:E,timedOut:p},C,w,R]=await hoe(o,n.options,c),S=xu(n.options,C),_=xu(n.options,w),O=xu(n.options,R);if(f||d!==0||E!==null){let N=Eg({error:f,exitCode:d,signal:E,stdout:S,stderr:_,all:O,command:i,escapedCommand:s,parsed:n,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return N;throw N}return{command:i,escapedCommand:s,exitCode:0,stdout:S,stderr:_,all:O,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return uoe(o,n.options.input),o.all=foe(o,n.options),C2(o,h)};Pa.exports=pg;Pa.exports.sync=(t,e,r)=>{let n=y2(t,e,r),i=I2(t,e),s=Q2(t,e);doe(n.options);let o;try{o=ly.spawnSync(n.file,n.args,n.options)}catch(c){throw Eg({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let A=xu(n.options,o.stdout,o.error),a=xu(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Eg({stdout:A,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:A,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Pa.exports.command=(t,e)=>{let[r,...n]=B2(t);return pg(r,n,e)};Pa.exports.commandSync=(t,e)=>{let[r,...n]=B2(t);return pg.sync(r,n,e)};Pa.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=m2.node(r),i=process.execArgv.filter(A=>!A.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return pg(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Ha=g((FDe,R2)=>{"use strict";var S2=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"]]);R2.exports=t=>t?Object.keys(t).map(e=>[S2.has(e)?S2.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var yg=g((NDe,M2)=>{"use strict";var v2=typeof process=="object"&&process?process:{stdout:null,stderr:null},Boe=require("events"),k2=require("stream"),_2=require("string_decoder").StringDecoder,Oi=Symbol("EOF"),Pi=Symbol("maybeEmitEnd"),Ns=Symbol("emittedEnd"),Cg=Symbol("emittingEnd"),Fu=Symbol("emittedError"),mg=Symbol("closed"),D2=Symbol("read"),Ig=Symbol("flush"),x2=Symbol("flushChunk"),Qr=Symbol("encoding"),Hi=Symbol("decoder"),Bg=Symbol("flowing"),Nu=Symbol("paused"),Ga=Symbol("resume"),gt=Symbol("buffer"),si=Symbol("pipes"),Tt=Symbol("bufferLength"),uy=Symbol("bufferPush"),hy=Symbol("bufferShift"),Kt=Symbol("objectMode"),Xt=Symbol("destroyed"),fy=Symbol("emitData"),F2=Symbol("emitEnd"),dy=Symbol("emitEnd2"),Gi=Symbol("async"),Tu=t=>Promise.resolve().then(t),N2=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Qoe=N2&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),yoe=N2&&Symbol.iterator||Symbol("iterator not implemented"),woe=t=>t==="end"||t==="finish"||t==="prefinish",boe=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Soe=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Qg=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Ga](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},gy=class extends Qg{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};M2.exports=class T2 extends k2{constructor(e){super(),this[Bg]=!1,this[Nu]=!1,this[si]=[],this[gt]=[],this[Kt]=e&&e.objectMode||!1,this[Kt]?this[Qr]=null:this[Qr]=e&&e.encoding||null,this[Qr]==="buffer"&&(this[Qr]=null),this[Gi]=e&&!!e.async||!1,this[Hi]=this[Qr]?new _2(this[Qr]):null,this[Oi]=!1,this[Ns]=!1,this[Cg]=!1,this[mg]=!1,this[Fu]=null,this.writable=!0,this.readable=!0,this[Tt]=0,this[Xt]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[gt]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[si]})}get bufferLength(){return this[Tt]}get encoding(){return this[Qr]}set encoding(e){if(this[Kt])throw new Error("cannot set encoding in objectMode");if(this[Qr]&&e!==this[Qr]&&(this[Hi]&&this[Hi].lastNeed||this[Tt]))throw new Error("cannot change encoding");this[Qr]!==e&&(this[Hi]=e?new _2(e):null,this[gt].length&&(this[gt]=this[gt].map(r=>this[Hi].write(r)))),this[Qr]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Kt]}set objectMode(e){this[Kt]=this[Kt]||!!e}get async(){return this[Gi]}set async(e){this[Gi]=this[Gi]||!!e}write(e,r,n){if(this[Oi])throw new Error("write after end");if(this[Xt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Gi]?Tu:s=>s();return!this[Kt]&&!Buffer.isBuffer(e)&&(Soe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):boe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Kt]?(this.flowing&&this[Tt]!==0&&this[Ig](!0),this.flowing?this.emit("data",e):this[uy](e),this[Tt]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Qr]&&!this[Hi].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Qr]&&(e=this[Hi].write(e)),this.flowing&&this[Tt]!==0&&this[Ig](!0),this.flowing?this.emit("data",e):this[uy](e),this[Tt]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Tt]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Xt])return null;if(this[Tt]===0||e===0||e>this[Tt])return this[Pi](),null;this[Kt]&&(e=null),this[gt].length>1&&!this[Kt]&&(this.encoding?this[gt]=[this[gt].join("")]:this[gt]=[Buffer.concat(this[gt],this[Tt])]);let r=this[D2](e||null,this[gt][0]);return this[Pi](),r}[D2](e,r){return e===r.length||e===null?this[hy]():(this[gt][0]=r.slice(e),r=r.slice(0,e),this[Tt]-=e),this.emit("data",r),!this[gt].length&&!this[Oi]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Oi]=!0,this.writable=!1,(this.flowing||!this[Nu])&&this[Pi](),this}[Ga](){this[Xt]||(this[Nu]=!1,this[Bg]=!0,this.emit("resume"),this[gt].length?this[Ig]():this[Oi]?this[Pi]():this.emit("drain"))}resume(){return this[Ga]()}pause(){this[Bg]=!1,this[Nu]=!0}get destroyed(){return this[Xt]}get flowing(){return this[Bg]}get paused(){return this[Nu]}[uy](e){this[Kt]?this[Tt]+=1:this[Tt]+=e.length,this[gt].push(e)}[hy](){return this[gt].length&&(this[Kt]?this[Tt]-=1:this[Tt]-=this[gt][0].length),this[gt].shift()}[Ig](e){do;while(this[x2](this[hy]()));!e&&!this[gt].length&&!this[Oi]&&this.emit("drain")}[x2](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Xt])return;let n=this[Ns];return r=r||{},e===v2.stdout||e===v2.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[si].push(r.proxyErrors?new gy(this,e,r):new Qg(this,e,r)),this[Gi]?Tu(()=>this[Ga]()):this[Ga]()),e}unpipe(e){let r=this[si].find(n=>n.dest===e);r&&(this[si].splice(this[si].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[si].length&&!this.flowing?this[Ga]():e==="readable"&&this[Tt]!==0?super.emit("readable"):woe(e)&&this[Ns]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fu]&&(this[Gi]?Tu(()=>r.call(this,this[Fu])):r.call(this,this[Fu])),n}get emittedEnd(){return this[Ns]}[Pi](){!this[Cg]&&!this[Ns]&&!this[Xt]&&this[gt].length===0&&this[Oi]&&(this[Cg]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[mg]&&this.emit("close"),this[Cg]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Xt&&this[Xt])return;if(e==="data")return r?this[Gi]?Tu(()=>this[fy](r)):this[fy](r):!1;if(e==="end")return this[F2]();if(e==="close"){if(this[mg]=!0,!this[Ns]&&!this[Xt])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Fu]=r;let s=super.emit("error",r);return this[Pi](),s}else if(e==="resume"){let s=super.emit("resume");return this[Pi](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Pi](),i}[fy](e){for(let n of this[si])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Pi](),r}[F2](){this[Ns]||(this[Ns]=!0,this.readable=!1,this[Gi]?Tu(()=>this[dy]()):this[dy]())}[dy](){if(this[Hi]){let r=this[Hi].end();if(r){for(let n of this[si])n.dest.write(r);super.emit("data",r)}}for(let r of this[si])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Kt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Kt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[Kt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Kt]?Promise.reject(new Error("cannot concat in objectMode")):this[Qr]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Xt,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Qoe](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Oi])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",A),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",A),this.pause(),n({value:c,done:!!this[Oi]})},A=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Xt,a),this.once("error",s),this.once("end",A),this.once("data",o)})}}}[yoe](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Xt]?(e?this.emit("error",e):this.emit(Xt),this):(this[Xt]=!0,this[gt].length=0,this[Tt]=0,typeof this.close=="function"&&!this[mg]&&this.close(),e?this.emit("error",e):this.emit(Xt),this)}static isStream(e){return!!e&&(e instanceof T2||e instanceof k2||e instanceof Boe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var U2=g((TDe,L2)=>{"use strict";var Roe=require("zlib").constants||{ZLIB_VERNUM:4736};L2.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},Roe))});var By=g((MDe,W2)=>{"use strict";var O2=typeof process=="object"&&process?process:{stdout:null,stderr:null},voe=require("events"),P2=require("stream"),H2=require("string_decoder").StringDecoder,qi=Symbol("EOF"),Yi=Symbol("maybeEmitEnd"),Ts=Symbol("emittedEnd"),wg=Symbol("emittingEnd"),Mu=Symbol("emittedError"),bg=Symbol("closed"),G2=Symbol("read"),Sg=Symbol("flush"),q2=Symbol("flushChunk"),yr=Symbol("encoding"),Vi=Symbol("decoder"),Rg=Symbol("flowing"),Lu=Symbol("paused"),qa=Symbol("resume"),Mt=Symbol("bufferLength"),Ey=Symbol("bufferPush"),py=Symbol("bufferShift"),er=Symbol("objectMode"),tr=Symbol("destroyed"),Cy=Symbol("emitData"),Y2=Symbol("emitEnd"),my=Symbol("emitEnd2"),Ji=Symbol("async"),Uu=t=>Promise.resolve().then(t),V2=global._MP_NO_ITERATOR_SYMBOLS_!=="1",koe=V2&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),_oe=V2&&Symbol.iterator||Symbol("iterator not implemented"),Doe=t=>t==="end"||t==="finish"||t==="prefinish",xoe=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Foe=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),vg=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[qa](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Iy=class extends vg{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};W2.exports=class J2 extends P2{constructor(e){super(),this[Rg]=!1,this[Lu]=!1,this.pipes=[],this.buffer=[],this[er]=e&&e.objectMode||!1,this[er]?this[yr]=null:this[yr]=e&&e.encoding||null,this[yr]==="buffer"&&(this[yr]=null),this[Ji]=e&&!!e.async||!1,this[Vi]=this[yr]?new H2(this[yr]):null,this[qi]=!1,this[Ts]=!1,this[wg]=!1,this[bg]=!1,this[Mu]=null,this.writable=!0,this.readable=!0,this[Mt]=0,this[tr]=!1}get bufferLength(){return this[Mt]}get encoding(){return this[yr]}set encoding(e){if(this[er])throw new Error("cannot set encoding in objectMode");if(this[yr]&&e!==this[yr]&&(this[Vi]&&this[Vi].lastNeed||this[Mt]))throw new Error("cannot change encoding");this[yr]!==e&&(this[Vi]=e?new H2(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vi].write(r)))),this[yr]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[er]}set objectMode(e){this[er]=this[er]||!!e}get async(){return this[Ji]}set async(e){this[Ji]=this[Ji]||!!e}write(e,r,n){if(this[qi])throw new Error("write after end");if(this[tr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Ji]?Uu:s=>s();return!this[er]&&!Buffer.isBuffer(e)&&(Foe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):xoe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[er]?(this.flowing&&this[Mt]!==0&&this[Sg](!0),this.flowing?this.emit("data",e):this[Ey](e),this[Mt]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[yr]&&!this[Vi].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yr]&&(e=this[Vi].write(e)),this.flowing&&this[Mt]!==0&&this[Sg](!0),this.flowing?this.emit("data",e):this[Ey](e),this[Mt]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Mt]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[tr])return null;if(this[Mt]===0||e===0||e>this[Mt])return this[Yi](),null;this[er]&&(e=null),this.buffer.length>1&&!this[er]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Mt])]);let r=this[G2](e||null,this.buffer[0]);return this[Yi](),r}[G2](e,r){return e===r.length||e===null?this[py]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Mt]-=e),this.emit("data",r),!this.buffer.length&&!this[qi]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[qi]=!0,this.writable=!1,(this.flowing||!this[Lu])&&this[Yi](),this}[qa](){this[tr]||(this[Lu]=!1,this[Rg]=!0,this.emit("resume"),this.buffer.length?this[Sg]():this[qi]?this[Yi]():this.emit("drain"))}resume(){return this[qa]()}pause(){this[Rg]=!1,this[Lu]=!0}get destroyed(){return this[tr]}get flowing(){return this[Rg]}get paused(){return this[Lu]}[Ey](e){this[er]?this[Mt]+=1:this[Mt]+=e.length,this.buffer.push(e)}[py](){return this.buffer.length&&(this[er]?this[Mt]-=1:this[Mt]-=this.buffer[0].length),this.buffer.shift()}[Sg](e){do;while(this[q2](this[py]()));!e&&!this.buffer.length&&!this[qi]&&this.emit("drain")}[q2](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[tr])return;let n=this[Ts];return r=r||{},e===O2.stdout||e===O2.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Iy(this,e,r):new vg(this,e,r)),this[Ji]?Uu(()=>this[qa]()):this[qa]()),e}unpipe(e){let r=this.pipes.find(n=>n.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 n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[qa]():e==="readable"&&this[Mt]!==0?super.emit("readable"):Doe(e)&&this[Ts]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Mu]&&(this[Ji]?Uu(()=>r.call(this,this[Mu])):r.call(this,this[Mu])),n}get emittedEnd(){return this[Ts]}[Yi](){!this[wg]&&!this[Ts]&&!this[tr]&&this.buffer.length===0&&this[qi]&&(this[wg]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[bg]&&this.emit("close"),this[wg]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==tr&&this[tr])return;if(e==="data")return r?this[Ji]?Uu(()=>this[Cy](r)):this[Cy](r):!1;if(e==="end")return this[Y2]();if(e==="close"){if(this[bg]=!0,!this[Ts]&&!this[tr])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Mu]=r;let s=super.emit("error",r);return this[Yi](),s}else if(e==="resume"){let s=super.emit("resume");return this[Yi](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Yi](),i}[Cy](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Yi](),r}[Y2](){this[Ts]||(this[Ts]=!0,this.readable=!1,this[Ji]?Uu(()=>this[my]()):this[my]())}[my](){if(this[Vi]){let r=this[Vi].end();if(r){for(let n of this.pipes)n.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[er]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[er]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[er]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[er]?Promise.reject(new Error("cannot concat in objectMode")):this[yr]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(tr,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[koe](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qi])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",A),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",A),this.pause(),n({value:c,done:!!this[qi]})},A=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(tr,a),this.once("error",s),this.once("end",A),this.once("data",o)})}}}[_oe](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[tr]?(e?this.emit("error",e):this.emit(tr),this):(this[tr]=!0,this.buffer.length=0,this[Mt]=0,typeof this.close=="function"&&!this[bg]&&this.close(),e?this.emit("error",e):this.emit(tr),this)}static isStream(e){return!!e&&(e instanceof J2||e instanceof P2||e instanceof voe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Ly=g(Ur=>{"use strict";var Sy=require("assert"),Ms=require("buffer").Buffer,Z2=require("zlib"),Yo=Ur.constants=U2(),Noe=By(),j2=Ms.concat,Vo=Symbol("_superWrite"),Va=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"}},Toe=Symbol("opts"),Ou=Symbol("flushFlag"),z2=Symbol("finishFlushFlag"),My=Symbol("fullFlushFlag"),ze=Symbol("handle"),kg=Symbol("onError"),Ya=Symbol("sawError"),Qy=Symbol("level"),yy=Symbol("strategy"),wy=Symbol("ended"),_g=class extends Noe{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ya]=!1,this[wy]=!1,this[Toe]=e,this[Ou]=e.flush,this[z2]=e.finishFlush;try{this[ze]=new Z2[r](e)}catch(n){throw new Va(n)}this[kg]=n=>{this[Ya]||(this[Ya]=!0,this.close(),this.emit("error",n))},this[ze].on("error",n=>this[kg](new Va(n))),this.once("end",()=>this.close)}close(){this[ze]&&(this[ze].close(),this[ze]=null,this.emit("close"))}reset(){if(!this[Ya])return Sy(this[ze],"zlib binding closed"),this[ze].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[My]),this.write(Object.assign(Ms.alloc(0),{[Ou]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[z2]),this[wy]=!0,super.end(null,null,n)}get ended(){return this[wy]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Ms.from(e,r)),this[Ya])return;Sy(this[ze],"zlib binding closed");let i=this[ze]._handle,s=i.close;i.close=()=>{};let o=this[ze].close;this[ze].close=()=>{},Ms.concat=c=>c;let A;try{let c=typeof e[Ou]=="number"?e[Ou]:this[Ou];A=this[ze]._processChunk(e,c),Ms.concat=j2}catch(c){Ms.concat=j2,this[kg](new Va(c))}finally{this[ze]&&(this[ze]._handle=i,i.close=s,this[ze].close=o,this[ze].removeAllListeners("error"))}this[ze]&&this[ze].on("error",c=>this[kg](new Va(c)));let a;if(A)if(Array.isArray(A)&&A.length>0){a=this[Vo](Ms.from(A[0]));for(let c=1;c<A.length;c++)a=this[Vo](A[c])}else a=this[Vo](Ms.from(A));return n&&n(),a}[Vo](e){return super.write(e)}},Wi=class extends _g{constructor(e,r){e=e||{},e.flush=e.flush||Yo.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Yo.Z_FINISH,super(e,r),this[My]=Yo.Z_FULL_FLUSH,this[Qy]=e.level,this[yy]=e.strategy}params(e,r){if(!this[Ya]){if(!this[ze])throw new Error("cannot switch params when binding is closed");if(!this[ze].params)throw new Error("not supported in this implementation");if(this[Qy]!==e||this[yy]!==r){this.flush(Yo.Z_SYNC_FLUSH),Sy(this[ze],"zlib binding closed");let n=this[ze].flush;this[ze].flush=(i,s)=>{this.flush(i),s()};try{this[ze].params(e,r)}finally{this[ze].flush=n}this[ze]&&(this[Qy]=e,this[yy]=r)}}}},Ry=class extends Wi{constructor(e){super(e,"Deflate")}},vy=class extends Wi{constructor(e){super(e,"Inflate")}},by=Symbol("_portable"),ky=class extends Wi{constructor(e){super(e,"Gzip"),this[by]=e&&!!e.portable}[Vo](e){return this[by]?(this[by]=!1,e[9]=255,super[Vo](e)):super[Vo](e)}},_y=class extends Wi{constructor(e){super(e,"Gunzip")}},Dy=class extends Wi{constructor(e){super(e,"DeflateRaw")}},xy=class extends Wi{constructor(e){super(e,"InflateRaw")}},Fy=class extends Wi{constructor(e){super(e,"Unzip")}},Dg=class extends _g{constructor(e,r){e=e||{},e.flush=e.flush||Yo.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Yo.BROTLI_OPERATION_FINISH,super(e,r),this[My]=Yo.BROTLI_OPERATION_FLUSH}},Ny=class extends Dg{constructor(e){super(e,"BrotliCompress")}},Ty=class extends Dg{constructor(e){super(e,"BrotliDecompress")}};Ur.Deflate=Ry;Ur.Inflate=vy;Ur.Gzip=ky;Ur.Gunzip=_y;Ur.DeflateRaw=Dy;Ur.InflateRaw=xy;Ur.Unzip=Fy;typeof Z2.BrotliCompress=="function"?(Ur.BrotliCompress=Ny,Ur.BrotliDecompress=Ty):Ur.BrotliCompress=Ur.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ja=g((ODe,$2)=>{"use strict";var Moe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;$2.exports=Moe!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var xg=g((HDe,K2)=>{"use strict";var Loe=yg(),Uy=Ja(),Oy=Symbol("slurp");K2.exports=class extends Loe{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,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=Uy(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=Uy(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Oy](r),n&&this[Oy](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Oy](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Uy(e[n]):e[n])}}});var Py=g(Fg=>{"use strict";Fg.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"]]);Fg.code=new Map(Array.from(Fg.name).map(t=>[t[1],t[0]]))});var rU=g((qDe,tU)=>{"use strict";var Uoe=(t,e)=>{if(Number.isSafeInteger(t))t<0?Poe(t,e):Ooe(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Ooe=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},Poe=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=X2(i):i===0?e[n-1]=0:(r=!0,e[n-1]=eU(i))}},Hoe=t=>{let e=t[0],r=e===128?qoe(t.slice(1,t.length)):e===255?Goe(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},Goe=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=X2(s):s===0?o=s:(n=!0,o=eU(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},qoe=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},X2=t=>(255^t)&255,eU=t=>(255^t)+1&255;tU.exports={encode:Uoe,parse:Hoe}});var ja=g((YDe,iU)=>{"use strict";var Hy=Py(),Wa=require("path").posix,nU=rU(),Gy=Symbol("slurp"),Or=Symbol("type"),Vy=class{constructor(e,r,n,i){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[Or]="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,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Jo(e,r,100),this.mode=Ls(e,r+100,8),this.uid=Ls(e,r+108,8),this.gid=Ls(e,r+116,8),this.size=Ls(e,r+124,12),this.mtime=qy(e,r+136,12),this.cksum=Ls(e,r+148,12),this[Gy](n),this[Gy](i,!0),this[Or]=Jo(e,r+156,1),this[Or]===""&&(this[Or]="0"),this[Or]==="0"&&this.path.slice(-1)==="/"&&(this[Or]="5"),this[Or]==="5"&&(this.size=0),this.linkpath=Jo(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Jo(e,r+265,32),this.gname=Jo(e,r+297,32),this.devmaj=Ls(e,r+329,8),this.devmin=Ls(e,r+337,8),e[r+475]!==0){let o=Jo(e,r+345,155);this.path=o+"/"+this.path}else{let o=Jo(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=qy(e,r+476,12),this.ctime=qy(e,r+488,12)}let s=256;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===256&&(this.nullBlock=!0)}[Gy](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}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 n=this.ctime||this.atime?130:155,i=Yoe(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=Wo(e,r,100,s)||this.needPax,this.needPax=Us(e,r+100,8,this.mode)||this.needPax,this.needPax=Us(e,r+108,8,this.uid)||this.needPax,this.needPax=Us(e,r+116,8,this.gid)||this.needPax,this.needPax=Us(e,r+124,12,this.size)||this.needPax,this.needPax=Yy(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Or].charCodeAt(0),this.needPax=Wo(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Wo(e,r+265,32,this.uname)||this.needPax,this.needPax=Wo(e,r+297,32,this.gname)||this.needPax,this.needPax=Us(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Us(e,r+337,8,this.devmin)||this.needPax,this.needPax=Wo(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=Wo(e,r+345,155,o)||this.needPax:(this.needPax=Wo(e,r+345,130,o)||this.needPax,this.needPax=Yy(e,r+476,12,this.atime)||this.needPax,this.needPax=Yy(e,r+488,12,this.ctime)||this.needPax);let A=256;for(let a=r;a<r+148;a++)A+=e[a];for(let a=r+156;a<r+512;a++)A+=e[a];return this.cksum=A,Us(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 Hy.name.get(this[Or])||this[Or]}get typeKey(){return this[Or]}set type(e){Hy.code.has(e)?this[Or]=Hy.code.get(e):this[Or]=e}},Yoe=(t,e)=>{let n=t,i="",s,o=Wa.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Wa.dirname(n),n=Wa.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,99),i,!0]:(n=Wa.join(Wa.basename(i),n),i=Wa.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,99),"",!0])}return s},Jo=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),qy=(t,e,r)=>Voe(Ls(t,e,r)),Voe=t=>t===null?null:new Date(t*1e3),Ls=(t,e,r)=>t[e]&128?nU.parse(t.slice(e,e+r)):Woe(t,e,r),Joe=t=>isNaN(t)?null:t,Woe=(t,e,r)=>Joe(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),joe={12:8589934591,8:2097151},Us=(t,e,r,n)=>n===null?!1:n>joe[r]||n<0?(nU.encode(n,t.slice(e,e+r)),!0):(zoe(t,e,r,n),!1),zoe=(t,e,r,n)=>t.write(Zoe(n,r),e,r,"ascii"),Zoe=(t,e)=>$oe(Math.floor(t).toString(8),e),$oe=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Yy=(t,e,r,n)=>n===null?!1:Us(t,e,r,n.getTime()/1e3),Koe=new Array(156).join("\0"),Wo=(t,e,r,n)=>n===null?!1:(t.write(n+Koe,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);iU.exports=Vy});var Ng=g((VDe,sU)=>{"use strict";var Xoe=ja(),eAe=require("path"),Pu=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),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new Xoe({path:("PaxHeader/"+eAe.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(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
@@ -90,13 +90,13 @@ ${c.toString(16)}\r
|
|
|
90
90
|
${n.count} ${n.noun} ${n.is} pending:
|
|
91
91
|
|
|
92
92
|
${e.format(r)}
|
|
93
|
-
`.trim())}};TJ.exports=SS});var kp=g((VFe,PJ)=>{"use strict";var LJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:npe}=Le(),ipe=Mc();OJ()===void 0&&UJ(new ipe);function UJ(t){if(!t||typeof t.dispatch!="function")throw new npe("Argument agent must implement Agent");Object.defineProperty(globalThis,LJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}function OJ(){return globalThis[LJ]}PJ.exports={setGlobalDispatcher:UJ,getGlobalDispatcher:OJ}});var _p=g((WFe,GJ)=>{"use strict";var pn,HJ;GJ.exports=(HJ=class{constructor(e){q(this,pn);if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");U(this,pn,e)}onConnect(...e){var r,n;return(n=(r=m(this,pn)).onConnect)==null?void 0:n.call(r,...e)}onError(...e){var r,n;return(n=(r=m(this,pn)).onError)==null?void 0:n.call(r,...e)}onUpgrade(...e){var r,n;return(n=(r=m(this,pn)).onUpgrade)==null?void 0:n.call(r,...e)}onResponseStarted(...e){var r,n;return(n=(r=m(this,pn)).onResponseStarted)==null?void 0:n.call(r,...e)}onHeaders(...e){var r,n;return(n=(r=m(this,pn)).onHeaders)==null?void 0:n.call(r,...e)}onData(...e){var r,n;return(n=(r=m(this,pn)).onData)==null?void 0:n.call(r,...e)}onComplete(...e){var r,n;return(n=(r=m(this,pn)).onComplete)==null?void 0:n.call(r,...e)}onBodySent(...e){var r,n;return(n=(r=m(this,pn)).onBodySent)==null?void 0:n.call(r,...e)}},pn=new WeakMap,HJ)});var YJ=g((zFe,qJ)=>{"use strict";var spe=Ap();qJ.exports=t=>{let e=t==null?void 0:t.maxRedirections;return r=>function(i,s){let{maxRedirections:o=e,...A}=i;if(!o)return r(i,s);let a=new spe(r,o,i,s);return r(A,a)}}});var JJ=g((ZFe,VJ)=>{"use strict";var ope=mp();VJ.exports=t=>e=>function(n,i){return e(n,new ope({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))}});var zJ=g(($Fe,jJ)=>{"use strict";var Ape=we(),{InvalidArgumentError:ape,RequestAbortedError:cpe}=Le(),lpe=_p(),oo,Dp,jc,CA,zc,Zc,Hn,xp,WJ,RS=class extends lpe{constructor({maxSize:r},n){super(n);q(this,xp);q(this,oo,1024*1024);q(this,Dp,null);q(this,jc,!1);q(this,CA,!1);q(this,zc,0);q(this,Zc,null);q(this,Hn,null);if(r!=null&&(!Number.isFinite(r)||r<1))throw new ape("maxSize must be a number greater than 0");U(this,oo,r!=null?r:m(this,oo)),U(this,Hn,n)}onConnect(r){U(this,Dp,r),m(this,Hn).onConnect(ke(this,xp,WJ).bind(this))}onHeaders(r,n,i,s){let A=Ape.parseHeaders(n)["content-length"];if(A!=null&&A>m(this,oo))throw new cpe(`Response size (${A}) larger than maxSize (${m(this,oo)})`);return m(this,CA)?!0:m(this,Hn).onHeaders(r,n,i,s)}onError(r){var n;m(this,jc)||(r=(n=m(this,Zc))!=null?n:r,m(this,Hn).onError(r))}onData(r){return U(this,zc,m(this,zc)+r.length),m(this,zc)>=m(this,oo)&&(U(this,jc,!0),m(this,CA)?m(this,Hn).onError(m(this,Zc)):m(this,Hn).onComplete([])),!0}onComplete(r){if(!m(this,jc)){if(m(this,CA)){m(this,Hn).onError(this.reason);return}m(this,Hn).onComplete(r)}}};oo=new WeakMap,Dp=new WeakMap,jc=new WeakMap,CA=new WeakMap,zc=new WeakMap,Zc=new WeakMap,Hn=new WeakMap,xp=new WeakSet,WJ=function(r){U(this,CA,!0),U(this,Zc,r)};function upe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,i){let{dumpMaxSize:s=t}=n,o=new RS({maxSize:s},i);return e(n,o)}}jJ.exports=upe});var e5=g((XFe,XJ)=>{"use strict";var{isIP:hpe}=require("net"),{lookup:fpe}=require("dns"),dpe=_p(),{InvalidArgumentError:$c,InformationalError:gpe}=Le(),ZJ=Math.pow(2,31)-1,mA,Kc,Ao,tl,$J,KJ,vS=class{constructor(e){q(this,tl);q(this,mA,0);q(this,Kc,0);q(this,Ao,new Map);se(this,"dualStack",!0);se(this,"affinity",null);se(this,"lookup",null);se(this,"pick",null);var r,n;U(this,mA,e.maxTTL),U(this,Kc,e.maxItems),this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=(r=e.lookup)!=null?r:ke(this,tl,$J),this.pick=(n=e.pick)!=null?n:ke(this,tl,KJ)}get full(){return m(this,Ao).size===m(this,Kc)}runLookup(e,r,n){let i=m(this,Ao).get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:m(this,mA),maxItems:m(this,Kc)};if(i==null)this.lookup(e,s,(o,A)=>{if(o||A==null||A.length===0){n(o!=null?o:new gpe("No DNS entries found"));return}this.setRecords(e,A);let a=m(this,Ao).get(e.hostname),c=this.pick(e,a,s.affinity),l;typeof c.port=="number"?l=`:${c.port}`:e.port!==""?l=`:${e.port}`:l="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${l}`)});else{let o=this.pick(e,i,s.affinity);if(o==null){m(this,Ao).delete(e.hostname),this.runLookup(e,r,n);return}let A;typeof o.port=="number"?A=`:${o.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${A}`)}}setRecords(e,r){var s;let n=Date.now(),i={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,m(this,mA)):o.ttl=m(this,mA);let A=(s=i.records[o.family])!=null?s:{ips:[]};A.ips.push(o),i.records[o.family]=A}m(this,Ao).set(e.hostname,i)}getHandler(e,r){return new kS(this,e,r)}};mA=new WeakMap,Kc=new WeakMap,Ao=new WeakMap,tl=new WeakSet,$J=function(e,r,n){fpe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let o=new Map;for(let A of s)o.set(`${A.address}:${A.family}`,A);n(null,o.values())})},KJ=function(e,r,n){var c;let i=null,{records:s,offset:o}=r,A;if(this.dualStack?(n==null&&(o==null||o===ZJ?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?A=s[n]:A=s[n===4?6:4]):A=s[n],A==null||A.ips.length===0)return i;A.offset==null||A.offset===ZJ?A.offset=0:A.offset++;let a=A.offset%A.ips.length;return i=(c=A.ips[a])!=null?c:null,i==null?i:Date.now()-i.timestamp>i.ttl?(A.ips.splice(a,1),this.pick(e,r,n)):i};var IA,Xc,Th,BA,el,kS=class extends dpe{constructor(r,{origin:n,handler:i,dispatch:s},o){super(i);q(this,IA,null);q(this,Xc,null);q(this,Th,null);q(this,BA,null);q(this,el,null);U(this,el,n),U(this,BA,i),U(this,Xc,{...o}),U(this,IA,r),U(this,Th,s)}onError(r){switch(r.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(m(this,IA).dualStack){m(this,IA).runLookup(m(this,el),m(this,Xc),(n,i)=>{if(n)return m(this,BA).onError(n);let s={...m(this,Xc),origin:i};m(this,Th).call(this,s,this)});return}m(this,BA).onError(r);return}case"ENOTFOUND":m(this,IA).deleteRecord(m(this,el));default:m(this,BA).onError(r);break}}};IA=new WeakMap,Xc=new WeakMap,Th=new WeakMap,BA=new WeakMap,el=new WeakMap;XJ.exports=t=>{var s,o,A,a,c,l,u;if((t==null?void 0:t.maxTTL)!=null&&(typeof(t==null?void 0:t.maxTTL)!="number"||(t==null?void 0:t.maxTTL)<0))throw new $c("Invalid maxTTL. Must be a positive number");if((t==null?void 0:t.maxItems)!=null&&(typeof(t==null?void 0:t.maxItems)!="number"||(t==null?void 0:t.maxItems)<1))throw new $c("Invalid maxItems. Must be a positive number and greater than zero");if((t==null?void 0:t.affinity)!=null&&(t==null?void 0:t.affinity)!==4&&(t==null?void 0:t.affinity)!==6)throw new $c("Invalid affinity. Must be either 4 or 6");if((t==null?void 0:t.dualStack)!=null&&typeof(t==null?void 0:t.dualStack)!="boolean")throw new $c("Invalid dualStack. Must be a boolean");if((t==null?void 0:t.lookup)!=null&&typeof(t==null?void 0:t.lookup)!="function")throw new $c("Invalid lookup. Must be a function");if((t==null?void 0:t.pick)!=null&&typeof(t==null?void 0:t.pick)!="function")throw new $c("Invalid pick. Must be a function");let e=(s=t==null?void 0:t.dualStack)!=null?s:!0,r;e?r=(o=t==null?void 0:t.affinity)!=null?o:null:r=(A=t==null?void 0:t.affinity)!=null?A:4;let n={maxTTL:(a=t==null?void 0:t.maxTTL)!=null?a:1e4,lookup:(c=t==null?void 0:t.lookup)!=null?c:null,pick:(l=t==null?void 0:t.pick)!=null?l:null,dualStack:e,affinity:r,maxItems:(u=t==null?void 0:t.maxItems)!=null?u:1/0},i=new vS(n);return h=>function(d,E){let p=d.origin.constructor===URL?d.origin:new URL(d.origin);return hpe(p.hostname)!==0?h(d,E):(i.runLookup(p,d,(C,w)=>{if(C)return E.onError(C);let R=null;R={...d,servername:p.hostname,origin:w,headers:{host:p.hostname,...d.headers}},h(R,i.getHandler({origin:p,dispatch:h,handler:E},d))}),!0)}}});var QA=g((tNe,A5)=>{"use strict";var{kConstruct:Epe}=it(),{kEnumerableProperty:rl}=we(),{iteratorMixin:ppe,isValidHeaderName:Mh,isValidHeaderValue:r5}=Gr(),{webidl:ve}=Gt(),_S=require("assert"),Fp=require("util"),Qt=Symbol("headers map"),Vr=Symbol("headers map sorted");function t5(t){return t===10||t===13||t===9||t===32}function n5(t){let e=0,r=t.length;for(;r>e&&t5(t.charCodeAt(r-1));)--r;for(;r>e&&t5(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function i5(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw ve.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});DS(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)DS(t,r[n],e[r[n]])}else throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function DS(t,e,r){if(r=n5(r),Mh(e)){if(!r5(r))throw ve.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(o5(t)==="immutable")throw new TypeError("immutable");return xS(t).append(e,r,!1)}function s5(t,e){return t[0]<e[0]?-1:1}var Np=class t{constructor(e){se(this,"cookies",null);e instanceof t?(this[Qt]=new Map(e[Qt]),this[Vr]=e[Vr],this.cookies=e.cookies===null?null:[...e.cookies]):(this[Qt]=new Map(e),this[Vr]=null)}contains(e,r){return this[Qt].has(r?e:e.toLowerCase())}clear(){this[Qt].clear(),this[Vr]=null,this.cookies=null}append(e,r,n){var o;this[Vr]=null;let i=n?e:e.toLowerCase(),s=this[Qt].get(i);if(s){let A=i==="cookie"?"; ":", ";this[Qt].set(i,{name:s.name,value:`${s.value}${A}${r}`})}else this[Qt].set(i,{name:e,value:r});i==="set-cookie"&&((o=this.cookies)!=null?o:this.cookies=[]).push(r)}set(e,r,n){this[Vr]=null;let i=n?e:e.toLowerCase();i==="set-cookie"&&(this.cookies=[r]),this[Qt].set(i,{name:e,value:r})}delete(e,r){this[Vr]=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this[Qt].delete(e)}get(e,r){var n,i;return(i=(n=this[Qt].get(r?e:e.toLowerCase()))==null?void 0:n.value)!=null?i:null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this[Qt])yield[e,r]}get entries(){let e={};if(this[Qt].size!==0)for(let{name:r,value:n}of this[Qt].values())e[r]=n;return e}rawValues(){return this[Qt].values()}get entriesList(){let e=[];if(this[Qt].size!==0)for(let{0:r,1:{name:n,value:i}}of this[Qt])if(r==="set-cookie")for(let s of this.cookies)e.push([n,s]);else e.push([n,i]);return e}toSortedArray(){let e=this[Qt].size,r=new Array(e);if(e<=32){if(e===0)return r;let n=this[Qt][Symbol.iterator](),i=n.next().value;r[0]=[i[0],i[1].value],_S(i[1].value!==null);for(let s=1,o=0,A=0,a=0,c=0,l,u;s<e;++s){for(u=n.next().value,l=r[s]=[u[0],u[1].value],_S(l[1]!==null),a=0,A=s;a<A;)c=a+(A-a>>1),r[c][0]<=l[0]?a=c+1:A=c;if(s!==c){for(o=s;o>a;)r[o]=r[--o];r[a]=l}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:i,1:{value:s}}of this[Qt])r[n++]=[i,s],_S(s!==null);return r.sort(s5)}}},co,kt,ao=class ao{constructor(e=void 0){q(this,co);q(this,kt);ve.util.markAsUncloneable(this),e!==Epe&&(U(this,kt,new Np),U(this,co,"none"),e!==void 0&&(e=ve.converters.HeadersInit(e,"Headers contructor","init"),i5(this,e)))}append(e,r){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=ve.converters.ByteString(e,n,"name"),r=ve.converters.ByteString(r,n,"value"),DS(this,e,r)}delete(e){if(ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.delete"),e=ve.converters.ByteString(e,"Headers.delete","name"),!Mh(e))throw ve.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(m(this,co)==="immutable")throw new TypeError("immutable");m(this,kt).contains(e,!1)&&m(this,kt).delete(e,!1)}get(e){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=ve.converters.ByteString(e,r,"name"),!Mh(e))throw ve.errors.invalidArgument({prefix:r,value:e,type:"header name"});return m(this,kt).get(e,!1)}has(e){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=ve.converters.ByteString(e,r,"name"),!Mh(e))throw ve.errors.invalidArgument({prefix:r,value:e,type:"header name"});return m(this,kt).contains(e,!1)}set(e,r){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=ve.converters.ByteString(e,n,"name"),r=ve.converters.ByteString(r,n,"value"),r=n5(r),Mh(e)){if(!r5(r))throw ve.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(m(this,co)==="immutable")throw new TypeError("immutable");m(this,kt).set(e,r,!1)}getSetCookie(){ve.brandCheck(this,ao);let e=m(this,kt).cookies;return e?[...e]:[]}get[Vr](){if(m(this,kt)[Vr])return m(this,kt)[Vr];let e=[],r=m(this,kt).toSortedArray(),n=m(this,kt).cookies;if(n===null||n.length===1)return m(this,kt)[Vr]=r;for(let i=0;i<r.length;++i){let{0:s,1:o}=r[i];if(s==="set-cookie")for(let A=0;A<n.length;++A)e.push([s,n[A]]);else e.push([s,o])}return m(this,kt)[Vr]=e}[Fp.inspect.custom](e,r){var n;return(n=r.depth)!=null||(r.depth=e),`Headers ${Fp.formatWithOptions(r,m(this,kt).entries)}`}static getHeadersGuard(e){return m(e,co)}static setHeadersGuard(e,r){U(e,co,r)}static getHeadersList(e){return m(e,kt)}static setHeadersList(e,r){U(e,kt,r)}};co=new WeakMap,kt=new WeakMap;var Gn=ao,{getHeadersGuard:o5,setHeadersGuard:Cpe,getHeadersList:xS,setHeadersList:mpe}=Gn;Reflect.deleteProperty(Gn,"getHeadersGuard");Reflect.deleteProperty(Gn,"setHeadersGuard");Reflect.deleteProperty(Gn,"getHeadersList");Reflect.deleteProperty(Gn,"setHeadersList");ppe("Headers",Gn,Vr,0,1);Object.defineProperties(Gn.prototype,{append:rl,delete:rl,get:rl,has:rl,set:rl,getSetCookie:rl,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[Fp.inspect.custom]:{enumerable:!1}});ve.converters.HeadersInit=function(t,e,r){if(ve.util.Type(t)==="Object"){let n=Reflect.get(t,Symbol.iterator);if(!Fp.types.isProxy(t)&&n===Gn.prototype.entries)try{return xS(t).entriesList}catch{}return typeof n=="function"?ve.converters["sequence<sequence<ByteString>>"](t,e,r,n.bind(t)):ve.converters["record<ByteString, ByteString>"](t,e,r)}throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};A5.exports={fill:i5,compareHeaderName:s5,Headers:Gn,HeadersList:Np,getHeadersGuard:o5,setHeadersGuard:Cpe,setHeadersList:mpe,getHeadersList:xS}});var Uh=g((nNe,m5)=>{"use strict";var{Headers:f5,HeadersList:a5,fill:Ipe,getHeadersGuard:Bpe,setHeadersGuard:d5,setHeadersList:g5}=QA(),{extractBody:c5,cloneBody:Qpe,mixinBody:ype,hasFinalizationRegistry:E5,streamRegistry:p5,bodyUnusable:wpe}=Rc(),FS=we(),l5=require("util"),{kEnumerableProperty:Jr}=FS,{isValidReasonPhrase:bpe,isCancelled:Spe,isAborted:Rpe,isBlobLike:vpe,serializeJavascriptValueToJSONString:kpe,isErrorLike:_pe,isomorphicEncode:Dpe,environmentSettingsObject:xpe}=Gr(),{redirectStatusSet:Fpe,nullBodyStatus:Npe}=sh(),{kState:st,kHeaders:as}=Ws(),{webidl:Qe}=Gt(),{FormData:Tpe}=uh(),{URLSerializer:u5}=Sr(),{kConstruct:Mp}=it(),NS=require("assert"),{types:Mpe}=require("util"),Lpe=new TextEncoder("utf-8"),yA=class t{static error(){return Lh(Lp(),"immutable")}static json(e,r={}){Qe.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=Qe.converters.ResponseInit(r));let n=Lpe.encode(kpe(e)),i=c5(n),s=Lh(nl({}),"response");return h5(s,r,{body:i[0],type:"application/json"}),s}static redirect(e,r=302){Qe.argumentLengthCheck(arguments,1,"Response.redirect"),e=Qe.converters.USVString(e),r=Qe.converters["unsigned short"](r);let n;try{n=new URL(e,xpe.settingsObject.baseUrl)}catch(o){throw new TypeError(`Failed to parse URL from ${e}`,{cause:o})}if(!Fpe.has(r))throw new RangeError(`Invalid status code ${r}`);let i=Lh(nl({}),"immutable");i[st].status=r;let s=Dpe(u5(n));return i[st].headersList.append("location",s,!0),i}constructor(e=null,r={}){if(Qe.util.markAsUncloneable(this),e===Mp)return;e!==null&&(e=Qe.converters.BodyInit(e)),r=Qe.converters.ResponseInit(r),this[st]=nl({}),this[as]=new f5(Mp),d5(this[as],"response"),g5(this[as],this[st].headersList);let n=null;if(e!=null){let[i,s]=c5(e);n={body:i,type:s}}h5(this,r,n)}get type(){return Qe.brandCheck(this,t),this[st].type}get url(){var n;Qe.brandCheck(this,t);let e=this[st].urlList,r=(n=e[e.length-1])!=null?n:null;return r===null?"":u5(r,!0)}get redirected(){return Qe.brandCheck(this,t),this[st].urlList.length>1}get status(){return Qe.brandCheck(this,t),this[st].status}get ok(){return Qe.brandCheck(this,t),this[st].status>=200&&this[st].status<=299}get statusText(){return Qe.brandCheck(this,t),this[st].statusText}get headers(){return Qe.brandCheck(this,t),this[as]}get body(){return Qe.brandCheck(this,t),this[st].body?this[st].body.stream:null}get bodyUsed(){return Qe.brandCheck(this,t),!!this[st].body&&FS.isDisturbed(this[st].body.stream)}clone(){var r;if(Qe.brandCheck(this,t),wpe(this))throw Qe.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=TS(this[st]);return E5&&((r=this[st].body)!=null&&r.stream)&&p5.register(this,new WeakRef(this[st].body.stream)),Lh(e,Bpe(this[as]))}[l5.inspect.custom](e,r){var i;r.depth===null&&(r.depth=2),(i=r.colors)!=null||(r.colors=!0);let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${l5.formatWithOptions(r,n)}`}};ype(yA);Object.defineProperties(yA.prototype,{type:Jr,url:Jr,status:Jr,ok:Jr,redirected:Jr,statusText:Jr,headers:Jr,clone:Jr,body:Jr,bodyUsed:Jr,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(yA,{json:Jr,redirect:Jr,error:Jr});function TS(t){if(t.internalResponse)return C5(TS(t.internalResponse),t.type);let e=nl({...t,body:null});return t.body!=null&&(e.body=Qpe(e,t.body)),e}function nl(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t!=null&&t.headersList?new a5(t==null?void 0:t.headersList):new a5,urlList:t!=null&&t.urlList?[...t.urlList]:[]}}function Lp(t){let e=_pe(t);return nl({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}function Upe(t){return t.type==="error"&&t.status===0}function Tp(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,i){return NS(!(n in e)),r[n]=i,!0}})}function C5(t,e){if(e==="basic")return Tp(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Tp(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Tp(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Tp(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});NS(!1)}function Ope(t,e=null){return NS(Spe(t)),Rpe(t)?Lp(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):Lp(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}function h5(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!bpe(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[st].status=e.status),"statusText"in e&&e.statusText!=null&&(t[st].statusText=e.statusText),"headers"in e&&e.headers!=null&&Ipe(t[as],e.headers),r){if(Npe.includes(t.status))throw Qe.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[st].body=r.body,r.type!=null&&!t[st].headersList.contains("content-type",!0)&&t[st].headersList.append("content-type",r.type,!0)}}function Lh(t,e){var n;let r=new yA(Mp);return r[st]=t,r[as]=new f5(Mp),g5(r[as],t.headersList),d5(r[as],e),E5&&((n=t.body)!=null&&n.stream)&&p5.register(r,new WeakRef(t.body.stream)),r}Qe.converters.ReadableStream=Qe.interfaceConverter(ReadableStream);Qe.converters.FormData=Qe.interfaceConverter(Tpe);Qe.converters.URLSearchParams=Qe.interfaceConverter(URLSearchParams);Qe.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?Qe.converters.USVString(t,e,r):vpe(t)?Qe.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Mpe.isArrayBuffer(t)?Qe.converters.BufferSource(t,e,r):FS.isFormDataLike(t)?Qe.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?Qe.converters.URLSearchParams(t,e,r):Qe.converters.DOMString(t,e,r)};Qe.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?Qe.converters.ReadableStream(t,e,r):t!=null&&t[Symbol.asyncIterator]?t:Qe.converters.XMLHttpRequestBodyInit(t,e,r)};Qe.converters.ResponseInit=Qe.dictionaryConverter([{key:"status",converter:Qe.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:Qe.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:Qe.converters.HeadersInit}]);m5.exports={isNetworkError:Upe,makeNetworkError:Lp,makeResponse:nl,makeAppropriateNetworkError:Ope,filterResponse:C5,Response:yA,cloneResponse:TS,fromInnerResponse:Lh}});var y5=g((iNe,Q5)=>{"use strict";var{kConnected:I5,kSize:B5}=it(),MS=class{constructor(e){this.value=e}deref(){return this.value[I5]===0&&this.value[B5]===0?void 0:this.value}},LS=class{constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[I5]===0&&e[B5]===0&&this.finalizer(r)})}unregister(e){}};Q5.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:MS,FinalizationRegistry:LS}):{WeakRef,FinalizationRegistry}}});var il=g((sNe,U5)=>{"use strict";var{extractBody:Ppe,mixinBody:Hpe,cloneBody:Gpe,bodyUnusable:w5}=Rc(),{Headers:F5,fill:qpe,HeadersList:Hp,setHeadersGuard:OS,getHeadersGuard:Ype,setHeadersList:N5,getHeadersList:b5}=QA(),{FinalizationRegistry:Vpe}=y5()(),Op=we(),S5=require("util"),{isValidHTTPToken:Jpe,sameOrigin:R5,environmentSettingsObject:Up}=Gr(),{forbiddenMethodsSet:Wpe,corsSafeListedMethodsSet:jpe,referrerPolicy:zpe,requestRedirect:Zpe,requestMode:$pe,requestCredentials:Kpe,requestCache:Xpe,requestDuplex:eCe}=sh(),{kEnumerableProperty:yt,normalizedMethodRecordsBase:tCe,normalizedMethodRecords:rCe}=Op,{kHeaders:Wr,kSignal:Pp,kState:Xe,kDispatcher:US}=Ws(),{webidl:he}=Gt(),{URLSerializer:nCe}=Sr(),{kConstruct:Gp}=it(),iCe=require("assert"),{getMaxListeners:v5,setMaxListeners:k5,getEventListeners:sCe,defaultMaxListeners:_5}=require("events"),oCe=Symbol("abortController"),T5=new Vpe(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),qp=new WeakMap;function D5(t){return e;function e(){let r=t.deref();if(r!==void 0){T5.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=qp.get(r.signal);if(n!==void 0){if(n.size!==0){for(let i of n){let s=i.deref();s!==void 0&&s.abort(this.reason)}n.clear()}qp.delete(r.signal)}}}}var x5=!1,lo=class t{constructor(e,r={}){var C,w,R;if(he.util.markAsUncloneable(this),e===Gp)return;let n="Request constructor";he.argumentLengthCheck(arguments,1,n),e=he.converters.RequestInfo(e,n,"input"),r=he.converters.RequestInit(r,n,"init");let i=null,s=null,o=Up.settingsObject.baseUrl,A=null;if(typeof e=="string"){this[US]=r.dispatcher;let S;try{S=new URL(e,o)}catch(_){throw new TypeError("Failed to parse URL from "+e,{cause:_})}if(S.username||S.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);i=Yp({urlList:[S]}),s="cors"}else this[US]=r.dispatcher||e[US],iCe(e instanceof t),i=e[Xe],A=e[Pp];let a=Up.settingsObject.origin,c="client";if(((w=(C=i.window)==null?void 0:C.constructor)==null?void 0:w.name)==="EnvironmentSettingsObject"&&R5(i.window,a)&&(c=i.window),r.window!=null)throw new TypeError(`'window' option '${c}' must be null`);"window"in r&&(c="no-window"),i=Yp({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:Up.settingsObject,window:c,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});let l=Object.keys(r).length!==0;if(l&&(i.mode==="navigate"&&(i.mode="same-origin"),i.reloadNavigation=!1,i.historyNavigation=!1,i.origin="client",i.referrer="client",i.referrerPolicy="",i.url=i.urlList[i.urlList.length-1],i.urlList=[i.url]),r.referrer!==void 0){let S=r.referrer;if(S==="")i.referrer="no-referrer";else{let _;try{_=new URL(S,o)}catch(O){throw new TypeError(`Referrer "${S}" is not a valid URL.`,{cause:O})}_.protocol==="about:"&&_.hostname==="client"||a&&!R5(_,Up.settingsObject.baseUrl)?i.referrer="client":i.referrer=_}}r.referrerPolicy!==void 0&&(i.referrerPolicy=r.referrerPolicy);let u;if(r.mode!==void 0?u=r.mode:u=s,u==="navigate")throw he.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(u!=null&&(i.mode=u),r.credentials!==void 0&&(i.credentials=r.credentials),r.cache!==void 0&&(i.cache=r.cache),i.cache==="only-if-cached"&&i.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(i.redirect=r.redirect),r.integrity!=null&&(i.integrity=String(r.integrity)),r.keepalive!==void 0&&(i.keepalive=!!r.keepalive),r.method!==void 0){let S=r.method,_=rCe[S];if(_!==void 0)i.method=_;else{if(!Jpe(S))throw new TypeError(`'${S}' is not a valid HTTP method.`);let O=S.toUpperCase();if(Wpe.has(O))throw new TypeError(`'${S}' HTTP method is unsupported.`);S=(R=tCe[O])!=null?R:S,i.method=S}!x5&&i.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),x5=!0)}r.signal!==void 0&&(A=r.signal),this[Xe]=i;let h=new AbortController;if(this[Pp]=h.signal,A!=null){if(!A||typeof A.aborted!="boolean"||typeof A.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(A.aborted)h.abort(A.reason);else{this[oCe]=h;let S=new WeakRef(h),_=D5(S);try{(typeof v5=="function"&&v5(A)===_5||sCe(A,"abort").length>=_5)&&k5(1500,A)}catch{}Op.addAbortListener(A,_),T5.register(h,{signal:A,abort:_},_)}}if(this[Wr]=new F5(Gp),N5(this[Wr],i.headersList),OS(this[Wr],"request"),u==="no-cors"){if(!jpe.has(i.method))throw new TypeError(`'${i.method} is unsupported in no-cors mode.`);OS(this[Wr],"request-no-cors")}if(l){let S=b5(this[Wr]),_=r.headers!==void 0?r.headers:new Hp(S);if(S.clear(),_ instanceof Hp){for(let{name:O,value:N}of _.rawValues())S.append(O,N,!1);S.cookies=_.cookies}else qpe(this[Wr],_)}let f=e instanceof t?e[Xe].body:null;if((r.body!=null||f!=null)&&(i.method==="GET"||i.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let d=null;if(r.body!=null){let[S,_]=Ppe(r.body,i.keepalive);d=S,_&&!b5(this[Wr]).contains("content-type",!0)&&this[Wr].append("content-type",_)}let E=d!=null?d:f;if(E!=null&&E.source==null){if(d!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(i.mode!=="same-origin"&&i.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');i.useCORSPreflightFlag=!0}let p=E;if(d==null&&f!=null){if(w5(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let S=new TransformStream;f.stream.pipeThrough(S),p={source:f.source,length:f.length,stream:S.readable}}this[Xe].body=p}get method(){return he.brandCheck(this,t),this[Xe].method}get url(){return he.brandCheck(this,t),nCe(this[Xe].url)}get headers(){return he.brandCheck(this,t),this[Wr]}get destination(){return he.brandCheck(this,t),this[Xe].destination}get referrer(){return he.brandCheck(this,t),this[Xe].referrer==="no-referrer"?"":this[Xe].referrer==="client"?"about:client":this[Xe].referrer.toString()}get referrerPolicy(){return he.brandCheck(this,t),this[Xe].referrerPolicy}get mode(){return he.brandCheck(this,t),this[Xe].mode}get credentials(){return this[Xe].credentials}get cache(){return he.brandCheck(this,t),this[Xe].cache}get redirect(){return he.brandCheck(this,t),this[Xe].redirect}get integrity(){return he.brandCheck(this,t),this[Xe].integrity}get keepalive(){return he.brandCheck(this,t),this[Xe].keepalive}get isReloadNavigation(){return he.brandCheck(this,t),this[Xe].reloadNavigation}get isHistoryNavigation(){return he.brandCheck(this,t),this[Xe].historyNavigation}get signal(){return he.brandCheck(this,t),this[Pp]}get body(){return he.brandCheck(this,t),this[Xe].body?this[Xe].body.stream:null}get bodyUsed(){return he.brandCheck(this,t),!!this[Xe].body&&Op.isDisturbed(this[Xe].body.stream)}get duplex(){return he.brandCheck(this,t),"half"}clone(){if(he.brandCheck(this,t),w5(this))throw new TypeError("unusable");let e=M5(this[Xe]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=qp.get(this.signal);n===void 0&&(n=new Set,qp.set(this.signal,n));let i=new WeakRef(r);n.add(i),Op.addAbortListener(r.signal,D5(i))}return L5(e,r.signal,Ype(this[Wr]))}[S5.inspect.custom](e,r){var i;r.depth===null&&(r.depth=2),(i=r.colors)!=null||(r.colors=!0);let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${S5.formatWithOptions(r,n)}`}};Hpe(lo);function Yp(t){var e,r,n,i,s,o,A,a,c,l,u,h,f,d,E,p,C,w,R,S,_,O,N,V,M,j,k,ee,te,ye,v,y,x,F,T;return{method:(e=t.method)!=null?e:"GET",localURLsOnly:(r=t.localURLsOnly)!=null?r:!1,unsafeRequest:(n=t.unsafeRequest)!=null?n:!1,body:(i=t.body)!=null?i:null,client:(s=t.client)!=null?s:null,reservedClient:(o=t.reservedClient)!=null?o:null,replacesClientId:(A=t.replacesClientId)!=null?A:"",window:(a=t.window)!=null?a:"client",keepalive:(c=t.keepalive)!=null?c:!1,serviceWorkers:(l=t.serviceWorkers)!=null?l:"all",initiator:(u=t.initiator)!=null?u:"",destination:(h=t.destination)!=null?h:"",priority:(f=t.priority)!=null?f:null,origin:(d=t.origin)!=null?d:"client",policyContainer:(E=t.policyContainer)!=null?E:"client",referrer:(p=t.referrer)!=null?p:"client",referrerPolicy:(C=t.referrerPolicy)!=null?C:"",mode:(w=t.mode)!=null?w:"no-cors",useCORSPreflightFlag:(R=t.useCORSPreflightFlag)!=null?R:!1,credentials:(S=t.credentials)!=null?S:"same-origin",useCredentials:(_=t.useCredentials)!=null?_:!1,cache:(O=t.cache)!=null?O:"default",redirect:(N=t.redirect)!=null?N:"follow",integrity:(V=t.integrity)!=null?V:"",cryptoGraphicsNonceMetadata:(M=t.cryptoGraphicsNonceMetadata)!=null?M:"",parserMetadata:(j=t.parserMetadata)!=null?j:"",reloadNavigation:(k=t.reloadNavigation)!=null?k:!1,historyNavigation:(ee=t.historyNavigation)!=null?ee:!1,userActivation:(te=t.userActivation)!=null?te:!1,taintedOrigin:(ye=t.taintedOrigin)!=null?ye:!1,redirectCount:(v=t.redirectCount)!=null?v:0,responseTainting:(y=t.responseTainting)!=null?y:"basic",preventNoCacheCacheControlHeaderModification:(x=t.preventNoCacheCacheControlHeaderModification)!=null?x:!1,done:(F=t.done)!=null?F:!1,timingAllowFailed:(T=t.timingAllowFailed)!=null?T:!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new Hp(t.headersList):new Hp}}function M5(t){let e=Yp({...t,body:null});return t.body!=null&&(e.body=Gpe(e,t.body)),e}function L5(t,e,r){let n=new lo(Gp);return n[Xe]=t,n[Pp]=e,n[Wr]=new F5(Gp),N5(n[Wr],t.headersList),OS(n[Wr],r),n}Object.defineProperties(lo.prototype,{method:yt,url:yt,headers:yt,redirect:yt,clone:yt,signal:yt,duplex:yt,destination:yt,body:yt,bodyUsed:yt,isHistoryNavigation:yt,isReloadNavigation:yt,keepalive:yt,integrity:yt,cache:yt,credentials:yt,attribute:yt,referrerPolicy:yt,referrer:yt,mode:yt,[Symbol.toStringTag]:{value:"Request",configurable:!0}});he.converters.Request=he.interfaceConverter(lo);he.converters.RequestInfo=function(t,e,r){return typeof t=="string"?he.converters.USVString(t,e,r):t instanceof lo?he.converters.Request(t,e,r):he.converters.USVString(t,e,r)};he.converters.AbortSignal=he.interfaceConverter(AbortSignal);he.converters.RequestInit=he.dictionaryConverter([{key:"method",converter:he.converters.ByteString},{key:"headers",converter:he.converters.HeadersInit},{key:"body",converter:he.nullableConverter(he.converters.BodyInit)},{key:"referrer",converter:he.converters.USVString},{key:"referrerPolicy",converter:he.converters.DOMString,allowedValues:zpe},{key:"mode",converter:he.converters.DOMString,allowedValues:$pe},{key:"credentials",converter:he.converters.DOMString,allowedValues:Kpe},{key:"cache",converter:he.converters.DOMString,allowedValues:Xpe},{key:"redirect",converter:he.converters.DOMString,allowedValues:Zpe},{key:"integrity",converter:he.converters.DOMString},{key:"keepalive",converter:he.converters.boolean},{key:"signal",converter:he.nullableConverter(t=>he.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:he.converters.any},{key:"duplex",converter:he.converters.DOMString,allowedValues:eCe},{key:"dispatcher",converter:he.converters.any}]);U5.exports={Request:lo,makeRequest:Yp,fromInnerRequest:L5,cloneRequest:M5}});var Ph=g((oNe,X5)=>{"use strict";var{makeNetworkError:He,makeAppropriateNetworkError:Vp,filterResponse:PS,makeResponse:Jp,fromInnerResponse:ACe}=Uh(),{HeadersList:O5}=QA(),{Request:aCe,cloneRequest:cCe}=il(),uo=require("zlib"),{bytesMatch:lCe,makePolicyContainer:uCe,clonePolicyContainer:hCe,requestBadPort:fCe,TAOCheck:dCe,appendRequestOriginHeader:gCe,responseLocationURL:ECe,requestCurrentURL:Qi,setRequestReferrerPolicyOnRedirect:pCe,tryUpgradeRequestToAPotentiallyTrustworthyURL:CCe,createOpaqueTimingInfo:VS,appendFetchMetadata:mCe,corsCheck:ICe,crossOriginResourcePolicyCheck:BCe,determineRequestsReferrer:QCe,coarsenedSharedCurrentTime:Oh,createDeferredPromise:yCe,isBlobLike:wCe,sameOrigin:YS,isCancelled:wA,isAborted:P5,isErrorLike:bCe,fullyReadBody:SCe,readableStreamClose:RCe,isomorphicEncode:Wp,urlIsLocal:vCe,urlIsHttpHttpsScheme:JS,urlHasHttpsScheme:kCe,clampAndCoarsenConnectionTimingInfo:_Ce,simpleRangeHeaderValue:DCe,buildContentRange:xCe,createInflate:FCe,extractMimeType:NCe}=Gr(),{kState:Y5,kDispatcher:TCe}=Ws(),bA=require("assert"),{safelyExtractBody:WS,extractBody:H5}=Rc(),{redirectStatusSet:V5,nullBodyStatus:J5,safeMethodsSet:MCe,requestBodyHeader:LCe,subresourceSet:UCe}=sh(),OCe=require("events"),{Readable:PCe,pipeline:HCe,finished:GCe}=require("stream"),{addAbortListener:qCe,isErrored:YCe,isReadable:jp,bufferToLowerCasedHeaderName:G5}=we(),{dataURLProcessor:VCe,serializeAMimeType:JCe,minimizeSupportedMimeType:WCe}=Sr(),{getGlobalDispatcher:jCe}=kp(),{webidl:zCe}=Gt(),{STATUS_CODES:ZCe}=require("http"),$Ce=["GET","HEAD"],KCe=typeof __UNDICI_IS_NODE__!="undefined"||typeof esbuildDetection!="undefined"?"node":"undici",HS,zp=class extends OCe{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){var r;this.state==="ongoing"&&(this.state="terminated",(r=this.connection)==null||r.destroy(e),this.emit("terminated",e))}abort(e){var r;this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,(r=this.connection)==null||r.destroy(e),this.emit("terminated",e))}};function XCe(t){W5(t,"fetch")}function eme(t,e=void 0){var l;zCe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=yCe(),n;try{n=new aCe(t,e)}catch(u){return r.reject(u),r.promise}let i=n[Y5];if(n.signal.aborted)return GS(r,i,null,n.signal.reason),r.promise;let s=i.client.globalObject;((l=s==null?void 0:s.constructor)==null?void 0:l.name)==="ServiceWorkerGlobalScope"&&(i.serviceWorkers="none");let o=null,A=!1,a=null;return qCe(n.signal,()=>{A=!0,bA(a!=null),a.abort(n.signal.reason);let u=o==null?void 0:o.deref();GS(r,i,u,n.signal.reason)}),a=z5({request:i,processResponseEndOfBody:XCe,processResponse:u=>{if(!A){if(u.aborted){GS(r,i,o,a.serializedAbortReason);return}if(u.type==="error"){r.reject(new TypeError("fetch failed",{cause:u.error}));return}o=new WeakRef(ACe(u,"immutable")),r.resolve(o.deref()),r=null}},dispatcher:n[TCe]}),r.promise}function W5(t,e="other"){var s;if(t.type==="error"&&t.aborted||!((s=t.urlList)!=null&&s.length))return;let r=t.urlList[0],n=t.timingInfo,i=t.cacheState;JS(r)&&n!==null&&(t.timingAllowPassed||(n=VS({startTime:n.startTime}),i=""),n.endTime=Oh(),t.timingInfo=n,j5(n,r.href,e,globalThis,i))}var j5=performance.markResourceTiming;function GS(t,e,r,n){var s,o;if(t&&t.reject(n),e.body!=null&&jp((s=e.body)==null?void 0:s.stream)&&e.body.stream.cancel(n).catch(A=>{if(A.code!=="ERR_INVALID_STATE")throw A}),r==null)return;let i=r[Y5];i.body!=null&&jp((o=i.body)==null?void 0:o.stream)&&i.body.stream.cancel(n).catch(A=>{if(A.code!=="ERR_INVALID_STATE")throw A})}function z5({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:i,processResponseConsumeBody:s,useParallelQueue:o=!1,dispatcher:A=jCe()}){var f,d,E;bA(A);let a=null,c=!1;t.client!=null&&(a=t.client.globalObject,c=t.client.crossOriginIsolatedCapability);let l=Oh(c),u=VS({startTime:l}),h={controller:new zp(A),request:t,timingInfo:u,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:s,processResponseEndOfBody:i,taskDestination:a,crossOriginIsolatedCapability:c};return bA(!t.body||t.body.stream),t.window==="client"&&(t.window=((E=(d=(f=t.client)==null?void 0:f.globalObject)==null?void 0:d.constructor)==null?void 0:E.name)==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=hCe(t.client.policyContainer):t.policyContainer=uCe()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,UCe.has(t.destination),Z5(h).catch(p=>{h.controller.terminate(p)}),h.controller}async function Z5(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!vCe(Qi(r))&&(n=He("local URLs only")),CCe(r),fCe(r)==="blocked"&&(n=He("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=QCe(r)),n===null&&(n=await(async()=>{let s=Qi(r);return YS(s,r.url)&&r.responseTainting==="basic"||s.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await q5(t)):r.mode==="same-origin"?He('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?He('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await q5(t)):JS(Qi(r))?(r.responseTainting="cors",await $5(t)):He("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=PS(n,"basic"):r.responseTainting==="cors"?n=PS(n,"cors"):r.responseTainting==="opaque"?n=PS(n,"opaque"):bA(!1));let i=n.status===0?n:n.internalResponse;if(i.urlList.length===0&&i.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&i.status===206&&i.rangeRequested&&!r.headers.contains("range",!0)&&(n=i=He()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J5.includes(i.status))&&(i.body=null,t.controller.dump=!0),r.integrity){let s=A=>qS(t,He(A));if(r.responseTainting==="opaque"||n.body==null){s(n.error);return}let o=A=>{if(!lCe(A,r.integrity)){s("integrity mismatch");return}n.body=WS(A)[0],qS(t,n)};await SCe(n.body,o,s)}else qS(t,n)}function q5(t){if(wA(t)&&t.request.redirectCount===0)return Promise.resolve(Vp(t));let{request:e}=t,{protocol:r}=Qi(e);switch(r){case"about:":return Promise.resolve(He("about scheme is not supported"));case"blob:":{HS||(HS=require("buffer").resolveObjectURL);let n=Qi(e);if(n.search.length!==0)return Promise.resolve(He("NetworkError when attempting to fetch resource."));let i=HS(n.toString());if(e.method!=="GET"||!wCe(i))return Promise.resolve(He("invalid method"));let s=Jp(),o=i.size,A=Wp(`${o}`),a=i.type;if(e.headersList.contains("range",!0)){s.rangeRequested=!0;let c=e.headersList.get("range",!0),l=DCe(c,!0);if(l==="failure")return Promise.resolve(He("failed to fetch the data URL"));let{rangeStartValue:u,rangeEndValue:h}=l;if(u===null)u=o-h,h=u+h-1;else{if(u>=o)return Promise.resolve(He("Range start is greater than the blob's size."));(h===null||h>=o)&&(h=o-1)}let f=i.slice(u,h,a),d=H5(f);s.body=d[0];let E=Wp(`${f.size}`),p=xCe(u,h,o);s.status=206,s.statusText="Partial Content",s.headersList.set("content-length",E,!0),s.headersList.set("content-type",a,!0),s.headersList.set("content-range",p,!0)}else{let c=H5(i);s.statusText="OK",s.body=c[0],s.headersList.set("content-length",A,!0),s.headersList.set("content-type",a,!0)}return Promise.resolve(s)}case"data:":{let n=Qi(e),i=VCe(n);if(i==="failure")return Promise.resolve(He("failed to fetch the data URL"));let s=JCe(i.mimeType);return Promise.resolve(Jp({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:WS(i.body)[0]}))}case"file:":return Promise.resolve(He("not implemented... yet..."));case"http:":case"https:":return $5(t).catch(n=>He(n));default:return Promise.resolve(He("unknown scheme"))}}function tme(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}function qS(t,e){var s;let r=t.timingInfo,n=()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let a=e.cacheState,c=e.bodyInfo;e.timingAllowPassed||(r=VS(r),a="");let l=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){l=e.status;let u=NCe(e.headersList);u!=="failure"&&(c.contentType=WCe(u))}t.request.initiatorType!=null&&j5(r,t.request.url.href,t.request.initiatorType,globalThis,a,c,l)};let A=()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()};queueMicrotask(()=>A())};t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let i=e.type==="error"?e:(s=e.internalResponse)!=null?s:e;i.body==null?n():GCe(i.body.stream,()=>{n()})}async function $5(t){let e=t.request,r=null,n=null,i=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await K5(t),e.responseTainting==="cors"&&ICe(e,r)==="failure")return He("cors failure");dCe(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&BCe(e.origin,e.client,e.destination,n)==="blocked"?He("blocked"):(V5.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=He("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await rme(t,r):bA(!1)),r.timingInfo=i,r)}function rme(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,i;try{if(i=ECe(n,Qi(r).hash),i==null)return e}catch(o){return Promise.resolve(He(o))}if(!JS(i))return Promise.resolve(He("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(He("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(i.username||i.password)&&!YS(r,i))return Promise.resolve(He('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(i.username||i.password))return Promise.resolve(He('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(He());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!$Ce.includes(r.method)){r.method="GET",r.body=null;for(let o of LCe)r.headersList.delete(o)}YS(Qi(r),i)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(bA(r.body.source!=null),r.body=WS(r.body.source)[0]);let s=t.timingInfo;return s.redirectEndTime=s.postRedirectStartTime=Oh(t.crossOriginIsolatedCapability),s.redirectStartTime===0&&(s.redirectStartTime=s.startTime),r.urlList.push(i),pCe(r,n),Z5(t,!0)}async function K5(t,e=!1,r=!1){let n=t.request,i=null,s=null,o=null,A=null,a=!1;n.window==="no-window"&&n.redirect==="error"?(i=t,s=n):(s=cCe(n),i={...t},i.request=s);let c=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",l=s.body?s.body.length:null,u=null;if(s.body==null&&["POST","PUT"].includes(s.method)&&(u="0"),l!=null&&(u=Wp(`${l}`)),u!=null&&s.headersList.append("content-length",u,!0),l!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",Wp(s.referrer.href),!0),gCe(s),mCe(s),s.headersList.contains("user-agent",!0)||s.headersList.append("user-agent",KCe),s.cache==="default"&&(s.headersList.contains("if-modified-since",!0)||s.headersList.contains("if-none-match",!0)||s.headersList.contains("if-unmodified-since",!0)||s.headersList.contains("if-match",!0)||s.headersList.contains("if-range",!0))&&(s.cache="no-store"),s.cache==="no-cache"&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains("cache-control",!0)&&s.headersList.append("cache-control","max-age=0",!0),(s.cache==="no-store"||s.cache==="reload")&&(s.headersList.contains("pragma",!0)||s.headersList.append("pragma","no-cache",!0),s.headersList.contains("cache-control",!0)||s.headersList.append("cache-control","no-cache",!0)),s.headersList.contains("range",!0)&&s.headersList.append("accept-encoding","identity",!0),s.headersList.contains("accept-encoding",!0)||(kCe(Qi(s))?s.headersList.append("accept-encoding","br, gzip, deflate",!0):s.headersList.append("accept-encoding","gzip, deflate",!0)),s.headersList.delete("host",!0),A==null&&(s.cache="no-store"),s.cache!=="no-store"&&s.cache,o==null){if(s.cache==="only-if-cached")return He("only if cached");let h=await nme(i,c,r);!MCe.has(s.method)&&h.status>=200&&h.status<=399,a&&h.status,o==null&&(o=h)}if(o.urlList=[...s.urlList],s.headersList.contains("range",!0)&&(o.rangeRequested=!0),o.requestIncludesCredentials=c,o.status===407)return n.window==="no-window"?He():wA(t)?Vp(t):He("proxy authentication required");if(o.status===421&&!r&&(n.body==null||n.body.source!=null)){if(wA(t))return Vp(t);t.controller.connection.destroy(),o=await K5(t,e,!0)}return o}async function nme(t,e=!1,r=!1){bA(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(d,E=!0){var p;this.destroyed||(this.destroyed=!0,E&&((p=this.abort)==null||p.call(this,d!=null?d:new DOMException("The operation was aborted.","AbortError"))))}};let n=t.request,i=null,s=t.timingInfo;null==null&&(n.cache="no-store");let A=r?"yes":"no";n.mode;let a=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let d=async function*(C){var w;wA(t)||(yield C,(w=t.processRequestBodyChunkLength)==null||w.call(t,C.byteLength))},E=()=>{wA(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},p=C=>{wA(t)||(C.name==="AbortError"?t.controller.abort():t.controller.terminate(C))};a=(async function*(){try{for await(let C of n.body.stream)yield*d(C);E()}catch(C){p(C)}})()}try{let{body:d,status:E,statusText:p,headersList:C,socket:w}=await f({body:a});if(w)i=Jp({status:E,statusText:p,headersList:C,socket:w});else{let R=d[Symbol.asyncIterator]();t.controller.next=()=>R.next(),i=Jp({status:E,statusText:p,headersList:C})}}catch(d){return d.name==="AbortError"?(t.controller.connection.destroy(),Vp(t,d)):He(d)}let c=async()=>{await t.controller.resume()},l=d=>{wA(t)||t.controller.abort(d)},u=new ReadableStream({async start(d){t.controller.controller=d},async pull(d){await c(d)},async cancel(d){await l(d)},type:"bytes"});i.body={stream:u,source:null,length:null},t.controller.onAborted=h,t.controller.on("terminated",h),t.controller.resume=async()=>{var d;for(;;){let E,p;try{let{done:w,value:R}=await t.controller.next();if(P5(t))break;E=w?void 0:R}catch(w){t.controller.ended&&!s.encodedBodySize?E=void 0:(E=w,p=!0)}if(E===void 0){RCe(t.controller.controller),tme(t,i);return}if(s.decodedBodySize+=(d=E==null?void 0:E.byteLength)!=null?d:0,p){t.controller.terminate(E);return}let C=new Uint8Array(E);if(C.byteLength&&t.controller.controller.enqueue(C),YCe(u)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function h(d){P5(t)?(i.aborted=!0,jp(u)&&t.controller.controller.error(t.controller.serializedAbortReason)):jp(u)&&t.controller.controller.error(new TypeError("terminated",{cause:bCe(d)?d:void 0})),t.controller.connection.destroy()}return i;function f({body:d}){let E=Qi(n),p=t.controller.dispatcher;return new Promise((C,w)=>p.dispatch({path:E.pathname+E.search,origin:E.origin,method:n.method,body:p.isMockActive?n.body&&(n.body.source||n.body.stream):d,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(R){let{connection:S}=t.controller;s.finalConnectionTimingInfo=_Ce(void 0,s.postRedirectStartTime,t.crossOriginIsolatedCapability),S.destroyed?R(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",R),this.abort=S.abort=R),s.finalNetworkRequestStartTime=Oh(t.crossOriginIsolatedCapability)},onResponseStarted(){s.finalNetworkResponseStartTime=Oh(t.crossOriginIsolatedCapability)},onHeaders(R,S,_,O){if(R<200)return;let N="",V=new O5;for(let ee=0;ee<S.length;ee+=2)V.append(G5(S[ee]),S[ee+1].toString("latin1"),!0);N=V.get("location",!0),this.body=new PCe({read:_});let M=[],j=N&&n.redirect==="follow"&&V5.has(R);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!J5.includes(R)&&!j){let ee=V.get("content-encoding",!0),te=ee?ee.toLowerCase().split(","):[],ye=5;if(te.length>ye)return w(new Error(`too many content-encodings in response: ${te.length}, maximum allowed is ${ye}`)),!0;for(let v=te.length-1;v>=0;--v){let y=te[v].trim();if(y==="x-gzip"||y==="gzip")M.push(uo.createGunzip({flush:uo.constants.Z_SYNC_FLUSH,finishFlush:uo.constants.Z_SYNC_FLUSH}));else if(y==="deflate")M.push(FCe({flush:uo.constants.Z_SYNC_FLUSH,finishFlush:uo.constants.Z_SYNC_FLUSH}));else if(y==="br")M.push(uo.createBrotliDecompress({flush:uo.constants.BROTLI_OPERATION_FLUSH,finishFlush:uo.constants.BROTLI_OPERATION_FLUSH}));else{M.length=0;break}}}let k=this.onError.bind(this);return C({status:R,statusText:O,headersList:V,body:M.length?HCe(this.body,...M,ee=>{ee&&this.onError(ee)}).on("error",k):this.body.on("error",k)}),!0},onData(R){if(t.controller.dump)return;let S=R;return s.encodedBodySize+=S.byteLength,this.body.push(S)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.onAborted&&t.controller.off("terminated",t.controller.onAborted),t.controller.ended=!0,this.body.push(null)},onError(R){var S;this.abort&&t.controller.off("terminated",this.abort),(S=this.body)==null||S.destroy(R),t.controller.terminate(R),w(R)},onUpgrade(R,S,_){if(R!==101)return;let O=new O5;for(let N=0;N<S.length;N+=2)O.append(G5(S[N]),S[N+1].toString("latin1"),!0);return C({status:R,statusText:ZCe[R],headersList:O,socket:_}),!0}}))}}X5.exports={fetch:eme,Fetch:zp,fetching:z5,finalizeAndReportTiming:W5}});var jS=g((ANe,eW)=>{"use strict";eW.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var rW=g((aNe,tW)=>{"use strict";var{webidl:jr}=Gt(),Zp=Symbol("ProgressEvent state"),zS=class t extends Event{constructor(e,r={}){e=jr.converters.DOMString(e,"ProgressEvent constructor","type"),r=jr.converters.ProgressEventInit(r!=null?r:{}),super(e,r),this[Zp]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return jr.brandCheck(this,t),this[Zp].lengthComputable}get loaded(){return jr.brandCheck(this,t),this[Zp].loaded}get total(){return jr.brandCheck(this,t),this[Zp].total}};jr.converters.ProgressEventInit=jr.dictionaryConverter([{key:"lengthComputable",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:jr.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:jr.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:jr.converters.boolean,defaultValue:()=>!1}]);tW.exports={ProgressEvent:zS}});var iW=g((cNe,nW)=>{"use strict";function ime(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}nW.exports={getEncoding:ime}});var hW=g((lNe,uW)=>{"use strict";var{kState:sl,kError:ZS,kResult:sW,kAborted:Hh,kLastProgressEventFired:$S}=jS(),{ProgressEvent:sme}=rW(),{getEncoding:oW}=iW(),{serializeAMimeType:ome,parseMIMEType:AW}=Sr(),{types:Ame}=require("util"),{StringDecoder:aW}=require("string_decoder"),{btoa:cW}=require("buffer"),ame={enumerable:!0,writable:!1,configurable:!1};function cme(t,e,r,n){if(t[sl]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[sl]="loading",t[sW]=null,t[ZS]=null;let s=e.stream().getReader(),o=[],A=s.read(),a=!0;(async()=>{for(;!t[Hh];)try{let{done:c,value:l}=await A;if(a&&!t[Hh]&&queueMicrotask(()=>{ho("loadstart",t)}),a=!1,!c&&Ame.isUint8Array(l))o.push(l),(t[$S]===void 0||Date.now()-t[$S]>=50)&&!t[Hh]&&(t[$S]=Date.now(),queueMicrotask(()=>{ho("progress",t)})),A=s.read();else if(c){queueMicrotask(()=>{t[sl]="done";try{let u=lme(o,r,e.type,n);if(t[Hh])return;t[sW]=u,ho("load",t)}catch(u){t[ZS]=u,ho("error",t)}t[sl]!=="loading"&&ho("loadend",t)});break}}catch(c){if(t[Hh])return;queueMicrotask(()=>{t[sl]="done",t[ZS]=c,ho("error",t),t[sl]!=="loading"&&ho("loadend",t)});break}})()}function ho(t,e){let r=new sme(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}function lme(t,e,r,n){switch(e){case"DataURL":{let i="data:",s=AW(r||"application/octet-stream");s!=="failure"&&(i+=ome(s)),i+=";base64,";let o=new aW("latin1");for(let A of t)i+=cW(o.write(A));return i+=cW(o.end()),i}case"Text":{let i="failure";if(n&&(i=oW(n)),i==="failure"&&r){let s=AW(r);s!=="failure"&&(i=oW(s.parameters.get("charset")))}return i==="failure"&&(i="UTF-8"),ume(t,i)}case"ArrayBuffer":return lW(t).buffer;case"BinaryString":{let i="",s=new aW("latin1");for(let o of t)i+=s.write(o);return i+=s.end(),i}}}function ume(t,e){let r=lW(t),n=hme(r),i=0;n!==null&&(e=n,i=n==="UTF-8"?3:2);let s=r.slice(i);return new TextDecoder(e).decode(s)}function hme(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}function lW(t){let e=t.reduce((n,i)=>n+i.byteLength,0),r=0;return t.reduce((n,i)=>(n.set(i,r),r+=i.byteLength,n),new Uint8Array(e))}uW.exports={staticPropertyDescriptors:ame,readOperation:cme,fireAProgressEvent:ho}});var EW=g((uNe,gW)=>{"use strict";var{staticPropertyDescriptors:ol,readOperation:$p,fireAProgressEvent:fW}=hW(),{kState:SA,kError:dW,kResult:Kp,kEvents:Ue,kAborted:fme}=jS(),{webidl:Ve}=Gt(),{kEnumerableProperty:_r}=we(),qn=class t extends EventTarget{constructor(){super(),this[SA]="empty",this[Kp]=null,this[dW]=null,this[Ue]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"ArrayBuffer")}readAsBinaryString(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"BinaryString")}readAsText(e,r=void 0){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=Ve.converters.Blob(e,{strict:!1}),r!==void 0&&(r=Ve.converters.DOMString(r,"FileReader.readAsText","encoding")),$p(this,e,"Text",r)}readAsDataURL(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"DataURL")}abort(){if(this[SA]==="empty"||this[SA]==="done"){this[Kp]=null;return}this[SA]==="loading"&&(this[SA]="done",this[Kp]=null),this[fme]=!0,fW("abort",this),this[SA]!=="loading"&&fW("loadend",this)}get readyState(){switch(Ve.brandCheck(this,t),this[SA]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return Ve.brandCheck(this,t),this[Kp]}get error(){return Ve.brandCheck(this,t),this[dW]}get onloadend(){return Ve.brandCheck(this,t),this[Ue].loadend}set onloadend(e){Ve.brandCheck(this,t),this[Ue].loadend&&this.removeEventListener("loadend",this[Ue].loadend),typeof e=="function"?(this[Ue].loadend=e,this.addEventListener("loadend",e)):this[Ue].loadend=null}get onerror(){return Ve.brandCheck(this,t),this[Ue].error}set onerror(e){Ve.brandCheck(this,t),this[Ue].error&&this.removeEventListener("error",this[Ue].error),typeof e=="function"?(this[Ue].error=e,this.addEventListener("error",e)):this[Ue].error=null}get onloadstart(){return Ve.brandCheck(this,t),this[Ue].loadstart}set onloadstart(e){Ve.brandCheck(this,t),this[Ue].loadstart&&this.removeEventListener("loadstart",this[Ue].loadstart),typeof e=="function"?(this[Ue].loadstart=e,this.addEventListener("loadstart",e)):this[Ue].loadstart=null}get onprogress(){return Ve.brandCheck(this,t),this[Ue].progress}set onprogress(e){Ve.brandCheck(this,t),this[Ue].progress&&this.removeEventListener("progress",this[Ue].progress),typeof e=="function"?(this[Ue].progress=e,this.addEventListener("progress",e)):this[Ue].progress=null}get onload(){return Ve.brandCheck(this,t),this[Ue].load}set onload(e){Ve.brandCheck(this,t),this[Ue].load&&this.removeEventListener("load",this[Ue].load),typeof e=="function"?(this[Ue].load=e,this.addEventListener("load",e)):this[Ue].load=null}get onabort(){return Ve.brandCheck(this,t),this[Ue].abort}set onabort(e){Ve.brandCheck(this,t),this[Ue].abort&&this.removeEventListener("abort",this[Ue].abort),typeof e=="function"?(this[Ue].abort=e,this.addEventListener("abort",e)):this[Ue].abort=null}};qn.EMPTY=qn.prototype.EMPTY=0;qn.LOADING=qn.prototype.LOADING=1;qn.DONE=qn.prototype.DONE=2;Object.defineProperties(qn.prototype,{EMPTY:ol,LOADING:ol,DONE:ol,readAsArrayBuffer:_r,readAsBinaryString:_r,readAsText:_r,readAsDataURL:_r,abort:_r,readyState:_r,result:_r,error:_r,onloadstart:_r,onprogress:_r,onload:_r,onabort:_r,onerror:_r,onloadend:_r,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(qn,{EMPTY:ol,LOADING:ol,DONE:ol});gW.exports={FileReader:qn}});var Xp=g((hNe,pW)=>{"use strict";pW.exports={kConstruct:it().kConstruct}});var IW=g((fNe,mW)=>{"use strict";var dme=require("assert"),{URLSerializer:CW}=Sr(),{isValidHeaderName:gme}=Gr();function Eme(t,e,r=!1){let n=CW(t,r),i=CW(e,r);return n===i}function pme(t){dme(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),gme(r)&&e.push(r);return e}mW.exports={urlEquals:Eme,getFieldValues:pme}});var wW=g((dNe,yW)=>{"use strict";var{kConstruct:Cme}=Xp(),{urlEquals:mme,getFieldValues:KS}=IW(),{kEnumerableProperty:RA,isDisturbed:Ime}=we(),{webidl:ae}=Gt(),{Response:Bme,cloneResponse:Qme,fromInnerResponse:yme}=Uh(),{Request:cs,fromInnerRequest:wme}=il(),{kState:Yn}=Ws(),{fetching:bme}=Ph(),{urlIsHttpHttpsScheme:eC,createDeferredPromise:Al,readAllBytes:Sme}=Gr(),XS=require("assert"),yi,qt,tC,al,BW,eR,ls=class ls{constructor(){q(this,qt);q(this,yi);arguments[0]!==Cme&&ae.illegalConstructor(),ae.util.markAsUncloneable(this),U(this,yi,arguments[1])}async match(e,r={}){ae.brandCheck(this,ls);let n="Cache.match";ae.argumentLengthCheck(arguments,1,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.CacheQueryOptions(r,n,"options");let i=ke(this,qt,eR).call(this,e,r,1);if(i.length!==0)return i[0]}async matchAll(e=void 0,r={}){ae.brandCheck(this,ls);let n="Cache.matchAll";return e!==void 0&&(e=ae.converters.RequestInfo(e,n,"request")),r=ae.converters.CacheQueryOptions(r,n,"options"),ke(this,qt,eR).call(this,e,r)}async add(e){ae.brandCheck(this,ls);let r="Cache.add";ae.argumentLengthCheck(arguments,1,r),e=ae.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){ae.brandCheck(this,ls);let r="Cache.addAll";ae.argumentLengthCheck(arguments,1,r);let n=[],i=[];for(let h of e){if(h===void 0)throw ae.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(h=ae.converters.RequestInfo(h),typeof h=="string")continue;let f=h[Yn];if(!eC(f.url)||f.method!=="GET")throw ae.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let s=[];for(let h of e){let f=new cs(h)[Yn];if(!eC(f.url))throw ae.errors.exception({header:r,message:"Expected http/s scheme."});f.initiator="fetch",f.destination="subresource",i.push(f);let d=Al();s.push(bme({request:f,processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)d.reject(ae.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let p=KS(E.headersList.get("vary"));for(let C of p)if(C==="*"){d.reject(ae.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let w of s)w.abort();return}}},processResponseEndOfBody(E){if(E.aborted){d.reject(new DOMException("aborted","AbortError"));return}d.resolve(E)}})),n.push(d.promise)}let A=await Promise.all(n),a=[],c=0;for(let h of A){let f={type:"put",request:i[c],response:h};a.push(f),c++}let l=Al(),u=null;try{ke(this,qt,tC).call(this,a)}catch(h){u=h}return queueMicrotask(()=>{u===null?l.resolve(void 0):l.reject(u)}),l.promise}async put(e,r){ae.brandCheck(this,ls);let n="Cache.put";ae.argumentLengthCheck(arguments,2,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.Response(r,n,"response");let i=null;if(e instanceof cs?i=e[Yn]:i=new cs(e)[Yn],!eC(i.url)||i.method!=="GET")throw ae.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let s=r[Yn];if(s.status===206)throw ae.errors.exception({header:n,message:"Got 206 status"});if(s.headersList.contains("vary")){let f=KS(s.headersList.get("vary"));for(let d of f)if(d==="*")throw ae.errors.exception({header:n,message:"Got * vary field value"})}if(s.body&&(Ime(s.body.stream)||s.body.stream.locked))throw ae.errors.exception({header:n,message:"Response body is locked or disturbed"});let o=Qme(s),A=Al();if(s.body!=null){let d=s.body.stream.getReader();Sme(d).then(A.resolve,A.reject)}else A.resolve(void 0);let a=[],c={type:"put",request:i,response:o};a.push(c);let l=await A.promise;o.body!=null&&(o.body.source=l);let u=Al(),h=null;try{ke(this,qt,tC).call(this,a)}catch(f){h=f}return queueMicrotask(()=>{h===null?u.resolve():u.reject(h)}),u.promise}async delete(e,r={}){ae.brandCheck(this,ls);let n="Cache.delete";ae.argumentLengthCheck(arguments,1,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.CacheQueryOptions(r,n,"options");let i=null;if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return!1}else XS(typeof e=="string"),i=new cs(e)[Yn];let s=[],o={type:"delete",request:i,options:r};s.push(o);let A=Al(),a=null,c;try{c=ke(this,qt,tC).call(this,s)}catch(l){a=l}return queueMicrotask(()=>{a===null?A.resolve(!!(c!=null&&c.length)):A.reject(a)}),A.promise}async keys(e=void 0,r={}){ae.brandCheck(this,ls);let n="Cache.keys";e!==void 0&&(e=ae.converters.RequestInfo(e,n,"request")),r=ae.converters.CacheQueryOptions(r,n,"options");let i=null;if(e!==void 0)if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new cs(e)[Yn]);let s=Al(),o=[];if(e===void 0)for(let A of m(this,yi))o.push(A[0]);else{let A=ke(this,qt,al).call(this,i,r);for(let a of A)o.push(a[0])}return queueMicrotask(()=>{let A=[];for(let a of o){let c=wme(a,new AbortController().signal,"immutable");A.push(c)}s.resolve(Object.freeze(A))}),s.promise}};yi=new WeakMap,qt=new WeakSet,tC=function(e){let r=m(this,yi),n=[...r],i=[],s=[];try{for(let o of e){if(o.type!=="delete"&&o.type!=="put")throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(o.type==="delete"&&o.response!=null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(ke(this,qt,al).call(this,o.request,o.options,i).length)throw new DOMException("???","InvalidStateError");let A;if(o.type==="delete"){if(A=ke(this,qt,al).call(this,o.request,o.options),A.length===0)return[];for(let a of A){let c=r.indexOf(a);XS(c!==-1),r.splice(c,1)}}else if(o.type==="put"){if(o.response==null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=o.request;if(!eC(a.url))throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(o.options!=null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});A=ke(this,qt,al).call(this,o.request);for(let c of A){let l=r.indexOf(c);XS(l!==-1),r.splice(l,1)}r.push([o.request,o.response]),i.push([o.request,o.response])}s.push([o.request,o.response])}return s}catch(o){throw m(this,yi).length=0,U(this,yi,n),o}},al=function(e,r,n){let i=[],s=n!=null?n:m(this,yi);for(let o of s){let[A,a]=o;ke(this,qt,BW).call(this,e,A,a,r)&&i.push(o)}return i},BW=function(e,r,n=null,i){let s=new URL(e.url),o=new URL(r.url);if(i!=null&&i.ignoreSearch&&(o.search="",s.search=""),!mme(s,o,!0))return!1;if(n==null||i!=null&&i.ignoreVary||!n.headersList.contains("vary"))return!0;let A=KS(n.headersList.get("vary"));for(let a of A){if(a==="*")return!1;let c=r.headersList.get(a),l=e.headersList.get(a);if(c!==l)return!1}return!0},eR=function(e,r,n=1/0){let i=null;if(e!==void 0)if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new cs(e)[Yn]);let s=[];if(e===void 0)for(let A of m(this,yi))s.push(A[1]);else{let A=ke(this,qt,al).call(this,i,r);for(let a of A)s.push(a[1])}let o=[];for(let A of s){let a=yme(A,"immutable");if(o.push(a.clone()),o.length>=n)break}return Object.freeze(o)};var rC=ls;Object.defineProperties(rC.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:RA,matchAll:RA,add:RA,addAll:RA,put:RA,delete:RA,keys:RA});var QW=[{key:"ignoreSearch",converter:ae.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:ae.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:ae.converters.boolean,defaultValue:()=>!1}];ae.converters.CacheQueryOptions=ae.dictionaryConverter(QW);ae.converters.MultiCacheQueryOptions=ae.dictionaryConverter([...QW,{key:"cacheName",converter:ae.converters.DOMString}]);ae.converters.Response=ae.interfaceConverter(Bme);ae.converters["sequence<RequestInfo>"]=ae.sequenceConverter(ae.converters.RequestInfo);yW.exports={Cache:rC}});var SW=g((ENe,bW)=>{"use strict";var{kConstruct:Gh}=Xp(),{Cache:nC}=wW(),{webidl:sr}=Gt(),{kEnumerableProperty:qh}=we(),Cn,vA=class vA{constructor(){q(this,Cn,new Map);arguments[0]!==Gh&&sr.illegalConstructor(),sr.util.markAsUncloneable(this)}async match(e,r={}){if(sr.brandCheck(this,vA),sr.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=sr.converters.RequestInfo(e),r=sr.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(m(this,Cn).has(r.cacheName)){let n=m(this,Cn).get(r.cacheName);return await new nC(Gh,n).match(e,r)}}else for(let n of m(this,Cn).values()){let s=await new nC(Gh,n).match(e,r);if(s!==void 0)return s}}async has(e){sr.brandCheck(this,vA);let r="CacheStorage.has";return sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).has(e)}async open(e){sr.brandCheck(this,vA);let r="CacheStorage.open";if(sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).has(e)){let i=m(this,Cn).get(e);return new nC(Gh,i)}let n=[];return m(this,Cn).set(e,n),new nC(Gh,n)}async delete(e){sr.brandCheck(this,vA);let r="CacheStorage.delete";return sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).delete(e)}async keys(){return sr.brandCheck(this,vA),[...m(this,Cn).keys()]}};Cn=new WeakMap;var iC=vA;Object.defineProperties(iC.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:qh,has:qh,open:qh,delete:qh,keys:qh});bW.exports={CacheStorage:iC}});var vW=g((CNe,RW)=>{"use strict";RW.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var tR=g((mNe,FW)=>{"use strict";function Rme(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}function kW(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}function _W(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r<e;){let n=t.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}function DW(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<32||r===127||r===59)throw new Error("Invalid cookie path")}}function vme(t){if(t.startsWith("-")||t.endsWith(".")||t.endsWith("-"))throw new Error("Invalid cookie domain")}var kme=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sC=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function xW(t){return typeof t=="number"&&(t=new Date(t)),`${kme[t.getUTCDay()]}, ${sC[t.getUTCDate()]} ${_me[t.getUTCMonth()]} ${t.getUTCFullYear()} ${sC[t.getUTCHours()]}:${sC[t.getUTCMinutes()]}:${sC[t.getUTCSeconds()]} GMT`}function Dme(t){if(t<0)throw new Error("Invalid cookie max-age")}function xme(t){if(t.name.length===0)return null;kW(t.name),_W(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(Dme(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(vme(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(DW(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${xW(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...i]=r.split("=");e.push(`${n.trim()}=${i.join("=")}`)}return e.join("; ")}FW.exports={isCTLExcludingHtab:Rme,validateCookieName:kW,validateCookiePath:DW,validateCookieValue:_W,toIMFDate:xW,stringify:xme}});var TW=g((INe,NW)=>{"use strict";var{maxNameValuePairSize:Fme,maxAttributeValueSize:Nme}=vW(),{isCTLExcludingHtab:Tme}=tR(),{collectASequenceOfCodePointsFast:oC}=Sr(),Mme=require("assert");function Lme(t){if(Tme(t))return null;let e="",r="",n="",i="";if(t.includes(";")){let s={position:0};e=oC(";",t,s),r=t.slice(s.position)}else e=t;if(!e.includes("="))i=e;else{let s={position:0};n=oC("=",e,s),i=e.slice(s.position+1)}return n=n.trim(),i=i.trim(),n.length+i.length>Fme?null:{name:n,value:i,...cl(r)}}function cl(t,e={}){var o;if(t.length===0)return e;Mme(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=oC(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",i="";if(r.includes("=")){let A={position:0};n=oC("=",r,A),i=r.slice(A.position+1)}else n=r;if(n=n.trim(),i=i.trim(),i.length>Nme)return cl(t,e);let s=n.toLowerCase();if(s==="expires"){let A=new Date(i);e.expires=A}else if(s==="max-age"){let A=i.charCodeAt(0);if((A<48||A>57)&&i[0]!=="-"||!/^\d+$/.test(i))return cl(t,e);let a=Number(i);e.maxAge=a}else if(s==="domain"){let A=i;A[0]==="."&&(A=A.slice(1)),A=A.toLowerCase(),e.domain=A}else if(s==="path"){let A="";i.length===0||i[0]!=="/"?A="/":A=i,e.path=A}else if(s==="secure")e.secure=!0;else if(s==="httponly")e.httpOnly=!0;else if(s==="samesite"){let A="Default",a=i.toLowerCase();a.includes("none")&&(A="None"),a.includes("strict")&&(A="Strict"),a.includes("lax")&&(A="Lax"),e.sameSite=A}else(o=e.unparsed)!=null||(e.unparsed=[]),e.unparsed.push(`${n}=${i}`);return cl(t,e)}NW.exports={parseSetCookie:Lme,parseUnparsedAttributes:cl}});var UW=g((BNe,LW)=>{"use strict";var{parseSetCookie:Ume}=TW(),{stringify:Ome}=tR(),{webidl:Re}=Gt(),{Headers:AC}=QA();function Pme(t){Re.argumentLengthCheck(arguments,1,"getCookies"),Re.brandCheck(t,AC,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[i,...s]=n.split("=");r[i.trim()]=s.join("=")}return r}function Hme(t,e,r){Re.brandCheck(t,AC,{strict:!1});let n="deleteCookie";Re.argumentLengthCheck(arguments,2,n),e=Re.converters.DOMString(e,n,"name"),r=Re.converters.DeleteCookieAttributes(r),MW(t,{name:e,value:"",expires:new Date(0),...r})}function Gme(t){Re.argumentLengthCheck(arguments,1,"getSetCookies"),Re.brandCheck(t,AC,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>Ume(r)):[]}function MW(t,e){Re.argumentLengthCheck(arguments,2,"setCookie"),Re.brandCheck(t,AC,{strict:!1}),e=Re.converters.Cookie(e);let r=Ome(e);r&&t.append("Set-Cookie",r)}Re.converters.DeleteCookieAttributes=Re.dictionaryConverter([{converter:Re.nullableConverter(Re.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"domain",defaultValue:()=>null}]);Re.converters.Cookie=Re.dictionaryConverter([{converter:Re.converters.DOMString,key:"name"},{converter:Re.converters.DOMString,key:"value"},{converter:Re.nullableConverter(t=>typeof t=="number"?Re.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.boolean),key:"secure",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:Re.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:Re.sequenceConverter(Re.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);LW.exports={getCookies:Pme,deleteCookie:Hme,getSetCookies:Gme,setCookie:MW}});var ul=g((QNe,PW)=>{"use strict";var{webidl:Ae}=Gt(),{kEnumerableProperty:Dr}=we(),{kConstruct:OW}=it(),{MessagePort:qme}=require("worker_threads"),Yt,wi=class wi extends Event{constructor(r,n={}){var e=(...yNe)=>(super(...yNe),q(this,Yt),this);if(r===OW){e(arguments[1],arguments[2]),Ae.util.markAsUncloneable(this);return}let i="MessageEvent constructor";Ae.argumentLengthCheck(arguments,1,i),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.MessageEventInit(n,i,"eventInitDict"),e(r,n),U(this,Yt,n),Ae.util.markAsUncloneable(this)}get data(){return Ae.brandCheck(this,wi),m(this,Yt).data}get origin(){return Ae.brandCheck(this,wi),m(this,Yt).origin}get lastEventId(){return Ae.brandCheck(this,wi),m(this,Yt).lastEventId}get source(){return Ae.brandCheck(this,wi),m(this,Yt).source}get ports(){return Ae.brandCheck(this,wi),Object.isFrozen(m(this,Yt).ports)||Object.freeze(m(this,Yt).ports),m(this,Yt).ports}initMessageEvent(r,n=!1,i=!1,s=null,o="",A="",a=null,c=[]){return Ae.brandCheck(this,wi),Ae.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new wi(r,{bubbles:n,cancelable:i,data:s,origin:o,lastEventId:A,source:a,ports:c})}static createFastMessageEvent(r,n){var s,o,A,a,c,l,u,h,f,d;let i=new wi(OW,r,n);return U(i,Yt,n),(o=(s=m(i,Yt)).data)!=null||(s.data=null),(a=(A=m(i,Yt)).origin)!=null||(A.origin=""),(l=(c=m(i,Yt)).lastEventId)!=null||(c.lastEventId=""),(h=(u=m(i,Yt)).source)!=null||(u.source=null),(d=(f=m(i,Yt)).ports)!=null||(f.ports=[]),i}};Yt=new WeakMap;var ll=wi,{createFastMessageEvent:Yme}=ll;delete ll.createFastMessageEvent;var _A,Yh=class Yh extends Event{constructor(r,n={}){let i="CloseEvent constructor";Ae.argumentLengthCheck(arguments,1,i),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.CloseEventInit(n);super(r,n);q(this,_A);U(this,_A,n),Ae.util.markAsUncloneable(this)}get wasClean(){return Ae.brandCheck(this,Yh),m(this,_A).wasClean}get code(){return Ae.brandCheck(this,Yh),m(this,_A).code}get reason(){return Ae.brandCheck(this,Yh),m(this,_A).reason}};_A=new WeakMap;var aC=Yh,us,kA=class kA extends Event{constructor(r,n){let i="ErrorEvent constructor";Ae.argumentLengthCheck(arguments,1,i);super(r,n);q(this,us);Ae.util.markAsUncloneable(this),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.ErrorEventInit(n!=null?n:{}),U(this,us,n)}get message(){return Ae.brandCheck(this,kA),m(this,us).message}get filename(){return Ae.brandCheck(this,kA),m(this,us).filename}get lineno(){return Ae.brandCheck(this,kA),m(this,us).lineno}get colno(){return Ae.brandCheck(this,kA),m(this,us).colno}get error(){return Ae.brandCheck(this,kA),m(this,us).error}};us=new WeakMap;var cC=kA;Object.defineProperties(ll.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:Dr,origin:Dr,lastEventId:Dr,source:Dr,ports:Dr,initMessageEvent:Dr});Object.defineProperties(aC.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:Dr,code:Dr,wasClean:Dr});Object.defineProperties(cC.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:Dr,filename:Dr,lineno:Dr,colno:Dr,error:Dr});Ae.converters.MessagePort=Ae.interfaceConverter(qme);Ae.converters["sequence<MessagePort>"]=Ae.sequenceConverter(Ae.converters.MessagePort);var rR=[{key:"bubbles",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:Ae.converters.boolean,defaultValue:()=>!1}];Ae.converters.MessageEventInit=Ae.dictionaryConverter([...rR,{key:"data",converter:Ae.converters.any,defaultValue:()=>null},{key:"origin",converter:Ae.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:Ae.converters.DOMString,defaultValue:()=>""},{key:"source",converter:Ae.nullableConverter(Ae.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:Ae.converters["sequence<MessagePort>"],defaultValue:()=>new Array(0)}]);Ae.converters.CloseEventInit=Ae.dictionaryConverter([...rR,{key:"wasClean",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"code",converter:Ae.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:Ae.converters.USVString,defaultValue:()=>""}]);Ae.converters.ErrorEventInit=Ae.dictionaryConverter([...rR,{key:"message",converter:Ae.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:Ae.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:Ae.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:Ae.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:Ae.converters.any}]);PW.exports={MessageEvent:ll,CloseEvent:aC,ErrorEvent:cC,createFastMessageEvent:Yme}});var DA=g((bNe,HW)=>{"use strict";var Vme="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",Jme={enumerable:!0,writable:!1,configurable:!1},Wme={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},jme={NOT_SENT:0,PROCESSING:1,SENT:2},zme={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},Zme=2**16-1,$me={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},Kme=Buffer.allocUnsafe(0),Xme={string:1,typedArray:2,arrayBuffer:3,blob:4};HW.exports={uid:Vme,sentCloseFrameState:jme,staticPropertyDescriptors:Jme,states:Wme,opcodes:zme,maxUnsigned16Bit:Zme,parserStates:$me,emptyBuffer:Kme,sendHints:Xme}});var Vh=g((SNe,GW)=>{"use strict";GW.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var jh=g((RNe,$W)=>{"use strict";var{kReadyState:Jh,kController:eIe,kResponse:tIe,kBinaryType:rIe,kWebSocketURL:nIe}=Vh(),{states:Wh,opcodes:fo}=DA(),{ErrorEvent:iIe,createFastMessageEvent:sIe}=ul(),{isUtf8:oIe}=require("buffer"),{collectASequenceOfCodePointsFast:AIe,removeHTTPWhitespace:qW}=Sr();function aIe(t){return t[Jh]===Wh.CONNECTING}function cIe(t){return t[Jh]===Wh.OPEN}function lIe(t){return t[Jh]===Wh.CLOSING}function uIe(t){return t[Jh]===Wh.CLOSED}function nR(t,e,r=(i,s)=>new Event(i,s),n={}){let i=r(t,n);e.dispatchEvent(i)}function hIe(t,e,r){if(t[Jh]!==Wh.OPEN)return;let n;if(e===fo.TEXT)try{n=ZW(r)}catch{VW(t,"Received invalid UTF-8 in text frame.");return}else e===fo.BINARY&&(t[rIe]==="blob"?n=new Blob([r]):n=fIe(r));nR("message",t,sIe,{origin:t[nIe].origin,data:n})}function fIe(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function dIe(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}function gIe(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}function VW(t,e){let{[eIe]:r,[tIe]:n}=t;r.abort(),n!=null&&n.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&nR("error",t,(i,s)=>new iIe(i,s),{error:new Error(e),message:e})}function JW(t){return t===fo.CLOSE||t===fo.PING||t===fo.PONG}function WW(t){return t===fo.CONTINUATION}function jW(t){return t===fo.TEXT||t===fo.BINARY}function EIe(t){return jW(t)||WW(t)||JW(t)}function pIe(t){let e={position:0},r=new Map;for(;e.position<t.length;){let n=AIe(";",t,e),[i,s=""]=n.split("=");r.set(qW(i,!0,!1),qW(s,!1,!0)),e.position++}return r}function CIe(t){for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);if(r<48||r>57)return!1}return!0}var zW=typeof process.versions.icu=="string",YW=zW?new TextDecoder("utf-8",{fatal:!0}):void 0,ZW=zW?YW.decode.bind(YW):function(t){if(oIe(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};$W.exports={isConnecting:aIe,isEstablished:cIe,isClosing:lIe,isClosed:uIe,fireEvent:nR,isValidSubprotocol:dIe,isValidStatusCode:gIe,failWebsocketConnection:VW,websocketMessageReceived:hIe,utf8Decode:ZW,isControlFrame:JW,isContinuationFrame:WW,isTextBinaryFrame:jW,isValidOpcode:EIe,parseExtensions:pIe,isValidClientWindowBits:CIe}});var uC=g((vNe,KW)=>{"use strict";var{maxUnsigned16Bit:mIe}=DA(),lC=16386,iR,xA=null,hl=lC;try{iR=require("crypto")}catch{iR={randomFillSync:function(e,r,n){for(let i=0;i<e.length;++i)e[i]=Math.random()*255|0;return e}}}function IIe(){return hl===lC&&(hl=0,iR.randomFillSync(xA!=null?xA:xA=Buffer.allocUnsafe(lC),0,lC)),[xA[hl++],xA[hl++],xA[hl++],xA[hl++]]}var sR=class{constructor(e){this.frameData=e}createFrame(e){var a;let r=this.frameData,n=IIe(),i=(a=r==null?void 0:r.byteLength)!=null?a:0,s=i,o=6;i>mIe?(o+=8,s=127):i>125&&(o+=2,s=126);let A=Buffer.allocUnsafe(i+o);A[0]=A[1]=0,A[0]|=128,A[0]=(A[0]&240)+e;A[o-4]=n[0],A[o-3]=n[1],A[o-2]=n[2],A[o-1]=n[3],A[1]=s,s===126?A.writeUInt16BE(i,2):s===127&&(A[2]=A[3]=0,A.writeUIntBE(i,4,6)),A[1]|=128;for(let c=0;c<i;++c)A[o+c]=r[c]^n[c&3];return A}};KW.exports={WebsocketFrameSend:sR}});var AR=g((kNe,s3)=>{"use strict";var{uid:BIe,states:zh,sentCloseFrameState:hC,emptyBuffer:QIe,opcodes:yIe}=DA(),{kReadyState:Zh,kSentClose:fC,kByteParser:e3,kReceivedClose:XW,kResponse:t3}=Vh(),{fireEvent:wIe,failWebsocketConnection:go,isClosing:bIe,isClosed:SIe,isEstablished:RIe,parseExtensions:vIe}=jh(),{channels:fl}=hc(),{CloseEvent:kIe}=ul(),{makeRequest:_Ie}=il(),{fetching:DIe}=Ph(),{Headers:xIe,getHeadersList:FIe}=QA(),{getDecodeSplit:NIe}=Gr(),{WebsocketFrameSend:TIe}=uC(),oR;try{oR=require("crypto")}catch{}function MIe(t,e,r,n,i,s){let o=t;o.protocol=t.protocol==="ws:"?"http:":"https:";let A=_Ie({urlList:[o],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(s.headers){let u=FIe(new xIe(s.headers));A.headersList=u}let a=oR.randomBytes(16).toString("base64");A.headersList.append("sec-websocket-key",a),A.headersList.append("sec-websocket-version","13");for(let u of e)A.headersList.append("sec-websocket-protocol",u);return A.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),DIe({request:A,useParallelQueue:!0,dispatcher:s.dispatcher,processResponse(u){var C,w;if(u.type==="error"||u.status!==101){go(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!u.headersList.get("Sec-WebSocket-Protocol")){go(n,"Server did not respond with sent protocols.");return}if(((C=u.headersList.get("Upgrade"))==null?void 0:C.toLowerCase())!=="websocket"){go(n,'Server did not set Upgrade header to "websocket".');return}if(((w=u.headersList.get("Connection"))==null?void 0:w.toLowerCase())!=="upgrade"){go(n,'Server did not set Connection header to "upgrade".');return}let h=u.headersList.get("Sec-WebSocket-Accept"),f=oR.createHash("sha1").update(a+BIe).digest("base64");if(h!==f){go(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let d=u.headersList.get("Sec-WebSocket-Extensions"),E;if(d!==null&&(E=vIe(d),!E.has("permessage-deflate"))){go(n,"Sec-WebSocket-Extensions header does not match.");return}let p=u.headersList.get("Sec-WebSocket-Protocol");if(p!==null&&!NIe("sec-websocket-protocol",A.headersList).includes(p)){go(n,"Protocol was not set in the opening handshake.");return}u.socket.on("data",r3),u.socket.on("close",n3),u.socket.on("error",i3),fl.open.hasSubscribers&&fl.open.publish({address:u.socket.address(),protocol:p,extensions:d}),i(u,E)}})}function LIe(t,e,r,n){if(!(bIe(t)||SIe(t)))if(!RIe(t))go(t,"Connection was closed before it was established."),t[Zh]=zh.CLOSING;else if(t[fC]===hC.NOT_SENT){t[fC]=hC.PROCESSING;let i=new TIe;e!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(e,0),i.frameData.write(r,2,"utf-8")):i.frameData=QIe,t[t3].socket.write(i.createFrame(yIe.CLOSE)),t[fC]=hC.SENT,t[Zh]=zh.CLOSING}else t[Zh]=zh.CLOSING}function r3(t){this.ws[e3].write(t)||this.pause()}function n3(){var o;let{ws:t}=this,{[t3]:e}=t;e.socket.off("data",r3),e.socket.off("close",n3),e.socket.off("error",i3);let r=t[fC]===hC.SENT&&t[XW],n=1005,i="",s=t[e3].closingInfo;s&&!s.error?(n=(o=s.code)!=null?o:1005,i=s.reason):t[XW]||(n=1006),t[Zh]=zh.CLOSED,wIe("close",t,(A,a)=>new kIe(A,a),{wasClean:r,code:n,reason:i}),fl.close.hasSubscribers&&fl.close.publish({websocket:t,code:n,reason:i})}function i3(t){let{ws:e}=this;e[Zh]=zh.CLOSING,fl.socketError.hasSubscribers&&fl.socketError.publish(t),this.destroy()}s3.exports={establishWebSocketConnection:MIe,closeWebSocketConnection:LIe}});var A3=g((_Ne,o3)=>{"use strict";var{createInflateRaw:UIe,Z_DEFAULT_WINDOWBITS:OIe}=require("zlib"),{isValidClientWindowBits:PIe}=jh(),HIe=Buffer.from([0,0,255,255]),dC=Symbol("kBuffer"),gC=Symbol("kLength"),_t,Eo,aR=class{constructor(e){q(this,_t);q(this,Eo,{});m(this,Eo).serverNoContextTakeover=e.has("server_no_context_takeover"),m(this,Eo).serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,r,n){if(!m(this,_t)){let i=OIe;if(m(this,Eo).serverMaxWindowBits){if(!PIe(m(this,Eo).serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(m(this,Eo).serverMaxWindowBits)}U(this,_t,UIe({windowBits:i})),m(this,_t)[dC]=[],m(this,_t)[gC]=0,m(this,_t).on("data",s=>{m(this,_t)[dC].push(s),m(this,_t)[gC]+=s.length}),m(this,_t).on("error",s=>{U(this,_t,null),n(s)})}m(this,_t).write(e),r&&m(this,_t).write(HIe),m(this,_t).flush(()=>{let i=Buffer.concat(m(this,_t)[dC],m(this,_t)[gC]);m(this,_t)[dC].length=0,m(this,_t)[gC]=0,n(null,i)})}};_t=new WeakMap,Eo=new WeakMap;o3.exports={PerMessageDeflate:aR}});var C3=g((xNe,p3)=>{"use strict";var{Writable:GIe}=require("stream"),qIe=require("assert"),{parserStates:xr,opcodes:dl,states:YIe,emptyBuffer:a3,sentCloseFrameState:c3}=DA(),{kReadyState:VIe,kSentClose:l3,kResponse:u3,kReceivedClose:h3}=Vh(),{channels:EC}=hc(),{isValidStatusCode:JIe,isValidOpcode:WIe,failWebsocketConnection:mn,websocketMessageReceived:f3,utf8Decode:jIe,isControlFrame:d3,isTextBinaryFrame:cR,isContinuationFrame:zIe}=jh(),{WebsocketFrameSend:g3}=uC(),{closeWebSocketConnection:E3}=AR(),{PerMessageDeflate:ZIe}=A3(),Vn,Jn,hs,or,Oe,Wn,po,lR=class extends GIe{constructor(r,n){super();q(this,Vn,[]);q(this,Jn,0);q(this,hs,!1);q(this,or,xr.INFO);q(this,Oe,{});q(this,Wn,[]);q(this,po);this.ws=r,U(this,po,n==null?new Map:n),m(this,po).has("permessage-deflate")&&m(this,po).set("permessage-deflate",new ZIe(n))}_write(r,n,i){m(this,Vn).push(r),U(this,Jn,m(this,Jn)+r.length),U(this,hs,!0),this.run(i)}run(r){for(;m(this,hs);)if(m(this,or)===xr.INFO){if(m(this,Jn)<2)return r();let n=this.consume(2),i=(n[0]&128)!==0,s=n[0]&15,o=(n[1]&128)===128,A=!i&&s!==dl.CONTINUATION,a=n[1]&127,c=n[0]&64,l=n[0]&32,u=n[0]&16;if(!WIe(s))return mn(this.ws,"Invalid opcode received"),r();if(o)return mn(this.ws,"Frame cannot be masked"),r();if(c!==0&&!m(this,po).has("permessage-deflate")){mn(this.ws,"Expected RSV1 to be clear.");return}if(l!==0||u!==0){mn(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(A&&!cR(s)){mn(this.ws,"Invalid frame type was fragmented.");return}if(cR(s)&&m(this,Wn).length>0){mn(this.ws,"Expected continuation frame");return}if(m(this,Oe).fragmented&&A){mn(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((a>125||A)&&d3(s)){mn(this.ws,"Control frame either too large or fragmented");return}if(zIe(s)&&m(this,Wn).length===0&&!m(this,Oe).compressed){mn(this.ws,"Unexpected continuation frame");return}a<=125?(m(this,Oe).payloadLength=a,U(this,or,xr.READ_DATA)):a===126?U(this,or,xr.PAYLOADLENGTH_16):a===127&&U(this,or,xr.PAYLOADLENGTH_64),cR(s)&&(m(this,Oe).binaryType=s,m(this,Oe).compressed=c!==0),m(this,Oe).opcode=s,m(this,Oe).masked=o,m(this,Oe).fin=i,m(this,Oe).fragmented=A}else if(m(this,or)===xr.PAYLOADLENGTH_16){if(m(this,Jn)<2)return r();let n=this.consume(2);m(this,Oe).payloadLength=n.readUInt16BE(0),U(this,or,xr.READ_DATA)}else if(m(this,or)===xr.PAYLOADLENGTH_64){if(m(this,Jn)<8)return r();let n=this.consume(8),i=n.readUInt32BE(0);if(i>2**31-1){mn(this.ws,"Received payload length > 2^31 bytes.");return}let s=n.readUInt32BE(4);m(this,Oe).payloadLength=(i<<8)+s,U(this,or,xr.READ_DATA)}else if(m(this,or)===xr.READ_DATA){if(m(this,Jn)<m(this,Oe).payloadLength)return r();let n=this.consume(m(this,Oe).payloadLength);if(d3(m(this,Oe).opcode))U(this,hs,this.parseControlFrame(n)),U(this,or,xr.INFO);else if(m(this,Oe).compressed){m(this,po).get("permessage-deflate").decompress(n,m(this,Oe).fin,(i,s)=>{if(i){E3(this.ws,1007,i.message,i.message.length);return}if(m(this,Wn).push(s),!m(this,Oe).fin){U(this,or,xr.INFO),U(this,hs,!0),this.run(r);return}f3(this.ws,m(this,Oe).binaryType,Buffer.concat(m(this,Wn))),U(this,hs,!0),U(this,or,xr.INFO),m(this,Wn).length=0,this.run(r)}),U(this,hs,!1);break}else{if(m(this,Wn).push(n),!m(this,Oe).fragmented&&m(this,Oe).fin){let i=Buffer.concat(m(this,Wn));f3(this.ws,m(this,Oe).binaryType,i),m(this,Wn).length=0}U(this,or,xr.INFO)}}}consume(r){if(r>m(this,Jn))throw new Error("Called consume() before buffers satiated.");if(r===0)return a3;if(m(this,Vn)[0].length===r)return U(this,Jn,m(this,Jn)-m(this,Vn)[0].length),m(this,Vn).shift();let n=Buffer.allocUnsafe(r),i=0;for(;i!==r;){let s=m(this,Vn)[0],{length:o}=s;if(o+i===r){n.set(m(this,Vn).shift(),i);break}else if(o+i>r){n.set(s.subarray(0,r-i),i),m(this,Vn)[0]=s.subarray(r-i);break}else n.set(m(this,Vn).shift(),i),i+=s.length}return U(this,Jn,m(this,Jn)-r),n}parseCloseBody(r){qIe(r.length!==1);let n;if(r.length>=2&&(n=r.readUInt16BE(0)),n!==void 0&&!JIe(n))return{code:1002,reason:"Invalid status code",error:!0};let i=r.subarray(2);i[0]===239&&i[1]===187&&i[2]===191&&(i=i.subarray(3));try{i=jIe(i)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:n,reason:i,error:!1}}parseControlFrame(r){let{opcode:n,payloadLength:i}=m(this,Oe);if(n===dl.CLOSE){if(i===1)return mn(this.ws,"Received close frame with a 1-byte body."),!1;if(m(this,Oe).closeInfo=this.parseCloseBody(r),m(this,Oe).closeInfo.error){let{code:s,reason:o}=m(this,Oe).closeInfo;return E3(this.ws,s,o,o.length),mn(this.ws,o),!1}if(this.ws[l3]!==c3.SENT){let s=a3;m(this,Oe).closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(m(this,Oe).closeInfo.code,0));let o=new g3(s);this.ws[u3].socket.write(o.createFrame(dl.CLOSE),A=>{A||(this.ws[l3]=c3.SENT)})}return this.ws[VIe]=YIe.CLOSING,this.ws[h3]=!0,!1}else if(n===dl.PING){if(!this.ws[h3]){let s=new g3(r);this.ws[u3].socket.write(s.createFrame(dl.PONG)),EC.ping.hasSubscribers&&EC.ping.publish({payload:r})}}else n===dl.PONG&&EC.pong.hasSubscribers&&EC.pong.publish({payload:r});return!0}get closingInfo(){return m(this,Oe).closeInfo}};Vn=new WeakMap,Jn=new WeakMap,hs=new WeakMap,or=new WeakMap,Oe=new WeakMap,Wn=new WeakMap,po=new WeakMap;p3.exports={ByteParser:lR}});var w3=g((NNe,y3)=>{"use strict";var{WebsocketFrameSend:$Ie}=uC(),{opcodes:m3,sendHints:gl}=DA(),KIe=pb(),I3=Buffer[Symbol.species],El,FA,pl,pC,Q3,uR=class{constructor(e){q(this,pC);q(this,El,new KIe);q(this,FA,!1);q(this,pl);U(this,pl,e)}add(e,r,n){if(n!==gl.blob){let s=B3(e,n);if(!m(this,FA))m(this,pl).write(s,r);else{let o={promise:null,callback:r,frame:s};m(this,El).push(o)}return}let i={promise:e.arrayBuffer().then(s=>{i.promise=null,i.frame=B3(s,n)}),callback:r,frame:null};m(this,El).push(i),m(this,FA)||ke(this,pC,Q3).call(this)}};El=new WeakMap,FA=new WeakMap,pl=new WeakMap,pC=new WeakSet,Q3=async function(){U(this,FA,!0);let e=m(this,El);for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,m(this,pl).write(r.frame,r.callback),r.callback=r.frame=null}U(this,FA,!1)};function B3(t,e){return new $Ie(XIe(t,e)).createFrame(e===gl.string?m3.TEXT:m3.BINARY)}function XIe(t,e){switch(e){case gl.string:return Buffer.from(t);case gl.arrayBuffer:case gl.blob:return new I3(t);case gl.typedArray:return new I3(t.buffer,t.byteOffset,t.byteLength)}}y3.exports={SendQueue:uR}});var N3=g((MNe,F3)=>{"use strict";var{webidl:Ee}=Gt(),{URLSerializer:eBe}=Sr(),{environmentSettingsObject:b3}=Gr(),{staticPropertyDescriptors:mo,states:Xh,sentCloseFrameState:tBe,sendHints:CC}=DA(),{kWebSocketURL:S3,kReadyState:hR,kController:rBe,kBinaryType:mC,kResponse:R3,kSentClose:nBe,kByteParser:iBe}=Vh(),{isConnecting:sBe,isEstablished:oBe,isClosing:ABe,isValidSubprotocol:aBe,fireEvent:v3}=jh(),{establishWebSocketConnection:cBe,closeWebSocketConnection:k3}=AR(),{ByteParser:lBe}=C3(),{kEnumerableProperty:In,isBlobLike:_3}=we(),{getGlobalDispatcher:uBe}=kp(),{types:D3}=require("util"),{ErrorEvent:hBe,CloseEvent:fBe}=ul(),{SendQueue:dBe}=w3(),lt,Bn,$h,Kh,Co,IC,x3,wt=class wt extends EventTarget{constructor(r,n=[]){super();q(this,IC);q(this,lt,{open:null,error:null,close:null,message:null});q(this,Bn,0);q(this,$h,"");q(this,Kh,"");q(this,Co);Ee.util.markAsUncloneable(this);let i="WebSocket constructor";Ee.argumentLengthCheck(arguments,1,i);let s=Ee.converters["DOMString or sequence<DOMString> or WebSocketInit"](n,i,"options");r=Ee.converters.USVString(r,i,"url"),n=s.protocols;let o=b3.settingsObject.baseUrl,A;try{A=new URL(r,o)}catch(c){throw new DOMException(c,"SyntaxError")}if(A.protocol==="http:"?A.protocol="ws:":A.protocol==="https:"&&(A.protocol="wss:"),A.protocol!=="ws:"&&A.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${A.protocol}`,"SyntaxError");if(A.hash||A.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof n=="string"&&(n=[n]),n.length!==new Set(n.map(c=>c.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(n.length>0&&!n.every(c=>aBe(c)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[S3]=new URL(A.href);let a=b3.settingsObject;this[rBe]=cBe(A,n,a,this,(c,l)=>ke(this,IC,x3).call(this,c,l),s),this[hR]=wt.CONNECTING,this[nBe]=tBe.NOT_SENT,this[mC]="blob"}close(r=void 0,n=void 0){Ee.brandCheck(this,wt);let i="WebSocket.close";if(r!==void 0&&(r=Ee.converters["unsigned short"](r,i,"code",{clamp:!0})),n!==void 0&&(n=Ee.converters.USVString(n,i,"reason")),r!==void 0&&r!==1e3&&(r<3e3||r>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(n!==void 0&&(s=Buffer.byteLength(n),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");k3(this,r,n,s)}send(r){Ee.brandCheck(this,wt);let n="WebSocket.send";if(Ee.argumentLengthCheck(arguments,1,n),r=Ee.converters.WebSocketSendData(r,n,"data"),sBe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!oBe(this)||ABe(this)))if(typeof r=="string"){let i=Buffer.byteLength(r);U(this,Bn,m(this,Bn)+i),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-i)},CC.string)}else D3.isArrayBuffer(r)?(U(this,Bn,m(this,Bn)+r.byteLength),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.byteLength)},CC.arrayBuffer)):ArrayBuffer.isView(r)?(U(this,Bn,m(this,Bn)+r.byteLength),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.byteLength)},CC.typedArray)):_3(r)&&(U(this,Bn,m(this,Bn)+r.size),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.size)},CC.blob))}get readyState(){return Ee.brandCheck(this,wt),this[hR]}get bufferedAmount(){return Ee.brandCheck(this,wt),m(this,Bn)}get url(){return Ee.brandCheck(this,wt),eBe(this[S3])}get extensions(){return Ee.brandCheck(this,wt),m(this,Kh)}get protocol(){return Ee.brandCheck(this,wt),m(this,$h)}get onopen(){return Ee.brandCheck(this,wt),m(this,lt).open}set onopen(r){Ee.brandCheck(this,wt),m(this,lt).open&&this.removeEventListener("open",m(this,lt).open),typeof r=="function"?(m(this,lt).open=r,this.addEventListener("open",r)):m(this,lt).open=null}get onerror(){return Ee.brandCheck(this,wt),m(this,lt).error}set onerror(r){Ee.brandCheck(this,wt),m(this,lt).error&&this.removeEventListener("error",m(this,lt).error),typeof r=="function"?(m(this,lt).error=r,this.addEventListener("error",r)):m(this,lt).error=null}get onclose(){return Ee.brandCheck(this,wt),m(this,lt).close}set onclose(r){Ee.brandCheck(this,wt),m(this,lt).close&&this.removeEventListener("close",m(this,lt).close),typeof r=="function"?(m(this,lt).close=r,this.addEventListener("close",r)):m(this,lt).close=null}get onmessage(){return Ee.brandCheck(this,wt),m(this,lt).message}set onmessage(r){Ee.brandCheck(this,wt),m(this,lt).message&&this.removeEventListener("message",m(this,lt).message),typeof r=="function"?(m(this,lt).message=r,this.addEventListener("message",r)):m(this,lt).message=null}get binaryType(){return Ee.brandCheck(this,wt),this[mC]}set binaryType(r){Ee.brandCheck(this,wt),r!=="blob"&&r!=="arraybuffer"?this[mC]="blob":this[mC]=r}};lt=new WeakMap,Bn=new WeakMap,$h=new WeakMap,Kh=new WeakMap,Co=new WeakMap,IC=new WeakSet,x3=function(r,n){this[R3]=r;let i=new lBe(this,n);i.on("drain",gBe),i.on("error",EBe.bind(this)),r.socket.ws=this,this[iBe]=i,U(this,Co,new dBe(r.socket)),this[hR]=Xh.OPEN;let s=r.headersList.get("sec-websocket-extensions");s!==null&&U(this,Kh,s);let o=r.headersList.get("sec-websocket-protocol");o!==null&&U(this,$h,o),v3("open",this)};var zr=wt;zr.CONNECTING=zr.prototype.CONNECTING=Xh.CONNECTING;zr.OPEN=zr.prototype.OPEN=Xh.OPEN;zr.CLOSING=zr.prototype.CLOSING=Xh.CLOSING;zr.CLOSED=zr.prototype.CLOSED=Xh.CLOSED;Object.defineProperties(zr.prototype,{CONNECTING:mo,OPEN:mo,CLOSING:mo,CLOSED:mo,url:In,readyState:In,bufferedAmount:In,onopen:In,onerror:In,onclose:In,close:In,onmessage:In,binaryType:In,send:In,extensions:In,protocol:In,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(zr,{CONNECTING:mo,OPEN:mo,CLOSING:mo,CLOSED:mo});Ee.converters["sequence<DOMString>"]=Ee.sequenceConverter(Ee.converters.DOMString);Ee.converters["DOMString or sequence<DOMString>"]=function(t,e,r){return Ee.util.Type(t)==="Object"&&Symbol.iterator in t?Ee.converters["sequence<DOMString>"](t):Ee.converters.DOMString(t,e,r)};Ee.converters.WebSocketInit=Ee.dictionaryConverter([{key:"protocols",converter:Ee.converters["DOMString or sequence<DOMString>"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:Ee.converters.any,defaultValue:()=>uBe()},{key:"headers",converter:Ee.nullableConverter(Ee.converters.HeadersInit)}]);Ee.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){return Ee.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Ee.converters.WebSocketInit(t):{protocols:Ee.converters["DOMString or sequence<DOMString>"](t)}};Ee.converters.WebSocketSendData=function(t){if(Ee.util.Type(t)==="Object"){if(_3(t))return Ee.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||D3.isArrayBuffer(t))return Ee.converters.BufferSource(t)}return Ee.converters.USVString(t)};function gBe(){this.ws[R3].socket.resume()}function EBe(t){let e,r;t instanceof fBe?(e=t.reason,r=t.code):e=t.message,v3("error",this,()=>new hBe("error",{error:t,message:e})),k3(this,r)}F3.exports={WebSocket:zr}});var fR=g((UNe,T3)=>{"use strict";function pBe(t){return t.indexOf("\0")===-1}function CBe(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t.charCodeAt(e)<48||t.charCodeAt(e)>57)return!1;return!0}function mBe(t){return new Promise(e=>{setTimeout(e,t).unref()})}T3.exports={isValidLastEventId:pBe,isASCIINumber:CBe,delay:mBe}});var O3=g((ONe,U3)=>{"use strict";var{Transform:IBe}=require("stream"),{isASCIINumber:M3,isValidLastEventId:L3}=fR(),fs=[239,187,191],dR=10,BC=13,BBe=58,QBe=32,gR=class extends IBe{constructor(r={}){r.readableObjectMode=!0;super(r);se(this,"state",null);se(this,"checkBOM",!0);se(this,"crlfCheck",!1);se(this,"eventEndCheck",!1);se(this,"buffer",null);se(this,"pos",0);se(this,"event",{data:void 0,event:void 0,id:void 0,retry:void 0});this.state=r.eventSourceSettings||{},r.push&&(this.push=r.push)}_transform(r,n,i){if(r.length===0){i();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,r]):this.buffer=r,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===fs[0]){i();return}this.checkBOM=!1,i();return;case 2:if(this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]){i();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]&&this.buffer[2]===fs[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,i();return}this.checkBOM=!1;break;default:this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]&&this.buffer[2]===fs[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos<this.buffer.length;){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===dR){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===dR||this.buffer[this.pos]===BC){this.buffer[this.pos]===BC&&(this.crlfCheck=!0),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,(this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===dR||this.buffer[this.pos]===BC){this.buffer[this.pos]===BC&&(this.crlfCheck=!0),this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}i()}parseLine(r,n){if(r.length===0)return;let i=r.indexOf(BBe);if(i===0)return;let s="",o="";if(i!==-1){s=r.subarray(0,i).toString("utf8");let A=i+1;r[A]===QBe&&++A,o=r.subarray(A).toString("utf8")}else s=r.toString("utf8"),o="";switch(s){case"data":n[s]===void 0?n[s]=o:n[s]+=`
|
|
94
|
-
${o}`;break;case"retry":M3(o)&&(n[s]=o);break;case"id":L3(o)&&(n[s]=o);break;case"event":o.length>0&&(n[s]=o);break}}processEvent(r){r.retry&&M3(r.retry)&&(this.state.reconnectionTime=parseInt(r.retry,10)),r.id&&L3(r.id)&&(this.state.lastEventId=r.id),r.data!==void 0&&this.push({type:r.event||"message",options:{data:r.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};U3.exports={EventSourceStream:gR}});var W3=g((HNe,J3)=>{"use strict";var{pipeline:yBe}=require("stream"),{fetching:wBe}=Ph(),{makeRequest:bBe}=il(),{webidl:ds}=Gt(),{EventSourceStream:SBe}=O3(),{parseMIMEType:RBe}=Sr(),{createFastMessageEvent:vBe}=ul(),{isNetworkError:P3}=Uh(),{delay:kBe}=fR(),{kEnumerableProperty:NA}=we(),{environmentSettingsObject:H3}=Gr(),G3=!1,q3=3e3,ef=0,Y3=1,tf=2,_Be="anonymous",DBe="use-credentials",Ot,Cl,rf,Qn,TA,nf,sf,bi,Io,ER,pR,CR=class CR extends EventTarget{constructor(r,n={}){super();q(this,Io);q(this,Ot,{open:null,error:null,message:null});q(this,Cl,null);q(this,rf,!1);q(this,Qn,ef);q(this,TA,null);q(this,nf,null);q(this,sf);q(this,bi);ds.util.markAsUncloneable(this);let i="EventSource constructor";ds.argumentLengthCheck(arguments,1,i),G3||(G3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),r=ds.converters.USVString(r,i,"url"),n=ds.converters.EventSourceInitDict(n,i,"eventSourceInitDict"),U(this,sf,n.dispatcher),U(this,bi,{lastEventId:"",reconnectionTime:q3});let s=H3,o;try{o=new URL(r,s.settingsObject.baseUrl),m(this,bi).origin=o.origin}catch(c){throw new DOMException(c,"SyntaxError")}U(this,Cl,o.href);let A=_Be;n.withCredentials&&(A=DBe,U(this,rf,!0));let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:A==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=H3.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(m(this,Cl))],U(this,TA,bBe(a)),ke(this,Io,ER).call(this)}get readyState(){return m(this,Qn)}get url(){return m(this,Cl)}get withCredentials(){return m(this,rf)}close(){ds.brandCheck(this,CR),m(this,Qn)!==tf&&(U(this,Qn,tf),m(this,nf).abort(),U(this,TA,null))}get onopen(){return m(this,Ot).open}set onopen(r){m(this,Ot).open&&this.removeEventListener("open",m(this,Ot).open),typeof r=="function"?(m(this,Ot).open=r,this.addEventListener("open",r)):m(this,Ot).open=null}get onmessage(){return m(this,Ot).message}set onmessage(r){m(this,Ot).message&&this.removeEventListener("message",m(this,Ot).message),typeof r=="function"?(m(this,Ot).message=r,this.addEventListener("message",r)):m(this,Ot).message=null}get onerror(){return m(this,Ot).error}set onerror(r){m(this,Ot).error&&this.removeEventListener("error",m(this,Ot).error),typeof r=="function"?(m(this,Ot).error=r,this.addEventListener("error",r)):m(this,Ot).error=null}};Ot=new WeakMap,Cl=new WeakMap,rf=new WeakMap,Qn=new WeakMap,TA=new WeakMap,nf=new WeakMap,sf=new WeakMap,bi=new WeakMap,Io=new WeakSet,ER=function(){if(m(this,Qn)===tf)return;U(this,Qn,ef);let r={request:m(this,TA),dispatcher:m(this,sf)},n=i=>{P3(i)&&(this.dispatchEvent(new Event("error")),this.close()),ke(this,Io,pR).call(this)};r.processResponseEndOfBody=n,r.processResponse=i=>{if(P3(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{ke(this,Io,pR).call(this);return}let s=i.headersList.get("content-type",!0),o=s!==null?RBe(s):"failure",A=o!=="failure"&&o.essence==="text/event-stream";if(i.status!==200||A===!1){this.close(),this.dispatchEvent(new Event("error"));return}U(this,Qn,Y3),this.dispatchEvent(new Event("open")),m(this,bi).origin=i.urlList[i.urlList.length-1].origin;let a=new SBe({eventSourceSettings:m(this,bi),push:c=>{this.dispatchEvent(vBe(c.type,c.options))}});yBe(i.body.stream,a,c=>{(c==null?void 0:c.aborted)===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},U(this,nf,wBe(r))},pR=async function(){m(this,Qn)!==tf&&(U(this,Qn,ef),this.dispatchEvent(new Event("error")),await kBe(m(this,bi).reconnectionTime),m(this,Qn)===ef&&(m(this,bi).lastEventId.length&&m(this,TA).headersList.set("last-event-id",m(this,bi).lastEventId,!0),ke(this,Io,ER).call(this)))};var ml=CR,V3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ef,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Y3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:tf,writable:!1}};Object.defineProperties(ml,V3);Object.defineProperties(ml.prototype,V3);Object.defineProperties(ml.prototype,{close:NA,onerror:NA,onmessage:NA,onopen:NA,readyState:NA,url:NA,withCredentials:NA});ds.converters.EventSourceInitDict=ds.dictionaryConverter([{key:"withCredentials",converter:ds.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ds.converters.any}]);J3.exports={EventSource:ml,defaultReconnectionTime:q3}});var K3=g((qNe,fe)=>{"use strict";var xBe=Nc(),z3=rh(),FBe=Tc(),NBe=xY(),TBe=Mc(),MBe=Lb(),LBe=oV(),UBe=hV(),Z3=Le(),yC=we(),{InvalidArgumentError:QC}=Z3,Il=KV(),OBe=ih(),PBe=IS(),HBe=MJ(),GBe=yS(),qBe=AS(),YBe=mp(),{getGlobalDispatcher:$3,setGlobalDispatcher:VBe}=kp(),JBe=_p(),WBe=Ap(),jBe=ap();Object.assign(z3.prototype,Il);fe.exports.Dispatcher=z3;fe.exports.Client=xBe;fe.exports.Pool=FBe;fe.exports.BalancedPool=NBe;fe.exports.Agent=TBe;fe.exports.ProxyAgent=MBe;fe.exports.EnvHttpProxyAgent=LBe;fe.exports.RetryAgent=UBe;fe.exports.RetryHandler=YBe;fe.exports.DecoratorHandler=JBe;fe.exports.RedirectHandler=WBe;fe.exports.createRedirectInterceptor=jBe;fe.exports.interceptors={redirect:YJ(),retry:JJ(),dump:zJ(),dns:e5()};fe.exports.buildConnector=OBe;fe.exports.errors=Z3;fe.exports.util={parseHeaders:yC.parseHeaders,headerNameToString:yC.headerNameToString};function of(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new QC("invalid url");if(r!=null&&typeof r!="object")throw new QC("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new QC("invalid opts.path");let o=r.path;r.path.startsWith("/")||(o=`/${o}`),e=new URL(yC.parseOrigin(e).origin+o)}else r||(r=typeof e=="object"?e:{}),e=yC.parseURL(e);let{agent:i,dispatcher:s=$3()}=r;if(i)throw new QC("unsupported opts.agent. Did you mean opts.client?");return t.call(s,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}fe.exports.setGlobalDispatcher=VBe;fe.exports.getGlobalDispatcher=$3;var zBe=Ph().fetch;fe.exports.fetch=async function(e,r=void 0){try{return await zBe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}};fe.exports.Headers=QA().Headers;fe.exports.Response=Uh().Response;fe.exports.Request=il().Request;fe.exports.FormData=uh().FormData;var j3;fe.exports.File=(j3=globalThis.File)!=null?j3:require("buffer").File;fe.exports.FileReader=EW().FileReader;var{setGlobalOrigin:ZBe,getGlobalOrigin:$Be}=Uw();fe.exports.setGlobalOrigin=ZBe;fe.exports.getGlobalOrigin=$Be;var{CacheStorage:KBe}=SW(),{kConstruct:XBe}=Xp();fe.exports.caches=new KBe(XBe);var{deleteCookie:eQe,getCookies:tQe,getSetCookies:rQe,setCookie:nQe}=UW();fe.exports.deleteCookie=eQe;fe.exports.getCookies=tQe;fe.exports.getSetCookies=rQe;fe.exports.setCookie=nQe;var{parseMIMEType:iQe,serializeAMimeType:sQe}=Sr();fe.exports.parseMIMEType=iQe;fe.exports.serializeAMimeType=sQe;var{CloseEvent:oQe,ErrorEvent:AQe,MessageEvent:aQe}=ul();fe.exports.WebSocket=N3().WebSocket;fe.exports.CloseEvent=oQe;fe.exports.ErrorEvent=AQe;fe.exports.MessageEvent=aQe;fe.exports.request=of(Il.request);fe.exports.stream=of(Il.stream);fe.exports.pipeline=of(Il.pipeline);fe.exports.connect=of(Il.connect);fe.exports.upgrade=of(Il.upgrade);fe.exports.MockClient=PBe;fe.exports.MockPool=GBe;fe.exports.MockAgent=HBe;fe.exports.mockErrors=qBe;var{EventSource:cQe}=W3();fe.exports.EventSource=cQe});var r9=g((WNe,t9)=>{"use strict";function yn(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t9.exports=yn;yn.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};yn.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};yn.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};yn.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};yn.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};yn.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};yn.prototype.start=yn.prototype.try;yn.prototype.errors=function(){return this._errors};yn.prototype.attempts=function(){return this._attempts};yn.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var n9=g(MA=>{"use strict";var EQe=r9();MA.operation=function(t){var e=MA.timeouts(t);return new EQe(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};MA.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};MA.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};MA.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(a){var c=MA.operation(e),l=Array.prototype.slice.call(arguments,1),u=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),u.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var s9=g((zNe,i9)=>{"use strict";i9.exports=n9()});var A9=g((ZNe,o9)=>{"use strict";var pQe=s9();function CQe(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=pQe.operation(s);function A(l){i(l||new Error("Aborted"))}function a(l,u){if(l.bail){A(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,u):i(o.mainError())}function c(l){var u;try{u=t(A,l)}catch(h){a(h,l);return}Promise.resolve(u).then(n).catch(function(f){a(f,l)})}o.attempt(c)}return new Promise(r)}o9.exports=CQe});var u9=g(LA=>{"use strict";LA.parse=LA.decode=RQe;LA.stringify=LA.encode=a9;LA.safe=Bl;LA.unsafe=SC;var mR=typeof process!="undefined"&&process.platform==="win32"?`\r
|
|
93
|
+
`.trim())}};TJ.exports=SS});var kp=g((VFe,PJ)=>{"use strict";var LJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:npe}=Le(),ipe=Mc();OJ()===void 0&&UJ(new ipe);function UJ(t){if(!t||typeof t.dispatch!="function")throw new npe("Argument agent must implement Agent");Object.defineProperty(globalThis,LJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}function OJ(){return globalThis[LJ]}PJ.exports={setGlobalDispatcher:UJ,getGlobalDispatcher:OJ}});var _p=g((WFe,GJ)=>{"use strict";var pn,HJ;GJ.exports=(HJ=class{constructor(e){q(this,pn);if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");U(this,pn,e)}onConnect(...e){var r,n;return(n=(r=m(this,pn)).onConnect)==null?void 0:n.call(r,...e)}onError(...e){var r,n;return(n=(r=m(this,pn)).onError)==null?void 0:n.call(r,...e)}onUpgrade(...e){var r,n;return(n=(r=m(this,pn)).onUpgrade)==null?void 0:n.call(r,...e)}onResponseStarted(...e){var r,n;return(n=(r=m(this,pn)).onResponseStarted)==null?void 0:n.call(r,...e)}onHeaders(...e){var r,n;return(n=(r=m(this,pn)).onHeaders)==null?void 0:n.call(r,...e)}onData(...e){var r,n;return(n=(r=m(this,pn)).onData)==null?void 0:n.call(r,...e)}onComplete(...e){var r,n;return(n=(r=m(this,pn)).onComplete)==null?void 0:n.call(r,...e)}onBodySent(...e){var r,n;return(n=(r=m(this,pn)).onBodySent)==null?void 0:n.call(r,...e)}},pn=new WeakMap,HJ)});var YJ=g((zFe,qJ)=>{"use strict";var spe=Ap();qJ.exports=t=>{let e=t==null?void 0:t.maxRedirections;return r=>function(i,s){let{maxRedirections:o=e,...A}=i;if(!o)return r(i,s);let a=new spe(r,o,i,s);return r(A,a)}}});var JJ=g((ZFe,VJ)=>{"use strict";var ope=mp();VJ.exports=t=>e=>function(n,i){return e(n,new ope({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))}});var zJ=g(($Fe,jJ)=>{"use strict";var Ape=we(),{InvalidArgumentError:ape,RequestAbortedError:cpe}=Le(),lpe=_p(),oo,Dp,jc,CA,zc,Zc,Hn,xp,WJ,RS=class extends lpe{constructor({maxSize:r},n){super(n);q(this,xp);q(this,oo,1024*1024);q(this,Dp,null);q(this,jc,!1);q(this,CA,!1);q(this,zc,0);q(this,Zc,null);q(this,Hn,null);if(r!=null&&(!Number.isFinite(r)||r<1))throw new ape("maxSize must be a number greater than 0");U(this,oo,r!=null?r:m(this,oo)),U(this,Hn,n)}onConnect(r){U(this,Dp,r),m(this,Hn).onConnect(ke(this,xp,WJ).bind(this))}onHeaders(r,n,i,s){let A=Ape.parseHeaders(n)["content-length"];if(A!=null&&A>m(this,oo))throw new cpe(`Response size (${A}) larger than maxSize (${m(this,oo)})`);return m(this,CA)?!0:m(this,Hn).onHeaders(r,n,i,s)}onError(r){var n;m(this,jc)||(r=(n=m(this,Zc))!=null?n:r,m(this,Hn).onError(r))}onData(r){return U(this,zc,m(this,zc)+r.length),m(this,zc)>=m(this,oo)&&(U(this,jc,!0),m(this,CA)?m(this,Hn).onError(m(this,Zc)):m(this,Hn).onComplete([])),!0}onComplete(r){if(!m(this,jc)){if(m(this,CA)){m(this,Hn).onError(this.reason);return}m(this,Hn).onComplete(r)}}};oo=new WeakMap,Dp=new WeakMap,jc=new WeakMap,CA=new WeakMap,zc=new WeakMap,Zc=new WeakMap,Hn=new WeakMap,xp=new WeakSet,WJ=function(r){U(this,CA,!0),U(this,Zc,r)};function upe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,i){let{dumpMaxSize:s=t}=n,o=new RS({maxSize:s},i);return e(n,o)}}jJ.exports=upe});var e5=g((XFe,XJ)=>{"use strict";var{isIP:hpe}=require("net"),{lookup:fpe}=require("dns"),dpe=_p(),{InvalidArgumentError:$c,InformationalError:gpe}=Le(),ZJ=Math.pow(2,31)-1,mA,Kc,Ao,tl,$J,KJ,vS=class{constructor(e){q(this,tl);q(this,mA,0);q(this,Kc,0);q(this,Ao,new Map);se(this,"dualStack",!0);se(this,"affinity",null);se(this,"lookup",null);se(this,"pick",null);var r,n;U(this,mA,e.maxTTL),U(this,Kc,e.maxItems),this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=(r=e.lookup)!=null?r:ke(this,tl,$J),this.pick=(n=e.pick)!=null?n:ke(this,tl,KJ)}get full(){return m(this,Ao).size===m(this,Kc)}runLookup(e,r,n){let i=m(this,Ao).get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:m(this,mA),maxItems:m(this,Kc)};if(i==null)this.lookup(e,s,(o,A)=>{if(o||A==null||A.length===0){n(o!=null?o:new gpe("No DNS entries found"));return}this.setRecords(e,A);let a=m(this,Ao).get(e.hostname),c=this.pick(e,a,s.affinity),l;typeof c.port=="number"?l=`:${c.port}`:e.port!==""?l=`:${e.port}`:l="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${l}`)});else{let o=this.pick(e,i,s.affinity);if(o==null){m(this,Ao).delete(e.hostname),this.runLookup(e,r,n);return}let A;typeof o.port=="number"?A=`:${o.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${A}`)}}setRecords(e,r){var s;let n=Date.now(),i={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,m(this,mA)):o.ttl=m(this,mA);let A=(s=i.records[o.family])!=null?s:{ips:[]};A.ips.push(o),i.records[o.family]=A}m(this,Ao).set(e.hostname,i)}getHandler(e,r){return new kS(this,e,r)}};mA=new WeakMap,Kc=new WeakMap,Ao=new WeakMap,tl=new WeakSet,$J=function(e,r,n){fpe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let o=new Map;for(let A of s)o.set(`${A.address}:${A.family}`,A);n(null,o.values())})},KJ=function(e,r,n){var c;let i=null,{records:s,offset:o}=r,A;if(this.dualStack?(n==null&&(o==null||o===ZJ?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?A=s[n]:A=s[n===4?6:4]):A=s[n],A==null||A.ips.length===0)return i;A.offset==null||A.offset===ZJ?A.offset=0:A.offset++;let a=A.offset%A.ips.length;return i=(c=A.ips[a])!=null?c:null,i==null?i:Date.now()-i.timestamp>i.ttl?(A.ips.splice(a,1),this.pick(e,r,n)):i};var IA,Xc,Th,BA,el,kS=class extends dpe{constructor(r,{origin:n,handler:i,dispatch:s},o){super(i);q(this,IA,null);q(this,Xc,null);q(this,Th,null);q(this,BA,null);q(this,el,null);U(this,el,n),U(this,BA,i),U(this,Xc,{...o}),U(this,IA,r),U(this,Th,s)}onError(r){switch(r.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(m(this,IA).dualStack){m(this,IA).runLookup(m(this,el),m(this,Xc),(n,i)=>{if(n)return m(this,BA).onError(n);let s={...m(this,Xc),origin:i};m(this,Th).call(this,s,this)});return}m(this,BA).onError(r);return}case"ENOTFOUND":m(this,IA).deleteRecord(m(this,el));default:m(this,BA).onError(r);break}}};IA=new WeakMap,Xc=new WeakMap,Th=new WeakMap,BA=new WeakMap,el=new WeakMap;XJ.exports=t=>{var s,o,A,a,c,l,u;if((t==null?void 0:t.maxTTL)!=null&&(typeof(t==null?void 0:t.maxTTL)!="number"||(t==null?void 0:t.maxTTL)<0))throw new $c("Invalid maxTTL. Must be a positive number");if((t==null?void 0:t.maxItems)!=null&&(typeof(t==null?void 0:t.maxItems)!="number"||(t==null?void 0:t.maxItems)<1))throw new $c("Invalid maxItems. Must be a positive number and greater than zero");if((t==null?void 0:t.affinity)!=null&&(t==null?void 0:t.affinity)!==4&&(t==null?void 0:t.affinity)!==6)throw new $c("Invalid affinity. Must be either 4 or 6");if((t==null?void 0:t.dualStack)!=null&&typeof(t==null?void 0:t.dualStack)!="boolean")throw new $c("Invalid dualStack. Must be a boolean");if((t==null?void 0:t.lookup)!=null&&typeof(t==null?void 0:t.lookup)!="function")throw new $c("Invalid lookup. Must be a function");if((t==null?void 0:t.pick)!=null&&typeof(t==null?void 0:t.pick)!="function")throw new $c("Invalid pick. Must be a function");let e=(s=t==null?void 0:t.dualStack)!=null?s:!0,r;e?r=(o=t==null?void 0:t.affinity)!=null?o:null:r=(A=t==null?void 0:t.affinity)!=null?A:4;let n={maxTTL:(a=t==null?void 0:t.maxTTL)!=null?a:1e4,lookup:(c=t==null?void 0:t.lookup)!=null?c:null,pick:(l=t==null?void 0:t.pick)!=null?l:null,dualStack:e,affinity:r,maxItems:(u=t==null?void 0:t.maxItems)!=null?u:1/0},i=new vS(n);return h=>function(d,E){let p=d.origin.constructor===URL?d.origin:new URL(d.origin);return hpe(p.hostname)!==0?h(d,E):(i.runLookup(p,d,(C,w)=>{if(C)return E.onError(C);let R=null;R={...d,servername:p.hostname,origin:w,headers:{host:p.hostname,...d.headers}},h(R,i.getHandler({origin:p,dispatch:h,handler:E},d))}),!0)}}});var QA=g((t1e,A5)=>{"use strict";var{kConstruct:Epe}=it(),{kEnumerableProperty:rl}=we(),{iteratorMixin:ppe,isValidHeaderName:Mh,isValidHeaderValue:r5}=Gr(),{webidl:ve}=Gt(),_S=require("assert"),Fp=require("util"),Qt=Symbol("headers map"),Vr=Symbol("headers map sorted");function t5(t){return t===10||t===13||t===9||t===32}function n5(t){let e=0,r=t.length;for(;r>e&&t5(t.charCodeAt(r-1));)--r;for(;r>e&&t5(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function i5(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw ve.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});DS(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)DS(t,r[n],e[r[n]])}else throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function DS(t,e,r){if(r=n5(r),Mh(e)){if(!r5(r))throw ve.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(o5(t)==="immutable")throw new TypeError("immutable");return xS(t).append(e,r,!1)}function s5(t,e){return t[0]<e[0]?-1:1}var Np=class t{constructor(e){se(this,"cookies",null);e instanceof t?(this[Qt]=new Map(e[Qt]),this[Vr]=e[Vr],this.cookies=e.cookies===null?null:[...e.cookies]):(this[Qt]=new Map(e),this[Vr]=null)}contains(e,r){return this[Qt].has(r?e:e.toLowerCase())}clear(){this[Qt].clear(),this[Vr]=null,this.cookies=null}append(e,r,n){var o;this[Vr]=null;let i=n?e:e.toLowerCase(),s=this[Qt].get(i);if(s){let A=i==="cookie"?"; ":", ";this[Qt].set(i,{name:s.name,value:`${s.value}${A}${r}`})}else this[Qt].set(i,{name:e,value:r});i==="set-cookie"&&((o=this.cookies)!=null?o:this.cookies=[]).push(r)}set(e,r,n){this[Vr]=null;let i=n?e:e.toLowerCase();i==="set-cookie"&&(this.cookies=[r]),this[Qt].set(i,{name:e,value:r})}delete(e,r){this[Vr]=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this[Qt].delete(e)}get(e,r){var n,i;return(i=(n=this[Qt].get(r?e:e.toLowerCase()))==null?void 0:n.value)!=null?i:null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this[Qt])yield[e,r]}get entries(){let e={};if(this[Qt].size!==0)for(let{name:r,value:n}of this[Qt].values())e[r]=n;return e}rawValues(){return this[Qt].values()}get entriesList(){let e=[];if(this[Qt].size!==0)for(let{0:r,1:{name:n,value:i}}of this[Qt])if(r==="set-cookie")for(let s of this.cookies)e.push([n,s]);else e.push([n,i]);return e}toSortedArray(){let e=this[Qt].size,r=new Array(e);if(e<=32){if(e===0)return r;let n=this[Qt][Symbol.iterator](),i=n.next().value;r[0]=[i[0],i[1].value],_S(i[1].value!==null);for(let s=1,o=0,A=0,a=0,c=0,l,u;s<e;++s){for(u=n.next().value,l=r[s]=[u[0],u[1].value],_S(l[1]!==null),a=0,A=s;a<A;)c=a+(A-a>>1),r[c][0]<=l[0]?a=c+1:A=c;if(s!==c){for(o=s;o>a;)r[o]=r[--o];r[a]=l}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:i,1:{value:s}}of this[Qt])r[n++]=[i,s],_S(s!==null);return r.sort(s5)}}},co,kt,ao=class ao{constructor(e=void 0){q(this,co);q(this,kt);ve.util.markAsUncloneable(this),e!==Epe&&(U(this,kt,new Np),U(this,co,"none"),e!==void 0&&(e=ve.converters.HeadersInit(e,"Headers contructor","init"),i5(this,e)))}append(e,r){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=ve.converters.ByteString(e,n,"name"),r=ve.converters.ByteString(r,n,"value"),DS(this,e,r)}delete(e){if(ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.delete"),e=ve.converters.ByteString(e,"Headers.delete","name"),!Mh(e))throw ve.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(m(this,co)==="immutable")throw new TypeError("immutable");m(this,kt).contains(e,!1)&&m(this,kt).delete(e,!1)}get(e){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=ve.converters.ByteString(e,r,"name"),!Mh(e))throw ve.errors.invalidArgument({prefix:r,value:e,type:"header name"});return m(this,kt).get(e,!1)}has(e){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=ve.converters.ByteString(e,r,"name"),!Mh(e))throw ve.errors.invalidArgument({prefix:r,value:e,type:"header name"});return m(this,kt).contains(e,!1)}set(e,r){ve.brandCheck(this,ao),ve.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=ve.converters.ByteString(e,n,"name"),r=ve.converters.ByteString(r,n,"value"),r=n5(r),Mh(e)){if(!r5(r))throw ve.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(m(this,co)==="immutable")throw new TypeError("immutable");m(this,kt).set(e,r,!1)}getSetCookie(){ve.brandCheck(this,ao);let e=m(this,kt).cookies;return e?[...e]:[]}get[Vr](){if(m(this,kt)[Vr])return m(this,kt)[Vr];let e=[],r=m(this,kt).toSortedArray(),n=m(this,kt).cookies;if(n===null||n.length===1)return m(this,kt)[Vr]=r;for(let i=0;i<r.length;++i){let{0:s,1:o}=r[i];if(s==="set-cookie")for(let A=0;A<n.length;++A)e.push([s,n[A]]);else e.push([s,o])}return m(this,kt)[Vr]=e}[Fp.inspect.custom](e,r){var n;return(n=r.depth)!=null||(r.depth=e),`Headers ${Fp.formatWithOptions(r,m(this,kt).entries)}`}static getHeadersGuard(e){return m(e,co)}static setHeadersGuard(e,r){U(e,co,r)}static getHeadersList(e){return m(e,kt)}static setHeadersList(e,r){U(e,kt,r)}};co=new WeakMap,kt=new WeakMap;var Gn=ao,{getHeadersGuard:o5,setHeadersGuard:Cpe,getHeadersList:xS,setHeadersList:mpe}=Gn;Reflect.deleteProperty(Gn,"getHeadersGuard");Reflect.deleteProperty(Gn,"setHeadersGuard");Reflect.deleteProperty(Gn,"getHeadersList");Reflect.deleteProperty(Gn,"setHeadersList");ppe("Headers",Gn,Vr,0,1);Object.defineProperties(Gn.prototype,{append:rl,delete:rl,get:rl,has:rl,set:rl,getSetCookie:rl,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[Fp.inspect.custom]:{enumerable:!1}});ve.converters.HeadersInit=function(t,e,r){if(ve.util.Type(t)==="Object"){let n=Reflect.get(t,Symbol.iterator);if(!Fp.types.isProxy(t)&&n===Gn.prototype.entries)try{return xS(t).entriesList}catch{}return typeof n=="function"?ve.converters["sequence<sequence<ByteString>>"](t,e,r,n.bind(t)):ve.converters["record<ByteString, ByteString>"](t,e,r)}throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};A5.exports={fill:i5,compareHeaderName:s5,Headers:Gn,HeadersList:Np,getHeadersGuard:o5,setHeadersGuard:Cpe,setHeadersList:mpe,getHeadersList:xS}});var Uh=g((n1e,m5)=>{"use strict";var{Headers:f5,HeadersList:a5,fill:Ipe,getHeadersGuard:Bpe,setHeadersGuard:d5,setHeadersList:g5}=QA(),{extractBody:c5,cloneBody:Qpe,mixinBody:ype,hasFinalizationRegistry:E5,streamRegistry:p5,bodyUnusable:wpe}=Rc(),FS=we(),l5=require("util"),{kEnumerableProperty:Jr}=FS,{isValidReasonPhrase:bpe,isCancelled:Spe,isAborted:Rpe,isBlobLike:vpe,serializeJavascriptValueToJSONString:kpe,isErrorLike:_pe,isomorphicEncode:Dpe,environmentSettingsObject:xpe}=Gr(),{redirectStatusSet:Fpe,nullBodyStatus:Npe}=sh(),{kState:st,kHeaders:as}=Ws(),{webidl:Qe}=Gt(),{FormData:Tpe}=uh(),{URLSerializer:u5}=Sr(),{kConstruct:Mp}=it(),NS=require("assert"),{types:Mpe}=require("util"),Lpe=new TextEncoder("utf-8"),yA=class t{static error(){return Lh(Lp(),"immutable")}static json(e,r={}){Qe.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=Qe.converters.ResponseInit(r));let n=Lpe.encode(kpe(e)),i=c5(n),s=Lh(nl({}),"response");return h5(s,r,{body:i[0],type:"application/json"}),s}static redirect(e,r=302){Qe.argumentLengthCheck(arguments,1,"Response.redirect"),e=Qe.converters.USVString(e),r=Qe.converters["unsigned short"](r);let n;try{n=new URL(e,xpe.settingsObject.baseUrl)}catch(o){throw new TypeError(`Failed to parse URL from ${e}`,{cause:o})}if(!Fpe.has(r))throw new RangeError(`Invalid status code ${r}`);let i=Lh(nl({}),"immutable");i[st].status=r;let s=Dpe(u5(n));return i[st].headersList.append("location",s,!0),i}constructor(e=null,r={}){if(Qe.util.markAsUncloneable(this),e===Mp)return;e!==null&&(e=Qe.converters.BodyInit(e)),r=Qe.converters.ResponseInit(r),this[st]=nl({}),this[as]=new f5(Mp),d5(this[as],"response"),g5(this[as],this[st].headersList);let n=null;if(e!=null){let[i,s]=c5(e);n={body:i,type:s}}h5(this,r,n)}get type(){return Qe.brandCheck(this,t),this[st].type}get url(){var n;Qe.brandCheck(this,t);let e=this[st].urlList,r=(n=e[e.length-1])!=null?n:null;return r===null?"":u5(r,!0)}get redirected(){return Qe.brandCheck(this,t),this[st].urlList.length>1}get status(){return Qe.brandCheck(this,t),this[st].status}get ok(){return Qe.brandCheck(this,t),this[st].status>=200&&this[st].status<=299}get statusText(){return Qe.brandCheck(this,t),this[st].statusText}get headers(){return Qe.brandCheck(this,t),this[as]}get body(){return Qe.brandCheck(this,t),this[st].body?this[st].body.stream:null}get bodyUsed(){return Qe.brandCheck(this,t),!!this[st].body&&FS.isDisturbed(this[st].body.stream)}clone(){var r;if(Qe.brandCheck(this,t),wpe(this))throw Qe.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=TS(this[st]);return E5&&((r=this[st].body)!=null&&r.stream)&&p5.register(this,new WeakRef(this[st].body.stream)),Lh(e,Bpe(this[as]))}[l5.inspect.custom](e,r){var i;r.depth===null&&(r.depth=2),(i=r.colors)!=null||(r.colors=!0);let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${l5.formatWithOptions(r,n)}`}};ype(yA);Object.defineProperties(yA.prototype,{type:Jr,url:Jr,status:Jr,ok:Jr,redirected:Jr,statusText:Jr,headers:Jr,clone:Jr,body:Jr,bodyUsed:Jr,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(yA,{json:Jr,redirect:Jr,error:Jr});function TS(t){if(t.internalResponse)return C5(TS(t.internalResponse),t.type);let e=nl({...t,body:null});return t.body!=null&&(e.body=Qpe(e,t.body)),e}function nl(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t!=null&&t.headersList?new a5(t==null?void 0:t.headersList):new a5,urlList:t!=null&&t.urlList?[...t.urlList]:[]}}function Lp(t){let e=_pe(t);return nl({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}function Upe(t){return t.type==="error"&&t.status===0}function Tp(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,i){return NS(!(n in e)),r[n]=i,!0}})}function C5(t,e){if(e==="basic")return Tp(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Tp(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Tp(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Tp(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});NS(!1)}function Ope(t,e=null){return NS(Spe(t)),Rpe(t)?Lp(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):Lp(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}function h5(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!bpe(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[st].status=e.status),"statusText"in e&&e.statusText!=null&&(t[st].statusText=e.statusText),"headers"in e&&e.headers!=null&&Ipe(t[as],e.headers),r){if(Npe.includes(t.status))throw Qe.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[st].body=r.body,r.type!=null&&!t[st].headersList.contains("content-type",!0)&&t[st].headersList.append("content-type",r.type,!0)}}function Lh(t,e){var n;let r=new yA(Mp);return r[st]=t,r[as]=new f5(Mp),g5(r[as],t.headersList),d5(r[as],e),E5&&((n=t.body)!=null&&n.stream)&&p5.register(r,new WeakRef(t.body.stream)),r}Qe.converters.ReadableStream=Qe.interfaceConverter(ReadableStream);Qe.converters.FormData=Qe.interfaceConverter(Tpe);Qe.converters.URLSearchParams=Qe.interfaceConverter(URLSearchParams);Qe.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?Qe.converters.USVString(t,e,r):vpe(t)?Qe.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Mpe.isArrayBuffer(t)?Qe.converters.BufferSource(t,e,r):FS.isFormDataLike(t)?Qe.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?Qe.converters.URLSearchParams(t,e,r):Qe.converters.DOMString(t,e,r)};Qe.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?Qe.converters.ReadableStream(t,e,r):t!=null&&t[Symbol.asyncIterator]?t:Qe.converters.XMLHttpRequestBodyInit(t,e,r)};Qe.converters.ResponseInit=Qe.dictionaryConverter([{key:"status",converter:Qe.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:Qe.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:Qe.converters.HeadersInit}]);m5.exports={isNetworkError:Upe,makeNetworkError:Lp,makeResponse:nl,makeAppropriateNetworkError:Ope,filterResponse:C5,Response:yA,cloneResponse:TS,fromInnerResponse:Lh}});var y5=g((i1e,Q5)=>{"use strict";var{kConnected:I5,kSize:B5}=it(),MS=class{constructor(e){this.value=e}deref(){return this.value[I5]===0&&this.value[B5]===0?void 0:this.value}},LS=class{constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[I5]===0&&e[B5]===0&&this.finalizer(r)})}unregister(e){}};Q5.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:MS,FinalizationRegistry:LS}):{WeakRef,FinalizationRegistry}}});var il=g((s1e,U5)=>{"use strict";var{extractBody:Ppe,mixinBody:Hpe,cloneBody:Gpe,bodyUnusable:w5}=Rc(),{Headers:F5,fill:qpe,HeadersList:Hp,setHeadersGuard:OS,getHeadersGuard:Ype,setHeadersList:N5,getHeadersList:b5}=QA(),{FinalizationRegistry:Vpe}=y5()(),Op=we(),S5=require("util"),{isValidHTTPToken:Jpe,sameOrigin:R5,environmentSettingsObject:Up}=Gr(),{forbiddenMethodsSet:Wpe,corsSafeListedMethodsSet:jpe,referrerPolicy:zpe,requestRedirect:Zpe,requestMode:$pe,requestCredentials:Kpe,requestCache:Xpe,requestDuplex:eCe}=sh(),{kEnumerableProperty:yt,normalizedMethodRecordsBase:tCe,normalizedMethodRecords:rCe}=Op,{kHeaders:Wr,kSignal:Pp,kState:Xe,kDispatcher:US}=Ws(),{webidl:he}=Gt(),{URLSerializer:nCe}=Sr(),{kConstruct:Gp}=it(),iCe=require("assert"),{getMaxListeners:v5,setMaxListeners:k5,getEventListeners:sCe,defaultMaxListeners:_5}=require("events"),oCe=Symbol("abortController"),T5=new Vpe(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),qp=new WeakMap;function D5(t){return e;function e(){let r=t.deref();if(r!==void 0){T5.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=qp.get(r.signal);if(n!==void 0){if(n.size!==0){for(let i of n){let s=i.deref();s!==void 0&&s.abort(this.reason)}n.clear()}qp.delete(r.signal)}}}}var x5=!1,lo=class t{constructor(e,r={}){var C,w,R;if(he.util.markAsUncloneable(this),e===Gp)return;let n="Request constructor";he.argumentLengthCheck(arguments,1,n),e=he.converters.RequestInfo(e,n,"input"),r=he.converters.RequestInit(r,n,"init");let i=null,s=null,o=Up.settingsObject.baseUrl,A=null;if(typeof e=="string"){this[US]=r.dispatcher;let S;try{S=new URL(e,o)}catch(_){throw new TypeError("Failed to parse URL from "+e,{cause:_})}if(S.username||S.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);i=Yp({urlList:[S]}),s="cors"}else this[US]=r.dispatcher||e[US],iCe(e instanceof t),i=e[Xe],A=e[Pp];let a=Up.settingsObject.origin,c="client";if(((w=(C=i.window)==null?void 0:C.constructor)==null?void 0:w.name)==="EnvironmentSettingsObject"&&R5(i.window,a)&&(c=i.window),r.window!=null)throw new TypeError(`'window' option '${c}' must be null`);"window"in r&&(c="no-window"),i=Yp({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:Up.settingsObject,window:c,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});let l=Object.keys(r).length!==0;if(l&&(i.mode==="navigate"&&(i.mode="same-origin"),i.reloadNavigation=!1,i.historyNavigation=!1,i.origin="client",i.referrer="client",i.referrerPolicy="",i.url=i.urlList[i.urlList.length-1],i.urlList=[i.url]),r.referrer!==void 0){let S=r.referrer;if(S==="")i.referrer="no-referrer";else{let _;try{_=new URL(S,o)}catch(O){throw new TypeError(`Referrer "${S}" is not a valid URL.`,{cause:O})}_.protocol==="about:"&&_.hostname==="client"||a&&!R5(_,Up.settingsObject.baseUrl)?i.referrer="client":i.referrer=_}}r.referrerPolicy!==void 0&&(i.referrerPolicy=r.referrerPolicy);let u;if(r.mode!==void 0?u=r.mode:u=s,u==="navigate")throw he.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(u!=null&&(i.mode=u),r.credentials!==void 0&&(i.credentials=r.credentials),r.cache!==void 0&&(i.cache=r.cache),i.cache==="only-if-cached"&&i.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(i.redirect=r.redirect),r.integrity!=null&&(i.integrity=String(r.integrity)),r.keepalive!==void 0&&(i.keepalive=!!r.keepalive),r.method!==void 0){let S=r.method,_=rCe[S];if(_!==void 0)i.method=_;else{if(!Jpe(S))throw new TypeError(`'${S}' is not a valid HTTP method.`);let O=S.toUpperCase();if(Wpe.has(O))throw new TypeError(`'${S}' HTTP method is unsupported.`);S=(R=tCe[O])!=null?R:S,i.method=S}!x5&&i.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),x5=!0)}r.signal!==void 0&&(A=r.signal),this[Xe]=i;let h=new AbortController;if(this[Pp]=h.signal,A!=null){if(!A||typeof A.aborted!="boolean"||typeof A.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(A.aborted)h.abort(A.reason);else{this[oCe]=h;let S=new WeakRef(h),_=D5(S);try{(typeof v5=="function"&&v5(A)===_5||sCe(A,"abort").length>=_5)&&k5(1500,A)}catch{}Op.addAbortListener(A,_),T5.register(h,{signal:A,abort:_},_)}}if(this[Wr]=new F5(Gp),N5(this[Wr],i.headersList),OS(this[Wr],"request"),u==="no-cors"){if(!jpe.has(i.method))throw new TypeError(`'${i.method} is unsupported in no-cors mode.`);OS(this[Wr],"request-no-cors")}if(l){let S=b5(this[Wr]),_=r.headers!==void 0?r.headers:new Hp(S);if(S.clear(),_ instanceof Hp){for(let{name:O,value:N}of _.rawValues())S.append(O,N,!1);S.cookies=_.cookies}else qpe(this[Wr],_)}let f=e instanceof t?e[Xe].body:null;if((r.body!=null||f!=null)&&(i.method==="GET"||i.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let d=null;if(r.body!=null){let[S,_]=Ppe(r.body,i.keepalive);d=S,_&&!b5(this[Wr]).contains("content-type",!0)&&this[Wr].append("content-type",_)}let E=d!=null?d:f;if(E!=null&&E.source==null){if(d!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(i.mode!=="same-origin"&&i.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');i.useCORSPreflightFlag=!0}let p=E;if(d==null&&f!=null){if(w5(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let S=new TransformStream;f.stream.pipeThrough(S),p={source:f.source,length:f.length,stream:S.readable}}this[Xe].body=p}get method(){return he.brandCheck(this,t),this[Xe].method}get url(){return he.brandCheck(this,t),nCe(this[Xe].url)}get headers(){return he.brandCheck(this,t),this[Wr]}get destination(){return he.brandCheck(this,t),this[Xe].destination}get referrer(){return he.brandCheck(this,t),this[Xe].referrer==="no-referrer"?"":this[Xe].referrer==="client"?"about:client":this[Xe].referrer.toString()}get referrerPolicy(){return he.brandCheck(this,t),this[Xe].referrerPolicy}get mode(){return he.brandCheck(this,t),this[Xe].mode}get credentials(){return this[Xe].credentials}get cache(){return he.brandCheck(this,t),this[Xe].cache}get redirect(){return he.brandCheck(this,t),this[Xe].redirect}get integrity(){return he.brandCheck(this,t),this[Xe].integrity}get keepalive(){return he.brandCheck(this,t),this[Xe].keepalive}get isReloadNavigation(){return he.brandCheck(this,t),this[Xe].reloadNavigation}get isHistoryNavigation(){return he.brandCheck(this,t),this[Xe].historyNavigation}get signal(){return he.brandCheck(this,t),this[Pp]}get body(){return he.brandCheck(this,t),this[Xe].body?this[Xe].body.stream:null}get bodyUsed(){return he.brandCheck(this,t),!!this[Xe].body&&Op.isDisturbed(this[Xe].body.stream)}get duplex(){return he.brandCheck(this,t),"half"}clone(){if(he.brandCheck(this,t),w5(this))throw new TypeError("unusable");let e=M5(this[Xe]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=qp.get(this.signal);n===void 0&&(n=new Set,qp.set(this.signal,n));let i=new WeakRef(r);n.add(i),Op.addAbortListener(r.signal,D5(i))}return L5(e,r.signal,Ype(this[Wr]))}[S5.inspect.custom](e,r){var i;r.depth===null&&(r.depth=2),(i=r.colors)!=null||(r.colors=!0);let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${S5.formatWithOptions(r,n)}`}};Hpe(lo);function Yp(t){var e,r,n,i,s,o,A,a,c,l,u,h,f,d,E,p,C,w,R,S,_,O,N,V,M,j,k,ee,te,ye,v,y,x,F,T;return{method:(e=t.method)!=null?e:"GET",localURLsOnly:(r=t.localURLsOnly)!=null?r:!1,unsafeRequest:(n=t.unsafeRequest)!=null?n:!1,body:(i=t.body)!=null?i:null,client:(s=t.client)!=null?s:null,reservedClient:(o=t.reservedClient)!=null?o:null,replacesClientId:(A=t.replacesClientId)!=null?A:"",window:(a=t.window)!=null?a:"client",keepalive:(c=t.keepalive)!=null?c:!1,serviceWorkers:(l=t.serviceWorkers)!=null?l:"all",initiator:(u=t.initiator)!=null?u:"",destination:(h=t.destination)!=null?h:"",priority:(f=t.priority)!=null?f:null,origin:(d=t.origin)!=null?d:"client",policyContainer:(E=t.policyContainer)!=null?E:"client",referrer:(p=t.referrer)!=null?p:"client",referrerPolicy:(C=t.referrerPolicy)!=null?C:"",mode:(w=t.mode)!=null?w:"no-cors",useCORSPreflightFlag:(R=t.useCORSPreflightFlag)!=null?R:!1,credentials:(S=t.credentials)!=null?S:"same-origin",useCredentials:(_=t.useCredentials)!=null?_:!1,cache:(O=t.cache)!=null?O:"default",redirect:(N=t.redirect)!=null?N:"follow",integrity:(V=t.integrity)!=null?V:"",cryptoGraphicsNonceMetadata:(M=t.cryptoGraphicsNonceMetadata)!=null?M:"",parserMetadata:(j=t.parserMetadata)!=null?j:"",reloadNavigation:(k=t.reloadNavigation)!=null?k:!1,historyNavigation:(ee=t.historyNavigation)!=null?ee:!1,userActivation:(te=t.userActivation)!=null?te:!1,taintedOrigin:(ye=t.taintedOrigin)!=null?ye:!1,redirectCount:(v=t.redirectCount)!=null?v:0,responseTainting:(y=t.responseTainting)!=null?y:"basic",preventNoCacheCacheControlHeaderModification:(x=t.preventNoCacheCacheControlHeaderModification)!=null?x:!1,done:(F=t.done)!=null?F:!1,timingAllowFailed:(T=t.timingAllowFailed)!=null?T:!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new Hp(t.headersList):new Hp}}function M5(t){let e=Yp({...t,body:null});return t.body!=null&&(e.body=Gpe(e,t.body)),e}function L5(t,e,r){let n=new lo(Gp);return n[Xe]=t,n[Pp]=e,n[Wr]=new F5(Gp),N5(n[Wr],t.headersList),OS(n[Wr],r),n}Object.defineProperties(lo.prototype,{method:yt,url:yt,headers:yt,redirect:yt,clone:yt,signal:yt,duplex:yt,destination:yt,body:yt,bodyUsed:yt,isHistoryNavigation:yt,isReloadNavigation:yt,keepalive:yt,integrity:yt,cache:yt,credentials:yt,attribute:yt,referrerPolicy:yt,referrer:yt,mode:yt,[Symbol.toStringTag]:{value:"Request",configurable:!0}});he.converters.Request=he.interfaceConverter(lo);he.converters.RequestInfo=function(t,e,r){return typeof t=="string"?he.converters.USVString(t,e,r):t instanceof lo?he.converters.Request(t,e,r):he.converters.USVString(t,e,r)};he.converters.AbortSignal=he.interfaceConverter(AbortSignal);he.converters.RequestInit=he.dictionaryConverter([{key:"method",converter:he.converters.ByteString},{key:"headers",converter:he.converters.HeadersInit},{key:"body",converter:he.nullableConverter(he.converters.BodyInit)},{key:"referrer",converter:he.converters.USVString},{key:"referrerPolicy",converter:he.converters.DOMString,allowedValues:zpe},{key:"mode",converter:he.converters.DOMString,allowedValues:$pe},{key:"credentials",converter:he.converters.DOMString,allowedValues:Kpe},{key:"cache",converter:he.converters.DOMString,allowedValues:Xpe},{key:"redirect",converter:he.converters.DOMString,allowedValues:Zpe},{key:"integrity",converter:he.converters.DOMString},{key:"keepalive",converter:he.converters.boolean},{key:"signal",converter:he.nullableConverter(t=>he.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:he.converters.any},{key:"duplex",converter:he.converters.DOMString,allowedValues:eCe},{key:"dispatcher",converter:he.converters.any}]);U5.exports={Request:lo,makeRequest:Yp,fromInnerRequest:L5,cloneRequest:M5}});var Ph=g((o1e,X5)=>{"use strict";var{makeNetworkError:He,makeAppropriateNetworkError:Vp,filterResponse:PS,makeResponse:Jp,fromInnerResponse:ACe}=Uh(),{HeadersList:O5}=QA(),{Request:aCe,cloneRequest:cCe}=il(),uo=require("zlib"),{bytesMatch:lCe,makePolicyContainer:uCe,clonePolicyContainer:hCe,requestBadPort:fCe,TAOCheck:dCe,appendRequestOriginHeader:gCe,responseLocationURL:ECe,requestCurrentURL:Qi,setRequestReferrerPolicyOnRedirect:pCe,tryUpgradeRequestToAPotentiallyTrustworthyURL:CCe,createOpaqueTimingInfo:VS,appendFetchMetadata:mCe,corsCheck:ICe,crossOriginResourcePolicyCheck:BCe,determineRequestsReferrer:QCe,coarsenedSharedCurrentTime:Oh,createDeferredPromise:yCe,isBlobLike:wCe,sameOrigin:YS,isCancelled:wA,isAborted:P5,isErrorLike:bCe,fullyReadBody:SCe,readableStreamClose:RCe,isomorphicEncode:Wp,urlIsLocal:vCe,urlIsHttpHttpsScheme:JS,urlHasHttpsScheme:kCe,clampAndCoarsenConnectionTimingInfo:_Ce,simpleRangeHeaderValue:DCe,buildContentRange:xCe,createInflate:FCe,extractMimeType:NCe}=Gr(),{kState:Y5,kDispatcher:TCe}=Ws(),bA=require("assert"),{safelyExtractBody:WS,extractBody:H5}=Rc(),{redirectStatusSet:V5,nullBodyStatus:J5,safeMethodsSet:MCe,requestBodyHeader:LCe,subresourceSet:UCe}=sh(),OCe=require("events"),{Readable:PCe,pipeline:HCe,finished:GCe}=require("stream"),{addAbortListener:qCe,isErrored:YCe,isReadable:jp,bufferToLowerCasedHeaderName:G5}=we(),{dataURLProcessor:VCe,serializeAMimeType:JCe,minimizeSupportedMimeType:WCe}=Sr(),{getGlobalDispatcher:jCe}=kp(),{webidl:zCe}=Gt(),{STATUS_CODES:ZCe}=require("http"),$Ce=["GET","HEAD"],KCe=typeof __UNDICI_IS_NODE__!="undefined"||typeof esbuildDetection!="undefined"?"node":"undici",HS,zp=class extends OCe{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){var r;this.state==="ongoing"&&(this.state="terminated",(r=this.connection)==null||r.destroy(e),this.emit("terminated",e))}abort(e){var r;this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,(r=this.connection)==null||r.destroy(e),this.emit("terminated",e))}};function XCe(t){W5(t,"fetch")}function eme(t,e=void 0){var l;zCe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=yCe(),n;try{n=new aCe(t,e)}catch(u){return r.reject(u),r.promise}let i=n[Y5];if(n.signal.aborted)return GS(r,i,null,n.signal.reason),r.promise;let s=i.client.globalObject;((l=s==null?void 0:s.constructor)==null?void 0:l.name)==="ServiceWorkerGlobalScope"&&(i.serviceWorkers="none");let o=null,A=!1,a=null;return qCe(n.signal,()=>{A=!0,bA(a!=null),a.abort(n.signal.reason);let u=o==null?void 0:o.deref();GS(r,i,u,n.signal.reason)}),a=z5({request:i,processResponseEndOfBody:XCe,processResponse:u=>{if(!A){if(u.aborted){GS(r,i,o,a.serializedAbortReason);return}if(u.type==="error"){r.reject(new TypeError("fetch failed",{cause:u.error}));return}o=new WeakRef(ACe(u,"immutable")),r.resolve(o.deref()),r=null}},dispatcher:n[TCe]}),r.promise}function W5(t,e="other"){var s;if(t.type==="error"&&t.aborted||!((s=t.urlList)!=null&&s.length))return;let r=t.urlList[0],n=t.timingInfo,i=t.cacheState;JS(r)&&n!==null&&(t.timingAllowPassed||(n=VS({startTime:n.startTime}),i=""),n.endTime=Oh(),t.timingInfo=n,j5(n,r.href,e,globalThis,i))}var j5=performance.markResourceTiming;function GS(t,e,r,n){var s,o;if(t&&t.reject(n),e.body!=null&&jp((s=e.body)==null?void 0:s.stream)&&e.body.stream.cancel(n).catch(A=>{if(A.code!=="ERR_INVALID_STATE")throw A}),r==null)return;let i=r[Y5];i.body!=null&&jp((o=i.body)==null?void 0:o.stream)&&i.body.stream.cancel(n).catch(A=>{if(A.code!=="ERR_INVALID_STATE")throw A})}function z5({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:i,processResponseConsumeBody:s,useParallelQueue:o=!1,dispatcher:A=jCe()}){var f,d,E;bA(A);let a=null,c=!1;t.client!=null&&(a=t.client.globalObject,c=t.client.crossOriginIsolatedCapability);let l=Oh(c),u=VS({startTime:l}),h={controller:new zp(A),request:t,timingInfo:u,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:s,processResponseEndOfBody:i,taskDestination:a,crossOriginIsolatedCapability:c};return bA(!t.body||t.body.stream),t.window==="client"&&(t.window=((E=(d=(f=t.client)==null?void 0:f.globalObject)==null?void 0:d.constructor)==null?void 0:E.name)==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=hCe(t.client.policyContainer):t.policyContainer=uCe()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,UCe.has(t.destination),Z5(h).catch(p=>{h.controller.terminate(p)}),h.controller}async function Z5(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!vCe(Qi(r))&&(n=He("local URLs only")),CCe(r),fCe(r)==="blocked"&&(n=He("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=QCe(r)),n===null&&(n=await(async()=>{let s=Qi(r);return YS(s,r.url)&&r.responseTainting==="basic"||s.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await q5(t)):r.mode==="same-origin"?He('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?He('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await q5(t)):JS(Qi(r))?(r.responseTainting="cors",await $5(t)):He("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=PS(n,"basic"):r.responseTainting==="cors"?n=PS(n,"cors"):r.responseTainting==="opaque"?n=PS(n,"opaque"):bA(!1));let i=n.status===0?n:n.internalResponse;if(i.urlList.length===0&&i.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&i.status===206&&i.rangeRequested&&!r.headers.contains("range",!0)&&(n=i=He()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J5.includes(i.status))&&(i.body=null,t.controller.dump=!0),r.integrity){let s=A=>qS(t,He(A));if(r.responseTainting==="opaque"||n.body==null){s(n.error);return}let o=A=>{if(!lCe(A,r.integrity)){s("integrity mismatch");return}n.body=WS(A)[0],qS(t,n)};await SCe(n.body,o,s)}else qS(t,n)}function q5(t){if(wA(t)&&t.request.redirectCount===0)return Promise.resolve(Vp(t));let{request:e}=t,{protocol:r}=Qi(e);switch(r){case"about:":return Promise.resolve(He("about scheme is not supported"));case"blob:":{HS||(HS=require("buffer").resolveObjectURL);let n=Qi(e);if(n.search.length!==0)return Promise.resolve(He("NetworkError when attempting to fetch resource."));let i=HS(n.toString());if(e.method!=="GET"||!wCe(i))return Promise.resolve(He("invalid method"));let s=Jp(),o=i.size,A=Wp(`${o}`),a=i.type;if(e.headersList.contains("range",!0)){s.rangeRequested=!0;let c=e.headersList.get("range",!0),l=DCe(c,!0);if(l==="failure")return Promise.resolve(He("failed to fetch the data URL"));let{rangeStartValue:u,rangeEndValue:h}=l;if(u===null)u=o-h,h=u+h-1;else{if(u>=o)return Promise.resolve(He("Range start is greater than the blob's size."));(h===null||h>=o)&&(h=o-1)}let f=i.slice(u,h,a),d=H5(f);s.body=d[0];let E=Wp(`${f.size}`),p=xCe(u,h,o);s.status=206,s.statusText="Partial Content",s.headersList.set("content-length",E,!0),s.headersList.set("content-type",a,!0),s.headersList.set("content-range",p,!0)}else{let c=H5(i);s.statusText="OK",s.body=c[0],s.headersList.set("content-length",A,!0),s.headersList.set("content-type",a,!0)}return Promise.resolve(s)}case"data:":{let n=Qi(e),i=VCe(n);if(i==="failure")return Promise.resolve(He("failed to fetch the data URL"));let s=JCe(i.mimeType);return Promise.resolve(Jp({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:WS(i.body)[0]}))}case"file:":return Promise.resolve(He("not implemented... yet..."));case"http:":case"https:":return $5(t).catch(n=>He(n));default:return Promise.resolve(He("unknown scheme"))}}function tme(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}function qS(t,e){var s;let r=t.timingInfo,n=()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let a=e.cacheState,c=e.bodyInfo;e.timingAllowPassed||(r=VS(r),a="");let l=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){l=e.status;let u=NCe(e.headersList);u!=="failure"&&(c.contentType=WCe(u))}t.request.initiatorType!=null&&j5(r,t.request.url.href,t.request.initiatorType,globalThis,a,c,l)};let A=()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()};queueMicrotask(()=>A())};t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let i=e.type==="error"?e:(s=e.internalResponse)!=null?s:e;i.body==null?n():GCe(i.body.stream,()=>{n()})}async function $5(t){let e=t.request,r=null,n=null,i=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await K5(t),e.responseTainting==="cors"&&ICe(e,r)==="failure")return He("cors failure");dCe(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&BCe(e.origin,e.client,e.destination,n)==="blocked"?He("blocked"):(V5.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=He("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await rme(t,r):bA(!1)),r.timingInfo=i,r)}function rme(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,i;try{if(i=ECe(n,Qi(r).hash),i==null)return e}catch(o){return Promise.resolve(He(o))}if(!JS(i))return Promise.resolve(He("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(He("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(i.username||i.password)&&!YS(r,i))return Promise.resolve(He('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(i.username||i.password))return Promise.resolve(He('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(He());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!$Ce.includes(r.method)){r.method="GET",r.body=null;for(let o of LCe)r.headersList.delete(o)}YS(Qi(r),i)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(bA(r.body.source!=null),r.body=WS(r.body.source)[0]);let s=t.timingInfo;return s.redirectEndTime=s.postRedirectStartTime=Oh(t.crossOriginIsolatedCapability),s.redirectStartTime===0&&(s.redirectStartTime=s.startTime),r.urlList.push(i),pCe(r,n),Z5(t,!0)}async function K5(t,e=!1,r=!1){let n=t.request,i=null,s=null,o=null,A=null,a=!1;n.window==="no-window"&&n.redirect==="error"?(i=t,s=n):(s=cCe(n),i={...t},i.request=s);let c=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",l=s.body?s.body.length:null,u=null;if(s.body==null&&["POST","PUT"].includes(s.method)&&(u="0"),l!=null&&(u=Wp(`${l}`)),u!=null&&s.headersList.append("content-length",u,!0),l!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",Wp(s.referrer.href),!0),gCe(s),mCe(s),s.headersList.contains("user-agent",!0)||s.headersList.append("user-agent",KCe),s.cache==="default"&&(s.headersList.contains("if-modified-since",!0)||s.headersList.contains("if-none-match",!0)||s.headersList.contains("if-unmodified-since",!0)||s.headersList.contains("if-match",!0)||s.headersList.contains("if-range",!0))&&(s.cache="no-store"),s.cache==="no-cache"&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains("cache-control",!0)&&s.headersList.append("cache-control","max-age=0",!0),(s.cache==="no-store"||s.cache==="reload")&&(s.headersList.contains("pragma",!0)||s.headersList.append("pragma","no-cache",!0),s.headersList.contains("cache-control",!0)||s.headersList.append("cache-control","no-cache",!0)),s.headersList.contains("range",!0)&&s.headersList.append("accept-encoding","identity",!0),s.headersList.contains("accept-encoding",!0)||(kCe(Qi(s))?s.headersList.append("accept-encoding","br, gzip, deflate",!0):s.headersList.append("accept-encoding","gzip, deflate",!0)),s.headersList.delete("host",!0),A==null&&(s.cache="no-store"),s.cache!=="no-store"&&s.cache,o==null){if(s.cache==="only-if-cached")return He("only if cached");let h=await nme(i,c,r);!MCe.has(s.method)&&h.status>=200&&h.status<=399,a&&h.status,o==null&&(o=h)}if(o.urlList=[...s.urlList],s.headersList.contains("range",!0)&&(o.rangeRequested=!0),o.requestIncludesCredentials=c,o.status===407)return n.window==="no-window"?He():wA(t)?Vp(t):He("proxy authentication required");if(o.status===421&&!r&&(n.body==null||n.body.source!=null)){if(wA(t))return Vp(t);t.controller.connection.destroy(),o=await K5(t,e,!0)}return o}async function nme(t,e=!1,r=!1){bA(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(d,E=!0){var p;this.destroyed||(this.destroyed=!0,E&&((p=this.abort)==null||p.call(this,d!=null?d:new DOMException("The operation was aborted.","AbortError"))))}};let n=t.request,i=null,s=t.timingInfo;null==null&&(n.cache="no-store");let A=r?"yes":"no";n.mode;let a=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let d=async function*(C){var w;wA(t)||(yield C,(w=t.processRequestBodyChunkLength)==null||w.call(t,C.byteLength))},E=()=>{wA(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},p=C=>{wA(t)||(C.name==="AbortError"?t.controller.abort():t.controller.terminate(C))};a=(async function*(){try{for await(let C of n.body.stream)yield*d(C);E()}catch(C){p(C)}})()}try{let{body:d,status:E,statusText:p,headersList:C,socket:w}=await f({body:a});if(w)i=Jp({status:E,statusText:p,headersList:C,socket:w});else{let R=d[Symbol.asyncIterator]();t.controller.next=()=>R.next(),i=Jp({status:E,statusText:p,headersList:C})}}catch(d){return d.name==="AbortError"?(t.controller.connection.destroy(),Vp(t,d)):He(d)}let c=async()=>{await t.controller.resume()},l=d=>{wA(t)||t.controller.abort(d)},u=new ReadableStream({async start(d){t.controller.controller=d},async pull(d){await c(d)},async cancel(d){await l(d)},type:"bytes"});i.body={stream:u,source:null,length:null},t.controller.onAborted=h,t.controller.on("terminated",h),t.controller.resume=async()=>{var d;for(;;){let E,p;try{let{done:w,value:R}=await t.controller.next();if(P5(t))break;E=w?void 0:R}catch(w){t.controller.ended&&!s.encodedBodySize?E=void 0:(E=w,p=!0)}if(E===void 0){RCe(t.controller.controller),tme(t,i);return}if(s.decodedBodySize+=(d=E==null?void 0:E.byteLength)!=null?d:0,p){t.controller.terminate(E);return}let C=new Uint8Array(E);if(C.byteLength&&t.controller.controller.enqueue(C),YCe(u)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function h(d){P5(t)?(i.aborted=!0,jp(u)&&t.controller.controller.error(t.controller.serializedAbortReason)):jp(u)&&t.controller.controller.error(new TypeError("terminated",{cause:bCe(d)?d:void 0})),t.controller.connection.destroy()}return i;function f({body:d}){let E=Qi(n),p=t.controller.dispatcher;return new Promise((C,w)=>p.dispatch({path:E.pathname+E.search,origin:E.origin,method:n.method,body:p.isMockActive?n.body&&(n.body.source||n.body.stream):d,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(R){let{connection:S}=t.controller;s.finalConnectionTimingInfo=_Ce(void 0,s.postRedirectStartTime,t.crossOriginIsolatedCapability),S.destroyed?R(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",R),this.abort=S.abort=R),s.finalNetworkRequestStartTime=Oh(t.crossOriginIsolatedCapability)},onResponseStarted(){s.finalNetworkResponseStartTime=Oh(t.crossOriginIsolatedCapability)},onHeaders(R,S,_,O){if(R<200)return;let N="",V=new O5;for(let ee=0;ee<S.length;ee+=2)V.append(G5(S[ee]),S[ee+1].toString("latin1"),!0);N=V.get("location",!0),this.body=new PCe({read:_});let M=[],j=N&&n.redirect==="follow"&&V5.has(R);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!J5.includes(R)&&!j){let ee=V.get("content-encoding",!0),te=ee?ee.toLowerCase().split(","):[],ye=5;if(te.length>ye)return w(new Error(`too many content-encodings in response: ${te.length}, maximum allowed is ${ye}`)),!0;for(let v=te.length-1;v>=0;--v){let y=te[v].trim();if(y==="x-gzip"||y==="gzip")M.push(uo.createGunzip({flush:uo.constants.Z_SYNC_FLUSH,finishFlush:uo.constants.Z_SYNC_FLUSH}));else if(y==="deflate")M.push(FCe({flush:uo.constants.Z_SYNC_FLUSH,finishFlush:uo.constants.Z_SYNC_FLUSH}));else if(y==="br")M.push(uo.createBrotliDecompress({flush:uo.constants.BROTLI_OPERATION_FLUSH,finishFlush:uo.constants.BROTLI_OPERATION_FLUSH}));else{M.length=0;break}}}let k=this.onError.bind(this);return C({status:R,statusText:O,headersList:V,body:M.length?HCe(this.body,...M,ee=>{ee&&this.onError(ee)}).on("error",k):this.body.on("error",k)}),!0},onData(R){if(t.controller.dump)return;let S=R;return s.encodedBodySize+=S.byteLength,this.body.push(S)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.onAborted&&t.controller.off("terminated",t.controller.onAborted),t.controller.ended=!0,this.body.push(null)},onError(R){var S;this.abort&&t.controller.off("terminated",this.abort),(S=this.body)==null||S.destroy(R),t.controller.terminate(R),w(R)},onUpgrade(R,S,_){if(R!==101)return;let O=new O5;for(let N=0;N<S.length;N+=2)O.append(G5(S[N]),S[N+1].toString("latin1"),!0);return C({status:R,statusText:ZCe[R],headersList:O,socket:_}),!0}}))}}X5.exports={fetch:eme,Fetch:zp,fetching:z5,finalizeAndReportTiming:W5}});var jS=g((A1e,eW)=>{"use strict";eW.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var rW=g((a1e,tW)=>{"use strict";var{webidl:jr}=Gt(),Zp=Symbol("ProgressEvent state"),zS=class t extends Event{constructor(e,r={}){e=jr.converters.DOMString(e,"ProgressEvent constructor","type"),r=jr.converters.ProgressEventInit(r!=null?r:{}),super(e,r),this[Zp]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return jr.brandCheck(this,t),this[Zp].lengthComputable}get loaded(){return jr.brandCheck(this,t),this[Zp].loaded}get total(){return jr.brandCheck(this,t),this[Zp].total}};jr.converters.ProgressEventInit=jr.dictionaryConverter([{key:"lengthComputable",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:jr.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:jr.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:jr.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:jr.converters.boolean,defaultValue:()=>!1}]);tW.exports={ProgressEvent:zS}});var iW=g((c1e,nW)=>{"use strict";function ime(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}nW.exports={getEncoding:ime}});var hW=g((l1e,uW)=>{"use strict";var{kState:sl,kError:ZS,kResult:sW,kAborted:Hh,kLastProgressEventFired:$S}=jS(),{ProgressEvent:sme}=rW(),{getEncoding:oW}=iW(),{serializeAMimeType:ome,parseMIMEType:AW}=Sr(),{types:Ame}=require("util"),{StringDecoder:aW}=require("string_decoder"),{btoa:cW}=require("buffer"),ame={enumerable:!0,writable:!1,configurable:!1};function cme(t,e,r,n){if(t[sl]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[sl]="loading",t[sW]=null,t[ZS]=null;let s=e.stream().getReader(),o=[],A=s.read(),a=!0;(async()=>{for(;!t[Hh];)try{let{done:c,value:l}=await A;if(a&&!t[Hh]&&queueMicrotask(()=>{ho("loadstart",t)}),a=!1,!c&&Ame.isUint8Array(l))o.push(l),(t[$S]===void 0||Date.now()-t[$S]>=50)&&!t[Hh]&&(t[$S]=Date.now(),queueMicrotask(()=>{ho("progress",t)})),A=s.read();else if(c){queueMicrotask(()=>{t[sl]="done";try{let u=lme(o,r,e.type,n);if(t[Hh])return;t[sW]=u,ho("load",t)}catch(u){t[ZS]=u,ho("error",t)}t[sl]!=="loading"&&ho("loadend",t)});break}}catch(c){if(t[Hh])return;queueMicrotask(()=>{t[sl]="done",t[ZS]=c,ho("error",t),t[sl]!=="loading"&&ho("loadend",t)});break}})()}function ho(t,e){let r=new sme(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}function lme(t,e,r,n){switch(e){case"DataURL":{let i="data:",s=AW(r||"application/octet-stream");s!=="failure"&&(i+=ome(s)),i+=";base64,";let o=new aW("latin1");for(let A of t)i+=cW(o.write(A));return i+=cW(o.end()),i}case"Text":{let i="failure";if(n&&(i=oW(n)),i==="failure"&&r){let s=AW(r);s!=="failure"&&(i=oW(s.parameters.get("charset")))}return i==="failure"&&(i="UTF-8"),ume(t,i)}case"ArrayBuffer":return lW(t).buffer;case"BinaryString":{let i="",s=new aW("latin1");for(let o of t)i+=s.write(o);return i+=s.end(),i}}}function ume(t,e){let r=lW(t),n=hme(r),i=0;n!==null&&(e=n,i=n==="UTF-8"?3:2);let s=r.slice(i);return new TextDecoder(e).decode(s)}function hme(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}function lW(t){let e=t.reduce((n,i)=>n+i.byteLength,0),r=0;return t.reduce((n,i)=>(n.set(i,r),r+=i.byteLength,n),new Uint8Array(e))}uW.exports={staticPropertyDescriptors:ame,readOperation:cme,fireAProgressEvent:ho}});var EW=g((u1e,gW)=>{"use strict";var{staticPropertyDescriptors:ol,readOperation:$p,fireAProgressEvent:fW}=hW(),{kState:SA,kError:dW,kResult:Kp,kEvents:Ue,kAborted:fme}=jS(),{webidl:Ve}=Gt(),{kEnumerableProperty:_r}=we(),qn=class t extends EventTarget{constructor(){super(),this[SA]="empty",this[Kp]=null,this[dW]=null,this[Ue]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"ArrayBuffer")}readAsBinaryString(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"BinaryString")}readAsText(e,r=void 0){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=Ve.converters.Blob(e,{strict:!1}),r!==void 0&&(r=Ve.converters.DOMString(r,"FileReader.readAsText","encoding")),$p(this,e,"Text",r)}readAsDataURL(e){Ve.brandCheck(this,t),Ve.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=Ve.converters.Blob(e,{strict:!1}),$p(this,e,"DataURL")}abort(){if(this[SA]==="empty"||this[SA]==="done"){this[Kp]=null;return}this[SA]==="loading"&&(this[SA]="done",this[Kp]=null),this[fme]=!0,fW("abort",this),this[SA]!=="loading"&&fW("loadend",this)}get readyState(){switch(Ve.brandCheck(this,t),this[SA]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return Ve.brandCheck(this,t),this[Kp]}get error(){return Ve.brandCheck(this,t),this[dW]}get onloadend(){return Ve.brandCheck(this,t),this[Ue].loadend}set onloadend(e){Ve.brandCheck(this,t),this[Ue].loadend&&this.removeEventListener("loadend",this[Ue].loadend),typeof e=="function"?(this[Ue].loadend=e,this.addEventListener("loadend",e)):this[Ue].loadend=null}get onerror(){return Ve.brandCheck(this,t),this[Ue].error}set onerror(e){Ve.brandCheck(this,t),this[Ue].error&&this.removeEventListener("error",this[Ue].error),typeof e=="function"?(this[Ue].error=e,this.addEventListener("error",e)):this[Ue].error=null}get onloadstart(){return Ve.brandCheck(this,t),this[Ue].loadstart}set onloadstart(e){Ve.brandCheck(this,t),this[Ue].loadstart&&this.removeEventListener("loadstart",this[Ue].loadstart),typeof e=="function"?(this[Ue].loadstart=e,this.addEventListener("loadstart",e)):this[Ue].loadstart=null}get onprogress(){return Ve.brandCheck(this,t),this[Ue].progress}set onprogress(e){Ve.brandCheck(this,t),this[Ue].progress&&this.removeEventListener("progress",this[Ue].progress),typeof e=="function"?(this[Ue].progress=e,this.addEventListener("progress",e)):this[Ue].progress=null}get onload(){return Ve.brandCheck(this,t),this[Ue].load}set onload(e){Ve.brandCheck(this,t),this[Ue].load&&this.removeEventListener("load",this[Ue].load),typeof e=="function"?(this[Ue].load=e,this.addEventListener("load",e)):this[Ue].load=null}get onabort(){return Ve.brandCheck(this,t),this[Ue].abort}set onabort(e){Ve.brandCheck(this,t),this[Ue].abort&&this.removeEventListener("abort",this[Ue].abort),typeof e=="function"?(this[Ue].abort=e,this.addEventListener("abort",e)):this[Ue].abort=null}};qn.EMPTY=qn.prototype.EMPTY=0;qn.LOADING=qn.prototype.LOADING=1;qn.DONE=qn.prototype.DONE=2;Object.defineProperties(qn.prototype,{EMPTY:ol,LOADING:ol,DONE:ol,readAsArrayBuffer:_r,readAsBinaryString:_r,readAsText:_r,readAsDataURL:_r,abort:_r,readyState:_r,result:_r,error:_r,onloadstart:_r,onprogress:_r,onload:_r,onabort:_r,onerror:_r,onloadend:_r,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(qn,{EMPTY:ol,LOADING:ol,DONE:ol});gW.exports={FileReader:qn}});var Xp=g((h1e,pW)=>{"use strict";pW.exports={kConstruct:it().kConstruct}});var IW=g((f1e,mW)=>{"use strict";var dme=require("assert"),{URLSerializer:CW}=Sr(),{isValidHeaderName:gme}=Gr();function Eme(t,e,r=!1){let n=CW(t,r),i=CW(e,r);return n===i}function pme(t){dme(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),gme(r)&&e.push(r);return e}mW.exports={urlEquals:Eme,getFieldValues:pme}});var wW=g((d1e,yW)=>{"use strict";var{kConstruct:Cme}=Xp(),{urlEquals:mme,getFieldValues:KS}=IW(),{kEnumerableProperty:RA,isDisturbed:Ime}=we(),{webidl:ae}=Gt(),{Response:Bme,cloneResponse:Qme,fromInnerResponse:yme}=Uh(),{Request:cs,fromInnerRequest:wme}=il(),{kState:Yn}=Ws(),{fetching:bme}=Ph(),{urlIsHttpHttpsScheme:eC,createDeferredPromise:Al,readAllBytes:Sme}=Gr(),XS=require("assert"),yi,qt,tC,al,BW,eR,ls=class ls{constructor(){q(this,qt);q(this,yi);arguments[0]!==Cme&&ae.illegalConstructor(),ae.util.markAsUncloneable(this),U(this,yi,arguments[1])}async match(e,r={}){ae.brandCheck(this,ls);let n="Cache.match";ae.argumentLengthCheck(arguments,1,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.CacheQueryOptions(r,n,"options");let i=ke(this,qt,eR).call(this,e,r,1);if(i.length!==0)return i[0]}async matchAll(e=void 0,r={}){ae.brandCheck(this,ls);let n="Cache.matchAll";return e!==void 0&&(e=ae.converters.RequestInfo(e,n,"request")),r=ae.converters.CacheQueryOptions(r,n,"options"),ke(this,qt,eR).call(this,e,r)}async add(e){ae.brandCheck(this,ls);let r="Cache.add";ae.argumentLengthCheck(arguments,1,r),e=ae.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){ae.brandCheck(this,ls);let r="Cache.addAll";ae.argumentLengthCheck(arguments,1,r);let n=[],i=[];for(let h of e){if(h===void 0)throw ae.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(h=ae.converters.RequestInfo(h),typeof h=="string")continue;let f=h[Yn];if(!eC(f.url)||f.method!=="GET")throw ae.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let s=[];for(let h of e){let f=new cs(h)[Yn];if(!eC(f.url))throw ae.errors.exception({header:r,message:"Expected http/s scheme."});f.initiator="fetch",f.destination="subresource",i.push(f);let d=Al();s.push(bme({request:f,processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)d.reject(ae.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let p=KS(E.headersList.get("vary"));for(let C of p)if(C==="*"){d.reject(ae.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let w of s)w.abort();return}}},processResponseEndOfBody(E){if(E.aborted){d.reject(new DOMException("aborted","AbortError"));return}d.resolve(E)}})),n.push(d.promise)}let A=await Promise.all(n),a=[],c=0;for(let h of A){let f={type:"put",request:i[c],response:h};a.push(f),c++}let l=Al(),u=null;try{ke(this,qt,tC).call(this,a)}catch(h){u=h}return queueMicrotask(()=>{u===null?l.resolve(void 0):l.reject(u)}),l.promise}async put(e,r){ae.brandCheck(this,ls);let n="Cache.put";ae.argumentLengthCheck(arguments,2,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.Response(r,n,"response");let i=null;if(e instanceof cs?i=e[Yn]:i=new cs(e)[Yn],!eC(i.url)||i.method!=="GET")throw ae.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let s=r[Yn];if(s.status===206)throw ae.errors.exception({header:n,message:"Got 206 status"});if(s.headersList.contains("vary")){let f=KS(s.headersList.get("vary"));for(let d of f)if(d==="*")throw ae.errors.exception({header:n,message:"Got * vary field value"})}if(s.body&&(Ime(s.body.stream)||s.body.stream.locked))throw ae.errors.exception({header:n,message:"Response body is locked or disturbed"});let o=Qme(s),A=Al();if(s.body!=null){let d=s.body.stream.getReader();Sme(d).then(A.resolve,A.reject)}else A.resolve(void 0);let a=[],c={type:"put",request:i,response:o};a.push(c);let l=await A.promise;o.body!=null&&(o.body.source=l);let u=Al(),h=null;try{ke(this,qt,tC).call(this,a)}catch(f){h=f}return queueMicrotask(()=>{h===null?u.resolve():u.reject(h)}),u.promise}async delete(e,r={}){ae.brandCheck(this,ls);let n="Cache.delete";ae.argumentLengthCheck(arguments,1,n),e=ae.converters.RequestInfo(e,n,"request"),r=ae.converters.CacheQueryOptions(r,n,"options");let i=null;if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return!1}else XS(typeof e=="string"),i=new cs(e)[Yn];let s=[],o={type:"delete",request:i,options:r};s.push(o);let A=Al(),a=null,c;try{c=ke(this,qt,tC).call(this,s)}catch(l){a=l}return queueMicrotask(()=>{a===null?A.resolve(!!(c!=null&&c.length)):A.reject(a)}),A.promise}async keys(e=void 0,r={}){ae.brandCheck(this,ls);let n="Cache.keys";e!==void 0&&(e=ae.converters.RequestInfo(e,n,"request")),r=ae.converters.CacheQueryOptions(r,n,"options");let i=null;if(e!==void 0)if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new cs(e)[Yn]);let s=Al(),o=[];if(e===void 0)for(let A of m(this,yi))o.push(A[0]);else{let A=ke(this,qt,al).call(this,i,r);for(let a of A)o.push(a[0])}return queueMicrotask(()=>{let A=[];for(let a of o){let c=wme(a,new AbortController().signal,"immutable");A.push(c)}s.resolve(Object.freeze(A))}),s.promise}};yi=new WeakMap,qt=new WeakSet,tC=function(e){let r=m(this,yi),n=[...r],i=[],s=[];try{for(let o of e){if(o.type!=="delete"&&o.type!=="put")throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(o.type==="delete"&&o.response!=null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(ke(this,qt,al).call(this,o.request,o.options,i).length)throw new DOMException("???","InvalidStateError");let A;if(o.type==="delete"){if(A=ke(this,qt,al).call(this,o.request,o.options),A.length===0)return[];for(let a of A){let c=r.indexOf(a);XS(c!==-1),r.splice(c,1)}}else if(o.type==="put"){if(o.response==null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=o.request;if(!eC(a.url))throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(o.options!=null)throw ae.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});A=ke(this,qt,al).call(this,o.request);for(let c of A){let l=r.indexOf(c);XS(l!==-1),r.splice(l,1)}r.push([o.request,o.response]),i.push([o.request,o.response])}s.push([o.request,o.response])}return s}catch(o){throw m(this,yi).length=0,U(this,yi,n),o}},al=function(e,r,n){let i=[],s=n!=null?n:m(this,yi);for(let o of s){let[A,a]=o;ke(this,qt,BW).call(this,e,A,a,r)&&i.push(o)}return i},BW=function(e,r,n=null,i){let s=new URL(e.url),o=new URL(r.url);if(i!=null&&i.ignoreSearch&&(o.search="",s.search=""),!mme(s,o,!0))return!1;if(n==null||i!=null&&i.ignoreVary||!n.headersList.contains("vary"))return!0;let A=KS(n.headersList.get("vary"));for(let a of A){if(a==="*")return!1;let c=r.headersList.get(a),l=e.headersList.get(a);if(c!==l)return!1}return!0},eR=function(e,r,n=1/0){let i=null;if(e!==void 0)if(e instanceof cs){if(i=e[Yn],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new cs(e)[Yn]);let s=[];if(e===void 0)for(let A of m(this,yi))s.push(A[1]);else{let A=ke(this,qt,al).call(this,i,r);for(let a of A)s.push(a[1])}let o=[];for(let A of s){let a=yme(A,"immutable");if(o.push(a.clone()),o.length>=n)break}return Object.freeze(o)};var rC=ls;Object.defineProperties(rC.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:RA,matchAll:RA,add:RA,addAll:RA,put:RA,delete:RA,keys:RA});var QW=[{key:"ignoreSearch",converter:ae.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:ae.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:ae.converters.boolean,defaultValue:()=>!1}];ae.converters.CacheQueryOptions=ae.dictionaryConverter(QW);ae.converters.MultiCacheQueryOptions=ae.dictionaryConverter([...QW,{key:"cacheName",converter:ae.converters.DOMString}]);ae.converters.Response=ae.interfaceConverter(Bme);ae.converters["sequence<RequestInfo>"]=ae.sequenceConverter(ae.converters.RequestInfo);yW.exports={Cache:rC}});var SW=g((E1e,bW)=>{"use strict";var{kConstruct:Gh}=Xp(),{Cache:nC}=wW(),{webidl:sr}=Gt(),{kEnumerableProperty:qh}=we(),Cn,vA=class vA{constructor(){q(this,Cn,new Map);arguments[0]!==Gh&&sr.illegalConstructor(),sr.util.markAsUncloneable(this)}async match(e,r={}){if(sr.brandCheck(this,vA),sr.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=sr.converters.RequestInfo(e),r=sr.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(m(this,Cn).has(r.cacheName)){let n=m(this,Cn).get(r.cacheName);return await new nC(Gh,n).match(e,r)}}else for(let n of m(this,Cn).values()){let s=await new nC(Gh,n).match(e,r);if(s!==void 0)return s}}async has(e){sr.brandCheck(this,vA);let r="CacheStorage.has";return sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).has(e)}async open(e){sr.brandCheck(this,vA);let r="CacheStorage.open";if(sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).has(e)){let i=m(this,Cn).get(e);return new nC(Gh,i)}let n=[];return m(this,Cn).set(e,n),new nC(Gh,n)}async delete(e){sr.brandCheck(this,vA);let r="CacheStorage.delete";return sr.argumentLengthCheck(arguments,1,r),e=sr.converters.DOMString(e,r,"cacheName"),m(this,Cn).delete(e)}async keys(){return sr.brandCheck(this,vA),[...m(this,Cn).keys()]}};Cn=new WeakMap;var iC=vA;Object.defineProperties(iC.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:qh,has:qh,open:qh,delete:qh,keys:qh});bW.exports={CacheStorage:iC}});var vW=g((C1e,RW)=>{"use strict";RW.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var tR=g((m1e,FW)=>{"use strict";function Rme(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}function kW(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}function _W(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r<e;){let n=t.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}function DW(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<32||r===127||r===59)throw new Error("Invalid cookie path")}}function vme(t){if(t.startsWith("-")||t.endsWith(".")||t.endsWith("-"))throw new Error("Invalid cookie domain")}var kme=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sC=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function xW(t){return typeof t=="number"&&(t=new Date(t)),`${kme[t.getUTCDay()]}, ${sC[t.getUTCDate()]} ${_me[t.getUTCMonth()]} ${t.getUTCFullYear()} ${sC[t.getUTCHours()]}:${sC[t.getUTCMinutes()]}:${sC[t.getUTCSeconds()]} GMT`}function Dme(t){if(t<0)throw new Error("Invalid cookie max-age")}function xme(t){if(t.name.length===0)return null;kW(t.name),_W(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(Dme(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(vme(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(DW(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${xW(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...i]=r.split("=");e.push(`${n.trim()}=${i.join("=")}`)}return e.join("; ")}FW.exports={isCTLExcludingHtab:Rme,validateCookieName:kW,validateCookiePath:DW,validateCookieValue:_W,toIMFDate:xW,stringify:xme}});var TW=g((I1e,NW)=>{"use strict";var{maxNameValuePairSize:Fme,maxAttributeValueSize:Nme}=vW(),{isCTLExcludingHtab:Tme}=tR(),{collectASequenceOfCodePointsFast:oC}=Sr(),Mme=require("assert");function Lme(t){if(Tme(t))return null;let e="",r="",n="",i="";if(t.includes(";")){let s={position:0};e=oC(";",t,s),r=t.slice(s.position)}else e=t;if(!e.includes("="))i=e;else{let s={position:0};n=oC("=",e,s),i=e.slice(s.position+1)}return n=n.trim(),i=i.trim(),n.length+i.length>Fme?null:{name:n,value:i,...cl(r)}}function cl(t,e={}){var o;if(t.length===0)return e;Mme(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=oC(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",i="";if(r.includes("=")){let A={position:0};n=oC("=",r,A),i=r.slice(A.position+1)}else n=r;if(n=n.trim(),i=i.trim(),i.length>Nme)return cl(t,e);let s=n.toLowerCase();if(s==="expires"){let A=new Date(i);e.expires=A}else if(s==="max-age"){let A=i.charCodeAt(0);if((A<48||A>57)&&i[0]!=="-"||!/^\d+$/.test(i))return cl(t,e);let a=Number(i);e.maxAge=a}else if(s==="domain"){let A=i;A[0]==="."&&(A=A.slice(1)),A=A.toLowerCase(),e.domain=A}else if(s==="path"){let A="";i.length===0||i[0]!=="/"?A="/":A=i,e.path=A}else if(s==="secure")e.secure=!0;else if(s==="httponly")e.httpOnly=!0;else if(s==="samesite"){let A="Default",a=i.toLowerCase();a.includes("none")&&(A="None"),a.includes("strict")&&(A="Strict"),a.includes("lax")&&(A="Lax"),e.sameSite=A}else(o=e.unparsed)!=null||(e.unparsed=[]),e.unparsed.push(`${n}=${i}`);return cl(t,e)}NW.exports={parseSetCookie:Lme,parseUnparsedAttributes:cl}});var UW=g((B1e,LW)=>{"use strict";var{parseSetCookie:Ume}=TW(),{stringify:Ome}=tR(),{webidl:Re}=Gt(),{Headers:AC}=QA();function Pme(t){Re.argumentLengthCheck(arguments,1,"getCookies"),Re.brandCheck(t,AC,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[i,...s]=n.split("=");r[i.trim()]=s.join("=")}return r}function Hme(t,e,r){Re.brandCheck(t,AC,{strict:!1});let n="deleteCookie";Re.argumentLengthCheck(arguments,2,n),e=Re.converters.DOMString(e,n,"name"),r=Re.converters.DeleteCookieAttributes(r),MW(t,{name:e,value:"",expires:new Date(0),...r})}function Gme(t){Re.argumentLengthCheck(arguments,1,"getSetCookies"),Re.brandCheck(t,AC,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>Ume(r)):[]}function MW(t,e){Re.argumentLengthCheck(arguments,2,"setCookie"),Re.brandCheck(t,AC,{strict:!1}),e=Re.converters.Cookie(e);let r=Ome(e);r&&t.append("Set-Cookie",r)}Re.converters.DeleteCookieAttributes=Re.dictionaryConverter([{converter:Re.nullableConverter(Re.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"domain",defaultValue:()=>null}]);Re.converters.Cookie=Re.dictionaryConverter([{converter:Re.converters.DOMString,key:"name"},{converter:Re.converters.DOMString,key:"value"},{converter:Re.nullableConverter(t=>typeof t=="number"?Re.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.boolean),key:"secure",defaultValue:()=>null},{converter:Re.nullableConverter(Re.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:Re.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:Re.sequenceConverter(Re.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);LW.exports={getCookies:Pme,deleteCookie:Hme,getSetCookies:Gme,setCookie:MW}});var ul=g((Q1e,PW)=>{"use strict";var{webidl:Ae}=Gt(),{kEnumerableProperty:Dr}=we(),{kConstruct:OW}=it(),{MessagePort:qme}=require("worker_threads"),Yt,wi=class wi extends Event{constructor(r,n={}){var e=(...y1e)=>(super(...y1e),q(this,Yt),this);if(r===OW){e(arguments[1],arguments[2]),Ae.util.markAsUncloneable(this);return}let i="MessageEvent constructor";Ae.argumentLengthCheck(arguments,1,i),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.MessageEventInit(n,i,"eventInitDict"),e(r,n),U(this,Yt,n),Ae.util.markAsUncloneable(this)}get data(){return Ae.brandCheck(this,wi),m(this,Yt).data}get origin(){return Ae.brandCheck(this,wi),m(this,Yt).origin}get lastEventId(){return Ae.brandCheck(this,wi),m(this,Yt).lastEventId}get source(){return Ae.brandCheck(this,wi),m(this,Yt).source}get ports(){return Ae.brandCheck(this,wi),Object.isFrozen(m(this,Yt).ports)||Object.freeze(m(this,Yt).ports),m(this,Yt).ports}initMessageEvent(r,n=!1,i=!1,s=null,o="",A="",a=null,c=[]){return Ae.brandCheck(this,wi),Ae.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new wi(r,{bubbles:n,cancelable:i,data:s,origin:o,lastEventId:A,source:a,ports:c})}static createFastMessageEvent(r,n){var s,o,A,a,c,l,u,h,f,d;let i=new wi(OW,r,n);return U(i,Yt,n),(o=(s=m(i,Yt)).data)!=null||(s.data=null),(a=(A=m(i,Yt)).origin)!=null||(A.origin=""),(l=(c=m(i,Yt)).lastEventId)!=null||(c.lastEventId=""),(h=(u=m(i,Yt)).source)!=null||(u.source=null),(d=(f=m(i,Yt)).ports)!=null||(f.ports=[]),i}};Yt=new WeakMap;var ll=wi,{createFastMessageEvent:Yme}=ll;delete ll.createFastMessageEvent;var _A,Yh=class Yh extends Event{constructor(r,n={}){let i="CloseEvent constructor";Ae.argumentLengthCheck(arguments,1,i),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.CloseEventInit(n);super(r,n);q(this,_A);U(this,_A,n),Ae.util.markAsUncloneable(this)}get wasClean(){return Ae.brandCheck(this,Yh),m(this,_A).wasClean}get code(){return Ae.brandCheck(this,Yh),m(this,_A).code}get reason(){return Ae.brandCheck(this,Yh),m(this,_A).reason}};_A=new WeakMap;var aC=Yh,us,kA=class kA extends Event{constructor(r,n){let i="ErrorEvent constructor";Ae.argumentLengthCheck(arguments,1,i);super(r,n);q(this,us);Ae.util.markAsUncloneable(this),r=Ae.converters.DOMString(r,i,"type"),n=Ae.converters.ErrorEventInit(n!=null?n:{}),U(this,us,n)}get message(){return Ae.brandCheck(this,kA),m(this,us).message}get filename(){return Ae.brandCheck(this,kA),m(this,us).filename}get lineno(){return Ae.brandCheck(this,kA),m(this,us).lineno}get colno(){return Ae.brandCheck(this,kA),m(this,us).colno}get error(){return Ae.brandCheck(this,kA),m(this,us).error}};us=new WeakMap;var cC=kA;Object.defineProperties(ll.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:Dr,origin:Dr,lastEventId:Dr,source:Dr,ports:Dr,initMessageEvent:Dr});Object.defineProperties(aC.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:Dr,code:Dr,wasClean:Dr});Object.defineProperties(cC.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:Dr,filename:Dr,lineno:Dr,colno:Dr,error:Dr});Ae.converters.MessagePort=Ae.interfaceConverter(qme);Ae.converters["sequence<MessagePort>"]=Ae.sequenceConverter(Ae.converters.MessagePort);var rR=[{key:"bubbles",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:Ae.converters.boolean,defaultValue:()=>!1}];Ae.converters.MessageEventInit=Ae.dictionaryConverter([...rR,{key:"data",converter:Ae.converters.any,defaultValue:()=>null},{key:"origin",converter:Ae.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:Ae.converters.DOMString,defaultValue:()=>""},{key:"source",converter:Ae.nullableConverter(Ae.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:Ae.converters["sequence<MessagePort>"],defaultValue:()=>new Array(0)}]);Ae.converters.CloseEventInit=Ae.dictionaryConverter([...rR,{key:"wasClean",converter:Ae.converters.boolean,defaultValue:()=>!1},{key:"code",converter:Ae.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:Ae.converters.USVString,defaultValue:()=>""}]);Ae.converters.ErrorEventInit=Ae.dictionaryConverter([...rR,{key:"message",converter:Ae.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:Ae.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:Ae.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:Ae.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:Ae.converters.any}]);PW.exports={MessageEvent:ll,CloseEvent:aC,ErrorEvent:cC,createFastMessageEvent:Yme}});var DA=g((b1e,HW)=>{"use strict";var Vme="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",Jme={enumerable:!0,writable:!1,configurable:!1},Wme={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},jme={NOT_SENT:0,PROCESSING:1,SENT:2},zme={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},Zme=2**16-1,$me={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},Kme=Buffer.allocUnsafe(0),Xme={string:1,typedArray:2,arrayBuffer:3,blob:4};HW.exports={uid:Vme,sentCloseFrameState:jme,staticPropertyDescriptors:Jme,states:Wme,opcodes:zme,maxUnsigned16Bit:Zme,parserStates:$me,emptyBuffer:Kme,sendHints:Xme}});var Vh=g((S1e,GW)=>{"use strict";GW.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var jh=g((R1e,$W)=>{"use strict";var{kReadyState:Jh,kController:eIe,kResponse:tIe,kBinaryType:rIe,kWebSocketURL:nIe}=Vh(),{states:Wh,opcodes:fo}=DA(),{ErrorEvent:iIe,createFastMessageEvent:sIe}=ul(),{isUtf8:oIe}=require("buffer"),{collectASequenceOfCodePointsFast:AIe,removeHTTPWhitespace:qW}=Sr();function aIe(t){return t[Jh]===Wh.CONNECTING}function cIe(t){return t[Jh]===Wh.OPEN}function lIe(t){return t[Jh]===Wh.CLOSING}function uIe(t){return t[Jh]===Wh.CLOSED}function nR(t,e,r=(i,s)=>new Event(i,s),n={}){let i=r(t,n);e.dispatchEvent(i)}function hIe(t,e,r){if(t[Jh]!==Wh.OPEN)return;let n;if(e===fo.TEXT)try{n=ZW(r)}catch{VW(t,"Received invalid UTF-8 in text frame.");return}else e===fo.BINARY&&(t[rIe]==="blob"?n=new Blob([r]):n=fIe(r));nR("message",t,sIe,{origin:t[nIe].origin,data:n})}function fIe(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function dIe(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}function gIe(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}function VW(t,e){let{[eIe]:r,[tIe]:n}=t;r.abort(),n!=null&&n.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&nR("error",t,(i,s)=>new iIe(i,s),{error:new Error(e),message:e})}function JW(t){return t===fo.CLOSE||t===fo.PING||t===fo.PONG}function WW(t){return t===fo.CONTINUATION}function jW(t){return t===fo.TEXT||t===fo.BINARY}function EIe(t){return jW(t)||WW(t)||JW(t)}function pIe(t){let e={position:0},r=new Map;for(;e.position<t.length;){let n=AIe(";",t,e),[i,s=""]=n.split("=");r.set(qW(i,!0,!1),qW(s,!1,!0)),e.position++}return r}function CIe(t){for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);if(r<48||r>57)return!1}return!0}var zW=typeof process.versions.icu=="string",YW=zW?new TextDecoder("utf-8",{fatal:!0}):void 0,ZW=zW?YW.decode.bind(YW):function(t){if(oIe(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};$W.exports={isConnecting:aIe,isEstablished:cIe,isClosing:lIe,isClosed:uIe,fireEvent:nR,isValidSubprotocol:dIe,isValidStatusCode:gIe,failWebsocketConnection:VW,websocketMessageReceived:hIe,utf8Decode:ZW,isControlFrame:JW,isContinuationFrame:WW,isTextBinaryFrame:jW,isValidOpcode:EIe,parseExtensions:pIe,isValidClientWindowBits:CIe}});var uC=g((v1e,KW)=>{"use strict";var{maxUnsigned16Bit:mIe}=DA(),lC=16386,iR,xA=null,hl=lC;try{iR=require("crypto")}catch{iR={randomFillSync:function(e,r,n){for(let i=0;i<e.length;++i)e[i]=Math.random()*255|0;return e}}}function IIe(){return hl===lC&&(hl=0,iR.randomFillSync(xA!=null?xA:xA=Buffer.allocUnsafe(lC),0,lC)),[xA[hl++],xA[hl++],xA[hl++],xA[hl++]]}var sR=class{constructor(e){this.frameData=e}createFrame(e){var a;let r=this.frameData,n=IIe(),i=(a=r==null?void 0:r.byteLength)!=null?a:0,s=i,o=6;i>mIe?(o+=8,s=127):i>125&&(o+=2,s=126);let A=Buffer.allocUnsafe(i+o);A[0]=A[1]=0,A[0]|=128,A[0]=(A[0]&240)+e;A[o-4]=n[0],A[o-3]=n[1],A[o-2]=n[2],A[o-1]=n[3],A[1]=s,s===126?A.writeUInt16BE(i,2):s===127&&(A[2]=A[3]=0,A.writeUIntBE(i,4,6)),A[1]|=128;for(let c=0;c<i;++c)A[o+c]=r[c]^n[c&3];return A}};KW.exports={WebsocketFrameSend:sR}});var AR=g((k1e,s3)=>{"use strict";var{uid:BIe,states:zh,sentCloseFrameState:hC,emptyBuffer:QIe,opcodes:yIe}=DA(),{kReadyState:Zh,kSentClose:fC,kByteParser:e3,kReceivedClose:XW,kResponse:t3}=Vh(),{fireEvent:wIe,failWebsocketConnection:go,isClosing:bIe,isClosed:SIe,isEstablished:RIe,parseExtensions:vIe}=jh(),{channels:fl}=hc(),{CloseEvent:kIe}=ul(),{makeRequest:_Ie}=il(),{fetching:DIe}=Ph(),{Headers:xIe,getHeadersList:FIe}=QA(),{getDecodeSplit:NIe}=Gr(),{WebsocketFrameSend:TIe}=uC(),oR;try{oR=require("crypto")}catch{}function MIe(t,e,r,n,i,s){let o=t;o.protocol=t.protocol==="ws:"?"http:":"https:";let A=_Ie({urlList:[o],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(s.headers){let u=FIe(new xIe(s.headers));A.headersList=u}let a=oR.randomBytes(16).toString("base64");A.headersList.append("sec-websocket-key",a),A.headersList.append("sec-websocket-version","13");for(let u of e)A.headersList.append("sec-websocket-protocol",u);return A.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),DIe({request:A,useParallelQueue:!0,dispatcher:s.dispatcher,processResponse(u){var C,w;if(u.type==="error"||u.status!==101){go(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!u.headersList.get("Sec-WebSocket-Protocol")){go(n,"Server did not respond with sent protocols.");return}if(((C=u.headersList.get("Upgrade"))==null?void 0:C.toLowerCase())!=="websocket"){go(n,'Server did not set Upgrade header to "websocket".');return}if(((w=u.headersList.get("Connection"))==null?void 0:w.toLowerCase())!=="upgrade"){go(n,'Server did not set Connection header to "upgrade".');return}let h=u.headersList.get("Sec-WebSocket-Accept"),f=oR.createHash("sha1").update(a+BIe).digest("base64");if(h!==f){go(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let d=u.headersList.get("Sec-WebSocket-Extensions"),E;if(d!==null&&(E=vIe(d),!E.has("permessage-deflate"))){go(n,"Sec-WebSocket-Extensions header does not match.");return}let p=u.headersList.get("Sec-WebSocket-Protocol");if(p!==null&&!NIe("sec-websocket-protocol",A.headersList).includes(p)){go(n,"Protocol was not set in the opening handshake.");return}u.socket.on("data",r3),u.socket.on("close",n3),u.socket.on("error",i3),fl.open.hasSubscribers&&fl.open.publish({address:u.socket.address(),protocol:p,extensions:d}),i(u,E)}})}function LIe(t,e,r,n){if(!(bIe(t)||SIe(t)))if(!RIe(t))go(t,"Connection was closed before it was established."),t[Zh]=zh.CLOSING;else if(t[fC]===hC.NOT_SENT){t[fC]=hC.PROCESSING;let i=new TIe;e!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(e,0),i.frameData.write(r,2,"utf-8")):i.frameData=QIe,t[t3].socket.write(i.createFrame(yIe.CLOSE)),t[fC]=hC.SENT,t[Zh]=zh.CLOSING}else t[Zh]=zh.CLOSING}function r3(t){this.ws[e3].write(t)||this.pause()}function n3(){var o;let{ws:t}=this,{[t3]:e}=t;e.socket.off("data",r3),e.socket.off("close",n3),e.socket.off("error",i3);let r=t[fC]===hC.SENT&&t[XW],n=1005,i="",s=t[e3].closingInfo;s&&!s.error?(n=(o=s.code)!=null?o:1005,i=s.reason):t[XW]||(n=1006),t[Zh]=zh.CLOSED,wIe("close",t,(A,a)=>new kIe(A,a),{wasClean:r,code:n,reason:i}),fl.close.hasSubscribers&&fl.close.publish({websocket:t,code:n,reason:i})}function i3(t){let{ws:e}=this;e[Zh]=zh.CLOSING,fl.socketError.hasSubscribers&&fl.socketError.publish(t),this.destroy()}s3.exports={establishWebSocketConnection:MIe,closeWebSocketConnection:LIe}});var A3=g((_1e,o3)=>{"use strict";var{createInflateRaw:UIe,Z_DEFAULT_WINDOWBITS:OIe}=require("zlib"),{isValidClientWindowBits:PIe}=jh(),HIe=Buffer.from([0,0,255,255]),dC=Symbol("kBuffer"),gC=Symbol("kLength"),_t,Eo,aR=class{constructor(e){q(this,_t);q(this,Eo,{});m(this,Eo).serverNoContextTakeover=e.has("server_no_context_takeover"),m(this,Eo).serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,r,n){if(!m(this,_t)){let i=OIe;if(m(this,Eo).serverMaxWindowBits){if(!PIe(m(this,Eo).serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(m(this,Eo).serverMaxWindowBits)}U(this,_t,UIe({windowBits:i})),m(this,_t)[dC]=[],m(this,_t)[gC]=0,m(this,_t).on("data",s=>{m(this,_t)[dC].push(s),m(this,_t)[gC]+=s.length}),m(this,_t).on("error",s=>{U(this,_t,null),n(s)})}m(this,_t).write(e),r&&m(this,_t).write(HIe),m(this,_t).flush(()=>{let i=Buffer.concat(m(this,_t)[dC],m(this,_t)[gC]);m(this,_t)[dC].length=0,m(this,_t)[gC]=0,n(null,i)})}};_t=new WeakMap,Eo=new WeakMap;o3.exports={PerMessageDeflate:aR}});var C3=g((x1e,p3)=>{"use strict";var{Writable:GIe}=require("stream"),qIe=require("assert"),{parserStates:xr,opcodes:dl,states:YIe,emptyBuffer:a3,sentCloseFrameState:c3}=DA(),{kReadyState:VIe,kSentClose:l3,kResponse:u3,kReceivedClose:h3}=Vh(),{channels:EC}=hc(),{isValidStatusCode:JIe,isValidOpcode:WIe,failWebsocketConnection:mn,websocketMessageReceived:f3,utf8Decode:jIe,isControlFrame:d3,isTextBinaryFrame:cR,isContinuationFrame:zIe}=jh(),{WebsocketFrameSend:g3}=uC(),{closeWebSocketConnection:E3}=AR(),{PerMessageDeflate:ZIe}=A3(),Vn,Jn,hs,or,Oe,Wn,po,lR=class extends GIe{constructor(r,n){super();q(this,Vn,[]);q(this,Jn,0);q(this,hs,!1);q(this,or,xr.INFO);q(this,Oe,{});q(this,Wn,[]);q(this,po);this.ws=r,U(this,po,n==null?new Map:n),m(this,po).has("permessage-deflate")&&m(this,po).set("permessage-deflate",new ZIe(n))}_write(r,n,i){m(this,Vn).push(r),U(this,Jn,m(this,Jn)+r.length),U(this,hs,!0),this.run(i)}run(r){for(;m(this,hs);)if(m(this,or)===xr.INFO){if(m(this,Jn)<2)return r();let n=this.consume(2),i=(n[0]&128)!==0,s=n[0]&15,o=(n[1]&128)===128,A=!i&&s!==dl.CONTINUATION,a=n[1]&127,c=n[0]&64,l=n[0]&32,u=n[0]&16;if(!WIe(s))return mn(this.ws,"Invalid opcode received"),r();if(o)return mn(this.ws,"Frame cannot be masked"),r();if(c!==0&&!m(this,po).has("permessage-deflate")){mn(this.ws,"Expected RSV1 to be clear.");return}if(l!==0||u!==0){mn(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(A&&!cR(s)){mn(this.ws,"Invalid frame type was fragmented.");return}if(cR(s)&&m(this,Wn).length>0){mn(this.ws,"Expected continuation frame");return}if(m(this,Oe).fragmented&&A){mn(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((a>125||A)&&d3(s)){mn(this.ws,"Control frame either too large or fragmented");return}if(zIe(s)&&m(this,Wn).length===0&&!m(this,Oe).compressed){mn(this.ws,"Unexpected continuation frame");return}a<=125?(m(this,Oe).payloadLength=a,U(this,or,xr.READ_DATA)):a===126?U(this,or,xr.PAYLOADLENGTH_16):a===127&&U(this,or,xr.PAYLOADLENGTH_64),cR(s)&&(m(this,Oe).binaryType=s,m(this,Oe).compressed=c!==0),m(this,Oe).opcode=s,m(this,Oe).masked=o,m(this,Oe).fin=i,m(this,Oe).fragmented=A}else if(m(this,or)===xr.PAYLOADLENGTH_16){if(m(this,Jn)<2)return r();let n=this.consume(2);m(this,Oe).payloadLength=n.readUInt16BE(0),U(this,or,xr.READ_DATA)}else if(m(this,or)===xr.PAYLOADLENGTH_64){if(m(this,Jn)<8)return r();let n=this.consume(8),i=n.readUInt32BE(0);if(i>2**31-1){mn(this.ws,"Received payload length > 2^31 bytes.");return}let s=n.readUInt32BE(4);m(this,Oe).payloadLength=(i<<8)+s,U(this,or,xr.READ_DATA)}else if(m(this,or)===xr.READ_DATA){if(m(this,Jn)<m(this,Oe).payloadLength)return r();let n=this.consume(m(this,Oe).payloadLength);if(d3(m(this,Oe).opcode))U(this,hs,this.parseControlFrame(n)),U(this,or,xr.INFO);else if(m(this,Oe).compressed){m(this,po).get("permessage-deflate").decompress(n,m(this,Oe).fin,(i,s)=>{if(i){E3(this.ws,1007,i.message,i.message.length);return}if(m(this,Wn).push(s),!m(this,Oe).fin){U(this,or,xr.INFO),U(this,hs,!0),this.run(r);return}f3(this.ws,m(this,Oe).binaryType,Buffer.concat(m(this,Wn))),U(this,hs,!0),U(this,or,xr.INFO),m(this,Wn).length=0,this.run(r)}),U(this,hs,!1);break}else{if(m(this,Wn).push(n),!m(this,Oe).fragmented&&m(this,Oe).fin){let i=Buffer.concat(m(this,Wn));f3(this.ws,m(this,Oe).binaryType,i),m(this,Wn).length=0}U(this,or,xr.INFO)}}}consume(r){if(r>m(this,Jn))throw new Error("Called consume() before buffers satiated.");if(r===0)return a3;if(m(this,Vn)[0].length===r)return U(this,Jn,m(this,Jn)-m(this,Vn)[0].length),m(this,Vn).shift();let n=Buffer.allocUnsafe(r),i=0;for(;i!==r;){let s=m(this,Vn)[0],{length:o}=s;if(o+i===r){n.set(m(this,Vn).shift(),i);break}else if(o+i>r){n.set(s.subarray(0,r-i),i),m(this,Vn)[0]=s.subarray(r-i);break}else n.set(m(this,Vn).shift(),i),i+=s.length}return U(this,Jn,m(this,Jn)-r),n}parseCloseBody(r){qIe(r.length!==1);let n;if(r.length>=2&&(n=r.readUInt16BE(0)),n!==void 0&&!JIe(n))return{code:1002,reason:"Invalid status code",error:!0};let i=r.subarray(2);i[0]===239&&i[1]===187&&i[2]===191&&(i=i.subarray(3));try{i=jIe(i)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:n,reason:i,error:!1}}parseControlFrame(r){let{opcode:n,payloadLength:i}=m(this,Oe);if(n===dl.CLOSE){if(i===1)return mn(this.ws,"Received close frame with a 1-byte body."),!1;if(m(this,Oe).closeInfo=this.parseCloseBody(r),m(this,Oe).closeInfo.error){let{code:s,reason:o}=m(this,Oe).closeInfo;return E3(this.ws,s,o,o.length),mn(this.ws,o),!1}if(this.ws[l3]!==c3.SENT){let s=a3;m(this,Oe).closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(m(this,Oe).closeInfo.code,0));let o=new g3(s);this.ws[u3].socket.write(o.createFrame(dl.CLOSE),A=>{A||(this.ws[l3]=c3.SENT)})}return this.ws[VIe]=YIe.CLOSING,this.ws[h3]=!0,!1}else if(n===dl.PING){if(!this.ws[h3]){let s=new g3(r);this.ws[u3].socket.write(s.createFrame(dl.PONG)),EC.ping.hasSubscribers&&EC.ping.publish({payload:r})}}else n===dl.PONG&&EC.pong.hasSubscribers&&EC.pong.publish({payload:r});return!0}get closingInfo(){return m(this,Oe).closeInfo}};Vn=new WeakMap,Jn=new WeakMap,hs=new WeakMap,or=new WeakMap,Oe=new WeakMap,Wn=new WeakMap,po=new WeakMap;p3.exports={ByteParser:lR}});var w3=g((N1e,y3)=>{"use strict";var{WebsocketFrameSend:$Ie}=uC(),{opcodes:m3,sendHints:gl}=DA(),KIe=pb(),I3=Buffer[Symbol.species],El,FA,pl,pC,Q3,uR=class{constructor(e){q(this,pC);q(this,El,new KIe);q(this,FA,!1);q(this,pl);U(this,pl,e)}add(e,r,n){if(n!==gl.blob){let s=B3(e,n);if(!m(this,FA))m(this,pl).write(s,r);else{let o={promise:null,callback:r,frame:s};m(this,El).push(o)}return}let i={promise:e.arrayBuffer().then(s=>{i.promise=null,i.frame=B3(s,n)}),callback:r,frame:null};m(this,El).push(i),m(this,FA)||ke(this,pC,Q3).call(this)}};El=new WeakMap,FA=new WeakMap,pl=new WeakMap,pC=new WeakSet,Q3=async function(){U(this,FA,!0);let e=m(this,El);for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,m(this,pl).write(r.frame,r.callback),r.callback=r.frame=null}U(this,FA,!1)};function B3(t,e){return new $Ie(XIe(t,e)).createFrame(e===gl.string?m3.TEXT:m3.BINARY)}function XIe(t,e){switch(e){case gl.string:return Buffer.from(t);case gl.arrayBuffer:case gl.blob:return new I3(t);case gl.typedArray:return new I3(t.buffer,t.byteOffset,t.byteLength)}}y3.exports={SendQueue:uR}});var N3=g((M1e,F3)=>{"use strict";var{webidl:Ee}=Gt(),{URLSerializer:eBe}=Sr(),{environmentSettingsObject:b3}=Gr(),{staticPropertyDescriptors:mo,states:Xh,sentCloseFrameState:tBe,sendHints:CC}=DA(),{kWebSocketURL:S3,kReadyState:hR,kController:rBe,kBinaryType:mC,kResponse:R3,kSentClose:nBe,kByteParser:iBe}=Vh(),{isConnecting:sBe,isEstablished:oBe,isClosing:ABe,isValidSubprotocol:aBe,fireEvent:v3}=jh(),{establishWebSocketConnection:cBe,closeWebSocketConnection:k3}=AR(),{ByteParser:lBe}=C3(),{kEnumerableProperty:In,isBlobLike:_3}=we(),{getGlobalDispatcher:uBe}=kp(),{types:D3}=require("util"),{ErrorEvent:hBe,CloseEvent:fBe}=ul(),{SendQueue:dBe}=w3(),lt,Bn,$h,Kh,Co,IC,x3,wt=class wt extends EventTarget{constructor(r,n=[]){super();q(this,IC);q(this,lt,{open:null,error:null,close:null,message:null});q(this,Bn,0);q(this,$h,"");q(this,Kh,"");q(this,Co);Ee.util.markAsUncloneable(this);let i="WebSocket constructor";Ee.argumentLengthCheck(arguments,1,i);let s=Ee.converters["DOMString or sequence<DOMString> or WebSocketInit"](n,i,"options");r=Ee.converters.USVString(r,i,"url"),n=s.protocols;let o=b3.settingsObject.baseUrl,A;try{A=new URL(r,o)}catch(c){throw new DOMException(c,"SyntaxError")}if(A.protocol==="http:"?A.protocol="ws:":A.protocol==="https:"&&(A.protocol="wss:"),A.protocol!=="ws:"&&A.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${A.protocol}`,"SyntaxError");if(A.hash||A.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof n=="string"&&(n=[n]),n.length!==new Set(n.map(c=>c.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(n.length>0&&!n.every(c=>aBe(c)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[S3]=new URL(A.href);let a=b3.settingsObject;this[rBe]=cBe(A,n,a,this,(c,l)=>ke(this,IC,x3).call(this,c,l),s),this[hR]=wt.CONNECTING,this[nBe]=tBe.NOT_SENT,this[mC]="blob"}close(r=void 0,n=void 0){Ee.brandCheck(this,wt);let i="WebSocket.close";if(r!==void 0&&(r=Ee.converters["unsigned short"](r,i,"code",{clamp:!0})),n!==void 0&&(n=Ee.converters.USVString(n,i,"reason")),r!==void 0&&r!==1e3&&(r<3e3||r>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(n!==void 0&&(s=Buffer.byteLength(n),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");k3(this,r,n,s)}send(r){Ee.brandCheck(this,wt);let n="WebSocket.send";if(Ee.argumentLengthCheck(arguments,1,n),r=Ee.converters.WebSocketSendData(r,n,"data"),sBe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!oBe(this)||ABe(this)))if(typeof r=="string"){let i=Buffer.byteLength(r);U(this,Bn,m(this,Bn)+i),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-i)},CC.string)}else D3.isArrayBuffer(r)?(U(this,Bn,m(this,Bn)+r.byteLength),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.byteLength)},CC.arrayBuffer)):ArrayBuffer.isView(r)?(U(this,Bn,m(this,Bn)+r.byteLength),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.byteLength)},CC.typedArray)):_3(r)&&(U(this,Bn,m(this,Bn)+r.size),m(this,Co).add(r,()=>{U(this,Bn,m(this,Bn)-r.size)},CC.blob))}get readyState(){return Ee.brandCheck(this,wt),this[hR]}get bufferedAmount(){return Ee.brandCheck(this,wt),m(this,Bn)}get url(){return Ee.brandCheck(this,wt),eBe(this[S3])}get extensions(){return Ee.brandCheck(this,wt),m(this,Kh)}get protocol(){return Ee.brandCheck(this,wt),m(this,$h)}get onopen(){return Ee.brandCheck(this,wt),m(this,lt).open}set onopen(r){Ee.brandCheck(this,wt),m(this,lt).open&&this.removeEventListener("open",m(this,lt).open),typeof r=="function"?(m(this,lt).open=r,this.addEventListener("open",r)):m(this,lt).open=null}get onerror(){return Ee.brandCheck(this,wt),m(this,lt).error}set onerror(r){Ee.brandCheck(this,wt),m(this,lt).error&&this.removeEventListener("error",m(this,lt).error),typeof r=="function"?(m(this,lt).error=r,this.addEventListener("error",r)):m(this,lt).error=null}get onclose(){return Ee.brandCheck(this,wt),m(this,lt).close}set onclose(r){Ee.brandCheck(this,wt),m(this,lt).close&&this.removeEventListener("close",m(this,lt).close),typeof r=="function"?(m(this,lt).close=r,this.addEventListener("close",r)):m(this,lt).close=null}get onmessage(){return Ee.brandCheck(this,wt),m(this,lt).message}set onmessage(r){Ee.brandCheck(this,wt),m(this,lt).message&&this.removeEventListener("message",m(this,lt).message),typeof r=="function"?(m(this,lt).message=r,this.addEventListener("message",r)):m(this,lt).message=null}get binaryType(){return Ee.brandCheck(this,wt),this[mC]}set binaryType(r){Ee.brandCheck(this,wt),r!=="blob"&&r!=="arraybuffer"?this[mC]="blob":this[mC]=r}};lt=new WeakMap,Bn=new WeakMap,$h=new WeakMap,Kh=new WeakMap,Co=new WeakMap,IC=new WeakSet,x3=function(r,n){this[R3]=r;let i=new lBe(this,n);i.on("drain",gBe),i.on("error",EBe.bind(this)),r.socket.ws=this,this[iBe]=i,U(this,Co,new dBe(r.socket)),this[hR]=Xh.OPEN;let s=r.headersList.get("sec-websocket-extensions");s!==null&&U(this,Kh,s);let o=r.headersList.get("sec-websocket-protocol");o!==null&&U(this,$h,o),v3("open",this)};var zr=wt;zr.CONNECTING=zr.prototype.CONNECTING=Xh.CONNECTING;zr.OPEN=zr.prototype.OPEN=Xh.OPEN;zr.CLOSING=zr.prototype.CLOSING=Xh.CLOSING;zr.CLOSED=zr.prototype.CLOSED=Xh.CLOSED;Object.defineProperties(zr.prototype,{CONNECTING:mo,OPEN:mo,CLOSING:mo,CLOSED:mo,url:In,readyState:In,bufferedAmount:In,onopen:In,onerror:In,onclose:In,close:In,onmessage:In,binaryType:In,send:In,extensions:In,protocol:In,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(zr,{CONNECTING:mo,OPEN:mo,CLOSING:mo,CLOSED:mo});Ee.converters["sequence<DOMString>"]=Ee.sequenceConverter(Ee.converters.DOMString);Ee.converters["DOMString or sequence<DOMString>"]=function(t,e,r){return Ee.util.Type(t)==="Object"&&Symbol.iterator in t?Ee.converters["sequence<DOMString>"](t):Ee.converters.DOMString(t,e,r)};Ee.converters.WebSocketInit=Ee.dictionaryConverter([{key:"protocols",converter:Ee.converters["DOMString or sequence<DOMString>"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:Ee.converters.any,defaultValue:()=>uBe()},{key:"headers",converter:Ee.nullableConverter(Ee.converters.HeadersInit)}]);Ee.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){return Ee.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Ee.converters.WebSocketInit(t):{protocols:Ee.converters["DOMString or sequence<DOMString>"](t)}};Ee.converters.WebSocketSendData=function(t){if(Ee.util.Type(t)==="Object"){if(_3(t))return Ee.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||D3.isArrayBuffer(t))return Ee.converters.BufferSource(t)}return Ee.converters.USVString(t)};function gBe(){this.ws[R3].socket.resume()}function EBe(t){let e,r;t instanceof fBe?(e=t.reason,r=t.code):e=t.message,v3("error",this,()=>new hBe("error",{error:t,message:e})),k3(this,r)}F3.exports={WebSocket:zr}});var fR=g((U1e,T3)=>{"use strict";function pBe(t){return t.indexOf("\0")===-1}function CBe(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t.charCodeAt(e)<48||t.charCodeAt(e)>57)return!1;return!0}function mBe(t){return new Promise(e=>{setTimeout(e,t).unref()})}T3.exports={isValidLastEventId:pBe,isASCIINumber:CBe,delay:mBe}});var O3=g((O1e,U3)=>{"use strict";var{Transform:IBe}=require("stream"),{isASCIINumber:M3,isValidLastEventId:L3}=fR(),fs=[239,187,191],dR=10,BC=13,BBe=58,QBe=32,gR=class extends IBe{constructor(r={}){r.readableObjectMode=!0;super(r);se(this,"state",null);se(this,"checkBOM",!0);se(this,"crlfCheck",!1);se(this,"eventEndCheck",!1);se(this,"buffer",null);se(this,"pos",0);se(this,"event",{data:void 0,event:void 0,id:void 0,retry:void 0});this.state=r.eventSourceSettings||{},r.push&&(this.push=r.push)}_transform(r,n,i){if(r.length===0){i();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,r]):this.buffer=r,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===fs[0]){i();return}this.checkBOM=!1,i();return;case 2:if(this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]){i();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]&&this.buffer[2]===fs[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,i();return}this.checkBOM=!1;break;default:this.buffer[0]===fs[0]&&this.buffer[1]===fs[1]&&this.buffer[2]===fs[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos<this.buffer.length;){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===dR){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===dR||this.buffer[this.pos]===BC){this.buffer[this.pos]===BC&&(this.crlfCheck=!0),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,(this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===dR||this.buffer[this.pos]===BC){this.buffer[this.pos]===BC&&(this.crlfCheck=!0),this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}i()}parseLine(r,n){if(r.length===0)return;let i=r.indexOf(BBe);if(i===0)return;let s="",o="";if(i!==-1){s=r.subarray(0,i).toString("utf8");let A=i+1;r[A]===QBe&&++A,o=r.subarray(A).toString("utf8")}else s=r.toString("utf8"),o="";switch(s){case"data":n[s]===void 0?n[s]=o:n[s]+=`
|
|
94
|
+
${o}`;break;case"retry":M3(o)&&(n[s]=o);break;case"id":L3(o)&&(n[s]=o);break;case"event":o.length>0&&(n[s]=o);break}}processEvent(r){r.retry&&M3(r.retry)&&(this.state.reconnectionTime=parseInt(r.retry,10)),r.id&&L3(r.id)&&(this.state.lastEventId=r.id),r.data!==void 0&&this.push({type:r.event||"message",options:{data:r.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};U3.exports={EventSourceStream:gR}});var W3=g((H1e,J3)=>{"use strict";var{pipeline:yBe}=require("stream"),{fetching:wBe}=Ph(),{makeRequest:bBe}=il(),{webidl:ds}=Gt(),{EventSourceStream:SBe}=O3(),{parseMIMEType:RBe}=Sr(),{createFastMessageEvent:vBe}=ul(),{isNetworkError:P3}=Uh(),{delay:kBe}=fR(),{kEnumerableProperty:NA}=we(),{environmentSettingsObject:H3}=Gr(),G3=!1,q3=3e3,ef=0,Y3=1,tf=2,_Be="anonymous",DBe="use-credentials",Ot,Cl,rf,Qn,TA,nf,sf,bi,Io,ER,pR,CR=class CR extends EventTarget{constructor(r,n={}){super();q(this,Io);q(this,Ot,{open:null,error:null,message:null});q(this,Cl,null);q(this,rf,!1);q(this,Qn,ef);q(this,TA,null);q(this,nf,null);q(this,sf);q(this,bi);ds.util.markAsUncloneable(this);let i="EventSource constructor";ds.argumentLengthCheck(arguments,1,i),G3||(G3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),r=ds.converters.USVString(r,i,"url"),n=ds.converters.EventSourceInitDict(n,i,"eventSourceInitDict"),U(this,sf,n.dispatcher),U(this,bi,{lastEventId:"",reconnectionTime:q3});let s=H3,o;try{o=new URL(r,s.settingsObject.baseUrl),m(this,bi).origin=o.origin}catch(c){throw new DOMException(c,"SyntaxError")}U(this,Cl,o.href);let A=_Be;n.withCredentials&&(A=DBe,U(this,rf,!0));let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:A==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=H3.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(m(this,Cl))],U(this,TA,bBe(a)),ke(this,Io,ER).call(this)}get readyState(){return m(this,Qn)}get url(){return m(this,Cl)}get withCredentials(){return m(this,rf)}close(){ds.brandCheck(this,CR),m(this,Qn)!==tf&&(U(this,Qn,tf),m(this,nf).abort(),U(this,TA,null))}get onopen(){return m(this,Ot).open}set onopen(r){m(this,Ot).open&&this.removeEventListener("open",m(this,Ot).open),typeof r=="function"?(m(this,Ot).open=r,this.addEventListener("open",r)):m(this,Ot).open=null}get onmessage(){return m(this,Ot).message}set onmessage(r){m(this,Ot).message&&this.removeEventListener("message",m(this,Ot).message),typeof r=="function"?(m(this,Ot).message=r,this.addEventListener("message",r)):m(this,Ot).message=null}get onerror(){return m(this,Ot).error}set onerror(r){m(this,Ot).error&&this.removeEventListener("error",m(this,Ot).error),typeof r=="function"?(m(this,Ot).error=r,this.addEventListener("error",r)):m(this,Ot).error=null}};Ot=new WeakMap,Cl=new WeakMap,rf=new WeakMap,Qn=new WeakMap,TA=new WeakMap,nf=new WeakMap,sf=new WeakMap,bi=new WeakMap,Io=new WeakSet,ER=function(){if(m(this,Qn)===tf)return;U(this,Qn,ef);let r={request:m(this,TA),dispatcher:m(this,sf)},n=i=>{P3(i)&&(this.dispatchEvent(new Event("error")),this.close()),ke(this,Io,pR).call(this)};r.processResponseEndOfBody=n,r.processResponse=i=>{if(P3(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{ke(this,Io,pR).call(this);return}let s=i.headersList.get("content-type",!0),o=s!==null?RBe(s):"failure",A=o!=="failure"&&o.essence==="text/event-stream";if(i.status!==200||A===!1){this.close(),this.dispatchEvent(new Event("error"));return}U(this,Qn,Y3),this.dispatchEvent(new Event("open")),m(this,bi).origin=i.urlList[i.urlList.length-1].origin;let a=new SBe({eventSourceSettings:m(this,bi),push:c=>{this.dispatchEvent(vBe(c.type,c.options))}});yBe(i.body.stream,a,c=>{(c==null?void 0:c.aborted)===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},U(this,nf,wBe(r))},pR=async function(){m(this,Qn)!==tf&&(U(this,Qn,ef),this.dispatchEvent(new Event("error")),await kBe(m(this,bi).reconnectionTime),m(this,Qn)===ef&&(m(this,bi).lastEventId.length&&m(this,TA).headersList.set("last-event-id",m(this,bi).lastEventId,!0),ke(this,Io,ER).call(this)))};var ml=CR,V3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ef,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Y3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:tf,writable:!1}};Object.defineProperties(ml,V3);Object.defineProperties(ml.prototype,V3);Object.defineProperties(ml.prototype,{close:NA,onerror:NA,onmessage:NA,onopen:NA,readyState:NA,url:NA,withCredentials:NA});ds.converters.EventSourceInitDict=ds.dictionaryConverter([{key:"withCredentials",converter:ds.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ds.converters.any}]);J3.exports={EventSource:ml,defaultReconnectionTime:q3}});var K3=g((q1e,fe)=>{"use strict";var xBe=Nc(),z3=rh(),FBe=Tc(),NBe=xY(),TBe=Mc(),MBe=Lb(),LBe=oV(),UBe=hV(),Z3=Le(),yC=we(),{InvalidArgumentError:QC}=Z3,Il=KV(),OBe=ih(),PBe=IS(),HBe=MJ(),GBe=yS(),qBe=AS(),YBe=mp(),{getGlobalDispatcher:$3,setGlobalDispatcher:VBe}=kp(),JBe=_p(),WBe=Ap(),jBe=ap();Object.assign(z3.prototype,Il);fe.exports.Dispatcher=z3;fe.exports.Client=xBe;fe.exports.Pool=FBe;fe.exports.BalancedPool=NBe;fe.exports.Agent=TBe;fe.exports.ProxyAgent=MBe;fe.exports.EnvHttpProxyAgent=LBe;fe.exports.RetryAgent=UBe;fe.exports.RetryHandler=YBe;fe.exports.DecoratorHandler=JBe;fe.exports.RedirectHandler=WBe;fe.exports.createRedirectInterceptor=jBe;fe.exports.interceptors={redirect:YJ(),retry:JJ(),dump:zJ(),dns:e5()};fe.exports.buildConnector=OBe;fe.exports.errors=Z3;fe.exports.util={parseHeaders:yC.parseHeaders,headerNameToString:yC.headerNameToString};function of(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new QC("invalid url");if(r!=null&&typeof r!="object")throw new QC("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new QC("invalid opts.path");let o=r.path;r.path.startsWith("/")||(o=`/${o}`),e=new URL(yC.parseOrigin(e).origin+o)}else r||(r=typeof e=="object"?e:{}),e=yC.parseURL(e);let{agent:i,dispatcher:s=$3()}=r;if(i)throw new QC("unsupported opts.agent. Did you mean opts.client?");return t.call(s,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}fe.exports.setGlobalDispatcher=VBe;fe.exports.getGlobalDispatcher=$3;var zBe=Ph().fetch;fe.exports.fetch=async function(e,r=void 0){try{return await zBe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}};fe.exports.Headers=QA().Headers;fe.exports.Response=Uh().Response;fe.exports.Request=il().Request;fe.exports.FormData=uh().FormData;var j3;fe.exports.File=(j3=globalThis.File)!=null?j3:require("buffer").File;fe.exports.FileReader=EW().FileReader;var{setGlobalOrigin:ZBe,getGlobalOrigin:$Be}=Uw();fe.exports.setGlobalOrigin=ZBe;fe.exports.getGlobalOrigin=$Be;var{CacheStorage:KBe}=SW(),{kConstruct:XBe}=Xp();fe.exports.caches=new KBe(XBe);var{deleteCookie:eQe,getCookies:tQe,getSetCookies:rQe,setCookie:nQe}=UW();fe.exports.deleteCookie=eQe;fe.exports.getCookies=tQe;fe.exports.getSetCookies=rQe;fe.exports.setCookie=nQe;var{parseMIMEType:iQe,serializeAMimeType:sQe}=Sr();fe.exports.parseMIMEType=iQe;fe.exports.serializeAMimeType=sQe;var{CloseEvent:oQe,ErrorEvent:AQe,MessageEvent:aQe}=ul();fe.exports.WebSocket=N3().WebSocket;fe.exports.CloseEvent=oQe;fe.exports.ErrorEvent=AQe;fe.exports.MessageEvent=aQe;fe.exports.request=of(Il.request);fe.exports.stream=of(Il.stream);fe.exports.pipeline=of(Il.pipeline);fe.exports.connect=of(Il.connect);fe.exports.upgrade=of(Il.upgrade);fe.exports.MockClient=PBe;fe.exports.MockPool=GBe;fe.exports.MockAgent=HBe;fe.exports.mockErrors=qBe;var{EventSource:cQe}=W3();fe.exports.EventSource=cQe});var r9=g((W1e,t9)=>{"use strict";function yn(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t9.exports=yn;yn.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};yn.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};yn.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};yn.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};yn.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};yn.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};yn.prototype.start=yn.prototype.try;yn.prototype.errors=function(){return this._errors};yn.prototype.attempts=function(){return this._attempts};yn.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var n9=g(MA=>{"use strict";var EQe=r9();MA.operation=function(t){var e=MA.timeouts(t);return new EQe(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};MA.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};MA.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};MA.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(a){var c=MA.operation(e),l=Array.prototype.slice.call(arguments,1),u=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),u.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var s9=g((z1e,i9)=>{"use strict";i9.exports=n9()});var A9=g((Z1e,o9)=>{"use strict";var pQe=s9();function CQe(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=pQe.operation(s);function A(l){i(l||new Error("Aborted"))}function a(l,u){if(l.bail){A(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,u):i(o.mainError())}function c(l){var u;try{u=t(A,l)}catch(h){a(h,l);return}Promise.resolve(u).then(n).catch(function(f){a(f,l)})}o.attempt(c)}return new Promise(r)}o9.exports=CQe});var u9=g(LA=>{"use strict";LA.parse=LA.decode=RQe;LA.stringify=LA.encode=a9;LA.safe=Bl;LA.unsafe=SC;var mR=typeof process!="undefined"&&process.platform==="win32"?`\r
|
|
95
95
|
`:`
|
|
96
96
|
`;function a9(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var i=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(s,o,A){var a=t[s];a&&Array.isArray(a)?a.forEach(function(c){n+=Bl(s+"[]")+i+Bl(c)+`
|
|
97
|
-
`}):a&&typeof a=="object"?r.push(s):n+=Bl(s)+i+Bl(a)+mR}),e.section&&n.length&&(n="["+Bl(e.section)+"]"+mR+n),r.forEach(function(s,o,A){var a=c9(s).join("\\."),c=(e.section?e.section+".":"")+a,l=a9(t[s],{section:c,whitespace:e.whitespace});n.length&&l.length&&(n+=mR),n+=l}),n}function c9(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function RQe(t){var e={},r=e,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=t.split(/[\r\n]+/g);return s.forEach(function(o,A,a){if(!(!o||o.match(/^\s*[;#]/))){var c=o.match(i);if(c){if(c[1]!==void 0){if(n=SC(c[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var l=SC(c[2]);if(l!=="__proto__"){var u=c[3]?SC(c[4]):!0;switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(l.length>2&&l.slice(-2)==="[]"){if(l=l.substring(0,l.length-2),l==="__proto__")return;r[l]?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]}Array.isArray(r[l])?r[l].push(u):r[l]=u}}}}),Object.keys(e).filter(function(o,A,a){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var c=c9(o),l=e,u=c.pop(),h=u.replace(/\\\./g,".");return c.forEach(function(f,d,E){f!=="__proto__"&&((!l[f]||typeof l[f]!="object")&&(l[f]={}),l=l[f])}),l===e&&h===u?!1:(l[h]=e[o],!0)}).forEach(function(o,A,a){delete e[o]}),e}function l9(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function Bl(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&l9(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function SC(t,e){if(t=(t||"").trim(),l9(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",i=0,s=t.length;i<s;i++){var o=t.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var d9=g((
|
|
97
|
+
`}):a&&typeof a=="object"?r.push(s):n+=Bl(s)+i+Bl(a)+mR}),e.section&&n.length&&(n="["+Bl(e.section)+"]"+mR+n),r.forEach(function(s,o,A){var a=c9(s).join("\\."),c=(e.section?e.section+".":"")+a,l=a9(t[s],{section:c,whitespace:e.whitespace});n.length&&l.length&&(n+=mR),n+=l}),n}function c9(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function RQe(t){var e={},r=e,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=t.split(/[\r\n]+/g);return s.forEach(function(o,A,a){if(!(!o||o.match(/^\s*[;#]/))){var c=o.match(i);if(c){if(c[1]!==void 0){if(n=SC(c[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var l=SC(c[2]);if(l!=="__proto__"){var u=c[3]?SC(c[4]):!0;switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(l.length>2&&l.slice(-2)==="[]"){if(l=l.substring(0,l.length-2),l==="__proto__")return;r[l]?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]}Array.isArray(r[l])?r[l].push(u):r[l]=u}}}}),Object.keys(e).filter(function(o,A,a){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var c=c9(o),l=e,u=c.pop(),h=u.replace(/\\\./g,".");return c.forEach(function(f,d,E){f!=="__proto__"&&((!l[f]||typeof l[f]!="object")&&(l[f]={}),l=l[f])}),l===e&&h===u?!1:(l[h]=e[o],!0)}).forEach(function(o,A,a){delete e[o]}),e}function l9(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function Bl(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&l9(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function SC(t,e){if(t=(t||"").trim(),l9(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",i=0,s=t.length;i<s;i++){var o=t.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var d9=g((nNe,f9)=>{"use strict";var IR=1,h9=2;function vQe(){return""}function kQe(t,e,r){return t.slice(e,r).replace(/\S/g," ")}f9.exports=function(t,e){e=e||{};for(var r,n,i=!1,s=!1,o=0,A="",a=e.whitespace===!1?vQe:kQe,c=0;c<t.length;c++){if(r=t[c],n=t[c+1],!s&&r==='"'){var l=t[c-1]==="\\"&&t[c-2]!=="\\";l||(i=!i)}if(!i){if(!s&&r+n==="//")A+=t.slice(o,c),o=c,s=IR,c++;else if(s===IR&&r+n===`\r
|
|
98
98
|
`){c++,s=!1,A+=a(t,o,c),o=c;continue}else if(s===IR&&r===`
|
|
99
|
-
`)s=!1,A+=a(t,o,c),o=c;else if(!s&&r+n==="/*"){A+=t.slice(o,c),o=c,s=h9,c++;continue}else if(s===h9&&r+n==="*/"){c++,s=!1,A+=a(t,o,c+1),o=c+1;continue}}}return A+(s?a(t.substr(o)):t.substr(o))}});var E9=g(Ql=>{"use strict";var g9=require("fs"),_Qe=u9(),Af=require("path"),DQe=d9(),xQe=Ql.parse=function(t){return/^\s*{/.test(t)?JSON.parse(DQe(t)):_Qe.parse(t)},FQe=Ql.file=function(){var t=[].slice.call(arguments).filter(function(i){return i!=null});for(var e in t)if(typeof t[e]!="string")return;var r=Af.join.apply(null,t),n;try{return g9.readFileSync(r,"utf-8")}catch{return}},i1e=Ql.json=function(){var t=FQe.apply(null,arguments);return t?xQe(t):null},s1e=Ql.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var i in e)if(i.toLowerCase().indexOf(t.toLowerCase())===0){for(var s=i.substring(n).split("__"),o;(o=s.indexOf(""))>-1;)s.splice(o,1);var A=r;s.forEach(function(c,l){!c||typeof A!="object"||(l===s.length-1&&(A[c]=e[i]),A[c]===void 0&&(A[c]={}),A=A[c])})}return r},o1e=Ql.find=function(){var t=Af.join.apply(null,[].slice.call(arguments));function e(r,n){var i=Af.join(r,n);try{return g9.statSync(i),i}catch{if(Af.dirname(r)!==r)return e(Af.dirname(r),n)}}return e(process.cwd(),t)}});var Q9=g((a1e,B9)=>{"use strict";function C9(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function m9(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function I9(t){var e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=I9(r):C9(r)?e[n]=m9(r):e[n]=BR({},r):e[n]=r}),e}function p9(t,e){return e==="__proto__"?void 0:t[e]}var BR=B9.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,n,i;return e.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(n=p9(t,o),r=p9(s,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=I9(r);return}else if(C9(r)){t[o]=m9(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[o]=BR({},r);return}else{t[o]=BR(n,r);return}})}),t}});var S9=g((c1e,b9)=>{"use strict";function NQe(t,e){var r=t;e.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=e[e.length-1];return n in r}function y9(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function w9(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}b9.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(S){r.bools[S]=!0});var n={};function i(S){return n[S].some(function(_){return r.bools[_]})}Object.keys(e.alias||{}).forEach(function(S){n[S]=[].concat(e.alias[S]),n[S].forEach(function(_){n[_]=[S].concat(n[S].filter(function(O){return _!==O}))})}),[].concat(e.string).filter(Boolean).forEach(function(S){r.strings[S]=!0,n[S]&&[].concat(n[S]).forEach(function(_){r.strings[_]=!0})});var s=e.default||{},o={_:[]};function A(S,_){return r.allBools&&/^--[^=]+$/.test(_)||r.strings[S]||r.bools[S]||n[S]}function a(S,_,O){for(var N=S,V=0;V<_.length-1;V++){var M=_[V];if(w9(N,M))return;N[M]===void 0&&(N[M]={}),(N[M]===Object.prototype||N[M]===Number.prototype||N[M]===String.prototype)&&(N[M]={}),N[M]===Array.prototype&&(N[M]=[]),N=N[M]}var j=_[_.length-1];w9(N,j)||((N===Object.prototype||N===Number.prototype||N===String.prototype)&&(N={}),N===Array.prototype&&(N=[]),N[j]===void 0||r.bools[j]||typeof N[j]=="boolean"?N[j]=O:Array.isArray(N[j])?N[j].push(O):N[j]=[N[j],O])}function c(S,_,O){if(!(O&&r.unknownFn&&!A(S,O)&&r.unknownFn(O)===!1)){var N=!r.strings[S]&&y9(_)?Number(_):_;a(o,S.split("."),N),(n[S]||[]).forEach(function(V){a(o,V.split("."),N)})}}Object.keys(r.bools).forEach(function(S){c(S,s[S]===void 0?!1:s[S])});var l=[];t.indexOf("--")!==-1&&(l=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var u=0;u<t.length;u++){var h=t[u],f,d;if(/^--.+=/.test(h)){var E=h.match(/^--([^=]+)=([\s\S]*)$/);f=E[1];var p=E[2];r.bools[f]&&(p=p!=="false"),c(f,p,h)}else if(/^--no-.+/.test(h))f=h.match(/^--no-(.+)/)[1],c(f,!1,h);else if(/^--.+/.test(h))f=h.match(/^--(.+)/)[1],d=t[u+1],d!==void 0&&!/^(-|--)[^-]/.test(d)&&!r.bools[f]&&!r.allBools&&(!n[f]||!i(f))?(c(f,d,h),u+=1):/^(true|false)$/.test(d)?(c(f,d==="true",h),u+=1):c(f,r.strings[f]?"":!0,h);else if(/^-[^-]+/.test(h)){for(var C=h.slice(1,-1).split(""),w=!1,R=0;R<C.length;R++){if(d=h.slice(R+2),d==="-"){c(C[R],d,h);continue}if(/[A-Za-z]/.test(C[R])&&d[0]==="="){c(C[R],d.slice(1),h),w=!0;break}if(/[A-Za-z]/.test(C[R])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(d)){c(C[R],d,h),w=!0;break}if(C[R+1]&&C[R+1].match(/\W/)){c(C[R],h.slice(R+2),h),w=!0;break}else c(C[R],r.strings[C[R]]?"":!0,h)}f=h.slice(-1)[0],!w&&f!=="-"&&(t[u+1]&&!/^(-|--)[^-]/.test(t[u+1])&&!r.bools[f]&&(!n[f]||!i(f))?(c(f,t[u+1],h),u+=1):t[u+1]&&/^(true|false)$/.test(t[u+1])?(c(f,t[u+1]==="true",h),u+=1):c(f,r.strings[f]?"":!0,h))}else if((!r.unknownFn||r.unknownFn(h)!==!1)&&o._.push(r.strings._||!y9(h)?h:Number(h)),e.stopEarly){o._.push.apply(o._,t.slice(u+1));break}}return Object.keys(s).forEach(function(S){NQe(o,S.split("."))||(a(o,S.split("."),s[S]),(n[S]||[]).forEach(function(_){a(o,_.split("."),s[S])}))}),e["--"]?o["--"]=l.slice():l.forEach(function(S){o._.push(S)}),o}});var QR=g((l1e,k9)=>{"use strict";var af=E9(),yl=require("path").join,TQe=Q9(),R9="/etc",v9=process.platform==="win32",cf=v9?process.env.USERPROFILE:process.env.HOME;k9.exports=function(t,e,r,n){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=S9()(process.argv.slice(2))),e=(typeof e=="string"?af.json(e):e)||{},n=n||af.parse;var i=af.env(t+"_"),s=[e],o=[];function A(a){if(!(o.indexOf(a)>=0)){var c=af.file(a);c&&(s.push(n(c)),o.push(a))}}return v9||[yl(R9,t,"config"),yl(R9,t+"rc")].forEach(A),cf&&[yl(cf,".config",t,"config"),yl(cf,".config",t),yl(cf,"."+t,"config"),yl(cf,"."+t+"rc")].forEach(A),A(af.find("."+t+"rc")),i.config&&A(i.config),r.config&&A(r.config),TQe.apply(null,s.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var D9=g((u1e,_9)=>{"use strict";_9.exports=function(t){var e=QR()("npm",{registry:"https://registry.npmjs.org/"}),r=e[t+":registry"]||e.registry;return r.slice(-1)==="/"?r:r+"/"}});var N9=g((yR,F9)=>{"use strict";var RC=require("buffer"),Si=RC.Buffer;function x9(t,e){for(var r in t)e[r]=t[r]}Si.from&&Si.alloc&&Si.allocUnsafe&&Si.allocUnsafeSlow?F9.exports=RC:(x9(RC,yR),yR.Buffer=UA);function UA(t,e,r){return Si(t,e,r)}UA.prototype=Object.create(Si.prototype);x9(Si,UA);UA.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Si(t,e,r)};UA.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Si(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};UA.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Si(t)};UA.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return RC.SlowBuffer(t)}});var L9=g((h1e,M9)=>{"use strict";var T9=N9().Buffer;function MQe(t){return T9.from(t,"base64").toString("utf8")}function LQe(t){return T9.from(t,"utf8").toString("base64")}M9.exports={decodeBase64:MQe,encodeBase64:LQe}});var Y9=g((f1e,q9)=>{"use strict";var wR=require("url"),H9=L9(),UQe=H9.decodeBase64,OQe=H9.encodeBase64,U9=":_authToken",O9=":username",P9=":_password";q9.exports=function(){var t,e;return arguments.length>=2?(t=arguments[0],e=arguments[1]):typeof arguments[0]=="string"?t=arguments[0]:e=arguments[0],e=e||{},e.npmrc=e.npmrc||QR()("npm",{registry:"https://registry.npmjs.org/"}),t=t||e.npmrc.registry,G9(t,e)||PQe(e.npmrc)};function G9(t,e){for(var r=wR.parse(t,!1,!0),n;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";var i="//"+r.host+n.replace(/\/$/,""),s=GQe(i,e.npmrc);if(s)return s;if(!e.recursive)return/\/$/.test(t)?void 0:G9(wR.resolve(t,"."),e);r.pathname=wR.resolve(HQe(n),"..")||"/"}}function PQe(t){if(t._auth)return{token:t._auth,type:"Basic"}}function HQe(t){return t[t.length-1]==="/"?t:t+"/"}function GQe(t,e){var r=qQe(e[t+U9]||e[t+"/"+U9]);if(r)return r;var n=e[t+O9]||e[t+"/"+O9],i=e[t+P9]||e[t+"/"+P9],s=YQe(n,i);if(s)return s}function qQe(t){if(t){var e=t.replace(/^\$\{?([^}]*)\}?$/,function(r,n){return process.env[n]});return{token:e,type:"Bearer"}}}function YQe(t,e){if(!(!t||!e)){var r=UQe(e.replace(/^\$\{?([^}]*)\}?$/,function(i,s){return process.env[s]})),n=OQe(t+":"+r);return{token:n,type:"Basic",password:r,username:t}}}});var j9=g((d1e,W9)=>{"use strict";var{URL:VQe}=require("url"),{join:V9}=require("path"),lf=require("fs"),{promisify:bR}=require("util"),{tmpdir:JQe}=require("os"),WQe=D9(),jQe=bR(lf.writeFile),zQe=bR(lf.mkdir),ZQe=bR(lf.readFile),$Qe=(t,e)=>t.localeCompare(e,"en-US",{numeric:!0}),KQe=t=>encodeURIComponent(t).replace(/^%40/,"@"),XQe=async(t,e)=>{let r=JQe(),n=V9(r,"update-check");lf.existsSync(n)||await zQe(n);let i=`${t.name}-${e}.json`;return t.scope&&(i=`${t.scope}-${i}`),V9(n,i)},eye=async(t,e,r)=>{if(lf.existsSync(t)){let n=await ZQe(t,"utf8"),{lastUpdate:i,latest:s}=JSON.parse(n);if(i+r>e)return{shouldCheck:!1,latest:s}}return{shouldCheck:!0,latest:null}},tye=async(t,e,r)=>{let n=JSON.stringify({latest:e,lastUpdate:r});await jQe(t,n,"utf8")},J9=(t,e)=>new Promise((r,n)=>{let i={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};e&&(i.headers.authorization=`${e.type} ${e.token}`);let{get:s}=t.protocol==="https:"?require("https"):require("http");s(i,o=>{let{statusCode:A}=o;if(A!==200){let c=new Error(`Request failed with code ${A}`);c.code=A,n(c),o.resume();return}let a="";o.setEncoding("utf8"),o.on("data",c=>{a+=c}),o.on("end",()=>{try{let c=JSON.parse(a);r(c)}catch(c){n(c)}})}).on("error",n).on("timeout",n)}),rye=async({full:t,scope:e},r)=>{let n=WQe(e),i=new VQe(t,n),s=null;try{s=await J9(i)}catch(A){if(A.code&&String(A.code).startsWith(4)){let c=Y9()(n,{recursive:!0});s=await J9(i,c)}else throw A}let o=s["dist-tags"][r];if(!o)throw new Error(`Distribution tag ${r} is not available`);return o},nye={interval:36e5,distTag:"latest"},iye=t=>{let e={full:KQe(t)};if(t.includes("/")){let r=t.split("/");e.scope=r[0],e.name=r[1]}else e.scope=null,e.name=t;return e};W9.exports=async(t,e)=>{if(typeof t!="object")throw new Error("The first parameter should be your package.json file content");let r=iye(t.name),n=Date.now(),{distTag:i,interval:s}=Object.assign({},nye,e),o=await XQe(r,i),A=null,a=!0;return{shouldCheck:a,latest:A}=await eye(o,n,s),a&&(A=await rye(r,i),await tye(o,A,n)),$Qe(t.version,A)===-1?{latest:A,fromCache:!a}:null}});var l8=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});function i0e(t){return t&&t.__esModule?t:{default:t}}var o8=Object.defineProperty,i8=Object.getOwnPropertySymbols,s0e=Object.prototype.hasOwnProperty,o0e=Object.prototype.propertyIsEnumerable,s8=(t,e,r)=>e in t?o8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A0e=(t,e)=>{for(var r in e||(e={}))s0e.call(e,r)&&s8(t,r,e[r]);if(i8)for(var r of i8(e))o0e.call(e,r)&&s8(t,r,e[r]);return t},a0e=(t,e)=>{for(var r in e)o8(t,r,{get:e[r],enumerable:!0})},c0e=(t,e,r)=>new Promise((n,i)=>{var s=a=>{try{A(r.next(a))}catch(c){i(c)}},o=a=>{try{A(r.throw(a))}catch(c){i(c)}},A=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);A((r=r.apply(t,e)).next())}),A8={};a0e(A8,{configDir:()=>c8,darwinConfig:()=>xR,getPathForPlatform:()=>NR,getPlatform:()=>DR,linuxConfig:()=>MC,winConfig:()=>FR});var l0e=require("fs/promises"),u0e=require("path"),a8=i0e(u0e);function DR(){return process.platform}function MC(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return a8.default.join(process.env.HOME,".config")}function xR(){if(process.env.HOME!==void 0)return a8.default.join(process.env.HOME,"/Library/Application Support")}function FR(){return process.env.APPDATA}function NR({platform:t}){switch(t){case"linux":return MC();case"darwin":return xR();case"win32":return FR();default:return MC()}}function c8(){return c0e(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:DR(),n=NR({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield l0e.stat.call(void 0,n),n}catch{return}}})}vi.__spreadValues=A0e;vi.getPlatform=DR;vi.linuxConfig=MC;vi.darwinConfig=xR;vi.winConfig=FR;vi.getPathForPlatform=NR;vi.configDir=c8;vi.config_dir_exports=A8});var u8=g(TR=>{"use strict";Object.defineProperty(TR,"__esModule",{value:!0});var h0e=l8();TR.configDir=h0e.configDir});var ms=g((Cs,LC)=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var E8=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function B0e(t){return E8.includes(t)}var Q0e=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...E8];function y0e(t){return Q0e.includes(t)}var w0e=["null","undefined","string","number","bigint","boolean","symbol"];function b0e(t){return w0e.includes(t)}function Tl(t){return e=>typeof e===t}var{toString:p8}=Object.prototype,df=t=>{let e=p8.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&Q.domElement(t))return"HTMLElement";if(y0e(e))return e},We=t=>e=>df(e)===t;function Q(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(Q.observable(t))return"Observable";if(Q.array(t))return"Array";if(Q.buffer(t))return"Buffer";let e=df(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}Q.undefined=Tl("undefined");Q.string=Tl("string");var S0e=Tl("number");Q.number=t=>S0e(t)&&!Q.nan(t);Q.bigint=Tl("bigint");Q.function_=Tl("function");Q.null_=t=>t===null;Q.class_=t=>Q.function_(t)&&t.toString().startsWith("class ");Q.boolean=t=>t===!0||t===!1;Q.symbol=Tl("symbol");Q.numericString=t=>Q.string(t)&&!Q.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));Q.array=(t,e)=>Array.isArray(t)?Q.function_(e)?t.every(e):!0:!1;Q.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};Q.blob=t=>We("Blob")(t);Q.nullOrUndefined=t=>Q.null_(t)||Q.undefined(t);Q.object=t=>!Q.null_(t)&&(typeof t=="object"||Q.function_(t));Q.iterable=t=>{var e;return Q.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};Q.asyncIterable=t=>{var e;return Q.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};Q.generator=t=>{var e,r;return Q.iterable(t)&&Q.function_((e=t)===null||e===void 0?void 0:e.next)&&Q.function_((r=t)===null||r===void 0?void 0:r.throw)};Q.asyncGenerator=t=>Q.asyncIterable(t)&&Q.function_(t.next)&&Q.function_(t.throw);Q.nativePromise=t=>We("Promise")(t);var R0e=t=>{var e,r;return Q.function_((e=t)===null||e===void 0?void 0:e.then)&&Q.function_((r=t)===null||r===void 0?void 0:r.catch)};Q.promise=t=>Q.nativePromise(t)||R0e(t);Q.generatorFunction=We("GeneratorFunction");Q.asyncGeneratorFunction=t=>df(t)==="AsyncGeneratorFunction";Q.asyncFunction=t=>df(t)==="AsyncFunction";Q.boundFunction=t=>Q.function_(t)&&!t.hasOwnProperty("prototype");Q.regExp=We("RegExp");Q.date=We("Date");Q.error=We("Error");Q.map=t=>We("Map")(t);Q.set=t=>We("Set")(t);Q.weakMap=t=>We("WeakMap")(t);Q.weakSet=t=>We("WeakSet")(t);Q.int8Array=We("Int8Array");Q.uint8Array=We("Uint8Array");Q.uint8ClampedArray=We("Uint8ClampedArray");Q.int16Array=We("Int16Array");Q.uint16Array=We("Uint16Array");Q.int32Array=We("Int32Array");Q.uint32Array=We("Uint32Array");Q.float32Array=We("Float32Array");Q.float64Array=We("Float64Array");Q.bigInt64Array=We("BigInt64Array");Q.bigUint64Array=We("BigUint64Array");Q.arrayBuffer=We("ArrayBuffer");Q.sharedArrayBuffer=We("SharedArrayBuffer");Q.dataView=We("DataView");Q.enumCase=(t,e)=>Object.values(e).includes(t);Q.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;Q.urlInstance=t=>We("URL")(t);Q.urlString=t=>{if(!Q.string(t))return!1;try{return new URL(t),!0}catch{return!1}};Q.truthy=t=>!!t;Q.falsy=t=>!t;Q.nan=t=>Number.isNaN(t);Q.primitive=t=>Q.null_(t)||b0e(typeof t);Q.integer=t=>Number.isInteger(t);Q.safeInteger=t=>Number.isSafeInteger(t);Q.plainObject=t=>{if(p8.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};Q.typedArray=t=>B0e(df(t));var v0e=t=>Q.safeInteger(t)&&t>=0;Q.arrayLike=t=>!Q.nullOrUndefined(t)&&!Q.function_(t)&&v0e(t.length);Q.inRange=(t,e)=>{if(Q.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(Q.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var k0e=1,_0e=["innerHTML","ownerDocument","style","attributes","nodeValue"];Q.domElement=t=>Q.object(t)&&t.nodeType===k0e&&Q.string(t.nodeName)&&!Q.plainObject(t)&&_0e.every(e=>e in t);Q.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};Q.nodeStream=t=>Q.object(t)&&Q.function_(t.pipe)&&!Q.observable(t);Q.infinite=t=>t===1/0||t===-1/0;var C8=t=>e=>Q.integer(e)&&Math.abs(e%2)===t;Q.evenInteger=C8(0);Q.oddInteger=C8(1);Q.emptyArray=t=>Q.array(t)&&t.length===0;Q.nonEmptyArray=t=>Q.array(t)&&t.length>0;Q.emptyString=t=>Q.string(t)&&t.length===0;var D0e=t=>Q.string(t)&&!/\S/.test(t);Q.emptyStringOrWhitespace=t=>Q.emptyString(t)||D0e(t);Q.nonEmptyString=t=>Q.string(t)&&t.length>0;Q.nonEmptyStringAndNotWhitespace=t=>Q.string(t)&&!Q.emptyStringOrWhitespace(t);Q.emptyObject=t=>Q.object(t)&&!Q.map(t)&&!Q.set(t)&&Object.keys(t).length===0;Q.nonEmptyObject=t=>Q.object(t)&&!Q.map(t)&&!Q.set(t)&&Object.keys(t).length>0;Q.emptySet=t=>Q.set(t)&&t.size===0;Q.nonEmptySet=t=>Q.set(t)&&t.size>0;Q.emptyMap=t=>Q.map(t)&&t.size===0;Q.nonEmptyMap=t=>Q.map(t)&&t.size>0;Q.propertyKey=t=>Q.any([Q.string,Q.number,Q.symbol],t);Q.formData=t=>We("FormData")(t);Q.urlSearchParams=t=>We("URLSearchParams")(t);var m8=(t,e,r)=>{if(!Q.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};Q.any=(t,...e)=>(Q.array(t)?t:[t]).some(n=>m8(Array.prototype.some,n,e));Q.all=(t,...e)=>m8(Array.prototype.every,t,e);var Y=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${Q(o)}\``))].join(", ")}`:`received value of type \`${Q(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};Cs.assert={undefined:t=>Y(Q.undefined(t),"undefined",t),string:t=>Y(Q.string(t),"string",t),number:t=>Y(Q.number(t),"number",t),bigint:t=>Y(Q.bigint(t),"bigint",t),function_:t=>Y(Q.function_(t),"Function",t),null_:t=>Y(Q.null_(t),"null",t),class_:t=>Y(Q.class_(t),"Class",t),boolean:t=>Y(Q.boolean(t),"boolean",t),symbol:t=>Y(Q.symbol(t),"symbol",t),numericString:t=>Y(Q.numericString(t),"string with a number",t),array:(t,e)=>{Y(Q.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>Y(Q.buffer(t),"Buffer",t),blob:t=>Y(Q.blob(t),"Blob",t),nullOrUndefined:t=>Y(Q.nullOrUndefined(t),"null or undefined",t),object:t=>Y(Q.object(t),"Object",t),iterable:t=>Y(Q.iterable(t),"Iterable",t),asyncIterable:t=>Y(Q.asyncIterable(t),"AsyncIterable",t),generator:t=>Y(Q.generator(t),"Generator",t),asyncGenerator:t=>Y(Q.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>Y(Q.nativePromise(t),"native Promise",t),promise:t=>Y(Q.promise(t),"Promise",t),generatorFunction:t=>Y(Q.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>Y(Q.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>Y(Q.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>Y(Q.boundFunction(t),"Function",t),regExp:t=>Y(Q.regExp(t),"RegExp",t),date:t=>Y(Q.date(t),"Date",t),error:t=>Y(Q.error(t),"Error",t),map:t=>Y(Q.map(t),"Map",t),set:t=>Y(Q.set(t),"Set",t),weakMap:t=>Y(Q.weakMap(t),"WeakMap",t),weakSet:t=>Y(Q.weakSet(t),"WeakSet",t),int8Array:t=>Y(Q.int8Array(t),"Int8Array",t),uint8Array:t=>Y(Q.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>Y(Q.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>Y(Q.int16Array(t),"Int16Array",t),uint16Array:t=>Y(Q.uint16Array(t),"Uint16Array",t),int32Array:t=>Y(Q.int32Array(t),"Int32Array",t),uint32Array:t=>Y(Q.uint32Array(t),"Uint32Array",t),float32Array:t=>Y(Q.float32Array(t),"Float32Array",t),float64Array:t=>Y(Q.float64Array(t),"Float64Array",t),bigInt64Array:t=>Y(Q.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>Y(Q.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>Y(Q.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>Y(Q.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>Y(Q.dataView(t),"DataView",t),enumCase:(t,e)=>Y(Q.enumCase(t,e),"EnumCase",t),urlInstance:t=>Y(Q.urlInstance(t),"URL",t),urlString:t=>Y(Q.urlString(t),"string with a URL",t),truthy:t=>Y(Q.truthy(t),"truthy",t),falsy:t=>Y(Q.falsy(t),"falsy",t),nan:t=>Y(Q.nan(t),"NaN",t),primitive:t=>Y(Q.primitive(t),"primitive",t),integer:t=>Y(Q.integer(t),"integer",t),safeInteger:t=>Y(Q.safeInteger(t),"integer",t),plainObject:t=>Y(Q.plainObject(t),"plain object",t),typedArray:t=>Y(Q.typedArray(t),"TypedArray",t),arrayLike:t=>Y(Q.arrayLike(t),"array-like",t),domElement:t=>Y(Q.domElement(t),"HTMLElement",t),observable:t=>Y(Q.observable(t),"Observable",t),nodeStream:t=>Y(Q.nodeStream(t),"Node.js Stream",t),infinite:t=>Y(Q.infinite(t),"infinite number",t),emptyArray:t=>Y(Q.emptyArray(t),"empty array",t),nonEmptyArray:t=>Y(Q.nonEmptyArray(t),"non-empty array",t),emptyString:t=>Y(Q.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>Y(Q.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>Y(Q.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>Y(Q.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>Y(Q.emptyObject(t),"empty object",t),nonEmptyObject:t=>Y(Q.nonEmptyObject(t),"non-empty object",t),emptySet:t=>Y(Q.emptySet(t),"empty set",t),nonEmptySet:t=>Y(Q.nonEmptySet(t),"non-empty set",t),emptyMap:t=>Y(Q.emptyMap(t),"empty map",t),nonEmptyMap:t=>Y(Q.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>Y(Q.propertyKey(t),"PropertyKey",t),formData:t=>Y(Q.formData(t),"FormData",t),urlSearchParams:t=>Y(Q.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>Y(Q.evenInteger(t),"even integer",t),oddInteger:t=>Y(Q.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>Y(Q.directInstanceOf(t,e),"T",t),inRange:(t,e)=>Y(Q.inRange(t,e),"in range",t),any:(t,...e)=>Y(Q.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>Y(Q.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(Q,{class:{value:Q.class_},function:{value:Q.function_},null:{value:Q.null_}});Object.defineProperties(Cs.assert,{class:{value:Cs.assert.class_},function:{value:Cs.assert.function_},null:{value:Cs.assert.null_}});Cs.default=Q;LC.exports=Q;LC.exports.default=Q;LC.exports.assert=Cs.assert});var I8=g((z1e,UR)=>{"use strict";var UC=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},OC=class t{static fn(e){return(...r)=>new t((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=A=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(A))},s=A=>{this._isPending=!1,n(A)},o=A=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(A)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:A=>{this._rejectOnCancel=A}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new UC(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(OC.prototype,Promise.prototype);UR.exports=OC;UR.exports.CancelError=UC});var B8=g((PR,HR)=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});function x0e(t){return t.encrypted}var OR=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),x0e(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};PR.default=OR;HR.exports=OR;HR.exports.default=OR});var Q8=g((qR,YR)=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});var F0e=B8(),N0e=require("util"),T0e=Number(process.versions.node.split(".")[0]),GR=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=A=>{let a=A.emit.bind(A);A.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,A.emit=a),a(c,...l))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||T0e>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=A=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,N0e.types.isProxy(A))return;let a=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};A.prependOnceListener("lookup",a),F0e.default(A,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(A.removeListener("lookup",a),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var A;e.upload=Date.now(),e.phases.request=e.upload-((A=e.secureConnect)!==null&&A!==void 0?A:e.connect)};return(typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",A=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,A.timings=e,r(A),A.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),A.prependOnceListener("aborted",n)}),e};qR.default=GR;YR.exports=GR;YR.exports.default=GR});var k8=g((Z1e,WR)=>{"use strict";var{V4MAPPED:M0e,ADDRCONFIG:L0e,ALL:v8,promises:{Resolver:y8},lookup:U0e}=require("dns"),{promisify:VR}=require("util"),O0e=require("os"),Ml=Symbol("cacheableLookupCreateConnection"),JR=Symbol("cacheableLookupInstance"),w8=Symbol("expires"),P0e=typeof v8=="number",b8=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},H0e=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},S8=()=>{let t=!1,e=!1;for(let r of Object.values(O0e.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},G0e=t=>Symbol.iterator in t,R8={ttl:!0},q0e={all:!0},PC=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new y8,lookup:o=U0e}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=VR(o),this._resolver instanceof y8?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=VR(this._resolver.resolve4.bind(this._resolver)),this._resolve6=VR(this._resolver.resolve6.bind(this._resolver))),this._iface=S8(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let A=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);A.unref&&A.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&M0e&&(P0e&&r.hints&v8||i.length===0)?H0e(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&L0e){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,R8),this._resolve6(e,R8)].map(c=>r(c))),s=0,o=0,A=0,a=Date.now();for(let c of n)c.family=4,c.expires=a+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=a+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?A=Math.min(s,o):A=s:A=o,{entries:[...n,...i],cacheTtl:A}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[w8]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}G0e(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,q0e);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let A=o[w8];i>=A?this._cache.delete(s):A<n&&(n=A)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(b8(e),Ml in e)throw new Error("CacheableLookup has been already installed");e[Ml]=e.createConnection,e[JR]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Ml](r,n))}uninstall(e){if(b8(e),e[Ml]){if(e[JR]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ml],delete e[Ml],delete e[JR]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=S8(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};WR.exports=PC;WR.exports.default=PC});var x8=g(($1e,D8)=>{"use strict";var Y0e="text/plain",V0e="us-ascii",_8=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),J0e=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let A=!1;o[o.length-1]==="base64"&&(o.pop(),A=!0);let a=(o.shift()||"").toLowerCase(),l=[...o.map(u=>{let[h,f=""]=u.split("=").map(d=>d.trim());return h==="charset"&&(f=f.toLowerCase(),f===V0e)?"":`${h}${f?`=${f}`:""}`}).filter(Boolean)];return A&&l.push("base64"),(l.length!==0||a&&a!==Y0e)&&l.unshift(a),`data:${l.join(";")},${A?i.trim():i}${s?`#${s}`:""}`},W0e=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return J0e(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),A=o[o.length-1];_8(A,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])_8(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};D8.exports=W0e});var T8=g((K1e,N8)=>{"use strict";N8.exports=F8;function F8(t,e){if(t&&e)return F8(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(A){s[A]=o[A]}),s}}});var zR=g((X1e,jR)=>{"use strict";var M8=T8();jR.exports=M8(HC);jR.exports.strict=M8(L8);HC.proto=HC(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return HC(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return L8(this)},configurable:!0})});function HC(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function L8(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 P8=g((eTe,O8)=>{"use strict";var j0e=zR(),z0e=function(){},Z0e=function(t){return t.setHeader&&typeof t.abort=="function"},$0e=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},U8=function(t,e,r){if(typeof e=="function")return U8(t,null,e);e||(e={}),r=j0e(r||z0e);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,A=!1,a=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},u=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},h=function(p){r.call(t,p)},f=function(){process.nextTick(d)},d=function(){if(!A){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",c)};return Z0e(t)?(t.on("complete",c),t.on("abort",f),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",a),t.on("close",a)),$0e(t)&&t.on("exit",u),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",f),function(){A=!0,t.removeListener("complete",c),t.removeListener("abort",f),t.removeListener("request",E),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",u),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",f)}};O8.exports=U8});var q8=g((tTe,G8)=>{"use strict";var K0e=zR(),X0e=P8(),ZR=require("fs"),gf=function(){},ewe=/^v?\.0/.test(process.version),GC=function(t){return typeof t=="function"},twe=function(t){return!ewe||!ZR?!1:(t instanceof(ZR.ReadStream||gf)||t instanceof(ZR.WriteStream||gf))&&GC(t.close)},rwe=function(t){return t.setHeader&&GC(t.abort)},nwe=function(t,e,r,n){n=K0e(n);var i=!1;t.on("close",function(){i=!0}),X0e(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,twe(t))return t.close(gf);if(rwe(t))return t.abort();if(GC(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},H8=function(t){t()},iwe=function(t,e){return t.pipe(e)},swe=function(){var t=Array.prototype.slice.call(arguments),e=GC(t[t.length-1]||gf)&&t.pop()||gf;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,A=s>0;return nwe(i,o,A,function(a){r||(r=a),a&&n.forEach(H8),!o&&(n.forEach(H8),e(r))})});return t.reduce(iwe)};G8.exports=swe});var V8=g((rTe,Y8)=>{"use strict";var{PassThrough:owe}=require("stream");Y8.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new owe({objectMode:i});r&&s.setEncoding(r);let o=0,A=[];return s.on("data",a=>{A.push(a),i?o=A.length:o+=a.length}),s.getBufferedValue=()=>e?A:n?Buffer.concat(A,o):A.join(""),s.getBufferedLength=()=>o,s}});var J8=g((nTe,Ll)=>{"use strict";var{constants:Awe}=require("buffer"),awe=q8(),cwe=V8(),qC=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function YC(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=A=>{A&&n.getBufferedLength()<=Awe.MAX_LENGTH&&(A.bufferedData=n.getBufferedValue()),s(A)};n=awe(t,cwe(e),A=>{if(A){o(A);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new qC)})}),n.getBufferedValue()}Ll.exports=YC;Ll.exports.default=YC;Ll.exports.buffer=(t,e)=>YC(t,{...e,encoding:"buffer"});Ll.exports.array=(t,e)=>YC(t,{...e,array:!0});Ll.exports.MaxBufferError=qC});var j8=g((sTe,W8)=>{"use strict";var lwe=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),uwe=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),hwe=new Set([500,502,503,504]),fwe={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},dwe={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function XA(t){let e=parseInt(t,10);return isFinite(e)?e:0}function gwe(t){return t?hwe.has(t.status):!0}function $R(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Ewe(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}W8.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:A}={}){if(A){this._fromObject(A);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=$R(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=$R(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Ewe(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&uwe.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||lwe.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=$R(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)fwe[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return XA(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return XA(this._rescc["s-maxage"])}if(this._rescc["max-age"])return XA(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+XA(this._rescc["stale-if-error"]),n=e+XA(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+XA(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+XA(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&gwe(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!dwe[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var VC=g((oTe,z8)=>{"use strict";z8.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var $8=g((ATe,Z8)=>{"use strict";var pwe=require("stream").Readable,Cwe=VC(),KR=class extends pwe{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=Cwe(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};Z8.exports=KR});var X8=g((aTe,K8)=>{"use strict";var mwe=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];K8.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(mwe));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var tj=g((cTe,ej)=>{"use strict";var Iwe=require("stream").PassThrough,Bwe=X8(),Qwe=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new Iwe;return Bwe(t,e),t.pipe(e)};ej.exports=Qwe});var rj=g(XR=>{"use strict";XR.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};XR.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var oj=g((uTe,sj)=>{"use strict";var ywe=require("events"),nj=rj(),wwe=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},ij=["sqlite","postgres","mysql","mongo","redis","tiered"],ev=class extends ywe{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:nj.stringify,deserialize:nj.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=wwe(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,A]of typeof s=="function"?s(this.opts.store.namespace):s){let a=this.opts.deserialize(A);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),a.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return ij.includes(this.opts.store.opts.dialect)||ij.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let A of s)o.push(Promise.resolve().then(()=>n.get(A)).then(a=>typeof a=="string"?this.opts.deserialize(a):this.opts.compression?this.opts.deserialize(a):a).then(a=>{if(a!=null)return typeof a.expires=="number"&&Date.now()>a.expires?this.delete(A).then(()=>{}):r&&r.raw?a:a.value}));return Promise.allSettled(o).then(A=>{let a=[];for(let c of A)a.push(c.value);return a})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let A=[];for(let a of o){if(typeof a=="string"&&(a=this.opts.deserialize(a)),a==null){A.push(void 0);continue}typeof a.expires=="number"&&Date.now()>a.expires?(this.delete(e).then(()=>{}),A.push(void 0)):A.push(r&&r.raw?a:a.value)}return A}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(A=>A.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};sj.exports=ev});var cj=g((hTe,aj)=>{"use strict";var bwe=require("events"),JC=require("url"),Swe=x8(),Rwe=J8(),tv=j8(),Aj=$8(),vwe=VC(),kwe=tj(),_we=oj(),Ef=class t{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new _we({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=rv(JC.parse(r)),r={};else if(r instanceof JC.URL)i=rv(JC.parse(r.toString())),r={};else{let[u,...h]=(r.path||"").split("?"),f=h.length>0?`?${h.join("?")}`:"";i=rv({...r,pathname:u,search:f})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...Dwe(i)},r.headers=vwe(r.headers);let s=new bwe,o=Swe(JC.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),A=`${r.method}:${o}`,a=!1,c=!1,l=u=>{c=!0;let h=!1,f,d=new Promise(p=>{f=()=>{h||(h=!0,p())}}),E=p=>{if(a&&!u.forceRefresh){p.status=p.statusCode;let w=tv.fromObject(a.cachePolicy).revalidatedPolicy(u,p);if(!w.modified){let R=w.policy.responseHeaders();p=new Aj(a.statusCode,R,a.body,a.url),p.cachePolicy=w.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new tv(u,p,u),p.fromCache=!1);let C;u.cache&&p.cachePolicy.storable()?(C=kwe(p),(async()=>{try{let w=Rwe.buffer(p);if(await Promise.race([d,new Promise(O=>p.once("end",O))]),h)return;let R=await w,S={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?a.statusCode:p.statusCode,body:R},_=u.strictTtl?p.cachePolicy.timeToLive():void 0;u.maxTtl&&(_=_?Math.min(_,u.maxTtl):u.maxTtl),await this.cache.set(A,S,_)}catch(w){s.emit("error",new t.CacheError(w))}})()):u.cache&&a&&(async()=>{try{await this.cache.delete(A)}catch(w){s.emit("error",new t.CacheError(w))}})(),s.emit("response",C||p),typeof n=="function"&&n(C||p)};try{let p=e(u,E);p.once("error",f),p.once("abort",f),s.emit("request",p)}catch(p){s.emit("error",new t.RequestError(p))}};return(async()=>{let u=async f=>{await Promise.resolve();let d=f.cache?await this.cache.get(A):void 0;if(typeof d=="undefined")return l(f);let E=tv.fromObject(d.cachePolicy);if(E.satisfiesWithoutRevalidation(f)&&!f.forceRefresh){let p=E.responseHeaders(),C=new Aj(d.statusCode,p,d.body,d.url);C.cachePolicy=E,C.fromCache=!0,s.emit("response",C),typeof n=="function"&&n(C)}else a=d,f.headers=E.revalidationHeaders(f),l(f)},h=f=>s.emit("error",new t.CacheError(f));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await u(r)}catch(f){r.automaticFailover&&!c&&l(r),s.emit("error",new t.CacheError(f))}})(),s}}};function Dwe(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function rv(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ef.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ef.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};aj.exports=Ef});var uj=g((gTe,lj)=>{"use strict";var xwe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];lj.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(xwe)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var fj=g((ETe,hj)=>{"use strict";var{Transform:Fwe,PassThrough:Nwe}=require("stream"),nv=require("zlib"),Twe=uj();hj.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof nv.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new Fwe({transform(A,a,c){n=!1,c(null,A)},flush(A){A()}}),s=new Nwe({autoDestroy:!1,destroy(A,a){t.destroy(),a(A)}}),o=r?nv.createBrotliDecompress():nv.createUnzip();return o.once("error",A=>{if(n&&!t.readable){s.end();return}s.destroy(A)}),Twe(t,s),t.pipe(i).pipe(o).pipe(s),s}});var sv=g((pTe,dj)=>{"use strict";var iv=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};dj.exports=iv});var Av=g((CTe,Cj)=>{"use strict";var Mwe=require("events"),Lwe=require("tls"),Uwe=require("http2"),Owe=sv(),gr=Symbol("currentStreamsCount"),gj=Symbol("request"),bn=Symbol("cachedOriginSet"),Ul=Symbol("gracefullyClosing"),Pwe=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],Hwe=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},Gwe=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ov=(t,e)=>{for(let r of t)r[bn].length<e[bn].length&&r[bn].every(n=>e[bn].includes(n))&&r[gr]+e[gr]<=e.remoteSettings.maxConcurrentStreams&&pj(r)},qwe=(t,e)=>{for(let r of t)e[bn].length<r[bn].length&&e[bn].every(n=>r[bn].includes(n))&&e[gr]+r[gr]<=r.remoteSettings.maxConcurrentStreams&&pj(e)},Ej=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let A=o[ea.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?A:!A});s.length!==0&&(r[n]=s)}return r},pj=t=>{t[Ul]=!0,t[gr]===0&&t.close()},ea=class t extends Mwe{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new Owe({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of Pwe)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),A=t.normalizeOrigin(e,r&&r.servername);if(A===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],u=-1,h=-1,f;for(let d of l){let E=d.remoteSettings.maxConcurrentStreams;if(E<u)break;if(d[bn].includes(A)){let p=d[gr];if(p>=E||d[Ul]||d.destroyed)continue;f||(u=E),p>h&&(f=d,h=p)}}if(f){if(n.length!==1){for(let{reject:d}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
99
|
+
`)s=!1,A+=a(t,o,c),o=c;else if(!s&&r+n==="/*"){A+=t.slice(o,c),o=c,s=h9,c++;continue}else if(s===h9&&r+n==="*/"){c++,s=!1,A+=a(t,o,c+1),o=c+1;continue}}}return A+(s?a(t.substr(o)):t.substr(o))}});var E9=g(Ql=>{"use strict";var g9=require("fs"),_Qe=u9(),Af=require("path"),DQe=d9(),xQe=Ql.parse=function(t){return/^\s*{/.test(t)?JSON.parse(DQe(t)):_Qe.parse(t)},FQe=Ql.file=function(){var t=[].slice.call(arguments).filter(function(i){return i!=null});for(var e in t)if(typeof t[e]!="string")return;var r=Af.join.apply(null,t),n;try{return g9.readFileSync(r,"utf-8")}catch{return}},iNe=Ql.json=function(){var t=FQe.apply(null,arguments);return t?xQe(t):null},sNe=Ql.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var i in e)if(i.toLowerCase().indexOf(t.toLowerCase())===0){for(var s=i.substring(n).split("__"),o;(o=s.indexOf(""))>-1;)s.splice(o,1);var A=r;s.forEach(function(c,l){!c||typeof A!="object"||(l===s.length-1&&(A[c]=e[i]),A[c]===void 0&&(A[c]={}),A=A[c])})}return r},oNe=Ql.find=function(){var t=Af.join.apply(null,[].slice.call(arguments));function e(r,n){var i=Af.join(r,n);try{return g9.statSync(i),i}catch{if(Af.dirname(r)!==r)return e(Af.dirname(r),n)}}return e(process.cwd(),t)}});var Q9=g((aNe,B9)=>{"use strict";function C9(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp}function m9(t){if(t instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function I9(t){var e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=I9(r):C9(r)?e[n]=m9(r):e[n]=BR({},r):e[n]=r}),e}function p9(t,e){return e==="__proto__"?void 0:t[e]}var BR=B9.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=Array.prototype.slice.call(arguments,1),r,n,i;return e.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(n=p9(t,o),r=p9(s,o),r!==t)if(typeof r!="object"||r===null){t[o]=r;return}else if(Array.isArray(r)){t[o]=I9(r);return}else if(C9(r)){t[o]=m9(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[o]=BR({},r);return}else{t[o]=BR(n,r);return}})}),t}});var S9=g((cNe,b9)=>{"use strict";function NQe(t,e){var r=t;e.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=e[e.length-1];return n in r}function y9(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function w9(t,e){return e==="constructor"&&typeof t[e]=="function"||e==="__proto__"}b9.exports=function(t,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(S){r.bools[S]=!0});var n={};function i(S){return n[S].some(function(_){return r.bools[_]})}Object.keys(e.alias||{}).forEach(function(S){n[S]=[].concat(e.alias[S]),n[S].forEach(function(_){n[_]=[S].concat(n[S].filter(function(O){return _!==O}))})}),[].concat(e.string).filter(Boolean).forEach(function(S){r.strings[S]=!0,n[S]&&[].concat(n[S]).forEach(function(_){r.strings[_]=!0})});var s=e.default||{},o={_:[]};function A(S,_){return r.allBools&&/^--[^=]+$/.test(_)||r.strings[S]||r.bools[S]||n[S]}function a(S,_,O){for(var N=S,V=0;V<_.length-1;V++){var M=_[V];if(w9(N,M))return;N[M]===void 0&&(N[M]={}),(N[M]===Object.prototype||N[M]===Number.prototype||N[M]===String.prototype)&&(N[M]={}),N[M]===Array.prototype&&(N[M]=[]),N=N[M]}var j=_[_.length-1];w9(N,j)||((N===Object.prototype||N===Number.prototype||N===String.prototype)&&(N={}),N===Array.prototype&&(N=[]),N[j]===void 0||r.bools[j]||typeof N[j]=="boolean"?N[j]=O:Array.isArray(N[j])?N[j].push(O):N[j]=[N[j],O])}function c(S,_,O){if(!(O&&r.unknownFn&&!A(S,O)&&r.unknownFn(O)===!1)){var N=!r.strings[S]&&y9(_)?Number(_):_;a(o,S.split("."),N),(n[S]||[]).forEach(function(V){a(o,V.split("."),N)})}}Object.keys(r.bools).forEach(function(S){c(S,s[S]===void 0?!1:s[S])});var l=[];t.indexOf("--")!==-1&&(l=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var u=0;u<t.length;u++){var h=t[u],f,d;if(/^--.+=/.test(h)){var E=h.match(/^--([^=]+)=([\s\S]*)$/);f=E[1];var p=E[2];r.bools[f]&&(p=p!=="false"),c(f,p,h)}else if(/^--no-.+/.test(h))f=h.match(/^--no-(.+)/)[1],c(f,!1,h);else if(/^--.+/.test(h))f=h.match(/^--(.+)/)[1],d=t[u+1],d!==void 0&&!/^(-|--)[^-]/.test(d)&&!r.bools[f]&&!r.allBools&&(!n[f]||!i(f))?(c(f,d,h),u+=1):/^(true|false)$/.test(d)?(c(f,d==="true",h),u+=1):c(f,r.strings[f]?"":!0,h);else if(/^-[^-]+/.test(h)){for(var C=h.slice(1,-1).split(""),w=!1,R=0;R<C.length;R++){if(d=h.slice(R+2),d==="-"){c(C[R],d,h);continue}if(/[A-Za-z]/.test(C[R])&&d[0]==="="){c(C[R],d.slice(1),h),w=!0;break}if(/[A-Za-z]/.test(C[R])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(d)){c(C[R],d,h),w=!0;break}if(C[R+1]&&C[R+1].match(/\W/)){c(C[R],h.slice(R+2),h),w=!0;break}else c(C[R],r.strings[C[R]]?"":!0,h)}f=h.slice(-1)[0],!w&&f!=="-"&&(t[u+1]&&!/^(-|--)[^-]/.test(t[u+1])&&!r.bools[f]&&(!n[f]||!i(f))?(c(f,t[u+1],h),u+=1):t[u+1]&&/^(true|false)$/.test(t[u+1])?(c(f,t[u+1]==="true",h),u+=1):c(f,r.strings[f]?"":!0,h))}else if((!r.unknownFn||r.unknownFn(h)!==!1)&&o._.push(r.strings._||!y9(h)?h:Number(h)),e.stopEarly){o._.push.apply(o._,t.slice(u+1));break}}return Object.keys(s).forEach(function(S){NQe(o,S.split("."))||(a(o,S.split("."),s[S]),(n[S]||[]).forEach(function(_){a(o,_.split("."),s[S])}))}),e["--"]?o["--"]=l.slice():l.forEach(function(S){o._.push(S)}),o}});var QR=g((lNe,k9)=>{"use strict";var af=E9(),yl=require("path").join,TQe=Q9(),R9="/etc",v9=process.platform==="win32",cf=v9?process.env.USERPROFILE:process.env.HOME;k9.exports=function(t,e,r,n){if(typeof t!="string")throw new Error("rc(name): name *must* be string");r||(r=S9()(process.argv.slice(2))),e=(typeof e=="string"?af.json(e):e)||{},n=n||af.parse;var i=af.env(t+"_"),s=[e],o=[];function A(a){if(!(o.indexOf(a)>=0)){var c=af.file(a);c&&(s.push(n(c)),o.push(a))}}return v9||[yl(R9,t,"config"),yl(R9,t+"rc")].forEach(A),cf&&[yl(cf,".config",t,"config"),yl(cf,".config",t),yl(cf,"."+t,"config"),yl(cf,"."+t+"rc")].forEach(A),A(af.find("."+t+"rc")),i.config&&A(i.config),r.config&&A(r.config),TQe.apply(null,s.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var D9=g((uNe,_9)=>{"use strict";_9.exports=function(t){var e=QR()("npm",{registry:"https://registry.npmjs.org/"}),r=e[t+":registry"]||e.registry;return r.slice(-1)==="/"?r:r+"/"}});var N9=g((yR,F9)=>{"use strict";var RC=require("buffer"),Si=RC.Buffer;function x9(t,e){for(var r in t)e[r]=t[r]}Si.from&&Si.alloc&&Si.allocUnsafe&&Si.allocUnsafeSlow?F9.exports=RC:(x9(RC,yR),yR.Buffer=UA);function UA(t,e,r){return Si(t,e,r)}UA.prototype=Object.create(Si.prototype);x9(Si,UA);UA.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Si(t,e,r)};UA.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Si(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};UA.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Si(t)};UA.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return RC.SlowBuffer(t)}});var L9=g((hNe,M9)=>{"use strict";var T9=N9().Buffer;function MQe(t){return T9.from(t,"base64").toString("utf8")}function LQe(t){return T9.from(t,"utf8").toString("base64")}M9.exports={decodeBase64:MQe,encodeBase64:LQe}});var Y9=g((fNe,q9)=>{"use strict";var wR=require("url"),H9=L9(),UQe=H9.decodeBase64,OQe=H9.encodeBase64,U9=":_authToken",O9=":username",P9=":_password";q9.exports=function(){var t,e;return arguments.length>=2?(t=arguments[0],e=arguments[1]):typeof arguments[0]=="string"?t=arguments[0]:e=arguments[0],e=e||{},e.npmrc=e.npmrc||QR()("npm",{registry:"https://registry.npmjs.org/"}),t=t||e.npmrc.registry,G9(t,e)||PQe(e.npmrc)};function G9(t,e){for(var r=wR.parse(t,!1,!0),n;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";var i="//"+r.host+n.replace(/\/$/,""),s=GQe(i,e.npmrc);if(s)return s;if(!e.recursive)return/\/$/.test(t)?void 0:G9(wR.resolve(t,"."),e);r.pathname=wR.resolve(HQe(n),"..")||"/"}}function PQe(t){if(t._auth)return{token:t._auth,type:"Basic"}}function HQe(t){return t[t.length-1]==="/"?t:t+"/"}function GQe(t,e){var r=qQe(e[t+U9]||e[t+"/"+U9]);if(r)return r;var n=e[t+O9]||e[t+"/"+O9],i=e[t+P9]||e[t+"/"+P9],s=YQe(n,i);if(s)return s}function qQe(t){if(t){var e=t.replace(/^\$\{?([^}]*)\}?$/,function(r,n){return process.env[n]});return{token:e,type:"Bearer"}}}function YQe(t,e){if(!(!t||!e)){var r=UQe(e.replace(/^\$\{?([^}]*)\}?$/,function(i,s){return process.env[s]})),n=OQe(t+":"+r);return{token:n,type:"Basic",password:r,username:t}}}});var j9=g((dNe,W9)=>{"use strict";var{URL:VQe}=require("url"),{join:V9}=require("path"),lf=require("fs"),{promisify:bR}=require("util"),{tmpdir:JQe}=require("os"),WQe=D9(),jQe=bR(lf.writeFile),zQe=bR(lf.mkdir),ZQe=bR(lf.readFile),$Qe=(t,e)=>t.localeCompare(e,"en-US",{numeric:!0}),KQe=t=>encodeURIComponent(t).replace(/^%40/,"@"),XQe=async(t,e)=>{let r=JQe(),n=V9(r,"update-check");lf.existsSync(n)||await zQe(n);let i=`${t.name}-${e}.json`;return t.scope&&(i=`${t.scope}-${i}`),V9(n,i)},eye=async(t,e,r)=>{if(lf.existsSync(t)){let n=await ZQe(t,"utf8"),{lastUpdate:i,latest:s}=JSON.parse(n);if(i+r>e)return{shouldCheck:!1,latest:s}}return{shouldCheck:!0,latest:null}},tye=async(t,e,r)=>{let n=JSON.stringify({latest:e,lastUpdate:r});await jQe(t,n,"utf8")},J9=(t,e)=>new Promise((r,n)=>{let i={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};e&&(i.headers.authorization=`${e.type} ${e.token}`);let{get:s}=t.protocol==="https:"?require("https"):require("http");s(i,o=>{let{statusCode:A}=o;if(A!==200){let c=new Error(`Request failed with code ${A}`);c.code=A,n(c),o.resume();return}let a="";o.setEncoding("utf8"),o.on("data",c=>{a+=c}),o.on("end",()=>{try{let c=JSON.parse(a);r(c)}catch(c){n(c)}})}).on("error",n).on("timeout",n)}),rye=async({full:t,scope:e},r)=>{let n=WQe(e),i=new VQe(t,n),s=null;try{s=await J9(i)}catch(A){if(A.code&&String(A.code).startsWith(4)){let c=Y9()(n,{recursive:!0});s=await J9(i,c)}else throw A}let o=s["dist-tags"][r];if(!o)throw new Error(`Distribution tag ${r} is not available`);return o},nye={interval:36e5,distTag:"latest"},iye=t=>{let e={full:KQe(t)};if(t.includes("/")){let r=t.split("/");e.scope=r[0],e.name=r[1]}else e.scope=null,e.name=t;return e};W9.exports=async(t,e)=>{if(typeof t!="object")throw new Error("The first parameter should be your package.json file content");let r=iye(t.name),n=Date.now(),{distTag:i,interval:s}=Object.assign({},nye,e),o=await XQe(r,i),A=null,a=!0;return{shouldCheck:a,latest:A}=await eye(o,n,s),a&&(A=await rye(r,i),await tye(o,A,n)),$Qe(t.version,A)===-1?{latest:A,fromCache:!a}:null}});var l8=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});function i0e(t){return t&&t.__esModule?t:{default:t}}var o8=Object.defineProperty,i8=Object.getOwnPropertySymbols,s0e=Object.prototype.hasOwnProperty,o0e=Object.prototype.propertyIsEnumerable,s8=(t,e,r)=>e in t?o8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A0e=(t,e)=>{for(var r in e||(e={}))s0e.call(e,r)&&s8(t,r,e[r]);if(i8)for(var r of i8(e))o0e.call(e,r)&&s8(t,r,e[r]);return t},a0e=(t,e)=>{for(var r in e)o8(t,r,{get:e[r],enumerable:!0})},c0e=(t,e,r)=>new Promise((n,i)=>{var s=a=>{try{A(r.next(a))}catch(c){i(c)}},o=a=>{try{A(r.throw(a))}catch(c){i(c)}},A=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);A((r=r.apply(t,e)).next())}),A8={};a0e(A8,{configDir:()=>c8,darwinConfig:()=>xR,getPathForPlatform:()=>NR,getPlatform:()=>DR,linuxConfig:()=>MC,winConfig:()=>FR});var l0e=require("fs/promises"),u0e=require("path"),a8=i0e(u0e);function DR(){return process.platform}function MC(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return a8.default.join(process.env.HOME,".config")}function xR(){if(process.env.HOME!==void 0)return a8.default.join(process.env.HOME,"/Library/Application Support")}function FR(){return process.env.APPDATA}function NR({platform:t}){switch(t){case"linux":return MC();case"darwin":return xR();case"win32":return FR();default:return MC()}}function c8(){return c0e(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:DR(),n=NR({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield l0e.stat.call(void 0,n),n}catch{return}}})}vi.__spreadValues=A0e;vi.getPlatform=DR;vi.linuxConfig=MC;vi.darwinConfig=xR;vi.winConfig=FR;vi.getPathForPlatform=NR;vi.configDir=c8;vi.config_dir_exports=A8});var u8=g(TR=>{"use strict";Object.defineProperty(TR,"__esModule",{value:!0});var h0e=l8();TR.configDir=h0e.configDir});var ms=g((Cs,LC)=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var E8=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function B0e(t){return E8.includes(t)}var Q0e=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...E8];function y0e(t){return Q0e.includes(t)}var w0e=["null","undefined","string","number","bigint","boolean","symbol"];function b0e(t){return w0e.includes(t)}function Tl(t){return e=>typeof e===t}var{toString:p8}=Object.prototype,df=t=>{let e=p8.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&Q.domElement(t))return"HTMLElement";if(y0e(e))return e},We=t=>e=>df(e)===t;function Q(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(Q.observable(t))return"Observable";if(Q.array(t))return"Array";if(Q.buffer(t))return"Buffer";let e=df(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}Q.undefined=Tl("undefined");Q.string=Tl("string");var S0e=Tl("number");Q.number=t=>S0e(t)&&!Q.nan(t);Q.bigint=Tl("bigint");Q.function_=Tl("function");Q.null_=t=>t===null;Q.class_=t=>Q.function_(t)&&t.toString().startsWith("class ");Q.boolean=t=>t===!0||t===!1;Q.symbol=Tl("symbol");Q.numericString=t=>Q.string(t)&&!Q.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));Q.array=(t,e)=>Array.isArray(t)?Q.function_(e)?t.every(e):!0:!1;Q.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};Q.blob=t=>We("Blob")(t);Q.nullOrUndefined=t=>Q.null_(t)||Q.undefined(t);Q.object=t=>!Q.null_(t)&&(typeof t=="object"||Q.function_(t));Q.iterable=t=>{var e;return Q.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};Q.asyncIterable=t=>{var e;return Q.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};Q.generator=t=>{var e,r;return Q.iterable(t)&&Q.function_((e=t)===null||e===void 0?void 0:e.next)&&Q.function_((r=t)===null||r===void 0?void 0:r.throw)};Q.asyncGenerator=t=>Q.asyncIterable(t)&&Q.function_(t.next)&&Q.function_(t.throw);Q.nativePromise=t=>We("Promise")(t);var R0e=t=>{var e,r;return Q.function_((e=t)===null||e===void 0?void 0:e.then)&&Q.function_((r=t)===null||r===void 0?void 0:r.catch)};Q.promise=t=>Q.nativePromise(t)||R0e(t);Q.generatorFunction=We("GeneratorFunction");Q.asyncGeneratorFunction=t=>df(t)==="AsyncGeneratorFunction";Q.asyncFunction=t=>df(t)==="AsyncFunction";Q.boundFunction=t=>Q.function_(t)&&!t.hasOwnProperty("prototype");Q.regExp=We("RegExp");Q.date=We("Date");Q.error=We("Error");Q.map=t=>We("Map")(t);Q.set=t=>We("Set")(t);Q.weakMap=t=>We("WeakMap")(t);Q.weakSet=t=>We("WeakSet")(t);Q.int8Array=We("Int8Array");Q.uint8Array=We("Uint8Array");Q.uint8ClampedArray=We("Uint8ClampedArray");Q.int16Array=We("Int16Array");Q.uint16Array=We("Uint16Array");Q.int32Array=We("Int32Array");Q.uint32Array=We("Uint32Array");Q.float32Array=We("Float32Array");Q.float64Array=We("Float64Array");Q.bigInt64Array=We("BigInt64Array");Q.bigUint64Array=We("BigUint64Array");Q.arrayBuffer=We("ArrayBuffer");Q.sharedArrayBuffer=We("SharedArrayBuffer");Q.dataView=We("DataView");Q.enumCase=(t,e)=>Object.values(e).includes(t);Q.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;Q.urlInstance=t=>We("URL")(t);Q.urlString=t=>{if(!Q.string(t))return!1;try{return new URL(t),!0}catch{return!1}};Q.truthy=t=>!!t;Q.falsy=t=>!t;Q.nan=t=>Number.isNaN(t);Q.primitive=t=>Q.null_(t)||b0e(typeof t);Q.integer=t=>Number.isInteger(t);Q.safeInteger=t=>Number.isSafeInteger(t);Q.plainObject=t=>{if(p8.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};Q.typedArray=t=>B0e(df(t));var v0e=t=>Q.safeInteger(t)&&t>=0;Q.arrayLike=t=>!Q.nullOrUndefined(t)&&!Q.function_(t)&&v0e(t.length);Q.inRange=(t,e)=>{if(Q.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(Q.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var k0e=1,_0e=["innerHTML","ownerDocument","style","attributes","nodeValue"];Q.domElement=t=>Q.object(t)&&t.nodeType===k0e&&Q.string(t.nodeName)&&!Q.plainObject(t)&&_0e.every(e=>e in t);Q.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};Q.nodeStream=t=>Q.object(t)&&Q.function_(t.pipe)&&!Q.observable(t);Q.infinite=t=>t===1/0||t===-1/0;var C8=t=>e=>Q.integer(e)&&Math.abs(e%2)===t;Q.evenInteger=C8(0);Q.oddInteger=C8(1);Q.emptyArray=t=>Q.array(t)&&t.length===0;Q.nonEmptyArray=t=>Q.array(t)&&t.length>0;Q.emptyString=t=>Q.string(t)&&t.length===0;var D0e=t=>Q.string(t)&&!/\S/.test(t);Q.emptyStringOrWhitespace=t=>Q.emptyString(t)||D0e(t);Q.nonEmptyString=t=>Q.string(t)&&t.length>0;Q.nonEmptyStringAndNotWhitespace=t=>Q.string(t)&&!Q.emptyStringOrWhitespace(t);Q.emptyObject=t=>Q.object(t)&&!Q.map(t)&&!Q.set(t)&&Object.keys(t).length===0;Q.nonEmptyObject=t=>Q.object(t)&&!Q.map(t)&&!Q.set(t)&&Object.keys(t).length>0;Q.emptySet=t=>Q.set(t)&&t.size===0;Q.nonEmptySet=t=>Q.set(t)&&t.size>0;Q.emptyMap=t=>Q.map(t)&&t.size===0;Q.nonEmptyMap=t=>Q.map(t)&&t.size>0;Q.propertyKey=t=>Q.any([Q.string,Q.number,Q.symbol],t);Q.formData=t=>We("FormData")(t);Q.urlSearchParams=t=>We("URLSearchParams")(t);var m8=(t,e,r)=>{if(!Q.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};Q.any=(t,...e)=>(Q.array(t)?t:[t]).some(n=>m8(Array.prototype.some,n,e));Q.all=(t,...e)=>m8(Array.prototype.every,t,e);var Y=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${Q(o)}\``))].join(", ")}`:`received value of type \`${Q(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};Cs.assert={undefined:t=>Y(Q.undefined(t),"undefined",t),string:t=>Y(Q.string(t),"string",t),number:t=>Y(Q.number(t),"number",t),bigint:t=>Y(Q.bigint(t),"bigint",t),function_:t=>Y(Q.function_(t),"Function",t),null_:t=>Y(Q.null_(t),"null",t),class_:t=>Y(Q.class_(t),"Class",t),boolean:t=>Y(Q.boolean(t),"boolean",t),symbol:t=>Y(Q.symbol(t),"symbol",t),numericString:t=>Y(Q.numericString(t),"string with a number",t),array:(t,e)=>{Y(Q.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>Y(Q.buffer(t),"Buffer",t),blob:t=>Y(Q.blob(t),"Blob",t),nullOrUndefined:t=>Y(Q.nullOrUndefined(t),"null or undefined",t),object:t=>Y(Q.object(t),"Object",t),iterable:t=>Y(Q.iterable(t),"Iterable",t),asyncIterable:t=>Y(Q.asyncIterable(t),"AsyncIterable",t),generator:t=>Y(Q.generator(t),"Generator",t),asyncGenerator:t=>Y(Q.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>Y(Q.nativePromise(t),"native Promise",t),promise:t=>Y(Q.promise(t),"Promise",t),generatorFunction:t=>Y(Q.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>Y(Q.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>Y(Q.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>Y(Q.boundFunction(t),"Function",t),regExp:t=>Y(Q.regExp(t),"RegExp",t),date:t=>Y(Q.date(t),"Date",t),error:t=>Y(Q.error(t),"Error",t),map:t=>Y(Q.map(t),"Map",t),set:t=>Y(Q.set(t),"Set",t),weakMap:t=>Y(Q.weakMap(t),"WeakMap",t),weakSet:t=>Y(Q.weakSet(t),"WeakSet",t),int8Array:t=>Y(Q.int8Array(t),"Int8Array",t),uint8Array:t=>Y(Q.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>Y(Q.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>Y(Q.int16Array(t),"Int16Array",t),uint16Array:t=>Y(Q.uint16Array(t),"Uint16Array",t),int32Array:t=>Y(Q.int32Array(t),"Int32Array",t),uint32Array:t=>Y(Q.uint32Array(t),"Uint32Array",t),float32Array:t=>Y(Q.float32Array(t),"Float32Array",t),float64Array:t=>Y(Q.float64Array(t),"Float64Array",t),bigInt64Array:t=>Y(Q.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>Y(Q.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>Y(Q.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>Y(Q.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>Y(Q.dataView(t),"DataView",t),enumCase:(t,e)=>Y(Q.enumCase(t,e),"EnumCase",t),urlInstance:t=>Y(Q.urlInstance(t),"URL",t),urlString:t=>Y(Q.urlString(t),"string with a URL",t),truthy:t=>Y(Q.truthy(t),"truthy",t),falsy:t=>Y(Q.falsy(t),"falsy",t),nan:t=>Y(Q.nan(t),"NaN",t),primitive:t=>Y(Q.primitive(t),"primitive",t),integer:t=>Y(Q.integer(t),"integer",t),safeInteger:t=>Y(Q.safeInteger(t),"integer",t),plainObject:t=>Y(Q.plainObject(t),"plain object",t),typedArray:t=>Y(Q.typedArray(t),"TypedArray",t),arrayLike:t=>Y(Q.arrayLike(t),"array-like",t),domElement:t=>Y(Q.domElement(t),"HTMLElement",t),observable:t=>Y(Q.observable(t),"Observable",t),nodeStream:t=>Y(Q.nodeStream(t),"Node.js Stream",t),infinite:t=>Y(Q.infinite(t),"infinite number",t),emptyArray:t=>Y(Q.emptyArray(t),"empty array",t),nonEmptyArray:t=>Y(Q.nonEmptyArray(t),"non-empty array",t),emptyString:t=>Y(Q.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>Y(Q.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>Y(Q.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>Y(Q.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>Y(Q.emptyObject(t),"empty object",t),nonEmptyObject:t=>Y(Q.nonEmptyObject(t),"non-empty object",t),emptySet:t=>Y(Q.emptySet(t),"empty set",t),nonEmptySet:t=>Y(Q.nonEmptySet(t),"non-empty set",t),emptyMap:t=>Y(Q.emptyMap(t),"empty map",t),nonEmptyMap:t=>Y(Q.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>Y(Q.propertyKey(t),"PropertyKey",t),formData:t=>Y(Q.formData(t),"FormData",t),urlSearchParams:t=>Y(Q.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>Y(Q.evenInteger(t),"even integer",t),oddInteger:t=>Y(Q.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>Y(Q.directInstanceOf(t,e),"T",t),inRange:(t,e)=>Y(Q.inRange(t,e),"in range",t),any:(t,...e)=>Y(Q.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>Y(Q.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(Q,{class:{value:Q.class_},function:{value:Q.function_},null:{value:Q.null_}});Object.defineProperties(Cs.assert,{class:{value:Cs.assert.class_},function:{value:Cs.assert.function_},null:{value:Cs.assert.null_}});Cs.default=Q;LC.exports=Q;LC.exports.default=Q;LC.exports.assert=Cs.assert});var I8=g((zNe,UR)=>{"use strict";var UC=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},OC=class t{static fn(e){return(...r)=>new t((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=A=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(A))},s=A=>{this._isPending=!1,n(A)},o=A=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(A)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:A=>{this._rejectOnCancel=A}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new UC(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(OC.prototype,Promise.prototype);UR.exports=OC;UR.exports.CancelError=UC});var B8=g((PR,HR)=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});function x0e(t){return t.encrypted}var OR=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),x0e(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};PR.default=OR;HR.exports=OR;HR.exports.default=OR});var Q8=g((qR,YR)=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});var F0e=B8(),N0e=require("util"),T0e=Number(process.versions.node.split(".")[0]),GR=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=A=>{let a=A.emit.bind(A);A.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,A.emit=a),a(c,...l))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||T0e>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=A=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,N0e.types.isProxy(A))return;let a=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};A.prependOnceListener("lookup",a),F0e.default(A,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(A.removeListener("lookup",a),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var A;e.upload=Date.now(),e.phases.request=e.upload-((A=e.secureConnect)!==null&&A!==void 0?A:e.connect)};return(typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",A=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,A.timings=e,r(A),A.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),A.prependOnceListener("aborted",n)}),e};qR.default=GR;YR.exports=GR;YR.exports.default=GR});var k8=g((ZNe,WR)=>{"use strict";var{V4MAPPED:M0e,ADDRCONFIG:L0e,ALL:v8,promises:{Resolver:y8},lookup:U0e}=require("dns"),{promisify:VR}=require("util"),O0e=require("os"),Ml=Symbol("cacheableLookupCreateConnection"),JR=Symbol("cacheableLookupInstance"),w8=Symbol("expires"),P0e=typeof v8=="number",b8=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},H0e=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},S8=()=>{let t=!1,e=!1;for(let r of Object.values(O0e.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},G0e=t=>Symbol.iterator in t,R8={ttl:!0},q0e={all:!0},PC=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new y8,lookup:o=U0e}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=VR(o),this._resolver instanceof y8?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=VR(this._resolver.resolve4.bind(this._resolver)),this._resolve6=VR(this._resolver.resolve6.bind(this._resolver))),this._iface=S8(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let A=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);A.unref&&A.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&M0e&&(P0e&&r.hints&v8||i.length===0)?H0e(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&L0e){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,R8),this._resolve6(e,R8)].map(c=>r(c))),s=0,o=0,A=0,a=Date.now();for(let c of n)c.family=4,c.expires=a+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=a+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?A=Math.min(s,o):A=s:A=o,{entries:[...n,...i],cacheTtl:A}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[w8]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}G0e(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,q0e);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let A=o[w8];i>=A?this._cache.delete(s):A<n&&(n=A)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(b8(e),Ml in e)throw new Error("CacheableLookup has been already installed");e[Ml]=e.createConnection,e[JR]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Ml](r,n))}uninstall(e){if(b8(e),e[Ml]){if(e[JR]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ml],delete e[Ml],delete e[JR]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=S8(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};WR.exports=PC;WR.exports.default=PC});var x8=g(($Ne,D8)=>{"use strict";var Y0e="text/plain",V0e="us-ascii",_8=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),J0e=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let A=!1;o[o.length-1]==="base64"&&(o.pop(),A=!0);let a=(o.shift()||"").toLowerCase(),l=[...o.map(u=>{let[h,f=""]=u.split("=").map(d=>d.trim());return h==="charset"&&(f=f.toLowerCase(),f===V0e)?"":`${h}${f?`=${f}`:""}`}).filter(Boolean)];return A&&l.push("base64"),(l.length!==0||a&&a!==Y0e)&&l.unshift(a),`data:${l.join(";")},${A?i.trim():i}${s?`#${s}`:""}`},W0e=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return J0e(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),A=o[o.length-1];_8(A,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])_8(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};D8.exports=W0e});var T8=g((KNe,N8)=>{"use strict";N8.exports=F8;function F8(t,e){if(t&&e)return F8(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(A){s[A]=o[A]}),s}}});var zR=g((XNe,jR)=>{"use strict";var M8=T8();jR.exports=M8(HC);jR.exports.strict=M8(L8);HC.proto=HC(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return HC(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return L8(this)},configurable:!0})});function HC(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function L8(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 P8=g((eTe,O8)=>{"use strict";var j0e=zR(),z0e=function(){},Z0e=function(t){return t.setHeader&&typeof t.abort=="function"},$0e=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},U8=function(t,e,r){if(typeof e=="function")return U8(t,null,e);e||(e={}),r=j0e(r||z0e);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,A=!1,a=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},u=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},h=function(p){r.call(t,p)},f=function(){process.nextTick(d)},d=function(){if(!A){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",c)};return Z0e(t)?(t.on("complete",c),t.on("abort",f),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",a),t.on("close",a)),$0e(t)&&t.on("exit",u),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",f),function(){A=!0,t.removeListener("complete",c),t.removeListener("abort",f),t.removeListener("request",E),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",u),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",f)}};O8.exports=U8});var q8=g((tTe,G8)=>{"use strict";var K0e=zR(),X0e=P8(),ZR=require("fs"),gf=function(){},ewe=/^v?\.0/.test(process.version),GC=function(t){return typeof t=="function"},twe=function(t){return!ewe||!ZR?!1:(t instanceof(ZR.ReadStream||gf)||t instanceof(ZR.WriteStream||gf))&&GC(t.close)},rwe=function(t){return t.setHeader&&GC(t.abort)},nwe=function(t,e,r,n){n=K0e(n);var i=!1;t.on("close",function(){i=!0}),X0e(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,twe(t))return t.close(gf);if(rwe(t))return t.abort();if(GC(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},H8=function(t){t()},iwe=function(t,e){return t.pipe(e)},swe=function(){var t=Array.prototype.slice.call(arguments),e=GC(t[t.length-1]||gf)&&t.pop()||gf;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,A=s>0;return nwe(i,o,A,function(a){r||(r=a),a&&n.forEach(H8),!o&&(n.forEach(H8),e(r))})});return t.reduce(iwe)};G8.exports=swe});var V8=g((rTe,Y8)=>{"use strict";var{PassThrough:owe}=require("stream");Y8.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new owe({objectMode:i});r&&s.setEncoding(r);let o=0,A=[];return s.on("data",a=>{A.push(a),i?o=A.length:o+=a.length}),s.getBufferedValue=()=>e?A:n?Buffer.concat(A,o):A.join(""),s.getBufferedLength=()=>o,s}});var J8=g((nTe,Ll)=>{"use strict";var{constants:Awe}=require("buffer"),awe=q8(),cwe=V8(),qC=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function YC(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=A=>{A&&n.getBufferedLength()<=Awe.MAX_LENGTH&&(A.bufferedData=n.getBufferedValue()),s(A)};n=awe(t,cwe(e),A=>{if(A){o(A);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new qC)})}),n.getBufferedValue()}Ll.exports=YC;Ll.exports.default=YC;Ll.exports.buffer=(t,e)=>YC(t,{...e,encoding:"buffer"});Ll.exports.array=(t,e)=>YC(t,{...e,array:!0});Ll.exports.MaxBufferError=qC});var j8=g((sTe,W8)=>{"use strict";var lwe=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),uwe=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),hwe=new Set([500,502,503,504]),fwe={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},dwe={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function XA(t){let e=parseInt(t,10);return isFinite(e)?e:0}function gwe(t){return t?hwe.has(t.status):!0}function $R(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Ewe(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}W8.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:A}={}){if(A){this._fromObject(A);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=$R(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=$R(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Ewe(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&uwe.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||lwe.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=$R(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)fwe[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return XA(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return XA(this._rescc["s-maxage"])}if(this._rescc["max-age"])return XA(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+XA(this._rescc["stale-if-error"]),n=e+XA(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+XA(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+XA(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&gwe(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!dwe[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var VC=g((oTe,z8)=>{"use strict";z8.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var $8=g((ATe,Z8)=>{"use strict";var pwe=require("stream").Readable,Cwe=VC(),KR=class extends pwe{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=Cwe(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};Z8.exports=KR});var X8=g((aTe,K8)=>{"use strict";var mwe=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];K8.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(mwe));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var tj=g((cTe,ej)=>{"use strict";var Iwe=require("stream").PassThrough,Bwe=X8(),Qwe=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new Iwe;return Bwe(t,e),t.pipe(e)};ej.exports=Qwe});var rj=g(XR=>{"use strict";XR.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};XR.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var oj=g((uTe,sj)=>{"use strict";var ywe=require("events"),nj=rj(),wwe=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},ij=["sqlite","postgres","mysql","mongo","redis","tiered"],ev=class extends ywe{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:nj.stringify,deserialize:nj.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=wwe(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,A]of typeof s=="function"?s(this.opts.store.namespace):s){let a=this.opts.deserialize(A);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),a.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return ij.includes(this.opts.store.opts.dialect)||ij.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let A of s)o.push(Promise.resolve().then(()=>n.get(A)).then(a=>typeof a=="string"?this.opts.deserialize(a):this.opts.compression?this.opts.deserialize(a):a).then(a=>{if(a!=null)return typeof a.expires=="number"&&Date.now()>a.expires?this.delete(A).then(()=>{}):r&&r.raw?a:a.value}));return Promise.allSettled(o).then(A=>{let a=[];for(let c of A)a.push(c.value);return a})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let A=[];for(let a of o){if(typeof a=="string"&&(a=this.opts.deserialize(a)),a==null){A.push(void 0);continue}typeof a.expires=="number"&&Date.now()>a.expires?(this.delete(e).then(()=>{}),A.push(void 0)):A.push(r&&r.raw?a:a.value)}return A}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(A=>A.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};sj.exports=ev});var cj=g((hTe,aj)=>{"use strict";var bwe=require("events"),JC=require("url"),Swe=x8(),Rwe=J8(),tv=j8(),Aj=$8(),vwe=VC(),kwe=tj(),_we=oj(),Ef=class t{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new _we({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=rv(JC.parse(r)),r={};else if(r instanceof JC.URL)i=rv(JC.parse(r.toString())),r={};else{let[u,...h]=(r.path||"").split("?"),f=h.length>0?`?${h.join("?")}`:"";i=rv({...r,pathname:u,search:f})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...Dwe(i)},r.headers=vwe(r.headers);let s=new bwe,o=Swe(JC.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),A=`${r.method}:${o}`,a=!1,c=!1,l=u=>{c=!0;let h=!1,f,d=new Promise(p=>{f=()=>{h||(h=!0,p())}}),E=p=>{if(a&&!u.forceRefresh){p.status=p.statusCode;let w=tv.fromObject(a.cachePolicy).revalidatedPolicy(u,p);if(!w.modified){let R=w.policy.responseHeaders();p=new Aj(a.statusCode,R,a.body,a.url),p.cachePolicy=w.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new tv(u,p,u),p.fromCache=!1);let C;u.cache&&p.cachePolicy.storable()?(C=kwe(p),(async()=>{try{let w=Rwe.buffer(p);if(await Promise.race([d,new Promise(O=>p.once("end",O))]),h)return;let R=await w,S={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?a.statusCode:p.statusCode,body:R},_=u.strictTtl?p.cachePolicy.timeToLive():void 0;u.maxTtl&&(_=_?Math.min(_,u.maxTtl):u.maxTtl),await this.cache.set(A,S,_)}catch(w){s.emit("error",new t.CacheError(w))}})()):u.cache&&a&&(async()=>{try{await this.cache.delete(A)}catch(w){s.emit("error",new t.CacheError(w))}})(),s.emit("response",C||p),typeof n=="function"&&n(C||p)};try{let p=e(u,E);p.once("error",f),p.once("abort",f),s.emit("request",p)}catch(p){s.emit("error",new t.RequestError(p))}};return(async()=>{let u=async f=>{await Promise.resolve();let d=f.cache?await this.cache.get(A):void 0;if(typeof d=="undefined")return l(f);let E=tv.fromObject(d.cachePolicy);if(E.satisfiesWithoutRevalidation(f)&&!f.forceRefresh){let p=E.responseHeaders(),C=new Aj(d.statusCode,p,d.body,d.url);C.cachePolicy=E,C.fromCache=!0,s.emit("response",C),typeof n=="function"&&n(C)}else a=d,f.headers=E.revalidationHeaders(f),l(f)},h=f=>s.emit("error",new t.CacheError(f));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await u(r)}catch(f){r.automaticFailover&&!c&&l(r),s.emit("error",new t.CacheError(f))}})(),s}}};function Dwe(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function rv(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ef.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ef.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};aj.exports=Ef});var uj=g((gTe,lj)=>{"use strict";var xwe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];lj.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(xwe)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var fj=g((ETe,hj)=>{"use strict";var{Transform:Fwe,PassThrough:Nwe}=require("stream"),nv=require("zlib"),Twe=uj();hj.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof nv.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new Fwe({transform(A,a,c){n=!1,c(null,A)},flush(A){A()}}),s=new Nwe({autoDestroy:!1,destroy(A,a){t.destroy(),a(A)}}),o=r?nv.createBrotliDecompress():nv.createUnzip();return o.once("error",A=>{if(n&&!t.readable){s.end();return}s.destroy(A)}),Twe(t,s),t.pipe(i).pipe(o).pipe(s),s}});var sv=g((pTe,dj)=>{"use strict";var iv=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};dj.exports=iv});var Av=g((CTe,Cj)=>{"use strict";var Mwe=require("events"),Lwe=require("tls"),Uwe=require("http2"),Owe=sv(),gr=Symbol("currentStreamsCount"),gj=Symbol("request"),bn=Symbol("cachedOriginSet"),Ul=Symbol("gracefullyClosing"),Pwe=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],Hwe=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},Gwe=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,ov=(t,e)=>{for(let r of t)r[bn].length<e[bn].length&&r[bn].every(n=>e[bn].includes(n))&&r[gr]+e[gr]<=e.remoteSettings.maxConcurrentStreams&&pj(r)},qwe=(t,e)=>{for(let r of t)e[bn].length<r[bn].length&&e[bn].every(n=>r[bn].includes(n))&&e[gr]+r[gr]<=r.remoteSettings.maxConcurrentStreams&&pj(e)},Ej=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let A=o[ea.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?A:!A});s.length!==0&&(r[n]=s)}return r},pj=t=>{t[Ul]=!0,t[gr]===0&&t.close()},ea=class t extends Mwe{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new Owe({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of Pwe)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),A=t.normalizeOrigin(e,r&&r.servername);if(A===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],u=-1,h=-1,f;for(let d of l){let E=d.remoteSettings.maxConcurrentStreams;if(E<u)break;if(d[bn].includes(A)){let p=d[gr];if(p>=E||d[Ul]||d.destroyed)continue;f||(u=E),p>h&&(f=d,h=p)}}if(f){if(n.length!==1){for(let{reject:d}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
100
100
|
Please report this to https://github.com/szmarczak/http2-wrapper/`);d(E)}return}n[0].resolve(f);return}}if(o in this.queue){if(A in this.queue[o]){this.queue[o][A].listeners.push(...n),this._tryToCreateNewSession(o,A);return}}else this.queue[o]={};let a=()=>{o in this.queue&&this.queue[o][A]===c&&(delete this.queue[o][A],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${A}:${o}`,u=!1;try{let h=Uwe.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[gr]=0,h[Ul]=!1;let f=()=>h[gr]<h.remoteSettings.maxConcurrentStreams,d=!0;h.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),h.once("error",p=>{for(let{reject:C}of n)C(p);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(u){d&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(h),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:C}of n)C(p);a()}this._tryToCreateNewSession(o,A)});let E=()=>{if(!(!(o in this.queue)||!f())){for(let p of h[bn])if(p in this.queue[o]){let{listeners:C}=this.queue[o][p];for(;C.length!==0&&f();)C.shift().resolve(h);let w=this.queue[o];if(w[p].listeners.length===0&&(delete w[p],Object.keys(w).length===0)){delete this.queue[o];break}if(!f())break}}};h.on("origin",()=>{h[bn]=h.originSet,f()&&(E(),ov(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let C of n)C.reject(p);h.destroy();return}h[bn]=h.originSet;{let p=this.sessions;if(o in p){let C=p[o];C.splice(Hwe(C,h,Gwe),0,h)}else p[o]=[h]}this._freeSessionsCount+=1,u=!0,this.emit("session",h),E(),a(),h[gr]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(A,r,n),n.length=0),h.on("remoteSettings",()=>{E(),ov(this.sessions[o],h)})}),h[gj]=h.request,h.request=(p,C)=>{if(h[Ul])throw new Error("The session is gracefully closing. No new streams are allowed.");let w=h[gj](p,C);return h.ref(),++h[gr],h[gr]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,w.once("close",()=>{if(d=f(),--h[gr],!h.destroyed&&!h.closed&&(qwe(this.sessions[o],h),f()&&!h.closed)){d||(this._freeSessionsCount++,d=!0);let R=h[gr]===0;R&&h.unref(),R&&(this._freeSessionsCount>this.maxFreeSessions||h[Ul])?h.close():(ov(this.sessions[o],h),E())}}),w}}catch(h){for(let f of n)f.reject(h);a()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][A]=c,this._tryToCreateNewSession(o,A)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:A=>{try{s(A.request(n,i))}catch(a){o(a)}}}])})}createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),Lwe.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[gr]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return Ej({agent:this,isFree:!0})}get busySessions(){return Ej({agent:this,isFree:!1})}};ea.kCurrentStreamsCount=gr;ea.kGracefullyClosing=Ul;Cj.exports={Agent:ea,globalAgent:new ea}});var cv=g((mTe,mj)=>{"use strict";var{Readable:Ywe}=require("stream"),av=class extends Ywe{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};mj.exports=av});var lv=g((ITe,Ij)=>{"use strict";Ij.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Qj=g((BTe,Bj)=>{"use strict";Bj.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var wj=g((QTe,yj)=>{"use strict";yj.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Sj=g((wTe,bj)=>{"use strict";var Ol=(t,e,r)=>{bj.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ol(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ol(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ol(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ol(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ol(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ol(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var gv=g((bTe,Fj)=>{"use strict";var Vwe=require("http2"),{Writable:Jwe}=require("stream"),{Agent:Rj,globalAgent:Wwe}=Av(),jwe=cv(),zwe=lv(),Zwe=Qj(),$we=wj(),{ERR_INVALID_ARG_TYPE:uv,ERR_INVALID_PROTOCOL:Kwe,ERR_HTTP_HEADERS_SENT:vj,ERR_INVALID_HTTP_TOKEN:Xwe,ERR_HTTP_INVALID_HEADER_VALUE:ebe,ERR_INVALID_CHAR:tbe}=Sj(),{HTTP2_HEADER_STATUS:kj,HTTP2_HEADER_METHOD:_j,HTTP2_HEADER_PATH:Dj,HTTP2_METHOD_CONNECT:rbe}=Vwe.constants,ar=Symbol("headers"),hv=Symbol("origin"),fv=Symbol("session"),xj=Symbol("options"),WC=Symbol("flushedHeaders"),pf=Symbol("jobs"),nbe=/^[\^`\-\w!#$%&*+.|~]+$/,ibe=/[^\t\u0020-\u007E\u0080-\u00FF]/,dv=class extends Jwe{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=zwe(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[fv]=r.h2session;else if(r.agent===!1)this.agent=new Rj({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new Rj({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=Wwe;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new uv("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new Kwe(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:A}=r;if(r.timeout=void 0,this[ar]=Object.create(null),this[pf]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[a,c]of Object.entries(r.headers))this.setHeader(a,c);r.auth&&!("authorization"in this[ar])&&(this[ar].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[xj]=r,s===443?(this[hv]=`https://${o}`,":authority"in this[ar]||(this[ar][":authority"]=o)):(this[hv]=`https://${o}:${s}`,":authority"in this[ar]||(this[ar][":authority"]=`${o}:${s}`)),A&&this.setTimeout(A),n&&this.once("response",n),this[WC]=!1}get method(){return this[ar][_j]}set method(e){e&&(this[ar][_j]=e.toUpperCase())}get path(){return this[ar][Dj]}set path(e){e&&(this[ar][Dj]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[pf].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[pf].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[WC]||this.destroyed)return;this[WC]=!0;let e=this.method===rbe,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||Zwe(n,this,["timeout","continue","close","error"]);let i=o=>(...A)=>{!this.writable&&!this.destroyed?o(...A):this.once("finish",()=>{o(...A)})};n.once("response",i((o,A,a)=>{let c=new jwe(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[kj],c.headers=o,c.rawHeaders=a,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[kj]}))),n.once("trailers",i((o,A,a)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=a}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[pf])o();this.emit("socket",this.socket)};if(this[fv])try{r(this[fv].request(this[ar]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[hv],this[xj],this[ar]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new uv("name","string",e);return this[ar][e.toLowerCase()]}get headersSent(){return this[WC]}removeHeader(e){if(typeof e!="string")throw new uv("name","string",e);if(this.headersSent)throw new vj("remove");delete this[ar][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new vj("set");if(typeof e!="string"||!nbe.test(e)&&!$we(e))throw new Xwe("Header name",e);if(typeof r=="undefined")throw new ebe(r,e);if(ibe.test(r))throw new tbe("header content",e);this[ar][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[pf].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};Fj.exports=dv});var Tj=g((STe,Nj)=>{"use strict";var sbe=require("tls");Nj.exports=(t={},e=sbe.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await a,s.off("timeout",A),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},A=async()=>{i=!0,o()},a=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",A)}catch(c){n(c)}})()})});var Lj=g((RTe,Mj)=>{"use strict";var obe=require("net");Mj.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),obe.isIP(e)?"":e}});var Pj=g((vTe,pv)=>{"use strict";var Uj=require("http"),Ev=require("https"),Abe=Tj(),abe=sv(),cbe=gv(),lbe=Lj(),ube=lv(),jC=new abe({maxSize:100}),Cf=new Map,Oj=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},hbe=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!jC.has(e)){if(Cf.has(e))return(await Cf.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=Abe(t);Cf.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(jC.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:A}=Ev,a=Ev.Agent.prototype.createConnection;n?n.createConnection===a?Oj(n,s,t):s.destroy():A.createConnection===a?Oj(A,s,t):s.destroy()}return Cf.delete(e),o}catch(s){throw Cf.delete(e),s}}return jC.get(e)};pv.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=ube(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||lbe(e),e.port=e.port||(n?443:80),e._defaultAgent=n?Ev.globalAgent:Uj.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await hbe(e)==="h2"?(i&&(e.agent=i.http2),new cbe(e,r)):Uj.request(e,r)};pv.exports.protocolCache=jC});var Gj=g((kTe,Hj)=>{"use strict";var fbe=require("http2"),dbe=Av(),Cv=gv(),gbe=cv(),Ebe=Pj(),pbe=(t,e,r)=>new Cv(t,e,r),Cbe=(t,e,r)=>{let n=new Cv(t,e,r);return n.end(),n};Hj.exports={...fbe,ClientRequest:Cv,IncomingMessage:gbe,...dbe,request:pbe,get:Cbe,auto:Ebe}});var Iv=g(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var qj=ms();mv.default=t=>qj.default.nodeStream(t)&&qj.default.function_(t.getBoundary)});var Wj=g(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var Vj=require("fs"),Jj=require("util"),Yj=ms(),mbe=Iv(),Ibe=Jj.promisify(Vj.stat);Bv.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(Yj.default.string(t))return Buffer.byteLength(t);if(Yj.default.buffer(t))return t.length;if(mbe.default(t))return Jj.promisify(t.getLength.bind(t))();if(t instanceof Vj.ReadStream){let{size:r}=await Ibe(t.path);return r===0?void 0:r}}});var yv=g(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});function Bbe(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Qv.default=Bbe});var jj=g(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var Zj=g(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.TimeoutError=void 0;var Qbe=require("net"),ybe=jj(),zj=Symbol("reentry"),wbe=()=>{},zC=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};mf.TimeoutError=zC;mf.default=(t,e,r)=>{if(zj in t)return wbe;t[zj]=!0;let n=[],{once:i,unhandleAll:s}=ybe.default(),o=(u,h,f)=>{var d;let E=setTimeout(h,u,u,f);(d=E.unref)===null||d===void 0||d.call(E);let p=()=>{clearTimeout(E)};return n.push(p),p},{host:A,hostname:a}=r,c=(u,h)=>{t.destroy(new zC(u,h))},l=()=>{for(let u of n)u();s()};if(t.once("error",u=>{if(l(),t.listenerCount("error")===0)throw u}),t.once("close",l),i(t,"response",u=>{i(u,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let u=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,u),n.push(()=>{t.removeListener("timeout",u)})}return i(t,"socket",u=>{var h;let{socketPath:f}=t;if(u.connecting){let d=!!(f!=null?f:Qbe.isIP((h=a!=null?a:A)!==null&&h!==void 0?h:"")!==0);if(typeof e.lookup!="undefined"&&!d&&typeof u.address().address=="undefined"){let E=o(e.lookup,c,"lookup");i(u,"lookup",E)}if(typeof e.connect!="undefined"){let E=()=>o(e.connect,c,"connect");d?i(u,"connect",E()):i(u,"lookup",p=>{p===null&&i(u,"connect",E())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(u,"connect",()=>{let E=o(e.secureConnect,c,"secureConnect");i(u,"secureConnect",E)})}if(typeof e.send!="undefined"){let d=()=>o(e.send,c,"send");u.connecting?i(u,"connect",()=>{i(t,"upload-complete",d())}):i(t,"upload-complete",d())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let u=o(e.response,c,"response");i(t,"response",u)}),l}});var Kj=g(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var $j=ms();bv.default=t=>{t=t;let e={protocol:t.protocol,hostname:$j.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return $j.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Xj=g(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var bbe=require("url"),Sbe=["protocol","host","hostname","port","pathname","search"];Sv.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new bbe.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of Sbe)e[s]&&(i[s]=e[s].toString());return i}});var e4=g(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var Rv=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};vv.default=Rv});var _v=g(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});var Rbe=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};kv.default=Rbe});var r4=g(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.dnsLookupIpVersionToFamily=ta.isDnsLookupIpVersion=void 0;var t4={auto:0,ipv4:4,ipv6:6};ta.isDnsLookupIpVersion=t=>t in t4;ta.dnsLookupIpVersionToFamily=t=>{if(ta.isDnsLookupIpVersion(t))return t4[t];throw new Error("Invalid DNS lookup IP version")}});var Dv=g(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.isResponseOk=void 0;ZC.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var i4=g(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});var n4=new Set;xv.default=t=>{n4.has(t)||(n4.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var s4=g(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var et=ms(),vbe=(t,e)=>{if(et.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");et.assert.any([et.default.string,et.default.undefined],t.encoding),et.assert.any([et.default.boolean,et.default.undefined],t.resolveBodyOnly),et.assert.any([et.default.boolean,et.default.undefined],t.methodRewriting),et.assert.any([et.default.boolean,et.default.undefined],t.isStream),et.assert.any([et.default.string,et.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},et.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):et.default.number(r)&&(t.retry.limit=r),et.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(et.default.number))),et.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!et.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!et.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!et.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!et.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Fv.default=vbe});var o4=g(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.retryAfterStatusCodes=void 0;If.retryAfterStatusCodes=new Set([413,429,503]);var kbe=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let A=Math.random()*100;return 2**(t-1)*1e3+A};If.default=kbe});var yf=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.UnsupportedProtocolError=Fe.ReadError=Fe.TimeoutError=Fe.UploadError=Fe.CacheError=Fe.HTTPError=Fe.MaxRedirectsError=Fe.RequestError=Fe.setNonEnumerableProperties=Fe.knownHookEvents=Fe.withoutBody=Fe.kIsNormalizedAlready=void 0;var A4=require("util"),a4=require("stream"),_be=require("fs"),bo=require("url"),c4=require("http"),Nv=require("http"),Dbe=require("https"),xbe=Q8(),Fbe=k8(),l4=cj(),Nbe=fj(),Tbe=Gj(),Mbe=VC(),D=ms(),Lbe=Wj(),u4=Iv(),Ube=yv(),h4=Zj(),Obe=Kj(),f4=Xj(),Pbe=e4(),Hbe=_v(),d4=r4(),Gbe=Dv(),So=i4(),qbe=s4(),Ybe=o4(),Tv,Vt=Symbol("request"),XC=Symbol("response"),Pl=Symbol("responseSize"),Hl=Symbol("downloadedSize"),Gl=Symbol("bodySize"),ql=Symbol("uploadedSize"),$C=Symbol("serverResponsesPiped"),g4=Symbol("unproxyEvents"),E4=Symbol("isFromCache"),Mv=Symbol("cancelTimeouts"),p4=Symbol("startedReading"),Yl=Symbol("stopReading"),KC=Symbol("triggerRead"),Ro=Symbol("body"),Bf=Symbol("jobs"),C4=Symbol("originalResponse"),m4=Symbol("retryTimeout");Fe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var Vbe=D.default.string(process.versions.brotli);Fe.withoutBody=new Set(["GET","HEAD"]);Fe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function Jbe(t){for(let e in t){let r=t[e];if(!D.default.string(r)&&!D.default.number(r)&&!D.default.boolean(r)&&!D.default.null_(r)&&!D.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function Wbe(t){return D.default.object(t)&&!("statusCode"in t)}var Lv=new Pbe.default,jbe=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),zbe=new Set([300,301,302,303,304,307,308]),Zbe=["context","body","json","form"];Fe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of Zbe)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Ct=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof om?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[XC]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,D.default.string(r.stack)&&D.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,A=this.stack.slice(o).split(`
|
|
101
101
|
`).reverse(),a=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
102
102
|
`).reverse();for(;a.length!==0&&a[0]===A[0];)A.shift();this.stack=`${this.stack.slice(0,o)}${A.reverse().join(`
|
|
@@ -132,7 +132,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);d(E)}return}
|
|
|
132
132
|
`+t.slice(i,s),i=s+1),o=A;return a+=`
|
|
133
133
|
`,t.length-i>e&&o>i?a+=t.slice(i,o)+`
|
|
134
134
|
`+t.slice(o+1):a+=t.slice(i),a.slice(1)}function CX(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=cu(t,i),n=jt[r],!n&&fu(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||cX(r);return e}function mX(t,e,r){var n="",i=t.tag,s,o,A;for(s=0,o=r.length;s<o;s+=1)A=r[s],t.replacer&&(A=t.replacer.call(r,String(s),A)),(Ni(t,e,A,!1,!1)||typeof A=="undefined"&&Ni(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function px(t,e,r,n){var i="",s=t.tag,o,A,a;for(o=0,A=r.length;o<A;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(Ni(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&Ni(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=mI(t,e)),t.dump&&uu===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function IX(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,A,a,c,l;for(o=0,A=s.length;o<A;o+=1)l="",n!==""&&(l+=", "),t.condenseFlow&&(l+='"'),a=s[o],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),Ni(t,e,a,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ni(t,e,c,!1,!1)&&(l+=t.dump,n+=l));t.tag=i,t.dump="{"+n+"}"}function BX(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),A,a,c,l,u,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Cr("sortKeys must be a boolean or a function");for(A=0,a=o.length;A<a;A+=1)h="",(!n||i!=="")&&(h+=mI(t,e)),c=o[A],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Ni(t,e+1,c,!0,!0,!0)&&(u=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,u&&(t.dump&&uu===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,u&&(h+=mI(t,e)),Ni(t,e+1,l,!0,u)&&(t.dump&&uu===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,i+=h));t.tag=s,t.dump=i||"{}"}function Cx(t,e,r){var n,i,s,o,A,a;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(A=i[s],(A.instanceOf||A.predicate)&&(!A.instanceOf||typeof e=="object"&&e instanceof A.instanceOf)&&(!A.predicate||A.predicate(e))){if(r?A.multi&&A.representName?t.tag=A.representName(e):t.tag=A.tag:t.tag="?",A.represent){if(a=t.styleMap[A.tag]||A.defaultStyle,Fx.call(A.represent)==="[object Function]")n=A.represent(e,a);else if(Nx.call(A.represent,a))n=A.represent[a](e,a);else throw new Cr("!<"+A.tag+'> tag resolver accepts not "'+a+'" style');t.dump=n}return!0}return!1}function Ni(t,e,r,n,i,s,o){t.tag=null,t.dump=r,Cx(t,r,!1)||Cx(t,r,!0);var A=Fx.call(t.dump),a=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var l=A==="[object Object]"||A==="[object Array]",u,h;if(l&&(u=t.duplicates.indexOf(r),h=u!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(i=!1),h&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(l&&h&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),A==="[object Object]")n&&Object.keys(t.dump).length!==0?(BX(t,e,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(IX(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else if(A==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?px(t,e-1,t.dump,i):px(t,e,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(mX(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else if(A==="[object String]")t.tag!=="?"&&EX(t,t.dump,e,s,a);else{if(A==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Cr("unacceptable kind of an object to dump "+A)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function QX(t,e){var r=[],n=[],i,s;for(BI(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function BI(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)BI(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)BI(t[n[i]],e,r)}function yX(t,e){e=e||{};var r=new uX(e);r.noRefs||QX(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ni(r,0,n,!0,!0)?r.dump+`
|
|
135
|
-
`:""}var wX=yX,bX={dump:wX};function SI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var _ve=xx.load,Dve=xx.loadAll,xve=bX.dump;var Fve=SI("safeLoad","load"),Nve=SI("safeLoadAll","loadAll"),Tve=SI("safeDump","dump");var wie=be(_1()),bie=be(require("json5"));var qe={};gz(qe,{bold:()=>gie,dimmed:()=>pie,error:()=>vu,grey:()=>Cie,info:()=>die,item:()=>mie,log:()=>Ui,turboBlue:()=>Ta,turboGradient:()=>fie,turboLoader:()=>$M,turboRed:()=>zM,underline:()=>Eie,warn:()=>jQ,yellow:()=>ZM});var Br=be(Nd()),VM=be(pM()),JM=be(YM()),WM="#0099F7",jM="#F11712",hie="#FFFF00",WQ=t=>{let e=Iie(t);return r=>`\x1B[38;5;${e}m${r}${(0,Br.reset)("")}`},fie=(0,JM.default)(WM,jM),Ta=WQ(WM),zM=WQ(jM),ZM=WQ(hie),$M=t=>(0,VM.default)({text:t,spinner:{frames:[" ",Ta("> "),Ta(">> "),Ta(">>>")]}}),die=(...t)=>{Ui(Ta((0,Br.bold)(">>>")),t.join(" "))},gie=(...t)=>{Ui((0,Br.bold)(t.join(" ")))},Eie=(...t)=>{Ui((0,Br.underline)(t.join(" ")))},pie=(...t)=>{Ui((0,Br.dim)(t.join(" ")))},Cie=(...t)=>{Ui((0,Br.gray)(t.join(" ")))},mie=(...t)=>{Ui(Ta((0,Br.bold)(" \u2022")),t.join(" "))},Ui=(...t)=>{console.log(...t)},jQ=(...t)=>{console.error(ZM((0,Br.bold)(">>>")),t.join(" "))},vu=(...t)=>{console.error(zM((0,Br.bold)(">>>")),t.join(" "))};function Iie(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var Coe=be(require("os")),moe=be(w2());var Ioe=be(require("path"));var lQe=require("stream"),uQe=require("stream/promises"),hQe=require("zlib"),wC=require("fs"),X3=require("fs/promises"),bC=require("path"),fQe=require("os"),dQe=require("child_process"),e9=be(QP()),gQe=be(K3());var bQe=be(require("path")),SQe=be(A9());var sye=be(j9());var g8=be(Nd());var xe;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(A=>typeof i[i[A]]!="number"),o={};for(let A of s)o[A]=i[A];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(xe||(xe={}));var RR;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(RR||(RR={}));var K=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bo=t=>{switch(typeof t){case"undefined":return K.undefined;case"string":return K.string;case"number":return isNaN(t)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(t)?K.array:t===null?K.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?K.promise:typeof Map!="undefined"&&t instanceof Map?K.map:typeof Set!="undefined"&&t instanceof Set?K.set:typeof Date!="undefined"&&t instanceof Date?K.date:K.object;default:return K.unknown}},H=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),oye=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Zr=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let A=n,a=0;for(;a<o.path.length;){let c=o.path[a];a===o.path.length-1?(A[c]=A[c]||{_errors:[]},A[c]._errors.push(r(o))):A[c]=A[c]||{_errors:[]},A=A[c],a++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Zr.create=t=>new Zr(t);var uf=(t,e)=>{let r;switch(t.code){case H.invalid_type:t.received===K.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case H.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,xe.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:r=`Unrecognized key(s) in object: ${xe.joinValues(t.keys,", ")}`;break;case H.invalid_union:r="Invalid input";break;case H.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${xe.joinValues(t.options)}`;break;case H.invalid_enum_value:r=`Invalid enum value. Expected ${xe.joinValues(t.options)}, received '${t.received}'`;break;case H.invalid_arguments:r="Invalid function arguments";break;case H.invalid_return_type:r="Invalid function return type";break;case H.invalid_date:r="Invalid date";break;case H.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:xe.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case H.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case H.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case H.custom:r="Invalid input";break;case H.invalid_intersection_types:r="Intersection results could not be merged";break;case H.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case H.not_finite:r="Number must be finite";break;default:r=e.defaultError,xe.assertNever(t)}return{message:r}},$9=uf;function Aye(t){$9=t}function kC(){return $9}var _C=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},A="",a=n.filter(c=>!!c).slice().reverse();for(let c of a)A=c(o,{data:e,defaultError:A}).message;return{...i,path:s,message:i.message||A}},aye=[];function X(t,e){let r=_C({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kC(),uf].filter(n=>!!n)});t.common.issues.push(r)}var Ar=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return me;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return me;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},me=Object.freeze({status:"aborted"}),K9=t=>({status:"dirty",value:t}),dr=t=>({status:"valid",value:t}),vR=t=>t.status==="aborted",kR=t=>t.status==="dirty",hf=t=>t.status==="valid",DC=t=>typeof Promise!="undefined"&&t instanceof Promise,ce;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ce||(ce={}));var wn=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},z9=(t,e)=>{if(hf(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Zr(t.common.issues);return this._error=r,this._error}}};function Ie(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,A)=>o.code!=="invalid_type"?{message:A.defaultError}:typeof A.data=="undefined"?{message:n!=null?n:A.defaultError}:{message:r!=null?r:A.defaultError},description:i}}var Be=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Bo(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Bo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ar,ctx:{common:e.parent.common,data:e.data,parsedType:Bo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(DC(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bo(e)},s=this._parseSync({data:e,path:i.path,parent:i});return z9(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bo(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(DC(i)?i:Promise.resolve(i));return z9(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),A=()=>s.addIssue({code:H.custom,...n(i)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(a=>a?!0:(A(),!1)):o?!0:(A(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new $r({schema:this,typeName:de.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return jn.create(this,this._def)}nullable(){return ps.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Es.create(this,this._def)}promise(){return wo.create(this,this._def)}or(e){return VA.create([this,e],this._def)}and(e){return JA.create(this,e,this._def)}transform(e){return new $r({...Ie(this._def),schema:this,typeName:de.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new $A({...Ie(this._def),innerType:this,defaultValue:r,typeName:de.ZodDefault})}brand(){return new TC({typeName:de.ZodBranded,type:this,...Ie(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new kl({...Ie(this._def),innerType:this,catchValue:r,typeName:de.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return ff.create(this,e)}readonly(){return Dl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},cye=/^c[^\s-]{8,}$/i,lye=/^[a-z][a-z0-9]*$/,uye=/^[0-9A-HJKMNP-TV-Z]{26}$/,hye=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fye=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dye="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",SR,gye=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Eye=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,pye=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Cye(t,e){return!!((e==="v4"||!e)&&gye.test(t)||(e==="v6"||!e)&&Eye.test(t))}var Qo=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.string,received:s.parsedType}),me}let n=new Ar,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,A=e.data.length<s.value;(o||A)&&(i=this._getOrReturnCtx(e,i),o?X(i,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):A&&X(i,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")fye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"email",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")SR||(SR=new RegExp(dye,"u")),SR.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"emoji",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")hye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"uuid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")cye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")lye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid2",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")uye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ulid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),X(i,{validation:"url",code:H.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"regex",code:H.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?pye(s).test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?Cye(e.data,s.version)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ip",code:H.invalid_string,message:s.message}),n.dirty()):xe.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:H.invalid_string,...ce.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ce.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ce.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ce.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ce.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ce.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ce.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ce.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ce.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...ce.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ce.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ce.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ce.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ce.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ce.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ce.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ce.errToObj(r)})}nonempty(e){return this.min(1,ce.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Qo.create=t=>{var e;return new Qo({checks:[],typeName:de.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ie(t)})};function mye(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var OA=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.number,received:s.parsedType}),me}let n,i=new Ar;for(let s of this._def.checks)s.kind==="int"?xe.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),X(n,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?mye(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_finite,message:s.message}),i.dirty()):xe.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ce.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ce.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ce.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xe.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};OA.create=t=>new OA({checks:[],typeName:de.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ie(t)});var PA=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.bigint,received:s.parsedType}),me}let n,i=new Ar;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):xe.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ce.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};PA.create=t=>{var e;return new PA({checks:[],typeName:de.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ie(t)})};var HA=class extends Be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.boolean,received:n.parsedType}),me}return dr(e.data)}};HA.create=t=>new HA({typeName:de.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ie(t)});var GA=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.date,received:s.parsedType}),me}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_date}),me}let n=new Ar,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):xe.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ce.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ce.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};GA.create=t=>new GA({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:de.ZodDate,...Ie(t)});var bl=class extends Be{_parse(e){if(this._getType(e)!==K.symbol){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.symbol,received:n.parsedType}),me}return dr(e.data)}};bl.create=t=>new bl({typeName:de.ZodSymbol,...Ie(t)});var qA=class extends Be{_parse(e){if(this._getType(e)!==K.undefined){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.undefined,received:n.parsedType}),me}return dr(e.data)}};qA.create=t=>new qA({typeName:de.ZodUndefined,...Ie(t)});var YA=class extends Be{_parse(e){if(this._getType(e)!==K.null){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.null,received:n.parsedType}),me}return dr(e.data)}};YA.create=t=>new YA({typeName:de.ZodNull,...Ie(t)});var yo=class extends Be{constructor(){super(...arguments),this._any=!0}_parse(e){return dr(e.data)}};yo.create=t=>new yo({typeName:de.ZodAny,...Ie(t)});var gs=class extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return dr(e.data)}};gs.create=t=>new gs({typeName:de.ZodUnknown,...Ie(t)});var zn=class extends Be{_parse(e){let r=this._getOrReturnCtx(e);return X(r,{code:H.invalid_type,expected:K.never,received:r.parsedType}),me}};zn.create=t=>new zn({typeName:de.ZodNever,...Ie(t)});var Sl=class extends Be{_parse(e){if(this._getType(e)!==K.undefined){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.void,received:n.parsedType}),me}return dr(e.data)}};Sl.create=t=>new Sl({typeName:de.ZodVoid,...Ie(t)});var Es=class t extends Be{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==K.array)return X(r,{code:H.invalid_type,expected:K.array,received:r.parsedType}),me;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,A=r.data.length<i.exactLength.value;(o||A)&&(X(r,{code:o?H.too_big:H.too_small,minimum:A?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(X(r,{code:H.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(X(r,{code:H.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,A)=>i.type._parseAsync(new wn(r,o,r.path,A)))).then(o=>Ar.mergeArray(n,o));let s=[...r.data].map((o,A)=>i.type._parseSync(new wn(r,o,r.path,A)));return Ar.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:ce.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:ce.toString(r)}})}nonempty(e){return this.min(1,e)}};Es.create=(t,e)=>new Es({type:t,minLength:null,maxLength:null,exactLength:null,typeName:de.ZodArray,...Ie(e)});function wl(t){if(t instanceof Fr){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=jn.create(wl(n))}return new Fr({...t._def,shape:()=>e})}else return t instanceof Es?new Es({...t._def,type:wl(t.element)}):t instanceof jn?jn.create(wl(t.unwrap())):t instanceof ps?ps.create(wl(t.unwrap())):t instanceof Ri?Ri.create(t.items.map(e=>wl(e))):t}var Fr=class t extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=xe.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==K.object){let c=this._getOrReturnCtx(e);return X(c,{code:H.invalid_type,expected:K.object,received:c.parsedType}),me}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),A=[];if(!(this._def.catchall instanceof zn&&this._def.unknownKeys==="strip"))for(let c in i.data)o.includes(c)||A.push(c);let a=[];for(let c of o){let l=s[c],u=i.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new wn(i,u,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof zn){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of A)a.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(c==="strict")A.length>0&&(X(i,{code:H.unrecognized_keys,keys:A}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of A){let u=i.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new wn(i,u,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of a){let u=await l.key;c.push({key:u,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>Ar.mergeObjectSync(n,c)):Ar.mergeObjectSync(n,a)}get shape(){return this._def.shape()}strict(e){return ce.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,A;let a=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(A=ce.errToObj(e).message)!==null&&A!==void 0?A:a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:de.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return xe.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new t({...this._def,shape:()=>r})}deepPartial(){return wl(this)}partial(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof jn;)s=s._def.innerType;r[n]=s}}),new t({...this._def,shape:()=>r})}keyof(){return X9(xe.objectKeys(this.shape))}};Fr.create=(t,e)=>new Fr({shape:()=>t,unknownKeys:"strip",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});Fr.strictCreate=(t,e)=>new Fr({shape:()=>t,unknownKeys:"strict",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});Fr.lazycreate=(t,e)=>new Fr({shape:t,unknownKeys:"strip",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});var VA=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let A of s)if(A.result.status==="valid")return A.result;for(let A of s)if(A.result.status==="dirty")return r.common.issues.push(...A.ctx.common.issues),A.result;let o=s.map(A=>new Zr(A.ctx.common.issues));return X(r,{code:H.invalid_union,unionErrors:o}),me}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let a of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=a._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let A=o.map(a=>new Zr(a));return X(r,{code:H.invalid_union,unionErrors:A}),me}}get options(){return this._def.options}};VA.create=(t,e)=>new VA({options:t,typeName:de.ZodUnion,...Ie(e)});var vC=t=>t instanceof WA?vC(t.schema):t instanceof $r?vC(t.innerType()):t instanceof jA?[t.value]:t instanceof zA?t.options:t instanceof ZA?Object.keys(t.enum):t instanceof $A?vC(t._def.innerType):t instanceof qA?[void 0]:t instanceof YA?[null]:null,xC=class t extends Be{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.object)return X(r,{code:H.invalid_type,expected:K.object,received:r.parsedType}),me;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(X(r,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=vC(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let A of o){if(i.has(A))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(A)}`);i.set(A,s)}}return new t({typeName:de.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ie(n)})}};function _R(t,e){let r=Bo(t),n=Bo(e);if(t===e)return{valid:!0,data:t};if(r===K.object&&n===K.object){let i=xe.objectKeys(e),s=xe.objectKeys(t).filter(A=>i.indexOf(A)!==-1),o={...t,...e};for(let A of s){let a=_R(t[A],e[A]);if(!a.valid)return{valid:!1};o[A]=a.data}return{valid:!0,data:o}}else if(r===K.array&&n===K.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],A=e[s],a=_R(o,A);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return r===K.date&&n===K.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var JA=class extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(vR(s)||vR(o))return me;let A=_R(s.value,o.value);return A.valid?((kR(s)||kR(o))&&r.dirty(),{status:r.value,value:A.data}):(X(n,{code:H.invalid_intersection_types}),me)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};JA.create=(t,e,r)=>new JA({left:t,right:e,typeName:de.ZodIntersection,...Ie(r)});var Ri=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return X(n,{code:H.invalid_type,expected:K.array,received:n.parsedType}),me;if(n.data.length<this._def.items.length)return X(n,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&n.data.length>this._def.items.length&&(X(n,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,A)=>{let a=this._def.items[A]||this._def.rest;return a?a._parse(new wn(n,o,n.path,A)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Ar.mergeArray(r,o)):Ar.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Ri.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ri({items:t,typeName:de.ZodTuple,rest:null,...Ie(e)})};var FC=class t extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return X(n,{code:H.invalid_type,expected:K.object,received:n.parsedType}),me;let i=[],s=this._def.keyType,o=this._def.valueType;for(let A in n.data)i.push({key:s._parse(new wn(n,A,n.path,A)),value:o._parse(new wn(n,n.data[A],n.path,A))});return n.common.async?Ar.mergeObjectAsync(r,i):Ar.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Be?new t({keyType:e,valueType:r,typeName:de.ZodRecord,...Ie(n)}):new t({keyType:Qo.create(),valueType:e,typeName:de.ZodRecord,...Ie(r)})}},Rl=class extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return X(n,{code:H.invalid_type,expected:K.map,received:n.parsedType}),me;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([A,a],c)=>({key:i._parse(new wn(n,A,n.path,[c,"key"])),value:s._parse(new wn(n,a,n.path,[c,"value"]))}));if(n.common.async){let A=new Map;return Promise.resolve().then(async()=>{for(let a of o){let c=await a.key,l=await a.value;if(c.status==="aborted"||l.status==="aborted")return me;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),A.set(c.value,l.value)}return{status:r.value,value:A}})}else{let A=new Map;for(let a of o){let c=a.key,l=a.value;if(c.status==="aborted"||l.status==="aborted")return me;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),A.set(c.value,l.value)}return{status:r.value,value:A}}}};Rl.create=(t,e,r)=>new Rl({valueType:e,keyType:t,typeName:de.ZodMap,...Ie(r)});var vl=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return X(n,{code:H.invalid_type,expected:K.set,received:n.parsedType}),me;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(X(n,{code:H.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(X(n,{code:H.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(a){let c=new Set;for(let l of a){if(l.status==="aborted")return me;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let A=[...n.data.values()].map((a,c)=>s._parse(new wn(n,a,n.path,c)));return n.common.async?Promise.all(A).then(a=>o(a)):o(A)}min(e,r){return new t({...this._def,minSize:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:ce.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};vl.create=(t,e)=>new vl({valueType:t,minSize:null,maxSize:null,typeName:de.ZodSet,...Ie(e)});var NC=class t extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.function)return X(r,{code:H.invalid_type,expected:K.function,received:r.parsedType}),me;function n(A,a){return _C({data:A,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kC(),uf].filter(c=>!!c),issueData:{code:H.invalid_arguments,argumentsError:a}})}function i(A,a){return _C({data:A,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kC(),uf].filter(c=>!!c),issueData:{code:H.invalid_return_type,returnTypeError:a}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof wo){let A=this;return dr(async function(...a){let c=new Zr([]),l=await A._def.args.parseAsync(a,s).catch(f=>{throw c.addIssue(n(a,f)),c}),u=await Reflect.apply(o,this,l);return await A._def.returns._def.type.parseAsync(u,s).catch(f=>{throw c.addIssue(i(u,f)),c})})}else{let A=this;return dr(function(...a){let c=A._def.args.safeParse(a,s);if(!c.success)throw new Zr([n(a,c.error)]);let l=Reflect.apply(o,this,c.data),u=A._def.returns.safeParse(l,s);if(!u.success)throw new Zr([i(l,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Ri.create(e).rest(gs.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||Ri.create([]).rest(gs.create()),returns:r||gs.create(),typeName:de.ZodFunction,...Ie(n)})}},WA=class extends Be{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};WA.create=(t,e)=>new WA({getter:t,typeName:de.ZodLazy,...Ie(e)});var jA=class extends Be{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return X(r,{received:r.data,code:H.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:e.data}}get value(){return this._def.value}};jA.create=(t,e)=>new jA({value:t,typeName:de.ZodLiteral,...Ie(e)});function X9(t,e){return new zA({values:t,typeName:de.ZodEnum,...Ie(e)})}var zA=class t extends Be{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return X(r,{expected:xe.joinValues(n),received:r.parsedType,code:H.invalid_type}),me}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return X(r,{received:r.data,code:H.invalid_enum_value,options:n}),me}return dr(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};zA.create=X9;var ZA=class extends Be{_parse(e){let r=xe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let i=xe.objectValues(r);return X(n,{expected:xe.joinValues(i),received:n.parsedType,code:H.invalid_type}),me}if(r.indexOf(e.data)===-1){let i=xe.objectValues(r);return X(n,{received:n.data,code:H.invalid_enum_value,options:i}),me}return dr(e.data)}get enum(){return this._def.values}};ZA.create=(t,e)=>new ZA({values:t,typeName:de.ZodNativeEnum,...Ie(e)});var wo=class extends Be{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.promise&&r.common.async===!1)return X(r,{code:H.invalid_type,expected:K.promise,received:r.parsedType}),me;let n=r.parsedType===K.promise?r.data:Promise.resolve(r.data);return dr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};wo.create=(t,e)=>new wo({type:t,typeName:de.ZodPromise,...Ie(e)});var $r=class extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===de.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{X(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(A=>this._def.schema._parseAsync({data:A,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=A=>{let a=i.refinement(A,s);if(n.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return A};if(n.common.async===!1){let A=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return A.status==="aborted"?me:(A.status==="dirty"&&r.dirty(),o(A.value),{status:r.value,value:A.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(A=>A.status==="aborted"?me:(A.status==="dirty"&&r.dirty(),o(A.value).then(()=>({status:r.value,value:A.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!hf(o))return o;let A=i.transform(o.value,s);if(A instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:A}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>hf(o)?Promise.resolve(i.transform(o.value,s)).then(A=>({status:r.value,value:A})):o);xe.assertNever(i)}};$r.create=(t,e,r)=>new $r({schema:t,typeName:de.ZodEffects,effect:e,...Ie(r)});$r.createWithPreprocess=(t,e,r)=>new $r({schema:e,effect:{type:"preprocess",transform:t},typeName:de.ZodEffects,...Ie(r)});var jn=class extends Be{_parse(e){return this._getType(e)===K.undefined?dr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};jn.create=(t,e)=>new jn({innerType:t,typeName:de.ZodOptional,...Ie(e)});var ps=class extends Be{_parse(e){return this._getType(e)===K.null?dr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ps.create=(t,e)=>new ps({innerType:t,typeName:de.ZodNullable,...Ie(e)});var $A=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};$A.create=(t,e)=>new $A({innerType:t,typeName:de.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ie(e)});var kl=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return DC(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Zr(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Zr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};kl.create=(t,e)=>new kl({innerType:t,typeName:de.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ie(e)});var _l=class extends Be{_parse(e){if(this._getType(e)!==K.nan){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.nan,received:n.parsedType}),me}return{status:"valid",value:e.data}}};_l.create=t=>new _l({typeName:de.ZodNaN,...Ie(t)});var Iye=Symbol("zod_brand"),TC=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ff=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?me:s.status==="dirty"?(r.dirty(),K9(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?me:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:de.ZodPipeline})}},Dl=class extends Be{_parse(e){let r=this._def.innerType._parse(e);return hf(r)&&(r.value=Object.freeze(r.value)),r}};Dl.create=(t,e)=>new Dl({innerType:t,typeName:de.ZodReadonly,...Ie(e)});var e8=(t,e={},r)=>t?yo.create().superRefine((n,i)=>{var s,o;if(!t(n)){let A=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,a=(o=(s=A.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof A=="string"?{message:A}:A;i.addIssue({code:"custom",...c,fatal:a})}}):yo.create(),Bye={object:Fr.lazycreate},de;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(de||(de={}));var Qye=(t,e={message:`Input not instance of ${t.name}`})=>e8(r=>r instanceof t,e),t8=Qo.create,r8=OA.create,yye=_l.create,wye=PA.create,n8=HA.create,bye=GA.create,Sye=bl.create,Rye=qA.create,vye=YA.create,kye=yo.create,_ye=gs.create,Dye=zn.create,xye=Sl.create,Fye=Es.create,Nye=Fr.create,Tye=Fr.strictCreate,Mye=VA.create,Lye=xC.create,Uye=JA.create,Oye=Ri.create,Pye=FC.create,Hye=Rl.create,Gye=vl.create,qye=NC.create,Yye=WA.create,Vye=jA.create,Jye=zA.create,Wye=ZA.create,jye=wo.create,Z9=$r.create,zye=jn.create,Zye=ps.create,$ye=$r.createWithPreprocess,Kye=ff.create,Xye=()=>t8().optional(),e0e=()=>r8().optional(),t0e=()=>n8().optional(),r0e={string:(t=>Qo.create({...t,coerce:!0})),number:(t=>OA.create({...t,coerce:!0})),boolean:(t=>HA.create({...t,coerce:!0})),bigint:(t=>PA.create({...t,coerce:!0})),date:(t=>GA.create({...t,coerce:!0}))},n0e=me,xl=Object.freeze({__proto__:null,defaultErrorMap:uf,setErrorMap:Aye,getErrorMap:kC,makeIssue:_C,EMPTY_PATH:aye,addIssueToContext:X,ParseStatus:Ar,INVALID:me,DIRTY:K9,OK:dr,isAborted:vR,isDirty:kR,isValid:hf,isAsync:DC,get util(){return xe},get objectUtil(){return RR},ZodParsedType:K,getParsedType:Bo,ZodType:Be,ZodString:Qo,ZodNumber:OA,ZodBigInt:PA,ZodBoolean:HA,ZodDate:GA,ZodSymbol:bl,ZodUndefined:qA,ZodNull:YA,ZodAny:yo,ZodUnknown:gs,ZodNever:zn,ZodVoid:Sl,ZodArray:Es,ZodObject:Fr,ZodUnion:VA,ZodDiscriminatedUnion:xC,ZodIntersection:JA,ZodTuple:Ri,ZodRecord:FC,ZodMap:Rl,ZodSet:vl,ZodFunction:NC,ZodLazy:WA,ZodLiteral:jA,ZodEnum:zA,ZodNativeEnum:ZA,ZodPromise:wo,ZodEffects:$r,ZodTransformer:$r,ZodOptional:jn,ZodNullable:ps,ZodDefault:$A,ZodCatch:kl,ZodNaN:_l,BRAND:Iye,ZodBranded:TC,ZodPipeline:ff,ZodReadonly:Dl,custom:e8,Schema:Be,ZodSchema:Be,late:Bye,get ZodFirstPartyTypeKind(){return de},coerce:r0e,any:kye,array:Fye,bigint:wye,boolean:n8,date:bye,discriminatedUnion:Lye,effect:Z9,enum:Jye,function:qye,instanceof:Qye,intersection:Uye,lazy:Yye,literal:Vye,map:Hye,nan:yye,nativeEnum:Wye,never:Dye,null:vye,nullable:Zye,number:r8,object:Nye,oboolean:t0e,onumber:e0e,optional:zye,ostring:Xye,pipeline:Kye,preprocess:$ye,promise:jye,record:Pye,set:Gye,strictObject:Tye,string:t8,symbol:Sye,transformer:Z9,tuple:Oye,undefined:Rye,union:Mye,unknown:_ye,void:xye,NEVER:n0e,ZodIssueCode:H,quotelessJson:oye,ZodError:Zr});var MR=be(require("os")),h8=be(require("crypto")),f8=be(require("path")),d8=be(u8());function f0e(t){let e=process.version,r=MR.default.type(),n=MR.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function d0e(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,d8.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return f8.default.join(t,"turborepo","telemetry.json")}function g0e({input:t,salt:e}){return h8.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Fl={buildUserAgent:f0e,oneWayHashWithSalt:g0e,defaultConfigPath:d0e};var E0e="TURBO_TELEMETRY_DEBUG",p0e="TURBO_TELEMETRY_DISABLED",C0e="TURBO_TELEMETRY_MESSAGE_DISABLED",m0e="DO_NOT_TRACK",I0e=xl.object({telemetry_enabled:xl.boolean(),telemetry_id:xl.string(),telemetry_salt:xl.string(),telemetry_alerted:xl.string().optional()}),KA=class t{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,Nl.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=t.validateConfig(n);return new t({configPath:e,config:i})}catch{return t.tryRemove({configPath:e})?t.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await Fl.defaultConfigPath();return t.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return I0e.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,LR.randomUUID)(),n=(0,LR.randomUUID)(),i=Fl.oneWayHashWithSalt({input:r,salt:n}),s=new t({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,Nl.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,Nl.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[m0e]||"0",r=process.env[p0e]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[C0e]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(qe.log(),qe.bold("Attention:"),qe.grey("Turborepo now collects completely anonymous telemetry regarding usage."),qe.grey("This information is used to shape the Turborepo roadmap and prioritize features."),qe.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),qe.underline(g8.default.gray("https://turborepo.dev/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return Fl.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[E0e]||"0";return e==="1"||e.toLowerCase()==="true"}};var Jv=require("crypto"),P4=be(O4());var ySe=20,wSe="/api/turborepo/v1/events",ra=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=ySe;this.timeout=250;this.sessionId=(0,Jv.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(wSe,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(P4.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":Fl.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,Jv.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return KA.isDebug()&&(qe.log(),qe.bold("[telemetry event]"),qe.dimmed(JSON.stringify(s,null,2)),qe.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var bf=class extends ra{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var V4=be(Y4());var SSe=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Sf=class extends ra{trackCI(){var e;return this.track({key:"ci",value:(e=V4.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:SSe.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var RSe={"create-turbo":bf,"turbo-ignore":Sf},vSe="https://telemetry.vercel.com";async function Wv({packageInfo:t,opts:e}){let r=RSe[t.name],n=await KA.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:vSe,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}var Rf=be(Nd());var J4="status",kSe=["enable","disable",J4];function _Se(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();qe.log(`Status: ${e?Rf.default.bold(Rf.default.green("Enabled")):Rf.default.bold(Rf.default.red("Disabled"))}`),qe.log(),e?qe.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):qe.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),qe.log("Learn more: https://turborepo.dev/docs/telemetry")}function DSe(t,e){if(!e.telemetry){qe.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),qe.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),qe.bold("Success!")),qe.log(),_Se(e)}function jv(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new Ck("[action]","Action to perform").choices(kSe).default(J4)).action(DSe)}var um={name:"turbo-ignore",version:"2.8.2-canary.7",description:"",homepage:"https://turborepo.dev",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"2.2.3"},devDependencies:{"@jest/globals":"29.7.0","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/node":"18.17.4",commander:"11.0.0",jest:"29.7.0","ts-jest":"29.4.6",tsup:"8.5.1",typescript:"5.5.4"}};var sz=require("child_process"),oz=be(require("path")),Az=require("fs");var W4=require("child_process");function je(...t){console.log("\u226B ",...t)}function vn(...t){console.error("\u226B ",...t)}function vf(...t){console.warn("\u226B ",...t)}function zv(...t){console.log(...t)}function FSe(t){try{return(0,W4.execFileSync)("git",["cat-file","-t",t],{stdio:"ignore"}),!0}catch{return!1}}function Zv(t){return t.fallback?(je(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function j4(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?FSe(process.env.VERCEL_GIT_PREVIOUS_SHA)?(je(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(je(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),Zv(t)):(je(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),Zv(t)):t.fallback?Zv(t):{ref:"HEAD^",type:"headRelative"}}function z4(t){return t.task?(je(`Using "${t.task}" as the task from the arguments`),t.task):(je('Using "build" as the task as it was unspecified'),"build")}var Z4=be(require("fs")),$4=be(require("path"));function K4(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return je(`Using "${r}" as workspace from arguments`),r;let n=$4.default.join(e,"package.json");try{let i=Z4.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(je(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(vn(`"${n}" is missing the "name" field (required).`),null)}catch{return vn(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}var $v=be(require("fs")),Kv=be(require("path")),X4=require("json5");function ez(t,e){var s,o;let{turboVersion:r}=t;if(r)return je(`Using turbo version "${r}" from arguments`),r;let n=Kv.default.join(e,"package.json");try{let A=$v.default.readFileSync(n,"utf8"),a=JSON.parse(A),c=(s=a.dependencies)==null?void 0:s.turbo,l=(o=a.devDependencies)==null?void 0:o.turbo;if(r=c||l,r!==void 0){if(!r.startsWith("catalog:"))return je(`Inferred turbo version "${r}" from "package.json"`),r;vf("Cannot infer turbo version due to use of `catalog` protocol. Remove `turbo` from your PNPM catalog to ensure correct turbo version is used")}}catch{return vn(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=Kv.default.join(e,"turbo.json");try{let A=$v.default.readFileSync(i,"utf8"),a=(0,X4.parse)(A);return"tasks"in a?(je('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in a?(je('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return vn(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}var Xv={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function tz({err:t}){let e=Object.keys(Xv).find(r=>{let{regex:n}=Xv[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:Xv[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}var rz=require("child_process"),NSe=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],TSe=["[vercel deploy]","[vercel build]"];function MSe({workspace:t}){return[`[vercel skip ${t}]`]}function LSe({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var USe=/\[vercel only .+\]/;function OSe({workspace:t}){return[`[vercel only ${t}]`]}function PSe(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,rz.execSync)("git show -s --format=%B").toString()}function nz({workspace:t}){var a;let e=PSe(),r=c=>e.includes(c),n=(a=USe.exec(e))==null?void 0:a[0];if(n)return OSe({workspace:t}).find(c=>c===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=LSe({workspace:t}).find(r),s=MSe({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=TSe.find(r),A=NSe.find(r);return o&&A?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${A}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:A?{result:"skip",scope:"global",reason:`Found commit message: ${A}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function HSe(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function iz(){return zv("\u23ED Ignoring the change"),process.exit(0)}function ki(){return zv("\u2713 Proceeding with deployment"),process.exit(1)}function az(t,e){var E,p;(E=e.telemetry)==null||E.trackCommandStatus({command:"ignore",status:"start"}),(p=e.telemetry)==null||p.trackArgumentWorkspace(t!==void 0),HSe(e);let r={workspace:t,...e};if(je(`Using Turborepo to determine if this project is affected by the commit...
|
|
135
|
+
`:""}var wX=yX,bX={dump:wX};function SI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var _ve=xx.load,Dve=xx.loadAll,xve=bX.dump;var Fve=SI("safeLoad","load"),Nve=SI("safeLoadAll","loadAll"),Tve=SI("safeDump","dump");var wie=be(_N()),bie=be(require("json5"));var qe={};gz(qe,{bold:()=>gie,dimmed:()=>pie,error:()=>vu,grey:()=>Cie,info:()=>die,item:()=>mie,log:()=>Ui,turboBlue:()=>Ta,turboGradient:()=>fie,turboLoader:()=>$M,turboRed:()=>zM,underline:()=>Eie,warn:()=>jQ,yellow:()=>ZM});var Br=be(Nd()),VM=be(pM()),JM=be(YM()),WM="#0099F7",jM="#F11712",hie="#FFFF00",WQ=t=>{let e=Iie(t);return r=>`\x1B[38;5;${e}m${r}${(0,Br.reset)("")}`},fie=(0,JM.default)(WM,jM),Ta=WQ(WM),zM=WQ(jM),ZM=WQ(hie),$M=t=>(0,VM.default)({text:t,spinner:{frames:[" ",Ta("> "),Ta(">> "),Ta(">>>")]}}),die=(...t)=>{Ui(Ta((0,Br.bold)(">>>")),t.join(" "))},gie=(...t)=>{Ui((0,Br.bold)(t.join(" ")))},Eie=(...t)=>{Ui((0,Br.underline)(t.join(" ")))},pie=(...t)=>{Ui((0,Br.dim)(t.join(" ")))},Cie=(...t)=>{Ui((0,Br.gray)(t.join(" ")))},mie=(...t)=>{Ui(Ta((0,Br.bold)(" \u2022")),t.join(" "))},Ui=(...t)=>{console.log(...t)},jQ=(...t)=>{console.error(ZM((0,Br.bold)(">>>")),t.join(" "))},vu=(...t)=>{console.error(zM((0,Br.bold)(">>>")),t.join(" "))};function Iie(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var Coe=be(require("os")),moe=be(w2());var Ioe=be(require("path"));var lQe=require("stream"),uQe=require("stream/promises"),hQe=require("zlib"),wC=require("fs"),X3=require("fs/promises"),bC=require("path"),fQe=require("os"),dQe=require("child_process"),e9=be(QP()),gQe=be(K3());var bQe=be(require("path")),SQe=be(A9());var sye=be(j9());var g8=be(Nd());var xe;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(A=>typeof i[i[A]]!="number"),o={};for(let A of s)o[A]=i[A];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(xe||(xe={}));var RR;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(RR||(RR={}));var K=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bo=t=>{switch(typeof t){case"undefined":return K.undefined;case"string":return K.string;case"number":return isNaN(t)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(t)?K.array:t===null?K.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?K.promise:typeof Map!="undefined"&&t instanceof Map?K.map:typeof Set!="undefined"&&t instanceof Set?K.set:typeof Date!="undefined"&&t instanceof Date?K.date:K.object;default:return K.unknown}},H=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),oye=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Zr=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let A=n,a=0;for(;a<o.path.length;){let c=o.path[a];a===o.path.length-1?(A[c]=A[c]||{_errors:[]},A[c]._errors.push(r(o))):A[c]=A[c]||{_errors:[]},A=A[c],a++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Zr.create=t=>new Zr(t);var uf=(t,e)=>{let r;switch(t.code){case H.invalid_type:t.received===K.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case H.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,xe.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:r=`Unrecognized key(s) in object: ${xe.joinValues(t.keys,", ")}`;break;case H.invalid_union:r="Invalid input";break;case H.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${xe.joinValues(t.options)}`;break;case H.invalid_enum_value:r=`Invalid enum value. Expected ${xe.joinValues(t.options)}, received '${t.received}'`;break;case H.invalid_arguments:r="Invalid function arguments";break;case H.invalid_return_type:r="Invalid function return type";break;case H.invalid_date:r="Invalid date";break;case H.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:xe.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case H.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case H.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case H.custom:r="Invalid input";break;case H.invalid_intersection_types:r="Intersection results could not be merged";break;case H.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case H.not_finite:r="Number must be finite";break;default:r=e.defaultError,xe.assertNever(t)}return{message:r}},$9=uf;function Aye(t){$9=t}function kC(){return $9}var _C=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},A="",a=n.filter(c=>!!c).slice().reverse();for(let c of a)A=c(o,{data:e,defaultError:A}).message;return{...i,path:s,message:i.message||A}},aye=[];function X(t,e){let r=_C({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kC(),uf].filter(n=>!!n)});t.common.issues.push(r)}var Ar=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return me;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return me;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},me=Object.freeze({status:"aborted"}),K9=t=>({status:"dirty",value:t}),dr=t=>({status:"valid",value:t}),vR=t=>t.status==="aborted",kR=t=>t.status==="dirty",hf=t=>t.status==="valid",DC=t=>typeof Promise!="undefined"&&t instanceof Promise,ce;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ce||(ce={}));var wn=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},z9=(t,e)=>{if(hf(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Zr(t.common.issues);return this._error=r,this._error}}};function Ie(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,A)=>o.code!=="invalid_type"?{message:A.defaultError}:typeof A.data=="undefined"?{message:n!=null?n:A.defaultError}:{message:r!=null?r:A.defaultError},description:i}}var Be=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Bo(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Bo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ar,ctx:{common:e.parent.common,data:e.data,parsedType:Bo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(DC(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bo(e)},s=this._parseSync({data:e,path:i.path,parent:i});return z9(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bo(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(DC(i)?i:Promise.resolve(i));return z9(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),A=()=>s.addIssue({code:H.custom,...n(i)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(a=>a?!0:(A(),!1)):o?!0:(A(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new $r({schema:this,typeName:de.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return jn.create(this,this._def)}nullable(){return ps.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Es.create(this,this._def)}promise(){return wo.create(this,this._def)}or(e){return VA.create([this,e],this._def)}and(e){return JA.create(this,e,this._def)}transform(e){return new $r({...Ie(this._def),schema:this,typeName:de.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new $A({...Ie(this._def),innerType:this,defaultValue:r,typeName:de.ZodDefault})}brand(){return new TC({typeName:de.ZodBranded,type:this,...Ie(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new kl({...Ie(this._def),innerType:this,catchValue:r,typeName:de.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return ff.create(this,e)}readonly(){return Dl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},cye=/^c[^\s-]{8,}$/i,lye=/^[a-z][a-z0-9]*$/,uye=/^[0-9A-HJKMNP-TV-Z]{26}$/,hye=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fye=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dye="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",SR,gye=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Eye=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,pye=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Cye(t,e){return!!((e==="v4"||!e)&&gye.test(t)||(e==="v6"||!e)&&Eye.test(t))}var Qo=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.string,received:s.parsedType}),me}let n=new Ar,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,A=e.data.length<s.value;(o||A)&&(i=this._getOrReturnCtx(e,i),o?X(i,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):A&&X(i,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")fye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"email",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")SR||(SR=new RegExp(dye,"u")),SR.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"emoji",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")hye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"uuid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")cye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")lye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid2",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")uye.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ulid",code:H.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),X(i,{validation:"url",code:H.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"regex",code:H.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?pye(s).test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{code:H.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?Cye(e.data,s.version)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ip",code:H.invalid_string,message:s.message}),n.dirty()):xe.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:H.invalid_string,...ce.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ce.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ce.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ce.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ce.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ce.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ce.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ce.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ce.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...ce.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ce.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ce.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ce.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ce.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ce.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ce.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ce.errToObj(r)})}nonempty(e){return this.min(1,ce.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Qo.create=t=>{var e;return new Qo({checks:[],typeName:de.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ie(t)})};function mye(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var OA=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.number,received:s.parsedType}),me}let n,i=new Ar;for(let s of this._def.checks)s.kind==="int"?xe.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),X(n,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?mye(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_finite,message:s.message}),i.dirty()):xe.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ce.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ce.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ce.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xe.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};OA.create=t=>new OA({checks:[],typeName:de.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ie(t)});var PA=class t extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.bigint,received:s.parsedType}),me}let n,i=new Ar;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),X(n,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):xe.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ce.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};PA.create=t=>{var e;return new PA({checks:[],typeName:de.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ie(t)})};var HA=class extends Be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.boolean,received:n.parsedType}),me}return dr(e.data)}};HA.create=t=>new HA({typeName:de.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ie(t)});var GA=class t extends Be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_type,expected:K.date,received:s.parsedType}),me}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return X(s,{code:H.invalid_date}),me}let n=new Ar,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):xe.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ce.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ce.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};GA.create=t=>new GA({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:de.ZodDate,...Ie(t)});var bl=class extends Be{_parse(e){if(this._getType(e)!==K.symbol){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.symbol,received:n.parsedType}),me}return dr(e.data)}};bl.create=t=>new bl({typeName:de.ZodSymbol,...Ie(t)});var qA=class extends Be{_parse(e){if(this._getType(e)!==K.undefined){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.undefined,received:n.parsedType}),me}return dr(e.data)}};qA.create=t=>new qA({typeName:de.ZodUndefined,...Ie(t)});var YA=class extends Be{_parse(e){if(this._getType(e)!==K.null){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.null,received:n.parsedType}),me}return dr(e.data)}};YA.create=t=>new YA({typeName:de.ZodNull,...Ie(t)});var yo=class extends Be{constructor(){super(...arguments),this._any=!0}_parse(e){return dr(e.data)}};yo.create=t=>new yo({typeName:de.ZodAny,...Ie(t)});var gs=class extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return dr(e.data)}};gs.create=t=>new gs({typeName:de.ZodUnknown,...Ie(t)});var zn=class extends Be{_parse(e){let r=this._getOrReturnCtx(e);return X(r,{code:H.invalid_type,expected:K.never,received:r.parsedType}),me}};zn.create=t=>new zn({typeName:de.ZodNever,...Ie(t)});var Sl=class extends Be{_parse(e){if(this._getType(e)!==K.undefined){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.void,received:n.parsedType}),me}return dr(e.data)}};Sl.create=t=>new Sl({typeName:de.ZodVoid,...Ie(t)});var Es=class t extends Be{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==K.array)return X(r,{code:H.invalid_type,expected:K.array,received:r.parsedType}),me;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,A=r.data.length<i.exactLength.value;(o||A)&&(X(r,{code:o?H.too_big:H.too_small,minimum:A?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(X(r,{code:H.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(X(r,{code:H.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,A)=>i.type._parseAsync(new wn(r,o,r.path,A)))).then(o=>Ar.mergeArray(n,o));let s=[...r.data].map((o,A)=>i.type._parseSync(new wn(r,o,r.path,A)));return Ar.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:ce.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:ce.toString(r)}})}nonempty(e){return this.min(1,e)}};Es.create=(t,e)=>new Es({type:t,minLength:null,maxLength:null,exactLength:null,typeName:de.ZodArray,...Ie(e)});function wl(t){if(t instanceof Fr){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=jn.create(wl(n))}return new Fr({...t._def,shape:()=>e})}else return t instanceof Es?new Es({...t._def,type:wl(t.element)}):t instanceof jn?jn.create(wl(t.unwrap())):t instanceof ps?ps.create(wl(t.unwrap())):t instanceof Ri?Ri.create(t.items.map(e=>wl(e))):t}var Fr=class t extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=xe.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==K.object){let c=this._getOrReturnCtx(e);return X(c,{code:H.invalid_type,expected:K.object,received:c.parsedType}),me}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),A=[];if(!(this._def.catchall instanceof zn&&this._def.unknownKeys==="strip"))for(let c in i.data)o.includes(c)||A.push(c);let a=[];for(let c of o){let l=s[c],u=i.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new wn(i,u,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof zn){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of A)a.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(c==="strict")A.length>0&&(X(i,{code:H.unrecognized_keys,keys:A}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of A){let u=i.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new wn(i,u,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of a){let u=await l.key;c.push({key:u,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>Ar.mergeObjectSync(n,c)):Ar.mergeObjectSync(n,a)}get shape(){return this._def.shape()}strict(e){return ce.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,A;let a=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(A=ce.errToObj(e).message)!==null&&A!==void 0?A:a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:de.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return xe.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new t({...this._def,shape:()=>r})}deepPartial(){return wl(this)}partial(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return xe.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof jn;)s=s._def.innerType;r[n]=s}}),new t({...this._def,shape:()=>r})}keyof(){return X9(xe.objectKeys(this.shape))}};Fr.create=(t,e)=>new Fr({shape:()=>t,unknownKeys:"strip",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});Fr.strictCreate=(t,e)=>new Fr({shape:()=>t,unknownKeys:"strict",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});Fr.lazycreate=(t,e)=>new Fr({shape:t,unknownKeys:"strip",catchall:zn.create(),typeName:de.ZodObject,...Ie(e)});var VA=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let A of s)if(A.result.status==="valid")return A.result;for(let A of s)if(A.result.status==="dirty")return r.common.issues.push(...A.ctx.common.issues),A.result;let o=s.map(A=>new Zr(A.ctx.common.issues));return X(r,{code:H.invalid_union,unionErrors:o}),me}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let a of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=a._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let A=o.map(a=>new Zr(a));return X(r,{code:H.invalid_union,unionErrors:A}),me}}get options(){return this._def.options}};VA.create=(t,e)=>new VA({options:t,typeName:de.ZodUnion,...Ie(e)});var vC=t=>t instanceof WA?vC(t.schema):t instanceof $r?vC(t.innerType()):t instanceof jA?[t.value]:t instanceof zA?t.options:t instanceof ZA?Object.keys(t.enum):t instanceof $A?vC(t._def.innerType):t instanceof qA?[void 0]:t instanceof YA?[null]:null,xC=class t extends Be{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.object)return X(r,{code:H.invalid_type,expected:K.object,received:r.parsedType}),me;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(X(r,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=vC(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let A of o){if(i.has(A))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(A)}`);i.set(A,s)}}return new t({typeName:de.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ie(n)})}};function _R(t,e){let r=Bo(t),n=Bo(e);if(t===e)return{valid:!0,data:t};if(r===K.object&&n===K.object){let i=xe.objectKeys(e),s=xe.objectKeys(t).filter(A=>i.indexOf(A)!==-1),o={...t,...e};for(let A of s){let a=_R(t[A],e[A]);if(!a.valid)return{valid:!1};o[A]=a.data}return{valid:!0,data:o}}else if(r===K.array&&n===K.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],A=e[s],a=_R(o,A);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return r===K.date&&n===K.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var JA=class extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(vR(s)||vR(o))return me;let A=_R(s.value,o.value);return A.valid?((kR(s)||kR(o))&&r.dirty(),{status:r.value,value:A.data}):(X(n,{code:H.invalid_intersection_types}),me)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};JA.create=(t,e,r)=>new JA({left:t,right:e,typeName:de.ZodIntersection,...Ie(r)});var Ri=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return X(n,{code:H.invalid_type,expected:K.array,received:n.parsedType}),me;if(n.data.length<this._def.items.length)return X(n,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&n.data.length>this._def.items.length&&(X(n,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,A)=>{let a=this._def.items[A]||this._def.rest;return a?a._parse(new wn(n,o,n.path,A)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Ar.mergeArray(r,o)):Ar.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Ri.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ri({items:t,typeName:de.ZodTuple,rest:null,...Ie(e)})};var FC=class t extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return X(n,{code:H.invalid_type,expected:K.object,received:n.parsedType}),me;let i=[],s=this._def.keyType,o=this._def.valueType;for(let A in n.data)i.push({key:s._parse(new wn(n,A,n.path,A)),value:o._parse(new wn(n,n.data[A],n.path,A))});return n.common.async?Ar.mergeObjectAsync(r,i):Ar.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Be?new t({keyType:e,valueType:r,typeName:de.ZodRecord,...Ie(n)}):new t({keyType:Qo.create(),valueType:e,typeName:de.ZodRecord,...Ie(r)})}},Rl=class extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return X(n,{code:H.invalid_type,expected:K.map,received:n.parsedType}),me;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([A,a],c)=>({key:i._parse(new wn(n,A,n.path,[c,"key"])),value:s._parse(new wn(n,a,n.path,[c,"value"]))}));if(n.common.async){let A=new Map;return Promise.resolve().then(async()=>{for(let a of o){let c=await a.key,l=await a.value;if(c.status==="aborted"||l.status==="aborted")return me;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),A.set(c.value,l.value)}return{status:r.value,value:A}})}else{let A=new Map;for(let a of o){let c=a.key,l=a.value;if(c.status==="aborted"||l.status==="aborted")return me;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),A.set(c.value,l.value)}return{status:r.value,value:A}}}};Rl.create=(t,e,r)=>new Rl({valueType:e,keyType:t,typeName:de.ZodMap,...Ie(r)});var vl=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return X(n,{code:H.invalid_type,expected:K.set,received:n.parsedType}),me;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(X(n,{code:H.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(X(n,{code:H.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(a){let c=new Set;for(let l of a){if(l.status==="aborted")return me;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let A=[...n.data.values()].map((a,c)=>s._parse(new wn(n,a,n.path,c)));return n.common.async?Promise.all(A).then(a=>o(a)):o(A)}min(e,r){return new t({...this._def,minSize:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:ce.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};vl.create=(t,e)=>new vl({valueType:t,minSize:null,maxSize:null,typeName:de.ZodSet,...Ie(e)});var NC=class t extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.function)return X(r,{code:H.invalid_type,expected:K.function,received:r.parsedType}),me;function n(A,a){return _C({data:A,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kC(),uf].filter(c=>!!c),issueData:{code:H.invalid_arguments,argumentsError:a}})}function i(A,a){return _C({data:A,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kC(),uf].filter(c=>!!c),issueData:{code:H.invalid_return_type,returnTypeError:a}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof wo){let A=this;return dr(async function(...a){let c=new Zr([]),l=await A._def.args.parseAsync(a,s).catch(f=>{throw c.addIssue(n(a,f)),c}),u=await Reflect.apply(o,this,l);return await A._def.returns._def.type.parseAsync(u,s).catch(f=>{throw c.addIssue(i(u,f)),c})})}else{let A=this;return dr(function(...a){let c=A._def.args.safeParse(a,s);if(!c.success)throw new Zr([n(a,c.error)]);let l=Reflect.apply(o,this,c.data),u=A._def.returns.safeParse(l,s);if(!u.success)throw new Zr([i(l,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Ri.create(e).rest(gs.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||Ri.create([]).rest(gs.create()),returns:r||gs.create(),typeName:de.ZodFunction,...Ie(n)})}},WA=class extends Be{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};WA.create=(t,e)=>new WA({getter:t,typeName:de.ZodLazy,...Ie(e)});var jA=class extends Be{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return X(r,{received:r.data,code:H.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:e.data}}get value(){return this._def.value}};jA.create=(t,e)=>new jA({value:t,typeName:de.ZodLiteral,...Ie(e)});function X9(t,e){return new zA({values:t,typeName:de.ZodEnum,...Ie(e)})}var zA=class t extends Be{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return X(r,{expected:xe.joinValues(n),received:r.parsedType,code:H.invalid_type}),me}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return X(r,{received:r.data,code:H.invalid_enum_value,options:n}),me}return dr(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};zA.create=X9;var ZA=class extends Be{_parse(e){let r=xe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let i=xe.objectValues(r);return X(n,{expected:xe.joinValues(i),received:n.parsedType,code:H.invalid_type}),me}if(r.indexOf(e.data)===-1){let i=xe.objectValues(r);return X(n,{received:n.data,code:H.invalid_enum_value,options:i}),me}return dr(e.data)}get enum(){return this._def.values}};ZA.create=(t,e)=>new ZA({values:t,typeName:de.ZodNativeEnum,...Ie(e)});var wo=class extends Be{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==K.promise&&r.common.async===!1)return X(r,{code:H.invalid_type,expected:K.promise,received:r.parsedType}),me;let n=r.parsedType===K.promise?r.data:Promise.resolve(r.data);return dr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};wo.create=(t,e)=>new wo({type:t,typeName:de.ZodPromise,...Ie(e)});var $r=class extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===de.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{X(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(A=>this._def.schema._parseAsync({data:A,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=A=>{let a=i.refinement(A,s);if(n.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return A};if(n.common.async===!1){let A=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return A.status==="aborted"?me:(A.status==="dirty"&&r.dirty(),o(A.value),{status:r.value,value:A.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(A=>A.status==="aborted"?me:(A.status==="dirty"&&r.dirty(),o(A.value).then(()=>({status:r.value,value:A.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!hf(o))return o;let A=i.transform(o.value,s);if(A instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:A}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>hf(o)?Promise.resolve(i.transform(o.value,s)).then(A=>({status:r.value,value:A})):o);xe.assertNever(i)}};$r.create=(t,e,r)=>new $r({schema:t,typeName:de.ZodEffects,effect:e,...Ie(r)});$r.createWithPreprocess=(t,e,r)=>new $r({schema:e,effect:{type:"preprocess",transform:t},typeName:de.ZodEffects,...Ie(r)});var jn=class extends Be{_parse(e){return this._getType(e)===K.undefined?dr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};jn.create=(t,e)=>new jn({innerType:t,typeName:de.ZodOptional,...Ie(e)});var ps=class extends Be{_parse(e){return this._getType(e)===K.null?dr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ps.create=(t,e)=>new ps({innerType:t,typeName:de.ZodNullable,...Ie(e)});var $A=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};$A.create=(t,e)=>new $A({innerType:t,typeName:de.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ie(e)});var kl=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return DC(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Zr(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Zr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};kl.create=(t,e)=>new kl({innerType:t,typeName:de.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ie(e)});var _l=class extends Be{_parse(e){if(this._getType(e)!==K.nan){let n=this._getOrReturnCtx(e);return X(n,{code:H.invalid_type,expected:K.nan,received:n.parsedType}),me}return{status:"valid",value:e.data}}};_l.create=t=>new _l({typeName:de.ZodNaN,...Ie(t)});var Iye=Symbol("zod_brand"),TC=class extends Be{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ff=class t extends Be{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?me:s.status==="dirty"?(r.dirty(),K9(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?me:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:de.ZodPipeline})}},Dl=class extends Be{_parse(e){let r=this._def.innerType._parse(e);return hf(r)&&(r.value=Object.freeze(r.value)),r}};Dl.create=(t,e)=>new Dl({innerType:t,typeName:de.ZodReadonly,...Ie(e)});var e8=(t,e={},r)=>t?yo.create().superRefine((n,i)=>{var s,o;if(!t(n)){let A=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,a=(o=(s=A.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof A=="string"?{message:A}:A;i.addIssue({code:"custom",...c,fatal:a})}}):yo.create(),Bye={object:Fr.lazycreate},de;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(de||(de={}));var Qye=(t,e={message:`Input not instance of ${t.name}`})=>e8(r=>r instanceof t,e),t8=Qo.create,r8=OA.create,yye=_l.create,wye=PA.create,n8=HA.create,bye=GA.create,Sye=bl.create,Rye=qA.create,vye=YA.create,kye=yo.create,_ye=gs.create,Dye=zn.create,xye=Sl.create,Fye=Es.create,Nye=Fr.create,Tye=Fr.strictCreate,Mye=VA.create,Lye=xC.create,Uye=JA.create,Oye=Ri.create,Pye=FC.create,Hye=Rl.create,Gye=vl.create,qye=NC.create,Yye=WA.create,Vye=jA.create,Jye=zA.create,Wye=ZA.create,jye=wo.create,Z9=$r.create,zye=jn.create,Zye=ps.create,$ye=$r.createWithPreprocess,Kye=ff.create,Xye=()=>t8().optional(),e0e=()=>r8().optional(),t0e=()=>n8().optional(),r0e={string:(t=>Qo.create({...t,coerce:!0})),number:(t=>OA.create({...t,coerce:!0})),boolean:(t=>HA.create({...t,coerce:!0})),bigint:(t=>PA.create({...t,coerce:!0})),date:(t=>GA.create({...t,coerce:!0}))},n0e=me,xl=Object.freeze({__proto__:null,defaultErrorMap:uf,setErrorMap:Aye,getErrorMap:kC,makeIssue:_C,EMPTY_PATH:aye,addIssueToContext:X,ParseStatus:Ar,INVALID:me,DIRTY:K9,OK:dr,isAborted:vR,isDirty:kR,isValid:hf,isAsync:DC,get util(){return xe},get objectUtil(){return RR},ZodParsedType:K,getParsedType:Bo,ZodType:Be,ZodString:Qo,ZodNumber:OA,ZodBigInt:PA,ZodBoolean:HA,ZodDate:GA,ZodSymbol:bl,ZodUndefined:qA,ZodNull:YA,ZodAny:yo,ZodUnknown:gs,ZodNever:zn,ZodVoid:Sl,ZodArray:Es,ZodObject:Fr,ZodUnion:VA,ZodDiscriminatedUnion:xC,ZodIntersection:JA,ZodTuple:Ri,ZodRecord:FC,ZodMap:Rl,ZodSet:vl,ZodFunction:NC,ZodLazy:WA,ZodLiteral:jA,ZodEnum:zA,ZodNativeEnum:ZA,ZodPromise:wo,ZodEffects:$r,ZodTransformer:$r,ZodOptional:jn,ZodNullable:ps,ZodDefault:$A,ZodCatch:kl,ZodNaN:_l,BRAND:Iye,ZodBranded:TC,ZodPipeline:ff,ZodReadonly:Dl,custom:e8,Schema:Be,ZodSchema:Be,late:Bye,get ZodFirstPartyTypeKind(){return de},coerce:r0e,any:kye,array:Fye,bigint:wye,boolean:n8,date:bye,discriminatedUnion:Lye,effect:Z9,enum:Jye,function:qye,instanceof:Qye,intersection:Uye,lazy:Yye,literal:Vye,map:Hye,nan:yye,nativeEnum:Wye,never:Dye,null:vye,nullable:Zye,number:r8,object:Nye,oboolean:t0e,onumber:e0e,optional:zye,ostring:Xye,pipeline:Kye,preprocess:$ye,promise:jye,record:Pye,set:Gye,strictObject:Tye,string:t8,symbol:Sye,transformer:Z9,tuple:Oye,undefined:Rye,union:Mye,unknown:_ye,void:xye,NEVER:n0e,ZodIssueCode:H,quotelessJson:oye,ZodError:Zr});var MR=be(require("os")),h8=be(require("crypto")),f8=be(require("path")),d8=be(u8());function f0e(t){let e=process.version,r=MR.default.type(),n=MR.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function d0e(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,d8.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return f8.default.join(t,"turborepo","telemetry.json")}function g0e({input:t,salt:e}){return h8.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Fl={buildUserAgent:f0e,oneWayHashWithSalt:g0e,defaultConfigPath:d0e};var E0e="TURBO_TELEMETRY_DEBUG",p0e="TURBO_TELEMETRY_DISABLED",C0e="TURBO_TELEMETRY_MESSAGE_DISABLED",m0e="DO_NOT_TRACK",I0e=xl.object({telemetry_enabled:xl.boolean(),telemetry_id:xl.string(),telemetry_salt:xl.string(),telemetry_alerted:xl.string().optional()}),KA=class t{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,Nl.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=t.validateConfig(n);return new t({configPath:e,config:i})}catch{return t.tryRemove({configPath:e})?t.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await Fl.defaultConfigPath();return t.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return I0e.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,LR.randomUUID)(),n=(0,LR.randomUUID)(),i=Fl.oneWayHashWithSalt({input:r,salt:n}),s=new t({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,Nl.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,Nl.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[m0e]||"0",r=process.env[p0e]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[C0e]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(qe.log(),qe.bold("Attention:"),qe.grey("Turborepo now collects completely anonymous telemetry regarding usage."),qe.grey("This information is used to shape the Turborepo roadmap and prioritize features."),qe.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),qe.underline(g8.default.gray("https://turborepo.dev/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return Fl.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[E0e]||"0";return e==="1"||e.toLowerCase()==="true"}};var Jv=require("crypto"),P4=be(O4());var ySe=20,wSe="/api/turborepo/v1/events",ra=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=ySe;this.timeout=250;this.sessionId=(0,Jv.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(wSe,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(P4.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":Fl.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,Jv.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return KA.isDebug()&&(qe.log(),qe.bold("[telemetry event]"),qe.dimmed(JSON.stringify(s,null,2)),qe.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var bf=class extends ra{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var V4=be(Y4());var SSe=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Sf=class extends ra{trackCI(){var e;return this.track({key:"ci",value:(e=V4.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:SSe.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var RSe={"create-turbo":bf,"turbo-ignore":Sf},vSe="https://telemetry.vercel.com";async function Wv({packageInfo:t,opts:e}){let r=RSe[t.name],n=await KA.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:vSe,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}var Rf=be(Nd());var J4="status",kSe=["enable","disable",J4];function _Se(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();qe.log(`Status: ${e?Rf.default.bold(Rf.default.green("Enabled")):Rf.default.bold(Rf.default.red("Disabled"))}`),qe.log(),e?qe.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):qe.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),qe.log("Learn more: https://turborepo.dev/docs/telemetry")}function DSe(t,e){if(!e.telemetry){qe.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),qe.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),qe.bold("Success!")),qe.log(),_Se(e)}function jv(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new Ck("[action]","Action to perform").choices(kSe).default(J4)).action(DSe)}var um={name:"turbo-ignore",version:"2.8.2-canary.9",description:"",homepage:"https://turborepo.dev",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"2.2.3"},devDependencies:{"@jest/globals":"29.7.0","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/node":"18.17.4",commander:"11.0.0",jest:"29.7.0","ts-jest":"29.4.6",tsup:"8.5.1",typescript:"5.5.4"}};var sz=require("child_process"),oz=be(require("path")),Az=require("fs");var W4=require("child_process");function je(...t){console.log("\u226B ",...t)}function vn(...t){console.error("\u226B ",...t)}function vf(...t){console.warn("\u226B ",...t)}function zv(...t){console.log(...t)}function FSe(t){try{return(0,W4.execFileSync)("git",["cat-file","-t",t],{stdio:"ignore"}),!0}catch{return!1}}function Zv(t){return t.fallback?(je(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function j4(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?FSe(process.env.VERCEL_GIT_PREVIOUS_SHA)?(je(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(je(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),Zv(t)):(je(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),Zv(t)):t.fallback?Zv(t):{ref:"HEAD^",type:"headRelative"}}function z4(t){return t.task?(je(`Using "${t.task}" as the task from the arguments`),t.task):(je('Using "build" as the task as it was unspecified'),"build")}var Z4=be(require("fs")),$4=be(require("path"));function K4(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return je(`Using "${r}" as workspace from arguments`),r;let n=$4.default.join(e,"package.json");try{let i=Z4.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(je(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(vn(`"${n}" is missing the "name" field (required).`),null)}catch{return vn(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}var $v=be(require("fs")),Kv=be(require("path")),X4=require("json5");function ez(t,e){var s,o;let{turboVersion:r}=t;if(r)return je(`Using turbo version "${r}" from arguments`),r;let n=Kv.default.join(e,"package.json");try{let A=$v.default.readFileSync(n,"utf8"),a=JSON.parse(A),c=(s=a.dependencies)==null?void 0:s.turbo,l=(o=a.devDependencies)==null?void 0:o.turbo;if(r=c||l,r!==void 0){if(!r.startsWith("catalog:"))return je(`Inferred turbo version "${r}" from "package.json"`),r;vf("Cannot infer turbo version due to use of `catalog` protocol. Remove `turbo` from your PNPM catalog to ensure correct turbo version is used")}}catch{return vn(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=Kv.default.join(e,"turbo.json");try{let A=$v.default.readFileSync(i,"utf8"),a=(0,X4.parse)(A);return"tasks"in a?(je('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in a?(je('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return vn(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}var Xv={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function tz({err:t}){let e=Object.keys(Xv).find(r=>{let{regex:n}=Xv[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:Xv[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}var rz=require("child_process"),NSe=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],TSe=["[vercel deploy]","[vercel build]"];function MSe({workspace:t}){return[`[vercel skip ${t}]`]}function LSe({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var USe=/\[vercel only .+\]/;function OSe({workspace:t}){return[`[vercel only ${t}]`]}function PSe(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,rz.execSync)("git show -s --format=%B").toString()}function nz({workspace:t}){var a;let e=PSe(),r=c=>e.includes(c),n=(a=USe.exec(e))==null?void 0:a[0];if(n)return OSe({workspace:t}).find(c=>c===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=LSe({workspace:t}).find(r),s=MSe({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=TSe.find(r),A=NSe.find(r);return o&&A?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${A}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:A?{result:"skip",scope:"global",reason:`Found commit message: ${A}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function HSe(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function iz(){return zv("\u23ED Ignoring the change"),process.exit(0)}function ki(){return zv("\u2713 Proceeding with deployment"),process.exit(1)}function az(t,e){var E,p;(E=e.telemetry)==null||E.trackCommandStatus({command:"ignore",status:"start"}),(p=e.telemetry)==null||p.trackArgumentWorkspace(t!==void 0),HSe(e);let r={workspace:t,...e};if(je(`Using Turborepo to determine if this project is affected by the commit...
|
|
136
136
|
`),e.directory){let C=oz.default.resolve(e.directory);(0,Az.existsSync)(C)?r.directory=C:(vf(`Directory "${e.directory}" does not exist, using current directory`),r.directory=process.cwd())}else r.directory=process.cwd();if(process.env.TURBO_FORCE==="true")return je("`TURBO_FORCE` detected"),ki();let n=$f(r.directory);if(!n)return vn("Monorepo root not found. turbo-ignore inferencing failed"),ki();let i=K4(r);if(!i)return ki();let s=ez(r,n),o=z4(r),A=nz({workspace:i});if(A.result==="skip")return je(A.reason),iz();if(A.result==="deploy")return je(A.reason),ki();A.result==="conflict"&&je(A.reason);let a=j4({workspace:i,fallback:r.fallback});if(!a)return ki();let c=s?`turbo@${s}`:"turbo",l=`${i}...[${a.ref}]`,u=["-y",c,"run",o,`--filter=${l}`,"--dry=json"],h=o.includes("#")?`"${o}"`:o,f=`npx -y ${c} run ${h} --filter="${l}" --dry=json`;je(`Analyzing results of \`${f}\``);let d={cwd:n};e.maxBuffer&&(d.maxBuffer=e.maxBuffer),(0,sz.execFile)("npx",u,d,(C,w)=>{var R,S;if(C){let{level:_,code:O,message:N}=tz({err:C.message});return _==="warn"?((R=e.telemetry)==null||R.trackCommandWarning(N),vf(N)):vn(`${O}: ${C.message}`),ki()}try{let _=JSON.parse(w);if(_===null)return vn(`Failed to parse JSON output from \`${f}\`.`),ki();let{packages:O}=_;return O?O.length>0?(O.length===1?je(`This commit affects "${i}"`):je(`This commit affects "${i}" and ${O.length-1} ${O.length-1===1?"dependency":"dependencies"} (${O.slice(1).join(", ")})`),ki()):(je("This project and its dependencies are not affected"),iz()):(je("Detected single package repo"),ki())}catch(_){return vn(`Failed to parse JSON output from \`${f}\`.`),vn(_),ki()}finally{(S=e.telemetry)==null||S.trackCommandStatus({command:"ignore",status:"end"})}})}var hm,ek=new pk;ek.name(um.name).description("Only proceed with deployment if the workspace or any of its dependencies have changed").hook("preAction",async(t,e)=>{let{telemetry:r}=await Wv({packageInfo:{name:"turbo-ignore",version:um.version}});e.addOption(new ko("--telemetry").default(r).hideHelp()),hm=r}).hook("postAction",async()=>{await(hm==null?void 0:hm.close())}).argument("[workspace]",'The workspace being deployed. If [workspace] is not provided, it will be inferred from the "name" field of the "package.json" located at the current working directory.').addOption(new ko("-t, --task <name>","The task to execute").default("build")).addOption(new ko("-f, --fallback <ref>","On Vercel, if no previously deployed SHA is available to compare against, fallback to comparing against the provided ref")).addOption(new ko("-d, --directory <path>","The directory to run in (default: cwd)")).addOption(new ko("--turbo-version <version>","Explicitly set which version of turbo to invoke")).addOption(new ko("-b, --max-buffer <number>","maxBuffer for the child process in KB (default: 1024 KB)").argParser(t=>parseInt(t,10)*1024)).version(um.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1).action(az);jv(ek);ek.parse();
|
|
137
137
|
/*! Bundled license information:
|
|
138
138
|
|