@turbo/codemod 2.0.13 → 2.0.15-canary.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +22 -22
- package/dist/transforms/add-package-manager.js +19 -19
- package/dist/transforms/add-package-names.js +19 -19
- package/dist/transforms/clean-globs.js +17 -17
- package/dist/transforms/create-turbo-config.js +17 -17
- package/dist/transforms/migrate-dot-env.js +17 -17
- package/dist/transforms/migrate-env-var-dependencies.js +17 -17
- package/dist/transforms/rename-output-mode.js +17 -17
- package/dist/transforms/rename-pipeline.js +17 -17
- package/dist/transforms/set-default-outputs.js +17 -17
- package/dist/transforms/stabilize-env-mode.js +17 -17
- package/dist/transforms/stabilize-ui.js +17 -17
- package/dist/transforms/transform-env-literals-to-wildcards.js +17 -17
- package/package.json +5 -5
@@ -1,46 +1,46 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var _S=Object.create;var Xn=Object.defineProperty;var bS=Object.getOwnPropertyDescriptor;var wS=Object.getOwnPropertyNames;var SS=Object.getPrototypeOf,ES=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ph=(t,e)=>{for(var r in e)Xn(t,r,{get:e[r],enumerable:!0})},Ih=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of wS(e))!ES.call(t,n)&&n!==r&&Xn(t,n,{get:()=>e[n],enumerable:!(i=bS(e,n))||i.enumerable});return t};var ne=(t,e,r)=>(r=t!=null?_S(SS(t)):{},Ih(e||!t||!t.__esModule?Xn(r,"default",{value:t,enumerable:!0}):r,t)),vS=t=>Ih(Xn({},"__esModule",{value:!0}),t);var Bh=H((ZP,Fh)=>{Fh.exports=Mh;Mh.sync=xS;var Nh=require("fs");function RS(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 i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function Dh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:RS(e,r)}function Mh(t,e,r){Nh.stat(t,function(i,n){r(i,i?!1:Dh(n,t,e))})}function xS(t,e){return Dh(Nh.statSync(t),t,e)}});var $h=H((XP,Uh)=>{Uh.exports=Hh;Hh.sync=AS;var jh=require("fs");function Hh(t,e,r){jh.stat(t,function(i,n){r(i,i?!1:qh(n,e))})}function AS(t,e){return qh(jh.statSync(t),e)}function qh(t,e){return t.isFile()&&OS(t,e)}function OS(t,e){var r=t.mode,i=t.uid,n=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),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var zh=H((QP,Gh)=>{var JP=require("fs"),Jn;process.platform==="win32"||global.TESTING_WINDOWS?Jn=Bh():Jn=$h();Gh.exports=la;la.sync=TS;function la(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(i,n){la(t,e||{},function(s,o){s?n(s):i(o)})})}Jn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function TS(t,e){try{return Jn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Jh=H((eI,Xh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Wh=require("path"),kS=ei?";":":",Yh=zh(),Kh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Vh=(t,e)=>{let r=e.colon||kS,i=t.match(/\//)||ei&&t.match(/\\/)?[""]:[...ei?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ei?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ei?n.split(r):[""];return ei&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Zh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Vh(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(Kh(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Wh.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,d)=>{if(h===n.length)return f(a(u+1));let g=n[h];Yh(c+g,{pathExt:s},(y,_)=>{if(!y&&_)if(e.all)o.push(c+g);else return f(c+g);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},CS=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Vh(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=Wh.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(Yh.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Kh(t)};Xh.exports=Zh;Zh.sync=CS});var ua=H((tI,ca)=>{"use strict";var Qh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ca.exports=Qh;ca.exports.default=Qh});var nf=H((rI,rf)=>{"use strict";var ef=require("path"),LS=Jh(),PS=ua();function tf(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=LS.sync(t.command,{path:r[PS({env:r})],pathExt:e?ef.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=ef.resolve(n?t.options.cwd:"",o)),o}function IS(t){return tf(t)||tf(t,!0)}rf.exports=IS});var sf=H((iI,fa)=>{"use strict";var ha=/([()\][%!^"`<>&|;, *?])/g;function NS(t){return t=t.replace(ha,"^$1"),t}function DS(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ha,"^$1"),e&&(t=t.replace(ha,"^$1")),t}fa.exports.command=NS;fa.exports.argument=DS});var af=H((nI,of)=>{"use strict";of.exports=/^#!(.*)/});var cf=H((sI,lf)=>{"use strict";var MS=af();lf.exports=(t="")=>{let e=t.match(MS);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var hf=H((oI,uf)=>{"use strict";var pa=require("fs"),FS=cf();function BS(t){let r=Buffer.alloc(150),i;try{i=pa.openSync(t,"r"),pa.readSync(i,r,0,150,0),pa.closeSync(i)}catch{}return FS(r.toString())}uf.exports=BS});var mf=H((aI,df)=>{"use strict";var jS=require("path"),ff=nf(),pf=sf(),HS=hf(),qS=process.platform==="win32",US=/\.(?:com|exe)$/i,$S=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function GS(t){t.file=ff(t);let e=t.file&&HS(t.file);return e?(t.args.unshift(t.file),t.command=e,ff(t)):t.file}function zS(t){if(!qS)return t;let e=GS(t),r=!US.test(e);if(t.options.forceShell||r){let i=$S.test(e);t.command=jS.normalize(t.command),t.command=pf.command(t.command),t.args=t.args.map(s=>pf.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function WS(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:zS(i)}df.exports=WS});var _f=H((lI,gf)=>{"use strict";var da=process.platform==="win32";function ma(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 YS(t,e){if(!da)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=yf(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function yf(t,e){return da&&t===1&&!e.file?ma(e.original,"spawn"):null}function KS(t,e){return da&&t===1&&!e.file?ma(e.original,"spawnSync"):null}gf.exports={hookChildProcess:YS,verifyENOENT:yf,verifyENOENTSync:KS,notFoundError:ma}});var Sf=H((cI,ti)=>{"use strict";var bf=require("child_process"),ya=mf(),ga=_f();function wf(t,e,r){let i=ya(t,e,r),n=bf.spawn(i.command,i.args,i.options);return ga.hookChildProcess(n,i),n}function VS(t,e,r){let i=ya(t,e,r),n=bf.spawnSync(i.command,i.args,i.options);return n.error=n.error||ga.verifyENOENTSync(n.status,i),n}ti.exports=wf;ti.exports.spawn=wf;ti.exports.sync=VS;ti.exports._parse=ya;ti.exports._enoent=ga});var vf=H((uI,Ef)=>{"use strict";Ef.exports=t=>{let e=typeof t=="string"?`
|
2
2
|
`:`
|
3
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();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 Af=H((hI,nn)=>{"use strict";var rn=require("path"),Rf=ua(),xf=t=>{t={cwd:process.cwd(),path:process.env[Rf()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),i=[];for(;e!==r;)i.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let n=rn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(rn.delimiter)};nn.exports=xf;nn.exports.default=xf;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Rf({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var Tf=H((fI,_a)=>{"use strict";var Of=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};_a.exports=Of;_a.exports.default=Of});var Cf=H((pI,es)=>{"use strict";var
|
3
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();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 Af=H((hI,nn)=>{"use strict";var rn=require("path"),Rf=ua(),xf=t=>{t={cwd:process.cwd(),path:process.env[Rf()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),i=[];for(;e!==r;)i.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let n=rn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(rn.delimiter)};nn.exports=xf;nn.exports.default=xf;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Rf({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var Tf=H((fI,_a)=>{"use strict";var Of=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};_a.exports=Of;_a.exports.default=Of});var Cf=H((pI,es)=>{"use strict";var ZS=Tf(),Qn=new WeakMap,kf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Qn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return ZS(s,t),Qn.set(s,i),s};es.exports=kf;es.exports.default=kf;es.exports.callCount=t=>{if(!Qn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Qn.get(t)}});var Lf=H(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.SIGNALS=void 0;var XS=[{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"}];ts.SIGNALS=XS});var ba=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var JS=function(){let t=If-Pf+1;return Array.from({length:t},QS)};ri.getRealtimeSignals=JS;var QS=function(t,e){return{name:`SIGRT${e+1}`,number:Pf+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Pf=34,If=64;ri.SIGRTMAX=If});var Nf=H(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.getSignals=void 0;var eE=require("os"),tE=Lf(),rE=ba(),iE=function(){let t=(0,rE.getRealtimeSignals)();return[...tE.SIGNALS,...t].map(nE)};rs.getSignals=iE;var nE=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=eE.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Mf=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var sE=require("os"),Df=Nf(),oE=ba(),aE=function(){return(0,Df.getSignals)().reduce(lE,{})},lE=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}}},cE=aE();ii.signalsByName=cE;var uE=function(){let t=(0,Df.getSignals)(),e=oE.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>hE(n,t));return Object.assign({},...r)},hE=function(t,e){let r=fE(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},fE=function(t,e){let r=e.find(({name:i})=>sE.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},pE=uE();ii.signalsByNumber=pE});var Bf=H((_I,Ff)=>{"use strict";var{signalsByName:dE}=Mf(),mE=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",yE=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:dE[n].description,d=i&&i.code,y=`Command ${mE({timedOut:l,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,_=Object.prototype.toString.call(i)==="[object Error]",x=_?`${y}
|
4
4
|
${i.message}`:y,k=[x,e,t].filter(Boolean).join(`
|
5
|
-
`);return _?(i.originalMessage=i.message,i.message=k):i=new Error(k),i.shortMessage=x,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};Ff.exports=gE});var Hf=H((bI,wa)=>{"use strict";var is=["stdin","stdout","stderr"],_E=t=>is.some(e=>t[e]!==void 0),jf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return is.map(i=>t[i]);if(_E(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${is.map(i=>`\`${i}\``).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,is.length);return Array.from({length:r},(i,n)=>e[n])};wa.exports=jf;wa.exports.node=t=>{let e=jf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var qf=H((wI,ns)=>{ns.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ns.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ns.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wf=H((SI,oi)=>{var me=global.process,Tr=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"};Tr(me)?(Uf=require("assert"),ni=qf(),$f=/^win/i.test(me.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),me.__signal_exit_emitter__?Ae=me.__signal_exit_emitter__:(Ae=me.__signal_exit_emitter__=new sn,Ae.count=0,Ae.emitted={}),Ae.infinite||(Ae.setMaxListeners(1/0),Ae.infinite=!0),oi.exports=function(t,e){if(!Tr(global.process))return function(){};Uf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&Sa();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ae.removeListener(r,t),Ae.listeners("exit").length===0&&Ae.listeners("afterexit").length===0&&ss()};return Ae.on(r,t),i},ss=function(){!si||!Tr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,os[e])}catch{}}),me.emit=as,me.reallyExit=Ea,Ae.count-=1)},oi.exports.unload=ss,kr=function(e,r,i){Ae.emitted[e]||(Ae.emitted[e]=!0,Ae.emit(e,r,i))},os={},ni.forEach(function(t){os[t]=function(){if(Tr(global.process)){var r=me.listeners(t);r.length===Ae.count&&(ss(),kr("exit",null,t),kr("afterexit",null,t),$f&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,Sa=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,os[e]),!0}catch{return!1}}),me.emit=zf,me.reallyExit=Gf)},oi.exports.load=Sa,Ea=me.reallyExit,Gf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),Ea.call(me,me.exitCode))},as=me.emit,zf=function(e,r){if(e==="exit"&&Tr(global.process)){r!==void 0&&(me.exitCode=r);var i=as.apply(this,arguments);return kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),i}else return as.apply(this,arguments)}):oi.exports=function(){return function(){}};var Uf,ni,$f,sn,Ae,ss,kr,os,si,Sa,Ea,Gf,as,zf});var Kf=H((EI,Yf)=>{"use strict";var bE=require("os"),wE=Wf(),SE=1e3*5,EE=(t,e="SIGTERM",r={})=>{let i=t(e);return vE(t,e,r,i),i},vE=(t,e,r,i)=>{if(!RE(e,r,i))return;let n=AE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},RE=(t,{forceKillAfterTimeout:e},r)=>xE(t)&&e!==!1&&r,xE=t=>t===bE.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",AE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return SE;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},OE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},TE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},kE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{TE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},CE=({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})`)},LE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=wE(()=>{t.kill()});return i.finally(()=>{n()})};Yf.exports={spawnedKill:EE,spawnedCancel:OE,setupTimeout:kE,validateTimeout:CE,setExitHandler:LE}});var Zf=H((vI,Vf)=>{"use strict";var gt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";gt.writable=t=>gt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";gt.readable=t=>gt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";gt.duplex=t=>gt.writable(t)&>.readable(t);gt.transform=t=>gt.duplex(t)&&typeof t._transform=="function";Vf.exports=gt});var Jf=H((RI,Xf)=>{"use strict";var{PassThrough:PE}=require("stream");Xf.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new PE({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Qf=H((xI,on)=>{"use strict";var{constants:IE}=require("buffer"),NE=require("stream"),{promisify:DE}=require("util"),ME=Jf(),FE=DE(NE.pipeline),ls=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function va(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=ME(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=IE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await FE(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ls)})}),i.getBufferedValue()}on.exports=va;on.exports.buffer=(t,e)=>va(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>va(t,{...e,array:!0});on.exports.MaxBufferError=ls});var tp=H((AI,ep)=>{"use strict";var{PassThrough:BE}=require("stream");ep.exports=function(){var t=[],e=new BE({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),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",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var sp=H((OI,np)=>{"use strict";var ip=Zf(),rp=Qf(),jE=tp(),HE=(t,e)=>{e===void 0||t.stdin===void 0||(ip(e)?e.pipe(t.stdin):t.stdin.end(e))},qE=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=jE();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Ra=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?rp(t,{encoding:e,maxBuffer:i}):rp.buffer(t,{maxBuffer:i})},UE=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=xa(t,{encoding:i,buffer:n,maxBuffer:s}),l=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Ra(t,a),Ra(e,l),Ra(r,c)])}},$E=({input:t})=>{if(ip(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};np.exports={handleInput:HE,makeAllStream:qE,getSpawnedResult:UE,validateInputSync:$E}});var ap=H((TI,op)=>{"use strict";var GE=(async()=>{})().constructor.prototype,zE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(GE,t)]),WE=(t,e)=>{for(let[r,i]of zE){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},YE=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});op.exports={mergePromise:WE,getSpawnedPromise:YE}});var up=H((kI,cp)=>{"use strict";var lp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],KE=/^[\w.-]+$/,VE=/"/g,ZE=t=>typeof t!="string"||KE.test(t)?t:`"${t.replace(VE,'\\"')}"`,XE=(t,e)=>lp(t,e).join(" "),JE=(t,e)=>lp(t,e).map(r=>ZE(r)).join(" "),QE=/ +/g,e0=t=>{let e=[];for(let r of t.trim().split(QE)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};cp.exports={joinCommand:XE,getEscapedCommand:JE,parseCommand:e0}});var li=H((CI,ai)=>{"use strict";var t0=require("path"),Aa=require("child_process"),r0=Sf(),i0=vf(),n0=Af(),s0=Cf(),cs=Bf(),fp=Hf(),{spawnedKill:o0,spawnedCancel:a0,setupTimeout:l0,validateTimeout:c0,setExitHandler:u0}=Kf(),{handleInput:h0,getSpawnedResult:f0,makeAllStream:p0,validateInputSync:d0}=sp(),{mergePromise:hp,getSpawnedPromise:m0}=ap(),{joinCommand:pp,parseCommand:dp,getEscapedCommand:mp}=up(),y0=1e3*1e3*100,g0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?n0.env({env:s,cwd:i,execPath:n}):s},yp=(t,e,r={})=>{let i=r0._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:y0,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=g0(r),r.stdio=fp(r),process.platform==="win32"&&t0.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},an=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?i0(e):e,us=(t,e,r)=>{let i=yp(t,e,r),n=pp(t,e),s=mp(t,e);c0(i.options);let o;try{o=Aa.spawn(i.file,i.args,i.options)}catch(d){let g=new Aa.ChildProcess,y=Promise.reject(cs({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return hp(g,y)}let a=m0(o),l=l0(o,i.options,a),c=u0(o,i.options,l),u={isCanceled:!1};o.kill=o0.bind(null,o.kill.bind(o)),o.cancel=a0.bind(null,o,u);let f=s0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await f0(o,i.options,c),T=an(i.options,x),O=an(i.options,k),I=an(i.options,C);if(d||g!==0||y!==null){let w=cs({error:d,exitCode:g,signal:y,stdout:T,stderr:O,all:I,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return w;throw w}return{command:n,escapedCommand:s,exitCode:0,stdout:T,stderr:O,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return h0(o,i.options.input),o.all=p0(o,i.options),hp(o,f)};ai.exports=us;ai.exports.sync=(t,e,r)=>{let i=yp(t,e,r),n=pp(t,e),s=mp(t,e);d0(i.options);let o;try{o=Aa.spawnSync(i.file,i.args,i.options)}catch(c){throw cs({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=an(i.options,o.stdout,o.error),l=an(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=cs({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ai.exports.command=(t,e)=>{let[r,...i]=dp(t);return us(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=dp(t);return us.sync(r,i,e)};ai.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=fp.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var bd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function BR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=BR;function jR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=jR});var wd=H(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.isEnoentCodeError=void 0;function HR(t){return t.code==="ENOENT"}gs.isEnoentCodeError=HR});var Sd=H(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createDirentFromStats=void 0;var Ua=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 qR(t,e){return new Ua(t,e)}_s.createDirentFromStats=qR});var Ed=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.removeLeadingDotSegment=bt.escape=bt.makeAbsolute=bt.unixify=void 0;var UR=require("path"),$R=2,GR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function zR(t){return t.replace(/\\/g,"/")}bt.unixify=zR;function WR(t,e){return UR.resolve(t,e)}bt.makeAbsolute=WR;function YR(t){return t.replace(GR,"\\$2")}bt.escape=YR;function KR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice($R)}return t}bt.removeLeadingDotSegment=KR});var Rd=H((MI,vd)=>{vd.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 Od=H((FI,Ad)=>{var VR=Rd(),xd={"{":"}","(":")","[":"]"},ZR=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||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 l=xd[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},XR=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=xd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(VR(e))return!0;var i=ZR;return r&&r.strict===!1&&(i=XR),i(e)}});var kd=H((BI,Td)=>{"use strict";var JR=Od(),QR=require("path").posix.dirname,ex=require("os").platform()==="win32",$a="/",tx=/\\/g,rx=/[\{\[].*[\}\]]$/,ix=/(^|[^\\])([\{\[]|\([^\)]+$)/,nx=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Td.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&ex&&e.indexOf($a)<0&&(e=e.replace(tx,$a)),rx.test(e)&&(e+=$a),e+="a";do e=QR(e);while(JR(e)||ix.test(e));return e.replace(nx,"$1")}});var bs=H(nt=>{"use strict";nt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;nt.find=(t,e)=>t.nodes.find(r=>r.type===e);nt.exceedsLimit=(t,e,r=1,i)=>i===!1||!nt.isInteger(t)||!nt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;nt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};nt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);nt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;nt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;nt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);nt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ws=H((HI,Ld)=>{"use strict";var Cd=bs();Ld.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Cd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Cd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var Id=H((qI,Pd)=>{"use strict";Pd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Ud=H((UI,qd)=>{"use strict";var Nd=Id(),Pr=(t,e,r)=>{if(Nd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Nd(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(Pr.cache.hasOwnProperty(l))return Pr.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Hd(t)||Hd(e),f={min:t,max:e,a:c,b:u},d=[],g=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;g=Dd(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Dd(c,u,f,i)),f.negatives=g,f.positives=d,f.result=sx(g,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+g.length>1&&(f.result=`(?:${f.result})`),Pr.cache[l]=f,f.result};function sx(t,e,r){let i=Ga(t,e,"-",!1,r)||[],n=Ga(e,t,"",!1,r)||[],s=Ga(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function ox(t,e){let r=1,i=1,n=Fd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Fd(t,r);for(n=Bd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Bd(e+1,i)-1;return s=[...s],s.sort(cx),s}function ax(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=lx(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=ux(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Dd(t,e,r,i){let n=ox(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=ax(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+jd(a.count),o=c+1;continue}r.isPadded&&(h=hx(c,r,i)),u.string=h+u.pattern+jd(u.count),s.push(u),o=c+1,a=u}return s}function Ga(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Md(e,"string",a)&&s.push(r+a),i&&Md(e,"string",a)&&s.push(r+a)}return s}function lx(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function cx(t,e){return t>e?1:e>t?-1:0}function Md(t,e,r){return t.some(i=>i[e]===r)}function Fd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Bd(t,e){return t-t%Math.pow(10,e)}function jd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function ux(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Hd(t){return/^-?(0+)\d/.test(t)}function hx(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Pr.cache={};Pr.clearCache=()=>Pr.cache={};qd.exports=Pr});var Ya=H(($I,Zd)=>{"use strict";var fx=require("util"),zd=Ud(),$d=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),px=t=>e=>t===!0?Number(e):String(e),za=t=>typeof t=="number"||typeof t=="string"&&t!=="",pn=t=>Number.isInteger(+t),Wa=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},dx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,mx=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Gd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},yx=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Wd=(t,e,r,i)=>{if(r)return zd(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Yd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return zd(t,e,r)},Kd=(...t)=>new RangeError("Invalid range arguments: "+fx.inspect(...t)),Vd=(t,e,r)=>{if(r.strictRanges===!0)throw Kd([t,e]);return[]},gx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},_x=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Kd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Wa(a)||Wa(l)||Wa(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&dx(t,e,i)===!1,d=i.transform||px(f);if(i.toRegex&&r===1)return Wd(Gd(t,h),Gd(e,h),!0,i);let g={negatives:[],positives:[]},y=k=>g[k<0?"negatives":"positives"].push(Math.abs(k)),_=[],x=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):_.push(mx(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?yx(g,i):Yd(_,null,{wrap:!1,...i}):_},bx=(t,e,r=1,i={})=>{if(!pn(t)&&t.length>1||!pn(e)&&e.length>1)return Vd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Wd(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Yd(u,null,{wrap:!1,options:i}):u},Ss=(t,e,r,i={})=>{if(e==null&&za(t))return[t];if(!za(t)||!za(e))return Vd(t,e,i);if(typeof r=="function")return Ss(t,e,1,{transform:r});if($d(r))return Ss(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,pn(r)?pn(t)&&pn(e)?_x(t,e,r,n):bx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!$d(r)?gx(r,n):Ss(t,e,1,r)};Zd.exports=Ss});var Qd=H((GI,Jd)=>{"use strict";var wx=Ya(),Xd=bs(),Sx=(t,e={})=>{let r=(i,n={})=>{let s=Xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Xd.reduce(i.nodes),h=wx(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Jd.exports=Sx});var rm=H((zI,tm)=>{"use strict";var Ex=Ya(),em=ws(),di=bs(),Ir=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?di.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ir(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ir(n,s,r):n+s);return di.flatten(i)},vx=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Ir(a.pop(),em(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Ir(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=di.reduce(n.nodes);if(di.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Ex(...h,e);f.length===0&&(f=em(n,e)),a.push(Ir(a.pop(),f)),n.nodes=[];return}let l=di.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Ir(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(Ir(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return di.flatten(i(t))};tm.exports=vx});var nm=H((WI,im)=>{"use strict";im.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
6
|
-
`,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 cm=H((YI,lm)=>{"use strict";var Rx=ws(),{MAX_LENGTH:sm,CHAR_BACKSLASH:Ka,CHAR_BACKTICK:xx,CHAR_COMMA:Ax,CHAR_DOT:Ox,CHAR_LEFT_PARENTHESES:Tx,CHAR_RIGHT_PARENTHESES:kx,CHAR_LEFT_CURLY_BRACE:Cx,CHAR_RIGHT_CURLY_BRACE:Lx,CHAR_LEFT_SQUARE_BRACKET:om,CHAR_RIGHT_SQUARE_BRACKET:am,CHAR_DOUBLE_QUOTE:Px,CHAR_SINGLE_QUOTE:Ix,CHAR_NO_BREAK_SPACE:Nx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dx}=nm(),Mx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(sm,r.maxLength):sm;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,h=0,f,d={},g=()=>t[u++],y=_=>{if(_.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&_.type==="text"){a.value+=_.value;return}return o.nodes.push(_),_.parent=o,_.prev=a,a=_,_};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=g(),!(f===Dx||f===Nx)){if(f===Ka){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===am){y({type:"text",value:"\\"+f});continue}if(f===om){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===om){l++;continue}if(x===Ka){f+=g();continue}if(x===am&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===Tx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===kx){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===Px||f===Ix||f===xx){let _=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=g());){if(x===Ka){f+=x+g();continue}if(x===_){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===Cx){h++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(x),s.push(o),y({type:"open",value:f});continue}if(f===Lx){if(o.type!=="brace"){y({type:"text",value:f});continue}let _="close";o=s.pop(),o.close=!0,y({type:_,value:f}),h--,o=s[s.length-1];continue}if(f===Ax&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:Rx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Ox&&h>0&&o.commas===0){let _=o.nodes;if(h===0||_.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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"){_.pop();let x=_[_.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let _=s[s.length-1],x=_.nodes.indexOf(o);_.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};lm.exports=Mx});var fm=H((KI,hm)=>{"use strict";var um=ws(),Fx=Qd(),Bx=rm(),jx=cm(),Xe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Xe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Xe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.parse=(t,e={})=>jx(t,e);Xe.stringify=(t,e={})=>um(typeof t=="string"?Xe.parse(t,e):t,e);Xe.compile=(t,e={})=>(typeof t=="string"&&(t=Xe.parse(t,e)),Fx(t,e));Xe.expand=(t,e={})=>{typeof t=="string"&&(t=Xe.parse(t,e));let r=Bx(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Xe.compile(t,e):Xe.expand(t,e);hm.exports=Xe});var dn=H((VI,gm)=>{"use strict";var Hx=require("path"),wt="\\\\/",pm=`[^${wt}]`,Dt="\\.",qx="\\+",Ux="\\?",Es="\\/",$x="(?=.)",dm="[^/]",Va=`(?:${Es}|$)`,mm=`(?:^|${Es})`,Za=`${Dt}{1,2}${Va}`,Gx=`(?!${Dt})`,zx=`(?!${mm}${Za})`,Wx=`(?!${Dt}{0,1}${Va})`,Yx=`(?!${Za})`,Kx=`[^.${Es}]`,Vx=`${dm}*?`,ym={DOT_LITERAL:Dt,PLUS_LITERAL:qx,QMARK_LITERAL:Ux,SLASH_LITERAL:Es,ONE_CHAR:$x,QMARK:dm,END_ANCHOR:Va,DOTS_SLASH:Za,NO_DOT:Gx,NO_DOTS:zx,NO_DOT_SLASH:Wx,NO_DOTS_SLASH:Yx,QMARK_NO_DOT:Kx,STAR:Vx,START_ANCHOR:mm},Zx={...ym,SLASH_LITERAL:`[${wt}]`,QMARK:pm,STAR:`${pm}*?`,DOTS_SLASH:`${Dt}{1,2}(?:[${wt}]|$)`,NO_DOT:`(?!${Dt})`,NO_DOTS:`(?!(?:^|[${wt}])${Dt}{1,2}(?:[${wt}]|$))`,NO_DOT_SLASH:`(?!${Dt}{0,1}(?:[${wt}]|$))`,NO_DOTS_SLASH:`(?!${Dt}{1,2}(?:[${wt}]|$))`,QMARK_NO_DOT:`[^.${wt}]`,START_ANCHOR:`(?:^|[${wt}])`,END_ANCHOR:`(?:[${wt}]|$)`},Xx={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"};gm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Xx,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:Hx.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?Zx:ym}}});var mn=H($e=>{"use strict";var Jx=require("path"),Qx=process.platform==="win32",{REGEX_BACKSLASH:eA,REGEX_REMOVE_BACKSLASH:tA,REGEX_SPECIAL_CHARS:rA,REGEX_SPECIAL_CHARS_GLOBAL:iA}=dn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>rA.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(iA,"\\$1");$e.toPosixSlashes=t=>t.replace(eA,"/");$e.removeBackslashes=t=>t.replace(tA,e=>e==="\\"?"":e);$e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};$e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Qx===!0||Jx.sep==="\\";$e.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?$e.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};$e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};$e.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var xm=H((XI,Rm)=>{"use strict";var _m=mn(),{CHAR_ASTERISK:Xa,CHAR_AT:nA,CHAR_BACKWARD_SLASH:yn,CHAR_COMMA:sA,CHAR_DOT:Ja,CHAR_EXCLAMATION_MARK:Qa,CHAR_FORWARD_SLASH:vm,CHAR_LEFT_CURLY_BRACE:el,CHAR_LEFT_PARENTHESES:tl,CHAR_LEFT_SQUARE_BRACKET:oA,CHAR_PLUS:aA,CHAR_QUESTION_MARK:bm,CHAR_RIGHT_CURLY_BRACE:lA,CHAR_RIGHT_PARENTHESES:wm,CHAR_RIGHT_SQUARE_BRACKET:cA}=dn(),Sm=t=>t===vm||t===yn,Em=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},uA=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,d=!1,g=!1,y=!1,_=!1,x=!1,k=!1,C=!1,T=!1,O=!1,I=0,w,v,F={value:"",depth:0,isGlob:!1},q=()=>c>=i,P=()=>l.charCodeAt(c+1),$=()=>(w=v,l.charCodeAt(++c));for(;c<i;){v=$();let L;if(v===yn){k=F.backslashes=!0,v=$(),v===el&&(x=!0);continue}if(x===!0||v===el){for(I++;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,$();continue}if(v===el){I++;continue}if(x!==!0&&v===Ja&&(v=$())===Ja){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===sA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===lA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===vm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(w===Ja&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===aA||v===nA||v===Xa||v===bm||v===Qa)===!0&&P()===tl){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===Qa&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,v=$();continue}if(v===wm){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Xa){if(w===Xa&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===bm){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===oA){for(;q()!==!0&&(L=$());){if(L===yn){k=F.backslashes=!0,$();continue}if(L===cA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===Qa&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===tl){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===tl){k=F.backslashes=!0,v=$();continue}if(v===wm){O=!0;break}}continue}break}if(g===!0){if(O=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let K=l,V="",N="";u>0&&(V=l.slice(0,u),l=l.slice(u),h-=u),K&&g===!0&&h>0?(K=l.slice(0,h),N=l.slice(h)):g===!0?(K="",N=l):K=l,K&&K!==""&&K!=="/"&&K!==l&&Sm(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(N&&(N=_m.removeBackslashes(N)),K&&k===!0&&(K=_m.removeBackslashes(K)));let A={prefix:V,input:t,start:u,base:K,glob:N,isBrace:f,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:_,negated:C,negatedExtglob:T};if(r.tokens===!0&&(A.maxDepth=0,Sm(v)||o.push(F),A.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let j=0;j<s.length;j++){let z=L?L+1:u,D=s[j],p=t.slice(z,D);r.tokens&&(j===0&&u!==0?(o[j].isPrefix=!0,o[j].value=V):o[j].value=p,Em(o[j]),A.maxDepth+=o[j].depth),(j!==0||p!=="")&&a.push(p),L=D}if(L&&L+1<t.length){let j=t.slice(L+1);a.push(j),r.tokens&&(o[o.length-1].value=j,Em(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Rm.exports=uA});var Tm=H((JI,Om)=>{"use strict";var vs=dn(),Je=mn(),{MAX_LENGTH:Rs,POSIX_REGEX_SOURCE:hA,REGEX_NON_SPECIAL_CHARS:fA,REGEX_SPECIAL_CHARS_BACKREF:pA,REPLACEMENTS:Am}=vs,dA=(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(n=>Je.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,rl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Je.isWindows(e),c=vs.globChars(l),u=vs.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:_,NO_DOT_SLASH:x,NO_DOTS_SLASH:k,QMARK:C,QMARK_NO_DOT:T,STAR:O,START_ANCHOR:I}=c,w=U=>`(${a}(?:(?!${I}${U.dot?y:h}).)*?)`,v=r.dot?"":_,F=r.dot?C:T,q=r.bash===!0?w(r):O;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={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=Je.removePrefix(t,P),n=t.length;let $=[],K=[],V=[],N=s,A,L=()=>P.index===n-1,j=P.peek=(U=1)=>t[P.index+U],z=P.advance=()=>t[++P.index]||"",D=()=>t.slice(P.index+1),p=(U="",J=0)=>{P.consumed+=U,P.index+=J},m=U=>{P.output+=U.output!=null?U.output:U.value,p(U.value)},b=()=>{let U=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),P.start++,U++;return U%2===0?!1:(P.negated=!0,P.start++,!0)},R=U=>{P[U]++,V.push(U)},E=U=>{P[U]--,V.pop()},M=U=>{if(N.type==="globstar"){let J=P.braces>0&&(U.type==="comma"||U.type==="brace"),G=U.extglob===!0||$.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!J&&!G&&(P.output=P.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=q,P.output+=N.output)}if($.length&&U.type!=="paren"&&($[$.length-1].inner+=U.value),(U.value||U.output)&&m(U),N&&N.type==="text"&&U.type==="text"){N.value+=U.value,N.output=(N.output||"")+U.value;return}U.prev=N,o.push(U),N=U},B=(U,J)=>{let G={...u[J],conditions:1,inner:""};G.prev=N,G.parens=P.parens,G.output=P.output;let re=(r.capture?"(":"")+G.open;R("parens"),M({type:U,value:J,output:P.output?"":g}),M({type:"paren",extglob:!0,value:z(),output:re}),$.push(G)},Z=U=>{let J=U.close+(r.capture?")":""),G;if(U.type==="negate"){let re=q;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(re=w(r)),(re!==q||L()||/^\)+$/.test(D()))&&(J=U.close=`)$))${re}`),U.inner.includes("*")&&(G=D())&&/^\.[^\\/.]+$/.test(G)){let ce=rl(G,{...e,fastpaths:!1}).output;J=U.close=`)${ce})${re})`}U.prev.type==="bos"&&(P.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:A,output:J}),E("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let U=!1,J=t.replace(pA,(G,re,ce,Se,_e,S)=>Se==="\\"?(U=!0,G):Se==="?"?re?re+Se+(_e?C.repeat(_e.length):""):S===0?F+(_e?C.repeat(_e.length):""):C.repeat(ce.length):Se==="."?h.repeat(ce.length):Se==="*"?re?re+Se+(_e?q:""):q:re?G:`\\${G}`);return U===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),J===t&&r.contains===!0?(P.output=t,P):(P.output=Je.wrapOutput(J,P,e),P)}for(;!L();){if(A=z(),A==="\0")continue;if(A==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){A+="\\",M({type:"text",value:A});continue}let re=/^\\+/.exec(D()),ce=0;if(re&&re[0].length>2&&(ce=re[0].length,P.index+=ce,ce%2!==0&&(A+="\\")),r.unescape===!0?A=z():A+=z(),P.brackets===0){M({type:"text",value:A});continue}}if(P.brackets>0&&(A!=="]"||N.value==="["||N.value==="[^")){if(r.posix!==!1&&A===":"){let G=N.value.slice(1);if(G.includes("[")&&(N.posix=!0,G.includes(":"))){let re=N.value.lastIndexOf("["),ce=N.value.slice(0,re),Se=N.value.slice(re+2),_e=hA[Se];if(_e){N.value=ce+_e,P.backtrack=!0,z(),!s.output&&o.indexOf(N)===1&&(s.output=g);continue}}}(A==="["&&j()!==":"||A==="-"&&j()==="]")&&(A=`\\${A}`),A==="]"&&(N.value==="["||N.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&N.value==="["&&(A="^"),N.value+=A,m({value:A});continue}if(P.quotes===1&&A!=='"'){A=Je.escapeRegex(A),N.value+=A,m({value:A});continue}if(A==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:A});continue}if(A==="("){R("parens"),M({type:"paren",value:A});continue}if(A===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=$[$.length-1];if(G&&P.parens===G.parens+1){Z($.pop());continue}M({type:"paren",value:A,output:P.parens?")":"\\)"}),E("parens");continue}if(A==="["){if(r.nobracket===!0||!D().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));A=`\\${A}`}else R("brackets");M({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){M({type:"text",value:A,output:`\\${A}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));M({type:"text",value:A,output:`\\${A}`});continue}E("brackets");let G=N.value.slice(1);if(N.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(A=`/${A}`),N.value+=A,m({value:A}),r.literalBrackets===!1||Je.hasRegexChars(G))continue;let re=Je.escapeRegex(N.value);if(P.output=P.output.slice(0,-N.value.length),r.literalBrackets===!0){P.output+=re,N.value=re;continue}N.value=`(${a}${re}|${N.value})`,P.output+=N.value;continue}if(A==="{"&&r.nobrace!==!0){R("braces");let G={type:"brace",value:A,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};K.push(G),M(G);continue}if(A==="}"){let G=K[K.length-1];if(r.nobrace===!0||!G){M({type:"text",value:A,output:A});continue}let re=")";if(G.dots===!0){let ce=o.slice(),Se=[];for(let _e=ce.length-1;_e>=0&&(o.pop(),ce[_e].type!=="brace");_e--)ce[_e].type!=="dots"&&Se.unshift(ce[_e].value);re=dA(Se,r),P.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=P.output.slice(0,G.outputIndex),Se=P.tokens.slice(G.tokensIndex);G.value=G.output="\\{",A=re="\\}",P.output=ce;for(let _e of Se)P.output+=_e.output||_e.value}M({type:"brace",value:A,output:re}),E("braces"),K.pop();continue}if(A==="|"){$.length>0&&$[$.length-1].conditions++,M({type:"text",value:A});continue}if(A===","){let G=A,re=K[K.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,G="|"),M({type:"comma",value:A,output:G});continue}if(A==="/"){if(N.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",o.pop(),N=s;continue}M({type:"slash",value:A,output:d});continue}if(A==="."){if(P.braces>0&&N.type==="dot"){N.value==="."&&(N.output=h);let G=K[K.length-1];N.type="dots",N.output+=A,N.value+=A,G.dots=!0;continue}if(P.braces+P.parens===0&&N.type!=="bos"&&N.type!=="slash"){M({type:"text",value:A,output:h});continue}M({type:"dot",value:A,output:h});continue}if(A==="?"){if(!(N&&N.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("qmark",A);continue}if(N&&N.type==="paren"){let re=j(),ce=A;if(re==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(D()))&&(ce=`\\${A}`),M({type:"text",value:A,output:ce});continue}if(r.dot!==!0&&(N.type==="slash"||N.type==="bos")){M({type:"qmark",value:A,output:T});continue}M({type:"qmark",value:A,output:C});continue}if(A==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){B("negate",A);continue}if(r.nonegate!==!0&&P.index===0){b();continue}}if(A==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("plus",A);continue}if(N&&N.value==="("||r.regex===!1){M({type:"plus",value:A,output:f});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||P.parens>0){M({type:"plus",value:A});continue}M({type:"plus",value:f});continue}if(A==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M({type:"at",extglob:!0,value:A,output:""});continue}M({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let G=fA.exec(D());G&&(A+=G[0],P.index+=G[0].length),M({type:"text",value:A});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=A,N.output=q,P.backtrack=!0,P.globstar=!0,p(A);continue}let U=D();if(r.noextglob!==!0&&/^\([^?]/.test(U)){B("star",A);continue}if(N.type==="star"){if(r.noglobstar===!0){p(A);continue}let G=N.prev,re=G.prev,ce=G.type==="slash"||G.type==="bos",Se=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!ce||U[0]&&U[0]!=="/")){M({type:"star",value:A,output:""});continue}let _e=P.braces>0&&(G.type==="comma"||G.type==="brace"),S=$.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!_e&&!S){M({type:"star",value:A,output:""});continue}for(;U.slice(0,3)==="/**";){let Y=t[P.index+4];if(Y&&Y!=="/")break;U=U.slice(3),p("/**",3)}if(G.type==="bos"&&L()){N.type="globstar",N.value+=A,N.output=w(r),P.output=N.output,P.globstar=!0,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Se&&L()){P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=w(r)+(r.strictSlashes?")":"|$)"),N.value+=A,P.globstar=!0,P.output+=G.output+N.output,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&U[0]==="/"){let Y=U[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=`${w(r)}${d}|${d}${Y})`,N.value+=A,P.output+=G.output+N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&U[0]==="/"){N.type="globstar",N.value+=A,N.output=`(?:^|${d}|${w(r)}${d})`,P.output=N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-N.output.length),N.type="globstar",N.output=w(r),N.value+=A,P.output+=N.output,P.globstar=!0,p(A);continue}let J={type:"star",value:A,output:q};if(r.bash===!0){J.output=".*?",(N.type==="bos"||N.type==="slash")&&(J.output=v+J.output),M(J);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&r.regex===!0){J.output=A,M(J);continue}(P.index===P.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(P.output+=x,N.output+=x):r.dot===!0?(P.output+=k,N.output+=k):(P.output+=v,N.output+=v),j()!=="*"&&(P.output+=g,N.output+=g)),M(J)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));P.output=Je.escapeLast(P.output,"["),E("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));P.output=Je.escapeLast(P.output,"("),E("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));P.output=Je.escapeLast(P.output,"{"),E("braces")}if(r.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${d}?`}),P.backtrack===!0){P.output="";for(let U of P.tokens)P.output+=U.output!=null?U.output:U.value,U.suffix&&(P.output+=U.suffix)}return P};rl.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Am[t]||t;let s=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=vs.globChars(s),y=r.dot?h:u,_=r.dot?f:u,x=r.capture?"":"?:",k={negated:!1,prefix:""},C=r.bash===!0?".*?":d;r.capture&&(C=`(${C})`);let T=v=>v.noglobstar===!0?C:`(${x}(?:(?!${g}${v.dot?c:o}).)*?)`,O=v=>{switch(v){case"*":return`${y}${l}${C}`;case".*":return`${o}${l}${C}`;case"*.*":return`${y}${C}${o}${l}${C}`;case"*/*":return`${y}${C}${a}${l}${_}${C}`;case"**":return y+T(r);case"**/*":return`(?:${y}${T(r)}${a})?${_}${l}${C}`;case"**/*.*":return`(?:${y}${T(r)}${a})?${_}${C}${o}${l}${C}`;case"**/.*":return`(?:${y}${T(r)}${a})?${o}${l}${C}`;default:{let F=/^(.*?)\.(\w+)$/.exec(v);if(!F)return;let q=O(F[1]);return q?q+o+F[2]:void 0}}},I=Je.removePrefix(t,k),w=O(I);return w&&r.strictSlashes!==!0&&(w+=`${a}?`),w};Om.exports=rl});var Cm=H((QI,km)=>{"use strict";var mA=require("path"),yA=xm(),il=Tm(),nl=mn(),gA=dn(),_A=t=>t&&typeof t=="object"&&!Array.isArray(t),be=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>be(f,e,r));return f=>{for(let d of u){let g=d(f);if(g)return g}return!1}}let i=_A(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=nl.isWindows(e),o=i?be.compileRe(t,e):be.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=be(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:d,output:g}=be.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:g,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};be.test=(t,e,r,{glob:i,posix:n}={})=>{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||(n?nl.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=be.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};be.matchBase=(t,e,r,i=nl.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(mA.basename(t));be.isMatch=(t,e,r)=>be(e,r)(t);be.parse=(t,e)=>Array.isArray(t)?t.map(r=>be.parse(r,e)):il(t,{...e,fastpaths:!1});be.scan=(t,e)=>yA(t,e);be.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=be.toRegex(a,e);return i===!0&&(l.state=t),l};be.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=il.fastpaths(t,e)),n.output||(n=il(t,e)),be.compileRe(n,e,r,i)};be.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/$^/}};be.constants=gA;km.exports=be});var Pm=H((eN,Lm)=>{"use strict";Lm.exports=Cm()});var Fm=H((tN,Mm)=>{"use strict";var Nm=require("util"),Dm=fm(),St=Pm(),sl=mn(),Im=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=St(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let g=h(d,!0);(f?!g.isMatch:g.isMatch)&&(f?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));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(u=>u.replace(/\\/g,"")):e}return c};ye.match=ye;ye.matcher=(t,e)=>St(t,e);ye.isMatch=(t,e,r)=>St(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Nm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Im(t)||Im(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sl.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Nm.inspect(t)}"`);return[].concat(e).every(i=>St(i,r)(t))};ye.capture=(t,e,r)=>{let i=sl.isWindows(r),s=St.makeRe(String(t),{...r,capture:!0}).exec(i?sl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>St.makeRe(...t);ye.scan=(...t)=>St.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Dm(String(i),e))r.push(St.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Dm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Mm.exports=ye});var zm=H(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.matchAny=ie.convertPatternsToRe=ie.makeRe=ie.getPatternParts=ie.expandBraceExpansion=ie.expandPatternsWithBraceExpansion=ie.isAffectDepthOfReadingPattern=ie.endsWithSlashGlobStar=ie.hasGlobStar=ie.getBaseDirectory=ie.isPatternRelatedToParentDirectory=ie.getPatternsOutsideCurrentDirectory=ie.getPatternsInsideCurrentDirectory=ie.getPositivePatterns=ie.getNegativePatterns=ie.isPositivePattern=ie.isNegativePattern=ie.convertToNegativePattern=ie.convertToPositivePattern=ie.isDynamicPattern=ie.isStaticPattern=void 0;var bA=require("path"),wA=kd(),ol=Fm(),Bm="**",SA="\\",EA=/[*?]|^!/,vA=/\[[^[]*]/,RA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xA=/[!*+?@]\([^(]*\)/,AA=/,|\.\./;function jm(t,e={}){return!Hm(t,e)}ie.isStaticPattern=jm;function Hm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(SA)||EA.test(t)||vA.test(t)||RA.test(t)||e.extglob!==!1&&xA.test(t)||e.braceExpansion!==!1&&OA(t))}ie.isDynamicPattern=Hm;function OA(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return AA.test(i)}function TA(t){return xs(t)?t.slice(1):t}ie.convertToPositivePattern=TA;function kA(t){return"!"+t}ie.convertToNegativePattern=kA;function xs(t){return t.startsWith("!")&&t[1]!=="("}ie.isNegativePattern=xs;function qm(t){return!xs(t)}ie.isPositivePattern=qm;function CA(t){return t.filter(xs)}ie.getNegativePatterns=CA;function LA(t){return t.filter(qm)}ie.getPositivePatterns=LA;function PA(t){return t.filter(e=>!al(e))}ie.getPatternsInsideCurrentDirectory=PA;function IA(t){return t.filter(al)}ie.getPatternsOutsideCurrentDirectory=IA;function al(t){return t.startsWith("..")||t.startsWith("./..")}ie.isPatternRelatedToParentDirectory=al;function NA(t){return wA(t,{flipBackslashes:!1})}ie.getBaseDirectory=NA;function DA(t){return t.includes(Bm)}ie.hasGlobStar=DA;function Um(t){return t.endsWith("/"+Bm)}ie.endsWithSlashGlobStar=Um;function MA(t){let e=bA.basename(t);return Um(t)||jm(e)}ie.isAffectDepthOfReadingPattern=MA;function FA(t){return t.reduce((e,r)=>e.concat($m(r)),[])}ie.expandPatternsWithBraceExpansion=FA;function $m(t){return ol.braces(t,{expand:!0,nodupes:!0})}ie.expandBraceExpansion=$m;function BA(t,e){let{parts:r}=ol.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}ie.getPatternParts=BA;function Gm(t,e){return ol.makeRe(t,e)}ie.makeRe=Gm;function jA(t,e){return t.map(r=>Gm(r,e))}ie.convertPatternsToRe=jA;function HA(t,e){return e.some(r=>r.test(t))}ie.matchAny=HA});var Vm=H((iN,Km)=>{"use strict";var qA=require("stream"),Wm=qA.PassThrough,UA=Array.prototype.slice;Km.exports=$A;function $A(){let t=[],e=UA.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Wm(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Ym(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function d(g){function y(){g.removeListener("merge2UnpipeEnd",y),g.removeListener("end",y),s&&g.removeListener("error",_),f()}function _(x){o.emit("error",x)}if(g._readableState.endEmitted)return f();g.on("merge2UnpipeEnd",y),g.on("end",y),s&&g.on("error",_),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<u.length;g++)d(u[g]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ym(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Ym(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Wm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Xm=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.merge=void 0;var GA=Vm();function zA(t){let e=GA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Zm(t)),e.once("end",()=>Zm(t)),e}As.merge=zA;function Zm(t){t.forEach(e=>e.emit("close"))}});var Jm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function WA(t){return typeof t=="string"}yi.isString=WA;function YA(t){return t===""}yi.isEmpty=YA});var Mt=H(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.string=Le.stream=Le.pattern=Le.path=Le.fs=Le.errno=Le.array=void 0;var KA=bd();Le.array=KA;var VA=wd();Le.errno=VA;var ZA=Sd();Le.fs=ZA;var XA=Ed();Le.path=XA;var JA=zm();Le.pattern=JA;var QA=Xm();Le.stream=QA;var eO=Jm();Le.string=eO});var ty=H(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.convertPatternGroupToTask=Pe.convertPatternGroupsToTasks=Pe.groupPatternsByBaseDirectory=Pe.getNegativePatternsAsPositive=Pe.getPositivePatterns=Pe.convertPatternsToTasks=Pe.generate=void 0;var Ft=Mt();function tO(t,e){let r=Qm(t),i=ey(t,e.ignore),n=r.filter(l=>Ft.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ft.pattern.isDynamicPattern(l,e)),o=ll(n,i,!1),a=ll(s,i,!0);return o.concat(a)}Pe.generate=tO;function ll(t,e,r){let i=[],n=Ft.pattern.getPatternsOutsideCurrentDirectory(t),s=Ft.pattern.getPatternsInsideCurrentDirectory(t),o=cl(n),a=cl(s);return i.push(...ul(o,e,r)),"."in a?i.push(hl(".",s,e,r)):i.push(...ul(a,e,r)),i}Pe.convertPatternsToTasks=ll;function Qm(t){return Ft.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=Qm;function ey(t,e){return Ft.pattern.getNegativePatterns(t).concat(e).map(Ft.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=ey;function cl(t){let e={};return t.reduce((r,i)=>{let n=Ft.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Pe.groupPatternsByBaseDirectory=cl;function ul(t,e,r){return Object.keys(t).map(i=>hl(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=ul;function hl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ft.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=hl});var iy=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var rO=/(?!^)\/{2,}/g;function iO(t){return t.map(e=>ry(e))}gi.transform=iO;function ry(t){return t.replace(rO,"/")}gi.removeDuplicateSlashes=ry});var sy=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.read=void 0;function nO(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){ny(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){ny(r,s);return}fl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fl(r,o)})})}Os.read=nO;function ny(t,e){t(e)}function fl(t,e){t(null,e)}});var oy=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.read=void 0;function sO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ts.read=sO});var ay=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.createFileSystemAdapter=nr.FILE_SYSTEM_ADAPTER=void 0;var ks=require("fs");nr.FILE_SYSTEM_ADAPTER={lstat:ks.lstat,stat:ks.stat,lstatSync:ks.lstatSync,statSync:ks.statSync};function oO(t){return t===void 0?nr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nr.FILE_SYSTEM_ADAPTER),t)}nr.createFileSystemAdapter=oO});var ly=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var aO=ay(),pl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=aO.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}};dl.default=pl});var Nr=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var cy=sy(),lO=oy(),ml=ly();sr.Settings=ml.default;function cO(t,e,r){if(typeof e=="function"){cy.read(t,yl(),e);return}cy.read(t,yl(e),r)}sr.stat=cO;function uO(t,e){let r=yl(e);return lO.read(t,r)}sr.statSync=uO;function yl(t={}){return t instanceof ml.default?t:new ml.default(t)}});var fy=H((dN,hy)=>{var uy;hy.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(uy||(uy=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var dy=H((mN,py)=>{py.exports=fO;var hO=fy();function fO(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?hO(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var gl=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cs=process.versions.node.split(".");if(Cs[0]===void 0||Cs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var my=Number.parseInt(Cs[0],10),pO=Number.parseInt(Cs[1],10),yy=10,dO=10,mO=my>yy,yO=my===yy&&pO>=dO;Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=mO||yO});var gy=H(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createDirentFromStats=void 0;var _l=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 gO(t,e){return new _l(t,e)}Ps.createDirentFromStats=gO});var bl=H(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.fs=void 0;var _O=gy();Is.fs=_O});var wl=H(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.joinPathSegments=void 0;function bO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ns.joinPathSegments=bO});var vy=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var wO=Nr(),_y=dy(),SO=gl(),by=bl(),wy=wl();function EO(t,e,r){if(!e.stats&&SO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Sy(t,e,r);return}Ey(t,e,r)}or.read=EO;function Sy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:wy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Sl(r,s);return}let o=s.map(a=>vO(a,e));_y(o,(a,l)=>{if(a!==null){Ds(r,a);return}Sl(r,l)})})}or.readdirWithFileTypes=Sy;function vO(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=by.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Ey(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(o=>{let a=wy.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{wO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:by.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});_y(s,(o,a)=>{if(o!==null){Ds(r,o);return}Sl(r,a)})})}or.readdir=Ey;function Ds(t,e){t(e)}function Sl(t,e){t(null,e)}});var Ty=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var RO=Nr(),xO=gl(),Ry=bl(),xy=wl();function AO(t,e){return!e.stats&&xO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ay(t,e):Oy(t,e)}ar.read=AO;function Ay(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:xy.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Ry.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ar.readdirWithFileTypes=Ay;function Oy(t,e){return e.fs.readdirSync(t).map(i=>{let n=xy.joinPathSegments(t,i,e.pathSegmentSeparator),s=RO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Ry.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ar.readdir=Oy});var ky=H(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:_i.lstat,stat:_i.stat,lstatSync:_i.lstatSync,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};function OO(t){return t===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),t)}lr.createFileSystemAdapter=OO});var Cy=H(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var TO=require("path"),kO=Nr(),CO=ky(),El=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=CO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,TO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new kO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};vl.default=El});var Ms=H(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Settings=cr.scandirSync=cr.scandir=void 0;var Ly=vy(),LO=Ty(),Rl=Cy();cr.Settings=Rl.default;function PO(t,e,r){if(typeof e=="function"){Ly.read(t,xl(),e);return}Ly.read(t,xl(e),r)}cr.scandir=PO;function IO(t,e){let r=xl(e);return LO.read(t,r)}cr.scandirSync=IO;function xl(t={}){return t instanceof Rl.default?t:new Rl.default(t)}});var Iy=H((xN,Py)=>{"use strict";function NO(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}Py.exports=NO});var Dy=H((AN,Al)=>{"use strict";var DO=Iy();function Ny(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=DO(MO),n=null,s=null,o=0,a=null,l={push:y,drain:st,saturated:st,pause:u,paused:!1,concurrency:r,running:c,resume:d,idle:g,length:h,getQueue:f,unshift:_,empty:st,kill:k,killAndDrain:C,error:T};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var O=n,I=0;O;)O=O.next,I++;return I}function f(){for(var O=n,I=[];O;)I.push(O.value),O=O.next;return I}function d(){if(l.paused){l.paused=!1;for(var O=0;O<l.concurrency;O++)o++,x()}}function g(){return o===0&&l.length()===0}function y(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,w.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=w,s=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function _(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,o===l.concurrency||l.paused?n?(w.next=n,n=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function x(O){O&&i.release(O);var I=n;I?l.paused?o--:(s===n&&(s=null),n=I.next,I.next=null,e.call(t,I.value,I.worked),s===null&&l.empty()):--o===0&&l.drain()}function k(){n=null,s=null,l.drain=st}function C(){n=null,s=null,l.drain(),l.drain=st}function T(O){a=O}}function st(){}function MO(){this.value=null,this.callback=st,this.next=null,this.release=st,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=st,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function FO(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,h){e.call(this,u).then(function(f){h(null,f)},h)}var n=Ny(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,d){s(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function l(u){var h=new Promise(function(f,d){o(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Al.exports=Ny;Al.exports.promise=FO});var Fs=H(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.joinPathSegments=Et.replacePathSegmentSeparator=Et.isAppliedFilter=Et.isFatalError=void 0;function BO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Et.isFatalError=BO;function jO(t,e){return t===null||t(e)}Et.isAppliedFilter=jO;function HO(t,e){return t.split(/[/\\]/).join(e)}Et.replacePathSegmentSeparator=HO;function qO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Et.joinPathSegments=qO});var kl=H(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var UO=Fs(),Ol=class{constructor(e,r){this._root=e,this._settings=r,this._root=UO.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Tl.default=Ol});var Pl=H(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var $O=require("events"),GO=Ms(),zO=Dy(),Bs=Fs(),WO=kl(),Cl=class extends WO.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=GO.scandir,this._emitter=new $O.EventEmitter,this._queue=zO(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Bs.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Bs.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bs.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bs.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ll.default=Cl});var My=H(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var YO=Pl(),Il=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new YO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{KO(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{VO(e,this._storage)}),this._reader.read()}};Nl.default=Il;function KO(t,e){t(e)}function VO(t,e){t(null,e)}});var Fy=H(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var ZO=require("stream"),XO=Pl(),Dl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new XO.default(this._root,this._settings),this._stream=new ZO.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}};Ml.default=Dl});var By=H(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var JO=Ms(),js=Fs(),QO=kl(),Fl=class extends QO.default{constructor(){super(...arguments),this._scandir=JO.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(js.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=js.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),js.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&js.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Bl.default=Fl});var jy=H(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var eT=By(),jl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new eT.default(this._root,this._settings)}read(){return this._reader.read()}};Hl.default=jl});var Hy=H(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var tT=require("path"),rT=Ms(),ql=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,tT.sep),this.fsScandirSettings=new rT.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}};Ul.default=ql});var qs=H(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Settings=vt.walkStream=vt.walkSync=vt.walk=void 0;var qy=My(),iT=Fy(),nT=jy(),$l=Hy();vt.Settings=$l.default;function sT(t,e,r){if(typeof e=="function"){new qy.default(t,Hs()).read(e);return}new qy.default(t,Hs(e)).read(r)}vt.walk=sT;function oT(t,e){let r=Hs(e);return new nT.default(t,r).read()}vt.walkSync=oT;function aT(t,e){let r=Hs(e);return new iT.default(t,r).read()}vt.walkStream=aT;function Hs(t={}){return t instanceof $l.default?t:new $l.default(t)}});var Us=H(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var lT=require("path"),cT=Nr(),Uy=Mt(),Gl=class{constructor(e){this._settings=e,this._fsStatSettings=new cT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return lT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Uy.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Uy.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};zl.default=Gl});var Kl=H(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var uT=require("stream"),hT=Nr(),fT=qs(),pT=Us(),Wl=class extends pT.default{constructor(){super(...arguments),this._walkStream=fT.walkStream,this._stat=hT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new uT.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Yl.default=Wl});var $y=H(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var dT=qs(),mT=Us(),yT=Kl(),Vl=class extends mT.default{constructor(){super(...arguments),this._walkAsync=dT.walk,this._readerStream=new yT.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Zl.default=Vl});var Gy=H(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var bi=Mt(),Xl=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=bi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return bi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>bi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:bi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return bi.array.splitWhen(e,r=>r.dynamic&&bi.pattern.hasGlobStar(r.pattern))}};Jl.default=Xl});var zy=H(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var gT=Gy(),Ql=class extends gT.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};ec.default=Ql});var Wy=H(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var $s=Mt(),_T=zy(),tc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new _T.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($s.pattern.isAffectDepthOfReadingPattern);return $s.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$s.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!$s.pattern.matchAny(e,r)}};rc.default=tc});var Yy=H(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Dr=Mt(),ic=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Dr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Dr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,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 i=Dr.path.makeAbsolute(this._settings.cwd,e);return Dr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Dr.path.removeLeadingDotSegment(e),s=Dr.pattern.matchAny(n,r);return!s&&i?Dr.pattern.matchAny(n+"/",r):s}};nc.default=ic});var Ky=H(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var bT=Mt(),sc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return bT.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};oc.default=sc});var Zy=H(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Vy=Mt(),ac=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Vy.path.makeAbsolute(this._settings.cwd,r),r=Vy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};lc.default=ac});var Gs=H(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var wT=require("path"),ST=Wy(),ET=Yy(),vT=Ky(),RT=Zy(),cc=class{constructor(e){this._settings=e,this.errorFilter=new vT.default(this._settings),this.entryFilter=new ET.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ST.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new RT.default(this._settings)}_getRootDirectory(e){return wT.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}}};uc.default=cc});var Xy=H(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var xT=$y(),AT=Gs(),hc=class extends AT.default{constructor(){super(...arguments),this._reader=new xT.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};fc.default=hc});var Jy=H(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var OT=require("stream"),TT=Kl(),kT=Gs(),pc=class extends kT.default{constructor(){super(...arguments),this._reader=new TT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new OT.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};dc.default=pc});var Qy=H(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var CT=Nr(),LT=qs(),PT=Us(),mc=class extends PT.default{constructor(){super(...arguments),this._walkSync=LT.walkSync,this._statSync=CT.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};yc.default=mc});var eg=H(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var IT=Qy(),NT=Gs(),gc=class extends NT.default{constructor(){super(...arguments),this._reader=new IT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};_c.default=gc});var tg=H(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wi=require("fs"),DT=require("os"),MT=Math.max(DT.cpus().length,1);Si.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wi.lstat,lstatSync:wi.lstatSync,stat:wi.stat,statSync:wi.statSync,readdir:wi.readdir,readdirSync:wi.readdirSync};var bc=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,MT),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({},Si.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Si.default=bc});var zs=H((XN,ng)=>{"use strict";var rg=ty(),ig=iy(),FT=Xy(),BT=Jy(),jT=eg(),wc=tg(),Mr=Mt();async function Sc(t,e){Ei(t);let r=Ec(t,FT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=Ec(o,jT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=Ec(o,BT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=ig.transform([].concat(o)),c=new wc.default(a);return rg.generate(l,c)}t.generateTasks=i;function n(o,a){Ei(o);let l=new wc.default(a);return Mr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Ei(o),Mr.path.escape(o)}t.escapePath=s})(Sc||(Sc={}));function Ec(t,e,r){let i=ig.transform([].concat(t)),n=new wc.default(r),s=rg.generate(i,n),o=new e(n);return s.map(o.read,o)}function Ei(t){if(![].concat(t).every(i=>Mr.string.isString(i)&&!Mr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ng.exports=Sc});var jg=H((wM,Ht)=>{function Mc(t){return Ht.exports=Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports,Mc(t)}Ht.exports=Mc,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports});var Ug=H((SM,qt)=>{var Hg=jg().default;function qg(){"use strict";qt.exports=qg=function(){return e},qt.exports.__esModule=!0,qt.exports.default=qt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(A,L,j){A[L]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(A,L,j){return Object.defineProperty(A,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),A[L]}try{c({},"")}catch{c=function(j,z,D){return j[z]=D}}function u(A,L,j,z){var D=L&&L.prototype instanceof x?L:x,p=Object.create(D.prototype),m=new V(z||[]);return n(p,"_invoke",{value:q(A,j,m)}),p}function h(A,L,j){try{return{type:"normal",arg:A.call(L,j)}}catch(z){return{type:"throw",arg:z}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",g="executing",y="completed",_={};function x(){}function k(){}function C(){}var T={};c(T,o,function(){return this});var O=Object.getPrototypeOf,I=O&&O(O(N([])));I&&I!==r&&i.call(I,o)&&(T=I);var w=C.prototype=x.prototype=Object.create(T);function v(A){["next","throw","return"].forEach(function(L){c(A,L,function(j){return this._invoke(L,j)})})}function F(A,L){function j(D,p,m,b){var R=h(A[D],A,p);if(R.type!=="throw"){var E=R.arg,M=E.value;return M&&Hg(M)=="object"&&i.call(M,"__await")?L.resolve(M.__await).then(function(B){j("next",B,m,b)},function(B){j("throw",B,m,b)}):L.resolve(M).then(function(B){E.value=B,m(E)},function(B){return j("throw",B,m,b)})}b(R.arg)}var z;n(this,"_invoke",{value:function(p,m){function b(){return new L(function(R,E){j(p,m,R,E)})}return z=z?z.then(b,b):b()}})}function q(A,L,j){var z=f;return function(D,p){if(z===g)throw new Error("Generator is already running");if(z===y){if(D==="throw")throw p;return{value:t,done:!0}}for(j.method=D,j.arg=p;;){var m=j.delegate;if(m){var b=P(m,j);if(b){if(b===_)continue;return b}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===f)throw z=y,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=g;var R=h(A,L,j);if(R.type==="normal"){if(z=j.done?y:d,R.arg===_)continue;return{value:R.arg,done:j.done}}R.type==="throw"&&(z=y,j.method="throw",j.arg=R.arg)}}}function P(A,L){var j=L.method,z=A.iterator[j];if(z===t)return L.delegate=null,j==="throw"&&A.iterator.return&&(L.method="return",L.arg=t,P(A,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),_;var D=h(z,A.iterator,L.arg);if(D.type==="throw")return L.method="throw",L.arg=D.arg,L.delegate=null,_;var p=D.arg;return p?p.done?(L[A.resultName]=p.value,L.next=A.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,_):p:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,_)}function $(A){var L={tryLoc:A[0]};1 in A&&(L.catchLoc=A[1]),2 in A&&(L.finallyLoc=A[2],L.afterLoc=A[3]),this.tryEntries.push(L)}function K(A){var L=A.completion||{};L.type="normal",delete L.arg,A.completion=L}function V(A){this.tryEntries=[{tryLoc:"root"}],A.forEach($,this),this.reset(!0)}function N(A){if(A||A===""){var L=A[o];if(L)return L.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var j=-1,z=function D(){for(;++j<A.length;)if(i.call(A,j))return D.value=A[j],D.done=!1,D;return D.value=t,D.done=!0,D};return z.next=z}}throw new TypeError(Hg(A)+" is not iterable")}return k.prototype=C,n(w,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:k,configurable:!0}),k.displayName=c(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(A){var L=typeof A=="function"&&A.constructor;return!!L&&(L===k||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,C):(A.__proto__=C,c(A,l,"GeneratorFunction")),A.prototype=Object.create(w),A},e.awrap=function(A){return{__await:A}},v(F.prototype),c(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(A,L,j,z,D){D===void 0&&(D=Promise);var p=new F(u(A,L,j,z),D);return e.isGeneratorFunction(L)?p:p.next().then(function(m){return m.done?m.value:p.next()})},v(w),c(w,l,"Generator"),c(w,o,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),e.keys=function(A){var L=Object(A),j=[];for(var z in L)j.push(z);return j.reverse(),function D(){for(;j.length;){var p=j.pop();if(p in L)return D.value=p,D.done=!1,D}return D.done=!0,D}},e.values=N,V.prototype={constructor:V,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(K),!L)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var j=this;function z(E,M){return m.type="throw",m.arg=L,j.next=E,M&&(j.method="next",j.arg=t),!!M}for(var D=this.tryEntries.length-1;D>=0;--D){var p=this.tryEntries[D],m=p.completion;if(p.tryLoc==="root")return z("end");if(p.tryLoc<=this.prev){var b=i.call(p,"catchLoc"),R=i.call(p,"finallyLoc");if(b&&R){if(this.prev<p.catchLoc)return z(p.catchLoc,!0);if(this.prev<p.finallyLoc)return z(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return z(p.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return z(p.finallyLoc)}}}},abrupt:function(L,j){for(var z=this.tryEntries.length-1;z>=0;--z){var D=this.tryEntries[z];if(D.tryLoc<=this.prev&&i.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var p=D;break}}p&&(L==="break"||L==="continue")&&p.tryLoc<=j&&j<=p.finallyLoc&&(p=null);var m=p?p.completion:{};return m.type=L,m.arg=j,p?(this.method="next",this.next=p.finallyLoc,_):this.complete(m)},complete:function(L,j){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&j&&(this.next=j),_},finish:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===L)return this.complete(z.completion,z.afterLoc),K(z),_}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===L){var D=z.completion;if(D.type==="throw"){var p=D.arg;K(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(L,j,z){return this.delegate={iterator:N(L),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),_}},e}qt.exports=qg,qt.exports.__esModule=!0,qt.exports.default=qt.exports});var Gg=H((EM,$g)=>{var Js=Ug()();$g.exports=Js;try{regeneratorRuntime=Js}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Js:Function("r","regeneratorRuntime = r")(Js)}});var ki=H((hF,i_)=>{"use strict";var r_=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"]]);i_.exports=t=>t?Object.keys(t).map(e=>[r_.has(e)?r_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var no=H((fF,f_)=>{"use strict";var n_=typeof process=="object"&&process?process:{stdout:null,stderr:null},Z1=require("events"),s_=require("stream"),o_=require("string_decoder").StringDecoder,$t=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Qs=Symbol("emittingEnd"),kn=Symbol("emittedError"),eo=Symbol("closed"),a_=Symbol("read"),to=Symbol("flush"),l_=Symbol("flushChunk"),Ye=Symbol("encoding"),zt=Symbol("decoder"),ro=Symbol("flowing"),Cn=Symbol("paused"),Ci=Symbol("resume"),we=Symbol("buffer"),Ot=Symbol("pipes"),Oe=Symbol("bufferLength"),Gc=Symbol("bufferPush"),zc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),Wc=Symbol("emitData"),c_=Symbol("emitEnd"),Yc=Symbol("emitEnd2"),Wt=Symbol("async"),Ln=t=>Promise.resolve().then(t),u_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",X1=u_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),J1=u_&&Symbol.iterator||Symbol("iterator not implemented"),Q1=t=>t==="end"||t==="finish"||t==="prefinish",eC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),io=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ci](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Kc=class extends io{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};f_.exports=class h_ extends s_{constructor(e){super(),this[ro]=!1,this[Cn]=!1,this[Ot]=[],this[we]=[],this[Ne]=e&&e.objectMode||!1,this[Ne]?this[Ye]=null:this[Ye]=e&&e.encoding||null,this[Ye]==="buffer"&&(this[Ye]=null),this[Wt]=e&&!!e.async||!1,this[zt]=this[Ye]?new o_(this[Ye]):null,this[$t]=!1,this[dr]=!1,this[Qs]=!1,this[eo]=!1,this[kn]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[De]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[we]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ot]})}get bufferLength(){return this[Oe]}get encoding(){return this[Ye]}set encoding(e){if(this[Ne])throw new Error("cannot set encoding in objectMode");if(this[Ye]&&e!==this[Ye]&&(this[zt]&&this[zt].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Ye]!==e&&(this[zt]=e?new o_(e):null,this[we].length&&(this[we]=this[we].map(r=>this[zt].write(r)))),this[Ye]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ne]}set objectMode(e){this[Ne]=this[Ne]||!!e}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}write(e,r,i){if(this[$t])throw new Error("write after end");if(this[De])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Wt]?Ln:s=>s();return!this[Ne]&&!Buffer.isBuffer(e)&&(tC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ne]?(this.flowing&&this[Oe]!==0&&this[to](!0),this.flowing?this.emit("data",e):this[Gc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ye]&&!this[zt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ye]&&(e=this[zt].write(e)),this.flowing&&this[Oe]!==0&&this[to](!0),this.flowing?this.emit("data",e):this[Gc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[De])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[Gt](),null;this[Ne]&&(e=null),this[we].length>1&&!this[Ne]&&(this.encoding?this[we]=[this[we].join("")]:this[we]=[Buffer.concat(this[we],this[Oe])]);let r=this[a_](e||null,this[we][0]);return this[Gt](),r}[a_](e,r){return e===r.length||e===null?this[zc]():(this[we][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[we].length&&!this[$t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[$t]=!0,this.writable=!1,(this.flowing||!this[Cn])&&this[Gt](),this}[Ci](){this[De]||(this[Cn]=!1,this[ro]=!0,this.emit("resume"),this[we].length?this[to]():this[$t]?this[Gt]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[ro]=!1,this[Cn]=!0}get destroyed(){return this[De]}get flowing(){return this[ro]}get paused(){return this[Cn]}[Gc](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[we].push(e)}[zc](){return this[we].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[we][0].length),this[we].shift()}[to](e){do;while(this[l_](this[zc]()));!e&&!this[we].length&&!this[$t]&&this.emit("drain")}[l_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[De])return;let i=this[dr];return r=r||{},e===n_.stdout||e===n_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ot].push(r.proxyErrors?new Kc(this,e,r):new io(this,e,r)),this[Wt]?Ln(()=>this[Ci]()):this[Ci]()),e}unpipe(e){let r=this[Ot].find(i=>i.dest===e);r&&(this[Ot].splice(this[Ot].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ot].length&&!this.flowing?this[Ci]():e==="readable"&&this[Oe]!==0?super.emit("readable"):Q1(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[kn]&&(this[Wt]?Ln(()=>r.call(this,this[kn])):r.call(this,this[kn])),i}get emittedEnd(){return this[dr]}[Gt](){!this[Qs]&&!this[dr]&&!this[De]&&this[we].length===0&&this[$t]&&(this[Qs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[eo]&&this.emit("close"),this[Qs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Wt]?Ln(()=>this[Wc](r)):this[Wc](r):!1;if(e==="end")return this[c_]();if(e==="close"){if(this[eo]=!0,!this[dr]&&!this[De])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[kn]=r;let s=super.emit("error",r);return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Gt](),n}[Wc](e){for(let i of this[Ot])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Gt](),r}[c_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Wt]?Ln(()=>this[Yc]()):this[Yc]())}[Yc](){if(this[zt]){let r=this[zt].end();if(r){for(let i of this[Ot])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ot])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ne]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ne]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this[Ye]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(De,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[X1](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[$t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[$t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(De,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[J1](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[De]?(e?this.emit("error",e):this.emit(De),this):(this[De]=!0,this[we].length=0,this[Oe]=0,typeof this.close=="function"&&!this[eo]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof h_||e instanceof s_||e instanceof Z1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var d_=H((pF,p_)=>{var rC=require("zlib").constants||{ZLIB_VERNUM:4736};p_.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},rC))});var eu=H((dF,v_)=>{"use strict";var m_=typeof process=="object"&&process?process:{stdout:null,stderr:null},iC=require("events"),y_=require("stream"),g_=require("string_decoder").StringDecoder,Yt=Symbol("EOF"),Kt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),so=Symbol("emittingEnd"),Pn=Symbol("emittedError"),oo=Symbol("closed"),__=Symbol("read"),ao=Symbol("flush"),b_=Symbol("flushChunk"),Ke=Symbol("encoding"),Vt=Symbol("decoder"),lo=Symbol("flowing"),In=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Vc=Symbol("bufferPush"),Zc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Xc=Symbol("emitData"),w_=Symbol("emitEnd"),Jc=Symbol("emitEnd2"),Zt=Symbol("async"),Nn=t=>Promise.resolve().then(t),S_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",nC=S_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sC=S_&&Symbol.iterator||Symbol("iterator not implemented"),oC=t=>t==="end"||t==="finish"||t==="prefinish",aC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,lC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),co=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Li](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qc=class extends co{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};v_.exports=class E_ extends y_{constructor(e){super(),this[lo]=!1,this[In]=!1,this.pipes=[],this.buffer=[],this[Me]=e&&e.objectMode||!1,this[Me]?this[Ke]=null:this[Ke]=e&&e.encoding||null,this[Ke]==="buffer"&&(this[Ke]=null),this[Zt]=e&&!!e.async||!1,this[Vt]=this[Ke]?new g_(this[Ke]):null,this[Yt]=!1,this[mr]=!1,this[so]=!1,this[oo]=!1,this[Pn]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[Fe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ke]}set encoding(e){if(this[Me])throw new Error("cannot set encoding in objectMode");if(this[Ke]&&e!==this[Ke]&&(this[Vt]&&this[Vt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ke]!==e&&(this[Vt]=e?new g_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[Ke]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Me]}set objectMode(e){this[Me]=this[Me]||!!e}get async(){return this[Zt]}set async(e){this[Zt]=this[Zt]||!!e}write(e,r,i){if(this[Yt])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Zt]?Nn:s=>s();return!this[Me]&&!Buffer.isBuffer(e)&&(lC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Me]?(this.flowing&&this[Te]!==0&&this[ao](!0),this.flowing?this.emit("data",e):this[Vc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[Vt].write(e)),this.flowing&&this[Te]!==0&&this[ao](!0),this.flowing?this.emit("data",e):this[Vc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Fe])return null;if(this[Te]===0||e===0||e>this[Te])return this[Kt](),null;this[Me]&&(e=null),this.buffer.length>1&&!this[Me]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[__](e||null,this.buffer[0]);return this[Kt](),r}[__](e,r){return e===r.length||e===null?this[Zc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Yt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Yt]=!0,this.writable=!1,(this.flowing||!this[In])&&this[Kt](),this}[Li](){this[Fe]||(this[In]=!1,this[lo]=!0,this.emit("resume"),this.buffer.length?this[ao]():this[Yt]?this[Kt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[lo]=!1,this[In]=!0}get destroyed(){return this[Fe]}get flowing(){return this[lo]}get paused(){return this[In]}[Vc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Zc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[ao](e){do;while(this[b_](this[Zc]()));!e&&!this.buffer.length&&!this[Yt]&&this.emit("drain")}[b_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Fe])return;let i=this[mr];return r=r||{},e===m_.stdout||e===m_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Qc(this,e,r):new co(this,e,r)),this[Zt]?Nn(()=>this[Li]()):this[Li]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Li]():e==="readable"&&this[Te]!==0?super.emit("readable"):oC(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Pn]&&(this[Zt]?Nn(()=>r.call(this,this[Pn])):r.call(this,this[Pn])),i}get emittedEnd(){return this[mr]}[Kt](){!this[so]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[Yt]&&(this[so]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[oo]&&this.emit("close"),this[so]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Zt]?Nn(()=>this[Xc](r)):this[Xc](r):!1;if(e==="end")return this[w_]();if(e==="close"){if(this[oo]=!0,!this[mr]&&!this[Fe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Pn]=r;let s=super.emit("error",r);return this[Kt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Kt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Kt](),n}[Xc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Kt](),r}[w_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Zt]?Nn(()=>this[Jc]()):this[Jc]())}[Jc](){if(this[Vt]){let r=this[Vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Me]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Me]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this[Ke]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Fe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[nC](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Yt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Yt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Fe,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[sC](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Fe]?(e?this.emit("error",e):this.emit(Fe),this):(this[Fe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[oo]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof E_||e instanceof y_||e instanceof iC&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var yu=H(et=>{"use strict";var su=require("assert"),yr=require("buffer").Buffer,A_=require("zlib"),qr=et.constants=d_(),cC=eu(),R_=yr.concat,Ur=Symbol("_superWrite"),Ii=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"}},uC=Symbol("opts"),Dn=Symbol("flushFlag"),x_=Symbol("finishFlushFlag"),mu=Symbol("fullFlushFlag"),pe=Symbol("handle"),uo=Symbol("onError"),Pi=Symbol("sawError"),tu=Symbol("level"),ru=Symbol("strategy"),iu=Symbol("ended"),mF=Symbol("_defaultFullFlush"),ho=class extends cC{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Pi]=!1,this[iu]=!1,this[uC]=e,this[Dn]=e.flush,this[x_]=e.finishFlush;try{this[pe]=new A_[r](e)}catch(i){throw new Ii(i)}this[uo]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[uo](new Ii(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Pi])return su(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[mu]),this.write(Object.assign(yr.alloc(0),{[Dn]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[x_]),this[iu]=!0,super.end(null,null,i)}get ended(){return this[iu]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;su(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},yr.concat=c=>c;let a;try{let c=typeof e[Dn]=="number"?e[Dn]:this[Dn];a=this[pe]._processChunk(e,c),yr.concat=R_}catch(c){yr.concat=R_,this[uo](new Ii(c))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",c=>this[uo](new Ii(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Ur](yr.from(a[0]));for(let c=1;c<a.length;c++)l=this[Ur](a[c])}else l=this[Ur](yr.from(a));return i&&i(),l}[Ur](e){return super.write(e)}},Xt=class extends ho{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[mu]=qr.Z_FULL_FLUSH,this[tu]=e.level,this[ru]=e.strategy}params(e,r){if(!this[Pi]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[tu]!==e||this[ru]!==r){this.flush(qr.Z_SYNC_FLUSH),su(this[pe],"zlib binding closed");let i=this[pe].flush;this[pe].flush=(n,s)=>{this.flush(n),s()};try{this[pe].params(e,r)}finally{this[pe].flush=i}this[pe]&&(this[tu]=e,this[ru]=r)}}}},ou=class extends Xt{constructor(e){super(e,"Deflate")}},au=class extends Xt{constructor(e){super(e,"Inflate")}},nu=Symbol("_portable"),lu=class extends Xt{constructor(e){super(e,"Gzip"),this[nu]=e&&!!e.portable}[Ur](e){return this[nu]?(this[nu]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},cu=class extends Xt{constructor(e){super(e,"Gunzip")}},uu=class extends Xt{constructor(e){super(e,"DeflateRaw")}},hu=class extends Xt{constructor(e){super(e,"InflateRaw")}},fu=class extends Xt{constructor(e){super(e,"Unzip")}},fo=class extends ho{constructor(e,r){e=e||{},e.flush=e.flush||qr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||qr.BROTLI_OPERATION_FINISH,super(e,r),this[mu]=qr.BROTLI_OPERATION_FLUSH}},pu=class extends fo{constructor(e){super(e,"BrotliCompress")}},du=class extends fo{constructor(e){super(e,"BrotliDecompress")}};et.Deflate=ou;et.Inflate=au;et.Gzip=lu;et.Gunzip=cu;et.DeflateRaw=uu;et.InflateRaw=hu;et.Unzip=fu;typeof A_.BrotliCompress=="function"?(et.BrotliCompress=pu,et.BrotliDecompress=du):et.BrotliCompress=et.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((_F,O_)=>{var hC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;O_.exports=hC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var po=H((wF,T_)=>{"use strict";var fC=no(),gu=Ni(),_u=Symbol("slurp");T_.exports=class extends fC{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=gu(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=gu(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[_u](r),i&&this[_u](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[_u](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?gu(e[i]):e[i])}}});var bu=H(mo=>{"use strict";mo.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"]]);mo.code=new Map(Array.from(mo.name).map(t=>[t[1],t[0]]))});var P_=H((EF,L_)=>{"use strict";var pC=(t,e)=>{if(Number.isSafeInteger(t))t<0?mC(t,e):dC(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},dC=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},mC=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=k_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=C_(n))}},yC=t=>{let e=t[0],r=e===128?_C(t.slice(1,t.length)):e===255?gC(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},gC=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=k_(s):s===0?o=s:(i=!0,o=C_(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},_C=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},k_=t=>(255^t)&255,C_=t=>(255^t)+1&255;L_.exports={encode:pC,parse:yC}});var Mi=H((vF,N_)=>{"use strict";var wu=bu(),Di=require("path").posix,I_=P_(),Su=Symbol("slurp"),tt=Symbol("type"),Ru=class{constructor(e,r,i,n){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[tt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=$r(e,r,100),this.mode=gr(e,r+100,8),this.uid=gr(e,r+108,8),this.gid=gr(e,r+116,8),this.size=gr(e,r+124,12),this.mtime=Eu(e,r+136,12),this.cksum=gr(e,r+148,12),this[Su](i),this[Su](n,!0),this[tt]=$r(e,r+156,1),this[tt]===""&&(this[tt]="0"),this[tt]==="0"&&this.path.slice(-1)==="/"&&(this[tt]="5"),this[tt]==="5"&&(this.size=0),this.linkpath=$r(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=$r(e,r+265,32),this.gname=$r(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=$r(e,r+345,155);this.path=o+"/"+this.path}else{let o=$r(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Eu(e,r+476,12),this.ctime=Eu(e,r+488,12)}let s=8*32;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===8*32&&(this.nullBlock=!0)}[Su](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=bC(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=_r(e,r+100,8,this.mode)||this.needPax,this.needPax=_r(e,r+108,8,this.uid)||this.needPax,this.needPax=_r(e,r+116,8,this.gid)||this.needPax,this.needPax=_r(e,r+124,12,this.size)||this.needPax,this.needPax=vu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[tt].charCodeAt(0),this.needPax=Gr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Gr(e,r+265,32,this.uname)||this.needPax,this.needPax=Gr(e,r+297,32,this.gname)||this.needPax,this.needPax=_r(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_r(e,r+337,8,this.devmin)||this.needPax,this.needPax=Gr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Gr(e,r+345,155,o)||this.needPax:(this.needPax=Gr(e,r+345,130,o)||this.needPax,this.needPax=vu(e,r+476,12,this.atime)||this.needPax,this.needPax=vu(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,_r(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 wu.name.get(this[tt])||this[tt]}get typeKey(){return this[tt]}set type(e){wu.code.has(e)?this[tt]=wu.code.get(e):this[tt]=e}},bC=(t,e)=>{let i=t,n="",s,o=Di.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Di.dirname(i),i=Di.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=Di.join(Di.basename(n),i),n=Di.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},$r=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Eu=(t,e,r)=>wC(gr(t,e,r)),wC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?I_.parse(t.slice(e,e+r)):EC(t,e,r),SC=t=>isNaN(t)?null:t,EC=(t,e,r)=>SC(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),vC={12:8589934591,8:2097151},_r=(t,e,r,i)=>i===null?!1:i>vC[r]||i<0?(I_.encode(i,t.slice(e,e+r)),!0):(RC(t,e,r,i),!1),RC=(t,e,r,i)=>t.write(xC(i,r),e,r,"ascii"),xC=(t,e)=>AC(Math.floor(t).toString(8),e),AC=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",vu=(t,e,r,i)=>i===null?!1:_r(t,e,r,i.getTime()/1e3),OC=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+OC,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);N_.exports=Ru});var yo=H((RF,D_)=>{"use strict";var TC=Mi(),kC=require("path"),Mn=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new TC({path:("PaxHeader/"+kC.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(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
7
|
-
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Mn.parse=(t,e,r)=>new Mn(CC(
|
8
|
-
`).reduce(PC,Object.create(null)),PC=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};D_.exports=Mn});var Fi=H((xF,M_)=>{M_.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var go=H((AF,F_)=>{"use strict";F_.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Au=H((TF,B_)=>{"use strict";var _o=["|","<",">","?",":"],xu=_o.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),IC=new Map(_o.map((t,e)=>[t,xu[e]])),NC=new Map(xu.map((t,e)=>[t,_o[e]]));B_.exports={encode:t=>_o.reduce((e,r)=>e.split(r).join(IC.get(r)),t),decode:t=>xu.reduce((e,r)=>e.split(r).join(NC.get(r)),t)}});var Ou=H((kF,H_)=>{var{isAbsolute:DC,parse:j_}=require("path").win32;H_.exports=t=>{let e="",r=j_(t);for(;DC(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=j_(t)}return[e,t]}});var U_=H((CF,q_)=>{"use strict";q_.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Fu=H((IF,rb)=>{"use strict";var V_=no(),Z_=yo(),X_=Mi(),kt=require("fs"),$_=require("path"),Tt=Ni(),MC=Fi(),J_=(t,e)=>e?(t=Tt(t).replace(/^\.(\/|$)/,""),MC(e)+"/"+t):Tt(t),FC=16*1024*1024,G_=Symbol("process"),z_=Symbol("file"),W_=Symbol("directory"),ku=Symbol("symlink"),Y_=Symbol("hardlink"),Fn=Symbol("header"),bo=Symbol("read"),Cu=Symbol("lstat"),wo=Symbol("onlstat"),Lu=Symbol("onread"),Pu=Symbol("onreadlink"),Iu=Symbol("openfile"),Nu=Symbol("onopenfile"),br=Symbol("close"),So=Symbol("mode"),Du=Symbol("awaitDrain"),Tu=Symbol("ondrain"),Ct=Symbol("prefix"),K_=Symbol("hadError"),Q_=go(),BC=Au(),eb=Ou(),tb=U_(),Eo=Q_(class extends V_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Tt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||FC,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Tt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Tt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=eb(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=BC.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Tt(r.absolute||$_.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[wo](this.statCache.get(this.absolute)):this[Cu]()}emit(e,...r){return e==="error"&&(this[K_]=!0),super.emit(e,...r)}[Cu](){kt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[wo](r)})}[wo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=HC(e),this.emit("stat",e),this[G_]()}[G_](){switch(this.type){case"File":return this[z_]();case"Directory":return this[W_]();case"SymbolicLink":return this[ku]();default:return this.end()}}[So](e){return tb(e,this.type==="Directory",this.portable)}[Ct](e){return J_(e,this.prefix)}[Fn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new X_({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this[So](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Z_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[W_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Fn](),this.end()}[ku](){kt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Pu](r)})}[Pu](e){this.linkpath=Tt(e),this[Fn](),this.end()}[Y_](e){this.type="Link",this.linkpath=Tt($_.relative(this.cwd,e)),this.stat.size=0,this[Fn](),this.end()}[z_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[Y_](r)}this.linkCache.set(e,this.absolute)}if(this[Fn](),this.stat.size===0)return this.end();this[Iu]()}[Iu](){kt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Nu](r)})}[Nu](e){if(this.fd=e,this[K_])return this[br]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[bo]()}[bo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;kt.read(e,r,i,n,s,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Lu](a)})}[br](e){kt.close(this.fd,e)}[Lu](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[br](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[br](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Tu]():this[Du](()=>this[Tu]())}[Du](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Tu](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[br](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[bo]()}}),Mu=class extends Eo{[Cu](){this[wo](kt.lstatSync(this.absolute))}[ku](){this[Pu](kt.readlinkSync(this.absolute))}[Iu](){this[Nu](kt.openSync(this.absolute,"r"))}[bo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=kt.readSync(r,i,n,s,o);this[Lu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Du](e){e()}[br](e){kt.closeSync(this.fd),e()}},jC=Q_(class extends V_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Tt(e.path),this.mode=this[So](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Tt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=eb(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new X_({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Z_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Ct](e){return J_(e,this.prefix)}[So](e){return tb(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Eo.Sync=Mu;Eo.Tar=jC;var HC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";rb.exports=Eo});var nb=H((NF,ib)=>{"use strict";ib.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Bu=H((DF,sb)=>{"use strict";sb.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}oe.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};oe.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};oe.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)UC(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)$C(this,arguments[t]);return this.length};oe.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};oe.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};oe.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};oe.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};oe.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};oe.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};oe.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};oe.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};oe.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};oe.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};oe.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};oe.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=qC(this,n,r[i]);return s};oe.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function qC(t,e,r){var i=e===t.head?new zr(r,null,e,t):new zr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function UC(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function $C(t,e){t.head=new zr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function zr(t,e,r,i){if(!(this instanceof zr))return new zr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{nb()(oe)}catch{}});var Lo=H((FF,fb)=>{"use strict";var ko=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},GC=no(),zC=yu(),WC=po(),Yu=Fu(),YC=Yu.Sync,KC=Yu.Tar,VC=Bu(),ob=Buffer.alloc(1024),xo=Symbol("onStat"),vo=Symbol("ended"),Lt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),Ro=Symbol("processing"),ab=Symbol("processJob"),Pt=Symbol("jobs"),ju=Symbol("jobDone"),Ao=Symbol("addFSEntry"),lb=Symbol("addTarEntry"),$u=Symbol("stat"),Gu=Symbol("readdir"),Oo=Symbol("onreaddir"),To=Symbol("pipe"),cb=Symbol("entry"),Hu=Symbol("entryOpt"),zu=Symbol("writeEntryClass"),hb=Symbol("write"),qu=Symbol("ondrain"),Co=require("fs"),ub=require("path"),ZC=go(),Uu=Ni(),Ku=ZC(class extends GC{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Uu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[zu]=Yu,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new zC.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[qu]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[qu]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Lt]=new VC,this[Pt]=0,this.jobs=+e.jobs||4,this[Ro]=!1,this[vo]=!1}[hb](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[vo]=!0,this[Wr](),this}write(e){if(this[vo])throw new Error("write after end");return e instanceof WC?this[lb](e):this[Ao](e),this.flowing}[lb](e){let r=Uu(ub.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new ko(e.path,r,!1);i.entry=new KC(e,this[Hu](i)),i.entry.on("end",n=>this[ju](i)),this[Pt]+=1,this[Lt].push(i)}this[Wr]()}[Ao](e){let r=Uu(ub.resolve(this.cwd,e));this[Lt].push(new ko(e,r)),this[Wr]()}[$u](e){e.pending=!0,this[Pt]+=1;let r=this.follow?"stat":"lstat";Co[r](e.absolute,(i,n)=>{e.pending=!1,this[Pt]-=1,i?this.emit("error",i):this[xo](e,n)})}[xo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Gu](e){e.pending=!0,this[Pt]+=1,Co.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Pt]-=1,r)return this.emit("error",r);this[Oo](e,i)})}[Oo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[Ro]){this[Ro]=!0;for(let e=this[Lt].head;e!==null&&this[Pt]<this.jobs;e=e.next)if(this[ab](e.value),e.value.ignore){let r=e.next;this[Lt].removeNode(e),e.next=r}this[Ro]=!1,this[vo]&&!this[Lt].length&&this[Pt]===0&&(this.zip?this.zip.end(ob):(super.write(ob),super.end()))}}get[Bi](){return this[Lt]&&this[Lt].head&&this[Lt].head.value}[ju](e){this[Lt].shift(),this[Pt]-=1,this[Wr]()}[ab](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[To](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[xo](e,this.statCache.get(e.absolute)):this[$u](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Oo](e,this.readdirCache.get(e.absolute)):this[Gu](e),!e.readdir))){if(e.entry=this[cb](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[To](e)}}}[Hu](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[cb](e){this[Pt]+=1;try{return new this[zu](e.path,this[Hu](e)).on("end",()=>this[ju](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[qu](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[To](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Wu=class extends Ku{constructor(e){super(e),this[zu]=YC}pause(){}resume(){}[$u](e){let r=this.follow?"statSync":"lstatSync";this[xo](e,Co[r](e.absolute))}[Gu](e,r){this[Oo](e,Co.readdirSync(e.absolute))}[To](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[hb](n)})}};Ku.Sync=Wu;fb.exports=Ku});var Wi=H(jn=>{"use strict";var XC=eu(),JC=require("events").EventEmitter,Ve=require("fs"),Xu=Ve.writev;if(!Xu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Xu=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Gi=Symbol("_autoClose"),mt=Symbol("_close"),Bn=Symbol("_ended"),he=Symbol("_fd"),pb=Symbol("_finished"),Sr=Symbol("_flags"),Vu=Symbol("_flush"),Ju=Symbol("_handleChunk"),Qu=Symbol("_makeBuf"),Mo=Symbol("_mode"),Po=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Zu=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Jt=Symbol("_path"),Yr=Symbol("_pos"),It=Symbol("_queue"),qi=Symbol("_read"),db=Symbol("_readSize"),wr=Symbol("_reading"),Io=Symbol("_remain"),mb=Symbol("_size"),No=Symbol("_write"),ji=Symbol("_writing"),Do=Symbol("_defaultFlag"),$i=Symbol("_errored"),Fo=class extends XC{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[db]=r.readSize||16*1024*1024,this[wr]=!1,this[mb]=typeof r.size=="number"?r.size:1/0,this[Io]=this[mb],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[Er]()}get fd(){return this[he]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Er](){Ve.open(this[Jt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[Ui](e):(this[he]=r,this.emit("open",r),this[qi]())}[Qu](){return Buffer.allocUnsafe(Math.min(this[db],this[Io]))}[qi](){if(!this[wr]){this[wr]=!0;let e=this[Qu]();if(e.length===0)return process.nextTick(()=>this[Zu](null,0,e));Ve.read(this[he],e,0,e.length,null,(r,i,n)=>this[Zu](r,i,n))}}[Zu](e,r,i){this[wr]=!1,e?this[Ui](e):this[Ju](r,i)&&this[qi]()}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[wr]=!0,this[mt](),this.emit("error",e)}[Ju](e,r){let i=!1;return this[Io]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Io]<=0)&&(i=!1,this[mt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[qi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},eh=class extends Fo{[Er](){let e=!0;try{this[zi](null,Ve.openSync(this[Jt],"r")),e=!1}finally{e&&this[mt]()}}[qi](){let e=!0;try{if(!this[wr]){this[wr]=!0;do{let r=this[Qu](),i=r.length===0?0:Ve.readSync(this[he],r,0,r.length,null);if(!this[Ju](i,r))break}while(!0);this[wr]=!1}e=!1}finally{e&&this[mt]()}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}},Bo=class extends JC{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[ji]=!1,this[Bn]=!1,this[Po]=!1,this[It]=[],this[Jt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Mo]=r.mode===void 0?438:r.mode,this[Yr]=typeof r.start=="number"?r.start:null,this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Yr]!==null?"r+":"w";this[Do]=r.flags===void 0,this[Sr]=this[Do]?i:r.flags,this[he]===null&&this[Er]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Jt]}[Ui](e){this[mt](),this[ji]=!0,this.emit("error",e)}[Er](){Ve.open(this[Jt],this[Sr],this[Mo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Do]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Vu]())}end(e,r){return e&&this.write(e,r),this[Bn]=!0,!this[ji]&&!this[It].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bn]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[It].length?(this[It].push(e),this[Po]=!0,!1):(this[ji]=!0,this[No](e),!0)}[No](e){Ve.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[Ui](e):(this[Yr]!==null&&(this[Yr]+=r),this[It].length?this[Vu]():(this[ji]=!1,this[Bn]&&!this[pb]?(this[pb]=!0,this[mt](),this.emit("finish")):this[Po]&&(this[Po]=!1,this.emit("drain"))))}[Vu](){if(this[It].length===0)this[Bn]&&this[Hi](null,0);else if(this[It].length===1)this[No](this[It].pop());else{let e=this[It];this[It]=[],Xu(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},th=class extends Bo{[Er](){let e;if(this[Do]&&this[Sr]==="r+")try{e=Ve.openSync(this[Jt],this[Sr],this[Mo])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Er]();throw r}else e=Ve.openSync(this[Jt],this[Sr],this[Mo]);this[zi](null,e)}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}[No](e){let r=!0;try{this[Hi](null,Ve.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[mt]()}catch{}}}};jn.ReadStream=Fo;jn.ReadStreamSync=eh;jn.WriteStream=Bo;jn.WriteStreamSync=th});var zo=H((HF,vb)=>{"use strict";var QC=go(),eL=Mi(),tL=require("events"),rL=Bu(),iL=1024*1024,nL=po(),yb=yo(),sL=yu(),{nextTick:oL}=require("process"),rh=Buffer.from([31,139]),at=Symbol("state"),Kr=Symbol("writeEntry"),Qt=Symbol("readEntry"),ih=Symbol("nextEntry"),gb=Symbol("processEntry"),lt=Symbol("extendedHeader"),Hn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),_b=Symbol("emitMeta"),de=Symbol("buffer"),er=Symbol("queue"),Vr=Symbol("ended"),bb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ze=Symbol("unzip"),jo=Symbol("consumeChunk"),Ho=Symbol("consumeChunkSub"),nh=Symbol("consumeBody"),wb=Symbol("consumeMeta"),Sb=Symbol("consumeHeader"),qo=Symbol("consuming"),sh=Symbol("bufferConcat"),oh=Symbol("maybeEnd"),qn=Symbol("writing"),Rr=Symbol("aborted"),Uo=Symbol("onDone"),Xr=Symbol("sawValidEntry"),$o=Symbol("sawNullBlock"),Go=Symbol("sawEOF"),Eb=Symbol("closeStream"),aL=t=>!0;vb.exports=QC(class extends tL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on(Uo,r=>{(this[at]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Uo,e.ondone):this.on(Uo,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||iL,this.filter=typeof e.filter=="function"?e.filter:aL,this.writable=!0,this.readable=!1,this[er]=new rL,this[de]=null,this[Qt]=null,this[Kr]=null,this[at]="begin",this[vr]="",this[lt]=null,this[Hn]=null,this[Vr]=!1,this[Ze]=null,this[Rr]=!1,this[$o]=!1,this[Go]=!1,this.on("end",()=>this[Eb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Sb](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new eL(e,r,this[lt],this[Hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$o]?(this[Go]=!0,this[at]==="begin"&&(this[at]="header"),this[Zr]("eof")):(this[$o]=!0,this[Zr]("nullBlock"));else if(this[$o]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Kr]=new nL(i,this[lt],this[Hn]);if(!this[Xr])if(s.remain){let o=()=>{s.invalid||(this[Xr]=!0)};s.on("end",o)}else this[Xr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[at]="ignore",s.resume()):s.size>0&&(this[vr]="",s.on("data",o=>this[vr]+=o),this[at]="meta"):(this[lt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[at]=s.remain?"ignore":"header",s.resume()):(s.remain?this[at]="body":(this[at]="header",s.end()),this[Qt]?this[er].push(s):(this[er].push(s),this[ih]())))}}}[Eb](){oL(()=>this.emit("close"))}[gb](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Qt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ih]()),r=!1)):(this[Qt]=null,r=!1),r}[ih](){do;while(this[gb](this[er].shift()));if(!this[er].length){let e=this[Qt];!e||e.flowing||e.size===e.remain?this[qn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[nh](e,r){let i=this[Kr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[at]="header",this[Kr]=null,i.end()),s.length}[wb](e,r){let i=this[Kr],n=this[nh](e,r);return this[Kr]||this[_b](i),n}[Zr](e,r,i){!this[er].length&&!this[Qt]?this.emit(e,r,i):this[er].push([e,r,i])}[_b](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[lt]=yb.parse(this[vr],this[lt],!1);break;case"GlobalExtendedHeader":this[Hn]=yb.parse(this[vr],this[Hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[lt]=this[lt]||Object.create(null),this[lt].path=this[vr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[lt]=this[lt]||Object.create(null),this[lt].linkpath=this[vr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Rr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Rr])return;if(this[Ze]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<rh.length)return this[de]=e,!0;for(let i=0;this[Ze]===null&&i<rh.length;i++)e[i]!==rh[i]&&(this[Ze]=!1);if(this[Ze]===null){let i=this[Vr];this[Vr]=!1,this[Ze]=new sL.Unzip,this[Ze].on("data",s=>this[jo](s)),this[Ze].on("error",s=>this.abort(s)),this[Ze].on("end",s=>{this[Vr]=!0,this[jo]()}),this[qn]=!0;let n=this[Ze][i?"end":"write"](e);return this[qn]=!1,n}}this[qn]=!0,this[Ze]?this[Ze].write(e):this[jo](e),this[qn]=!1;let r=this[er].length?!1:this[Qt]?this[Qt].flowing:!0;return!r&&!this[er].length&&this[Qt].once("drain",i=>this.emit("drain")),r}[sh](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[oh](){if(this[Vr]&&!this[bb]&&!this[Rr]&&!this[qo]){this[bb]=!0;let e=this[Kr];if(e&&e.blockRemain){let r=this[de]?this[de].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[de]&&e.write(this[de]),e.end()}this[Zr](Uo)}}[jo](e){if(this[qo])this[sh](e);else if(!e&&!this[de])this[oh]();else{if(this[qo]=!0,this[de]){this[sh](e);let r=this[de];this[de]=null,this[Ho](r)}else this[Ho](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[Go];){let r=this[de];this[de]=null,this[Ho](r)}this[qo]=!1}(!this[de]||this[Vr])&&this[oh]()}[Ho](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[Go];)switch(this[at]){case"begin":case"header":this[Sb](e,r),r+=512;break;case"ignore":case"body":r+=this[nh](e,r);break;case"meta":r+=this[wb](e,r);break;default:throw new Error("invalid state: "+this[at])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Rr]||(this[Ze]?this[Ze].end(e):(this[Vr]=!0,this.write(e)))}})});var Wo=H((qF,Ob)=>{"use strict";var lL=ki(),xb=zo(),Yi=require("fs"),cL=Wi(),Rb=require("path"),ah=Fi();Ob.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=lL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&hL(i,e),i.noResume||uL(i),i.file&&i.sync?fL(i):i.file?pL(i,r):Ab(i)};var uL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},hL=(t,e)=>{let r=new Map(e.map(s=>[ah(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Rb.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Rb.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ah(s)):s=>n(ah(s))},fL=t=>{let e=Ab(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");a<s.size;){let c=Yi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},pL=(t,e)=>{let r=new xb(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Yi.stat(n,(l,c)=>{if(l)a(l);else{let u=new cL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Ab=t=>new xb(t)});var Ib=H((UF,Pb)=>{"use strict";var dL=ki(),Yo=Lo(),Tb=Wi(),kb=Wo(),Cb=require("path");Pb.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=dL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?mL(i,e):i.file?yL(i,e,r):i.sync?gL(i,e):_L(i,e)};var mL=(t,e)=>{let r=new Yo.Sync(t),i=new Tb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Lb(r,e)},yL=(t,e,r)=>{let i=new Yo(t),n=new Tb.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return lh(i,e),r?s.then(r,r):s},Lb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?kb({file:Cb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},lh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return kb({file:Cb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>lh(t,e));t.add(r)}t.end()},gL=(t,e)=>{let r=new Yo.Sync(t);return Lb(r,e),r},_L=(t,e)=>{let r=new Yo(t);return lh(r,e),r}});var ch=H(($F,Hb)=>{"use strict";var bL=ki(),Nb=Lo(),rt=require("fs"),Db=Wi(),Mb=Wo(),Fb=require("path"),Bb=Mi();Hb.exports=(t,e,r)=>{let i=bL(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?wL(i,e):EL(i,e,r)};var wL=(t,e)=>{let r=new Nb.Sync(t),i=!0,n,s;try{try{n=rt.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=rt.openSync(t.file,"w+");else throw l}let o=rt.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=rt.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new Bb(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,SL(t,r,s,n,e)}finally{if(i)try{rt.closeSync(n)}catch{}}},SL=(t,e,r,i,n)=>{let s=new Db.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),vL(e,n)},EL=(t,e,r)=>{e=Array.from(e);let i=new Nb(t),n=(o,a,l)=>{let c=(g,y)=>{g?rt.close(o,_=>l(g)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return c(g);if(h+=y,h<512&&y)return rt.read(o,f,h,f.length-h,u+h,d);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let _=new Bb(f);if(!_.cksumValid)return c(null,u);let x=512*Math.ceil(_.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),h=0,rt.read(o,f,0,512,u,d)};rt.read(o,f,0,512,u,d)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",rt.open(t.file,l,c);if(u)return a(u);rt.fstat(h,(f,d)=>{if(f)return rt.close(h,()=>a(f));n(h,d.size,(g,y)=>{if(g)return a(g);let _=new Db.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),jb(i,e)})})};rt.open(t.file,l,c)});return r?s.then(r,r):s},vL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Mb({file:Fb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},jb=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Mb({file:Fb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>jb(t,e));t.add(r)}t.end()}});var Ub=H((GF,qb)=>{"use strict";var RL=ki(),xL=ch();qb.exports=(t,e,r)=>{let i=RL(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),AL(i),xL(i,e,r)};var AL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var zb=H((zF,Gb)=>{var{promisify:$b}=require("util"),xr=require("fs"),OL=t=>{if(!t)t={mode:511,fs:xr};else if(typeof t=="object")t={mode:511,fs:xr,...t};else if(typeof t=="number")t={mode:t,fs:xr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:xr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||xr.mkdir,t.mkdirAsync=$b(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=$b(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};Gb.exports=OL});var Yb=H((WF,Wb)=>{var TL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:kL,parse:CL}=require("path"),LL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=kL(t),TL==="win32"){let e=/[*|"<>?:]/,{root:r}=CL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Wb.exports=LL});var Jb=H((YF,Xb)=>{var{dirname:Kb}=require("path"),Vb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Vb(t,Kb(e),e):void 0),Zb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Zb(t,Kb(e),e):void 0}};Xb.exports={findMade:Vb,findMadeSync:Zb}});var fh=H((KF,ew)=>{var{dirname:Qb}=require("path"),uh=(t,e,r)=>{e.recursive=!1;let i=Qb(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return uh(i,e).then(s=>uh(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},hh=(t,e,r)=>{let i=Qb(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return hh(t,e,hh(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ew.exports={mkdirpManual:uh,mkdirpManualSync:hh}});var iw=H((VF,rw)=>{var{dirname:tw}=require("path"),{findMade:PL,findMadeSync:IL}=Jb(),{mkdirpManual:NL,mkdirpManualSync:DL}=fh(),ML=(t,e)=>(e.recursive=!0,tw(t)===t?e.mkdirAsync(t,e):PL(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return NL(t,e);throw n}))),FL=(t,e)=>{if(e.recursive=!0,tw(t)===t)return e.mkdirSync(t,e);let i=IL(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return DL(t,e);throw n}};rw.exports={mkdirpNative:ML,mkdirpNativeSync:FL}});var aw=H((ZF,ow)=>{var nw=require("fs"),BL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ph=BL.replace(/^v/,"").split("."),sw=+ph[0]>10||+ph[0]==10&&+ph[1]>=12,jL=sw?t=>t.mkdir===nw.mkdir:()=>!1,HL=sw?t=>t.mkdirSync===nw.mkdirSync:()=>!1;ow.exports={useNative:jL,useNativeSync:HL}});var pw=H((XF,fw)=>{var Ki=zb(),Vi=Yb(),{mkdirpNative:lw,mkdirpNativeSync:cw}=iw(),{mkdirpManual:uw,mkdirpManualSync:hw}=fh(),{useNative:qL,useNativeSync:UL}=aw(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),qL(e)?lw(t,e):uw(t,e)),$L=(t,e)=>(t=Vi(t),e=Ki(e),UL(e)?cw(t,e):hw(t,e));Zi.sync=$L;Zi.native=(t,e)=>lw(Vi(t),Ki(e));Zi.manual=(t,e)=>uw(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>cw(Vi(t),Ki(e));Zi.manualSync=(t,e)=>hw(Vi(t),Ki(e));fw.exports=Zi});var ww=H((JF,bw)=>{"use strict";var ct=require("fs"),Jr=require("path"),GL=ct.lchown?"lchown":"chown",zL=ct.lchownSync?"lchownSync":"chownSync",mw=ct.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),dw=(t,e,r)=>{try{return ct[zL](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},WL=(t,e,r)=>{try{return ct.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},YL=mw?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ct.chown(t,e,r,i)}:(t,e,r,i)=>i,dh=mw?(t,e,r)=>{try{return dw(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;WL(t,e,r)}}:(t,e,r)=>dw(t,e,r),KL=process.version,yw=(t,e,r)=>ct.readdir(t,e,r),VL=(t,e)=>ct.readdirSync(t,e);/^v4\./.test(KL)&&(yw=(t,e,r)=>ct.readdir(t,r));var Ko=(t,e,r,i)=>{ct[GL](t,e,r,YL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},gw=(t,e,r,i,n)=>{if(typeof e=="string")return ct.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,gw(t,o,r,i,n)});if(e.isDirectory())mh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Ko(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Ko(s,r,i,n)}},mh=(t,e,r,i)=>{yw(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Ko(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Ko(t,e,r,i)}};s.forEach(c=>gw(t,c,e,r,l))})},ZL=(t,e,r,i)=>{if(typeof e=="string")try{let n=ct.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&_w(Jr.resolve(t,e.name),r,i),dh(Jr.resolve(t,e.name),r,i)},_w=(t,e,r)=>{let i;try{i=VL(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return dh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>ZL(t,n,e,r)),dh(t,e,r)};bw.exports=mh;mh.sync=_w});var Rw=H((QF,yh)=>{"use strict";var Sw=pw(),ut=require("fs"),Vo=require("path"),Ew=ww(),yt=Ni(),Zo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Xo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Jo=(t,e)=>t.get(yt(e)),Un=(t,e,r)=>t.set(yt(e),r),XL=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Xo(t,r&&r.code||"ENOTDIR")),e(r)})};yh.exports=(t,e,r)=>{t=yt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=yt(e.cwd),d=(_,x)=>{_?r(_):(Un(h,t,!0),x&&l?Ew(x,o,a,k=>d(k)):s?ut.chmod(t,n,r):r())};if(h&&Jo(h,t)===!0)return d();if(t===f)return XL(t,d);if(c)return Sw(t,{mode:n}).then(_=>d(null,_),d);let y=yt(Vo.relative(f,t)).split("/");Qo(f,y,n,h,u,f,null,d)};var Qo=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=yt(Vo.resolve(t+"/"+l));if(Jo(i,c))return Qo(c,e,r,i,n,s,o,a);ut.mkdir(c,r,vw(c,e,r,i,n,s,o,a))},vw=(t,e,r,i,n,s,o,a)=>l=>{l?ut.lstat(t,(c,u)=>{if(c)c.path=c.path&&yt(c.path),a(c);else if(u.isDirectory())Qo(t,e,r,i,n,s,o,a);else if(n)ut.unlink(t,h=>{if(h)return a(h);ut.mkdir(t,r,vw(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Zo(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Qo(t,e,r,i,n,s,o,a))},JL=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Xo(t,r)}};yh.exports.sync=(t,e)=>{t=yt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=yt(e.cwd),f=_=>{Un(u,t,!0),_&&a&&Ew.sync(_,s,o),n&&ut.chmodSync(t,i)};if(u&&Jo(u,t)===!0)return f();if(t===h)return JL(h),f();if(l)return f(Sw.sync(t,i));let g=yt(Vo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=yt(Vo.resolve(x)),!Jo(u,x))try{ut.mkdirSync(x,i),y=y||x,Un(u,x,!0)}catch{let C=ut.lstatSync(x);if(C.isDirectory()){Un(u,x,!0);continue}else if(c){ut.unlinkSync(x),ut.mkdirSync(x,i),y=y||x,Un(u,x,!0);continue}else if(C.isSymbolicLink())return new Zo(x,x+"/"+g.join("/"))}return f(y)}});var _h=H((eB,xw)=>{var gh=Object.create(null),{hasOwnProperty:QL}=Object.prototype;xw.exports=t=>(QL.call(gh,t)||(gh[t]=t.normalize("NFKD")),gh[t])});var kw=H((tB,Tw)=>{var Aw=require("assert"),eP=_h(),tP=Fi(),{join:Ow}=require("path"),rP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,iP=rP==="win32";Tw.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=Ow(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(d=>{let g=t.get(d);Aw.equal(g[0],c),g.length===1?t.delete(d):(g.shift(),typeof g[0]=="function"?f.add(g[0]):g[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let g=t.get(d);Aw(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,u)=>{c=iP?["win32 parallelization disabled"]:c.map(f=>eP(tP(Ow(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(u):t.set(f,[u])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(u):d.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var Pw=H((rB,Lw)=>{var nP=process.env.__FAKE_PLATFORM__||process.platform,sP=nP==="win32",oP=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:aP,O_TRUNC:lP,O_WRONLY:cP,UV_FS_O_FILEMAP:Cw=0}=oP.constants,uP=sP&&!!Cw,hP=512*1024,fP=Cw|lP|aP|cP;Lw.exports=uP?t=>t<hP?fP:"w":()=>"w"});var Oh=H((iB,Ww)=>{"use strict";var pP=require("assert"),dP=zo(),ae=require("fs"),mP=Wi(),tr=require("path"),$w=Rw(),Iw=Au(),yP=kw(),gP=Ou(),it=Ni(),_P=Fi(),bP=_h(),Nw=Symbol("onEntry"),Sh=Symbol("checkFs"),Dw=Symbol("checkFs2"),ra=Symbol("pruneCache"),Eh=Symbol("isReusable"),ht=Symbol("makeFs"),vh=Symbol("file"),Rh=Symbol("directory"),ia=Symbol("link"),Mw=Symbol("symlink"),Fw=Symbol("hardlink"),Bw=Symbol("unsupported"),jw=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),ea=Symbol("pending"),Hw=Symbol("pend"),Xi=Symbol("unpend"),bh=Symbol("ended"),wh=Symbol("maybeClose"),xh=Symbol("skip"),$n=Symbol("doChown"),Gn=Symbol("uid"),zn=Symbol("gid"),Wn=Symbol("checkedCwd"),Gw=require("crypto"),zw=Pw(),wP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Yn=wP==="win32",SP=(t,e)=>{if(!Yn)return ae.unlink(t,e);let r=t+".DELETE."+Gw.randomBytes(16).toString("hex");ae.rename(t,r,i=>{if(i)return e(i);ae.unlink(r,e)})},EP=t=>{if(!Yn)return ae.unlinkSync(t);let e=t+".DELETE."+Gw.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},qw=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,Uw=t=>bP(_P(it(t))).toLowerCase(),vP=(t,e)=>{e=Uw(e);for(let r of t.keys()){let i=Uw(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},RP=t=>{for(let e of t.keys())t.delete(e)},Kn=class extends dP{constructor(e){if(e||(e={}),e.ondone=r=>{this[bh]=!0,this[wh]()},super(e),this[Wn]=!1,this.reservations=yP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ea]=0,this[bh]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=it(tr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[Nw](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[wh](){this[bh]&&this[ea]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[jw](e){if(this.strip){let r=it(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=it(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=it(e.path),i=r.split("/");if(i.includes("..")||Yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=gP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(tr.isAbsolute(e.path)?e.absolute=it(tr.resolve(e.path)):e.absolute=it(tr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:it(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=tr.win32.parse(e.absolute);e.absolute=r+Iw.encode(e.absolute.slice(r.length));let{root:i}=tr.win32.parse(e.path);e.path=i+Iw.encode(e.path.slice(i.length))}return!0}[Nw](e){if(!this[jw](e))return e.resume();switch(pP.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Sh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[Bw](e)}}[Be](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Xi](),r.resume())}[Ar](e,r,i){$w(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[$n](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Gn](e){return qw(this.uid,e.uid,this.processUid)}[zn](e){return qw(this.gid,e.gid,this.processGid)}[vh](e,r){let i=e.mode&4095||this.fmode,n=new mP.WriteStream(e.absolute,{flags:zw(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&ae.close(n.fd,()=>{}),n.write=()=>!0,this[Be](l,e),r()});let s=1,o=l=>{if(l){n.fd&&ae.close(n.fd,()=>{}),this[Be](l,e),r();return}--s===0&&ae.close(n.fd,c=>{c?this[Be](c,e):this[Xi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ae.futimes(u,h,f,d=>d?ae.utimes(c,h,f,g=>o(g&&d)):o())}if(this[$n](e)){s++;let h=this[Gn](e),f=this[zn](e);ae.fchown(u,h,f,d=>d?ae.chown(c,h,f,g=>o(g&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Be](l,e),r()}),e.pipe(a)),a.pipe(n)}[Rh](e,r){let i=e.mode&4095||this.dmode;this[Ar](e.absolute,i,n=>{if(n){this[Be](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[$n](e)&&(s++,ae.chown(e.absolute,this[Gn](e),this[zn](e),o)),o()})}[Bw](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Mw](e,r){this[ia](e,e.linkpath,"symlink",r)}[Fw](e,r){let i=it(tr.resolve(this.cwd,e.linkpath));this[ia](e,i,"link",r)}[Hw](){this[ea]++}[Xi](){this[ea]--,this[wh]()}[xh](e){this[Xi](),e.resume()}[Eh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Yn}[Sh](e){this[Hw]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[Dw](e,i))}[ra](e){e.type==="SymbolicLink"?RP(this.dirCache):e.type!=="Directory"&&vP(this.dirCache,e.absolute)}[Dw](e,r){this[ra](e);let i=a=>{this[ra](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Be](a,e),i();return}this[Wn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=it(tr.dirname(e.absolute));if(a!==this.cwd)return this[Ar](a,this.dmode,l=>{if(l){this[Be](l,e),i();return}o()})}o()},o=()=>{ae.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[xh](e),i();return}if(a||this[Eh](e,l))return this[ht](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[ht](h,e,i);return c?ae.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return ae.rmdir(e.absolute,c=>this[ht](c,e,i))}if(e.absolute===this.cwd)return this[ht](null,e,i);SP(e.absolute,c=>this[ht](c,e,i))})};this[Wn]?s():n()}[ht](e,r,i){if(e){this[Be](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vh](r,i);case"Link":return this[Fw](r,i);case"SymbolicLink":return this[Mw](r,i);case"Directory":case"GNUDumpDir":return this[Rh](r,i)}}[ia](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},ta=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ah=class extends Kn{[ht](e,r){return super[ht](e,r,()=>{})}[Sh](e){if(this[ra](e),!this[Wn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Be](s,e);this[Wn]=!0}if(e.absolute!==this.cwd){let s=it(tr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Be](o,e)}}let[r,i]=ta(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[xh](e);if(r||this[Eh](e,i))return this[ht](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ta(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[ht](a,e)}let[s]=ta(()=>ae.rmdirSync(e.absolute));this[ht](s,e)}let[n]=e.absolute===this.cwd?[]:ta(()=>EP(e.absolute));this[ht](n,e)}[vh](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{ae.closeSync(s)}catch(c){l=c}(a||l)&&this[Be](a||l,e),r()},s;try{s=ae.openSync(e.absolute,zw(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Be](a,e)),e.pipe(o)),o.on("data",a=>{try{ae.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{ae.futimesSync(s,c,u)}catch(h){try{ae.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[$n](e)){let c=this[Gn](e),u=this[zn](e);try{ae.fchownSync(s,c,u)}catch(h){try{ae.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[Rh](e,r){let i=e.mode&4095||this.dmode,n=this[Ar](e.absolute,i);if(n){this[Be](n,e),r();return}if(e.mtime&&!this.noMtime)try{ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[$n](e))try{ae.chownSync(e.absolute,this[Gn](e),this[zn](e))}catch{}r(),e.resume()}[Ar](e,r){try{return $w.sync(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[ia](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Kn.Sync=Ah;Ww.exports=Kn});var Xw=H((nB,Zw)=>{"use strict";var xP=ki(),na=Oh(),Kw=require("fs"),Vw=Wi(),Yw=require("path"),Th=Fi();Zw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=xP(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&AP(i,e),i.file&&i.sync?OP(i):i.file?TP(i,r):i.sync?kP(i):CP(i)};var AP=(t,e)=>{let r=new Map(e.map(s=>[Th(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Yw.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Yw.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Th(s)):s=>n(Th(s))},OP=t=>{let e=new na.Sync(t),r=t.file,i=Kw.statSync(r),n=t.maxReadSize||16*1024*1024;new Vw.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},TP=(t,e)=>{let r=new na(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Kw.stat(n,(l,c)=>{if(l)a(l);else{let u=new Vw.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},kP=t=>new na.Sync(t),CP=t=>new na(t)});var Jw=H(xe=>{"use strict";xe.c=xe.create=Ib();xe.r=xe.replace=ch();xe.t=xe.list=Wo();xe.u=xe.update=Ub();xe.x=xe.extract=Xw();xe.Pack=Lo();xe.Unpack=Oh();xe.Parse=zo();xe.ReadEntry=po();xe.WriteEntry=Fu();xe.Header=Mi();xe.Pax=yo();xe.types=bu()});var sS=H((cB,nS)=>{function ft(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))}nS.exports=ft;ft.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ft.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ft.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 i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};ft.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)};ft.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ft.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ft.prototype.start=ft.prototype.try;ft.prototype.errors=function(){return this._errors};ft.prototype.attempts=function(){return this._attempts};ft.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var oS=H(Qr=>{var IP=sS();Qr.operation=function(t){var e=Qr.timeouts(t);return new IP(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qr.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 i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Qr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Qr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=Qr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var lS=H((hB,aS)=>{aS.exports=oS()});var uS=H((fB,cS)=>{var NP=lS();function DP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=NP.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(d){l(d,u)})}o.attempt(c)}return new Promise(r)}cS.exports=DP});var KP={};Ph(KP,{default:()=>YP,getNewPkgName:()=>gS,transformer:()=>_S});module.exports=RS(KP);var Lh=ne(require("path"));var Ge=require("picocolors"),bg=ne(require("ora"),1),wg=ne(require("gradient-string"),1);var Bk=ne(li(),1),eD=require("fs-extra");function Pp(t){return typeof t=="undefined"||t===null}function _0(t){return typeof t=="object"&&t!==null}function b0(t){return Array.isArray(t)?t:Pp(t)?[]:[t]}function w0(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function S0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function E0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var v0=Pp,R0=_0,x0=b0,A0=S0,O0=E0,T0=w0,Re={isNothing:v0,isObject:R0,toArray:x0,repeat:A0,isNegativeZero:O0,extend:T0};function Ip(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
5
|
+
`);return _?(i.originalMessage=i.message,i.message=k):i=new Error(k),i.shortMessage=x,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};Ff.exports=yE});var Hf=H((bI,wa)=>{"use strict";var is=["stdin","stdout","stderr"],gE=t=>is.some(e=>t[e]!==void 0),jf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return is.map(i=>t[i]);if(gE(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${is.map(i=>`\`${i}\``).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,is.length);return Array.from({length:r},(i,n)=>e[n])};wa.exports=jf;wa.exports.node=t=>{let e=jf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var qf=H((wI,ns)=>{ns.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ns.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ns.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wf=H((SI,oi)=>{var me=global.process,Tr=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"};Tr(me)?(Uf=require("assert"),ni=qf(),$f=/^win/i.test(me.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),me.__signal_exit_emitter__?Ae=me.__signal_exit_emitter__:(Ae=me.__signal_exit_emitter__=new sn,Ae.count=0,Ae.emitted={}),Ae.infinite||(Ae.setMaxListeners(1/0),Ae.infinite=!0),oi.exports=function(t,e){if(!Tr(global.process))return function(){};Uf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&Sa();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ae.removeListener(r,t),Ae.listeners("exit").length===0&&Ae.listeners("afterexit").length===0&&ss()};return Ae.on(r,t),i},ss=function(){!si||!Tr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,os[e])}catch{}}),me.emit=as,me.reallyExit=Ea,Ae.count-=1)},oi.exports.unload=ss,kr=function(e,r,i){Ae.emitted[e]||(Ae.emitted[e]=!0,Ae.emit(e,r,i))},os={},ni.forEach(function(t){os[t]=function(){if(Tr(global.process)){var r=me.listeners(t);r.length===Ae.count&&(ss(),kr("exit",null,t),kr("afterexit",null,t),$f&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,Sa=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,os[e]),!0}catch{return!1}}),me.emit=zf,me.reallyExit=Gf)},oi.exports.load=Sa,Ea=me.reallyExit,Gf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),Ea.call(me,me.exitCode))},as=me.emit,zf=function(e,r){if(e==="exit"&&Tr(global.process)){r!==void 0&&(me.exitCode=r);var i=as.apply(this,arguments);return kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),i}else return as.apply(this,arguments)}):oi.exports=function(){return function(){}};var Uf,ni,$f,sn,Ae,ss,kr,os,si,Sa,Ea,Gf,as,zf});var Kf=H((EI,Yf)=>{"use strict";var _E=require("os"),bE=Wf(),wE=1e3*5,SE=(t,e="SIGTERM",r={})=>{let i=t(e);return EE(t,e,r,i),i},EE=(t,e,r,i)=>{if(!vE(e,r,i))return;let n=xE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},vE=(t,{forceKillAfterTimeout:e},r)=>RE(t)&&e!==!1&&r,RE=t=>t===_E.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",xE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return wE;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},AE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},OE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},TE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{OE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},kE=({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})`)},CE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=bE(()=>{t.kill()});return i.finally(()=>{n()})};Yf.exports={spawnedKill:SE,spawnedCancel:AE,setupTimeout:TE,validateTimeout:kE,setExitHandler:CE}});var Zf=H((vI,Vf)=>{"use strict";var gt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";gt.writable=t=>gt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";gt.readable=t=>gt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";gt.duplex=t=>gt.writable(t)&>.readable(t);gt.transform=t=>gt.duplex(t)&&typeof t._transform=="function";Vf.exports=gt});var Jf=H((RI,Xf)=>{"use strict";var{PassThrough:LE}=require("stream");Xf.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new LE({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Qf=H((xI,on)=>{"use strict";var{constants:PE}=require("buffer"),IE=require("stream"),{promisify:NE}=require("util"),DE=Jf(),ME=NE(IE.pipeline),ls=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function va(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=DE(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=PE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await ME(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ls)})}),i.getBufferedValue()}on.exports=va;on.exports.buffer=(t,e)=>va(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>va(t,{...e,array:!0});on.exports.MaxBufferError=ls});var tp=H((AI,ep)=>{"use strict";var{PassThrough:FE}=require("stream");ep.exports=function(){var t=[],e=new FE({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),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",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var sp=H((OI,np)=>{"use strict";var ip=Zf(),rp=Qf(),BE=tp(),jE=(t,e)=>{e===void 0||t.stdin===void 0||(ip(e)?e.pipe(t.stdin):t.stdin.end(e))},HE=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=BE();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Ra=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?rp(t,{encoding:e,maxBuffer:i}):rp.buffer(t,{maxBuffer:i})},qE=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=xa(t,{encoding:i,buffer:n,maxBuffer:s}),l=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Ra(t,a),Ra(e,l),Ra(r,c)])}},UE=({input:t})=>{if(ip(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};np.exports={handleInput:jE,makeAllStream:HE,getSpawnedResult:qE,validateInputSync:UE}});var ap=H((TI,op)=>{"use strict";var $E=(async()=>{})().constructor.prototype,GE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor($E,t)]),zE=(t,e)=>{for(let[r,i]of GE){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},WE=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});op.exports={mergePromise:zE,getSpawnedPromise:WE}});var up=H((kI,cp)=>{"use strict";var lp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],YE=/^[\w.-]+$/,KE=/"/g,VE=t=>typeof t!="string"||YE.test(t)?t:`"${t.replace(KE,'\\"')}"`,ZE=(t,e)=>lp(t,e).join(" "),XE=(t,e)=>lp(t,e).map(r=>VE(r)).join(" "),JE=/ +/g,QE=t=>{let e=[];for(let r of t.trim().split(JE)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};cp.exports={joinCommand:ZE,getEscapedCommand:XE,parseCommand:QE}});var li=H((CI,ai)=>{"use strict";var e0=require("path"),Aa=require("child_process"),t0=Sf(),r0=vf(),i0=Af(),n0=Cf(),cs=Bf(),fp=Hf(),{spawnedKill:s0,spawnedCancel:o0,setupTimeout:a0,validateTimeout:l0,setExitHandler:c0}=Kf(),{handleInput:u0,getSpawnedResult:h0,makeAllStream:f0,validateInputSync:p0}=sp(),{mergePromise:hp,getSpawnedPromise:d0}=ap(),{joinCommand:pp,parseCommand:dp,getEscapedCommand:mp}=up(),m0=1e3*1e3*100,y0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?i0.env({env:s,cwd:i,execPath:n}):s},yp=(t,e,r={})=>{let i=t0._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:m0,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=y0(r),r.stdio=fp(r),process.platform==="win32"&&e0.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},an=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?r0(e):e,us=(t,e,r)=>{let i=yp(t,e,r),n=pp(t,e),s=mp(t,e);l0(i.options);let o;try{o=Aa.spawn(i.file,i.args,i.options)}catch(d){let g=new Aa.ChildProcess,y=Promise.reject(cs({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return hp(g,y)}let a=d0(o),l=a0(o,i.options,a),c=c0(o,i.options,l),u={isCanceled:!1};o.kill=s0.bind(null,o.kill.bind(o)),o.cancel=o0.bind(null,o,u);let f=n0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await h0(o,i.options,c),T=an(i.options,x),O=an(i.options,k),I=an(i.options,C);if(d||g!==0||y!==null){let w=cs({error:d,exitCode:g,signal:y,stdout:T,stderr:O,all:I,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return w;throw w}return{command:n,escapedCommand:s,exitCode:0,stdout:T,stderr:O,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return u0(o,i.options.input),o.all=f0(o,i.options),hp(o,f)};ai.exports=us;ai.exports.sync=(t,e,r)=>{let i=yp(t,e,r),n=pp(t,e),s=mp(t,e);p0(i.options);let o;try{o=Aa.spawnSync(i.file,i.args,i.options)}catch(c){throw cs({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=an(i.options,o.stdout,o.error),l=an(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=cs({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ai.exports.command=(t,e)=>{let[r,...i]=dp(t);return us(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=dp(t);return us.sync(r,i,e)};ai.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=fp.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var bd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function FR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=FR;function BR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=BR});var wd=H(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.isEnoentCodeError=void 0;function jR(t){return t.code==="ENOENT"}gs.isEnoentCodeError=jR});var Sd=H(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createDirentFromStats=void 0;var Ua=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 HR(t,e){return new Ua(t,e)}_s.createDirentFromStats=HR});var Ed=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.removeLeadingDotSegment=bt.escape=bt.makeAbsolute=bt.unixify=void 0;var qR=require("path"),UR=2,$R=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function GR(t){return t.replace(/\\/g,"/")}bt.unixify=GR;function zR(t,e){return qR.resolve(t,e)}bt.makeAbsolute=zR;function WR(t){return t.replace($R,"\\$2")}bt.escape=WR;function YR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(UR)}return t}bt.removeLeadingDotSegment=YR});var Rd=H((MI,vd)=>{vd.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 Od=H((FI,Ad)=>{var KR=Rd(),xd={"{":"}","(":")","[":"]"},VR=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||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 l=xd[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},ZR=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=xd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(KR(e))return!0;var i=VR;return r&&r.strict===!1&&(i=ZR),i(e)}});var kd=H((BI,Td)=>{"use strict";var XR=Od(),JR=require("path").posix.dirname,QR=require("os").platform()==="win32",$a="/",ex=/\\/g,tx=/[\{\[].*[\}\]]$/,rx=/(^|[^\\])([\{\[]|\([^\)]+$)/,ix=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Td.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&QR&&e.indexOf($a)<0&&(e=e.replace(ex,$a)),tx.test(e)&&(e+=$a),e+="a";do e=JR(e);while(XR(e)||rx.test(e));return e.replace(ix,"$1")}});var bs=H(nt=>{"use strict";nt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;nt.find=(t,e)=>t.nodes.find(r=>r.type===e);nt.exceedsLimit=(t,e,r=1,i)=>i===!1||!nt.isInteger(t)||!nt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;nt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};nt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);nt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;nt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;nt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);nt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ws=H((HI,Ld)=>{"use strict";var Cd=bs();Ld.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Cd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Cd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var Id=H((qI,Pd)=>{"use strict";Pd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Ud=H((UI,qd)=>{"use strict";var Nd=Id(),Pr=(t,e,r)=>{if(Nd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Nd(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(Pr.cache.hasOwnProperty(l))return Pr.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Hd(t)||Hd(e),f={min:t,max:e,a:c,b:u},d=[],g=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;g=Dd(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Dd(c,u,f,i)),f.negatives=g,f.positives=d,f.result=nx(g,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+g.length>1&&(f.result=`(?:${f.result})`),Pr.cache[l]=f,f.result};function nx(t,e,r){let i=Ga(t,e,"-",!1,r)||[],n=Ga(e,t,"",!1,r)||[],s=Ga(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function sx(t,e){let r=1,i=1,n=Fd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Fd(t,r);for(n=Bd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Bd(e+1,i)-1;return s=[...s],s.sort(lx),s}function ox(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=ax(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=cx(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Dd(t,e,r,i){let n=sx(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=ox(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+jd(a.count),o=c+1;continue}r.isPadded&&(h=ux(c,r,i)),u.string=h+u.pattern+jd(u.count),s.push(u),o=c+1,a=u}return s}function Ga(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Md(e,"string",a)&&s.push(r+a),i&&Md(e,"string",a)&&s.push(r+a)}return s}function ax(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function lx(t,e){return t>e?1:e>t?-1:0}function Md(t,e,r){return t.some(i=>i[e]===r)}function Fd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Bd(t,e){return t-t%Math.pow(10,e)}function jd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function cx(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Hd(t){return/^-?(0+)\d/.test(t)}function ux(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Pr.cache={};Pr.clearCache=()=>Pr.cache={};qd.exports=Pr});var Ya=H(($I,Zd)=>{"use strict";var hx=require("util"),zd=Ud(),$d=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),fx=t=>e=>t===!0?Number(e):String(e),za=t=>typeof t=="number"||typeof t=="string"&&t!=="",pn=t=>Number.isInteger(+t),Wa=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},px=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,dx=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Gd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},mx=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Wd=(t,e,r,i)=>{if(r)return zd(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Yd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return zd(t,e,r)},Kd=(...t)=>new RangeError("Invalid range arguments: "+hx.inspect(...t)),Vd=(t,e,r)=>{if(r.strictRanges===!0)throw Kd([t,e]);return[]},yx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},gx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Kd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Wa(a)||Wa(l)||Wa(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&px(t,e,i)===!1,d=i.transform||fx(f);if(i.toRegex&&r===1)return Wd(Gd(t,h),Gd(e,h),!0,i);let g={negatives:[],positives:[]},y=k=>g[k<0?"negatives":"positives"].push(Math.abs(k)),_=[],x=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):_.push(dx(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?mx(g,i):Yd(_,null,{wrap:!1,...i}):_},_x=(t,e,r=1,i={})=>{if(!pn(t)&&t.length>1||!pn(e)&&e.length>1)return Vd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Wd(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Yd(u,null,{wrap:!1,options:i}):u},Ss=(t,e,r,i={})=>{if(e==null&&za(t))return[t];if(!za(t)||!za(e))return Vd(t,e,i);if(typeof r=="function")return Ss(t,e,1,{transform:r});if($d(r))return Ss(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,pn(r)?pn(t)&&pn(e)?gx(t,e,r,n):_x(t,e,Math.max(Math.abs(r),1),n):r!=null&&!$d(r)?yx(r,n):Ss(t,e,1,r)};Zd.exports=Ss});var Qd=H((GI,Jd)=>{"use strict";var bx=Ya(),Xd=bs(),wx=(t,e={})=>{let r=(i,n={})=>{let s=Xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Xd.reduce(i.nodes),h=bx(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Jd.exports=wx});var rm=H((zI,tm)=>{"use strict";var Sx=Ya(),em=ws(),di=bs(),Ir=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?di.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ir(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ir(n,s,r):n+s);return di.flatten(i)},Ex=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Ir(a.pop(),em(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Ir(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=di.reduce(n.nodes);if(di.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Sx(...h,e);f.length===0&&(f=em(n,e)),a.push(Ir(a.pop(),f)),n.nodes=[];return}let l=di.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Ir(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(Ir(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return di.flatten(i(t))};tm.exports=Ex});var nm=H((WI,im)=>{"use strict";im.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
6
|
+
`,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 cm=H((YI,lm)=>{"use strict";var vx=ws(),{MAX_LENGTH:sm,CHAR_BACKSLASH:Ka,CHAR_BACKTICK:Rx,CHAR_COMMA:xx,CHAR_DOT:Ax,CHAR_LEFT_PARENTHESES:Ox,CHAR_RIGHT_PARENTHESES:Tx,CHAR_LEFT_CURLY_BRACE:kx,CHAR_RIGHT_CURLY_BRACE:Cx,CHAR_LEFT_SQUARE_BRACKET:om,CHAR_RIGHT_SQUARE_BRACKET:am,CHAR_DOUBLE_QUOTE:Lx,CHAR_SINGLE_QUOTE:Px,CHAR_NO_BREAK_SPACE:Ix,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Nx}=nm(),Dx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(sm,r.maxLength):sm;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,h=0,f,d={},g=()=>t[u++],y=_=>{if(_.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&_.type==="text"){a.value+=_.value;return}return o.nodes.push(_),_.parent=o,_.prev=a,a=_,_};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=g(),!(f===Nx||f===Ix)){if(f===Ka){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===am){y({type:"text",value:"\\"+f});continue}if(f===om){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===om){l++;continue}if(x===Ka){f+=g();continue}if(x===am&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===Ox){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Tx){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===Lx||f===Px||f===Rx){let _=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=g());){if(x===Ka){f+=x+g();continue}if(x===_){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===kx){h++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(x),s.push(o),y({type:"open",value:f});continue}if(f===Cx){if(o.type!=="brace"){y({type:"text",value:f});continue}let _="close";o=s.pop(),o.close=!0,y({type:_,value:f}),h--,o=s[s.length-1];continue}if(f===xx&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:vx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Ax&&h>0&&o.commas===0){let _=o.nodes;if(h===0||_.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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"){_.pop();let x=_[_.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let _=s[s.length-1],x=_.nodes.indexOf(o);_.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};lm.exports=Dx});var fm=H((KI,hm)=>{"use strict";var um=ws(),Mx=Qd(),Fx=rm(),Bx=cm(),Xe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Xe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Xe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.parse=(t,e={})=>Bx(t,e);Xe.stringify=(t,e={})=>um(typeof t=="string"?Xe.parse(t,e):t,e);Xe.compile=(t,e={})=>(typeof t=="string"&&(t=Xe.parse(t,e)),Mx(t,e));Xe.expand=(t,e={})=>{typeof t=="string"&&(t=Xe.parse(t,e));let r=Fx(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Xe.compile(t,e):Xe.expand(t,e);hm.exports=Xe});var dn=H((VI,gm)=>{"use strict";var jx=require("path"),wt="\\\\/",pm=`[^${wt}]`,Dt="\\.",Hx="\\+",qx="\\?",Es="\\/",Ux="(?=.)",dm="[^/]",Va=`(?:${Es}|$)`,mm=`(?:^|${Es})`,Za=`${Dt}{1,2}${Va}`,$x=`(?!${Dt})`,Gx=`(?!${mm}${Za})`,zx=`(?!${Dt}{0,1}${Va})`,Wx=`(?!${Za})`,Yx=`[^.${Es}]`,Kx=`${dm}*?`,ym={DOT_LITERAL:Dt,PLUS_LITERAL:Hx,QMARK_LITERAL:qx,SLASH_LITERAL:Es,ONE_CHAR:Ux,QMARK:dm,END_ANCHOR:Va,DOTS_SLASH:Za,NO_DOT:$x,NO_DOTS:Gx,NO_DOT_SLASH:zx,NO_DOTS_SLASH:Wx,QMARK_NO_DOT:Yx,STAR:Kx,START_ANCHOR:mm},Vx={...ym,SLASH_LITERAL:`[${wt}]`,QMARK:pm,STAR:`${pm}*?`,DOTS_SLASH:`${Dt}{1,2}(?:[${wt}]|$)`,NO_DOT:`(?!${Dt})`,NO_DOTS:`(?!(?:^|[${wt}])${Dt}{1,2}(?:[${wt}]|$))`,NO_DOT_SLASH:`(?!${Dt}{0,1}(?:[${wt}]|$))`,NO_DOTS_SLASH:`(?!${Dt}{1,2}(?:[${wt}]|$))`,QMARK_NO_DOT:`[^.${wt}]`,START_ANCHOR:`(?:^|[${wt}])`,END_ANCHOR:`(?:[${wt}]|$)`},Zx={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"};gm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Zx,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:jx.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?Vx:ym}}});var mn=H($e=>{"use strict";var Xx=require("path"),Jx=process.platform==="win32",{REGEX_BACKSLASH:Qx,REGEX_REMOVE_BACKSLASH:eA,REGEX_SPECIAL_CHARS:tA,REGEX_SPECIAL_CHARS_GLOBAL:rA}=dn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>tA.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(rA,"\\$1");$e.toPosixSlashes=t=>t.replace(Qx,"/");$e.removeBackslashes=t=>t.replace(eA,e=>e==="\\"?"":e);$e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};$e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Jx===!0||Xx.sep==="\\";$e.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?$e.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};$e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};$e.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var xm=H((XI,Rm)=>{"use strict";var _m=mn(),{CHAR_ASTERISK:Xa,CHAR_AT:iA,CHAR_BACKWARD_SLASH:yn,CHAR_COMMA:nA,CHAR_DOT:Ja,CHAR_EXCLAMATION_MARK:Qa,CHAR_FORWARD_SLASH:vm,CHAR_LEFT_CURLY_BRACE:el,CHAR_LEFT_PARENTHESES:tl,CHAR_LEFT_SQUARE_BRACKET:sA,CHAR_PLUS:oA,CHAR_QUESTION_MARK:bm,CHAR_RIGHT_CURLY_BRACE:aA,CHAR_RIGHT_PARENTHESES:wm,CHAR_RIGHT_SQUARE_BRACKET:lA}=dn(),Sm=t=>t===vm||t===yn,Em=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},cA=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,d=!1,g=!1,y=!1,_=!1,x=!1,k=!1,C=!1,T=!1,O=!1,I=0,w,v,F={value:"",depth:0,isGlob:!1},q=()=>c>=i,P=()=>l.charCodeAt(c+1),$=()=>(w=v,l.charCodeAt(++c));for(;c<i;){v=$();let L;if(v===yn){k=F.backslashes=!0,v=$(),v===el&&(x=!0);continue}if(x===!0||v===el){for(I++;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,$();continue}if(v===el){I++;continue}if(x!==!0&&v===Ja&&(v=$())===Ja){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===nA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===aA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===vm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(w===Ja&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===oA||v===iA||v===Xa||v===bm||v===Qa)===!0&&P()===tl){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===Qa&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,v=$();continue}if(v===wm){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Xa){if(w===Xa&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===bm){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===sA){for(;q()!==!0&&(L=$());){if(L===yn){k=F.backslashes=!0,$();continue}if(L===lA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===Qa&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===tl){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===tl){k=F.backslashes=!0,v=$();continue}if(v===wm){O=!0;break}}continue}break}if(g===!0){if(O=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let K=l,V="",N="";u>0&&(V=l.slice(0,u),l=l.slice(u),h-=u),K&&g===!0&&h>0?(K=l.slice(0,h),N=l.slice(h)):g===!0?(K="",N=l):K=l,K&&K!==""&&K!=="/"&&K!==l&&Sm(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(N&&(N=_m.removeBackslashes(N)),K&&k===!0&&(K=_m.removeBackslashes(K)));let A={prefix:V,input:t,start:u,base:K,glob:N,isBrace:f,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:_,negated:C,negatedExtglob:T};if(r.tokens===!0&&(A.maxDepth=0,Sm(v)||o.push(F),A.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let j=0;j<s.length;j++){let z=L?L+1:u,D=s[j],p=t.slice(z,D);r.tokens&&(j===0&&u!==0?(o[j].isPrefix=!0,o[j].value=V):o[j].value=p,Em(o[j]),A.maxDepth+=o[j].depth),(j!==0||p!=="")&&a.push(p),L=D}if(L&&L+1<t.length){let j=t.slice(L+1);a.push(j),r.tokens&&(o[o.length-1].value=j,Em(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Rm.exports=cA});var Tm=H((JI,Om)=>{"use strict";var vs=dn(),Je=mn(),{MAX_LENGTH:Rs,POSIX_REGEX_SOURCE:uA,REGEX_NON_SPECIAL_CHARS:hA,REGEX_SPECIAL_CHARS_BACKREF:fA,REPLACEMENTS:Am}=vs,pA=(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(n=>Je.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,rl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Je.isWindows(e),c=vs.globChars(l),u=vs.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:_,NO_DOT_SLASH:x,NO_DOTS_SLASH:k,QMARK:C,QMARK_NO_DOT:T,STAR:O,START_ANCHOR:I}=c,w=U=>`(${a}(?:(?!${I}${U.dot?y:h}).)*?)`,v=r.dot?"":_,F=r.dot?C:T,q=r.bash===!0?w(r):O;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={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=Je.removePrefix(t,P),n=t.length;let $=[],K=[],V=[],N=s,A,L=()=>P.index===n-1,j=P.peek=(U=1)=>t[P.index+U],z=P.advance=()=>t[++P.index]||"",D=()=>t.slice(P.index+1),p=(U="",J=0)=>{P.consumed+=U,P.index+=J},m=U=>{P.output+=U.output!=null?U.output:U.value,p(U.value)},b=()=>{let U=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),P.start++,U++;return U%2===0?!1:(P.negated=!0,P.start++,!0)},R=U=>{P[U]++,V.push(U)},E=U=>{P[U]--,V.pop()},M=U=>{if(N.type==="globstar"){let J=P.braces>0&&(U.type==="comma"||U.type==="brace"),G=U.extglob===!0||$.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!J&&!G&&(P.output=P.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=q,P.output+=N.output)}if($.length&&U.type!=="paren"&&($[$.length-1].inner+=U.value),(U.value||U.output)&&m(U),N&&N.type==="text"&&U.type==="text"){N.value+=U.value,N.output=(N.output||"")+U.value;return}U.prev=N,o.push(U),N=U},B=(U,J)=>{let G={...u[J],conditions:1,inner:""};G.prev=N,G.parens=P.parens,G.output=P.output;let re=(r.capture?"(":"")+G.open;R("parens"),M({type:U,value:J,output:P.output?"":g}),M({type:"paren",extglob:!0,value:z(),output:re}),$.push(G)},Z=U=>{let J=U.close+(r.capture?")":""),G;if(U.type==="negate"){let re=q;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(re=w(r)),(re!==q||L()||/^\)+$/.test(D()))&&(J=U.close=`)$))${re}`),U.inner.includes("*")&&(G=D())&&/^\.[^\\/.]+$/.test(G)){let ce=rl(G,{...e,fastpaths:!1}).output;J=U.close=`)${ce})${re})`}U.prev.type==="bos"&&(P.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:A,output:J}),E("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let U=!1,J=t.replace(fA,(G,re,ce,Se,_e,S)=>Se==="\\"?(U=!0,G):Se==="?"?re?re+Se+(_e?C.repeat(_e.length):""):S===0?F+(_e?C.repeat(_e.length):""):C.repeat(ce.length):Se==="."?h.repeat(ce.length):Se==="*"?re?re+Se+(_e?q:""):q:re?G:`\\${G}`);return U===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),J===t&&r.contains===!0?(P.output=t,P):(P.output=Je.wrapOutput(J,P,e),P)}for(;!L();){if(A=z(),A==="\0")continue;if(A==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){A+="\\",M({type:"text",value:A});continue}let re=/^\\+/.exec(D()),ce=0;if(re&&re[0].length>2&&(ce=re[0].length,P.index+=ce,ce%2!==0&&(A+="\\")),r.unescape===!0?A=z():A+=z(),P.brackets===0){M({type:"text",value:A});continue}}if(P.brackets>0&&(A!=="]"||N.value==="["||N.value==="[^")){if(r.posix!==!1&&A===":"){let G=N.value.slice(1);if(G.includes("[")&&(N.posix=!0,G.includes(":"))){let re=N.value.lastIndexOf("["),ce=N.value.slice(0,re),Se=N.value.slice(re+2),_e=uA[Se];if(_e){N.value=ce+_e,P.backtrack=!0,z(),!s.output&&o.indexOf(N)===1&&(s.output=g);continue}}}(A==="["&&j()!==":"||A==="-"&&j()==="]")&&(A=`\\${A}`),A==="]"&&(N.value==="["||N.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&N.value==="["&&(A="^"),N.value+=A,m({value:A});continue}if(P.quotes===1&&A!=='"'){A=Je.escapeRegex(A),N.value+=A,m({value:A});continue}if(A==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:A});continue}if(A==="("){R("parens"),M({type:"paren",value:A});continue}if(A===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=$[$.length-1];if(G&&P.parens===G.parens+1){Z($.pop());continue}M({type:"paren",value:A,output:P.parens?")":"\\)"}),E("parens");continue}if(A==="["){if(r.nobracket===!0||!D().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));A=`\\${A}`}else R("brackets");M({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){M({type:"text",value:A,output:`\\${A}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));M({type:"text",value:A,output:`\\${A}`});continue}E("brackets");let G=N.value.slice(1);if(N.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(A=`/${A}`),N.value+=A,m({value:A}),r.literalBrackets===!1||Je.hasRegexChars(G))continue;let re=Je.escapeRegex(N.value);if(P.output=P.output.slice(0,-N.value.length),r.literalBrackets===!0){P.output+=re,N.value=re;continue}N.value=`(${a}${re}|${N.value})`,P.output+=N.value;continue}if(A==="{"&&r.nobrace!==!0){R("braces");let G={type:"brace",value:A,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};K.push(G),M(G);continue}if(A==="}"){let G=K[K.length-1];if(r.nobrace===!0||!G){M({type:"text",value:A,output:A});continue}let re=")";if(G.dots===!0){let ce=o.slice(),Se=[];for(let _e=ce.length-1;_e>=0&&(o.pop(),ce[_e].type!=="brace");_e--)ce[_e].type!=="dots"&&Se.unshift(ce[_e].value);re=pA(Se,r),P.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=P.output.slice(0,G.outputIndex),Se=P.tokens.slice(G.tokensIndex);G.value=G.output="\\{",A=re="\\}",P.output=ce;for(let _e of Se)P.output+=_e.output||_e.value}M({type:"brace",value:A,output:re}),E("braces"),K.pop();continue}if(A==="|"){$.length>0&&$[$.length-1].conditions++,M({type:"text",value:A});continue}if(A===","){let G=A,re=K[K.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,G="|"),M({type:"comma",value:A,output:G});continue}if(A==="/"){if(N.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",o.pop(),N=s;continue}M({type:"slash",value:A,output:d});continue}if(A==="."){if(P.braces>0&&N.type==="dot"){N.value==="."&&(N.output=h);let G=K[K.length-1];N.type="dots",N.output+=A,N.value+=A,G.dots=!0;continue}if(P.braces+P.parens===0&&N.type!=="bos"&&N.type!=="slash"){M({type:"text",value:A,output:h});continue}M({type:"dot",value:A,output:h});continue}if(A==="?"){if(!(N&&N.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("qmark",A);continue}if(N&&N.type==="paren"){let re=j(),ce=A;if(re==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(D()))&&(ce=`\\${A}`),M({type:"text",value:A,output:ce});continue}if(r.dot!==!0&&(N.type==="slash"||N.type==="bos")){M({type:"qmark",value:A,output:T});continue}M({type:"qmark",value:A,output:C});continue}if(A==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){B("negate",A);continue}if(r.nonegate!==!0&&P.index===0){b();continue}}if(A==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("plus",A);continue}if(N&&N.value==="("||r.regex===!1){M({type:"plus",value:A,output:f});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||P.parens>0){M({type:"plus",value:A});continue}M({type:"plus",value:f});continue}if(A==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M({type:"at",extglob:!0,value:A,output:""});continue}M({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let G=hA.exec(D());G&&(A+=G[0],P.index+=G[0].length),M({type:"text",value:A});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=A,N.output=q,P.backtrack=!0,P.globstar=!0,p(A);continue}let U=D();if(r.noextglob!==!0&&/^\([^?]/.test(U)){B("star",A);continue}if(N.type==="star"){if(r.noglobstar===!0){p(A);continue}let G=N.prev,re=G.prev,ce=G.type==="slash"||G.type==="bos",Se=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!ce||U[0]&&U[0]!=="/")){M({type:"star",value:A,output:""});continue}let _e=P.braces>0&&(G.type==="comma"||G.type==="brace"),S=$.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!_e&&!S){M({type:"star",value:A,output:""});continue}for(;U.slice(0,3)==="/**";){let Y=t[P.index+4];if(Y&&Y!=="/")break;U=U.slice(3),p("/**",3)}if(G.type==="bos"&&L()){N.type="globstar",N.value+=A,N.output=w(r),P.output=N.output,P.globstar=!0,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Se&&L()){P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=w(r)+(r.strictSlashes?")":"|$)"),N.value+=A,P.globstar=!0,P.output+=G.output+N.output,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&U[0]==="/"){let Y=U[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=`${w(r)}${d}|${d}${Y})`,N.value+=A,P.output+=G.output+N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&U[0]==="/"){N.type="globstar",N.value+=A,N.output=`(?:^|${d}|${w(r)}${d})`,P.output=N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-N.output.length),N.type="globstar",N.output=w(r),N.value+=A,P.output+=N.output,P.globstar=!0,p(A);continue}let J={type:"star",value:A,output:q};if(r.bash===!0){J.output=".*?",(N.type==="bos"||N.type==="slash")&&(J.output=v+J.output),M(J);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&r.regex===!0){J.output=A,M(J);continue}(P.index===P.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(P.output+=x,N.output+=x):r.dot===!0?(P.output+=k,N.output+=k):(P.output+=v,N.output+=v),j()!=="*"&&(P.output+=g,N.output+=g)),M(J)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));P.output=Je.escapeLast(P.output,"["),E("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));P.output=Je.escapeLast(P.output,"("),E("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));P.output=Je.escapeLast(P.output,"{"),E("braces")}if(r.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${d}?`}),P.backtrack===!0){P.output="";for(let U of P.tokens)P.output+=U.output!=null?U.output:U.value,U.suffix&&(P.output+=U.suffix)}return P};rl.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Am[t]||t;let s=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=vs.globChars(s),y=r.dot?h:u,_=r.dot?f:u,x=r.capture?"":"?:",k={negated:!1,prefix:""},C=r.bash===!0?".*?":d;r.capture&&(C=`(${C})`);let T=v=>v.noglobstar===!0?C:`(${x}(?:(?!${g}${v.dot?c:o}).)*?)`,O=v=>{switch(v){case"*":return`${y}${l}${C}`;case".*":return`${o}${l}${C}`;case"*.*":return`${y}${C}${o}${l}${C}`;case"*/*":return`${y}${C}${a}${l}${_}${C}`;case"**":return y+T(r);case"**/*":return`(?:${y}${T(r)}${a})?${_}${l}${C}`;case"**/*.*":return`(?:${y}${T(r)}${a})?${_}${C}${o}${l}${C}`;case"**/.*":return`(?:${y}${T(r)}${a})?${o}${l}${C}`;default:{let F=/^(.*?)\.(\w+)$/.exec(v);if(!F)return;let q=O(F[1]);return q?q+o+F[2]:void 0}}},I=Je.removePrefix(t,k),w=O(I);return w&&r.strictSlashes!==!0&&(w+=`${a}?`),w};Om.exports=rl});var Cm=H((QI,km)=>{"use strict";var dA=require("path"),mA=xm(),il=Tm(),nl=mn(),yA=dn(),gA=t=>t&&typeof t=="object"&&!Array.isArray(t),be=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>be(f,e,r));return f=>{for(let d of u){let g=d(f);if(g)return g}return!1}}let i=gA(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=nl.isWindows(e),o=i?be.compileRe(t,e):be.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=be(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:d,output:g}=be.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:g,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};be.test=(t,e,r,{glob:i,posix:n}={})=>{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||(n?nl.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=be.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};be.matchBase=(t,e,r,i=nl.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(dA.basename(t));be.isMatch=(t,e,r)=>be(e,r)(t);be.parse=(t,e)=>Array.isArray(t)?t.map(r=>be.parse(r,e)):il(t,{...e,fastpaths:!1});be.scan=(t,e)=>mA(t,e);be.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=be.toRegex(a,e);return i===!0&&(l.state=t),l};be.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=il.fastpaths(t,e)),n.output||(n=il(t,e)),be.compileRe(n,e,r,i)};be.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/$^/}};be.constants=yA;km.exports=be});var Pm=H((eN,Lm)=>{"use strict";Lm.exports=Cm()});var Fm=H((tN,Mm)=>{"use strict";var Nm=require("util"),Dm=fm(),St=Pm(),sl=mn(),Im=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=St(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let g=h(d,!0);(f?!g.isMatch:g.isMatch)&&(f?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));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(u=>u.replace(/\\/g,"")):e}return c};ye.match=ye;ye.matcher=(t,e)=>St(t,e);ye.isMatch=(t,e,r)=>St(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Nm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Im(t)||Im(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sl.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Nm.inspect(t)}"`);return[].concat(e).every(i=>St(i,r)(t))};ye.capture=(t,e,r)=>{let i=sl.isWindows(r),s=St.makeRe(String(t),{...r,capture:!0}).exec(i?sl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>St.makeRe(...t);ye.scan=(...t)=>St.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Dm(String(i),e))r.push(St.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Dm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Mm.exports=ye});var zm=H(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.matchAny=ie.convertPatternsToRe=ie.makeRe=ie.getPatternParts=ie.expandBraceExpansion=ie.expandPatternsWithBraceExpansion=ie.isAffectDepthOfReadingPattern=ie.endsWithSlashGlobStar=ie.hasGlobStar=ie.getBaseDirectory=ie.isPatternRelatedToParentDirectory=ie.getPatternsOutsideCurrentDirectory=ie.getPatternsInsideCurrentDirectory=ie.getPositivePatterns=ie.getNegativePatterns=ie.isPositivePattern=ie.isNegativePattern=ie.convertToNegativePattern=ie.convertToPositivePattern=ie.isDynamicPattern=ie.isStaticPattern=void 0;var _A=require("path"),bA=kd(),ol=Fm(),Bm="**",wA="\\",SA=/[*?]|^!/,EA=/\[[^[]*]/,vA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,RA=/[!*+?@]\([^(]*\)/,xA=/,|\.\./;function jm(t,e={}){return!Hm(t,e)}ie.isStaticPattern=jm;function Hm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(wA)||SA.test(t)||EA.test(t)||vA.test(t)||e.extglob!==!1&&RA.test(t)||e.braceExpansion!==!1&&AA(t))}ie.isDynamicPattern=Hm;function AA(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return xA.test(i)}function OA(t){return xs(t)?t.slice(1):t}ie.convertToPositivePattern=OA;function TA(t){return"!"+t}ie.convertToNegativePattern=TA;function xs(t){return t.startsWith("!")&&t[1]!=="("}ie.isNegativePattern=xs;function qm(t){return!xs(t)}ie.isPositivePattern=qm;function kA(t){return t.filter(xs)}ie.getNegativePatterns=kA;function CA(t){return t.filter(qm)}ie.getPositivePatterns=CA;function LA(t){return t.filter(e=>!al(e))}ie.getPatternsInsideCurrentDirectory=LA;function PA(t){return t.filter(al)}ie.getPatternsOutsideCurrentDirectory=PA;function al(t){return t.startsWith("..")||t.startsWith("./..")}ie.isPatternRelatedToParentDirectory=al;function IA(t){return bA(t,{flipBackslashes:!1})}ie.getBaseDirectory=IA;function NA(t){return t.includes(Bm)}ie.hasGlobStar=NA;function Um(t){return t.endsWith("/"+Bm)}ie.endsWithSlashGlobStar=Um;function DA(t){let e=_A.basename(t);return Um(t)||jm(e)}ie.isAffectDepthOfReadingPattern=DA;function MA(t){return t.reduce((e,r)=>e.concat($m(r)),[])}ie.expandPatternsWithBraceExpansion=MA;function $m(t){return ol.braces(t,{expand:!0,nodupes:!0})}ie.expandBraceExpansion=$m;function FA(t,e){let{parts:r}=ol.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}ie.getPatternParts=FA;function Gm(t,e){return ol.makeRe(t,e)}ie.makeRe=Gm;function BA(t,e){return t.map(r=>Gm(r,e))}ie.convertPatternsToRe=BA;function jA(t,e){return e.some(r=>r.test(t))}ie.matchAny=jA});var Vm=H((iN,Km)=>{"use strict";var HA=require("stream"),Wm=HA.PassThrough,qA=Array.prototype.slice;Km.exports=UA;function UA(){let t=[],e=qA.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Wm(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Ym(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function d(g){function y(){g.removeListener("merge2UnpipeEnd",y),g.removeListener("end",y),s&&g.removeListener("error",_),f()}function _(x){o.emit("error",x)}if(g._readableState.endEmitted)return f();g.on("merge2UnpipeEnd",y),g.on("end",y),s&&g.on("error",_),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<u.length;g++)d(u[g]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ym(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Ym(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Wm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Xm=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.merge=void 0;var $A=Vm();function GA(t){let e=$A(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Zm(t)),e.once("end",()=>Zm(t)),e}As.merge=GA;function Zm(t){t.forEach(e=>e.emit("close"))}});var Jm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function zA(t){return typeof t=="string"}yi.isString=zA;function WA(t){return t===""}yi.isEmpty=WA});var Mt=H(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.string=Le.stream=Le.pattern=Le.path=Le.fs=Le.errno=Le.array=void 0;var YA=bd();Le.array=YA;var KA=wd();Le.errno=KA;var VA=Sd();Le.fs=VA;var ZA=Ed();Le.path=ZA;var XA=zm();Le.pattern=XA;var JA=Xm();Le.stream=JA;var QA=Jm();Le.string=QA});var ty=H(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.convertPatternGroupToTask=Pe.convertPatternGroupsToTasks=Pe.groupPatternsByBaseDirectory=Pe.getNegativePatternsAsPositive=Pe.getPositivePatterns=Pe.convertPatternsToTasks=Pe.generate=void 0;var Ft=Mt();function eO(t,e){let r=Qm(t),i=ey(t,e.ignore),n=r.filter(l=>Ft.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ft.pattern.isDynamicPattern(l,e)),o=ll(n,i,!1),a=ll(s,i,!0);return o.concat(a)}Pe.generate=eO;function ll(t,e,r){let i=[],n=Ft.pattern.getPatternsOutsideCurrentDirectory(t),s=Ft.pattern.getPatternsInsideCurrentDirectory(t),o=cl(n),a=cl(s);return i.push(...ul(o,e,r)),"."in a?i.push(hl(".",s,e,r)):i.push(...ul(a,e,r)),i}Pe.convertPatternsToTasks=ll;function Qm(t){return Ft.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=Qm;function ey(t,e){return Ft.pattern.getNegativePatterns(t).concat(e).map(Ft.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=ey;function cl(t){let e={};return t.reduce((r,i)=>{let n=Ft.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Pe.groupPatternsByBaseDirectory=cl;function ul(t,e,r){return Object.keys(t).map(i=>hl(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=ul;function hl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ft.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=hl});var iy=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var tO=/(?!^)\/{2,}/g;function rO(t){return t.map(e=>ry(e))}gi.transform=rO;function ry(t){return t.replace(tO,"/")}gi.removeDuplicateSlashes=ry});var sy=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.read=void 0;function iO(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){ny(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){ny(r,s);return}fl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fl(r,o)})})}Os.read=iO;function ny(t,e){t(e)}function fl(t,e){t(null,e)}});var oy=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.read=void 0;function nO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ts.read=nO});var ay=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.createFileSystemAdapter=nr.FILE_SYSTEM_ADAPTER=void 0;var ks=require("fs");nr.FILE_SYSTEM_ADAPTER={lstat:ks.lstat,stat:ks.stat,lstatSync:ks.lstatSync,statSync:ks.statSync};function sO(t){return t===void 0?nr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nr.FILE_SYSTEM_ADAPTER),t)}nr.createFileSystemAdapter=sO});var ly=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var oO=ay(),pl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=oO.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}};dl.default=pl});var Nr=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var cy=sy(),aO=oy(),ml=ly();sr.Settings=ml.default;function lO(t,e,r){if(typeof e=="function"){cy.read(t,yl(),e);return}cy.read(t,yl(e),r)}sr.stat=lO;function cO(t,e){let r=yl(e);return aO.read(t,r)}sr.statSync=cO;function yl(t={}){return t instanceof ml.default?t:new ml.default(t)}});var fy=H((dN,hy)=>{var uy;hy.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(uy||(uy=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var dy=H((mN,py)=>{py.exports=hO;var uO=fy();function hO(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?uO(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var gl=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cs=process.versions.node.split(".");if(Cs[0]===void 0||Cs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var my=Number.parseInt(Cs[0],10),fO=Number.parseInt(Cs[1],10),yy=10,pO=10,dO=my>yy,mO=my===yy&&fO>=pO;Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=dO||mO});var gy=H(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createDirentFromStats=void 0;var _l=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 yO(t,e){return new _l(t,e)}Ps.createDirentFromStats=yO});var bl=H(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.fs=void 0;var gO=gy();Is.fs=gO});var wl=H(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.joinPathSegments=void 0;function _O(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ns.joinPathSegments=_O});var vy=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var bO=Nr(),_y=dy(),wO=gl(),by=bl(),wy=wl();function SO(t,e,r){if(!e.stats&&wO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Sy(t,e,r);return}Ey(t,e,r)}or.read=SO;function Sy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:wy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Sl(r,s);return}let o=s.map(a=>EO(a,e));_y(o,(a,l)=>{if(a!==null){Ds(r,a);return}Sl(r,l)})})}or.readdirWithFileTypes=Sy;function EO(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=by.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Ey(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(o=>{let a=wy.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{bO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:by.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});_y(s,(o,a)=>{if(o!==null){Ds(r,o);return}Sl(r,a)})})}or.readdir=Ey;function Ds(t,e){t(e)}function Sl(t,e){t(null,e)}});var Ty=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var vO=Nr(),RO=gl(),Ry=bl(),xy=wl();function xO(t,e){return!e.stats&&RO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ay(t,e):Oy(t,e)}ar.read=xO;function Ay(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:xy.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Ry.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ar.readdirWithFileTypes=Ay;function Oy(t,e){return e.fs.readdirSync(t).map(i=>{let n=xy.joinPathSegments(t,i,e.pathSegmentSeparator),s=vO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Ry.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ar.readdir=Oy});var ky=H(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:_i.lstat,stat:_i.stat,lstatSync:_i.lstatSync,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};function AO(t){return t===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),t)}lr.createFileSystemAdapter=AO});var Cy=H(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var OO=require("path"),TO=Nr(),kO=ky(),El=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=kO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,OO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new TO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};vl.default=El});var Ms=H(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Settings=cr.scandirSync=cr.scandir=void 0;var Ly=vy(),CO=Ty(),Rl=Cy();cr.Settings=Rl.default;function LO(t,e,r){if(typeof e=="function"){Ly.read(t,xl(),e);return}Ly.read(t,xl(e),r)}cr.scandir=LO;function PO(t,e){let r=xl(e);return CO.read(t,r)}cr.scandirSync=PO;function xl(t={}){return t instanceof Rl.default?t:new Rl.default(t)}});var Iy=H((xN,Py)=>{"use strict";function IO(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}Py.exports=IO});var Dy=H((AN,Al)=>{"use strict";var NO=Iy();function Ny(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=NO(DO),n=null,s=null,o=0,a=null,l={push:y,drain:st,saturated:st,pause:u,paused:!1,concurrency:r,running:c,resume:d,idle:g,length:h,getQueue:f,unshift:_,empty:st,kill:k,killAndDrain:C,error:T};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var O=n,I=0;O;)O=O.next,I++;return I}function f(){for(var O=n,I=[];O;)I.push(O.value),O=O.next;return I}function d(){if(l.paused){l.paused=!1;for(var O=0;O<l.concurrency;O++)o++,x()}}function g(){return o===0&&l.length()===0}function y(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,w.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=w,s=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function _(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,o===l.concurrency||l.paused?n?(w.next=n,n=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function x(O){O&&i.release(O);var I=n;I?l.paused?o--:(s===n&&(s=null),n=I.next,I.next=null,e.call(t,I.value,I.worked),s===null&&l.empty()):--o===0&&l.drain()}function k(){n=null,s=null,l.drain=st}function C(){n=null,s=null,l.drain(),l.drain=st}function T(O){a=O}}function st(){}function DO(){this.value=null,this.callback=st,this.next=null,this.release=st,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=st,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function MO(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,h){e.call(this,u).then(function(f){h(null,f)},h)}var n=Ny(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,d){s(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function l(u){var h=new Promise(function(f,d){o(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Al.exports=Ny;Al.exports.promise=MO});var Fs=H(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.joinPathSegments=Et.replacePathSegmentSeparator=Et.isAppliedFilter=Et.isFatalError=void 0;function FO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Et.isFatalError=FO;function BO(t,e){return t===null||t(e)}Et.isAppliedFilter=BO;function jO(t,e){return t.split(/[/\\]/).join(e)}Et.replacePathSegmentSeparator=jO;function HO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Et.joinPathSegments=HO});var kl=H(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var qO=Fs(),Ol=class{constructor(e,r){this._root=e,this._settings=r,this._root=qO.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Tl.default=Ol});var Pl=H(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var UO=require("events"),$O=Ms(),GO=Dy(),Bs=Fs(),zO=kl(),Cl=class extends zO.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=$O.scandir,this._emitter=new UO.EventEmitter,this._queue=GO(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Bs.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Bs.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bs.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bs.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ll.default=Cl});var My=H(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var WO=Pl(),Il=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new WO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{YO(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{KO(e,this._storage)}),this._reader.read()}};Nl.default=Il;function YO(t,e){t(e)}function KO(t,e){t(null,e)}});var Fy=H(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var VO=require("stream"),ZO=Pl(),Dl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ZO.default(this._root,this._settings),this._stream=new VO.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}};Ml.default=Dl});var By=H(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var XO=Ms(),js=Fs(),JO=kl(),Fl=class extends JO.default{constructor(){super(...arguments),this._scandir=XO.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(js.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=js.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),js.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&js.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Bl.default=Fl});var jy=H(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var QO=By(),jl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QO.default(this._root,this._settings)}read(){return this._reader.read()}};Hl.default=jl});var Hy=H(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var eT=require("path"),tT=Ms(),ql=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,eT.sep),this.fsScandirSettings=new tT.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}};Ul.default=ql});var qs=H(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Settings=vt.walkStream=vt.walkSync=vt.walk=void 0;var qy=My(),rT=Fy(),iT=jy(),$l=Hy();vt.Settings=$l.default;function nT(t,e,r){if(typeof e=="function"){new qy.default(t,Hs()).read(e);return}new qy.default(t,Hs(e)).read(r)}vt.walk=nT;function sT(t,e){let r=Hs(e);return new iT.default(t,r).read()}vt.walkSync=sT;function oT(t,e){let r=Hs(e);return new rT.default(t,r).read()}vt.walkStream=oT;function Hs(t={}){return t instanceof $l.default?t:new $l.default(t)}});var Us=H(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var aT=require("path"),lT=Nr(),Uy=Mt(),Gl=class{constructor(e){this._settings=e,this._fsStatSettings=new lT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return aT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Uy.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Uy.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};zl.default=Gl});var Kl=H(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var cT=require("stream"),uT=Nr(),hT=qs(),fT=Us(),Wl=class extends fT.default{constructor(){super(...arguments),this._walkStream=hT.walkStream,this._stat=uT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new cT.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Yl.default=Wl});var $y=H(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var pT=qs(),dT=Us(),mT=Kl(),Vl=class extends dT.default{constructor(){super(...arguments),this._walkAsync=pT.walk,this._readerStream=new mT.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Zl.default=Vl});var Gy=H(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var bi=Mt(),Xl=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=bi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return bi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>bi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:bi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return bi.array.splitWhen(e,r=>r.dynamic&&bi.pattern.hasGlobStar(r.pattern))}};Jl.default=Xl});var zy=H(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var yT=Gy(),Ql=class extends yT.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};ec.default=Ql});var Wy=H(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var $s=Mt(),gT=zy(),tc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new gT.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($s.pattern.isAffectDepthOfReadingPattern);return $s.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$s.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!$s.pattern.matchAny(e,r)}};rc.default=tc});var Yy=H(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Dr=Mt(),ic=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Dr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Dr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,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 i=Dr.path.makeAbsolute(this._settings.cwd,e);return Dr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Dr.path.removeLeadingDotSegment(e),s=Dr.pattern.matchAny(n,r);return!s&&i?Dr.pattern.matchAny(n+"/",r):s}};nc.default=ic});var Ky=H(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var _T=Mt(),sc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return _T.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};oc.default=sc});var Zy=H(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Vy=Mt(),ac=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Vy.path.makeAbsolute(this._settings.cwd,r),r=Vy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};lc.default=ac});var Gs=H(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var bT=require("path"),wT=Wy(),ST=Yy(),ET=Ky(),vT=Zy(),cc=class{constructor(e){this._settings=e,this.errorFilter=new ET.default(this._settings),this.entryFilter=new ST.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new wT.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new vT.default(this._settings)}_getRootDirectory(e){return bT.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}}};uc.default=cc});var Xy=H(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var RT=$y(),xT=Gs(),hc=class extends xT.default{constructor(){super(...arguments),this._reader=new RT.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};fc.default=hc});var Jy=H(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var AT=require("stream"),OT=Kl(),TT=Gs(),pc=class extends TT.default{constructor(){super(...arguments),this._reader=new OT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new AT.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};dc.default=pc});var Qy=H(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var kT=Nr(),CT=qs(),LT=Us(),mc=class extends LT.default{constructor(){super(...arguments),this._walkSync=CT.walkSync,this._statSync=kT.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};yc.default=mc});var eg=H(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var PT=Qy(),IT=Gs(),gc=class extends IT.default{constructor(){super(...arguments),this._reader=new PT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};_c.default=gc});var tg=H(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wi=require("fs"),NT=require("os"),DT=Math.max(NT.cpus().length,1);Si.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wi.lstat,lstatSync:wi.lstatSync,stat:wi.stat,statSync:wi.statSync,readdir:wi.readdir,readdirSync:wi.readdirSync};var bc=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,DT),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({},Si.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Si.default=bc});var zs=H((XN,ng)=>{"use strict";var rg=ty(),ig=iy(),MT=Xy(),FT=Jy(),BT=eg(),wc=tg(),Mr=Mt();async function Sc(t,e){Ei(t);let r=Ec(t,MT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=Ec(o,BT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=Ec(o,FT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=ig.transform([].concat(o)),c=new wc.default(a);return rg.generate(l,c)}t.generateTasks=i;function n(o,a){Ei(o);let l=new wc.default(a);return Mr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Ei(o),Mr.path.escape(o)}t.escapePath=s})(Sc||(Sc={}));function Ec(t,e,r){let i=ig.transform([].concat(t)),n=new wc.default(r),s=rg.generate(i,n),o=new e(n);return s.map(o.read,o)}function Ei(t){if(![].concat(t).every(i=>Mr.string.isString(i)&&!Mr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ng.exports=Sc});var jg=H((wM,Ht)=>{function Mc(t){return Ht.exports=Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports,Mc(t)}Ht.exports=Mc,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports});var Ug=H((SM,qt)=>{var Hg=jg().default;function qg(){"use strict";qt.exports=qg=function(){return e},qt.exports.__esModule=!0,qt.exports.default=qt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(A,L,j){A[L]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(A,L,j){return Object.defineProperty(A,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),A[L]}try{c({},"")}catch{c=function(j,z,D){return j[z]=D}}function u(A,L,j,z){var D=L&&L.prototype instanceof x?L:x,p=Object.create(D.prototype),m=new V(z||[]);return n(p,"_invoke",{value:q(A,j,m)}),p}function h(A,L,j){try{return{type:"normal",arg:A.call(L,j)}}catch(z){return{type:"throw",arg:z}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",g="executing",y="completed",_={};function x(){}function k(){}function C(){}var T={};c(T,o,function(){return this});var O=Object.getPrototypeOf,I=O&&O(O(N([])));I&&I!==r&&i.call(I,o)&&(T=I);var w=C.prototype=x.prototype=Object.create(T);function v(A){["next","throw","return"].forEach(function(L){c(A,L,function(j){return this._invoke(L,j)})})}function F(A,L){function j(D,p,m,b){var R=h(A[D],A,p);if(R.type!=="throw"){var E=R.arg,M=E.value;return M&&Hg(M)=="object"&&i.call(M,"__await")?L.resolve(M.__await).then(function(B){j("next",B,m,b)},function(B){j("throw",B,m,b)}):L.resolve(M).then(function(B){E.value=B,m(E)},function(B){return j("throw",B,m,b)})}b(R.arg)}var z;n(this,"_invoke",{value:function(p,m){function b(){return new L(function(R,E){j(p,m,R,E)})}return z=z?z.then(b,b):b()}})}function q(A,L,j){var z=f;return function(D,p){if(z===g)throw new Error("Generator is already running");if(z===y){if(D==="throw")throw p;return{value:t,done:!0}}for(j.method=D,j.arg=p;;){var m=j.delegate;if(m){var b=P(m,j);if(b){if(b===_)continue;return b}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===f)throw z=y,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=g;var R=h(A,L,j);if(R.type==="normal"){if(z=j.done?y:d,R.arg===_)continue;return{value:R.arg,done:j.done}}R.type==="throw"&&(z=y,j.method="throw",j.arg=R.arg)}}}function P(A,L){var j=L.method,z=A.iterator[j];if(z===t)return L.delegate=null,j==="throw"&&A.iterator.return&&(L.method="return",L.arg=t,P(A,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),_;var D=h(z,A.iterator,L.arg);if(D.type==="throw")return L.method="throw",L.arg=D.arg,L.delegate=null,_;var p=D.arg;return p?p.done?(L[A.resultName]=p.value,L.next=A.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,_):p:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,_)}function $(A){var L={tryLoc:A[0]};1 in A&&(L.catchLoc=A[1]),2 in A&&(L.finallyLoc=A[2],L.afterLoc=A[3]),this.tryEntries.push(L)}function K(A){var L=A.completion||{};L.type="normal",delete L.arg,A.completion=L}function V(A){this.tryEntries=[{tryLoc:"root"}],A.forEach($,this),this.reset(!0)}function N(A){if(A||A===""){var L=A[o];if(L)return L.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var j=-1,z=function D(){for(;++j<A.length;)if(i.call(A,j))return D.value=A[j],D.done=!1,D;return D.value=t,D.done=!0,D};return z.next=z}}throw new TypeError(Hg(A)+" is not iterable")}return k.prototype=C,n(w,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:k,configurable:!0}),k.displayName=c(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(A){var L=typeof A=="function"&&A.constructor;return!!L&&(L===k||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,C):(A.__proto__=C,c(A,l,"GeneratorFunction")),A.prototype=Object.create(w),A},e.awrap=function(A){return{__await:A}},v(F.prototype),c(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(A,L,j,z,D){D===void 0&&(D=Promise);var p=new F(u(A,L,j,z),D);return e.isGeneratorFunction(L)?p:p.next().then(function(m){return m.done?m.value:p.next()})},v(w),c(w,l,"Generator"),c(w,o,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),e.keys=function(A){var L=Object(A),j=[];for(var z in L)j.push(z);return j.reverse(),function D(){for(;j.length;){var p=j.pop();if(p in L)return D.value=p,D.done=!1,D}return D.done=!0,D}},e.values=N,V.prototype={constructor:V,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(K),!L)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var j=this;function z(E,M){return m.type="throw",m.arg=L,j.next=E,M&&(j.method="next",j.arg=t),!!M}for(var D=this.tryEntries.length-1;D>=0;--D){var p=this.tryEntries[D],m=p.completion;if(p.tryLoc==="root")return z("end");if(p.tryLoc<=this.prev){var b=i.call(p,"catchLoc"),R=i.call(p,"finallyLoc");if(b&&R){if(this.prev<p.catchLoc)return z(p.catchLoc,!0);if(this.prev<p.finallyLoc)return z(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return z(p.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return z(p.finallyLoc)}}}},abrupt:function(L,j){for(var z=this.tryEntries.length-1;z>=0;--z){var D=this.tryEntries[z];if(D.tryLoc<=this.prev&&i.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var p=D;break}}p&&(L==="break"||L==="continue")&&p.tryLoc<=j&&j<=p.finallyLoc&&(p=null);var m=p?p.completion:{};return m.type=L,m.arg=j,p?(this.method="next",this.next=p.finallyLoc,_):this.complete(m)},complete:function(L,j){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&j&&(this.next=j),_},finish:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===L)return this.complete(z.completion,z.afterLoc),K(z),_}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===L){var D=z.completion;if(D.type==="throw"){var p=D.arg;K(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(L,j,z){return this.delegate={iterator:N(L),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),_}},e}qt.exports=qg,qt.exports.__esModule=!0,qt.exports.default=qt.exports});var Gg=H((EM,$g)=>{var Js=Ug()();$g.exports=Js;try{regeneratorRuntime=Js}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Js:Function("r","regeneratorRuntime = r")(Js)}});var ki=H((hF,i_)=>{"use strict";var r_=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"]]);i_.exports=t=>t?Object.keys(t).map(e=>[r_.has(e)?r_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var no=H((fF,f_)=>{"use strict";var n_=typeof process=="object"&&process?process:{stdout:null,stderr:null},V1=require("events"),s_=require("stream"),o_=require("string_decoder").StringDecoder,$t=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Qs=Symbol("emittingEnd"),kn=Symbol("emittedError"),eo=Symbol("closed"),a_=Symbol("read"),to=Symbol("flush"),l_=Symbol("flushChunk"),Ye=Symbol("encoding"),zt=Symbol("decoder"),ro=Symbol("flowing"),Cn=Symbol("paused"),Ci=Symbol("resume"),we=Symbol("buffer"),Ot=Symbol("pipes"),Oe=Symbol("bufferLength"),Gc=Symbol("bufferPush"),zc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),Wc=Symbol("emitData"),c_=Symbol("emitEnd"),Yc=Symbol("emitEnd2"),Wt=Symbol("async"),Ln=t=>Promise.resolve().then(t),u_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Z1=u_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),X1=u_&&Symbol.iterator||Symbol("iterator not implemented"),J1=t=>t==="end"||t==="finish"||t==="prefinish",Q1=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),io=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ci](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Kc=class extends io{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};f_.exports=class h_ extends s_{constructor(e){super(),this[ro]=!1,this[Cn]=!1,this[Ot]=[],this[we]=[],this[Ne]=e&&e.objectMode||!1,this[Ne]?this[Ye]=null:this[Ye]=e&&e.encoding||null,this[Ye]==="buffer"&&(this[Ye]=null),this[Wt]=e&&!!e.async||!1,this[zt]=this[Ye]?new o_(this[Ye]):null,this[$t]=!1,this[dr]=!1,this[Qs]=!1,this[eo]=!1,this[kn]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[De]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[we]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ot]})}get bufferLength(){return this[Oe]}get encoding(){return this[Ye]}set encoding(e){if(this[Ne])throw new Error("cannot set encoding in objectMode");if(this[Ye]&&e!==this[Ye]&&(this[zt]&&this[zt].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Ye]!==e&&(this[zt]=e?new o_(e):null,this[we].length&&(this[we]=this[we].map(r=>this[zt].write(r)))),this[Ye]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ne]}set objectMode(e){this[Ne]=this[Ne]||!!e}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}write(e,r,i){if(this[$t])throw new Error("write after end");if(this[De])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Wt]?Ln:s=>s();return!this[Ne]&&!Buffer.isBuffer(e)&&(eC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Q1(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ne]?(this.flowing&&this[Oe]!==0&&this[to](!0),this.flowing?this.emit("data",e):this[Gc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ye]&&!this[zt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ye]&&(e=this[zt].write(e)),this.flowing&&this[Oe]!==0&&this[to](!0),this.flowing?this.emit("data",e):this[Gc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[De])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[Gt](),null;this[Ne]&&(e=null),this[we].length>1&&!this[Ne]&&(this.encoding?this[we]=[this[we].join("")]:this[we]=[Buffer.concat(this[we],this[Oe])]);let r=this[a_](e||null,this[we][0]);return this[Gt](),r}[a_](e,r){return e===r.length||e===null?this[zc]():(this[we][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[we].length&&!this[$t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[$t]=!0,this.writable=!1,(this.flowing||!this[Cn])&&this[Gt](),this}[Ci](){this[De]||(this[Cn]=!1,this[ro]=!0,this.emit("resume"),this[we].length?this[to]():this[$t]?this[Gt]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[ro]=!1,this[Cn]=!0}get destroyed(){return this[De]}get flowing(){return this[ro]}get paused(){return this[Cn]}[Gc](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[we].push(e)}[zc](){return this[we].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[we][0].length),this[we].shift()}[to](e){do;while(this[l_](this[zc]()));!e&&!this[we].length&&!this[$t]&&this.emit("drain")}[l_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[De])return;let i=this[dr];return r=r||{},e===n_.stdout||e===n_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ot].push(r.proxyErrors?new Kc(this,e,r):new io(this,e,r)),this[Wt]?Ln(()=>this[Ci]()):this[Ci]()),e}unpipe(e){let r=this[Ot].find(i=>i.dest===e);r&&(this[Ot].splice(this[Ot].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ot].length&&!this.flowing?this[Ci]():e==="readable"&&this[Oe]!==0?super.emit("readable"):J1(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[kn]&&(this[Wt]?Ln(()=>r.call(this,this[kn])):r.call(this,this[kn])),i}get emittedEnd(){return this[dr]}[Gt](){!this[Qs]&&!this[dr]&&!this[De]&&this[we].length===0&&this[$t]&&(this[Qs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[eo]&&this.emit("close"),this[Qs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Wt]?Ln(()=>this[Wc](r)):this[Wc](r):!1;if(e==="end")return this[c_]();if(e==="close"){if(this[eo]=!0,!this[dr]&&!this[De])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[kn]=r;let s=super.emit("error",r);return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Gt](),n}[Wc](e){for(let i of this[Ot])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Gt](),r}[c_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Wt]?Ln(()=>this[Yc]()):this[Yc]())}[Yc](){if(this[zt]){let r=this[zt].end();if(r){for(let i of this[Ot])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ot])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ne]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ne]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this[Ye]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(De,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Z1](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[$t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[$t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(De,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[X1](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[De]?(e?this.emit("error",e):this.emit(De),this):(this[De]=!0,this[we].length=0,this[Oe]=0,typeof this.close=="function"&&!this[eo]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof h_||e instanceof s_||e instanceof V1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var d_=H((pF,p_)=>{var tC=require("zlib").constants||{ZLIB_VERNUM:4736};p_.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},tC))});var eu=H((dF,v_)=>{"use strict";var m_=typeof process=="object"&&process?process:{stdout:null,stderr:null},rC=require("events"),y_=require("stream"),g_=require("string_decoder").StringDecoder,Yt=Symbol("EOF"),Kt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),so=Symbol("emittingEnd"),Pn=Symbol("emittedError"),oo=Symbol("closed"),__=Symbol("read"),ao=Symbol("flush"),b_=Symbol("flushChunk"),Ke=Symbol("encoding"),Vt=Symbol("decoder"),lo=Symbol("flowing"),In=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Vc=Symbol("bufferPush"),Zc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Xc=Symbol("emitData"),w_=Symbol("emitEnd"),Jc=Symbol("emitEnd2"),Zt=Symbol("async"),Nn=t=>Promise.resolve().then(t),S_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iC=S_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),nC=S_&&Symbol.iterator||Symbol("iterator not implemented"),sC=t=>t==="end"||t==="finish"||t==="prefinish",oC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,aC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),co=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Li](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qc=class extends co{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};v_.exports=class E_ extends y_{constructor(e){super(),this[lo]=!1,this[In]=!1,this.pipes=[],this.buffer=[],this[Me]=e&&e.objectMode||!1,this[Me]?this[Ke]=null:this[Ke]=e&&e.encoding||null,this[Ke]==="buffer"&&(this[Ke]=null),this[Zt]=e&&!!e.async||!1,this[Vt]=this[Ke]?new g_(this[Ke]):null,this[Yt]=!1,this[mr]=!1,this[so]=!1,this[oo]=!1,this[Pn]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[Fe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ke]}set encoding(e){if(this[Me])throw new Error("cannot set encoding in objectMode");if(this[Ke]&&e!==this[Ke]&&(this[Vt]&&this[Vt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ke]!==e&&(this[Vt]=e?new g_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[Ke]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Me]}set objectMode(e){this[Me]=this[Me]||!!e}get async(){return this[Zt]}set async(e){this[Zt]=this[Zt]||!!e}write(e,r,i){if(this[Yt])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Zt]?Nn:s=>s();return!this[Me]&&!Buffer.isBuffer(e)&&(aC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):oC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Me]?(this.flowing&&this[Te]!==0&&this[ao](!0),this.flowing?this.emit("data",e):this[Vc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[Vt].write(e)),this.flowing&&this[Te]!==0&&this[ao](!0),this.flowing?this.emit("data",e):this[Vc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Fe])return null;if(this[Te]===0||e===0||e>this[Te])return this[Kt](),null;this[Me]&&(e=null),this.buffer.length>1&&!this[Me]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[__](e||null,this.buffer[0]);return this[Kt](),r}[__](e,r){return e===r.length||e===null?this[Zc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Yt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Yt]=!0,this.writable=!1,(this.flowing||!this[In])&&this[Kt](),this}[Li](){this[Fe]||(this[In]=!1,this[lo]=!0,this.emit("resume"),this.buffer.length?this[ao]():this[Yt]?this[Kt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[lo]=!1,this[In]=!0}get destroyed(){return this[Fe]}get flowing(){return this[lo]}get paused(){return this[In]}[Vc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Zc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[ao](e){do;while(this[b_](this[Zc]()));!e&&!this.buffer.length&&!this[Yt]&&this.emit("drain")}[b_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Fe])return;let i=this[mr];return r=r||{},e===m_.stdout||e===m_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Qc(this,e,r):new co(this,e,r)),this[Zt]?Nn(()=>this[Li]()):this[Li]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Li]():e==="readable"&&this[Te]!==0?super.emit("readable"):sC(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Pn]&&(this[Zt]?Nn(()=>r.call(this,this[Pn])):r.call(this,this[Pn])),i}get emittedEnd(){return this[mr]}[Kt](){!this[so]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[Yt]&&(this[so]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[oo]&&this.emit("close"),this[so]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Zt]?Nn(()=>this[Xc](r)):this[Xc](r):!1;if(e==="end")return this[w_]();if(e==="close"){if(this[oo]=!0,!this[mr]&&!this[Fe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Pn]=r;let s=super.emit("error",r);return this[Kt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Kt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Kt](),n}[Xc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Kt](),r}[w_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Zt]?Nn(()=>this[Jc]()):this[Jc]())}[Jc](){if(this[Vt]){let r=this[Vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Me]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Me]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this[Ke]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Fe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[iC](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Yt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Yt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Fe,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[nC](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Fe]?(e?this.emit("error",e):this.emit(Fe),this):(this[Fe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[oo]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof E_||e instanceof y_||e instanceof rC&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var yu=H(et=>{"use strict";var su=require("assert"),yr=require("buffer").Buffer,A_=require("zlib"),qr=et.constants=d_(),lC=eu(),R_=yr.concat,Ur=Symbol("_superWrite"),Ii=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"}},cC=Symbol("opts"),Dn=Symbol("flushFlag"),x_=Symbol("finishFlushFlag"),mu=Symbol("fullFlushFlag"),pe=Symbol("handle"),uo=Symbol("onError"),Pi=Symbol("sawError"),tu=Symbol("level"),ru=Symbol("strategy"),iu=Symbol("ended"),mF=Symbol("_defaultFullFlush"),ho=class extends lC{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Pi]=!1,this[iu]=!1,this[cC]=e,this[Dn]=e.flush,this[x_]=e.finishFlush;try{this[pe]=new A_[r](e)}catch(i){throw new Ii(i)}this[uo]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[uo](new Ii(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Pi])return su(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[mu]),this.write(Object.assign(yr.alloc(0),{[Dn]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[x_]),this[iu]=!0,super.end(null,null,i)}get ended(){return this[iu]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;su(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},yr.concat=c=>c;let a;try{let c=typeof e[Dn]=="number"?e[Dn]:this[Dn];a=this[pe]._processChunk(e,c),yr.concat=R_}catch(c){yr.concat=R_,this[uo](new Ii(c))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",c=>this[uo](new Ii(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Ur](yr.from(a[0]));for(let c=1;c<a.length;c++)l=this[Ur](a[c])}else l=this[Ur](yr.from(a));return i&&i(),l}[Ur](e){return super.write(e)}},Xt=class extends ho{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[mu]=qr.Z_FULL_FLUSH,this[tu]=e.level,this[ru]=e.strategy}params(e,r){if(!this[Pi]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[tu]!==e||this[ru]!==r){this.flush(qr.Z_SYNC_FLUSH),su(this[pe],"zlib binding closed");let i=this[pe].flush;this[pe].flush=(n,s)=>{this.flush(n),s()};try{this[pe].params(e,r)}finally{this[pe].flush=i}this[pe]&&(this[tu]=e,this[ru]=r)}}}},ou=class extends Xt{constructor(e){super(e,"Deflate")}},au=class extends Xt{constructor(e){super(e,"Inflate")}},nu=Symbol("_portable"),lu=class extends Xt{constructor(e){super(e,"Gzip"),this[nu]=e&&!!e.portable}[Ur](e){return this[nu]?(this[nu]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},cu=class extends Xt{constructor(e){super(e,"Gunzip")}},uu=class extends Xt{constructor(e){super(e,"DeflateRaw")}},hu=class extends Xt{constructor(e){super(e,"InflateRaw")}},fu=class extends Xt{constructor(e){super(e,"Unzip")}},fo=class extends ho{constructor(e,r){e=e||{},e.flush=e.flush||qr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||qr.BROTLI_OPERATION_FINISH,super(e,r),this[mu]=qr.BROTLI_OPERATION_FLUSH}},pu=class extends fo{constructor(e){super(e,"BrotliCompress")}},du=class extends fo{constructor(e){super(e,"BrotliDecompress")}};et.Deflate=ou;et.Inflate=au;et.Gzip=lu;et.Gunzip=cu;et.DeflateRaw=uu;et.InflateRaw=hu;et.Unzip=fu;typeof A_.BrotliCompress=="function"?(et.BrotliCompress=pu,et.BrotliDecompress=du):et.BrotliCompress=et.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((_F,O_)=>{var uC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;O_.exports=uC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var po=H((wF,T_)=>{"use strict";var hC=no(),gu=Ni(),_u=Symbol("slurp");T_.exports=class extends hC{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=gu(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=gu(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[_u](r),i&&this[_u](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[_u](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?gu(e[i]):e[i])}}});var bu=H(mo=>{"use strict";mo.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"]]);mo.code=new Map(Array.from(mo.name).map(t=>[t[1],t[0]]))});var P_=H((EF,L_)=>{"use strict";var fC=(t,e)=>{if(Number.isSafeInteger(t))t<0?dC(t,e):pC(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pC=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},dC=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=k_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=C_(n))}},mC=t=>{let e=t[0],r=e===128?gC(t.slice(1,t.length)):e===255?yC(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},yC=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=k_(s):s===0?o=s:(i=!0,o=C_(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},gC=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},k_=t=>(255^t)&255,C_=t=>(255^t)+1&255;L_.exports={encode:fC,parse:mC}});var Mi=H((vF,N_)=>{"use strict";var wu=bu(),Di=require("path").posix,I_=P_(),Su=Symbol("slurp"),tt=Symbol("type"),Ru=class{constructor(e,r,i,n){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[tt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=$r(e,r,100),this.mode=gr(e,r+100,8),this.uid=gr(e,r+108,8),this.gid=gr(e,r+116,8),this.size=gr(e,r+124,12),this.mtime=Eu(e,r+136,12),this.cksum=gr(e,r+148,12),this[Su](i),this[Su](n,!0),this[tt]=$r(e,r+156,1),this[tt]===""&&(this[tt]="0"),this[tt]==="0"&&this.path.slice(-1)==="/"&&(this[tt]="5"),this[tt]==="5"&&(this.size=0),this.linkpath=$r(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=$r(e,r+265,32),this.gname=$r(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=$r(e,r+345,155);this.path=o+"/"+this.path}else{let o=$r(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Eu(e,r+476,12),this.ctime=Eu(e,r+488,12)}let s=8*32;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===8*32&&(this.nullBlock=!0)}[Su](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=_C(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=_r(e,r+100,8,this.mode)||this.needPax,this.needPax=_r(e,r+108,8,this.uid)||this.needPax,this.needPax=_r(e,r+116,8,this.gid)||this.needPax,this.needPax=_r(e,r+124,12,this.size)||this.needPax,this.needPax=vu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[tt].charCodeAt(0),this.needPax=Gr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Gr(e,r+265,32,this.uname)||this.needPax,this.needPax=Gr(e,r+297,32,this.gname)||this.needPax,this.needPax=_r(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_r(e,r+337,8,this.devmin)||this.needPax,this.needPax=Gr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Gr(e,r+345,155,o)||this.needPax:(this.needPax=Gr(e,r+345,130,o)||this.needPax,this.needPax=vu(e,r+476,12,this.atime)||this.needPax,this.needPax=vu(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,_r(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 wu.name.get(this[tt])||this[tt]}get typeKey(){return this[tt]}set type(e){wu.code.has(e)?this[tt]=wu.code.get(e):this[tt]=e}},_C=(t,e)=>{let i=t,n="",s,o=Di.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Di.dirname(i),i=Di.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=Di.join(Di.basename(n),i),n=Di.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},$r=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Eu=(t,e,r)=>bC(gr(t,e,r)),bC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?I_.parse(t.slice(e,e+r)):SC(t,e,r),wC=t=>isNaN(t)?null:t,SC=(t,e,r)=>wC(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),EC={12:8589934591,8:2097151},_r=(t,e,r,i)=>i===null?!1:i>EC[r]||i<0?(I_.encode(i,t.slice(e,e+r)),!0):(vC(t,e,r,i),!1),vC=(t,e,r,i)=>t.write(RC(i,r),e,r,"ascii"),RC=(t,e)=>xC(Math.floor(t).toString(8),e),xC=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",vu=(t,e,r,i)=>i===null?!1:_r(t,e,r,i.getTime()/1e3),AC=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+AC,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);N_.exports=Ru});var yo=H((RF,D_)=>{"use strict";var OC=Mi(),TC=require("path"),Mn=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new OC({path:("PaxHeader/"+TC.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(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
7
|
+
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Mn.parse=(t,e,r)=>new Mn(kC(CC(t),e),r);var kC=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,CC=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(LC,Object.create(null)),LC=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};D_.exports=Mn});var Fi=H((xF,M_)=>{M_.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var go=H((AF,F_)=>{"use strict";F_.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Au=H((TF,B_)=>{"use strict";var _o=["|","<",">","?",":"],xu=_o.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),PC=new Map(_o.map((t,e)=>[t,xu[e]])),IC=new Map(xu.map((t,e)=>[t,_o[e]]));B_.exports={encode:t=>_o.reduce((e,r)=>e.split(r).join(PC.get(r)),t),decode:t=>xu.reduce((e,r)=>e.split(r).join(IC.get(r)),t)}});var Ou=H((kF,H_)=>{var{isAbsolute:NC,parse:j_}=require("path").win32;H_.exports=t=>{let e="",r=j_(t);for(;NC(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=j_(t)}return[e,t]}});var U_=H((CF,q_)=>{"use strict";q_.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Fu=H((IF,rb)=>{"use strict";var V_=no(),Z_=yo(),X_=Mi(),kt=require("fs"),$_=require("path"),Tt=Ni(),DC=Fi(),J_=(t,e)=>e?(t=Tt(t).replace(/^\.(\/|$)/,""),DC(e)+"/"+t):Tt(t),MC=16*1024*1024,G_=Symbol("process"),z_=Symbol("file"),W_=Symbol("directory"),ku=Symbol("symlink"),Y_=Symbol("hardlink"),Fn=Symbol("header"),bo=Symbol("read"),Cu=Symbol("lstat"),wo=Symbol("onlstat"),Lu=Symbol("onread"),Pu=Symbol("onreadlink"),Iu=Symbol("openfile"),Nu=Symbol("onopenfile"),br=Symbol("close"),So=Symbol("mode"),Du=Symbol("awaitDrain"),Tu=Symbol("ondrain"),Ct=Symbol("prefix"),K_=Symbol("hadError"),Q_=go(),FC=Au(),eb=Ou(),tb=U_(),Eo=Q_(class extends V_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Tt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||MC,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Tt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Tt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=eb(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=FC.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Tt(r.absolute||$_.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[wo](this.statCache.get(this.absolute)):this[Cu]()}emit(e,...r){return e==="error"&&(this[K_]=!0),super.emit(e,...r)}[Cu](){kt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[wo](r)})}[wo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=jC(e),this.emit("stat",e),this[G_]()}[G_](){switch(this.type){case"File":return this[z_]();case"Directory":return this[W_]();case"SymbolicLink":return this[ku]();default:return this.end()}}[So](e){return tb(e,this.type==="Directory",this.portable)}[Ct](e){return J_(e,this.prefix)}[Fn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new X_({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this[So](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Z_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[W_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Fn](),this.end()}[ku](){kt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Pu](r)})}[Pu](e){this.linkpath=Tt(e),this[Fn](),this.end()}[Y_](e){this.type="Link",this.linkpath=Tt($_.relative(this.cwd,e)),this.stat.size=0,this[Fn](),this.end()}[z_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[Y_](r)}this.linkCache.set(e,this.absolute)}if(this[Fn](),this.stat.size===0)return this.end();this[Iu]()}[Iu](){kt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Nu](r)})}[Nu](e){if(this.fd=e,this[K_])return this[br]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[bo]()}[bo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;kt.read(e,r,i,n,s,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Lu](a)})}[br](e){kt.close(this.fd,e)}[Lu](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[br](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[br](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Tu]():this[Du](()=>this[Tu]())}[Du](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Tu](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[br](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[bo]()}}),Mu=class extends Eo{[Cu](){this[wo](kt.lstatSync(this.absolute))}[ku](){this[Pu](kt.readlinkSync(this.absolute))}[Iu](){this[Nu](kt.openSync(this.absolute,"r"))}[bo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=kt.readSync(r,i,n,s,o);this[Lu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Du](e){e()}[br](e){kt.closeSync(this.fd),e()}},BC=Q_(class extends V_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Tt(e.path),this.mode=this[So](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Tt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=eb(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new X_({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Z_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Ct](e){return J_(e,this.prefix)}[So](e){return tb(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Eo.Sync=Mu;Eo.Tar=BC;var jC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";rb.exports=Eo});var nb=H((NF,ib)=>{"use strict";ib.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Bu=H((DF,sb)=>{"use strict";sb.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}oe.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};oe.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};oe.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)qC(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)UC(this,arguments[t]);return this.length};oe.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};oe.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};oe.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};oe.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};oe.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};oe.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};oe.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};oe.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};oe.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};oe.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};oe.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};oe.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=HC(this,n,r[i]);return s};oe.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function HC(t,e,r){var i=e===t.head?new zr(r,null,e,t):new zr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function qC(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function UC(t,e){t.head=new zr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function zr(t,e,r,i){if(!(this instanceof zr))return new zr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{nb()(oe)}catch{}});var Lo=H((FF,fb)=>{"use strict";var ko=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},$C=no(),GC=yu(),zC=po(),Yu=Fu(),WC=Yu.Sync,YC=Yu.Tar,KC=Bu(),ob=Buffer.alloc(1024),xo=Symbol("onStat"),vo=Symbol("ended"),Lt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),Ro=Symbol("processing"),ab=Symbol("processJob"),Pt=Symbol("jobs"),ju=Symbol("jobDone"),Ao=Symbol("addFSEntry"),lb=Symbol("addTarEntry"),$u=Symbol("stat"),Gu=Symbol("readdir"),Oo=Symbol("onreaddir"),To=Symbol("pipe"),cb=Symbol("entry"),Hu=Symbol("entryOpt"),zu=Symbol("writeEntryClass"),hb=Symbol("write"),qu=Symbol("ondrain"),Co=require("fs"),ub=require("path"),VC=go(),Uu=Ni(),Ku=VC(class extends $C{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Uu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[zu]=Yu,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new GC.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[qu]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[qu]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Lt]=new KC,this[Pt]=0,this.jobs=+e.jobs||4,this[Ro]=!1,this[vo]=!1}[hb](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[vo]=!0,this[Wr](),this}write(e){if(this[vo])throw new Error("write after end");return e instanceof zC?this[lb](e):this[Ao](e),this.flowing}[lb](e){let r=Uu(ub.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new ko(e.path,r,!1);i.entry=new YC(e,this[Hu](i)),i.entry.on("end",n=>this[ju](i)),this[Pt]+=1,this[Lt].push(i)}this[Wr]()}[Ao](e){let r=Uu(ub.resolve(this.cwd,e));this[Lt].push(new ko(e,r)),this[Wr]()}[$u](e){e.pending=!0,this[Pt]+=1;let r=this.follow?"stat":"lstat";Co[r](e.absolute,(i,n)=>{e.pending=!1,this[Pt]-=1,i?this.emit("error",i):this[xo](e,n)})}[xo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Gu](e){e.pending=!0,this[Pt]+=1,Co.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Pt]-=1,r)return this.emit("error",r);this[Oo](e,i)})}[Oo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[Ro]){this[Ro]=!0;for(let e=this[Lt].head;e!==null&&this[Pt]<this.jobs;e=e.next)if(this[ab](e.value),e.value.ignore){let r=e.next;this[Lt].removeNode(e),e.next=r}this[Ro]=!1,this[vo]&&!this[Lt].length&&this[Pt]===0&&(this.zip?this.zip.end(ob):(super.write(ob),super.end()))}}get[Bi](){return this[Lt]&&this[Lt].head&&this[Lt].head.value}[ju](e){this[Lt].shift(),this[Pt]-=1,this[Wr]()}[ab](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[To](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[xo](e,this.statCache.get(e.absolute)):this[$u](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Oo](e,this.readdirCache.get(e.absolute)):this[Gu](e),!e.readdir))){if(e.entry=this[cb](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[To](e)}}}[Hu](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[cb](e){this[Pt]+=1;try{return new this[zu](e.path,this[Hu](e)).on("end",()=>this[ju](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[qu](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[To](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Wu=class extends Ku{constructor(e){super(e),this[zu]=WC}pause(){}resume(){}[$u](e){let r=this.follow?"statSync":"lstatSync";this[xo](e,Co[r](e.absolute))}[Gu](e,r){this[Oo](e,Co.readdirSync(e.absolute))}[To](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[hb](n)})}};Ku.Sync=Wu;fb.exports=Ku});var Wi=H(jn=>{"use strict";var ZC=eu(),XC=require("events").EventEmitter,Ve=require("fs"),Xu=Ve.writev;if(!Xu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Xu=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Gi=Symbol("_autoClose"),mt=Symbol("_close"),Bn=Symbol("_ended"),he=Symbol("_fd"),pb=Symbol("_finished"),Sr=Symbol("_flags"),Vu=Symbol("_flush"),Ju=Symbol("_handleChunk"),Qu=Symbol("_makeBuf"),Mo=Symbol("_mode"),Po=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Zu=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Jt=Symbol("_path"),Yr=Symbol("_pos"),It=Symbol("_queue"),qi=Symbol("_read"),db=Symbol("_readSize"),wr=Symbol("_reading"),Io=Symbol("_remain"),mb=Symbol("_size"),No=Symbol("_write"),ji=Symbol("_writing"),Do=Symbol("_defaultFlag"),$i=Symbol("_errored"),Fo=class extends ZC{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[db]=r.readSize||16*1024*1024,this[wr]=!1,this[mb]=typeof r.size=="number"?r.size:1/0,this[Io]=this[mb],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[Er]()}get fd(){return this[he]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Er](){Ve.open(this[Jt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[Ui](e):(this[he]=r,this.emit("open",r),this[qi]())}[Qu](){return Buffer.allocUnsafe(Math.min(this[db],this[Io]))}[qi](){if(!this[wr]){this[wr]=!0;let e=this[Qu]();if(e.length===0)return process.nextTick(()=>this[Zu](null,0,e));Ve.read(this[he],e,0,e.length,null,(r,i,n)=>this[Zu](r,i,n))}}[Zu](e,r,i){this[wr]=!1,e?this[Ui](e):this[Ju](r,i)&&this[qi]()}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[wr]=!0,this[mt](),this.emit("error",e)}[Ju](e,r){let i=!1;return this[Io]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Io]<=0)&&(i=!1,this[mt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[qi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},eh=class extends Fo{[Er](){let e=!0;try{this[zi](null,Ve.openSync(this[Jt],"r")),e=!1}finally{e&&this[mt]()}}[qi](){let e=!0;try{if(!this[wr]){this[wr]=!0;do{let r=this[Qu](),i=r.length===0?0:Ve.readSync(this[he],r,0,r.length,null);if(!this[Ju](i,r))break}while(!0);this[wr]=!1}e=!1}finally{e&&this[mt]()}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}},Bo=class extends XC{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[ji]=!1,this[Bn]=!1,this[Po]=!1,this[It]=[],this[Jt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Mo]=r.mode===void 0?438:r.mode,this[Yr]=typeof r.start=="number"?r.start:null,this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Yr]!==null?"r+":"w";this[Do]=r.flags===void 0,this[Sr]=this[Do]?i:r.flags,this[he]===null&&this[Er]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Jt]}[Ui](e){this[mt](),this[ji]=!0,this.emit("error",e)}[Er](){Ve.open(this[Jt],this[Sr],this[Mo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Do]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Vu]())}end(e,r){return e&&this.write(e,r),this[Bn]=!0,!this[ji]&&!this[It].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bn]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[It].length?(this[It].push(e),this[Po]=!0,!1):(this[ji]=!0,this[No](e),!0)}[No](e){Ve.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[Ui](e):(this[Yr]!==null&&(this[Yr]+=r),this[It].length?this[Vu]():(this[ji]=!1,this[Bn]&&!this[pb]?(this[pb]=!0,this[mt](),this.emit("finish")):this[Po]&&(this[Po]=!1,this.emit("drain"))))}[Vu](){if(this[It].length===0)this[Bn]&&this[Hi](null,0);else if(this[It].length===1)this[No](this[It].pop());else{let e=this[It];this[It]=[],Xu(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},th=class extends Bo{[Er](){let e;if(this[Do]&&this[Sr]==="r+")try{e=Ve.openSync(this[Jt],this[Sr],this[Mo])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Er]();throw r}else e=Ve.openSync(this[Jt],this[Sr],this[Mo]);this[zi](null,e)}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}[No](e){let r=!0;try{this[Hi](null,Ve.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[mt]()}catch{}}}};jn.ReadStream=Fo;jn.ReadStreamSync=eh;jn.WriteStream=Bo;jn.WriteStreamSync=th});var zo=H((HF,vb)=>{"use strict";var JC=go(),QC=Mi(),eL=require("events"),tL=Bu(),rL=1024*1024,iL=po(),yb=yo(),nL=yu(),{nextTick:sL}=require("process"),rh=Buffer.from([31,139]),at=Symbol("state"),Kr=Symbol("writeEntry"),Qt=Symbol("readEntry"),ih=Symbol("nextEntry"),gb=Symbol("processEntry"),lt=Symbol("extendedHeader"),Hn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),_b=Symbol("emitMeta"),de=Symbol("buffer"),er=Symbol("queue"),Vr=Symbol("ended"),bb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ze=Symbol("unzip"),jo=Symbol("consumeChunk"),Ho=Symbol("consumeChunkSub"),nh=Symbol("consumeBody"),wb=Symbol("consumeMeta"),Sb=Symbol("consumeHeader"),qo=Symbol("consuming"),sh=Symbol("bufferConcat"),oh=Symbol("maybeEnd"),qn=Symbol("writing"),Rr=Symbol("aborted"),Uo=Symbol("onDone"),Xr=Symbol("sawValidEntry"),$o=Symbol("sawNullBlock"),Go=Symbol("sawEOF"),Eb=Symbol("closeStream"),oL=t=>!0;vb.exports=JC(class extends eL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on(Uo,r=>{(this[at]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Uo,e.ondone):this.on(Uo,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||rL,this.filter=typeof e.filter=="function"?e.filter:oL,this.writable=!0,this.readable=!1,this[er]=new tL,this[de]=null,this[Qt]=null,this[Kr]=null,this[at]="begin",this[vr]="",this[lt]=null,this[Hn]=null,this[Vr]=!1,this[Ze]=null,this[Rr]=!1,this[$o]=!1,this[Go]=!1,this.on("end",()=>this[Eb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Sb](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new QC(e,r,this[lt],this[Hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$o]?(this[Go]=!0,this[at]==="begin"&&(this[at]="header"),this[Zr]("eof")):(this[$o]=!0,this[Zr]("nullBlock"));else if(this[$o]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Kr]=new iL(i,this[lt],this[Hn]);if(!this[Xr])if(s.remain){let o=()=>{s.invalid||(this[Xr]=!0)};s.on("end",o)}else this[Xr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[at]="ignore",s.resume()):s.size>0&&(this[vr]="",s.on("data",o=>this[vr]+=o),this[at]="meta"):(this[lt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[at]=s.remain?"ignore":"header",s.resume()):(s.remain?this[at]="body":(this[at]="header",s.end()),this[Qt]?this[er].push(s):(this[er].push(s),this[ih]())))}}}[Eb](){sL(()=>this.emit("close"))}[gb](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Qt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ih]()),r=!1)):(this[Qt]=null,r=!1),r}[ih](){do;while(this[gb](this[er].shift()));if(!this[er].length){let e=this[Qt];!e||e.flowing||e.size===e.remain?this[qn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[nh](e,r){let i=this[Kr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[at]="header",this[Kr]=null,i.end()),s.length}[wb](e,r){let i=this[Kr],n=this[nh](e,r);return this[Kr]||this[_b](i),n}[Zr](e,r,i){!this[er].length&&!this[Qt]?this.emit(e,r,i):this[er].push([e,r,i])}[_b](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[lt]=yb.parse(this[vr],this[lt],!1);break;case"GlobalExtendedHeader":this[Hn]=yb.parse(this[vr],this[Hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[lt]=this[lt]||Object.create(null),this[lt].path=this[vr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[lt]=this[lt]||Object.create(null),this[lt].linkpath=this[vr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Rr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Rr])return;if(this[Ze]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<rh.length)return this[de]=e,!0;for(let i=0;this[Ze]===null&&i<rh.length;i++)e[i]!==rh[i]&&(this[Ze]=!1);if(this[Ze]===null){let i=this[Vr];this[Vr]=!1,this[Ze]=new nL.Unzip,this[Ze].on("data",s=>this[jo](s)),this[Ze].on("error",s=>this.abort(s)),this[Ze].on("end",s=>{this[Vr]=!0,this[jo]()}),this[qn]=!0;let n=this[Ze][i?"end":"write"](e);return this[qn]=!1,n}}this[qn]=!0,this[Ze]?this[Ze].write(e):this[jo](e),this[qn]=!1;let r=this[er].length?!1:this[Qt]?this[Qt].flowing:!0;return!r&&!this[er].length&&this[Qt].once("drain",i=>this.emit("drain")),r}[sh](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[oh](){if(this[Vr]&&!this[bb]&&!this[Rr]&&!this[qo]){this[bb]=!0;let e=this[Kr];if(e&&e.blockRemain){let r=this[de]?this[de].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[de]&&e.write(this[de]),e.end()}this[Zr](Uo)}}[jo](e){if(this[qo])this[sh](e);else if(!e&&!this[de])this[oh]();else{if(this[qo]=!0,this[de]){this[sh](e);let r=this[de];this[de]=null,this[Ho](r)}else this[Ho](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[Go];){let r=this[de];this[de]=null,this[Ho](r)}this[qo]=!1}(!this[de]||this[Vr])&&this[oh]()}[Ho](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[Go];)switch(this[at]){case"begin":case"header":this[Sb](e,r),r+=512;break;case"ignore":case"body":r+=this[nh](e,r);break;case"meta":r+=this[wb](e,r);break;default:throw new Error("invalid state: "+this[at])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Rr]||(this[Ze]?this[Ze].end(e):(this[Vr]=!0,this.write(e)))}})});var Wo=H((qF,Ob)=>{"use strict";var aL=ki(),xb=zo(),Yi=require("fs"),lL=Wi(),Rb=require("path"),ah=Fi();Ob.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=aL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&uL(i,e),i.noResume||cL(i),i.file&&i.sync?hL(i):i.file?fL(i,r):Ab(i)};var cL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},uL=(t,e)=>{let r=new Map(e.map(s=>[ah(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Rb.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Rb.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ah(s)):s=>n(ah(s))},hL=t=>{let e=Ab(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");a<s.size;){let c=Yi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},fL=(t,e)=>{let r=new xb(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Yi.stat(n,(l,c)=>{if(l)a(l);else{let u=new lL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Ab=t=>new xb(t)});var Ib=H((UF,Pb)=>{"use strict";var pL=ki(),Yo=Lo(),Tb=Wi(),kb=Wo(),Cb=require("path");Pb.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=pL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?dL(i,e):i.file?mL(i,e,r):i.sync?yL(i,e):gL(i,e)};var dL=(t,e)=>{let r=new Yo.Sync(t),i=new Tb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Lb(r,e)},mL=(t,e,r)=>{let i=new Yo(t),n=new Tb.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return lh(i,e),r?s.then(r,r):s},Lb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?kb({file:Cb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},lh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return kb({file:Cb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>lh(t,e));t.add(r)}t.end()},yL=(t,e)=>{let r=new Yo.Sync(t);return Lb(r,e),r},gL=(t,e)=>{let r=new Yo(t);return lh(r,e),r}});var ch=H(($F,Hb)=>{"use strict";var _L=ki(),Nb=Lo(),rt=require("fs"),Db=Wi(),Mb=Wo(),Fb=require("path"),Bb=Mi();Hb.exports=(t,e,r)=>{let i=_L(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?bL(i,e):SL(i,e,r)};var bL=(t,e)=>{let r=new Nb.Sync(t),i=!0,n,s;try{try{n=rt.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=rt.openSync(t.file,"w+");else throw l}let o=rt.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=rt.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new Bb(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,wL(t,r,s,n,e)}finally{if(i)try{rt.closeSync(n)}catch{}}},wL=(t,e,r,i,n)=>{let s=new Db.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),EL(e,n)},SL=(t,e,r)=>{e=Array.from(e);let i=new Nb(t),n=(o,a,l)=>{let c=(g,y)=>{g?rt.close(o,_=>l(g)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return c(g);if(h+=y,h<512&&y)return rt.read(o,f,h,f.length-h,u+h,d);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let _=new Bb(f);if(!_.cksumValid)return c(null,u);let x=512*Math.ceil(_.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),h=0,rt.read(o,f,0,512,u,d)};rt.read(o,f,0,512,u,d)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",rt.open(t.file,l,c);if(u)return a(u);rt.fstat(h,(f,d)=>{if(f)return rt.close(h,()=>a(f));n(h,d.size,(g,y)=>{if(g)return a(g);let _=new Db.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),jb(i,e)})})};rt.open(t.file,l,c)});return r?s.then(r,r):s},EL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Mb({file:Fb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},jb=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Mb({file:Fb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>jb(t,e));t.add(r)}t.end()}});var Ub=H((GF,qb)=>{"use strict";var vL=ki(),RL=ch();qb.exports=(t,e,r)=>{let i=vL(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),xL(i),RL(i,e,r)};var xL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var zb=H((zF,Gb)=>{var{promisify:$b}=require("util"),xr=require("fs"),AL=t=>{if(!t)t={mode:511,fs:xr};else if(typeof t=="object")t={mode:511,fs:xr,...t};else if(typeof t=="number")t={mode:t,fs:xr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:xr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||xr.mkdir,t.mkdirAsync=$b(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=$b(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};Gb.exports=AL});var Yb=H((WF,Wb)=>{var OL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:TL,parse:kL}=require("path"),CL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=TL(t),OL==="win32"){let e=/[*|"<>?:]/,{root:r}=kL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Wb.exports=CL});var Jb=H((YF,Xb)=>{var{dirname:Kb}=require("path"),Vb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Vb(t,Kb(e),e):void 0),Zb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Zb(t,Kb(e),e):void 0}};Xb.exports={findMade:Vb,findMadeSync:Zb}});var fh=H((KF,ew)=>{var{dirname:Qb}=require("path"),uh=(t,e,r)=>{e.recursive=!1;let i=Qb(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return uh(i,e).then(s=>uh(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},hh=(t,e,r)=>{let i=Qb(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return hh(t,e,hh(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ew.exports={mkdirpManual:uh,mkdirpManualSync:hh}});var iw=H((VF,rw)=>{var{dirname:tw}=require("path"),{findMade:LL,findMadeSync:PL}=Jb(),{mkdirpManual:IL,mkdirpManualSync:NL}=fh(),DL=(t,e)=>(e.recursive=!0,tw(t)===t?e.mkdirAsync(t,e):LL(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return IL(t,e);throw n}))),ML=(t,e)=>{if(e.recursive=!0,tw(t)===t)return e.mkdirSync(t,e);let i=PL(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return NL(t,e);throw n}};rw.exports={mkdirpNative:DL,mkdirpNativeSync:ML}});var aw=H((ZF,ow)=>{var nw=require("fs"),FL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ph=FL.replace(/^v/,"").split("."),sw=+ph[0]>10||+ph[0]==10&&+ph[1]>=12,BL=sw?t=>t.mkdir===nw.mkdir:()=>!1,jL=sw?t=>t.mkdirSync===nw.mkdirSync:()=>!1;ow.exports={useNative:BL,useNativeSync:jL}});var pw=H((XF,fw)=>{var Ki=zb(),Vi=Yb(),{mkdirpNative:lw,mkdirpNativeSync:cw}=iw(),{mkdirpManual:uw,mkdirpManualSync:hw}=fh(),{useNative:HL,useNativeSync:qL}=aw(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),HL(e)?lw(t,e):uw(t,e)),UL=(t,e)=>(t=Vi(t),e=Ki(e),qL(e)?cw(t,e):hw(t,e));Zi.sync=UL;Zi.native=(t,e)=>lw(Vi(t),Ki(e));Zi.manual=(t,e)=>uw(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>cw(Vi(t),Ki(e));Zi.manualSync=(t,e)=>hw(Vi(t),Ki(e));fw.exports=Zi});var ww=H((JF,bw)=>{"use strict";var ct=require("fs"),Jr=require("path"),$L=ct.lchown?"lchown":"chown",GL=ct.lchownSync?"lchownSync":"chownSync",mw=ct.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),dw=(t,e,r)=>{try{return ct[GL](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},zL=(t,e,r)=>{try{return ct.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},WL=mw?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ct.chown(t,e,r,i)}:(t,e,r,i)=>i,dh=mw?(t,e,r)=>{try{return dw(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;zL(t,e,r)}}:(t,e,r)=>dw(t,e,r),YL=process.version,yw=(t,e,r)=>ct.readdir(t,e,r),KL=(t,e)=>ct.readdirSync(t,e);/^v4\./.test(YL)&&(yw=(t,e,r)=>ct.readdir(t,r));var Ko=(t,e,r,i)=>{ct[$L](t,e,r,WL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},gw=(t,e,r,i,n)=>{if(typeof e=="string")return ct.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,gw(t,o,r,i,n)});if(e.isDirectory())mh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Ko(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Ko(s,r,i,n)}},mh=(t,e,r,i)=>{yw(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Ko(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Ko(t,e,r,i)}};s.forEach(c=>gw(t,c,e,r,l))})},VL=(t,e,r,i)=>{if(typeof e=="string")try{let n=ct.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&_w(Jr.resolve(t,e.name),r,i),dh(Jr.resolve(t,e.name),r,i)},_w=(t,e,r)=>{let i;try{i=KL(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return dh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>VL(t,n,e,r)),dh(t,e,r)};bw.exports=mh;mh.sync=_w});var Rw=H((QF,yh)=>{"use strict";var Sw=pw(),ut=require("fs"),Vo=require("path"),Ew=ww(),yt=Ni(),Zo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Xo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Jo=(t,e)=>t.get(yt(e)),Un=(t,e,r)=>t.set(yt(e),r),ZL=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Xo(t,r&&r.code||"ENOTDIR")),e(r)})};yh.exports=(t,e,r)=>{t=yt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=yt(e.cwd),d=(_,x)=>{_?r(_):(Un(h,t,!0),x&&l?Ew(x,o,a,k=>d(k)):s?ut.chmod(t,n,r):r())};if(h&&Jo(h,t)===!0)return d();if(t===f)return ZL(t,d);if(c)return Sw(t,{mode:n}).then(_=>d(null,_),d);let y=yt(Vo.relative(f,t)).split("/");Qo(f,y,n,h,u,f,null,d)};var Qo=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=yt(Vo.resolve(t+"/"+l));if(Jo(i,c))return Qo(c,e,r,i,n,s,o,a);ut.mkdir(c,r,vw(c,e,r,i,n,s,o,a))},vw=(t,e,r,i,n,s,o,a)=>l=>{l?ut.lstat(t,(c,u)=>{if(c)c.path=c.path&&yt(c.path),a(c);else if(u.isDirectory())Qo(t,e,r,i,n,s,o,a);else if(n)ut.unlink(t,h=>{if(h)return a(h);ut.mkdir(t,r,vw(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Zo(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Qo(t,e,r,i,n,s,o,a))},XL=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Xo(t,r)}};yh.exports.sync=(t,e)=>{t=yt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=yt(e.cwd),f=_=>{Un(u,t,!0),_&&a&&Ew.sync(_,s,o),n&&ut.chmodSync(t,i)};if(u&&Jo(u,t)===!0)return f();if(t===h)return XL(h),f();if(l)return f(Sw.sync(t,i));let g=yt(Vo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=yt(Vo.resolve(x)),!Jo(u,x))try{ut.mkdirSync(x,i),y=y||x,Un(u,x,!0)}catch{let C=ut.lstatSync(x);if(C.isDirectory()){Un(u,x,!0);continue}else if(c){ut.unlinkSync(x),ut.mkdirSync(x,i),y=y||x,Un(u,x,!0);continue}else if(C.isSymbolicLink())return new Zo(x,x+"/"+g.join("/"))}return f(y)}});var _h=H((eB,xw)=>{var gh=Object.create(null),{hasOwnProperty:JL}=Object.prototype;xw.exports=t=>(JL.call(gh,t)||(gh[t]=t.normalize("NFKD")),gh[t])});var kw=H((tB,Tw)=>{var Aw=require("assert"),QL=_h(),eP=Fi(),{join:Ow}=require("path"),tP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,rP=tP==="win32";Tw.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=Ow(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(d=>{let g=t.get(d);Aw.equal(g[0],c),g.length===1?t.delete(d):(g.shift(),typeof g[0]=="function"?f.add(g[0]):g[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let g=t.get(d);Aw(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,u)=>{c=rP?["win32 parallelization disabled"]:c.map(f=>QL(eP(Ow(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(u):t.set(f,[u])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(u):d.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var Pw=H((rB,Lw)=>{var iP=process.env.__FAKE_PLATFORM__||process.platform,nP=iP==="win32",sP=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:oP,O_TRUNC:aP,O_WRONLY:lP,UV_FS_O_FILEMAP:Cw=0}=sP.constants,cP=nP&&!!Cw,uP=512*1024,hP=Cw|aP|oP|lP;Lw.exports=cP?t=>t<uP?hP:"w":()=>"w"});var Oh=H((iB,Ww)=>{"use strict";var fP=require("assert"),pP=zo(),ae=require("fs"),dP=Wi(),tr=require("path"),$w=Rw(),Iw=Au(),mP=kw(),yP=Ou(),it=Ni(),gP=Fi(),_P=_h(),Nw=Symbol("onEntry"),Sh=Symbol("checkFs"),Dw=Symbol("checkFs2"),ra=Symbol("pruneCache"),Eh=Symbol("isReusable"),ht=Symbol("makeFs"),vh=Symbol("file"),Rh=Symbol("directory"),ia=Symbol("link"),Mw=Symbol("symlink"),Fw=Symbol("hardlink"),Bw=Symbol("unsupported"),jw=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),ea=Symbol("pending"),Hw=Symbol("pend"),Xi=Symbol("unpend"),bh=Symbol("ended"),wh=Symbol("maybeClose"),xh=Symbol("skip"),$n=Symbol("doChown"),Gn=Symbol("uid"),zn=Symbol("gid"),Wn=Symbol("checkedCwd"),Gw=require("crypto"),zw=Pw(),bP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Yn=bP==="win32",wP=(t,e)=>{if(!Yn)return ae.unlink(t,e);let r=t+".DELETE."+Gw.randomBytes(16).toString("hex");ae.rename(t,r,i=>{if(i)return e(i);ae.unlink(r,e)})},SP=t=>{if(!Yn)return ae.unlinkSync(t);let e=t+".DELETE."+Gw.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},qw=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,Uw=t=>_P(gP(it(t))).toLowerCase(),EP=(t,e)=>{e=Uw(e);for(let r of t.keys()){let i=Uw(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},vP=t=>{for(let e of t.keys())t.delete(e)},Kn=class extends pP{constructor(e){if(e||(e={}),e.ondone=r=>{this[bh]=!0,this[wh]()},super(e),this[Wn]=!1,this.reservations=mP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ea]=0,this[bh]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=it(tr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[Nw](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[wh](){this[bh]&&this[ea]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[jw](e){if(this.strip){let r=it(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=it(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=it(e.path),i=r.split("/");if(i.includes("..")||Yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=yP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(tr.isAbsolute(e.path)?e.absolute=it(tr.resolve(e.path)):e.absolute=it(tr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:it(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=tr.win32.parse(e.absolute);e.absolute=r+Iw.encode(e.absolute.slice(r.length));let{root:i}=tr.win32.parse(e.path);e.path=i+Iw.encode(e.path.slice(i.length))}return!0}[Nw](e){if(!this[jw](e))return e.resume();switch(fP.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Sh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[Bw](e)}}[Be](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Xi](),r.resume())}[Ar](e,r,i){$w(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[$n](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Gn](e){return qw(this.uid,e.uid,this.processUid)}[zn](e){return qw(this.gid,e.gid,this.processGid)}[vh](e,r){let i=e.mode&4095||this.fmode,n=new dP.WriteStream(e.absolute,{flags:zw(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&ae.close(n.fd,()=>{}),n.write=()=>!0,this[Be](l,e),r()});let s=1,o=l=>{if(l){n.fd&&ae.close(n.fd,()=>{}),this[Be](l,e),r();return}--s===0&&ae.close(n.fd,c=>{c?this[Be](c,e):this[Xi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ae.futimes(u,h,f,d=>d?ae.utimes(c,h,f,g=>o(g&&d)):o())}if(this[$n](e)){s++;let h=this[Gn](e),f=this[zn](e);ae.fchown(u,h,f,d=>d?ae.chown(c,h,f,g=>o(g&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Be](l,e),r()}),e.pipe(a)),a.pipe(n)}[Rh](e,r){let i=e.mode&4095||this.dmode;this[Ar](e.absolute,i,n=>{if(n){this[Be](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[$n](e)&&(s++,ae.chown(e.absolute,this[Gn](e),this[zn](e),o)),o()})}[Bw](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Mw](e,r){this[ia](e,e.linkpath,"symlink",r)}[Fw](e,r){let i=it(tr.resolve(this.cwd,e.linkpath));this[ia](e,i,"link",r)}[Hw](){this[ea]++}[Xi](){this[ea]--,this[wh]()}[xh](e){this[Xi](),e.resume()}[Eh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Yn}[Sh](e){this[Hw]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[Dw](e,i))}[ra](e){e.type==="SymbolicLink"?vP(this.dirCache):e.type!=="Directory"&&EP(this.dirCache,e.absolute)}[Dw](e,r){this[ra](e);let i=a=>{this[ra](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Be](a,e),i();return}this[Wn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=it(tr.dirname(e.absolute));if(a!==this.cwd)return this[Ar](a,this.dmode,l=>{if(l){this[Be](l,e),i();return}o()})}o()},o=()=>{ae.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[xh](e),i();return}if(a||this[Eh](e,l))return this[ht](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[ht](h,e,i);return c?ae.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return ae.rmdir(e.absolute,c=>this[ht](c,e,i))}if(e.absolute===this.cwd)return this[ht](null,e,i);wP(e.absolute,c=>this[ht](c,e,i))})};this[Wn]?s():n()}[ht](e,r,i){if(e){this[Be](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vh](r,i);case"Link":return this[Fw](r,i);case"SymbolicLink":return this[Mw](r,i);case"Directory":case"GNUDumpDir":return this[Rh](r,i)}}[ia](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},ta=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ah=class extends Kn{[ht](e,r){return super[ht](e,r,()=>{})}[Sh](e){if(this[ra](e),!this[Wn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Be](s,e);this[Wn]=!0}if(e.absolute!==this.cwd){let s=it(tr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Be](o,e)}}let[r,i]=ta(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[xh](e);if(r||this[Eh](e,i))return this[ht](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ta(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[ht](a,e)}let[s]=ta(()=>ae.rmdirSync(e.absolute));this[ht](s,e)}let[n]=e.absolute===this.cwd?[]:ta(()=>SP(e.absolute));this[ht](n,e)}[vh](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{ae.closeSync(s)}catch(c){l=c}(a||l)&&this[Be](a||l,e),r()},s;try{s=ae.openSync(e.absolute,zw(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Be](a,e)),e.pipe(o)),o.on("data",a=>{try{ae.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{ae.futimesSync(s,c,u)}catch(h){try{ae.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[$n](e)){let c=this[Gn](e),u=this[zn](e);try{ae.fchownSync(s,c,u)}catch(h){try{ae.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[Rh](e,r){let i=e.mode&4095||this.dmode,n=this[Ar](e.absolute,i);if(n){this[Be](n,e),r();return}if(e.mtime&&!this.noMtime)try{ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[$n](e))try{ae.chownSync(e.absolute,this[Gn](e),this[zn](e))}catch{}r(),e.resume()}[Ar](e,r){try{return $w.sync(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[ia](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Kn.Sync=Ah;Ww.exports=Kn});var Xw=H((nB,Zw)=>{"use strict";var RP=ki(),na=Oh(),Kw=require("fs"),Vw=Wi(),Yw=require("path"),Th=Fi();Zw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=RP(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&xP(i,e),i.file&&i.sync?AP(i):i.file?OP(i,r):i.sync?TP(i):kP(i)};var xP=(t,e)=>{let r=new Map(e.map(s=>[Th(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Yw.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Yw.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Th(s)):s=>n(Th(s))},AP=t=>{let e=new na.Sync(t),r=t.file,i=Kw.statSync(r),n=t.maxReadSize||16*1024*1024;new Vw.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},OP=(t,e)=>{let r=new na(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Kw.stat(n,(l,c)=>{if(l)a(l);else{let u=new Vw.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},TP=t=>new na.Sync(t),kP=t=>new na(t)});var Jw=H(xe=>{"use strict";xe.c=xe.create=Ib();xe.r=xe.replace=ch();xe.t=xe.list=Wo();xe.u=xe.update=Ub();xe.x=xe.extract=Xw();xe.Pack=Lo();xe.Unpack=Oh();xe.Parse=zo();xe.ReadEntry=po();xe.WriteEntry=Fu();xe.Header=Mi();xe.Pax=yo();xe.types=bu()});var nS=H((cB,iS)=>{function ft(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))}iS.exports=ft;ft.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ft.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ft.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 i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};ft.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)};ft.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ft.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ft.prototype.start=ft.prototype.try;ft.prototype.errors=function(){return this._errors};ft.prototype.attempts=function(){return this._attempts};ft.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var sS=H(Qr=>{var IP=nS();Qr.operation=function(t){var e=Qr.timeouts(t);return new IP(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qr.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 i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Qr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Qr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=Qr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var aS=H((hB,oS)=>{oS.exports=sS()});var cS=H((fB,lS)=>{var NP=aS();function DP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=NP.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(d){l(d,u)})}o.attempt(c)}return new Promise(r)}lS.exports=DP});var KP={};Ph(KP,{default:()=>YP,getNewPkgName:()=>yS,transformer:()=>gS});module.exports=vS(KP);var Lh=ne(require("path"));var Ge=require("picocolors"),bg=ne(require("ora"),1),wg=ne(require("gradient-string"),1);var Fk=ne(li(),1),eD=require("fs-extra");function Pp(t){return typeof t=="undefined"||t===null}function g0(t){return typeof t=="object"&&t!==null}function _0(t){return Array.isArray(t)?t:Pp(t)?[]:[t]}function b0(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function w0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function S0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var E0=Pp,v0=g0,R0=_0,x0=w0,A0=S0,O0=b0,Re={isNothing:E0,isObject:v0,toArray:R0,repeat:x0,isNegativeZero:A0,extend:O0};function Ip(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
9
9
|
|
10
|
-
`+t.mark.snippet),i+" "+r):i}function cn(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Ip(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}cn.prototype=Object.create(Error.prototype);cn.prototype.constructor=cn;cn.prototype.toString=function(e){return this.name+": "+Ip(this,e)};var He=cn;function Oa(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Ta(t,e){return Re.repeat(" ",e-t.length)+t}function
|
10
|
+
`+t.mark.snippet),i+" "+r):i}function cn(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Ip(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}cn.prototype=Object.create(Error.prototype);cn.prototype.constructor=cn;cn.prototype.toString=function(e){return this.name+": "+Ip(this,e)};var He=cn;function Oa(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Ta(t,e){return Re.repeat(" ",e-t.length)+t}function T0(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Oa(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=Re.repeat(" ",e.indent)+Ta((t.line-l+1).toString(),u)+" | "+c.str+`
|
11
11
|
`+a;for(c=Oa(t.buffer,i[o],n[o],t.position,h),a+=Re.repeat(" ",e.indent)+Ta((t.line+1).toString(),u)+" | "+c.str+`
|
12
12
|
`,a+=Re.repeat("-",e.indent+u+3+c.pos)+`^
|
13
13
|
`,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Oa(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=Re.repeat(" ",e.indent)+Ta((t.line+l+1).toString(),u)+" | "+c.str+`
|
14
|
-
`;return a.replace(/\n$/,"")}var
|
15
|
-
\r`;function
|
16
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function
|
17
|
-
`,e-1))}function
|
14
|
+
`;return a.replace(/\n$/,"")}var k0=T0,C0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],L0=["scalar","sequence","mapping"];function P0(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function I0(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(C0.indexOf(r)===-1)throw new He('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=P0(e.styleAliases||null),L0.indexOf(this.kind)===-1)throw new He('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ke=I0;function gp(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function N0(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Ca(t){return this.extend(t)}Ca.prototype.extend=function(e){var r=[],i=[];if(e instanceof ke)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new He("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new He("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new He("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ca.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=gp(n,"implicit"),n.compiledExplicit=gp(n,"explicit"),n.compiledTypeMap=N0(n.compiledImplicit,n.compiledExplicit),n};var Np=Ca,Dp=new ke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Mp=new ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Fp=new ke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Bp=new Np({explicit:[Dp,Mp,Fp]});function D0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function M0(){return null}function F0(t){return t===null}var jp=new ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:D0,construct:M0,predicate:F0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function B0(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function j0(t){return t==="true"||t==="True"||t==="TRUE"}function H0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Hp=new ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:B0,construct:j0,predicate:H0,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function q0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function U0(t){return 48<=t&&t<=55}function $0(t){return 48<=t&&t<=57}function G0(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!q0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!U0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!$0(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function z0(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function W0(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var qp=new ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:G0,construct:z0,predicate:W0,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Y0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function K0(t){return!(t===null||!Y0.test(t)||t[t.length-1]==="_")}function V0(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Z0=/^[-+]?[0-9]+e/;function X0(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Re.isNegativeZero(t))return"-0.0";return r=t.toString(10),Z0.test(r)?r.replace("e",".e"):r}function J0(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var Up=new ke("tag:yaml.org,2002:float",{kind:"scalar",resolve:K0,construct:V0,predicate:J0,represent:X0,defaultStyle:"lowercase"}),$p=Bp.extend({implicit:[jp,Hp,qp,Up]}),Gp=$p,zp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Wp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Q0(t){return t===null?!1:zp.exec(t)!==null||Wp.exec(t)!==null}function ev(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=zp.exec(t),e===null&&(e=Wp.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function tv(t){return t.toISOString()}var Yp=new ke("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Q0,construct:ev,instanceOf:Date,represent:tv});function rv(t){return t==="<<"||t===null}var Kp=new ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rv}),Da=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
15
|
+
\r`;function iv(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Da;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function nv(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Da,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function sv(t){var e="",r=0,i,n,s=t.length,o=Da;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function ov(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Vp=new ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iv,construct:nv,predicate:ov,represent:sv}),av=Object.prototype.hasOwnProperty,lv=Object.prototype.toString;function cv(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,lv.call(n)!=="[object Object]")return!1;for(s in n)if(av.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function uv(t){return t!==null?t:[]}var Zp=new ke("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cv,construct:uv}),hv=Object.prototype.toString;function fv(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],hv.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function pv(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Xp=new ke("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fv,construct:pv}),dv=Object.prototype.hasOwnProperty;function mv(t){if(t===null)return!0;var e,r=t;for(e in r)if(dv.call(r,e)&&r[e]!==null)return!1;return!0}function yv(t){return t!==null?t:{}}var Jp=new ke("tag:yaml.org,2002:set",{kind:"mapping",resolve:mv,construct:yv}),Ma=Gp.extend({implicit:[Yp,Kp],explicit:[Vp,Zp,Xp,Jp]}),ir=Object.prototype.hasOwnProperty,hs=1,Qp=2,ed=3,fs=4,ka=1,gv=2,_p=3,_v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bv=/[\x85\u2028\u2029]/,wv=/[,\[\]\{\}]/,td=/^(?:!|!!|![a-z\-]+!)$/i,rd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function bp(t){return Object.prototype.toString.call(t)}function _t(t){return t===10||t===13}function Lr(t){return t===9||t===32}function Ue(t){return t===9||t===32||t===10||t===13}function ui(t){return t===44||t===91||t===93||t===123||t===125}function Sv(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Ev(t){return t===120?2:t===117?4:t===85?8:0}function vv(t){return 48<=t&&t<=57?t-48:-1}function wp(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
16
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Rv(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var id=new Array(256),nd=new Array(256);for(Cr=0;Cr<256;Cr++)id[Cr]=wp(Cr)?1:0,nd[Cr]=wp(Cr);var Cr;function xv(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Ma,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function sd(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=k0(r),new He(e,r)}function Q(t,e){throw sd(t,e)}function ps(t,e){t.onWarning&&t.onWarning.call(null,sd(t,e))}var Sp={YAML:function(e,r,i){var n,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),i.length!==1&&Q(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&ps(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],td.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),ir.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),rd.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function rr(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else _v.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function Ep(t,e,r,i){var n,s,o,a;for(Re.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],ir.call(e,s)||(e[s]=r[s],i[s]=!0)}function hi(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&bp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&bp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)Ep(t,e,s[c],r);else Ep(t,e,s,r);else!t.json&&!ir.call(r,n)&&ir.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,Q(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Fa(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ee(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Lr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(_t(n))for(Fa(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&ps(t,"deficient indentation"),i}function ys(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ue(r)))}function Ba(t,e){e===1?t.result+=" ":e>1&&(t.result+=Re.repeat(`
|
17
|
+
`,e-1))}function Av(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),Ue(d)||ui(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&ui(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&ui(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Ue(i))break}else{if(t.position===t.lineStart&&ys(t)||r&&ui(d))break;if(_t(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,Ee(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(rr(t,s,o,!1),Ba(t,t.line-l),s=o=t.position,a=!1),Lr(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return rr(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function Ov(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(rr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else _t(r)?(rr(t,i,n,!0),Ba(t,Ee(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ys(t)?Q(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Q(t,"unexpected end of the stream within a single quoted scalar")}function Tv(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return rr(t,r,t.position,!0),t.position++,!0;if(a===92){if(rr(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),_t(a))Ee(t,!1,e);else if(a<256&&id[a])t.result+=nd[a],t.position++;else if((o=Ev(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Sv(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=Rv(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else _t(a)?(rr(t,r,i,!0),Ba(t,Ee(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ys(t)?Q(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Q(t,"unexpected end of the stream within a double quoted scalar")}function kv(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,d,g=Object.create(null),y,_,x,k;if(k=t.input.charCodeAt(t.position),k===91)u=93,d=!1,a=[];else if(k===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),k=t.input.charCodeAt(++t.position);k!==0;){if(Ee(t,!0,e),k=t.input.charCodeAt(t.position),k===u)return t.position++,t.tag=o,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;r?k===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),_=y=x=null,h=f=!1,k===63&&(c=t.input.charCodeAt(t.position+1),Ue(c)&&(h=f=!0,t.position++,Ee(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,fi(t,e,hs,!1,!0),_=t.tag,y=t.result,Ee(t,!0,e),k=t.input.charCodeAt(t.position),(f||t.line===i)&&k===58&&(h=!0,k=t.input.charCodeAt(++t.position),Ee(t,!0,e),fi(t,e,hs,!1,!0),x=t.result),d?hi(t,a,g,_,y,x,i,n,s):h?a.push(hi(t,null,g,_,y,x,i,n,s)):a.push(y),Ee(t,!0,e),k=t.input.charCodeAt(t.position),k===44?(r=!0,k=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function Cv(t,e){var r,i,n=ka,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)ka===n?n=h===43?_p:gv:Q(t,"repeat of a chomping mode identifier");else if((u=vv(h))>=0)u===0?Q(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Lr(h)){do h=t.input.charCodeAt(++t.position);while(Lr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!_t(h)&&h!==0)}for(;h!==0;){for(Fa(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),_t(h)){l++;continue}if(t.lineIndent<a){n===_p?t.result+=Re.repeat(`
|
18
18
|
`,s?1+l:l):n===ka&&s&&(t.result+=`
|
19
19
|
`);break}for(i?Lr(h)?(c=!0,t.result+=Re.repeat(`
|
20
20
|
`,s?1+l:l)):c?(c=!1,t.result+=Re.repeat(`
|
21
21
|
`,l+1)):l===0?s&&(t.result+=" "):t.result+=Re.repeat(`
|
22
22
|
`,l):t.result+=Re.repeat(`
|
23
|
-
`,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!_t(h)&&h!==0;)h=t.input.charCodeAt(++t.position);rr(t,r,t.position,!1)}return!0}function vp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ue(o))));){if(a=!0,t.position++,Ee(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,ed,!1,!0),s.push(t.result),Ee(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function
|
24
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
23
|
+
`,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!_t(h)&&h!==0;)h=t.input.charCodeAt(++t.position);rr(t,r,t.position,!1)}return!0}function vp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ue(o))));){if(a=!0,t.position++,Ee(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,ed,!1,!0),s.push(t.result),Ee(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Lv(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,_=!1,x=!1,k;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),k=t.input.charCodeAt(t.position);k!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(k===63||k===58)&&Ue(i))k===63?(_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!0,n=!0):_?(_=!1,n=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,k=i;else{if(o=t.line,a=t.lineStart,l=t.position,!fi(t,r,Qp,!1,!0))break;if(t.line===s){for(k=t.input.charCodeAt(t.position);Lr(k);)k=t.input.charCodeAt(++t.position);if(k===58)k=t.input.charCodeAt(++t.position),Ue(k)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!1,n=!1,d=t.tag,g=t.result;else if(x)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),fi(t,e,fs,!0,n)&&(_?g=t.result:y=t.result),_||(hi(t,h,f,d,g,y,o,a,l),d=g=y=null),Ee(t,!0,-1),k=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&k!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&hi(t,h,f,d,g,null,o,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),x}function Pv(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Q(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ue(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),td.test(n)||Q(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),wv.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!rd.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:ir.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+n+'"'),!0}function Iv(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ue(r)&&!ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Nv(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ue(i)&&!ui(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ir.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ee(t,!0,-1),!0}function fi(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,d,g,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=fs===r||ed===r,i&&Ee(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Pv(t)||Iv(t);)Ee(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||fs===r)&&(hs===r||Qp===r?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(vp(t,_)||Lv(t,_,y))||kv(t,y)?u=!0:(o&&Cv(t,y)||Ov(t,y)||Tv(t,y)?u=!0:Nv(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Av(t,y,hs===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&vp(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(ir.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){g=d[h];break}g||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Dv(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Ee(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;Lr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!_t(o));break}if(_t(o))break;for(r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Fa(t),ir.call(Sp,i)?Sp[i](t,i,n):ps(t,'unknown document directive "'+i+'"')}if(Ee(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ee(t,!0,-1)):s&&Q(t,"directives end mark is expected"),fi(t,t.lineIndent-1,fs,!1,!0),Ee(t,!0,-1),t.checkLineBreaks&&bv.test(t.input.slice(e,t.position))&&ps(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ys(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ee(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function od(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
24
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new xv(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Q(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Dv(r);return r.documents}function Mv(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=od(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Fv(t,e){var r=od(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new He("expected a single document in the stream, but found more")}}var Bv=Mv,jv=Fv,ad={loadAll:Bv,load:jv},ld=Object.prototype.toString,cd=Object.prototype.hasOwnProperty,ja=65279,Hv=9,un=10,qv=13,Uv=32,$v=33,Gv=34,La=35,zv=37,Wv=38,Yv=39,Kv=42,ud=44,Vv=45,ds=58,Zv=61,Xv=62,Jv=63,Qv=64,hd=91,fd=93,eR=96,pd=123,tR=124,dd=125,Ce={};Ce[0]="\\0";Ce[7]="\\a";Ce[8]="\\b";Ce[9]="\\t";Ce[10]="\\n";Ce[11]="\\v";Ce[12]="\\f";Ce[13]="\\r";Ce[27]="\\e";Ce[34]='\\"';Ce[92]="\\\\";Ce[133]="\\N";Ce[160]="\\_";Ce[8232]="\\L";Ce[8233]="\\P";var rR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],iR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function nR(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&cd.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function sR(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new He("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Re.repeat("0",i-e.length)+e}var oR=1,hn=2;function aR(t){this.schema=t.schema||Ma,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Re.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=nR(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?hn:oR,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Rp(t,e){for(var r=Re.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
25
25
|
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
26
26
|
`&&(s+=r),s+=o;return s}function Pa(t,e){return`
|
27
|
-
`+Re.repeat(" ",t.indent*e)}function
|
27
|
+
`+Re.repeat(" ",t.indent*e)}function lR(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function ms(t){return t===Uv||t===Hv}function fn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ja||65536<=t&&t<=1114111}function xp(t){return fn(t)&&t!==ja&&t!==qv&&t!==un}function Ap(t,e,r){var i=xp(t),n=i&&!ms(t);return(r?i:i&&t!==ud&&t!==hd&&t!==fd&&t!==pd&&t!==dd)&&t!==La&&!(e===ds&&!n)||xp(e)&&!ms(e)&&t===La||e===ds&&n}function cR(t){return fn(t)&&t!==ja&&!ms(t)&&t!==Vv&&t!==Jv&&t!==ds&&t!==ud&&t!==hd&&t!==fd&&t!==pd&&t!==dd&&t!==La&&t!==Wv&&t!==Kv&&t!==$v&&t!==tR&&t!==Zv&&t!==Xv&&t!==Yv&&t!==Gv&&t!==zv&&t!==Qv&&t!==eR}function uR(t){return!ms(t)&&t!==ds}function ln(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function md(t){var e=/^\n* /;return e.test(t)}var yd=1,Ia=2,gd=3,_d=4,ci=5;function hR(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,d=i!==-1,g=-1,y=cR(ln(t,0))&&uR(ln(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),!fn(c))return ci;y=y&&Ap(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),c===un)h=!0,d&&(f=f||l-g-1>i&&t[g+1]!==" ",g=l);else if(!fn(c))return ci;y=y&&Ap(c,u,a),u=c}f=f||d&&l-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?yd:s===hn?ci:Ia:r>9&&md(t)?ci:o?s===hn?ci:Ia:f?_d:gd}function fR(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===hn?'""':"''";if(!t.noCompatMode&&(rR.indexOf(e)!==-1||iR.test(e)))return t.quotingType===hn?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return lR(t,c)}switch(hR(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case yd:return e;case Ia:return"'"+e.replace(/'/g,"''")+"'";case gd:return"|"+Op(e,t.indent)+Tp(Rp(e,s));case _d:return">"+Op(e,t.indent)+Tp(Rp(pR(e,o),s));case ci:return'"'+dR(e)+'"';default:throw new He("impossible error: invalid scalar style")}}()}function Op(t,e){var r=md(t)?String(e):"",i=t[t.length-1]===`
|
28
28
|
`,n=i&&(t[t.length-2]===`
|
29
29
|
`||t===`
|
30
30
|
`),s=n?"+":i?"":"-";return r+s+`
|
31
31
|
`}function Tp(t){return t[t.length-1]===`
|
32
|
-
`?t.slice(0,-1):t}function
|
32
|
+
`?t.slice(0,-1):t}function pR(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
33
33
|
`);return c=c!==-1?c:t.length,r.lastIndex=c,kp(t.slice(0,c),e)}(),n=t[0]===`
|
34
34
|
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
|
35
35
|
`:"")+kp(l,e),n=s}return i}function kp(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
|
36
36
|
`+t.slice(n,s),n=s+1),o=a;return l+=`
|
37
37
|
`,t.length-n>e&&o>n?l+=t.slice(n,o)+`
|
38
|
-
`+t.slice(o+1):l+=t.slice(n),l.slice(1)}function
|
39
|
-
`:""}var SR=wR,ER={dump:SR};function Ha(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 vR=ke,RR=Np,xR=Bp,AR=$p,OR=Gp,TR=Ma,kR=ad.load,CR=ad.loadAll,LR=ER.dump,PR=He,IR={binary:Vp,float:Up,map:Fp,null:jp,pairs:Xp,set:Jp,timestamp:Yp,bool:Hp,int:qp,merge:Kp,omap:Zp,seq:Mp,str:Dp},NR=Ha("safeLoad","load"),DR=Ha("safeLoadAll","loadAll"),MR=Ha("safeDump","dump"),FR={Type:vR,Schema:RR,FAILSAFE_SCHEMA:xR,JSON_SCHEMA:AR,CORE_SCHEMA:OR,DEFAULT_SCHEMA:TR,load:kR,loadAll:CR,dump:LR,YAMLException:PR,types:IR,safeLoad:NR,safeLoadAll:DR,safeDump:MR},qa=FR;var sD=ne(zs(),1),aD=require("fs-extra"),cD=require("fs-extra"),hD=require("picocolors"),xg=require("stream"),Ag=require("util"),mD=require("fs-extra"),bD=require("picocolors"),ED=require("fs-extra"),Fr=ne(require("path"),1),qe=require("fs-extra"),Og=ne(li(),1),Tg=ne(require("path"),1),kg=require("fs-extra"),Cg=require("picocolors"),jt=ne(require("path"),1),Lg=ne(li(),1),Qe=require("fs-extra"),Pg=ne(zs(),1);var _n=ne(require("path"),1),Rt=require("fs-extra"),xi=ne(require("path"),1),xt=require("fs-extra"),bn=ne(require("path"),1),At=require("fs-extra"),An=require("picocolors"),b1=ne(require("gradient-string"),1),w1=ne(li(),1),S1=ne(require("ora"),1),E1=require("semver"),v1=require("picocolors"),HT=Object.create,xc=Object.defineProperty,qT=Object.getOwnPropertyDescriptor,UT=Object.getOwnPropertyNames,$T=Object.getPrototypeOf,GT=Object.prototype.hasOwnProperty,te=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),zT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),WT=(t,e)=>{for(var r in e)xc(t,r,{get:e[r],enumerable:!0})},YT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of UT(e))!GT.call(t,n)&&n!==r&&xc(t,n,{get:()=>e[n],enumerable:!(i=qT(e,n))||i.enumerable});return t},Ks=(t,e,r)=>(r=t!=null?HT($T(t)):{},YT(e||!t||!t.__esModule?xc(r,"default",{value:t,enumerable:!0}):r,t)),W=zT(()=>{}),KT=ee((t,e)=>{W();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),VT=ee((t,e)=>{W();var r=KT().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(D,p,m){D[p]=m.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(D,p,m){return Object.defineProperty(D,p,{value:m,enumerable:!0,configurable:!0,writable:!0}),D[p]}try{d({},"")}catch{d=function(D,p,m){return D[p]=m}}function g(D,p,m,b){var R=p&&p.prototype instanceof O?p:O,E=Object.create(R.prototype),M=new j(b||[]);return l(E,"_invoke",{value:V(D,m,M)}),E}function y(D,p,m){try{return{type:"normal",arg:D.call(p,m)}}catch(b){return{type:"throw",arg:b}}}s.wrap=g;var _="suspendedStart",x="suspendedYield",k="executing",C="completed",T={};function O(){}function I(){}function w(){}var v={};d(v,u,function(){return this});var F=Object.getPrototypeOf,q=F&&F(F(z([])));q&&q!==o&&a.call(q,u)&&(v=q);var P=w.prototype=O.prototype=Object.create(v);function $(D){["next","throw","return"].forEach(function(p){d(D,p,function(m){return this._invoke(p,m)})})}function K(D,p){function m(R,E,M,B){var Z=y(D[R],D,E);if(Z.type!=="throw"){var U=Z.arg,J=U.value;return J&&r(J)=="object"&&a.call(J,"__await")?p.resolve(J.__await).then(function(G){m("next",G,M,B)},function(G){m("throw",G,M,B)}):p.resolve(J).then(function(G){U.value=G,M(U)},function(G){return m("throw",G,M,B)})}B(Z.arg)}var b;l(this,"_invoke",{value:function(R,E){function M(){return new p(function(B,Z){m(R,E,B,Z)})}return b=b?b.then(M,M):M()}})}function V(D,p,m){var b=_;return function(R,E){if(b===k)throw new Error("Generator is already running");if(b===C){if(R==="throw")throw E;return{value:n,done:!0}}for(m.method=R,m.arg=E;;){var M=m.delegate;if(M){var B=N(M,m);if(B){if(B===T)continue;return B}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(b===_)throw b=C,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);b=k;var Z=y(D,p,m);if(Z.type==="normal"){if(b=m.done?C:x,Z.arg===T)continue;return{value:Z.arg,done:m.done}}Z.type==="throw"&&(b=C,m.method="throw",m.arg=Z.arg)}}}function N(D,p){var m=p.method,b=D.iterator[m];if(b===n)return p.delegate=null,m==="throw"&&D.iterator.return&&(p.method="return",p.arg=n,N(D,p),p.method==="throw")||m!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+m+"' method")),T;var R=y(b,D.iterator,p.arg);if(R.type==="throw")return p.method="throw",p.arg=R.arg,p.delegate=null,T;var E=R.arg;return E?E.done?(p[D.resultName]=E.value,p.next=D.nextLoc,p.method!=="return"&&(p.method="next",p.arg=n),p.delegate=null,T):E:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,T)}function A(D){var p={tryLoc:D[0]};1 in D&&(p.catchLoc=D[1]),2 in D&&(p.finallyLoc=D[2],p.afterLoc=D[3]),this.tryEntries.push(p)}function L(D){var p=D.completion||{};p.type="normal",delete p.arg,D.completion=p}function j(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(A,this),this.reset(!0)}function z(D){if(D||D===""){var p=D[u];if(p)return p.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var m=-1,b=function R(){for(;++m<D.length;)if(a.call(D,m))return R.value=D[m],R.done=!1,R;return R.value=n,R.done=!0,R};return b.next=b}}throw new TypeError(r(D)+" is not iterable")}return I.prototype=w,l(P,"constructor",{value:w,configurable:!0}),l(w,"constructor",{value:I,configurable:!0}),I.displayName=d(w,f,"GeneratorFunction"),s.isGeneratorFunction=function(D){var p=typeof D=="function"&&D.constructor;return!!p&&(p===I||(p.displayName||p.name)==="GeneratorFunction")},s.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,w):(D.__proto__=w,d(D,f,"GeneratorFunction")),D.prototype=Object.create(P),D},s.awrap=function(D){return{__await:D}},$(K.prototype),d(K.prototype,h,function(){return this}),s.AsyncIterator=K,s.async=function(D,p,m,b,R){R===void 0&&(R=Promise);var E=new K(g(D,p,m,b),R);return s.isGeneratorFunction(p)?E:E.next().then(function(M){return M.done?M.value:E.next()})},$(P),d(P,f,"Generator"),d(P,u,function(){return this}),d(P,"toString",function(){return"[object Generator]"}),s.keys=function(D){var p=Object(D),m=[];for(var b in p)m.push(b);return m.reverse(),function R(){for(;m.length;){var E=m.pop();if(E in p)return R.value=E,R.done=!1,R}return R.done=!0,R}},s.values=z,j.prototype={constructor:j,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!D)for(var p in this)p.charAt(0)==="t"&&a.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=n)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var p=this;function m(Z,U){return E.type="throw",E.arg=D,p.next=Z,U&&(p.method="next",p.arg=n),!!U}for(var b=this.tryEntries.length-1;b>=0;--b){var R=this.tryEntries[b],E=R.completion;if(R.tryLoc==="root")return m("end");if(R.tryLoc<=this.prev){var M=a.call(R,"catchLoc"),B=a.call(R,"finallyLoc");if(M&&B){if(this.prev<R.catchLoc)return m(R.catchLoc,!0);if(this.prev<R.finallyLoc)return m(R.finallyLoc)}else if(M){if(this.prev<R.catchLoc)return m(R.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return m(R.finallyLoc)}}}},abrupt:function(D,p){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc<=this.prev&&a.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var R=b;break}}R&&(D==="break"||D==="continue")&&R.tryLoc<=p&&p<=R.finallyLoc&&(R=null);var E=R?R.completion:{};return E.type=D,E.arg=p,R?(this.method="next",this.next=R.finallyLoc,T):this.complete(E)},complete:function(D,p){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&p&&(this.next=p),T},finish:function(D){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.finallyLoc===D)return this.complete(m.completion,m.afterLoc),L(m),T}},catch:function(D){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.tryLoc===D){var b=m.completion;if(b.type==="throw"){var R=b.arg;L(m)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(D,p,m){return this.delegate={iterator:z(D),resultName:p,nextLoc:m},this.method==="next"&&(this.arg=n),T}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),ZT=ee((t,e)=>{W();var r=VT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),XT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),JT=ee((t,e)=>{"use strict";W();var r=XT(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},l=(h,f,...d)=>{o++;let g=r(h,...d);f(g),g.then(a,a)},c=(h,f,...d)=>{o<n?l(h,f,...d):s.push(l.bind(null,h,f,...d))},u=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(u,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),u};e.exports=i,e.exports.default=i}),QT=ee((t,e)=>{"use strict";W();var r=JT(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,l)=>l(await a),s=async a=>{let l=await Promise.all(a);if(l[1]===!0)throw new i(l[0]);return!1},o=async(a,l,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let u=r(c.concurrency),h=[...a].map(d=>[d,u(n,d,l)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),ek=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=QT(),o=n(i.stat),a=n(i.lstat),l={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in l))throw new Error(`Invalid type specified: ${h}`)}var u=(h,f)=>h===void 0||f[l[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async g=>{try{let y=await d(r.resolve(f.cwd,g));return u(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let g of h)try{let y=d(r.resolve(f.cwd,g));if(u(f.type,y))return g}catch{}}}),tk=ee((t,e)=>{"use strict";W();var r=te("fs"),{promisify:i}=te("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),rk=ee((t,e)=>{"use strict";W();var r=te("path"),i=ek(),n=tk(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=async f=>{if(typeof o!="function")return i(u,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.sync=(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(u,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),wn=ee((t,e)=>{"use strict";W();var r=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"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Ac=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),l=Symbol("emittedEnd"),c=Symbol("emittingEnd"),u=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),_=Symbol("decoder"),x=Symbol("flowing"),k=Symbol("paused"),C=Symbol("resume"),T=Symbol("buffer"),O=Symbol("pipes"),I=Symbol("bufferLength"),w=Symbol("bufferPush"),v=Symbol("bufferShift"),F=Symbol("objectMode"),q=Symbol("destroyed"),P=Symbol("emitData"),$=Symbol("emitEnd"),K=Symbol("emitEnd2"),V=Symbol("async"),N=R=>Promise.resolve().then(R),A=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=A&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),j=A&&Symbol.iterator||Symbol("iterator not implemented"),z=R=>R==="end"||R==="finish"||R==="prefinish",D=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,p=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),m=class{constructor(R,E,M){this.src=R,this.dest=E,this.opts=M,this.ondrain=()=>R[C](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},b=class extends m{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,E,M){super(R,E,M),this.proxyErrors=B=>E.emit("error",B),R.on("error",this.proxyErrors)}};e.exports=class og extends n{constructor(E){super(),this[x]=!1,this[k]=!1,this[O]=[],this[T]=[],this[F]=E&&E.objectMode||!1,this[F]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=E&&!!E.async||!1,this[_]=this[y]?new s(this[y]):null,this[o]=!1,this[l]=!1,this[c]=!1,this[h]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[I]=0,this[q]=!1,E&&E.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[T]}),E&&E.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[O]})}get bufferLength(){return this[I]}get encoding(){return this[y]}set encoding(E){if(this[F])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[_]&&this[_].lastNeed||this[I]))throw new Error("cannot change encoding");this[y]!==E&&(this[_]=E?new s(E):null,this[T].length&&(this[T]=this[T].map(M=>this[_].write(M)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[F]}set objectMode(E){this[F]=this[F]||!!E}get async(){return this[V]}set async(E){this[V]=this[V]||!!E}write(E,M,B){if(this[o])throw new Error("write after end");if(this[q])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof M=="function"&&(B=M,M="utf8"),M||(M="utf8");let Z=this[V]?N:U=>U();return!this[F]&&!Buffer.isBuffer(E)&&(p(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):D(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[F]?(this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[w](E),this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing):E.length?(typeof E=="string"&&!(M===this[y]&&!this[_].lastNeed)&&(E=Buffer.from(E,M)),Buffer.isBuffer(E)&&this[y]&&(E=this[_].write(E)),this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[w](E),this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing):(this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing)}read(E){if(this[q])return null;if(this[I]===0||E===0||E>this[I])return this[a](),null;this[F]&&(E=null),this[T].length>1&&!this[F]&&(this.encoding?this[T]=[this[T].join("")]:this[T]=[Buffer.concat(this[T],this[I])]);let M=this[f](E||null,this[T][0]);return this[a](),M}[f](E,M){return E===M.length||E===null?this[v]():(this[T][0]=M.slice(E),M=M.slice(0,E),this[I]-=E),this.emit("data",M),!this[T].length&&!this[o]&&this.emit("drain"),M}end(E,M,B){return typeof E=="function"&&(B=E,E=null),typeof M=="function"&&(B=M,M="utf8"),E&&this.write(E,M),B&&this.once("end",B),this[o]=!0,this.writable=!1,(this.flowing||!this[k])&&this[a](),this}[C](){this[q]||(this[k]=!1,this[x]=!0,this.emit("resume"),this[T].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[C]()}pause(){this[x]=!1,this[k]=!0}get destroyed(){return this[q]}get flowing(){return this[x]}get paused(){return this[k]}[w](E){this[F]?this[I]+=1:this[I]+=E.length,this[T].push(E)}[v](){return this[T].length&&(this[F]?this[I]-=1:this[I]-=this[T][0].length),this[T].shift()}[d](E){do;while(this[g](this[v]()));!E&&!this[T].length&&!this[o]&&this.emit("drain")}[g](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,M){if(this[q])return;let B=this[l];return M=M||{},E===r.stdout||E===r.stderr?M.end=!1:M.end=M.end!==!1,M.proxyErrors=!!M.proxyErrors,B?M.end&&E.end():(this[O].push(M.proxyErrors?new b(this,E,M):new m(this,E,M)),this[V]?N(()=>this[C]()):this[C]()),E}unpipe(E){let M=this[O].find(B=>B.dest===E);M&&(this[O].splice(this[O].indexOf(M),1),M.unpipe())}addListener(E,M){return this.on(E,M)}on(E,M){let B=super.on(E,M);return E==="data"&&!this[O].length&&!this.flowing?this[C]():E==="readable"&&this[I]!==0?super.emit("readable"):z(E)&&this[l]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[u]&&(this[V]?N(()=>M.call(this,this[u])):M.call(this,this[u])),B}get emittedEnd(){return this[l]}[a](){!this[c]&&!this[l]&&!this[q]&&this[T].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,M,...B){if(E!=="error"&&E!=="close"&&E!==q&&this[q])return;if(E==="data")return M?this[V]?N(()=>this[P](M)):this[P](M):!1;if(E==="end")return this[$]();if(E==="close"){if(this[h]=!0,!this[l]&&!this[q])return;let U=super.emit("close");return this.removeAllListeners("close"),U}else if(E==="error"){this[u]=M;let U=super.emit("error",M);return this[a](),U}else if(E==="resume"){let U=super.emit("resume");return this[a](),U}else if(E==="finish"||E==="prefinish"){let U=super.emit(E);return this.removeAllListeners(E),U}let Z=super.emit(E,M,...B);return this[a](),Z}[P](E){for(let B of this[O])B.dest.write(E)===!1&&this.pause();let M=super.emit("data",E);return this[a](),M}[$](){this[l]||(this[l]=!0,this.readable=!1,this[V]?N(()=>this[K]()):this[K]())}[K](){if(this[_]){let M=this[_].end();if(M){for(let B of this[O])B.dest.write(M);super.emit("data",M)}}for(let M of this[O])M.end();let E=super.emit("end");return this.removeAllListeners("end"),E}collect(){let E=[];this[F]||(E.dataLength=0);let M=this.promise();return this.on("data",B=>{E.push(B),this[F]||(E.dataLength+=B.length)}),M.then(()=>E)}concat(){return this[F]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[F]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,M)=>{this.on(q,()=>M(new Error("stream destroyed"))),this.on("error",B=>M(B)),this.on("end",()=>E())})}[L](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let M=null,B=null,Z=re=>{this.removeListener("data",U),this.removeListener("end",J),B(re)},U=re=>{this.removeListener("error",Z),this.removeListener("end",J),this.pause(),M({value:re,done:!!this[o]})},J=()=>{this.removeListener("error",Z),this.removeListener("data",U),M({done:!0})},G=()=>Z(new Error("stream destroyed"));return new Promise((re,ce)=>{B=ce,M=re,this.once(q,G),this.once("error",Z),this.once("end",J),this.once("data",U)})}}}[j](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[q]?(E?this.emit("error",E):this.emit(q),this):(this[q]=!0,this[T].length=0,this[I]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(q),this)}static isStream(E){return!!E&&(E instanceof og||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),ik=ee((t,e)=>{W();var r=te("zlib").constants||{ZLIB_VERNUM:4736};e.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},r))}),ag=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),l=Symbol("emittedEnd"),c=Symbol("emittingEnd"),u=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),_=Symbol("decoder"),x=Symbol("flowing"),k=Symbol("paused"),C=Symbol("resume"),T=Symbol("bufferLength"),O=Symbol("bufferPush"),I=Symbol("bufferShift"),w=Symbol("objectMode"),v=Symbol("destroyed"),F=Symbol("emitData"),q=Symbol("emitEnd"),P=Symbol("emitEnd2"),$=Symbol("async"),K=m=>Promise.resolve().then(m),V=global._MP_NO_ITERATOR_SYMBOLS_!=="1",N=V&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A=V&&Symbol.iterator||Symbol("iterator not implemented"),L=m=>m==="end"||m==="finish"||m==="prefinish",j=m=>m instanceof ArrayBuffer||typeof m=="object"&&m.constructor&&m.constructor.name==="ArrayBuffer"&&m.byteLength>=0,z=m=>!Buffer.isBuffer(m)&&ArrayBuffer.isView(m),D=class{constructor(m,b,R){this.src=m,this.dest=b,this.opts=R,this.ondrain=()=>m[C](),b.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},p=class extends D{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(m,b,R){super(m,b,R),this.proxyErrors=E=>b.emit("error",E),m.on("error",this.proxyErrors)}};e.exports=class lg extends n{constructor(b){super(),this[x]=!1,this[k]=!1,this.pipes=[],this.buffer=[],this[w]=b&&b.objectMode||!1,this[w]?this[y]=null:this[y]=b&&b.encoding||null,this[y]==="buffer"&&(this[y]=null),this[$]=b&&!!b.async||!1,this[_]=this[y]?new s(this[y]):null,this[o]=!1,this[l]=!1,this[c]=!1,this[h]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[T]=0,this[v]=!1}get bufferLength(){return this[T]}get encoding(){return this[y]}set encoding(b){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&b!==this[y]&&(this[_]&&this[_].lastNeed||this[T]))throw new Error("cannot change encoding");this[y]!==b&&(this[_]=b?new s(b):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[_].write(R)))),this[y]=b}setEncoding(b){this.encoding=b}get objectMode(){return this[w]}set objectMode(b){this[w]=this[w]||!!b}get async(){return this[$]}set async(b){this[$]=this[$]||!!b}write(b,R,E){if(this[o])throw new Error("write after end");if(this[v])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(E=R,R="utf8"),R||(R="utf8");let M=this[$]?K:B=>B();return!this[w]&&!Buffer.isBuffer(b)&&(z(b)?b=Buffer.from(b.buffer,b.byteOffset,b.byteLength):j(b)?b=Buffer.from(b):typeof b!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[T]!==0&&this[d](!0),this.flowing?this.emit("data",b):this[O](b),this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing):b.length?(typeof b=="string"&&!(R===this[y]&&!this[_].lastNeed)&&(b=Buffer.from(b,R)),Buffer.isBuffer(b)&&this[y]&&(b=this[_].write(b)),this.flowing&&this[T]!==0&&this[d](!0),this.flowing?this.emit("data",b):this[O](b),this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing):(this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing)}read(b){if(this[v])return null;if(this[T]===0||b===0||b>this[T])return this[a](),null;this[w]&&(b=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[T])]);let R=this[f](b||null,this.buffer[0]);return this[a](),R}[f](b,R){return b===R.length||b===null?this[I]():(this.buffer[0]=R.slice(b),R=R.slice(0,b),this[T]-=b),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(b,R,E){return typeof b=="function"&&(E=b,b=null),typeof R=="function"&&(E=R,R="utf8"),b&&this.write(b,R),E&&this.once("end",E),this[o]=!0,this.writable=!1,(this.flowing||!this[k])&&this[a](),this}[C](){this[v]||(this[k]=!1,this[x]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[C]()}pause(){this[x]=!1,this[k]=!0}get destroyed(){return this[v]}get flowing(){return this[x]}get paused(){return this[k]}[O](b){this[w]?this[T]+=1:this[T]+=b.length,this.buffer.push(b)}[I](){return this.buffer.length&&(this[w]?this[T]-=1:this[T]-=this.buffer[0].length),this.buffer.shift()}[d](b){do;while(this[g](this[I]()));!b&&!this.buffer.length&&!this[o]&&this.emit("drain")}[g](b){return b?(this.emit("data",b),this.flowing):!1}pipe(b,R){if(this[v])return;let E=this[l];return R=R||{},b===r.stdout||b===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,E?R.end&&b.end():(this.pipes.push(R.proxyErrors?new p(this,b,R):new D(this,b,R)),this[$]?K(()=>this[C]()):this[C]()),b}unpipe(b){let R=this.pipes.find(E=>E.dest===b);R&&(this.pipes.splice(this.pipes.indexOf(R),1),R.unpipe())}addListener(b,R){return this.on(b,R)}on(b,R){let E=super.on(b,R);return b==="data"&&!this.pipes.length&&!this.flowing?this[C]():b==="readable"&&this[T]!==0?super.emit("readable"):L(b)&&this[l]?(super.emit(b),this.removeAllListeners(b)):b==="error"&&this[u]&&(this[$]?K(()=>R.call(this,this[u])):R.call(this,this[u])),E}get emittedEnd(){return this[l]}[a](){!this[c]&&!this[l]&&!this[v]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(b,R,...E){if(b!=="error"&&b!=="close"&&b!==v&&this[v])return;if(b==="data")return R?this[$]?K(()=>this[F](R)):this[F](R):!1;if(b==="end")return this[q]();if(b==="close"){if(this[h]=!0,!this[l]&&!this[v])return;let B=super.emit("close");return this.removeAllListeners("close"),B}else if(b==="error"){this[u]=R;let B=super.emit("error",R);return this[a](),B}else if(b==="resume"){let B=super.emit("resume");return this[a](),B}else if(b==="finish"||b==="prefinish"){let B=super.emit(b);return this.removeAllListeners(b),B}let M=super.emit(b,R,...E);return this[a](),M}[F](b){for(let E of this.pipes)E.dest.write(b)===!1&&this.pause();let R=super.emit("data",b);return this[a](),R}[q](){this[l]||(this[l]=!0,this.readable=!1,this[$]?K(()=>this[P]()):this[P]())}[P](){if(this[_]){let R=this[_].end();if(R){for(let E of this.pipes)E.dest.write(R);super.emit("data",R)}}for(let R of this.pipes)R.end();let b=super.emit("end");return this.removeAllListeners("end"),b}collect(){let b=[];this[w]||(b.dataLength=0);let R=this.promise();return this.on("data",E=>{b.push(E),this[w]||(b.dataLength+=E.length)}),R.then(()=>b)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(b=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?b.join(""):Buffer.concat(b,b.dataLength))}promise(){return new Promise((b,R)=>{this.on(v,()=>R(new Error("stream destroyed"))),this.on("error",E=>R(E)),this.on("end",()=>b())})}[N](){return{next:()=>{let b=this.read();if(b!==null)return Promise.resolve({done:!1,value:b});if(this[o])return Promise.resolve({done:!0});let R=null,E=null,M=J=>{this.removeListener("data",B),this.removeListener("end",Z),E(J)},B=J=>{this.removeListener("error",M),this.removeListener("end",Z),this.pause(),R({value:J,done:!!this[o]})},Z=()=>{this.removeListener("error",M),this.removeListener("data",B),R({done:!0})},U=()=>M(new Error("stream destroyed"));return new Promise((J,G)=>{E=G,R=J,this.once(v,U),this.once("error",M),this.once("end",Z),this.once("data",B)})}}}[A](){return{next:()=>{let b=this.read();return{value:b,done:b===null}}}}destroy(b){return this[v]?(b?this.emit("error",b):this.emit(v),this):(this[v]=!0,this.buffer.length=0,this[T]=0,typeof this.close=="function"&&!this[h]&&this.close(),b?this.emit("error",b):this.emit(v),this)}static isStream(b){return!!b&&(b instanceof lg||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),cg=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=ik(),s=ag(),o=r.concat,a=Symbol("_superWrite"),l=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),u=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),g=Symbol("onError"),y=Symbol("sawError"),_=Symbol("level"),x=Symbol("strategy"),k=Symbol("ended"),C=Symbol("_defaultFullFlush"),T=class extends s{constructor(L,j){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[k]=!1,this[c]=L,this[u]=L.flush,this[h]=L.finishFlush;try{this[d]=new i[j](L)}catch(z){throw new l(z)}this[g]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[g](new l(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[u]:L})))}end(L,j,z){return L&&this.write(L,j),this.flush(this[h]),this[k]=!0,super.end(null,null,z)}get ended(){return this[k]}write(L,j,z){if(typeof j=="function"&&(z=j,j="utf8"),typeof L=="string"&&(L=r.from(L,j)),this[y])return;e(this[d],"zlib binding closed");let D=this[d]._handle,p=D.close;D.close=()=>{};let m=this[d].close;this[d].close=()=>{},r.concat=E=>E;let b;try{let E=typeof L[u]=="number"?L[u]:this[u];b=this[d]._processChunk(L,E),r.concat=o}catch(E){r.concat=o,this[g](new l(E))}finally{this[d]&&(this[d]._handle=D,D.close=p,this[d].close=m,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",E=>this[g](new l(E)));let R;if(b)if(Array.isArray(b)&&b.length>0){R=this[a](r.from(b[0]));for(let E=1;E<b.length;E++)R=this[a](b[E])}else R=this[a](r.from(b));return z&&z(),R}[a](L){return super.write(L)}},O=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.Z_NO_FLUSH,L.finishFlush=L.finishFlush||n.Z_FINISH,super(L,j),this[f]=n.Z_FULL_FLUSH,this[_]=L.level,this[x]=L.strategy}params(L,j){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[_]!==L||this[x]!==j){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(D,p)=>{this.flush(D),p()};try{this[d].params(L,j)}finally{this[d].flush=z}this[d]&&(this[_]=L,this[x]=j)}}}},I=class extends O{constructor(L){super(L,"Deflate")}},w=class extends O{constructor(L){super(L,"Inflate")}},v=Symbol("_portable"),F=class extends O{constructor(L){super(L,"Gzip"),this[v]=L&&!!L.portable}[a](L){return this[v]?(this[v]=!1,L[9]=255,super[a](L)):super[a](L)}},q=class extends O{constructor(L){super(L,"Gunzip")}},P=class extends O{constructor(L){super(L,"DeflateRaw")}},$=class extends O{constructor(L){super(L,"InflateRaw")}},K=class extends O{constructor(L){super(L,"Unzip")}},V=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||n.BROTLI_OPERATION_FINISH,super(L,j),this[f]=n.BROTLI_OPERATION_FLUSH}},N=class extends V{constructor(L){super(L,"BrotliCompress")}},A=class extends V{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=I,t.Inflate=w,t.Gzip=F,t.Gunzip=q,t.DeflateRaw=P,t.InflateRaw=$,t.Unzip=K,typeof i.BrotliCompress=="function"?(t.BrotliCompress=N,t.BrotliDecompress=A):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Sn=ee((t,e)=>{W();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Oc=ee((t,e)=>{"use strict";W();var r=Ac(),i=Sn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.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=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,l=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,l-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),ug=ee(t=>{"use strict";W(),t.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"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),nk=ee((t,e)=>{"use strict";W();var r=(u,h)=>{if(Number.isSafeInteger(u))u<0?n(u,h):i(u,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(u,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=u&255,u=Math.floor(u/256)},n=(u,h)=>{h[0]=255;var f=!1;u=u*-1;for(var d=h.length;d>1;d--){var g=u&255;u=Math.floor(u/256),f?h[d-1]=l(g):g===0?h[d-1]=0:(f=!0,h[d-1]=c(g))}},s=u=>{let h=u[0],f=h===128?a(u.slice(1,u.length)):h===255?o(u):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=u=>{for(var h=u.length,f=0,d=!1,g=h-1;g>-1;g--){var y=u[g],_;d?_=l(y):y===0?_=y:(d=!0,_=c(y)),_!==0&&(f-=_*Math.pow(256,h-g-1))}return f},a=u=>{for(var h=u.length,f=0,d=h-1;d>-1;d--){var g=u[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},l=u=>(255^u)&255,c=u=>(255^u)+1&255;e.exports={encode:r,parse:s}}),En=ee((t,e)=>{"use strict";W();var r=ug(),i=te("path").posix,n=nk(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(w,v,F,q){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[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,v||0,F,q):w&&this.set(w)}decode(w,v,F,q){if(v||(v=0),!w||!(w.length>=v+512))throw new Error("need 512 bytes for header");if(this.path=c(w,v,100),this.mode=f(w,v+100,8),this.uid=f(w,v+108,8),this.gid=f(w,v+116,8),this.size=f(w,v+124,12),this.mtime=u(w,v+136,12),this.cksum=f(w,v+148,12),this[s](F),this[s](q,!0),this[o]=c(w,v+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(w,v+157,100),w.slice(v+257,v+265).toString()==="ustar\x0000")if(this.uname=c(w,v+265,32),this.gname=c(w,v+297,32),this.devmaj=f(w,v+329,8),this.devmin=f(w,v+337,8),w[v+475]!==0){let $=c(w,v+345,155);this.path=$+"/"+this.path}else{let $=c(w,v+345,130);$&&(this.path=$+"/"+this.path),this.atime=u(w,v+476,12),this.ctime=u(w,v+488,12)}let P=8*32;for(let $=v;$<v+148;$++)P+=w[$];for(let $=v+156;$<v+512;$++)P+=w[$];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[s](w,v){for(let F in w)w[F]!==null&&w[F]!==void 0&&!(v&&F==="path")&&(this[F]=w[F])}encode(w,v){if(w||(w=this.block=Buffer.alloc(512),v=0),v||(v=0),!(w.length>=v+512))throw new Error("need 512 bytes for header");let F=this.ctime||this.atime?130:155,q=l(this.path||"",F),P=q[0],$=q[1];this.needPax=q[2],this.needPax=I(w,v,100,P)||this.needPax,this.needPax=_(w,v+100,8,this.mode)||this.needPax,this.needPax=_(w,v+108,8,this.uid)||this.needPax,this.needPax=_(w,v+116,8,this.gid)||this.needPax,this.needPax=_(w,v+124,12,this.size)||this.needPax,this.needPax=T(w,v+136,12,this.mtime)||this.needPax,w[v+156]=this[o].charCodeAt(0),this.needPax=I(w,v+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",v+257,8),this.needPax=I(w,v+265,32,this.uname)||this.needPax,this.needPax=I(w,v+297,32,this.gname)||this.needPax,this.needPax=_(w,v+329,8,this.devmaj)||this.needPax,this.needPax=_(w,v+337,8,this.devmin)||this.needPax,this.needPax=I(w,v+345,F,$)||this.needPax,w[v+475]!==0?this.needPax=I(w,v+345,155,$)||this.needPax:(this.needPax=I(w,v+345,130,$)||this.needPax,this.needPax=T(w,v+476,12,this.atime)||this.needPax,this.needPax=T(w,v+488,12,this.ctime)||this.needPax);let K=8*32;for(let V=v;V<v+148;V++)K+=w[V];for(let V=v+156;V<v+512;V++)K+=w[V];return this.cksum=K,_(w,v+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let v in w)w[v]!==null&&w[v]!==void 0&&(this[v]=w[v])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(w){r.code.has(w)?this[o]=r.code.get(w):this[o]=w}},l=(w,v)=>{let F=w,q="",P,$=i.parse(w).root||".";if(Buffer.byteLength(F)<100)P=[F,q,!1];else{q=i.dirname(F),F=i.basename(F);do Buffer.byteLength(F)<=100&&Buffer.byteLength(q)<=v?P=[F,q,!1]:Buffer.byteLength(F)>100&&Buffer.byteLength(q)<=v?P=[F.slice(0,100-1),q,!0]:(F=i.join(i.basename(q),F),q=i.dirname(q));while(q!==$&&!P);P||(P=[w.slice(0,100-1),"",!0])}return P},c=(w,v,F)=>w.slice(v,v+F).toString("utf8").replace(/\0.*/,""),u=(w,v,F)=>h(f(w,v,F)),h=w=>w===null?null:new Date(w*1e3),f=(w,v,F)=>w[v]&128?n.parse(w.slice(v,v+F)):g(w,v,F),d=w=>isNaN(w)?null:w,g=(w,v,F)=>d(parseInt(w.slice(v,v+F).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},_=(w,v,F,q)=>q===null?!1:q>y[F]||q<0?(n.encode(q,w.slice(v,v+F)),!0):(x(w,v,F,q),!1),x=(w,v,F,q)=>w.write(k(q,F),v,F,"ascii"),k=(w,v)=>C(Math.floor(w).toString(8),v),C=(w,v)=>(w.length===v-1?w:new Array(v-w.length-1).join("0")+w+" ")+"\0",T=(w,v,F,q)=>q===null?!1:_(w,v,F,q.getTime()/1e3),O=new Array(156).join("\0"),I=(w,v,F,q)=>q===null?!1:(w.write(q+O,v,F,"utf8"),q.length!==Buffer.byteLength(q)||q.length>F);e.exports=a}),Tc=ee((t,e)=>{"use strict";W();var r=En(),i=te("path"),n=class{constructor(l,c){this.atime=l.atime||null,this.charset=l.charset||null,this.comment=l.comment||null,this.ctime=l.ctime||null,this.gid=l.gid||null,this.gname=l.gname||null,this.linkpath=l.linkpath||null,this.mtime=l.mtime||null,this.path=l.path||null,this.size=l.size||null,this.uid=l.uid||null,this.uname=l.uname||null,this.dev=l.dev||null,this.ino=l.ino||null,this.nlink=l.nlink||null,this.global=c||!1}encode(){let l=this.encodeBody();if(l==="")return null;let c=Buffer.byteLength(l),u=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(u);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,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(h),h.write(l,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}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(l){if(this[l]===null||this[l]===void 0)return"";let c=this[l]instanceof Date?this[l].getTime()/1e3:this[l],u=" "+(l==="dev"||l==="ino"||l==="nlink"?"SCHILY.":"")+l+"="+c+`
|
38
|
+
`+t.slice(o+1):l+=t.slice(n),l.slice(1)}function dR(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=ln(t,n),i=Ce[r],!i&&fn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||sR(r);return e}function mR(t,e,r){var i="",n=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)),(Nt(t,e,a,!1,!1)||typeof a=="undefined"&&Nt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Cp(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(Nt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Nt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Pa(t,e)),t.dump&&un===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function yR(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Nt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Nt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function gR(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new He("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Pa(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Nt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&un===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Pa(t,e)),Nt(t,e+1,u,!0,h)&&(t.dump&&un===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Lp(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[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(l=t.styleMap[a.tag]||a.defaultStyle,ld.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(cd.call(a.represent,l))i=a.represent[l](e,l);else throw new He("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function Nt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Lp(t,r,!1)||Lp(t,r,!0);var a=ld.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(gR(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(yR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Cp(t,e-1,t.dump,n):Cp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(mR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&fR(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new He("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 _R(t,e){var r=[],i=[],n,s;for(Na(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Na(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Na(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Na(t[i[n]],e,r)}function bR(t,e){e=e||{};var r=new aR(e);r.noRefs||_R(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Nt(r,0,i,!0,!0)?r.dump+`
|
39
|
+
`:""}var wR=bR,SR={dump:wR};function Ha(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 ER=ke,vR=Np,RR=Bp,xR=$p,AR=Gp,OR=Ma,TR=ad.load,kR=ad.loadAll,CR=SR.dump,LR=He,PR={binary:Vp,float:Up,map:Fp,null:jp,pairs:Xp,set:Jp,timestamp:Yp,bool:Hp,int:qp,merge:Kp,omap:Zp,seq:Mp,str:Dp},IR=Ha("safeLoad","load"),NR=Ha("safeLoadAll","loadAll"),DR=Ha("safeDump","dump"),MR={Type:ER,Schema:vR,FAILSAFE_SCHEMA:RR,JSON_SCHEMA:xR,CORE_SCHEMA:AR,DEFAULT_SCHEMA:OR,load:TR,loadAll:kR,dump:CR,YAMLException:LR,types:PR,safeLoad:IR,safeLoadAll:NR,safeDump:DR},qa=MR;var sD=ne(zs(),1),aD=require("fs-extra"),cD=require("fs-extra"),hD=require("picocolors"),xg=require("stream"),Ag=require("util"),mD=require("fs-extra"),bD=require("picocolors"),ED=require("fs-extra"),Fr=ne(require("path"),1),qe=require("fs-extra"),Og=ne(li(),1),Tg=ne(require("path"),1),kg=require("fs-extra"),Cg=require("picocolors"),jt=ne(require("path"),1),Lg=ne(li(),1),Qe=require("fs-extra"),Pg=ne(zs(),1);var _n=ne(require("path"),1),Rt=require("fs-extra"),xi=ne(require("path"),1),xt=require("fs-extra"),bn=ne(require("path"),1),At=require("fs-extra"),An=require("picocolors"),_1=ne(require("gradient-string"),1),b1=ne(li(),1),w1=ne(require("ora"),1),S1=require("semver"),E1=require("picocolors"),jT=Object.create,xc=Object.defineProperty,HT=Object.getOwnPropertyDescriptor,qT=Object.getOwnPropertyNames,UT=Object.getPrototypeOf,$T=Object.prototype.hasOwnProperty,te=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),GT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zT=(t,e)=>{for(var r in e)xc(t,r,{get:e[r],enumerable:!0})},WT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qT(e))!$T.call(t,n)&&n!==r&&xc(t,n,{get:()=>e[n],enumerable:!(i=HT(e,n))||i.enumerable});return t},Ks=(t,e,r)=>(r=t!=null?jT(UT(t)):{},WT(e||!t||!t.__esModule?xc(r,"default",{value:t,enumerable:!0}):r,t)),W=GT(()=>{}),YT=ee((t,e)=>{W();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),KT=ee((t,e)=>{W();var r=YT().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(D,p,m){D[p]=m.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(D,p,m){return Object.defineProperty(D,p,{value:m,enumerable:!0,configurable:!0,writable:!0}),D[p]}try{d({},"")}catch{d=function(D,p,m){return D[p]=m}}function g(D,p,m,b){var R=p&&p.prototype instanceof O?p:O,E=Object.create(R.prototype),M=new j(b||[]);return l(E,"_invoke",{value:V(D,m,M)}),E}function y(D,p,m){try{return{type:"normal",arg:D.call(p,m)}}catch(b){return{type:"throw",arg:b}}}s.wrap=g;var _="suspendedStart",x="suspendedYield",k="executing",C="completed",T={};function O(){}function I(){}function w(){}var v={};d(v,u,function(){return this});var F=Object.getPrototypeOf,q=F&&F(F(z([])));q&&q!==o&&a.call(q,u)&&(v=q);var P=w.prototype=O.prototype=Object.create(v);function $(D){["next","throw","return"].forEach(function(p){d(D,p,function(m){return this._invoke(p,m)})})}function K(D,p){function m(R,E,M,B){var Z=y(D[R],D,E);if(Z.type!=="throw"){var U=Z.arg,J=U.value;return J&&r(J)=="object"&&a.call(J,"__await")?p.resolve(J.__await).then(function(G){m("next",G,M,B)},function(G){m("throw",G,M,B)}):p.resolve(J).then(function(G){U.value=G,M(U)},function(G){return m("throw",G,M,B)})}B(Z.arg)}var b;l(this,"_invoke",{value:function(R,E){function M(){return new p(function(B,Z){m(R,E,B,Z)})}return b=b?b.then(M,M):M()}})}function V(D,p,m){var b=_;return function(R,E){if(b===k)throw new Error("Generator is already running");if(b===C){if(R==="throw")throw E;return{value:n,done:!0}}for(m.method=R,m.arg=E;;){var M=m.delegate;if(M){var B=N(M,m);if(B){if(B===T)continue;return B}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(b===_)throw b=C,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);b=k;var Z=y(D,p,m);if(Z.type==="normal"){if(b=m.done?C:x,Z.arg===T)continue;return{value:Z.arg,done:m.done}}Z.type==="throw"&&(b=C,m.method="throw",m.arg=Z.arg)}}}function N(D,p){var m=p.method,b=D.iterator[m];if(b===n)return p.delegate=null,m==="throw"&&D.iterator.return&&(p.method="return",p.arg=n,N(D,p),p.method==="throw")||m!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+m+"' method")),T;var R=y(b,D.iterator,p.arg);if(R.type==="throw")return p.method="throw",p.arg=R.arg,p.delegate=null,T;var E=R.arg;return E?E.done?(p[D.resultName]=E.value,p.next=D.nextLoc,p.method!=="return"&&(p.method="next",p.arg=n),p.delegate=null,T):E:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,T)}function A(D){var p={tryLoc:D[0]};1 in D&&(p.catchLoc=D[1]),2 in D&&(p.finallyLoc=D[2],p.afterLoc=D[3]),this.tryEntries.push(p)}function L(D){var p=D.completion||{};p.type="normal",delete p.arg,D.completion=p}function j(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(A,this),this.reset(!0)}function z(D){if(D||D===""){var p=D[u];if(p)return p.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var m=-1,b=function R(){for(;++m<D.length;)if(a.call(D,m))return R.value=D[m],R.done=!1,R;return R.value=n,R.done=!0,R};return b.next=b}}throw new TypeError(r(D)+" is not iterable")}return I.prototype=w,l(P,"constructor",{value:w,configurable:!0}),l(w,"constructor",{value:I,configurable:!0}),I.displayName=d(w,f,"GeneratorFunction"),s.isGeneratorFunction=function(D){var p=typeof D=="function"&&D.constructor;return!!p&&(p===I||(p.displayName||p.name)==="GeneratorFunction")},s.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,w):(D.__proto__=w,d(D,f,"GeneratorFunction")),D.prototype=Object.create(P),D},s.awrap=function(D){return{__await:D}},$(K.prototype),d(K.prototype,h,function(){return this}),s.AsyncIterator=K,s.async=function(D,p,m,b,R){R===void 0&&(R=Promise);var E=new K(g(D,p,m,b),R);return s.isGeneratorFunction(p)?E:E.next().then(function(M){return M.done?M.value:E.next()})},$(P),d(P,f,"Generator"),d(P,u,function(){return this}),d(P,"toString",function(){return"[object Generator]"}),s.keys=function(D){var p=Object(D),m=[];for(var b in p)m.push(b);return m.reverse(),function R(){for(;m.length;){var E=m.pop();if(E in p)return R.value=E,R.done=!1,R}return R.done=!0,R}},s.values=z,j.prototype={constructor:j,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!D)for(var p in this)p.charAt(0)==="t"&&a.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=n)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var p=this;function m(Z,U){return E.type="throw",E.arg=D,p.next=Z,U&&(p.method="next",p.arg=n),!!U}for(var b=this.tryEntries.length-1;b>=0;--b){var R=this.tryEntries[b],E=R.completion;if(R.tryLoc==="root")return m("end");if(R.tryLoc<=this.prev){var M=a.call(R,"catchLoc"),B=a.call(R,"finallyLoc");if(M&&B){if(this.prev<R.catchLoc)return m(R.catchLoc,!0);if(this.prev<R.finallyLoc)return m(R.finallyLoc)}else if(M){if(this.prev<R.catchLoc)return m(R.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return m(R.finallyLoc)}}}},abrupt:function(D,p){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc<=this.prev&&a.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var R=b;break}}R&&(D==="break"||D==="continue")&&R.tryLoc<=p&&p<=R.finallyLoc&&(R=null);var E=R?R.completion:{};return E.type=D,E.arg=p,R?(this.method="next",this.next=R.finallyLoc,T):this.complete(E)},complete:function(D,p){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&p&&(this.next=p),T},finish:function(D){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.finallyLoc===D)return this.complete(m.completion,m.afterLoc),L(m),T}},catch:function(D){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.tryLoc===D){var b=m.completion;if(b.type==="throw"){var R=b.arg;L(m)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(D,p,m){return this.delegate={iterator:z(D),resultName:p,nextLoc:m},this.method==="next"&&(this.arg=n),T}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),VT=ee((t,e)=>{W();var r=KT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),ZT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),XT=ee((t,e)=>{"use strict";W();var r=ZT(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},l=(h,f,...d)=>{o++;let g=r(h,...d);f(g),g.then(a,a)},c=(h,f,...d)=>{o<n?l(h,f,...d):s.push(l.bind(null,h,f,...d))},u=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(u,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),u};e.exports=i,e.exports.default=i}),JT=ee((t,e)=>{"use strict";W();var r=XT(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,l)=>l(await a),s=async a=>{let l=await Promise.all(a);if(l[1]===!0)throw new i(l[0]);return!1},o=async(a,l,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let u=r(c.concurrency),h=[...a].map(d=>[d,u(n,d,l)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),QT=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=JT(),o=n(i.stat),a=n(i.lstat),l={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in l))throw new Error(`Invalid type specified: ${h}`)}var u=(h,f)=>h===void 0||f[l[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async g=>{try{let y=await d(r.resolve(f.cwd,g));return u(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let g of h)try{let y=d(r.resolve(f.cwd,g));if(u(f.type,y))return g}catch{}}}),ek=ee((t,e)=>{"use strict";W();var r=te("fs"),{promisify:i}=te("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),tk=ee((t,e)=>{"use strict";W();var r=te("path"),i=QT(),n=ek(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=async f=>{if(typeof o!="function")return i(u,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.sync=(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(u,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),wn=ee((t,e)=>{"use strict";W();var r=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"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Ac=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),l=Symbol("emittedEnd"),c=Symbol("emittingEnd"),u=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),_=Symbol("decoder"),x=Symbol("flowing"),k=Symbol("paused"),C=Symbol("resume"),T=Symbol("buffer"),O=Symbol("pipes"),I=Symbol("bufferLength"),w=Symbol("bufferPush"),v=Symbol("bufferShift"),F=Symbol("objectMode"),q=Symbol("destroyed"),P=Symbol("emitData"),$=Symbol("emitEnd"),K=Symbol("emitEnd2"),V=Symbol("async"),N=R=>Promise.resolve().then(R),A=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=A&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),j=A&&Symbol.iterator||Symbol("iterator not implemented"),z=R=>R==="end"||R==="finish"||R==="prefinish",D=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,p=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),m=class{constructor(R,E,M){this.src=R,this.dest=E,this.opts=M,this.ondrain=()=>R[C](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},b=class extends m{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,E,M){super(R,E,M),this.proxyErrors=B=>E.emit("error",B),R.on("error",this.proxyErrors)}};e.exports=class og extends n{constructor(E){super(),this[x]=!1,this[k]=!1,this[O]=[],this[T]=[],this[F]=E&&E.objectMode||!1,this[F]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=E&&!!E.async||!1,this[_]=this[y]?new s(this[y]):null,this[o]=!1,this[l]=!1,this[c]=!1,this[h]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[I]=0,this[q]=!1,E&&E.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[T]}),E&&E.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[O]})}get bufferLength(){return this[I]}get encoding(){return this[y]}set encoding(E){if(this[F])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[_]&&this[_].lastNeed||this[I]))throw new Error("cannot change encoding");this[y]!==E&&(this[_]=E?new s(E):null,this[T].length&&(this[T]=this[T].map(M=>this[_].write(M)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[F]}set objectMode(E){this[F]=this[F]||!!E}get async(){return this[V]}set async(E){this[V]=this[V]||!!E}write(E,M,B){if(this[o])throw new Error("write after end");if(this[q])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof M=="function"&&(B=M,M="utf8"),M||(M="utf8");let Z=this[V]?N:U=>U();return!this[F]&&!Buffer.isBuffer(E)&&(p(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):D(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[F]?(this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[w](E),this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing):E.length?(typeof E=="string"&&!(M===this[y]&&!this[_].lastNeed)&&(E=Buffer.from(E,M)),Buffer.isBuffer(E)&&this[y]&&(E=this[_].write(E)),this.flowing&&this[I]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[w](E),this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing):(this[I]!==0&&this.emit("readable"),B&&Z(B),this.flowing)}read(E){if(this[q])return null;if(this[I]===0||E===0||E>this[I])return this[a](),null;this[F]&&(E=null),this[T].length>1&&!this[F]&&(this.encoding?this[T]=[this[T].join("")]:this[T]=[Buffer.concat(this[T],this[I])]);let M=this[f](E||null,this[T][0]);return this[a](),M}[f](E,M){return E===M.length||E===null?this[v]():(this[T][0]=M.slice(E),M=M.slice(0,E),this[I]-=E),this.emit("data",M),!this[T].length&&!this[o]&&this.emit("drain"),M}end(E,M,B){return typeof E=="function"&&(B=E,E=null),typeof M=="function"&&(B=M,M="utf8"),E&&this.write(E,M),B&&this.once("end",B),this[o]=!0,this.writable=!1,(this.flowing||!this[k])&&this[a](),this}[C](){this[q]||(this[k]=!1,this[x]=!0,this.emit("resume"),this[T].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[C]()}pause(){this[x]=!1,this[k]=!0}get destroyed(){return this[q]}get flowing(){return this[x]}get paused(){return this[k]}[w](E){this[F]?this[I]+=1:this[I]+=E.length,this[T].push(E)}[v](){return this[T].length&&(this[F]?this[I]-=1:this[I]-=this[T][0].length),this[T].shift()}[d](E){do;while(this[g](this[v]()));!E&&!this[T].length&&!this[o]&&this.emit("drain")}[g](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,M){if(this[q])return;let B=this[l];return M=M||{},E===r.stdout||E===r.stderr?M.end=!1:M.end=M.end!==!1,M.proxyErrors=!!M.proxyErrors,B?M.end&&E.end():(this[O].push(M.proxyErrors?new b(this,E,M):new m(this,E,M)),this[V]?N(()=>this[C]()):this[C]()),E}unpipe(E){let M=this[O].find(B=>B.dest===E);M&&(this[O].splice(this[O].indexOf(M),1),M.unpipe())}addListener(E,M){return this.on(E,M)}on(E,M){let B=super.on(E,M);return E==="data"&&!this[O].length&&!this.flowing?this[C]():E==="readable"&&this[I]!==0?super.emit("readable"):z(E)&&this[l]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[u]&&(this[V]?N(()=>M.call(this,this[u])):M.call(this,this[u])),B}get emittedEnd(){return this[l]}[a](){!this[c]&&!this[l]&&!this[q]&&this[T].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,M,...B){if(E!=="error"&&E!=="close"&&E!==q&&this[q])return;if(E==="data")return M?this[V]?N(()=>this[P](M)):this[P](M):!1;if(E==="end")return this[$]();if(E==="close"){if(this[h]=!0,!this[l]&&!this[q])return;let U=super.emit("close");return this.removeAllListeners("close"),U}else if(E==="error"){this[u]=M;let U=super.emit("error",M);return this[a](),U}else if(E==="resume"){let U=super.emit("resume");return this[a](),U}else if(E==="finish"||E==="prefinish"){let U=super.emit(E);return this.removeAllListeners(E),U}let Z=super.emit(E,M,...B);return this[a](),Z}[P](E){for(let B of this[O])B.dest.write(E)===!1&&this.pause();let M=super.emit("data",E);return this[a](),M}[$](){this[l]||(this[l]=!0,this.readable=!1,this[V]?N(()=>this[K]()):this[K]())}[K](){if(this[_]){let M=this[_].end();if(M){for(let B of this[O])B.dest.write(M);super.emit("data",M)}}for(let M of this[O])M.end();let E=super.emit("end");return this.removeAllListeners("end"),E}collect(){let E=[];this[F]||(E.dataLength=0);let M=this.promise();return this.on("data",B=>{E.push(B),this[F]||(E.dataLength+=B.length)}),M.then(()=>E)}concat(){return this[F]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[F]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,M)=>{this.on(q,()=>M(new Error("stream destroyed"))),this.on("error",B=>M(B)),this.on("end",()=>E())})}[L](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let M=null,B=null,Z=re=>{this.removeListener("data",U),this.removeListener("end",J),B(re)},U=re=>{this.removeListener("error",Z),this.removeListener("end",J),this.pause(),M({value:re,done:!!this[o]})},J=()=>{this.removeListener("error",Z),this.removeListener("data",U),M({done:!0})},G=()=>Z(new Error("stream destroyed"));return new Promise((re,ce)=>{B=ce,M=re,this.once(q,G),this.once("error",Z),this.once("end",J),this.once("data",U)})}}}[j](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[q]?(E?this.emit("error",E):this.emit(q),this):(this[q]=!0,this[T].length=0,this[I]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(q),this)}static isStream(E){return!!E&&(E instanceof og||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),rk=ee((t,e)=>{W();var r=te("zlib").constants||{ZLIB_VERNUM:4736};e.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},r))}),ag=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),l=Symbol("emittedEnd"),c=Symbol("emittingEnd"),u=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),_=Symbol("decoder"),x=Symbol("flowing"),k=Symbol("paused"),C=Symbol("resume"),T=Symbol("bufferLength"),O=Symbol("bufferPush"),I=Symbol("bufferShift"),w=Symbol("objectMode"),v=Symbol("destroyed"),F=Symbol("emitData"),q=Symbol("emitEnd"),P=Symbol("emitEnd2"),$=Symbol("async"),K=m=>Promise.resolve().then(m),V=global._MP_NO_ITERATOR_SYMBOLS_!=="1",N=V&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A=V&&Symbol.iterator||Symbol("iterator not implemented"),L=m=>m==="end"||m==="finish"||m==="prefinish",j=m=>m instanceof ArrayBuffer||typeof m=="object"&&m.constructor&&m.constructor.name==="ArrayBuffer"&&m.byteLength>=0,z=m=>!Buffer.isBuffer(m)&&ArrayBuffer.isView(m),D=class{constructor(m,b,R){this.src=m,this.dest=b,this.opts=R,this.ondrain=()=>m[C](),b.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},p=class extends D{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(m,b,R){super(m,b,R),this.proxyErrors=E=>b.emit("error",E),m.on("error",this.proxyErrors)}};e.exports=class lg extends n{constructor(b){super(),this[x]=!1,this[k]=!1,this.pipes=[],this.buffer=[],this[w]=b&&b.objectMode||!1,this[w]?this[y]=null:this[y]=b&&b.encoding||null,this[y]==="buffer"&&(this[y]=null),this[$]=b&&!!b.async||!1,this[_]=this[y]?new s(this[y]):null,this[o]=!1,this[l]=!1,this[c]=!1,this[h]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[T]=0,this[v]=!1}get bufferLength(){return this[T]}get encoding(){return this[y]}set encoding(b){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&b!==this[y]&&(this[_]&&this[_].lastNeed||this[T]))throw new Error("cannot change encoding");this[y]!==b&&(this[_]=b?new s(b):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[_].write(R)))),this[y]=b}setEncoding(b){this.encoding=b}get objectMode(){return this[w]}set objectMode(b){this[w]=this[w]||!!b}get async(){return this[$]}set async(b){this[$]=this[$]||!!b}write(b,R,E){if(this[o])throw new Error("write after end");if(this[v])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(E=R,R="utf8"),R||(R="utf8");let M=this[$]?K:B=>B();return!this[w]&&!Buffer.isBuffer(b)&&(z(b)?b=Buffer.from(b.buffer,b.byteOffset,b.byteLength):j(b)?b=Buffer.from(b):typeof b!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[T]!==0&&this[d](!0),this.flowing?this.emit("data",b):this[O](b),this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing):b.length?(typeof b=="string"&&!(R===this[y]&&!this[_].lastNeed)&&(b=Buffer.from(b,R)),Buffer.isBuffer(b)&&this[y]&&(b=this[_].write(b)),this.flowing&&this[T]!==0&&this[d](!0),this.flowing?this.emit("data",b):this[O](b),this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing):(this[T]!==0&&this.emit("readable"),E&&M(E),this.flowing)}read(b){if(this[v])return null;if(this[T]===0||b===0||b>this[T])return this[a](),null;this[w]&&(b=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[T])]);let R=this[f](b||null,this.buffer[0]);return this[a](),R}[f](b,R){return b===R.length||b===null?this[I]():(this.buffer[0]=R.slice(b),R=R.slice(0,b),this[T]-=b),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(b,R,E){return typeof b=="function"&&(E=b,b=null),typeof R=="function"&&(E=R,R="utf8"),b&&this.write(b,R),E&&this.once("end",E),this[o]=!0,this.writable=!1,(this.flowing||!this[k])&&this[a](),this}[C](){this[v]||(this[k]=!1,this[x]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[C]()}pause(){this[x]=!1,this[k]=!0}get destroyed(){return this[v]}get flowing(){return this[x]}get paused(){return this[k]}[O](b){this[w]?this[T]+=1:this[T]+=b.length,this.buffer.push(b)}[I](){return this.buffer.length&&(this[w]?this[T]-=1:this[T]-=this.buffer[0].length),this.buffer.shift()}[d](b){do;while(this[g](this[I]()));!b&&!this.buffer.length&&!this[o]&&this.emit("drain")}[g](b){return b?(this.emit("data",b),this.flowing):!1}pipe(b,R){if(this[v])return;let E=this[l];return R=R||{},b===r.stdout||b===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,E?R.end&&b.end():(this.pipes.push(R.proxyErrors?new p(this,b,R):new D(this,b,R)),this[$]?K(()=>this[C]()):this[C]()),b}unpipe(b){let R=this.pipes.find(E=>E.dest===b);R&&(this.pipes.splice(this.pipes.indexOf(R),1),R.unpipe())}addListener(b,R){return this.on(b,R)}on(b,R){let E=super.on(b,R);return b==="data"&&!this.pipes.length&&!this.flowing?this[C]():b==="readable"&&this[T]!==0?super.emit("readable"):L(b)&&this[l]?(super.emit(b),this.removeAllListeners(b)):b==="error"&&this[u]&&(this[$]?K(()=>R.call(this,this[u])):R.call(this,this[u])),E}get emittedEnd(){return this[l]}[a](){!this[c]&&!this[l]&&!this[v]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(b,R,...E){if(b!=="error"&&b!=="close"&&b!==v&&this[v])return;if(b==="data")return R?this[$]?K(()=>this[F](R)):this[F](R):!1;if(b==="end")return this[q]();if(b==="close"){if(this[h]=!0,!this[l]&&!this[v])return;let B=super.emit("close");return this.removeAllListeners("close"),B}else if(b==="error"){this[u]=R;let B=super.emit("error",R);return this[a](),B}else if(b==="resume"){let B=super.emit("resume");return this[a](),B}else if(b==="finish"||b==="prefinish"){let B=super.emit(b);return this.removeAllListeners(b),B}let M=super.emit(b,R,...E);return this[a](),M}[F](b){for(let E of this.pipes)E.dest.write(b)===!1&&this.pause();let R=super.emit("data",b);return this[a](),R}[q](){this[l]||(this[l]=!0,this.readable=!1,this[$]?K(()=>this[P]()):this[P]())}[P](){if(this[_]){let R=this[_].end();if(R){for(let E of this.pipes)E.dest.write(R);super.emit("data",R)}}for(let R of this.pipes)R.end();let b=super.emit("end");return this.removeAllListeners("end"),b}collect(){let b=[];this[w]||(b.dataLength=0);let R=this.promise();return this.on("data",E=>{b.push(E),this[w]||(b.dataLength+=E.length)}),R.then(()=>b)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(b=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?b.join(""):Buffer.concat(b,b.dataLength))}promise(){return new Promise((b,R)=>{this.on(v,()=>R(new Error("stream destroyed"))),this.on("error",E=>R(E)),this.on("end",()=>b())})}[N](){return{next:()=>{let b=this.read();if(b!==null)return Promise.resolve({done:!1,value:b});if(this[o])return Promise.resolve({done:!0});let R=null,E=null,M=J=>{this.removeListener("data",B),this.removeListener("end",Z),E(J)},B=J=>{this.removeListener("error",M),this.removeListener("end",Z),this.pause(),R({value:J,done:!!this[o]})},Z=()=>{this.removeListener("error",M),this.removeListener("data",B),R({done:!0})},U=()=>M(new Error("stream destroyed"));return new Promise((J,G)=>{E=G,R=J,this.once(v,U),this.once("error",M),this.once("end",Z),this.once("data",B)})}}}[A](){return{next:()=>{let b=this.read();return{value:b,done:b===null}}}}destroy(b){return this[v]?(b?this.emit("error",b):this.emit(v),this):(this[v]=!0,this.buffer.length=0,this[T]=0,typeof this.close=="function"&&!this[h]&&this.close(),b?this.emit("error",b):this.emit(v),this)}static isStream(b){return!!b&&(b instanceof lg||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),cg=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=rk(),s=ag(),o=r.concat,a=Symbol("_superWrite"),l=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),u=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),g=Symbol("onError"),y=Symbol("sawError"),_=Symbol("level"),x=Symbol("strategy"),k=Symbol("ended"),C=Symbol("_defaultFullFlush"),T=class extends s{constructor(L,j){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[k]=!1,this[c]=L,this[u]=L.flush,this[h]=L.finishFlush;try{this[d]=new i[j](L)}catch(z){throw new l(z)}this[g]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[g](new l(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[u]:L})))}end(L,j,z){return L&&this.write(L,j),this.flush(this[h]),this[k]=!0,super.end(null,null,z)}get ended(){return this[k]}write(L,j,z){if(typeof j=="function"&&(z=j,j="utf8"),typeof L=="string"&&(L=r.from(L,j)),this[y])return;e(this[d],"zlib binding closed");let D=this[d]._handle,p=D.close;D.close=()=>{};let m=this[d].close;this[d].close=()=>{},r.concat=E=>E;let b;try{let E=typeof L[u]=="number"?L[u]:this[u];b=this[d]._processChunk(L,E),r.concat=o}catch(E){r.concat=o,this[g](new l(E))}finally{this[d]&&(this[d]._handle=D,D.close=p,this[d].close=m,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",E=>this[g](new l(E)));let R;if(b)if(Array.isArray(b)&&b.length>0){R=this[a](r.from(b[0]));for(let E=1;E<b.length;E++)R=this[a](b[E])}else R=this[a](r.from(b));return z&&z(),R}[a](L){return super.write(L)}},O=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.Z_NO_FLUSH,L.finishFlush=L.finishFlush||n.Z_FINISH,super(L,j),this[f]=n.Z_FULL_FLUSH,this[_]=L.level,this[x]=L.strategy}params(L,j){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[_]!==L||this[x]!==j){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(D,p)=>{this.flush(D),p()};try{this[d].params(L,j)}finally{this[d].flush=z}this[d]&&(this[_]=L,this[x]=j)}}}},I=class extends O{constructor(L){super(L,"Deflate")}},w=class extends O{constructor(L){super(L,"Inflate")}},v=Symbol("_portable"),F=class extends O{constructor(L){super(L,"Gzip"),this[v]=L&&!!L.portable}[a](L){return this[v]?(this[v]=!1,L[9]=255,super[a](L)):super[a](L)}},q=class extends O{constructor(L){super(L,"Gunzip")}},P=class extends O{constructor(L){super(L,"DeflateRaw")}},$=class extends O{constructor(L){super(L,"InflateRaw")}},K=class extends O{constructor(L){super(L,"Unzip")}},V=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||n.BROTLI_OPERATION_FINISH,super(L,j),this[f]=n.BROTLI_OPERATION_FLUSH}},N=class extends V{constructor(L){super(L,"BrotliCompress")}},A=class extends V{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=I,t.Inflate=w,t.Gzip=F,t.Gunzip=q,t.DeflateRaw=P,t.InflateRaw=$,t.Unzip=K,typeof i.BrotliCompress=="function"?(t.BrotliCompress=N,t.BrotliDecompress=A):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Sn=ee((t,e)=>{W();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Oc=ee((t,e)=>{"use strict";W();var r=Ac(),i=Sn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.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=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,l=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,l-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),ug=ee(t=>{"use strict";W(),t.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"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),ik=ee((t,e)=>{"use strict";W();var r=(u,h)=>{if(Number.isSafeInteger(u))u<0?n(u,h):i(u,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(u,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=u&255,u=Math.floor(u/256)},n=(u,h)=>{h[0]=255;var f=!1;u=u*-1;for(var d=h.length;d>1;d--){var g=u&255;u=Math.floor(u/256),f?h[d-1]=l(g):g===0?h[d-1]=0:(f=!0,h[d-1]=c(g))}},s=u=>{let h=u[0],f=h===128?a(u.slice(1,u.length)):h===255?o(u):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=u=>{for(var h=u.length,f=0,d=!1,g=h-1;g>-1;g--){var y=u[g],_;d?_=l(y):y===0?_=y:(d=!0,_=c(y)),_!==0&&(f-=_*Math.pow(256,h-g-1))}return f},a=u=>{for(var h=u.length,f=0,d=h-1;d>-1;d--){var g=u[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},l=u=>(255^u)&255,c=u=>(255^u)+1&255;e.exports={encode:r,parse:s}}),En=ee((t,e)=>{"use strict";W();var r=ug(),i=te("path").posix,n=ik(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(w,v,F,q){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[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,v||0,F,q):w&&this.set(w)}decode(w,v,F,q){if(v||(v=0),!w||!(w.length>=v+512))throw new Error("need 512 bytes for header");if(this.path=c(w,v,100),this.mode=f(w,v+100,8),this.uid=f(w,v+108,8),this.gid=f(w,v+116,8),this.size=f(w,v+124,12),this.mtime=u(w,v+136,12),this.cksum=f(w,v+148,12),this[s](F),this[s](q,!0),this[o]=c(w,v+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(w,v+157,100),w.slice(v+257,v+265).toString()==="ustar\x0000")if(this.uname=c(w,v+265,32),this.gname=c(w,v+297,32),this.devmaj=f(w,v+329,8),this.devmin=f(w,v+337,8),w[v+475]!==0){let $=c(w,v+345,155);this.path=$+"/"+this.path}else{let $=c(w,v+345,130);$&&(this.path=$+"/"+this.path),this.atime=u(w,v+476,12),this.ctime=u(w,v+488,12)}let P=8*32;for(let $=v;$<v+148;$++)P+=w[$];for(let $=v+156;$<v+512;$++)P+=w[$];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[s](w,v){for(let F in w)w[F]!==null&&w[F]!==void 0&&!(v&&F==="path")&&(this[F]=w[F])}encode(w,v){if(w||(w=this.block=Buffer.alloc(512),v=0),v||(v=0),!(w.length>=v+512))throw new Error("need 512 bytes for header");let F=this.ctime||this.atime?130:155,q=l(this.path||"",F),P=q[0],$=q[1];this.needPax=q[2],this.needPax=I(w,v,100,P)||this.needPax,this.needPax=_(w,v+100,8,this.mode)||this.needPax,this.needPax=_(w,v+108,8,this.uid)||this.needPax,this.needPax=_(w,v+116,8,this.gid)||this.needPax,this.needPax=_(w,v+124,12,this.size)||this.needPax,this.needPax=T(w,v+136,12,this.mtime)||this.needPax,w[v+156]=this[o].charCodeAt(0),this.needPax=I(w,v+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",v+257,8),this.needPax=I(w,v+265,32,this.uname)||this.needPax,this.needPax=I(w,v+297,32,this.gname)||this.needPax,this.needPax=_(w,v+329,8,this.devmaj)||this.needPax,this.needPax=_(w,v+337,8,this.devmin)||this.needPax,this.needPax=I(w,v+345,F,$)||this.needPax,w[v+475]!==0?this.needPax=I(w,v+345,155,$)||this.needPax:(this.needPax=I(w,v+345,130,$)||this.needPax,this.needPax=T(w,v+476,12,this.atime)||this.needPax,this.needPax=T(w,v+488,12,this.ctime)||this.needPax);let K=8*32;for(let V=v;V<v+148;V++)K+=w[V];for(let V=v+156;V<v+512;V++)K+=w[V];return this.cksum=K,_(w,v+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let v in w)w[v]!==null&&w[v]!==void 0&&(this[v]=w[v])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(w){r.code.has(w)?this[o]=r.code.get(w):this[o]=w}},l=(w,v)=>{let F=w,q="",P,$=i.parse(w).root||".";if(Buffer.byteLength(F)<100)P=[F,q,!1];else{q=i.dirname(F),F=i.basename(F);do Buffer.byteLength(F)<=100&&Buffer.byteLength(q)<=v?P=[F,q,!1]:Buffer.byteLength(F)>100&&Buffer.byteLength(q)<=v?P=[F.slice(0,100-1),q,!0]:(F=i.join(i.basename(q),F),q=i.dirname(q));while(q!==$&&!P);P||(P=[w.slice(0,100-1),"",!0])}return P},c=(w,v,F)=>w.slice(v,v+F).toString("utf8").replace(/\0.*/,""),u=(w,v,F)=>h(f(w,v,F)),h=w=>w===null?null:new Date(w*1e3),f=(w,v,F)=>w[v]&128?n.parse(w.slice(v,v+F)):g(w,v,F),d=w=>isNaN(w)?null:w,g=(w,v,F)=>d(parseInt(w.slice(v,v+F).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},_=(w,v,F,q)=>q===null?!1:q>y[F]||q<0?(n.encode(q,w.slice(v,v+F)),!0):(x(w,v,F,q),!1),x=(w,v,F,q)=>w.write(k(q,F),v,F,"ascii"),k=(w,v)=>C(Math.floor(w).toString(8),v),C=(w,v)=>(w.length===v-1?w:new Array(v-w.length-1).join("0")+w+" ")+"\0",T=(w,v,F,q)=>q===null?!1:_(w,v,F,q.getTime()/1e3),O=new Array(156).join("\0"),I=(w,v,F,q)=>q===null?!1:(w.write(q+O,v,F,"utf8"),q.length!==Buffer.byteLength(q)||q.length>F);e.exports=a}),Tc=ee((t,e)=>{"use strict";W();var r=En(),i=te("path"),n=class{constructor(l,c){this.atime=l.atime||null,this.charset=l.charset||null,this.comment=l.comment||null,this.ctime=l.ctime||null,this.gid=l.gid||null,this.gname=l.gname||null,this.linkpath=l.linkpath||null,this.mtime=l.mtime||null,this.path=l.path||null,this.size=l.size||null,this.uid=l.uid||null,this.uname=l.uname||null,this.dev=l.dev||null,this.ino=l.ino||null,this.nlink=l.nlink||null,this.global=c||!1}encode(){let l=this.encodeBody();if(l==="")return null;let c=Buffer.byteLength(l),u=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(u);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,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(h),h.write(l,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}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(l){if(this[l]===null||this[l]===void 0)return"";let c=this[l]instanceof Date?this[l].getTime()/1e3:this[l],u=" "+(l==="dev"||l==="ino"||l==="nlink"?"SCHILY.":"")+l+"="+c+`
|
40
40
|
`,h=Buffer.byteLength(u),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+u}};n.parse=(l,c,u)=>new n(s(o(l),c),u);var s=(l,c)=>c?Object.keys(l).reduce((u,h)=>(u[h]=l[h],u),c):l,o=l=>l.replace(/\n$/,"").split(`
|
41
|
-
`).reduce(a,Object.create(null)),a=(l,c)=>{let u=parseInt(c,10);if(u!==Buffer.byteLength(c)+1)return l;c=c.slice((u+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return l;let d=h.join("=");return l[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,l};e.exports=n}),vn=ee((t,e)=>{W(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),kc=ee((t,e)=>{"use strict";W(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),hg=ee((t,e)=>{"use strict";W();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,l)=>a.split(l).join(n.get(l)),o),decode:o=>i.reduce((a,l)=>a.split(l).join(s.get(l)),o)}}),fg=ee((t,e)=>{W();var{isAbsolute:r,parse:i}=te("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),sk=ee((t,e)=>{"use strict";W(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),pg=ee((t,e)=>{"use strict";W();var r=Ac(),i=Tc(),n=En(),s=te("fs"),o=te("path"),a=Sn(),l=vn(),c=(m,b)=>b?(m=a(m).replace(/^\.(\/|$)/,""),l(b)+"/"+m):a(m),u=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),_=Symbol("header"),x=Symbol("read"),k=Symbol("lstat"),C=Symbol("onlstat"),T=Symbol("onread"),O=Symbol("onreadlink"),I=Symbol("openfile"),w=Symbol("onopenfile"),v=Symbol("close"),F=Symbol("mode"),q=Symbol("awaitDrain"),P=Symbol("ondrain"),$=Symbol("prefix"),K=Symbol("hadError"),V=kc(),N=hg(),A=fg(),L=sk(),j=V(class extends r{constructor(m,b){if(b=b||{},super(b),typeof m!="string")throw new TypeError("path is required");this.path=a(m),this.portable=!!b.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=b.maxReadSize||u,this.linkCache=b.linkCache||new Map,this.statCache=b.statCache||new Map,this.preservePaths=!!b.preservePaths,this.cwd=a(b.cwd||process.cwd()),this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.mtime=b.mtime||null,this.prefix=b.prefix?a(b.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let R=!1;if(!this.preservePaths){let[E,M]=A(this.path);E&&(this.path=M,R=E)}this.win32=!!b.win32||process.platform==="win32",this.win32&&(this.path=N.decode(this.path.replace(/\\/g,"/")),m=m.replace(/\\/g,"/")),this.absolute=a(b.absolute||o.resolve(this.cwd,m)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[C](this.statCache.get(this.absolute)):this[k]()}emit(m,...b){return m==="error"&&(this[K]=!0),super.emit(m,...b)}[k](){s.lstat(this.absolute,(m,b)=>{if(m)return this.emit("error",m);this[C](b)})}[C](m){this.statCache.set(this.absolute,m),this.stat=m,m.isFile()||(m.size=0),this.type=p(m),this.emit("stat",m),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[g]();default:return this.end()}}[F](m){return L(m,this.type==="Directory",this.portable)}[$](m){return c(m,this.prefix)}[_](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,mode:this[F](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[_](),this.end()}[g](){s.readlink(this.absolute,(m,b)=>{if(m)return this.emit("error",m);this[O](b)})}[O](m){this.linkpath=a(m),this[_](),this.end()}[y](m){this.type="Link",this.linkpath=a(o.relative(this.cwd,m)),this.stat.size=0,this[_](),this.end()}[f](){if(this.stat.nlink>1){let m=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(m)){let b=this.linkCache.get(m);if(b.indexOf(this.cwd)===0)return this[y](b)}this.linkCache.set(m,this.absolute)}if(this[_](),this.stat.size===0)return this.end();this[I]()}[I](){s.open(this.absolute,"r",(m,b)=>{if(m)return this.emit("error",m);this[w](b)})}[w](m){if(this.fd=m,this[K])return this[v]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let b=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(b),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[x]()}[x](){let{fd:m,buf:b,offset:R,length:E,pos:M}=this;s.read(m,b,R,E,M,(B,Z)=>{if(B)return this[v](()=>this.emit("error",B));this[T](Z)})}[v](m){s.close(this.fd,m)}[T](m){if(m<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[v](()=>this.emit("error",R))}if(m>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[v](()=>this.emit("error",R))}if(m===this.remain)for(let R=m;R<this.length&&m<this.blockRemain;R++)this.buf[R+this.offset]=0,m++,this.remain++;let b=this.offset===0&&m===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+m);this.write(b)?this[P]():this[q](()=>this[P]())}[q](m){this.once("drain",m)}write(m){if(this.blockRemain<m.length){let b=new Error("writing more data than expected");return b.path=this.absolute,this.emit("error",b)}return this.remain-=m.length,this.blockRemain-=m.length,this.pos+=m.length,this.offset+=m.length,super.write(m)}[P](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[v](m=>m?this.emit("error",m):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[x]()}}),z=class extends j{[k](){this[C](s.lstatSync(this.absolute))}[g](){this[O](s.readlinkSync(this.absolute))}[I](){this[w](s.openSync(this.absolute,"r"))}[x](){let m=!0;try{let{fd:b,buf:R,offset:E,length:M,pos:B}=this,Z=s.readSync(b,R,E,M,B);this[T](Z),m=!1}finally{if(m)try{this[v](()=>{})}catch{}}}[q](m){m()}[v](m){s.closeSync(this.fd),m()}},D=V(class extends r{constructor(m,b){b=b||{},super(b),this.preservePaths=!!b.preservePaths,this.portable=!!b.portable,this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.readEntry=m,this.type=m.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=b.prefix||null,this.path=a(m.path),this.mode=this[F](m.mode),this.uid=this.portable?null:m.uid,this.gid=this.portable?null:m.gid,this.uname=this.portable?null:m.uname,this.gname=this.portable?null:m.gname,this.size=m.size,this.mtime=this.noMtime?null:b.mtime||m.mtime,this.atime=this.portable?null:m.atime,this.ctime=this.portable?null:m.ctime,this.linkpath=a(m.linkpath),typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let R=!1;if(!this.preservePaths){let[E,M]=A(this.path);E&&(this.path=M,R=E)}this.remain=m.size,this.blockRemain=m.startBlockSize,this.header=new n({path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),m.pipe(this)}[$](m){return c(m,this.prefix)}[F](m){return L(m,this.type==="Directory",this.portable)}write(m){let b=m.length;if(b>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=b,super.write(m)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});j.Sync=z,j.Tar=D;var p=m=>m.isFile()?"File":m.isDirectory()?"Directory":m.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=j}),ok=ee((t,e)=>{"use strict";W(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),dg=ee((t,e)=>{"use strict";W(),e.exports=r,r.Node=o,r.create=r;function r(a){var l=this;if(l instanceof r||(l=new r),l.tail=null,l.head=null,l.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){l.push(h)});else if(arguments.length>0)for(var c=0,u=arguments.length;c<u;c++)l.push(arguments[c]);return l}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var l=a.next,c=a.prev;return l&&(l.prev=c),c&&(c.next=l),a===this.head&&(this.head=l),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,l},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var l=this.head;a.list=this,a.next=l,l&&(l.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var l=this.tail;a.list=this,a.prev=l,l&&(l.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,l=arguments.length;a<l;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,l=arguments.length;a<l;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,l){l=l||this;for(var c=this.head,u=0;c!==null;u++)a.call(l,c.value,u,this),c=c.next},r.prototype.forEachReverse=function(a,l){l=l||this;for(var c=this.tail,u=this.length-1;c!==null;u--)a.call(l,c.value,u,this),c=c.prev},r.prototype.get=function(a){for(var l=0,c=this.head;c!==null&&l<a;l++)c=c.next;if(l===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var l=0,c=this.tail;c!==null&&l<a;l++)c=c.prev;if(l===a&&c!==null)return c.value},r.prototype.map=function(a,l){l=l||this;for(var c=new r,u=this.head;u!==null;)c.push(a.call(l,u.value,this)),u=u.next;return c},r.prototype.mapReverse=function(a,l){l=l||this;for(var c=new r,u=this.tail;u!==null;)c.push(a.call(l,u.value,this)),u=u.prev;return c},r.prototype.reduce=function(a,l){var c,u=this.head;if(arguments.length>1)c=l;else if(this.head)u=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;u!==null;h++)c=a(c,u.value,h),u=u.next;return c},r.prototype.reduceReverse=function(a,l){var c,u=this.tail;if(arguments.length>1)c=l;else if(this.tail)u=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;u!==null;h--)c=a(c,u.value,h),u=u.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),l=0,c=this.head;c!==null;l++)a[l]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),l=0,c=this.tail;c!==null;l++)a[l]=c.value,c=c.prev;return a},r.prototype.slice=function(a,l){l=l||this.length,l<0&&(l+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(l<a||l<0)return c;a<0&&(a=0),l>this.length&&(l=this.length);for(var u=0,h=this.head;h!==null&&u<a;u++)h=h.next;for(;h!==null&&u<l;u++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,l){l=l||this.length,l<0&&(l+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(l<a||l<0)return c;a<0&&(a=0),l>this.length&&(l=this.length);for(var u=this.length,h=this.tail;h!==null&&u>l;u--)h=h.prev;for(;h!==null&&u>a;u--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,l,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var u=0,h=this.head;h!==null&&u<a;u++)h=h.next;for(var f=[],u=0;h&&u<l;u++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var u=0;u<c.length;u++)h=i(this,h,c[u]);return f},r.prototype.reverse=function(){for(var a=this.head,l=this.tail,c=a;c!==null;c=c.prev){var u=c.prev;c.prev=c.next,c.next=u}return this.head=l,this.tail=a,this};function i(a,l,c){var u=l===a.head?new o(c,null,l,a):new o(c,l,l.next,a);return u.next===null&&(a.tail=u),u.prev===null&&(a.head=u),a.length++,u}function n(a,l){a.tail=new o(l,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,l){a.head=new o(l,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,l,c,u){if(!(this instanceof o))return new o(a,l,c,u);this.list=u,this.value=a,l?(l.next=this,this.prev=l):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{ok()(r)}catch{}}),Cc=ee((t,e)=>{"use strict";W();var r=class{constructor(p,m){this.path=p||"./",this.absolute=m,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Ac(),n=cg(),s=Oc(),o=pg(),a=o.Sync,l=o.Tar,c=dg(),u=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),g=Symbol("current"),y=Symbol("process"),_=Symbol("processing"),x=Symbol("processJob"),k=Symbol("jobs"),C=Symbol("jobDone"),T=Symbol("addFSEntry"),O=Symbol("addTarEntry"),I=Symbol("stat"),w=Symbol("readdir"),v=Symbol("onreaddir"),F=Symbol("pipe"),q=Symbol("entry"),P=Symbol("entryOpt"),$=Symbol("writeEntryClass"),K=Symbol("write"),V=Symbol("ondrain"),N=te("fs"),A=te("path"),L=kc(),j=Sn(),z=L(class extends i{constructor(p){super(p),p=p||Object.create(null),this.opt=p,this.file=p.file||"",this.cwd=p.cwd||process.cwd(),this.maxReadSize=p.maxReadSize,this.preservePaths=!!p.preservePaths,this.strict=!!p.strict,this.noPax=!!p.noPax,this.prefix=j(p.prefix||""),this.linkCache=p.linkCache||new Map,this.statCache=p.statCache||new Map,this.readdirCache=p.readdirCache||new Map,this[$]=o,typeof p.onwarn=="function"&&this.on("warn",p.onwarn),this.portable=!!p.portable,this.zip=null,p.gzip?(typeof p.gzip!="object"&&(p.gzip={}),this.portable&&(p.gzip.portable=!0),this.zip=new n.Gzip(p.gzip),this.zip.on("data",m=>super.write(m)),this.zip.on("end",m=>super.end()),this.zip.on("drain",m=>this[V]()),this.on("resume",m=>this.zip.resume())):this.on("drain",this[V]),this.noDirRecurse=!!p.noDirRecurse,this.follow=!!p.follow,this.noMtime=!!p.noMtime,this.mtime=p.mtime||null,this.filter=typeof p.filter=="function"?p.filter:m=>!0,this[d]=new c,this[k]=0,this.jobs=+p.jobs||4,this[_]=!1,this[f]=!1}[K](p){return super.write(p)}add(p){return this.write(p),this}end(p){return p&&this.write(p),this[f]=!0,this[y](),this}write(p){if(this[f])throw new Error("write after end");return p instanceof s?this[O](p):this[T](p),this.flowing}[O](p){let m=j(A.resolve(this.cwd,p.path));if(!this.filter(p.path,p))p.resume();else{let b=new r(p.path,m,!1);b.entry=new l(p,this[P](b)),b.entry.on("end",R=>this[C](b)),this[k]+=1,this[d].push(b)}this[y]()}[T](p){let m=j(A.resolve(this.cwd,p));this[d].push(new r(p,m)),this[y]()}[I](p){p.pending=!0,this[k]+=1;let m=this.follow?"stat":"lstat";N[m](p.absolute,(b,R)=>{p.pending=!1,this[k]-=1,b?this.emit("error",b):this[h](p,R)})}[h](p,m){this.statCache.set(p.absolute,m),p.stat=m,this.filter(p.path,m)||(p.ignore=!0),this[y]()}[w](p){p.pending=!0,this[k]+=1,N.readdir(p.absolute,(m,b)=>{if(p.pending=!1,this[k]-=1,m)return this.emit("error",m);this[v](p,b)})}[v](p,m){this.readdirCache.set(p.absolute,m),p.readdir=m,this[y]()}[y](){if(!this[_]){this[_]=!0;for(let p=this[d].head;p!==null&&this[k]<this.jobs;p=p.next)if(this[x](p.value),p.value.ignore){let m=p.next;this[d].removeNode(p),p.next=m}this[_]=!1,this[f]&&!this[d].length&&this[k]===0&&(this.zip?this.zip.end(u):(super.write(u),super.end()))}}get[g](){return this[d]&&this[d].head&&this[d].head.value}[C](p){this[d].shift(),this[k]-=1,this[y]()}[x](p){if(!p.pending){if(p.entry){p===this[g]&&!p.piped&&this[F](p);return}if(p.stat||(this.statCache.has(p.absolute)?this[h](p,this.statCache.get(p.absolute)):this[I](p)),!!p.stat&&!p.ignore&&!(!this.noDirRecurse&&p.stat.isDirectory()&&!p.readdir&&(this.readdirCache.has(p.absolute)?this[v](p,this.readdirCache.get(p.absolute)):this[w](p),!p.readdir))){if(p.entry=this[q](p),!p.entry){p.ignore=!0;return}p===this[g]&&!p.piped&&this[F](p)}}}[P](p){return{onwarn:(m,b,R)=>this.warn(m,b,R),noPax:this.noPax,cwd:this.cwd,absolute:p.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[q](p){this[k]+=1;try{return new this[$](p.path,this[P](p)).on("end",()=>this[C](p)).on("error",m=>this.emit("error",m))}catch(m){this.emit("error",m)}}[V](){this[g]&&this[g].entry&&this[g].entry.resume()}[F](p){p.piped=!0,p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)});let m=p.entry,b=this.zip;b?m.on("data",R=>{b.write(R)||m.pause()}):m.on("data",R=>{super.write(R)||m.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),D=class extends z{constructor(p){super(p),this[$]=a}pause(){}resume(){}[I](p){let m=this.follow?"statSync":"lstatSync";this[h](p,N[m](p.absolute))}[w](p,m){this[v](p,N.readdirSync(p.absolute))}[F](p){let m=p.entry,b=this.zip;p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)}),b?m.on("data",R=>{b.write(R)}):m.on("data",R=>{super[K](R)})}};z.Sync=D,e.exports=z}),Rn=ee(t=>{"use strict";W();var e=ag(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let p=process.binding("fs"),m=p.FSReqWrap||p.FSReqCallback;n=(b,R,E,M)=>{let B=(U,J)=>M(U,J,R),Z=new m;Z.oncomplete=B,p.writeBuffers(b,R,E,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),l=Symbol("_fd"),c=Symbol("_finished"),u=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),y=Symbol("_needDrain"),_=Symbol("_onerror"),x=Symbol("_onopen"),k=Symbol("_onread"),C=Symbol("_onwrite"),T=Symbol("_open"),O=Symbol("_path"),I=Symbol("_pos"),w=Symbol("_queue"),v=Symbol("_read"),F=Symbol("_readSize"),q=Symbol("_reading"),P=Symbol("_remain"),$=Symbol("_size"),K=Symbol("_write"),V=Symbol("_writing"),N=Symbol("_defaultFlag"),A=Symbol("_errored"),L=class extends e{constructor(p,m){if(m=m||{},super(m),this.readable=!0,this.writable=!1,typeof p!="string")throw new TypeError("path must be a string");this[A]=!1,this[l]=typeof m.fd=="number"?m.fd:null,this[O]=p,this[F]=m.readSize||16*1024*1024,this[q]=!1,this[$]=typeof m.size=="number"?m.size:1/0,this[P]=this[$],this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0,typeof this[l]=="number"?this[v]():this[T]()}get fd(){return this[l]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[T](){i.open(this[O],"r",(p,m)=>this[x](p,m))}[x](p,m){p?this[_](p):(this[l]=m,this.emit("open",m),this[v]())}[d](){return Buffer.allocUnsafe(Math.min(this[F],this[P]))}[v](){if(!this[q]){this[q]=!0;let p=this[d]();if(p.length===0)return process.nextTick(()=>this[k](null,0,p));i.read(this[l],p,0,p.length,null,(m,b,R)=>this[k](m,b,R))}}[k](p,m,b){this[q]=!1,p?this[_](p):this[f](m,b)&&this[v]()}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}[_](p){this[q]=!0,this[o](),this.emit("error",p)}[f](p,m){let b=!1;return this[P]-=p,p>0&&(b=super.write(p<m.length?m.slice(0,p):m)),(p===0||this[P]<=0)&&(b=!1,this[o](),super.end()),b}emit(p,m){switch(p){case"prefinish":case"finish":break;case"drain":typeof this[l]=="number"&&this[v]();break;case"error":return this[A]?void 0:(this[A]=!0,super.emit(p,m));default:return super.emit(p,m)}}},j=class extends L{[T](){let p=!0;try{this[x](null,i.openSync(this[O],"r")),p=!1}finally{p&&this[o]()}}[v](){let p=!0;try{if(!this[q]){this[q]=!0;do{let m=this[d](),b=m.length===0?0:i.readSync(this[l],m,0,m.length,null);if(!this[f](b,m))break}while(!0);this[q]=!1}p=!1}finally{p&&this[o]()}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}},z=class extends r{constructor(p,m){m=m||{},super(m),this.readable=!1,this.writable=!0,this[A]=!1,this[V]=!1,this[a]=!1,this[y]=!1,this[w]=[],this[O]=p,this[l]=typeof m.fd=="number"?m.fd:null,this[g]=m.mode===void 0?438:m.mode,this[I]=typeof m.start=="number"?m.start:null,this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0;let b=this[I]!==null?"r+":"w";this[N]=m.flags===void 0,this[u]=this[N]?b:m.flags,this[l]===null&&this[T]()}emit(p,m){if(p==="error"){if(this[A])return;this[A]=!0}return super.emit(p,m)}get fd(){return this[l]}get path(){return this[O]}[_](p){this[o](),this[V]=!0,this.emit("error",p)}[T](){i.open(this[O],this[u],this[g],(p,m)=>this[x](p,m))}[x](p,m){this[N]&&this[u]==="r+"&&p&&p.code==="ENOENT"?(this[u]="w",this[T]()):p?this[_](p):(this[l]=m,this.emit("open",m),this[h]())}end(p,m){return p&&this.write(p,m),this[a]=!0,!this[V]&&!this[w].length&&typeof this[l]=="number"&&this[C](null,0),this}write(p,m){return typeof p=="string"&&(p=Buffer.from(p,m)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[l]===null||this[V]||this[w].length?(this[w].push(p),this[y]=!0,!1):(this[V]=!0,this[K](p),!0)}[K](p){i.write(this[l],p,0,p.length,this[I],(m,b)=>this[C](m,b))}[C](p,m){p?this[_](p):(this[I]!==null&&(this[I]+=m),this[w].length?this[h]():(this[V]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[a]&&this[C](null,0);else if(this[w].length===1)this[K](this[w].pop());else{let p=this[w];this[w]=[],n(this[l],p,this[I],(m,b)=>this[C](m,b))}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}},D=class extends z{[T](){let p;if(this[N]&&this[u]==="r+")try{p=i.openSync(this[O],this[u],this[g])}catch(m){if(m.code==="ENOENT")return this[u]="w",this[T]();throw m}else p=i.openSync(this[O],this[u],this[g]);this[x](null,p)}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}[K](p){let m=!0;try{this[C](null,i.writeSync(this[l],p,0,p.length,this[I])),m=!1}finally{if(m)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=j,t.WriteStream=z,t.WriteStreamSync=D}),Lc=ee((t,e)=>{"use strict";W();var r=kc(),i=En(),n=te("events"),s=dg(),o=1024*1024,a=Oc(),l=Tc(),c=cg(),{nextTick:u}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),g=Symbol("readEntry"),y=Symbol("nextEntry"),_=Symbol("processEntry"),x=Symbol("extendedHeader"),k=Symbol("globalExtendedHeader"),C=Symbol("meta"),T=Symbol("emitMeta"),O=Symbol("buffer"),I=Symbol("queue"),w=Symbol("ended"),v=Symbol("emittedEnd"),F=Symbol("emit"),q=Symbol("unzip"),P=Symbol("consumeChunk"),$=Symbol("consumeChunkSub"),K=Symbol("consumeBody"),V=Symbol("consumeMeta"),N=Symbol("consumeHeader"),A=Symbol("consuming"),L=Symbol("bufferConcat"),j=Symbol("maybeEnd"),z=Symbol("writing"),D=Symbol("aborted"),p=Symbol("onDone"),m=Symbol("sawValidEntry"),b=Symbol("sawNullBlock"),R=Symbol("sawEOF"),E=Symbol("closeStream"),M=B=>!0;e.exports=r(class extends n{constructor(B){B=B||{},super(B),this.file=B.file||"",this[m]=null,this.on(p,Z=>{(this[f]==="begin"||this[m]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),B.ondone?this.on(p,B.ondone):this.on(p,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!B.strict,this.maxMetaEntrySize=B.maxMetaEntrySize||o,this.filter=typeof B.filter=="function"?B.filter:M,this.writable=!0,this.readable=!1,this[I]=new s,this[O]=null,this[g]=null,this[d]=null,this[f]="begin",this[C]="",this[x]=null,this[k]=null,this[w]=!1,this[q]=null,this[D]=!1,this[b]=!1,this[R]=!1,this.on("end",()=>this[E]()),typeof B.onwarn=="function"&&this.on("warn",B.onwarn),typeof B.onentry=="function"&&this.on("entry",B.onentry)}[N](B,Z){this[m]===null&&(this[m]=!1);let U;try{U=new i(B,Z,this[x],this[k])}catch(J){return this.warn("TAR_ENTRY_INVALID",J)}if(U.nullBlock)this[b]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[F]("eof")):(this[b]=!0,this[F]("nullBlock"));else if(this[b]=!1,!U.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:U});else if(!U.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:U});else{let J=U.type;if(/^(Symbolic)?Link$/.test(J)&&!U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:U});else if(!/^(Symbolic)?Link$/.test(J)&&U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:U});else{let G=this[d]=new a(U,this[x],this[k]);if(!this[m])if(G.remain){let re=()=>{G.invalid||(this[m]=!0)};G.on("end",re)}else this[m]=!0;G.meta?G.size>this.maxMetaEntrySize?(G.ignore=!0,this[F]("ignoredEntry",G),this[f]="ignore",G.resume()):G.size>0&&(this[C]="",G.on("data",re=>this[C]+=re),this[f]="meta"):(this[x]=null,G.ignore=G.ignore||!this.filter(G.path,G),G.ignore?(this[F]("ignoredEntry",G),this[f]=G.remain?"ignore":"header",G.resume()):(G.remain?this[f]="body":(this[f]="header",G.end()),this[g]?this[I].push(G):(this[I].push(G),this[y]())))}}}[E](){u(()=>this.emit("close"))}[_](B){let Z=!0;return B?Array.isArray(B)?this.emit.apply(this,B):(this[g]=B,this.emit("entry",B),B.emittedEnd||(B.on("end",U=>this[y]()),Z=!1)):(this[g]=null,Z=!1),Z}[y](){do;while(this[_](this[I].shift()));if(!this[I].length){let B=this[g];!B||B.flowing||B.size===B.remain?this[z]||this.emit("drain"):B.once("drain",Z=>this.emit("drain"))}}[K](B,Z){let U=this[d],J=U.blockRemain,G=J>=B.length&&Z===0?B:B.slice(Z,Z+J);return U.write(G),U.blockRemain||(this[f]="header",this[d]=null,U.end()),G.length}[V](B,Z){let U=this[d],J=this[K](B,Z);return this[d]||this[T](U),J}[F](B,Z,U){!this[I].length&&!this[g]?this.emit(B,Z,U):this[I].push([B,Z,U])}[T](B){switch(this[F]("meta",this[C]),B.type){case"ExtendedHeader":case"OldExtendedHeader":this[x]=l.parse(this[C],this[x],!1);break;case"GlobalExtendedHeader":this[k]=l.parse(this[C],this[k],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[x]=this[x]||Object.create(null),this[x].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[x]=this[x]||Object.create(null),this[x].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+B.type)}}abort(B){this[D]=!0,this.emit("abort",B),this.warn("TAR_ABORT",B,{recoverable:!1})}write(B){if(this[D])return;if(this[q]===null&&B){if(this[O]&&(B=Buffer.concat([this[O],B]),this[O]=null),B.length<h.length)return this[O]=B,!0;for(let U=0;this[q]===null&&U<h.length;U++)B[U]!==h[U]&&(this[q]=!1);if(this[q]===null){let U=this[w];this[w]=!1,this[q]=new c.Unzip,this[q].on("data",G=>this[P](G)),this[q].on("error",G=>this.abort(G)),this[q].on("end",G=>{this[w]=!0,this[P]()}),this[z]=!0;let J=this[q][U?"end":"write"](B);return this[z]=!1,J}}this[z]=!0,this[q]?this[q].write(B):this[P](B),this[z]=!1;let Z=this[I].length?!1:this[g]?this[g].flowing:!0;return!Z&&!this[I].length&&this[g].once("drain",U=>this.emit("drain")),Z}[L](B){B&&!this[D]&&(this[O]=this[O]?Buffer.concat([this[O],B]):B)}[j](){if(this[w]&&!this[v]&&!this[D]&&!this[A]){this[v]=!0;let B=this[d];if(B&&B.blockRemain){let Z=this[O]?this[O].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${B.blockRemain} more bytes, only ${Z} available)`,{entry:B}),this[O]&&B.write(this[O]),B.end()}this[F](p)}}[P](B){if(this[A])this[L](B);else if(!B&&!this[O])this[j]();else{if(this[A]=!0,this[O]){this[L](B);let Z=this[O];this[O]=null,this[$](Z)}else this[$](B);for(;this[O]&&this[O].length>=512&&!this[D]&&!this[R];){let Z=this[O];this[O]=null,this[$](Z)}this[A]=!1}(!this[O]||this[w])&&this[j]()}[$](B){let Z=0,U=B.length;for(;Z+512<=U&&!this[D]&&!this[R];)switch(this[f]){case"begin":case"header":this[N](B,Z),Z+=512;break;case"ignore":case"body":Z+=this[K](B,Z);break;case"meta":Z+=this[V](B,Z);break;default:throw new Error("invalid state: "+this[f])}Z<U&&(this[O]?this[O]=Buffer.concat([B.slice(Z),this[O]]):this[O]=B.slice(Z))}end(B){this[D]||(this[q]?this[q].end(B):(this[w]=!0,this.write(B)))}})}),Pc=ee((t,e)=>{"use strict";W();var r=wn(),i=Lc(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&c(_,g),_.noResume||l(_),_.file&&_.sync?u(_):_.file?h(_,y):f(_)};var l=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},c=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},u=d=>{let g=f(d),y=d.file,_=!0,x;try{let k=n.statSync(y),C=d.maxReadSize||16*1024*1024;if(k.size<C)g.end(n.readFileSync(y));else{let T=0,O=Buffer.allocUnsafe(C);for(x=n.openSync(y,"r");T<k.size;){let I=n.readSync(x,O,0,C,T);T+=I,g.write(O.slice(0,I))}g.end()}_=!1}finally{if(_&&x)try{n.closeSync(x)}catch{}}},h=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("end",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},f=d=>new i(d)}),ak=ee((t,e)=>{"use strict";W();var r=wn(),i=Cc(),n=Rn(),s=Pc(),o=te("path");e.exports=(d,g,y)=>{if(typeof g=="function"&&(y=g),Array.isArray(d)&&(g=d,d={}),!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");g=Array.from(g);let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return _.file&&_.sync?a(_,g):_.file?l(_,g,y):_.sync?h(_,g):f(_,g)};var a=(d,g)=>{let y=new i.Sync(d),_=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(_),c(y,g)},l=(d,g,y)=>{let _=new i(d),x=new n.WriteStream(d.file,{mode:d.mode||438});_.pipe(x);let k=new Promise((C,T)=>{x.on("error",T),x.on("close",C),_.on("error",T)});return u(_,g),y?k.then(y,y):k},c=(d,g)=>{g.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:_=>d.add(_)}):d.add(y)}),d.end()},u=(d,g)=>{for(;g.length;){let y=g.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:_=>d.add(_)}).then(_=>u(d,g));d.add(y)}d.end()},h=(d,g)=>{let y=new i.Sync(d);return c(y,g),y},f=(d,g)=>{let y=new i(d);return u(y,g),y}}),mg=ee((t,e)=>{"use strict";W();var r=wn(),i=Cc(),n=te("fs"),s=Rn(),o=Pc(),a=te("path"),l=En();e.exports=(g,y,_)=>{let x=r(g);if(!x.file)throw new TypeError("file is required");if(x.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),x.sync?c(x,y):h(x,y,_)};var c=(g,y)=>{let _=new i.Sync(g),x=!0,k,C;try{try{k=n.openSync(g.file,"r+")}catch(I){if(I.code==="ENOENT")k=n.openSync(g.file,"w+");else throw I}let T=n.fstatSync(k),O=Buffer.alloc(512);e:for(C=0;C<T.size;C+=512){for(let v=0,F=0;v<512;v+=F){if(F=n.readSync(k,O,v,O.length-v,C+v),C===0&&O[0]===31&&O[1]===139)throw new Error("cannot append to compressed archives");if(!F)break e}let I=new l(O);if(!I.cksumValid)break;let w=512*Math.ceil(I.size/512);if(C+w+512>T.size)break;C+=w,g.mtimeCache&&g.mtimeCache.set(I.path,I.mtime)}x=!1,u(g,_,C,k,y)}finally{if(x)try{n.closeSync(k)}catch{}}},u=(g,y,_,x,k)=>{let C=new s.WriteStreamSync(g.file,{fd:x,start:_});y.pipe(C),f(y,k)},h=(g,y,_)=>{y=Array.from(y);let x=new i(g),k=(T,O,I)=>{let w=($,K)=>{$?n.close(T,V=>I($)):I(null,K)},v=0;if(O===0)return w(null,0);let F=0,q=Buffer.alloc(512),P=($,K)=>{if($)return w($);if(F+=K,F<512&&K)return n.read(T,q,F,q.length-F,v+F,P);if(v===0&&q[0]===31&&q[1]===139)return w(new Error("cannot append to compressed archives"));if(F<512)return w(null,v);let V=new l(q);if(!V.cksumValid)return w(null,v);let N=512*Math.ceil(V.size/512);if(v+N+512>O||(v+=N+512,v>=O))return w(null,v);g.mtimeCache&&g.mtimeCache.set(V.path,V.mtime),F=0,n.read(T,q,0,512,v,P)};n.read(T,q,0,512,v,P)},C=new Promise((T,O)=>{x.on("error",O);let I="r+",w=(v,F)=>{if(v&&v.code==="ENOENT"&&I==="r+")return I="w+",n.open(g.file,I,w);if(v)return O(v);n.fstat(F,(q,P)=>{if(q)return n.close(F,()=>O(q));k(F,P.size,($,K)=>{if($)return O($);let V=new s.WriteStream(g.file,{fd:F,start:K});x.pipe(V),V.on("error",O),V.on("close",T),d(x,y)})})};n.open(g.file,I,w)});return _?C.then(_,_):C},f=(g,y)=>{y.forEach(_=>{_.charAt(0)==="@"?o({file:a.resolve(g.cwd,_.slice(1)),sync:!0,noResume:!0,onentry:x=>g.add(x)}):g.add(_)}),g.end()},d=(g,y)=>{for(;y.length;){let _=y.shift();if(_.charAt(0)==="@")return o({file:a.resolve(g.cwd,_.slice(1)),noResume:!0,onentry:x=>g.add(x)}).then(x=>d(g,y));g.add(_)}g.end()}}),lk=ee((t,e)=>{"use strict";W();var r=wn(),i=mg();e.exports=(s,o,a)=>{let l=r(s);if(!l.file)throw new TypeError("file is required");if(l.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(l),i(l,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,l)=>o(a,l)&&!(s.mtimeCache.get(a)>l.mtime):(a,l)=>!(s.mtimeCache.get(a)>l.mtime)}}),ck=ee((t,e)=>{W();var{promisify:r}=te("util"),i=te("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),uk=ee((t,e)=>{W();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=te("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:l}=n(o);if(a.test(o.substr(l.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),hk=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(l=>l.isDirectory()?a:void 0,l=>l.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(l){return l.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),yg=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,a)=>{o.recursive=!1;let l=r(s);return l===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(l,o).then(u=>i(s,o,u));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(u=>{if(u.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let l=r(s);if(o.recursive=!1,l===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(l,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),fk=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=hk(),{mkdirpManual:s,mkdirpManualSync:o}=yg(),a=(c,u)=>(u.recursive=!0,r(c)===c?u.mkdirAsync(c,u):i(u,c).then(h=>u.mkdirAsync(c,u).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,u);throw f}))),l=(c,u)=>{if(u.recursive=!0,r(c)===c)return u.mkdirSync(c,u);let h=n(u,c);try{return u.mkdirSync(c,u),h}catch(f){if(f.code==="ENOENT")return o(c,u);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:l}}),pk=ee((t,e)=>{W();var r=te("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?l=>l.mkdir===r.mkdir:()=>!1,a=s?l=>l.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),dk=ee((t,e)=>{W();var r=ck(),i=uk(),{mkdirpNative:n,mkdirpNativeSync:s}=fk(),{mkdirpManual:o,mkdirpManualSync:a}=yg(),{useNative:l,useNativeSync:c}=pk(),u=(f,d)=>(f=i(f),d=r(d),l(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));u.sync=h,u.native=(f,d)=>n(i(f),r(d)),u.manual=(f,d)=>o(i(f),r(d)),u.nativeSync=(f,d)=>s(i(f),r(d)),u.manualSync=(f,d)=>a(i(f),r(d)),e.exports=u}),mk=ee((t,e)=>{"use strict";W();var r=te("fs"),i=te("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(C,T,O)=>{try{return r[s](C,T,O)}catch(I){if(I.code!=="ENOENT")throw I}},l=(C,T,O)=>{try{return r.chownSync(C,T,O)}catch(I){if(I.code!=="ENOENT")throw I}},c=o?(C,T,O,I)=>w=>{!w||w.code!=="EISDIR"?I(w):r.chown(C,T,O,I)}:(C,T,O,I)=>I,u=o?(C,T,O)=>{try{return a(C,T,O)}catch(I){if(I.code!=="EISDIR")throw I;l(C,T,O)}}:(C,T,O)=>a(C,T,O),h=process.version,f=(C,T,O)=>r.readdir(C,T,O),d=(C,T)=>r.readdirSync(C,T);/^v4\./.test(h)&&(f=(C,T,O)=>r.readdir(C,O));var g=(C,T,O,I)=>{r[n](C,T,O,c(C,T,O,w=>{I(w&&w.code!=="ENOENT"?w:null)}))},y=(C,T,O,I,w)=>{if(typeof T=="string")return r.lstat(i.resolve(C,T),(v,F)=>{if(v)return w(v.code!=="ENOENT"?v:null);F.name=T,y(C,F,O,I,w)});if(T.isDirectory())_(i.resolve(C,T.name),O,I,v=>{if(v)return w(v);let F=i.resolve(C,T.name);g(F,O,I,w)});else{let v=i.resolve(C,T.name);g(v,O,I,w)}},_=(C,T,O,I)=>{f(C,{withFileTypes:!0},(w,v)=>{if(w){if(w.code==="ENOENT")return I();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return I(w)}if(w||!v.length)return g(C,T,O,I);let F=v.length,q=null,P=$=>{if(!q){if($)return I(q=$);if(--F===0)return g(C,T,O,I)}};v.forEach($=>y(C,$,T,O,P))})},x=(C,T,O,I)=>{if(typeof T=="string")try{let w=r.lstatSync(i.resolve(C,T));w.name=T,T=w}catch(w){if(w.code==="ENOENT")return;throw w}T.isDirectory()&&k(i.resolve(C,T.name),O,I),u(i.resolve(C,T.name),O,I)},k=(C,T,O)=>{let I;try{I=d(C,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return u(C,T,O);throw w}return I&&I.length&&I.forEach(w=>x(C,w,T,O)),u(C,T,O)};e.exports=_,_.sync=k}),yk=ee((t,e)=>{"use strict";W();var r=dk(),i=te("fs"),n=te("path"),s=mk(),o=Sn(),a=class extends Error{constructor(y,_){super("Cannot extract through symbolic link"),this.path=_,this.symlink=y}get name(){return"SylinkError"}},l=class extends Error{constructor(y,_){super(_+": Cannot cd into '"+y+"'"),this.path=y,this.code=_}get name(){return"CwdError"}},c=(y,_)=>y.get(o(_)),u=(y,_,x)=>y.set(o(_),x),h=(y,_)=>{i.stat(y,(x,k)=>{(x||!k.isDirectory())&&(x=new l(y,x&&x.code||"ENOTDIR")),_(x)})};e.exports=(y,_,x)=>{y=o(y);let k=_.umask,C=_.mode|448,T=(C&k)!==0,O=_.uid,I=_.gid,w=typeof O=="number"&&typeof I=="number"&&(O!==_.processUid||I!==_.processGid),v=_.preserve,F=_.unlink,q=_.cache,P=o(_.cwd),$=(V,N)=>{V?x(V):(u(q,y,!0),N&&w?s(N,O,I,A=>$(A)):T?i.chmod(y,C,x):x())};if(q&&c(q,y)===!0)return $();if(y===P)return h(y,$);if(v)return r(y,{mode:C}).then(V=>$(null,V),$);let K=o(n.relative(P,y)).split("/");f(P,K,C,q,F,P,null,$)};var f=(y,_,x,k,C,T,O,I)=>{if(!_.length)return I(null,O);let w=_.shift(),v=o(n.resolve(y+"/"+w));if(c(k,v))return f(v,_,x,k,C,T,O,I);i.mkdir(v,x,d(v,_,x,k,C,T,O,I))},d=(y,_,x,k,C,T,O,I)=>w=>{w?i.lstat(y,(v,F)=>{if(v)v.path=v.path&&o(v.path),I(v);else if(F.isDirectory())f(y,_,x,k,C,T,O,I);else if(C)i.unlink(y,q=>{if(q)return I(q);i.mkdir(y,x,d(y,_,x,k,C,T,O,I))});else{if(F.isSymbolicLink())return I(new a(y,y+"/"+_.join("/")));I(w)}}):(O=O||y,f(y,_,x,k,C,T,O,I))},g=y=>{let _=!1,x="ENOTDIR";try{_=i.statSync(y).isDirectory()}catch(k){x=k.code}finally{if(!_)throw new l(y,x)}};e.exports.sync=(y,_)=>{y=o(y);let x=_.umask,k=_.mode|448,C=(k&x)!==0,T=_.uid,O=_.gid,I=typeof T=="number"&&typeof O=="number"&&(T!==_.processUid||O!==_.processGid),w=_.preserve,v=_.unlink,F=_.cache,q=o(_.cwd),P=V=>{u(F,y,!0),V&&I&&s.sync(V,T,O),C&&i.chmodSync(y,k)};if(F&&c(F,y)===!0)return P();if(y===q)return g(q),P();if(w)return P(r.sync(y,k));let $=o(n.relative(q,y)).split("/"),K=null;for(let V=$.shift(),N=q;V&&(N+="/"+V);V=$.shift())if(N=o(n.resolve(N)),!c(F,N))try{i.mkdirSync(N,k),K=K||N,u(F,N,!0)}catch{let A=i.lstatSync(N);if(A.isDirectory()){u(F,N,!0);continue}else if(v){i.unlinkSync(N),i.mkdirSync(N,k),K=K||N,u(F,N,!0);continue}else if(A.isSymbolicLink())return new a(N,N+"/"+$.join("/"))}return P(K)}}),gg=ee((t,e)=>{W();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),gk=ee((t,e)=>{W();var r=te("assert"),i=gg(),n=vn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let l=new Map,c=new Map,u=_=>_.split("/").slice(0,-1).reduce((x,k)=>(x.length&&(k=s(x[x.length-1],k)),x.push(k||"/"),x),[]),h=new Set,f=_=>{let x=c.get(_);if(!x)throw new Error("function does not have any path reservations");return{paths:x.paths.map(k=>l.get(k)),dirs:[...x.dirs].map(k=>l.get(k))}},d=_=>{let{paths:x,dirs:k}=f(_);return x.every(C=>C[0]===_)&&k.every(C=>C[0]instanceof Set&&C[0].has(_))},g=_=>h.has(_)||!d(_)?!1:(h.add(_),_(()=>y(_)),!0),y=_=>{if(!h.has(_))return!1;let{paths:x,dirs:k}=c.get(_),C=new Set;return x.forEach(T=>{let O=l.get(T);r.equal(O[0],_),O.length===1?l.delete(T):(O.shift(),typeof O[0]=="function"?C.add(O[0]):O[0].forEach(I=>C.add(I)))}),k.forEach(T=>{let O=l.get(T);r(O[0]instanceof Set),O[0].size===1&&O.length===1?l.delete(T):O[0].size===1?(O.shift(),C.add(O[0])):O[0].delete(_)}),h.delete(_),C.forEach(T=>g(T)),!0};return{check:d,reserve:(_,x)=>{_=a?["win32 parallelization disabled"]:_.map(C=>i(n(s(C))).toLowerCase());let k=new Set(_.map(C=>u(C)).reduce((C,T)=>C.concat(T)));return c.set(x,{dirs:k,paths:_}),_.forEach(C=>{let T=l.get(C);T?T.push(x):l.set(C,[x])}),k.forEach(C=>{let T=l.get(C);T?T[T.length-1]instanceof Set?T[T.length-1].add(x):T.push(new Set([x])):l.set(C,[new Set([x])])}),g(x)}}}}),_k=ee((t,e)=>{W();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||te("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:l=0}=n.constants,c=i&&!!l,u=512*1024,h=l|o|s|a;e.exports=c?f=>f<u?h:"w":()=>"w"}),_g=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Lc(),n=te("fs"),s=Rn(),o=te("path"),a=yk(),l=hg(),c=gk(),u=fg(),h=Sn(),f=vn(),d=gg(),g=Symbol("onEntry"),y=Symbol("checkFs"),_=Symbol("checkFs2"),x=Symbol("pruneCache"),k=Symbol("isReusable"),C=Symbol("makeFs"),T=Symbol("file"),O=Symbol("directory"),I=Symbol("link"),w=Symbol("symlink"),v=Symbol("hardlink"),F=Symbol("unsupported"),q=Symbol("checkPath"),P=Symbol("mkdir"),$=Symbol("onError"),K=Symbol("pending"),V=Symbol("pend"),N=Symbol("unpend"),A=Symbol("ended"),L=Symbol("maybeClose"),j=Symbol("skip"),z=Symbol("doChown"),D=Symbol("uid"),p=Symbol("gid"),m=Symbol("checkedCwd"),b=te("crypto"),R=_k(),E=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,M=E==="win32",B=(S,Y)=>{if(!M)return n.unlink(S,Y);let X=S+".DELETE."+b.randomBytes(16).toString("hex");n.rename(S,X,se=>{if(se)return Y(se);n.unlink(X,Y)})},Z=S=>{if(!M)return n.unlinkSync(S);let Y=S+".DELETE."+b.randomBytes(16).toString("hex");n.renameSync(S,Y),n.unlinkSync(Y)},U=(S,Y,X)=>S===S>>>0?S:Y===Y>>>0?Y:X,J=S=>d(f(h(S))).toLowerCase(),G=(S,Y)=>{Y=J(Y);for(let X of S.keys()){let se=J(X);(se===Y||se.indexOf(Y+"/")===0)&&S.delete(X)}},re=S=>{for(let Y of S.keys())S.delete(Y)},ce=class extends i{constructor(S){if(S||(S={}),S.ondone=Y=>{this[A]=!0,this[L]()},super(S),this[m]=!1,this.reservations=c(),this.transform=typeof S.transform=="function"?S.transform:null,this.writable=!0,this.readable=!1,this[K]=0,this[A]=!1,this.dirCache=S.dirCache||new Map,typeof S.uid=="number"||typeof S.gid=="number"){if(typeof S.uid!="number"||typeof S.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(S.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=S.uid,this.gid=S.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;S.preserveOwner===void 0&&typeof S.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!S.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=S.forceChown===!0,this.win32=!!S.win32||M,this.newer=!!S.newer,this.keep=!!S.keep,this.noMtime=!!S.noMtime,this.preservePaths=!!S.preservePaths,this.unlink=!!S.unlink,this.cwd=h(o.resolve(S.cwd||process.cwd())),this.strip=+S.strip||0,this.processUmask=S.noChmod?0:process.umask(),this.umask=typeof S.umask=="number"?S.umask:this.processUmask,this.dmode=S.dmode||511&~this.umask,this.fmode=S.fmode||438&~this.umask,this.on("entry",Y=>this[g](Y))}warn(S,Y,X={}){return(S==="TAR_BAD_ARCHIVE"||S==="TAR_ABORT")&&(X.recoverable=!1),super.warn(S,Y,X)}[L](){this[A]&&this[K]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](S){if(this.strip){let Y=h(S.path).split("/");if(Y.length<this.strip)return!1;if(S.path=Y.slice(this.strip).join("/"),S.type==="Link"){let X=h(S.linkpath).split("/");if(X.length>=this.strip)S.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(S.path),X=Y.split("/");if(X.includes("..")||M&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:S,path:Y}),!1;let[se,le]=u(Y);se&&(S.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:S,path:Y}))}if(o.isAbsolute(S.path)?S.absolute=h(o.resolve(S.path)):S.absolute=h(o.resolve(this.cwd,S.path)),!this.preservePaths&&S.absolute.indexOf(this.cwd+"/")!==0&&S.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:S,path:h(S.path),resolvedPath:S.absolute,cwd:this.cwd}),!1;if(S.absolute===this.cwd&&S.type!=="Directory"&&S.type!=="GNUDumpDir")return!1;if(this.win32){let{root:Y}=o.win32.parse(S.absolute);S.absolute=Y+l.encode(S.absolute.slice(Y.length));let{root:X}=o.win32.parse(S.path);S.path=X+l.encode(S.path.slice(X.length))}return!0}[g](S){if(!this[q](S))return S.resume();switch(r.equal(typeof S.absolute,"string"),S.type){case"Directory":case"GNUDumpDir":S.mode&&(S.mode=S.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](S);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[F](S)}}[$](S,Y){S.name==="CwdError"?this.emit("error",S):(this.warn("TAR_ENTRY_ERROR",S,{entry:Y}),this[N](),Y.resume())}[P](S,Y,X){a(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y,noChmod:this.noChmod},X)}[z](S){return this.forceChown||this.preserveOwner&&(typeof S.uid=="number"&&S.uid!==this.processUid||typeof S.gid=="number"&&S.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[D](S){return U(this.uid,S.uid,this.processUid)}[p](S){return U(this.gid,S.gid,this.processGid)}[T](S,Y){let X=S.mode&4095||this.fmode,se=new s.WriteStream(S.absolute,{flags:R(S.size),mode:X,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[$](fe,S),Y()});let le=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[$](fe,S),Y();return}--le===0&&n.close(se.fd,ve=>{ve?this[$](ve,S):this[N](),Y()})};se.on("finish",fe=>{let ve=S.absolute,pt=se.fd;if(S.mtime&&!this.noMtime){le++;let dt=S.atime||new Date,en=S.mtime;n.futimes(pt,dt,en,tn=>tn?n.utimes(ve,dt,en,aa=>ge(aa&&tn)):ge())}if(this[z](S)){le++;let dt=this[D](S),en=this[p](S);n.fchown(pt,dt,en,tn=>tn?n.chown(ve,dt,en,aa=>ge(aa&&tn)):ge())}ge()});let ue=this.transform&&this.transform(S)||S;ue!==S&&(ue.on("error",fe=>{this[$](fe,S),Y()}),S.pipe(ue)),ue.pipe(se)}[O](S,Y){let X=S.mode&4095||this.dmode;this[P](S.absolute,X,se=>{if(se){this[$](se,S),Y();return}let le=1,ge=ue=>{--le===0&&(Y(),this[N](),S.resume())};S.mtime&&!this.noMtime&&(le++,n.utimes(S.absolute,S.atime||new Date,S.mtime,ge)),this[z](S)&&(le++,n.chown(S.absolute,this[D](S),this[p](S),ge)),ge()})}[F](S){S.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${S.type}`,{entry:S}),S.resume()}[w](S,Y){this[I](S,S.linkpath,"symlink",Y)}[v](S,Y){let X=h(o.resolve(this.cwd,S.linkpath));this[I](S,X,"link",Y)}[V](){this[K]++}[N](){this[K]--,this[L]()}[j](S){this[N](),S.resume()}[k](S,Y){return S.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!M}[y](S){this[V]();let Y=[S.path];S.linkpath&&Y.push(S.linkpath),this.reservations.reserve(Y,X=>this[_](S,X))}[x](S){S.type==="SymbolicLink"?re(this.dirCache):S.type!=="Directory"&&G(this.dirCache,S.absolute)}[_](S,Y){this[x](S);let X=ue=>{this[x](S),Y(ue)},se=()=>{this[P](this.cwd,this.dmode,ue=>{if(ue){this[$](ue,S),X();return}this[m]=!0,le()})},le=()=>{if(S.absolute!==this.cwd){let ue=h(o.dirname(S.absolute));if(ue!==this.cwd)return this[P](ue,this.dmode,fe=>{if(fe){this[$](fe,S),X();return}ge()})}ge()},ge=()=>{n.lstat(S.absolute,(ue,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>S.mtime)){this[j](S),X();return}if(ue||this[k](S,fe))return this[C](null,S,X);if(fe.isDirectory()){if(S.type==="Directory"){let ve=!this.noChmod&&S.mode&&(fe.mode&4095)!==S.mode,pt=dt=>this[C](dt,S,X);return ve?n.chmod(S.absolute,S.mode,pt):pt()}if(S.absolute!==this.cwd)return n.rmdir(S.absolute,ve=>this[C](ve,S,X))}if(S.absolute===this.cwd)return this[C](null,S,X);B(S.absolute,ve=>this[C](ve,S,X))})};this[m]?le():se()}[C](S,Y,X){if(S){this[$](S,Y),X();return}switch(Y.type){case"File":case"OldFile":case"ContiguousFile":return this[T](Y,X);case"Link":return this[v](Y,X);case"SymbolicLink":return this[w](Y,X);case"Directory":case"GNUDumpDir":return this[O](Y,X)}}[I](S,Y,X,se){n[X](Y,S.absolute,le=>{le?this[$](le,S):(this[N](),S.resume()),se()})}},Se=S=>{try{return[null,S()]}catch(Y){return[Y,null]}},_e=class extends ce{[C](S,Y){return super[C](S,Y,()=>{})}[y](S){if(this[x](S),!this[m]){let le=this[P](this.cwd,this.dmode);if(le)return this[$](le,S);this[m]=!0}if(S.absolute!==this.cwd){let le=h(o.dirname(S.absolute));if(le!==this.cwd){let ge=this[P](le,this.dmode);if(ge)return this[$](ge,S)}}let[Y,X]=Se(()=>n.lstatSync(S.absolute));if(X&&(this.keep||this.newer&&X.mtime>S.mtime))return this[j](S);if(Y||this[k](S,X))return this[C](null,S);if(X.isDirectory()){if(S.type==="Directory"){let ge=!this.noChmod&&S.mode&&(X.mode&4095)!==S.mode,[ue]=ge?Se(()=>{n.chmodSync(S.absolute,S.mode)}):[];return this[C](ue,S)}let[le]=Se(()=>n.rmdirSync(S.absolute));this[C](le,S)}let[se]=S.absolute===this.cwd?[]:Se(()=>Z(S.absolute));this[C](se,S)}[T](S,Y){let X=S.mode&4095||this.fmode,se=ue=>{let fe;try{n.closeSync(le)}catch(ve){fe=ve}(ue||fe)&&this[$](ue||fe,S),Y()},le;try{le=n.openSync(S.absolute,R(S.size),X)}catch(ue){return se(ue)}let ge=this.transform&&this.transform(S)||S;ge!==S&&(ge.on("error",ue=>this[$](ue,S)),S.pipe(ge)),ge.on("data",ue=>{try{n.writeSync(le,ue,0,ue.length)}catch(fe){se(fe)}}),ge.on("end",ue=>{let fe=null;if(S.mtime&&!this.noMtime){let ve=S.atime||new Date,pt=S.mtime;try{n.futimesSync(le,ve,pt)}catch(dt){try{n.utimesSync(S.absolute,ve,pt)}catch{fe=dt}}}if(this[z](S)){let ve=this[D](S),pt=this[p](S);try{n.fchownSync(le,ve,pt)}catch(dt){try{n.chownSync(S.absolute,ve,pt)}catch{fe=fe||dt}}}se(fe)})}[O](S,Y){let X=S.mode&4095||this.dmode,se=this[P](S.absolute,X);if(se){this[$](se,S),Y();return}if(S.mtime&&!this.noMtime)try{n.utimesSync(S.absolute,S.atime||new Date,S.mtime)}catch{}if(this[z](S))try{n.chownSync(S.absolute,this[D](S),this[p](S))}catch{}Y(),S.resume()}[P](S,Y){try{return a.sync(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y})}catch(X){return X}}[I](S,Y,X,se){try{n[X+"Sync"](Y,S.absolute),se(),S.resume()}catch(le){return this[$](le,S)}}};ce.Sync=_e,e.exports=ce}),bk=ee((t,e)=>{"use strict";W();var r=wn(),i=_g(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(_,g),_.file&&_.sync?c(_):_.file?u(_,y):_.sync?h(_):f(_)};var l=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},c=d=>{let g=new i.Sync(d),y=d.file,_=n.statSync(y),x=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:x,size:_.size}).pipe(g)},u=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("close",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},h=d=>new i.Sync(d),f=d=>new i(d)}),wk=ee(t=>{"use strict";W(),t.c=t.create=ak(),t.r=t.replace=mg(),t.t=t.list=Pc(),t.u=t.update=lk(),t.x=t.extract=bk(),t.Pack=Cc(),t.Unpack=_g(),t.Parse=Lc(),t.ReadEntry=Oc(),t.WriteEntry=pg(),t.Header=En(),t.Pax=Tc(),t.types=ug()}),Sk=ee((t,e)=>{W();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.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))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],l=a.message,c=(i[l]||0)+1;i[l]=c,c>=s&&(n=a,s=c)}return n}}),Ek=ee(t=>{W();var e=Sk();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,l){return a-l}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],l=r[a];r[a]=function(c){var u=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),f.apply(this,arguments))}),u.attempt(function(){c.apply(r,h)})}.bind(r,l),r[a].options=i}}}),vk=ee((t,e)=>{W(),e.exports=Ek()}),Rk=ee((t,e)=>{W();var r=vk();function i(n,s){function o(a,l){var c=s||{},u;"randomize"in c||(c.randomize=!0),u=r.operation(c);function h(g){l(g||new Error("Aborted"))}function f(g,y){if(g.bail){h(g);return}u.retry(g)?c.onRetry&&c.onRetry(g,y):l(u.mainError())}function d(g){var y;try{y=n(h,g)}catch(_){f(_,g);return}Promise.resolve(y).then(a).catch(function(_){f(_,g)})}u.attempt(d)}return new Promise(o)}e.exports=i}),xk={};WT(xk,{bold:()=>Ck,dimmed:()=>Pk,error:()=>Mk,grey:()=>Ik,info:()=>kk,item:()=>Nk,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Ok,turboLoader:()=>Tk,turboRed:()=>vg,underline:()=>Lk,warn:()=>Dk,yellow:()=>Rg});W();var Sg="#0099F7",Eg="#F11712",Ak="#FFFF00",Ic=t=>{let e=Fk(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ge.reset)("")}`},Ok=(0,wg.default)(Sg,Eg),vi=Ic(Sg),vg=Ic(Eg),Rg=Ic(Ak),Tk=t=>(0,bg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),kk=(...t)=>{jr(vi((0,Ge.bold)(">>>")),t.join(" "))},Ck=(...t)=>{jr((0,Ge.bold)(t.join(" ")))},Lk=(...t)=>{jr((0,Ge.underline)(t.join(" ")))},Pk=(...t)=>{jr((0,Ge.dim)(t.join(" ")))},Ik=(...t)=>{jr((0,Ge.gray)(t.join(" ")))},Nk=(...t)=>{jr(vi((0,Ge.bold)(" \u2022")),t.join(" "))},jr=(...t)=>{console.log(...t)},Dk=(...t)=>{console.error(Rg((0,Ge.bold)(">>>")),t.join(" "))},Mk=(...t)=>{console.error(vg((0,Ge.bold)(">>>")),t.join(" "))};function Fk(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}W();W();W();W();var JN=Ks(ZT());W();W();function jk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function vc(t){return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(t)}W();function Hk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qk(t,e){if(e&&(vc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hk(t)}W();function Ys(t){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(t)}W();W();function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gn(t,e)}function Uk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}W();W();function $k(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Gk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ws(t,e,r){return Gk()?Ws=Reflect.construct.bind():Ws=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),l=new a;return s&&gn(l,s.prototype),l},Ws.apply(null,arguments)}function Rc(t){var e=typeof Map=="function"?new Map:void 0;return Rc=function(r){if(r===null||!$k(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ws(r,arguments,Ys(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gn(i,r)},Rc(t)}var QN=Ks(rk()),rD=function(t){Uk(e,t);function e(r){var i;return jk(this,e),i=qk(this,Ys(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Rc(Error));W();W();W();W();W();W();var pD=Ks(wk()),dD=(0,Ag.promisify)(xg.Stream.pipeline);W();W();var _D=Ks(Rk());W();W();W();var Ie=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,Ie)}};W();W();W();W();var zk=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ze({workspaceRoot:t}){let e=jt.default.join(t,"package.json");try{return(0,Qe.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ie(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ie(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Vs({workspaceRoot:t}){let{packageManager:e}=ze({workspaceRoot:t});if(e)try{let r=zk.exec(e);if(r){let[i,n]=r;return n}}catch{}}function xn({workspaceRoot:t}){let e=ze({workspaceRoot:t}),r=jt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function sg({workspaceRoot:t}){let e=jt.default.join(t,"pnpm-workspace.yaml");if((0,Qe.existsSync)(e))try{let r=qa.load((0,Qe.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ie(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Zs({root:t,lockFile:e,workspaceConfig:r}){let i=s=>jt.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Nc({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Xs({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,Pg.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=jt.default.dirname(i),{name:s,description:o}=xn({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:jt.default.join(n,"node_modules")}}})}function Wk({directory:t}){let e=jt.default.resolve(process.cwd(),t);return{exists:(0,Qe.existsSync)(e),absolute:e}}function fr({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Yk({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Bt({project:t,options:e}){e!=null&&e.dry||(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}async function Ig({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Qe.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Lg.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Qe.writeFile)(jt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}}function Kk({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ur({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ze({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=Kk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${(0,Cg.green)(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${Tg.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${u}`:d===c.length-1?h+=`and ${f} in ${u}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${u}`);n!=null&&n.dry||(0,kg.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var hr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Ng(t){let e=Fr.default.join(t.workspaceRoot,hr.lock),r=Fr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Vs({workspaceRoot:t.workspaceRoot});return(0,qe.existsSync)(e)||(0,qe.existsSync)(r)||i===hr.name}async function Vk(t){if(!await Ng(t))throw new Ie("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=xn(t);return{name:e,description:r,packageManager:hr.name,paths:Zs({root:t.workspaceRoot,lockFile:hr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:sg(t),workspaces:Xs({workspaceGlobs:sg(t),...t})}}}async function Zk(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({action:"create",packageManager:hr.name,project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,qe.writeFileSync)(Fr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
41
|
+
`).reduce(a,Object.create(null)),a=(l,c)=>{let u=parseInt(c,10);if(u!==Buffer.byteLength(c)+1)return l;c=c.slice((u+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return l;let d=h.join("=");return l[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,l};e.exports=n}),vn=ee((t,e)=>{W(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),kc=ee((t,e)=>{"use strict";W(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),hg=ee((t,e)=>{"use strict";W();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,l)=>a.split(l).join(n.get(l)),o),decode:o=>i.reduce((a,l)=>a.split(l).join(s.get(l)),o)}}),fg=ee((t,e)=>{W();var{isAbsolute:r,parse:i}=te("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),nk=ee((t,e)=>{"use strict";W(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),pg=ee((t,e)=>{"use strict";W();var r=Ac(),i=Tc(),n=En(),s=te("fs"),o=te("path"),a=Sn(),l=vn(),c=(m,b)=>b?(m=a(m).replace(/^\.(\/|$)/,""),l(b)+"/"+m):a(m),u=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),_=Symbol("header"),x=Symbol("read"),k=Symbol("lstat"),C=Symbol("onlstat"),T=Symbol("onread"),O=Symbol("onreadlink"),I=Symbol("openfile"),w=Symbol("onopenfile"),v=Symbol("close"),F=Symbol("mode"),q=Symbol("awaitDrain"),P=Symbol("ondrain"),$=Symbol("prefix"),K=Symbol("hadError"),V=kc(),N=hg(),A=fg(),L=nk(),j=V(class extends r{constructor(m,b){if(b=b||{},super(b),typeof m!="string")throw new TypeError("path is required");this.path=a(m),this.portable=!!b.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=b.maxReadSize||u,this.linkCache=b.linkCache||new Map,this.statCache=b.statCache||new Map,this.preservePaths=!!b.preservePaths,this.cwd=a(b.cwd||process.cwd()),this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.mtime=b.mtime||null,this.prefix=b.prefix?a(b.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let R=!1;if(!this.preservePaths){let[E,M]=A(this.path);E&&(this.path=M,R=E)}this.win32=!!b.win32||process.platform==="win32",this.win32&&(this.path=N.decode(this.path.replace(/\\/g,"/")),m=m.replace(/\\/g,"/")),this.absolute=a(b.absolute||o.resolve(this.cwd,m)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[C](this.statCache.get(this.absolute)):this[k]()}emit(m,...b){return m==="error"&&(this[K]=!0),super.emit(m,...b)}[k](){s.lstat(this.absolute,(m,b)=>{if(m)return this.emit("error",m);this[C](b)})}[C](m){this.statCache.set(this.absolute,m),this.stat=m,m.isFile()||(m.size=0),this.type=p(m),this.emit("stat",m),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[g]();default:return this.end()}}[F](m){return L(m,this.type==="Directory",this.portable)}[$](m){return c(m,this.prefix)}[_](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,mode:this[F](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[_](),this.end()}[g](){s.readlink(this.absolute,(m,b)=>{if(m)return this.emit("error",m);this[O](b)})}[O](m){this.linkpath=a(m),this[_](),this.end()}[y](m){this.type="Link",this.linkpath=a(o.relative(this.cwd,m)),this.stat.size=0,this[_](),this.end()}[f](){if(this.stat.nlink>1){let m=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(m)){let b=this.linkCache.get(m);if(b.indexOf(this.cwd)===0)return this[y](b)}this.linkCache.set(m,this.absolute)}if(this[_](),this.stat.size===0)return this.end();this[I]()}[I](){s.open(this.absolute,"r",(m,b)=>{if(m)return this.emit("error",m);this[w](b)})}[w](m){if(this.fd=m,this[K])return this[v]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let b=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(b),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[x]()}[x](){let{fd:m,buf:b,offset:R,length:E,pos:M}=this;s.read(m,b,R,E,M,(B,Z)=>{if(B)return this[v](()=>this.emit("error",B));this[T](Z)})}[v](m){s.close(this.fd,m)}[T](m){if(m<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[v](()=>this.emit("error",R))}if(m>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[v](()=>this.emit("error",R))}if(m===this.remain)for(let R=m;R<this.length&&m<this.blockRemain;R++)this.buf[R+this.offset]=0,m++,this.remain++;let b=this.offset===0&&m===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+m);this.write(b)?this[P]():this[q](()=>this[P]())}[q](m){this.once("drain",m)}write(m){if(this.blockRemain<m.length){let b=new Error("writing more data than expected");return b.path=this.absolute,this.emit("error",b)}return this.remain-=m.length,this.blockRemain-=m.length,this.pos+=m.length,this.offset+=m.length,super.write(m)}[P](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[v](m=>m?this.emit("error",m):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[x]()}}),z=class extends j{[k](){this[C](s.lstatSync(this.absolute))}[g](){this[O](s.readlinkSync(this.absolute))}[I](){this[w](s.openSync(this.absolute,"r"))}[x](){let m=!0;try{let{fd:b,buf:R,offset:E,length:M,pos:B}=this,Z=s.readSync(b,R,E,M,B);this[T](Z),m=!1}finally{if(m)try{this[v](()=>{})}catch{}}}[q](m){m()}[v](m){s.closeSync(this.fd),m()}},D=V(class extends r{constructor(m,b){b=b||{},super(b),this.preservePaths=!!b.preservePaths,this.portable=!!b.portable,this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.readEntry=m,this.type=m.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=b.prefix||null,this.path=a(m.path),this.mode=this[F](m.mode),this.uid=this.portable?null:m.uid,this.gid=this.portable?null:m.gid,this.uname=this.portable?null:m.uname,this.gname=this.portable?null:m.gname,this.size=m.size,this.mtime=this.noMtime?null:b.mtime||m.mtime,this.atime=this.portable?null:m.atime,this.ctime=this.portable?null:m.ctime,this.linkpath=a(m.linkpath),typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let R=!1;if(!this.preservePaths){let[E,M]=A(this.path);E&&(this.path=M,R=E)}this.remain=m.size,this.blockRemain=m.startBlockSize,this.header=new n({path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[$](this.path),linkpath:this.type==="Link"?this[$](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),m.pipe(this)}[$](m){return c(m,this.prefix)}[F](m){return L(m,this.type==="Directory",this.portable)}write(m){let b=m.length;if(b>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=b,super.write(m)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});j.Sync=z,j.Tar=D;var p=m=>m.isFile()?"File":m.isDirectory()?"Directory":m.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=j}),sk=ee((t,e)=>{"use strict";W(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),dg=ee((t,e)=>{"use strict";W(),e.exports=r,r.Node=o,r.create=r;function r(a){var l=this;if(l instanceof r||(l=new r),l.tail=null,l.head=null,l.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){l.push(h)});else if(arguments.length>0)for(var c=0,u=arguments.length;c<u;c++)l.push(arguments[c]);return l}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var l=a.next,c=a.prev;return l&&(l.prev=c),c&&(c.next=l),a===this.head&&(this.head=l),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,l},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var l=this.head;a.list=this,a.next=l,l&&(l.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var l=this.tail;a.list=this,a.prev=l,l&&(l.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,l=arguments.length;a<l;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,l=arguments.length;a<l;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,l){l=l||this;for(var c=this.head,u=0;c!==null;u++)a.call(l,c.value,u,this),c=c.next},r.prototype.forEachReverse=function(a,l){l=l||this;for(var c=this.tail,u=this.length-1;c!==null;u--)a.call(l,c.value,u,this),c=c.prev},r.prototype.get=function(a){for(var l=0,c=this.head;c!==null&&l<a;l++)c=c.next;if(l===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var l=0,c=this.tail;c!==null&&l<a;l++)c=c.prev;if(l===a&&c!==null)return c.value},r.prototype.map=function(a,l){l=l||this;for(var c=new r,u=this.head;u!==null;)c.push(a.call(l,u.value,this)),u=u.next;return c},r.prototype.mapReverse=function(a,l){l=l||this;for(var c=new r,u=this.tail;u!==null;)c.push(a.call(l,u.value,this)),u=u.prev;return c},r.prototype.reduce=function(a,l){var c,u=this.head;if(arguments.length>1)c=l;else if(this.head)u=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;u!==null;h++)c=a(c,u.value,h),u=u.next;return c},r.prototype.reduceReverse=function(a,l){var c,u=this.tail;if(arguments.length>1)c=l;else if(this.tail)u=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;u!==null;h--)c=a(c,u.value,h),u=u.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),l=0,c=this.head;c!==null;l++)a[l]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),l=0,c=this.tail;c!==null;l++)a[l]=c.value,c=c.prev;return a},r.prototype.slice=function(a,l){l=l||this.length,l<0&&(l+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(l<a||l<0)return c;a<0&&(a=0),l>this.length&&(l=this.length);for(var u=0,h=this.head;h!==null&&u<a;u++)h=h.next;for(;h!==null&&u<l;u++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,l){l=l||this.length,l<0&&(l+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(l<a||l<0)return c;a<0&&(a=0),l>this.length&&(l=this.length);for(var u=this.length,h=this.tail;h!==null&&u>l;u--)h=h.prev;for(;h!==null&&u>a;u--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,l,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var u=0,h=this.head;h!==null&&u<a;u++)h=h.next;for(var f=[],u=0;h&&u<l;u++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var u=0;u<c.length;u++)h=i(this,h,c[u]);return f},r.prototype.reverse=function(){for(var a=this.head,l=this.tail,c=a;c!==null;c=c.prev){var u=c.prev;c.prev=c.next,c.next=u}return this.head=l,this.tail=a,this};function i(a,l,c){var u=l===a.head?new o(c,null,l,a):new o(c,l,l.next,a);return u.next===null&&(a.tail=u),u.prev===null&&(a.head=u),a.length++,u}function n(a,l){a.tail=new o(l,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,l){a.head=new o(l,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,l,c,u){if(!(this instanceof o))return new o(a,l,c,u);this.list=u,this.value=a,l?(l.next=this,this.prev=l):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{sk()(r)}catch{}}),Cc=ee((t,e)=>{"use strict";W();var r=class{constructor(p,m){this.path=p||"./",this.absolute=m,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Ac(),n=cg(),s=Oc(),o=pg(),a=o.Sync,l=o.Tar,c=dg(),u=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),g=Symbol("current"),y=Symbol("process"),_=Symbol("processing"),x=Symbol("processJob"),k=Symbol("jobs"),C=Symbol("jobDone"),T=Symbol("addFSEntry"),O=Symbol("addTarEntry"),I=Symbol("stat"),w=Symbol("readdir"),v=Symbol("onreaddir"),F=Symbol("pipe"),q=Symbol("entry"),P=Symbol("entryOpt"),$=Symbol("writeEntryClass"),K=Symbol("write"),V=Symbol("ondrain"),N=te("fs"),A=te("path"),L=kc(),j=Sn(),z=L(class extends i{constructor(p){super(p),p=p||Object.create(null),this.opt=p,this.file=p.file||"",this.cwd=p.cwd||process.cwd(),this.maxReadSize=p.maxReadSize,this.preservePaths=!!p.preservePaths,this.strict=!!p.strict,this.noPax=!!p.noPax,this.prefix=j(p.prefix||""),this.linkCache=p.linkCache||new Map,this.statCache=p.statCache||new Map,this.readdirCache=p.readdirCache||new Map,this[$]=o,typeof p.onwarn=="function"&&this.on("warn",p.onwarn),this.portable=!!p.portable,this.zip=null,p.gzip?(typeof p.gzip!="object"&&(p.gzip={}),this.portable&&(p.gzip.portable=!0),this.zip=new n.Gzip(p.gzip),this.zip.on("data",m=>super.write(m)),this.zip.on("end",m=>super.end()),this.zip.on("drain",m=>this[V]()),this.on("resume",m=>this.zip.resume())):this.on("drain",this[V]),this.noDirRecurse=!!p.noDirRecurse,this.follow=!!p.follow,this.noMtime=!!p.noMtime,this.mtime=p.mtime||null,this.filter=typeof p.filter=="function"?p.filter:m=>!0,this[d]=new c,this[k]=0,this.jobs=+p.jobs||4,this[_]=!1,this[f]=!1}[K](p){return super.write(p)}add(p){return this.write(p),this}end(p){return p&&this.write(p),this[f]=!0,this[y](),this}write(p){if(this[f])throw new Error("write after end");return p instanceof s?this[O](p):this[T](p),this.flowing}[O](p){let m=j(A.resolve(this.cwd,p.path));if(!this.filter(p.path,p))p.resume();else{let b=new r(p.path,m,!1);b.entry=new l(p,this[P](b)),b.entry.on("end",R=>this[C](b)),this[k]+=1,this[d].push(b)}this[y]()}[T](p){let m=j(A.resolve(this.cwd,p));this[d].push(new r(p,m)),this[y]()}[I](p){p.pending=!0,this[k]+=1;let m=this.follow?"stat":"lstat";N[m](p.absolute,(b,R)=>{p.pending=!1,this[k]-=1,b?this.emit("error",b):this[h](p,R)})}[h](p,m){this.statCache.set(p.absolute,m),p.stat=m,this.filter(p.path,m)||(p.ignore=!0),this[y]()}[w](p){p.pending=!0,this[k]+=1,N.readdir(p.absolute,(m,b)=>{if(p.pending=!1,this[k]-=1,m)return this.emit("error",m);this[v](p,b)})}[v](p,m){this.readdirCache.set(p.absolute,m),p.readdir=m,this[y]()}[y](){if(!this[_]){this[_]=!0;for(let p=this[d].head;p!==null&&this[k]<this.jobs;p=p.next)if(this[x](p.value),p.value.ignore){let m=p.next;this[d].removeNode(p),p.next=m}this[_]=!1,this[f]&&!this[d].length&&this[k]===0&&(this.zip?this.zip.end(u):(super.write(u),super.end()))}}get[g](){return this[d]&&this[d].head&&this[d].head.value}[C](p){this[d].shift(),this[k]-=1,this[y]()}[x](p){if(!p.pending){if(p.entry){p===this[g]&&!p.piped&&this[F](p);return}if(p.stat||(this.statCache.has(p.absolute)?this[h](p,this.statCache.get(p.absolute)):this[I](p)),!!p.stat&&!p.ignore&&!(!this.noDirRecurse&&p.stat.isDirectory()&&!p.readdir&&(this.readdirCache.has(p.absolute)?this[v](p,this.readdirCache.get(p.absolute)):this[w](p),!p.readdir))){if(p.entry=this[q](p),!p.entry){p.ignore=!0;return}p===this[g]&&!p.piped&&this[F](p)}}}[P](p){return{onwarn:(m,b,R)=>this.warn(m,b,R),noPax:this.noPax,cwd:this.cwd,absolute:p.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[q](p){this[k]+=1;try{return new this[$](p.path,this[P](p)).on("end",()=>this[C](p)).on("error",m=>this.emit("error",m))}catch(m){this.emit("error",m)}}[V](){this[g]&&this[g].entry&&this[g].entry.resume()}[F](p){p.piped=!0,p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)});let m=p.entry,b=this.zip;b?m.on("data",R=>{b.write(R)||m.pause()}):m.on("data",R=>{super.write(R)||m.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),D=class extends z{constructor(p){super(p),this[$]=a}pause(){}resume(){}[I](p){let m=this.follow?"statSync":"lstatSync";this[h](p,N[m](p.absolute))}[w](p,m){this[v](p,N.readdirSync(p.absolute))}[F](p){let m=p.entry,b=this.zip;p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)}),b?m.on("data",R=>{b.write(R)}):m.on("data",R=>{super[K](R)})}};z.Sync=D,e.exports=z}),Rn=ee(t=>{"use strict";W();var e=ag(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let p=process.binding("fs"),m=p.FSReqWrap||p.FSReqCallback;n=(b,R,E,M)=>{let B=(U,J)=>M(U,J,R),Z=new m;Z.oncomplete=B,p.writeBuffers(b,R,E,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),l=Symbol("_fd"),c=Symbol("_finished"),u=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),y=Symbol("_needDrain"),_=Symbol("_onerror"),x=Symbol("_onopen"),k=Symbol("_onread"),C=Symbol("_onwrite"),T=Symbol("_open"),O=Symbol("_path"),I=Symbol("_pos"),w=Symbol("_queue"),v=Symbol("_read"),F=Symbol("_readSize"),q=Symbol("_reading"),P=Symbol("_remain"),$=Symbol("_size"),K=Symbol("_write"),V=Symbol("_writing"),N=Symbol("_defaultFlag"),A=Symbol("_errored"),L=class extends e{constructor(p,m){if(m=m||{},super(m),this.readable=!0,this.writable=!1,typeof p!="string")throw new TypeError("path must be a string");this[A]=!1,this[l]=typeof m.fd=="number"?m.fd:null,this[O]=p,this[F]=m.readSize||16*1024*1024,this[q]=!1,this[$]=typeof m.size=="number"?m.size:1/0,this[P]=this[$],this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0,typeof this[l]=="number"?this[v]():this[T]()}get fd(){return this[l]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[T](){i.open(this[O],"r",(p,m)=>this[x](p,m))}[x](p,m){p?this[_](p):(this[l]=m,this.emit("open",m),this[v]())}[d](){return Buffer.allocUnsafe(Math.min(this[F],this[P]))}[v](){if(!this[q]){this[q]=!0;let p=this[d]();if(p.length===0)return process.nextTick(()=>this[k](null,0,p));i.read(this[l],p,0,p.length,null,(m,b,R)=>this[k](m,b,R))}}[k](p,m,b){this[q]=!1,p?this[_](p):this[f](m,b)&&this[v]()}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}[_](p){this[q]=!0,this[o](),this.emit("error",p)}[f](p,m){let b=!1;return this[P]-=p,p>0&&(b=super.write(p<m.length?m.slice(0,p):m)),(p===0||this[P]<=0)&&(b=!1,this[o](),super.end()),b}emit(p,m){switch(p){case"prefinish":case"finish":break;case"drain":typeof this[l]=="number"&&this[v]();break;case"error":return this[A]?void 0:(this[A]=!0,super.emit(p,m));default:return super.emit(p,m)}}},j=class extends L{[T](){let p=!0;try{this[x](null,i.openSync(this[O],"r")),p=!1}finally{p&&this[o]()}}[v](){let p=!0;try{if(!this[q]){this[q]=!0;do{let m=this[d](),b=m.length===0?0:i.readSync(this[l],m,0,m.length,null);if(!this[f](b,m))break}while(!0);this[q]=!1}p=!1}finally{p&&this[o]()}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}},z=class extends r{constructor(p,m){m=m||{},super(m),this.readable=!1,this.writable=!0,this[A]=!1,this[V]=!1,this[a]=!1,this[y]=!1,this[w]=[],this[O]=p,this[l]=typeof m.fd=="number"?m.fd:null,this[g]=m.mode===void 0?438:m.mode,this[I]=typeof m.start=="number"?m.start:null,this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0;let b=this[I]!==null?"r+":"w";this[N]=m.flags===void 0,this[u]=this[N]?b:m.flags,this[l]===null&&this[T]()}emit(p,m){if(p==="error"){if(this[A])return;this[A]=!0}return super.emit(p,m)}get fd(){return this[l]}get path(){return this[O]}[_](p){this[o](),this[V]=!0,this.emit("error",p)}[T](){i.open(this[O],this[u],this[g],(p,m)=>this[x](p,m))}[x](p,m){this[N]&&this[u]==="r+"&&p&&p.code==="ENOENT"?(this[u]="w",this[T]()):p?this[_](p):(this[l]=m,this.emit("open",m),this[h]())}end(p,m){return p&&this.write(p,m),this[a]=!0,!this[V]&&!this[w].length&&typeof this[l]=="number"&&this[C](null,0),this}write(p,m){return typeof p=="string"&&(p=Buffer.from(p,m)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[l]===null||this[V]||this[w].length?(this[w].push(p),this[y]=!0,!1):(this[V]=!0,this[K](p),!0)}[K](p){i.write(this[l],p,0,p.length,this[I],(m,b)=>this[C](m,b))}[C](p,m){p?this[_](p):(this[I]!==null&&(this[I]+=m),this[w].length?this[h]():(this[V]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[a]&&this[C](null,0);else if(this[w].length===1)this[K](this[w].pop());else{let p=this[w];this[w]=[],n(this[l],p,this[I],(m,b)=>this[C](m,b))}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}},D=class extends z{[T](){let p;if(this[N]&&this[u]==="r+")try{p=i.openSync(this[O],this[u],this[g])}catch(m){if(m.code==="ENOENT")return this[u]="w",this[T]();throw m}else p=i.openSync(this[O],this[u],this[g]);this[x](null,p)}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}[K](p){let m=!0;try{this[C](null,i.writeSync(this[l],p,0,p.length,this[I])),m=!1}finally{if(m)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=j,t.WriteStream=z,t.WriteStreamSync=D}),Lc=ee((t,e)=>{"use strict";W();var r=kc(),i=En(),n=te("events"),s=dg(),o=1024*1024,a=Oc(),l=Tc(),c=cg(),{nextTick:u}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),g=Symbol("readEntry"),y=Symbol("nextEntry"),_=Symbol("processEntry"),x=Symbol("extendedHeader"),k=Symbol("globalExtendedHeader"),C=Symbol("meta"),T=Symbol("emitMeta"),O=Symbol("buffer"),I=Symbol("queue"),w=Symbol("ended"),v=Symbol("emittedEnd"),F=Symbol("emit"),q=Symbol("unzip"),P=Symbol("consumeChunk"),$=Symbol("consumeChunkSub"),K=Symbol("consumeBody"),V=Symbol("consumeMeta"),N=Symbol("consumeHeader"),A=Symbol("consuming"),L=Symbol("bufferConcat"),j=Symbol("maybeEnd"),z=Symbol("writing"),D=Symbol("aborted"),p=Symbol("onDone"),m=Symbol("sawValidEntry"),b=Symbol("sawNullBlock"),R=Symbol("sawEOF"),E=Symbol("closeStream"),M=B=>!0;e.exports=r(class extends n{constructor(B){B=B||{},super(B),this.file=B.file||"",this[m]=null,this.on(p,Z=>{(this[f]==="begin"||this[m]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),B.ondone?this.on(p,B.ondone):this.on(p,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!B.strict,this.maxMetaEntrySize=B.maxMetaEntrySize||o,this.filter=typeof B.filter=="function"?B.filter:M,this.writable=!0,this.readable=!1,this[I]=new s,this[O]=null,this[g]=null,this[d]=null,this[f]="begin",this[C]="",this[x]=null,this[k]=null,this[w]=!1,this[q]=null,this[D]=!1,this[b]=!1,this[R]=!1,this.on("end",()=>this[E]()),typeof B.onwarn=="function"&&this.on("warn",B.onwarn),typeof B.onentry=="function"&&this.on("entry",B.onentry)}[N](B,Z){this[m]===null&&(this[m]=!1);let U;try{U=new i(B,Z,this[x],this[k])}catch(J){return this.warn("TAR_ENTRY_INVALID",J)}if(U.nullBlock)this[b]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[F]("eof")):(this[b]=!0,this[F]("nullBlock"));else if(this[b]=!1,!U.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:U});else if(!U.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:U});else{let J=U.type;if(/^(Symbolic)?Link$/.test(J)&&!U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:U});else if(!/^(Symbolic)?Link$/.test(J)&&U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:U});else{let G=this[d]=new a(U,this[x],this[k]);if(!this[m])if(G.remain){let re=()=>{G.invalid||(this[m]=!0)};G.on("end",re)}else this[m]=!0;G.meta?G.size>this.maxMetaEntrySize?(G.ignore=!0,this[F]("ignoredEntry",G),this[f]="ignore",G.resume()):G.size>0&&(this[C]="",G.on("data",re=>this[C]+=re),this[f]="meta"):(this[x]=null,G.ignore=G.ignore||!this.filter(G.path,G),G.ignore?(this[F]("ignoredEntry",G),this[f]=G.remain?"ignore":"header",G.resume()):(G.remain?this[f]="body":(this[f]="header",G.end()),this[g]?this[I].push(G):(this[I].push(G),this[y]())))}}}[E](){u(()=>this.emit("close"))}[_](B){let Z=!0;return B?Array.isArray(B)?this.emit.apply(this,B):(this[g]=B,this.emit("entry",B),B.emittedEnd||(B.on("end",U=>this[y]()),Z=!1)):(this[g]=null,Z=!1),Z}[y](){do;while(this[_](this[I].shift()));if(!this[I].length){let B=this[g];!B||B.flowing||B.size===B.remain?this[z]||this.emit("drain"):B.once("drain",Z=>this.emit("drain"))}}[K](B,Z){let U=this[d],J=U.blockRemain,G=J>=B.length&&Z===0?B:B.slice(Z,Z+J);return U.write(G),U.blockRemain||(this[f]="header",this[d]=null,U.end()),G.length}[V](B,Z){let U=this[d],J=this[K](B,Z);return this[d]||this[T](U),J}[F](B,Z,U){!this[I].length&&!this[g]?this.emit(B,Z,U):this[I].push([B,Z,U])}[T](B){switch(this[F]("meta",this[C]),B.type){case"ExtendedHeader":case"OldExtendedHeader":this[x]=l.parse(this[C],this[x],!1);break;case"GlobalExtendedHeader":this[k]=l.parse(this[C],this[k],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[x]=this[x]||Object.create(null),this[x].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[x]=this[x]||Object.create(null),this[x].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+B.type)}}abort(B){this[D]=!0,this.emit("abort",B),this.warn("TAR_ABORT",B,{recoverable:!1})}write(B){if(this[D])return;if(this[q]===null&&B){if(this[O]&&(B=Buffer.concat([this[O],B]),this[O]=null),B.length<h.length)return this[O]=B,!0;for(let U=0;this[q]===null&&U<h.length;U++)B[U]!==h[U]&&(this[q]=!1);if(this[q]===null){let U=this[w];this[w]=!1,this[q]=new c.Unzip,this[q].on("data",G=>this[P](G)),this[q].on("error",G=>this.abort(G)),this[q].on("end",G=>{this[w]=!0,this[P]()}),this[z]=!0;let J=this[q][U?"end":"write"](B);return this[z]=!1,J}}this[z]=!0,this[q]?this[q].write(B):this[P](B),this[z]=!1;let Z=this[I].length?!1:this[g]?this[g].flowing:!0;return!Z&&!this[I].length&&this[g].once("drain",U=>this.emit("drain")),Z}[L](B){B&&!this[D]&&(this[O]=this[O]?Buffer.concat([this[O],B]):B)}[j](){if(this[w]&&!this[v]&&!this[D]&&!this[A]){this[v]=!0;let B=this[d];if(B&&B.blockRemain){let Z=this[O]?this[O].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${B.blockRemain} more bytes, only ${Z} available)`,{entry:B}),this[O]&&B.write(this[O]),B.end()}this[F](p)}}[P](B){if(this[A])this[L](B);else if(!B&&!this[O])this[j]();else{if(this[A]=!0,this[O]){this[L](B);let Z=this[O];this[O]=null,this[$](Z)}else this[$](B);for(;this[O]&&this[O].length>=512&&!this[D]&&!this[R];){let Z=this[O];this[O]=null,this[$](Z)}this[A]=!1}(!this[O]||this[w])&&this[j]()}[$](B){let Z=0,U=B.length;for(;Z+512<=U&&!this[D]&&!this[R];)switch(this[f]){case"begin":case"header":this[N](B,Z),Z+=512;break;case"ignore":case"body":Z+=this[K](B,Z);break;case"meta":Z+=this[V](B,Z);break;default:throw new Error("invalid state: "+this[f])}Z<U&&(this[O]?this[O]=Buffer.concat([B.slice(Z),this[O]]):this[O]=B.slice(Z))}end(B){this[D]||(this[q]?this[q].end(B):(this[w]=!0,this.write(B)))}})}),Pc=ee((t,e)=>{"use strict";W();var r=wn(),i=Lc(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&c(_,g),_.noResume||l(_),_.file&&_.sync?u(_):_.file?h(_,y):f(_)};var l=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},c=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},u=d=>{let g=f(d),y=d.file,_=!0,x;try{let k=n.statSync(y),C=d.maxReadSize||16*1024*1024;if(k.size<C)g.end(n.readFileSync(y));else{let T=0,O=Buffer.allocUnsafe(C);for(x=n.openSync(y,"r");T<k.size;){let I=n.readSync(x,O,0,C,T);T+=I,g.write(O.slice(0,I))}g.end()}_=!1}finally{if(_&&x)try{n.closeSync(x)}catch{}}},h=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("end",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},f=d=>new i(d)}),ok=ee((t,e)=>{"use strict";W();var r=wn(),i=Cc(),n=Rn(),s=Pc(),o=te("path");e.exports=(d,g,y)=>{if(typeof g=="function"&&(y=g),Array.isArray(d)&&(g=d,d={}),!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");g=Array.from(g);let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return _.file&&_.sync?a(_,g):_.file?l(_,g,y):_.sync?h(_,g):f(_,g)};var a=(d,g)=>{let y=new i.Sync(d),_=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(_),c(y,g)},l=(d,g,y)=>{let _=new i(d),x=new n.WriteStream(d.file,{mode:d.mode||438});_.pipe(x);let k=new Promise((C,T)=>{x.on("error",T),x.on("close",C),_.on("error",T)});return u(_,g),y?k.then(y,y):k},c=(d,g)=>{g.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:_=>d.add(_)}):d.add(y)}),d.end()},u=(d,g)=>{for(;g.length;){let y=g.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:_=>d.add(_)}).then(_=>u(d,g));d.add(y)}d.end()},h=(d,g)=>{let y=new i.Sync(d);return c(y,g),y},f=(d,g)=>{let y=new i(d);return u(y,g),y}}),mg=ee((t,e)=>{"use strict";W();var r=wn(),i=Cc(),n=te("fs"),s=Rn(),o=Pc(),a=te("path"),l=En();e.exports=(g,y,_)=>{let x=r(g);if(!x.file)throw new TypeError("file is required");if(x.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),x.sync?c(x,y):h(x,y,_)};var c=(g,y)=>{let _=new i.Sync(g),x=!0,k,C;try{try{k=n.openSync(g.file,"r+")}catch(I){if(I.code==="ENOENT")k=n.openSync(g.file,"w+");else throw I}let T=n.fstatSync(k),O=Buffer.alloc(512);e:for(C=0;C<T.size;C+=512){for(let v=0,F=0;v<512;v+=F){if(F=n.readSync(k,O,v,O.length-v,C+v),C===0&&O[0]===31&&O[1]===139)throw new Error("cannot append to compressed archives");if(!F)break e}let I=new l(O);if(!I.cksumValid)break;let w=512*Math.ceil(I.size/512);if(C+w+512>T.size)break;C+=w,g.mtimeCache&&g.mtimeCache.set(I.path,I.mtime)}x=!1,u(g,_,C,k,y)}finally{if(x)try{n.closeSync(k)}catch{}}},u=(g,y,_,x,k)=>{let C=new s.WriteStreamSync(g.file,{fd:x,start:_});y.pipe(C),f(y,k)},h=(g,y,_)=>{y=Array.from(y);let x=new i(g),k=(T,O,I)=>{let w=($,K)=>{$?n.close(T,V=>I($)):I(null,K)},v=0;if(O===0)return w(null,0);let F=0,q=Buffer.alloc(512),P=($,K)=>{if($)return w($);if(F+=K,F<512&&K)return n.read(T,q,F,q.length-F,v+F,P);if(v===0&&q[0]===31&&q[1]===139)return w(new Error("cannot append to compressed archives"));if(F<512)return w(null,v);let V=new l(q);if(!V.cksumValid)return w(null,v);let N=512*Math.ceil(V.size/512);if(v+N+512>O||(v+=N+512,v>=O))return w(null,v);g.mtimeCache&&g.mtimeCache.set(V.path,V.mtime),F=0,n.read(T,q,0,512,v,P)};n.read(T,q,0,512,v,P)},C=new Promise((T,O)=>{x.on("error",O);let I="r+",w=(v,F)=>{if(v&&v.code==="ENOENT"&&I==="r+")return I="w+",n.open(g.file,I,w);if(v)return O(v);n.fstat(F,(q,P)=>{if(q)return n.close(F,()=>O(q));k(F,P.size,($,K)=>{if($)return O($);let V=new s.WriteStream(g.file,{fd:F,start:K});x.pipe(V),V.on("error",O),V.on("close",T),d(x,y)})})};n.open(g.file,I,w)});return _?C.then(_,_):C},f=(g,y)=>{y.forEach(_=>{_.charAt(0)==="@"?o({file:a.resolve(g.cwd,_.slice(1)),sync:!0,noResume:!0,onentry:x=>g.add(x)}):g.add(_)}),g.end()},d=(g,y)=>{for(;y.length;){let _=y.shift();if(_.charAt(0)==="@")return o({file:a.resolve(g.cwd,_.slice(1)),noResume:!0,onentry:x=>g.add(x)}).then(x=>d(g,y));g.add(_)}g.end()}}),ak=ee((t,e)=>{"use strict";W();var r=wn(),i=mg();e.exports=(s,o,a)=>{let l=r(s);if(!l.file)throw new TypeError("file is required");if(l.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(l),i(l,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,l)=>o(a,l)&&!(s.mtimeCache.get(a)>l.mtime):(a,l)=>!(s.mtimeCache.get(a)>l.mtime)}}),lk=ee((t,e)=>{W();var{promisify:r}=te("util"),i=te("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),ck=ee((t,e)=>{W();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=te("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:l}=n(o);if(a.test(o.substr(l.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),uk=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(l=>l.isDirectory()?a:void 0,l=>l.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(l){return l.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),yg=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,a)=>{o.recursive=!1;let l=r(s);return l===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(l,o).then(u=>i(s,o,u));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(u=>{if(u.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let l=r(s);if(o.recursive=!1,l===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(l,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),hk=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=uk(),{mkdirpManual:s,mkdirpManualSync:o}=yg(),a=(c,u)=>(u.recursive=!0,r(c)===c?u.mkdirAsync(c,u):i(u,c).then(h=>u.mkdirAsync(c,u).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,u);throw f}))),l=(c,u)=>{if(u.recursive=!0,r(c)===c)return u.mkdirSync(c,u);let h=n(u,c);try{return u.mkdirSync(c,u),h}catch(f){if(f.code==="ENOENT")return o(c,u);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:l}}),fk=ee((t,e)=>{W();var r=te("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?l=>l.mkdir===r.mkdir:()=>!1,a=s?l=>l.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),pk=ee((t,e)=>{W();var r=lk(),i=ck(),{mkdirpNative:n,mkdirpNativeSync:s}=hk(),{mkdirpManual:o,mkdirpManualSync:a}=yg(),{useNative:l,useNativeSync:c}=fk(),u=(f,d)=>(f=i(f),d=r(d),l(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));u.sync=h,u.native=(f,d)=>n(i(f),r(d)),u.manual=(f,d)=>o(i(f),r(d)),u.nativeSync=(f,d)=>s(i(f),r(d)),u.manualSync=(f,d)=>a(i(f),r(d)),e.exports=u}),dk=ee((t,e)=>{"use strict";W();var r=te("fs"),i=te("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(C,T,O)=>{try{return r[s](C,T,O)}catch(I){if(I.code!=="ENOENT")throw I}},l=(C,T,O)=>{try{return r.chownSync(C,T,O)}catch(I){if(I.code!=="ENOENT")throw I}},c=o?(C,T,O,I)=>w=>{!w||w.code!=="EISDIR"?I(w):r.chown(C,T,O,I)}:(C,T,O,I)=>I,u=o?(C,T,O)=>{try{return a(C,T,O)}catch(I){if(I.code!=="EISDIR")throw I;l(C,T,O)}}:(C,T,O)=>a(C,T,O),h=process.version,f=(C,T,O)=>r.readdir(C,T,O),d=(C,T)=>r.readdirSync(C,T);/^v4\./.test(h)&&(f=(C,T,O)=>r.readdir(C,O));var g=(C,T,O,I)=>{r[n](C,T,O,c(C,T,O,w=>{I(w&&w.code!=="ENOENT"?w:null)}))},y=(C,T,O,I,w)=>{if(typeof T=="string")return r.lstat(i.resolve(C,T),(v,F)=>{if(v)return w(v.code!=="ENOENT"?v:null);F.name=T,y(C,F,O,I,w)});if(T.isDirectory())_(i.resolve(C,T.name),O,I,v=>{if(v)return w(v);let F=i.resolve(C,T.name);g(F,O,I,w)});else{let v=i.resolve(C,T.name);g(v,O,I,w)}},_=(C,T,O,I)=>{f(C,{withFileTypes:!0},(w,v)=>{if(w){if(w.code==="ENOENT")return I();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return I(w)}if(w||!v.length)return g(C,T,O,I);let F=v.length,q=null,P=$=>{if(!q){if($)return I(q=$);if(--F===0)return g(C,T,O,I)}};v.forEach($=>y(C,$,T,O,P))})},x=(C,T,O,I)=>{if(typeof T=="string")try{let w=r.lstatSync(i.resolve(C,T));w.name=T,T=w}catch(w){if(w.code==="ENOENT")return;throw w}T.isDirectory()&&k(i.resolve(C,T.name),O,I),u(i.resolve(C,T.name),O,I)},k=(C,T,O)=>{let I;try{I=d(C,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return u(C,T,O);throw w}return I&&I.length&&I.forEach(w=>x(C,w,T,O)),u(C,T,O)};e.exports=_,_.sync=k}),mk=ee((t,e)=>{"use strict";W();var r=pk(),i=te("fs"),n=te("path"),s=dk(),o=Sn(),a=class extends Error{constructor(y,_){super("Cannot extract through symbolic link"),this.path=_,this.symlink=y}get name(){return"SylinkError"}},l=class extends Error{constructor(y,_){super(_+": Cannot cd into '"+y+"'"),this.path=y,this.code=_}get name(){return"CwdError"}},c=(y,_)=>y.get(o(_)),u=(y,_,x)=>y.set(o(_),x),h=(y,_)=>{i.stat(y,(x,k)=>{(x||!k.isDirectory())&&(x=new l(y,x&&x.code||"ENOTDIR")),_(x)})};e.exports=(y,_,x)=>{y=o(y);let k=_.umask,C=_.mode|448,T=(C&k)!==0,O=_.uid,I=_.gid,w=typeof O=="number"&&typeof I=="number"&&(O!==_.processUid||I!==_.processGid),v=_.preserve,F=_.unlink,q=_.cache,P=o(_.cwd),$=(V,N)=>{V?x(V):(u(q,y,!0),N&&w?s(N,O,I,A=>$(A)):T?i.chmod(y,C,x):x())};if(q&&c(q,y)===!0)return $();if(y===P)return h(y,$);if(v)return r(y,{mode:C}).then(V=>$(null,V),$);let K=o(n.relative(P,y)).split("/");f(P,K,C,q,F,P,null,$)};var f=(y,_,x,k,C,T,O,I)=>{if(!_.length)return I(null,O);let w=_.shift(),v=o(n.resolve(y+"/"+w));if(c(k,v))return f(v,_,x,k,C,T,O,I);i.mkdir(v,x,d(v,_,x,k,C,T,O,I))},d=(y,_,x,k,C,T,O,I)=>w=>{w?i.lstat(y,(v,F)=>{if(v)v.path=v.path&&o(v.path),I(v);else if(F.isDirectory())f(y,_,x,k,C,T,O,I);else if(C)i.unlink(y,q=>{if(q)return I(q);i.mkdir(y,x,d(y,_,x,k,C,T,O,I))});else{if(F.isSymbolicLink())return I(new a(y,y+"/"+_.join("/")));I(w)}}):(O=O||y,f(y,_,x,k,C,T,O,I))},g=y=>{let _=!1,x="ENOTDIR";try{_=i.statSync(y).isDirectory()}catch(k){x=k.code}finally{if(!_)throw new l(y,x)}};e.exports.sync=(y,_)=>{y=o(y);let x=_.umask,k=_.mode|448,C=(k&x)!==0,T=_.uid,O=_.gid,I=typeof T=="number"&&typeof O=="number"&&(T!==_.processUid||O!==_.processGid),w=_.preserve,v=_.unlink,F=_.cache,q=o(_.cwd),P=V=>{u(F,y,!0),V&&I&&s.sync(V,T,O),C&&i.chmodSync(y,k)};if(F&&c(F,y)===!0)return P();if(y===q)return g(q),P();if(w)return P(r.sync(y,k));let $=o(n.relative(q,y)).split("/"),K=null;for(let V=$.shift(),N=q;V&&(N+="/"+V);V=$.shift())if(N=o(n.resolve(N)),!c(F,N))try{i.mkdirSync(N,k),K=K||N,u(F,N,!0)}catch{let A=i.lstatSync(N);if(A.isDirectory()){u(F,N,!0);continue}else if(v){i.unlinkSync(N),i.mkdirSync(N,k),K=K||N,u(F,N,!0);continue}else if(A.isSymbolicLink())return new a(N,N+"/"+$.join("/"))}return P(K)}}),gg=ee((t,e)=>{W();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),yk=ee((t,e)=>{W();var r=te("assert"),i=gg(),n=vn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let l=new Map,c=new Map,u=_=>_.split("/").slice(0,-1).reduce((x,k)=>(x.length&&(k=s(x[x.length-1],k)),x.push(k||"/"),x),[]),h=new Set,f=_=>{let x=c.get(_);if(!x)throw new Error("function does not have any path reservations");return{paths:x.paths.map(k=>l.get(k)),dirs:[...x.dirs].map(k=>l.get(k))}},d=_=>{let{paths:x,dirs:k}=f(_);return x.every(C=>C[0]===_)&&k.every(C=>C[0]instanceof Set&&C[0].has(_))},g=_=>h.has(_)||!d(_)?!1:(h.add(_),_(()=>y(_)),!0),y=_=>{if(!h.has(_))return!1;let{paths:x,dirs:k}=c.get(_),C=new Set;return x.forEach(T=>{let O=l.get(T);r.equal(O[0],_),O.length===1?l.delete(T):(O.shift(),typeof O[0]=="function"?C.add(O[0]):O[0].forEach(I=>C.add(I)))}),k.forEach(T=>{let O=l.get(T);r(O[0]instanceof Set),O[0].size===1&&O.length===1?l.delete(T):O[0].size===1?(O.shift(),C.add(O[0])):O[0].delete(_)}),h.delete(_),C.forEach(T=>g(T)),!0};return{check:d,reserve:(_,x)=>{_=a?["win32 parallelization disabled"]:_.map(C=>i(n(s(C))).toLowerCase());let k=new Set(_.map(C=>u(C)).reduce((C,T)=>C.concat(T)));return c.set(x,{dirs:k,paths:_}),_.forEach(C=>{let T=l.get(C);T?T.push(x):l.set(C,[x])}),k.forEach(C=>{let T=l.get(C);T?T[T.length-1]instanceof Set?T[T.length-1].add(x):T.push(new Set([x])):l.set(C,[new Set([x])])}),g(x)}}}}),gk=ee((t,e)=>{W();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||te("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:l=0}=n.constants,c=i&&!!l,u=512*1024,h=l|o|s|a;e.exports=c?f=>f<u?h:"w":()=>"w"}),_g=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Lc(),n=te("fs"),s=Rn(),o=te("path"),a=mk(),l=hg(),c=yk(),u=fg(),h=Sn(),f=vn(),d=gg(),g=Symbol("onEntry"),y=Symbol("checkFs"),_=Symbol("checkFs2"),x=Symbol("pruneCache"),k=Symbol("isReusable"),C=Symbol("makeFs"),T=Symbol("file"),O=Symbol("directory"),I=Symbol("link"),w=Symbol("symlink"),v=Symbol("hardlink"),F=Symbol("unsupported"),q=Symbol("checkPath"),P=Symbol("mkdir"),$=Symbol("onError"),K=Symbol("pending"),V=Symbol("pend"),N=Symbol("unpend"),A=Symbol("ended"),L=Symbol("maybeClose"),j=Symbol("skip"),z=Symbol("doChown"),D=Symbol("uid"),p=Symbol("gid"),m=Symbol("checkedCwd"),b=te("crypto"),R=gk(),E=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,M=E==="win32",B=(S,Y)=>{if(!M)return n.unlink(S,Y);let X=S+".DELETE."+b.randomBytes(16).toString("hex");n.rename(S,X,se=>{if(se)return Y(se);n.unlink(X,Y)})},Z=S=>{if(!M)return n.unlinkSync(S);let Y=S+".DELETE."+b.randomBytes(16).toString("hex");n.renameSync(S,Y),n.unlinkSync(Y)},U=(S,Y,X)=>S===S>>>0?S:Y===Y>>>0?Y:X,J=S=>d(f(h(S))).toLowerCase(),G=(S,Y)=>{Y=J(Y);for(let X of S.keys()){let se=J(X);(se===Y||se.indexOf(Y+"/")===0)&&S.delete(X)}},re=S=>{for(let Y of S.keys())S.delete(Y)},ce=class extends i{constructor(S){if(S||(S={}),S.ondone=Y=>{this[A]=!0,this[L]()},super(S),this[m]=!1,this.reservations=c(),this.transform=typeof S.transform=="function"?S.transform:null,this.writable=!0,this.readable=!1,this[K]=0,this[A]=!1,this.dirCache=S.dirCache||new Map,typeof S.uid=="number"||typeof S.gid=="number"){if(typeof S.uid!="number"||typeof S.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(S.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=S.uid,this.gid=S.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;S.preserveOwner===void 0&&typeof S.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!S.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=S.forceChown===!0,this.win32=!!S.win32||M,this.newer=!!S.newer,this.keep=!!S.keep,this.noMtime=!!S.noMtime,this.preservePaths=!!S.preservePaths,this.unlink=!!S.unlink,this.cwd=h(o.resolve(S.cwd||process.cwd())),this.strip=+S.strip||0,this.processUmask=S.noChmod?0:process.umask(),this.umask=typeof S.umask=="number"?S.umask:this.processUmask,this.dmode=S.dmode||511&~this.umask,this.fmode=S.fmode||438&~this.umask,this.on("entry",Y=>this[g](Y))}warn(S,Y,X={}){return(S==="TAR_BAD_ARCHIVE"||S==="TAR_ABORT")&&(X.recoverable=!1),super.warn(S,Y,X)}[L](){this[A]&&this[K]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](S){if(this.strip){let Y=h(S.path).split("/");if(Y.length<this.strip)return!1;if(S.path=Y.slice(this.strip).join("/"),S.type==="Link"){let X=h(S.linkpath).split("/");if(X.length>=this.strip)S.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(S.path),X=Y.split("/");if(X.includes("..")||M&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:S,path:Y}),!1;let[se,le]=u(Y);se&&(S.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:S,path:Y}))}if(o.isAbsolute(S.path)?S.absolute=h(o.resolve(S.path)):S.absolute=h(o.resolve(this.cwd,S.path)),!this.preservePaths&&S.absolute.indexOf(this.cwd+"/")!==0&&S.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:S,path:h(S.path),resolvedPath:S.absolute,cwd:this.cwd}),!1;if(S.absolute===this.cwd&&S.type!=="Directory"&&S.type!=="GNUDumpDir")return!1;if(this.win32){let{root:Y}=o.win32.parse(S.absolute);S.absolute=Y+l.encode(S.absolute.slice(Y.length));let{root:X}=o.win32.parse(S.path);S.path=X+l.encode(S.path.slice(X.length))}return!0}[g](S){if(!this[q](S))return S.resume();switch(r.equal(typeof S.absolute,"string"),S.type){case"Directory":case"GNUDumpDir":S.mode&&(S.mode=S.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](S);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[F](S)}}[$](S,Y){S.name==="CwdError"?this.emit("error",S):(this.warn("TAR_ENTRY_ERROR",S,{entry:Y}),this[N](),Y.resume())}[P](S,Y,X){a(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y,noChmod:this.noChmod},X)}[z](S){return this.forceChown||this.preserveOwner&&(typeof S.uid=="number"&&S.uid!==this.processUid||typeof S.gid=="number"&&S.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[D](S){return U(this.uid,S.uid,this.processUid)}[p](S){return U(this.gid,S.gid,this.processGid)}[T](S,Y){let X=S.mode&4095||this.fmode,se=new s.WriteStream(S.absolute,{flags:R(S.size),mode:X,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[$](fe,S),Y()});let le=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[$](fe,S),Y();return}--le===0&&n.close(se.fd,ve=>{ve?this[$](ve,S):this[N](),Y()})};se.on("finish",fe=>{let ve=S.absolute,pt=se.fd;if(S.mtime&&!this.noMtime){le++;let dt=S.atime||new Date,en=S.mtime;n.futimes(pt,dt,en,tn=>tn?n.utimes(ve,dt,en,aa=>ge(aa&&tn)):ge())}if(this[z](S)){le++;let dt=this[D](S),en=this[p](S);n.fchown(pt,dt,en,tn=>tn?n.chown(ve,dt,en,aa=>ge(aa&&tn)):ge())}ge()});let ue=this.transform&&this.transform(S)||S;ue!==S&&(ue.on("error",fe=>{this[$](fe,S),Y()}),S.pipe(ue)),ue.pipe(se)}[O](S,Y){let X=S.mode&4095||this.dmode;this[P](S.absolute,X,se=>{if(se){this[$](se,S),Y();return}let le=1,ge=ue=>{--le===0&&(Y(),this[N](),S.resume())};S.mtime&&!this.noMtime&&(le++,n.utimes(S.absolute,S.atime||new Date,S.mtime,ge)),this[z](S)&&(le++,n.chown(S.absolute,this[D](S),this[p](S),ge)),ge()})}[F](S){S.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${S.type}`,{entry:S}),S.resume()}[w](S,Y){this[I](S,S.linkpath,"symlink",Y)}[v](S,Y){let X=h(o.resolve(this.cwd,S.linkpath));this[I](S,X,"link",Y)}[V](){this[K]++}[N](){this[K]--,this[L]()}[j](S){this[N](),S.resume()}[k](S,Y){return S.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!M}[y](S){this[V]();let Y=[S.path];S.linkpath&&Y.push(S.linkpath),this.reservations.reserve(Y,X=>this[_](S,X))}[x](S){S.type==="SymbolicLink"?re(this.dirCache):S.type!=="Directory"&&G(this.dirCache,S.absolute)}[_](S,Y){this[x](S);let X=ue=>{this[x](S),Y(ue)},se=()=>{this[P](this.cwd,this.dmode,ue=>{if(ue){this[$](ue,S),X();return}this[m]=!0,le()})},le=()=>{if(S.absolute!==this.cwd){let ue=h(o.dirname(S.absolute));if(ue!==this.cwd)return this[P](ue,this.dmode,fe=>{if(fe){this[$](fe,S),X();return}ge()})}ge()},ge=()=>{n.lstat(S.absolute,(ue,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>S.mtime)){this[j](S),X();return}if(ue||this[k](S,fe))return this[C](null,S,X);if(fe.isDirectory()){if(S.type==="Directory"){let ve=!this.noChmod&&S.mode&&(fe.mode&4095)!==S.mode,pt=dt=>this[C](dt,S,X);return ve?n.chmod(S.absolute,S.mode,pt):pt()}if(S.absolute!==this.cwd)return n.rmdir(S.absolute,ve=>this[C](ve,S,X))}if(S.absolute===this.cwd)return this[C](null,S,X);B(S.absolute,ve=>this[C](ve,S,X))})};this[m]?le():se()}[C](S,Y,X){if(S){this[$](S,Y),X();return}switch(Y.type){case"File":case"OldFile":case"ContiguousFile":return this[T](Y,X);case"Link":return this[v](Y,X);case"SymbolicLink":return this[w](Y,X);case"Directory":case"GNUDumpDir":return this[O](Y,X)}}[I](S,Y,X,se){n[X](Y,S.absolute,le=>{le?this[$](le,S):(this[N](),S.resume()),se()})}},Se=S=>{try{return[null,S()]}catch(Y){return[Y,null]}},_e=class extends ce{[C](S,Y){return super[C](S,Y,()=>{})}[y](S){if(this[x](S),!this[m]){let le=this[P](this.cwd,this.dmode);if(le)return this[$](le,S);this[m]=!0}if(S.absolute!==this.cwd){let le=h(o.dirname(S.absolute));if(le!==this.cwd){let ge=this[P](le,this.dmode);if(ge)return this[$](ge,S)}}let[Y,X]=Se(()=>n.lstatSync(S.absolute));if(X&&(this.keep||this.newer&&X.mtime>S.mtime))return this[j](S);if(Y||this[k](S,X))return this[C](null,S);if(X.isDirectory()){if(S.type==="Directory"){let ge=!this.noChmod&&S.mode&&(X.mode&4095)!==S.mode,[ue]=ge?Se(()=>{n.chmodSync(S.absolute,S.mode)}):[];return this[C](ue,S)}let[le]=Se(()=>n.rmdirSync(S.absolute));this[C](le,S)}let[se]=S.absolute===this.cwd?[]:Se(()=>Z(S.absolute));this[C](se,S)}[T](S,Y){let X=S.mode&4095||this.fmode,se=ue=>{let fe;try{n.closeSync(le)}catch(ve){fe=ve}(ue||fe)&&this[$](ue||fe,S),Y()},le;try{le=n.openSync(S.absolute,R(S.size),X)}catch(ue){return se(ue)}let ge=this.transform&&this.transform(S)||S;ge!==S&&(ge.on("error",ue=>this[$](ue,S)),S.pipe(ge)),ge.on("data",ue=>{try{n.writeSync(le,ue,0,ue.length)}catch(fe){se(fe)}}),ge.on("end",ue=>{let fe=null;if(S.mtime&&!this.noMtime){let ve=S.atime||new Date,pt=S.mtime;try{n.futimesSync(le,ve,pt)}catch(dt){try{n.utimesSync(S.absolute,ve,pt)}catch{fe=dt}}}if(this[z](S)){let ve=this[D](S),pt=this[p](S);try{n.fchownSync(le,ve,pt)}catch(dt){try{n.chownSync(S.absolute,ve,pt)}catch{fe=fe||dt}}}se(fe)})}[O](S,Y){let X=S.mode&4095||this.dmode,se=this[P](S.absolute,X);if(se){this[$](se,S),Y();return}if(S.mtime&&!this.noMtime)try{n.utimesSync(S.absolute,S.atime||new Date,S.mtime)}catch{}if(this[z](S))try{n.chownSync(S.absolute,this[D](S),this[p](S))}catch{}Y(),S.resume()}[P](S,Y){try{return a.sync(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y})}catch(X){return X}}[I](S,Y,X,se){try{n[X+"Sync"](Y,S.absolute),se(),S.resume()}catch(le){return this[$](le,S)}}};ce.Sync=_e,e.exports=ce}),_k=ee((t,e)=>{"use strict";W();var r=wn(),i=_g(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(_,g),_.file&&_.sync?c(_):_.file?u(_,y):_.sync?h(_):f(_)};var l=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},c=d=>{let g=new i.Sync(d),y=d.file,_=n.statSync(y),x=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:x,size:_.size}).pipe(g)},u=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("close",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},h=d=>new i.Sync(d),f=d=>new i(d)}),bk=ee(t=>{"use strict";W(),t.c=t.create=ok(),t.r=t.replace=mg(),t.t=t.list=Pc(),t.u=t.update=ak(),t.x=t.extract=_k(),t.Pack=Cc(),t.Unpack=_g(),t.Parse=Lc(),t.ReadEntry=Oc(),t.WriteEntry=pg(),t.Header=En(),t.Pax=Tc(),t.types=ug()}),wk=ee((t,e)=>{W();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.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))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],l=a.message,c=(i[l]||0)+1;i[l]=c,c>=s&&(n=a,s=c)}return n}}),Sk=ee(t=>{W();var e=wk();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,l){return a-l}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],l=r[a];r[a]=function(c){var u=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),f.apply(this,arguments))}),u.attempt(function(){c.apply(r,h)})}.bind(r,l),r[a].options=i}}}),Ek=ee((t,e)=>{W(),e.exports=Sk()}),vk=ee((t,e)=>{W();var r=Ek();function i(n,s){function o(a,l){var c=s||{},u;"randomize"in c||(c.randomize=!0),u=r.operation(c);function h(g){l(g||new Error("Aborted"))}function f(g,y){if(g.bail){h(g);return}u.retry(g)?c.onRetry&&c.onRetry(g,y):l(u.mainError())}function d(g){var y;try{y=n(h,g)}catch(_){f(_,g);return}Promise.resolve(y).then(a).catch(function(_){f(_,g)})}u.attempt(d)}return new Promise(o)}e.exports=i}),Rk={};zT(Rk,{bold:()=>kk,dimmed:()=>Lk,error:()=>Dk,grey:()=>Pk,info:()=>Tk,item:()=>Ik,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Ak,turboLoader:()=>Ok,turboRed:()=>vg,underline:()=>Ck,warn:()=>Nk,yellow:()=>Rg});W();var Sg="#0099F7",Eg="#F11712",xk="#FFFF00",Ic=t=>{let e=Mk(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ge.reset)("")}`},Ak=(0,wg.default)(Sg,Eg),vi=Ic(Sg),vg=Ic(Eg),Rg=Ic(xk),Ok=t=>(0,bg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),Tk=(...t)=>{jr(vi((0,Ge.bold)(">>>")),t.join(" "))},kk=(...t)=>{jr((0,Ge.bold)(t.join(" ")))},Ck=(...t)=>{jr((0,Ge.underline)(t.join(" ")))},Lk=(...t)=>{jr((0,Ge.dim)(t.join(" ")))},Pk=(...t)=>{jr((0,Ge.gray)(t.join(" ")))},Ik=(...t)=>{jr(vi((0,Ge.bold)(" \u2022")),t.join(" "))},jr=(...t)=>{console.log(...t)},Nk=(...t)=>{console.error(Rg((0,Ge.bold)(">>>")),t.join(" "))},Dk=(...t)=>{console.error(vg((0,Ge.bold)(">>>")),t.join(" "))};function Mk(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}W();W();W();W();var JN=Ks(VT());W();W();function Bk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function vc(t){return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(t)}W();function jk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hk(t,e){if(e&&(vc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jk(t)}W();function Ys(t){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(t)}W();W();function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gn(t,e)}function qk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}W();W();function Uk(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function $k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ws(t,e,r){return $k()?Ws=Reflect.construct.bind():Ws=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),l=new a;return s&&gn(l,s.prototype),l},Ws.apply(null,arguments)}function Rc(t){var e=typeof Map=="function"?new Map:void 0;return Rc=function(r){if(r===null||!Uk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ws(r,arguments,Ys(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gn(i,r)},Rc(t)}var QN=Ks(tk()),rD=function(t){qk(e,t);function e(r){var i;return Bk(this,e),i=Hk(this,Ys(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Rc(Error));W();W();W();W();W();W();var pD=Ks(bk()),dD=(0,Ag.promisify)(xg.Stream.pipeline);W();W();var _D=Ks(vk());W();W();W();var Ie=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,Ie)}};W();W();W();W();var Gk=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ze({workspaceRoot:t}){let e=jt.default.join(t,"package.json");try{return(0,Qe.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ie(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ie(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Vs({workspaceRoot:t}){let{packageManager:e}=ze({workspaceRoot:t});if(e)try{let r=Gk.exec(e);if(r){let[i,n]=r;return n}}catch{}}function xn({workspaceRoot:t}){let e=ze({workspaceRoot:t}),r=jt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function sg({workspaceRoot:t}){let e=jt.default.join(t,"pnpm-workspace.yaml");if((0,Qe.existsSync)(e))try{let r=qa.load((0,Qe.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ie(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Zs({root:t,lockFile:e,workspaceConfig:r}){let i=s=>jt.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Nc({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Xs({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,Pg.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=jt.default.dirname(i),{name:s,description:o}=xn({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:jt.default.join(n,"node_modules")}}})}function zk({directory:t}){let e=jt.default.resolve(process.cwd(),t);return{exists:(0,Qe.existsSync)(e),absolute:e}}function fr({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Wk({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Bt({project:t,options:e}){e!=null&&e.dry||(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}async function Ig({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Qe.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Lg.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Qe.writeFile)(jt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}}function Yk({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ur({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ze({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=Yk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${(0,Cg.green)(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${Tg.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${u}`:d===c.length-1?h+=`and ${f} in ${u}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${u}`);n!=null&&n.dry||(0,kg.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var hr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Ng(t){let e=Fr.default.join(t.workspaceRoot,hr.lock),r=Fr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Vs({workspaceRoot:t.workspaceRoot});return(0,qe.existsSync)(e)||(0,qe.existsSync)(r)||i===hr.name}async function Kk(t){if(!await Ng(t))throw new Ie("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=xn(t);return{name:e,description:r,packageManager:hr.name,paths:Zs({root:t.workspaceRoot,lockFile:hr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:sg(t),workspaces:Xs({workspaceGlobs:sg(t),...t})}}}async function Vk(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({action:"create",packageManager:hr.name,project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,qe.writeFileSync)(Fr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
42
42
|
${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
|
43
|
-
`)}`))),s&&(ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Xk(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({action:"remove",packageManager:hr.name,project:e}));let s=ze({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Jk(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Fr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,qe.rmSync)(e.paths.lockfile,{force:!0})}async function Qk(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Fr.default.relative(e.paths.root,e.paths.lockfile)} to ${hr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,qe.existsSync)(e.paths.lockfile))try{await(0,Og.default)(hr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Bt({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ig({project:e,options:r}),await s(),(0,qe.rmSync)(Fr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var e1={detect:Ng,read:Vk,create:Zk,remove:Xk,clean:Jk,convertLock:Qk};W();var Ri={name:"npm",lock:"package-lock.json"};async function Dg(t){let e=_n.default.join(t.workspaceRoot,Ri.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,Rt.existsSync)(e)||r===Ri.name}async function t1(t){if(!await Dg(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ri.name,paths:Zs({root:t.workspaceRoot,lockFile:Ri.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function r1(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(fr({packageManager:Ri.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function i1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ri.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Rt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Rt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function n1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${_n.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Rt.rmSync)(e.paths.lockfile,{force:!0})}async function s1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":Bt({project:e,options:r});break;case"npm":break;case"yarn":Bt({project:e,options:r});break}}var o1={detect:Dg,read:t1,create:r1,remove:i1,clean:n1,convertLock:s1};W();var Br={name:"yarn",lock:"yarn.lock"};async function Mg(t){let e=xi.default.join(t.workspaceRoot,Br.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,xt.existsSync)(e)||r===Br.name}async function a1(t){if(!await Mg(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Br.name,paths:Zs({root:t.workspaceRoot,lockFile:Br.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function l1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({packageManager:Br.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function c1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Br.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function u1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${xi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xt.rmSync)(e.paths.lockfile,{force:!0})}async function h1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${xi.default.relative(e.paths.root,e.paths.lockfile)} to ${Br.lock}`)};switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":n(),await Ig({project:e,options:r});break;case"npm":Bt({project:e,options:r});break;case"yarn":break}}var f1={detect:Mg,read:a1,create:l1,remove:c1,clean:u1,convertLock:h1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Fg(t){let e=bn.default.join(t.workspaceRoot,Ai.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ai.name}async function p1(t){if(!await Fg(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Zs({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function d1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Yk({project:e}))throw new Ie("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(fr({packageManager:Ai.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function m1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ai.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,At.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function y1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function g1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":break;case"npm":Bt({project:e,options:r});break;case"yarn":Bt({project:e,options:r});break}}var _1={detect:Fg,read:p1,create:d1,remove:m1,clean:y1,convertLock:g1},Bg={pnpm:e1,yarn:f1,npm:o1,bun:_1};W();async function Dc({root:t}){let{exists:e,absolute:r}=Wk({directory:t});if(!e)throw new Ie(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Bg))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Ie("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}W();W();W();W();var mS=require("fs-extra");var Vn=require("picocolors");var R1=ne(Gg());function Fc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function On(t){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(t)}function Bc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jc(t,e){if(e&&(On(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bc(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ut(t,e)}function Hc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ut(t,e)}function qc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Uc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oi(t,e,r){return Uc()?Oi=Reflect.construct.bind():Oi=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&Ut(c,o.prototype),c},Oi.apply(null,arguments)}function Tn(t){var e=typeof Map=="function"?new Map:void 0;return Tn=function(i){if(i===null||!qc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Oi(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ut(n,i)},Tn(t)}var zg=ne(require("find-up"));var x1=ne(require("fs-extra")),XM=function(t){Hc(e,t);function e(r){var i;return Fc(this,e),i=jc(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Tn(Error));var k1=ne(require("json5"));var A1=ne(require("fs")),O1=ne(require("path"));var H1=ne(require("fs")),q1=ne(require("path"));var U1=ne(zs()),$1=ne(require("json5"));var ot={};Ph(ot,{bold:()=>I1,dimmed:()=>D1,error:()=>e_,grey:()=>M1,info:()=>P1,item:()=>F1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>L1,turboLoader:()=>Jg,turboRed:()=>Zg,underline:()=>N1,warn:()=>Qg,yellow:()=>Xg});var We=require("picocolors"),Wg=ne(require("ora")),Yg=ne(require("gradient-string")),Kg="#0099F7",Vg="#F11712",C1="#FFFF00",$c=t=>{let e=B1(t);return r=>`\x1B[38;5;${e}m${r}${(0,We.reset)("")}`},L1=(0,Yg.default)(Kg,Vg),Ti=$c(Kg),Zg=$c(Vg),Xg=$c(C1),Jg=t=>(0,Wg.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),P1=(...t)=>{pr(Ti((0,We.bold)(">>>")),t.join(" "))},I1=(...t)=>{pr((0,We.bold)(t.join(" ")))},N1=(...t)=>{pr((0,We.underline)(t.join(" ")))},D1=(...t)=>{pr((0,We.dim)(t.join(" ")))},M1=(...t)=>{pr((0,We.gray)(t.join(" ")))},F1=(...t)=>{pr(Ti((0,We.bold)(" \u2022")),t.join(" "))},pr=(...t)=>{console.log(...t)},Qg=(...t)=>{console.error(Xg((0,We.bold)(">>>")),t.join(" "))},e_=(...t)=>{console.error(Zg((0,We.bold)(">>>")),t.join(" "))};function B1(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var G1=ne(require("os")),z1=ne(li());var W1=ne(require("fs-extra"));var Y1=ne(require("path")),K1=ne(require("fs-extra")),V1=require("picocolors");var Qw=require("stream"),eS=require("util"),tS=require("path"),LP=require("os"),rS=require("fs"),PP=ne(Jw());var oB=(0,eS.promisify)(Qw.Stream.pipeline);var iS=require("fs-extra");var UP=ne(require("path")),$P=ne(uS()),hS=require("picocolors"),kh=require("fs-extra");var je=require("picocolors"),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log((0,je.green)(" MODIFIED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}unchanged(...e){this._log((0,je.gray)(" UNCHANGED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}skipped(...e){this._log((0,je.yellow)(" SKIPPED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}error(...e){this._log((0,je.red)(" ERROR "),...e,this.dry?(0,je.dim)("(dry run)"):"")}info(...e){this._log((0,je.bold)(" INFO "),...e,this.dry?(0,je.dim)("(dry run)"):"")}};var fS=ne(require("os")),Ch=ne(require("path"));var Qi=require("picocolors"),oa=require("diff"),Or=require("fs-extra"),sa=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Ch.default.extname(e.filePath)===".json"?this.before=(0,Or.readJsonSync)(e.filePath):this.before=(0,Or.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,oa.diffJson)(this.before,e.after):this.changes=(0,oa.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Ch.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Or.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Or.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write((0,Qi.green)(r.value)):r.removed?process.stdout.write((0,Qi.red)(r.value)):process.stdout.write((0,Qi.dim)(r.value))}),ot.log(fS.default.EOL)):ot.log(this.after)}};var Zn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new Ji(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new sa({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped((0,Vn.dim)(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified((0,Vn.bold)(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged((0,Vn.dim)(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ot.log(),r.length>0){ot.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ot.log()}}};function pS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Zn(i);return{log:n,runner:s}}var yS="add-package-names",GP="Ensure all packages have a name in their package.json",zP="2.0.0-canary.0";async function dS(t){try{return await(0,mS.readJson)(t)}catch{return null}}function gS({pkgPath:t,pkgName:e}){let r="",i=e;if(e&&e.startsWith("@")&&e.includes("/")){let s=e.split("/");r=`${s[0]}/`,i=s[1]}let n=Lh.default.basename(Lh.default.dirname(t));return e?`${r}${n}-${i}`:`${r}${n}`}async function _S({root:t,options:e}){let{log:r,runner:i}=pS({transformer:yS,rootPath:t,options:e});r.info('Validating that each package has a unique "name"...');let n;try{n=await Dc({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=[n.paths.packageJson],o=[dS(n.paths.packageJson)];n.workspaceData.workspaces.forEach(u=>{let h=u.paths.packageJson;s.push(h),o.push(dS(h))});let a=await Promise.all(o),l=Object.fromEntries(s.map((u,h)=>[u,a[h]])),c=new Set;for(let[u,h]of Object.entries(l))if(h)if(!h.name||c.has(h.name)){let f=gS({pkgPath:u,pkgName:h.name});i.modifyFile({filePath:u,after:{...h,name:f}}),c.add(f)}else c.add(h.name);return i.finish()}var WP={name:yS,description:GP,introducedIn:zP,transformer:_S},YP=WP;0&&(module.exports={getNewPkgName,transformer});
|
43
|
+
`)}`))),s&&(ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Zk(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({action:"remove",packageManager:hr.name,project:e}));let s=ze({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Xk(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Fr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,qe.rmSync)(e.paths.lockfile,{force:!0})}async function Jk(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Fr.default.relative(e.paths.root,e.paths.lockfile)} to ${hr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,qe.existsSync)(e.paths.lockfile))try{await(0,Og.default)(hr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Bt({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ig({project:e,options:r}),await s(),(0,qe.rmSync)(Fr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Qk={detect:Ng,read:Kk,create:Vk,remove:Zk,clean:Xk,convertLock:Jk};W();var Ri={name:"npm",lock:"package-lock.json"};async function Dg(t){let e=_n.default.join(t.workspaceRoot,Ri.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,Rt.existsSync)(e)||r===Ri.name}async function e1(t){if(!await Dg(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ri.name,paths:Zs({root:t.workspaceRoot,lockFile:Ri.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function t1(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(fr({packageManager:Ri.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function r1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ri.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Rt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Rt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function i1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${_n.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Rt.rmSync)(e.paths.lockfile,{force:!0})}async function n1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":Bt({project:e,options:r});break;case"npm":break;case"yarn":Bt({project:e,options:r});break}}var s1={detect:Dg,read:e1,create:t1,remove:r1,clean:i1,convertLock:n1};W();var Br={name:"yarn",lock:"yarn.lock"};async function Mg(t){let e=xi.default.join(t.workspaceRoot,Br.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,xt.existsSync)(e)||r===Br.name}async function o1(t){if(!await Mg(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Br.name,paths:Zs({root:t.workspaceRoot,lockFile:Br.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function a1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({packageManager:Br.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function l1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Br.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function c1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${xi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xt.rmSync)(e.paths.lockfile,{force:!0})}async function u1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${xi.default.relative(e.paths.root,e.paths.lockfile)} to ${Br.lock}`)};switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":n(),await Ig({project:e,options:r});break;case"npm":Bt({project:e,options:r});break;case"yarn":break}}var h1={detect:Mg,read:o1,create:a1,remove:l1,clean:c1,convertLock:u1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Fg(t){let e=bn.default.join(t.workspaceRoot,Ai.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ai.name}async function f1(t){if(!await Fg(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Nc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Zs({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function p1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Wk({project:e}))throw new Ie("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(fr({packageManager:Ai.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function d1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ai.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,At.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function m1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function y1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":break;case"npm":Bt({project:e,options:r});break;case"yarn":Bt({project:e,options:r});break}}var g1={detect:Fg,read:f1,create:p1,remove:d1,clean:m1,convertLock:y1},Bg={pnpm:Qk,yarn:h1,npm:s1,bun:g1};W();async function Dc({root:t}){let{exists:e,absolute:r}=zk({directory:t});if(!e)throw new Ie(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Bg))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Ie("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}W();W();W();W();var dS=require("fs-extra");var Vn=require("picocolors");var v1=ne(Gg());function Fc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function On(t){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(t)}function Bc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jc(t,e){if(e&&(On(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bc(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ut(t,e)}function Hc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ut(t,e)}function qc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Uc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oi(t,e,r){return Uc()?Oi=Reflect.construct.bind():Oi=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&Ut(c,o.prototype),c},Oi.apply(null,arguments)}function Tn(t){var e=typeof Map=="function"?new Map:void 0;return Tn=function(i){if(i===null||!qc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Oi(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ut(n,i)},Tn(t)}var zg=ne(require("find-up"));var R1=ne(require("fs-extra")),XM=function(t){Hc(e,t);function e(r){var i;return Fc(this,e),i=jc(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Tn(Error));var T1=ne(require("json5"));var x1=ne(require("fs")),A1=ne(require("path"));var j1=ne(require("fs")),H1=ne(require("path"));var q1=ne(zs()),U1=ne(require("json5"));var ot={};Ph(ot,{bold:()=>P1,dimmed:()=>N1,error:()=>e_,grey:()=>D1,info:()=>L1,item:()=>M1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>C1,turboLoader:()=>Jg,turboRed:()=>Zg,underline:()=>I1,warn:()=>Qg,yellow:()=>Xg});var We=require("picocolors"),Wg=ne(require("ora")),Yg=ne(require("gradient-string")),Kg="#0099F7",Vg="#F11712",k1="#FFFF00",$c=t=>{let e=F1(t);return r=>`\x1B[38;5;${e}m${r}${(0,We.reset)("")}`},C1=(0,Yg.default)(Kg,Vg),Ti=$c(Kg),Zg=$c(Vg),Xg=$c(k1),Jg=t=>(0,Wg.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),L1=(...t)=>{pr(Ti((0,We.bold)(">>>")),t.join(" "))},P1=(...t)=>{pr((0,We.bold)(t.join(" ")))},I1=(...t)=>{pr((0,We.underline)(t.join(" ")))},N1=(...t)=>{pr((0,We.dim)(t.join(" ")))},D1=(...t)=>{pr((0,We.gray)(t.join(" ")))},M1=(...t)=>{pr(Ti((0,We.bold)(" \u2022")),t.join(" "))},pr=(...t)=>{console.log(...t)},Qg=(...t)=>{console.error(Xg((0,We.bold)(">>>")),t.join(" "))},e_=(...t)=>{console.error(Zg((0,We.bold)(">>>")),t.join(" "))};function F1(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var $1=ne(require("os")),G1=ne(li());var z1=ne(require("fs-extra"));var W1=ne(require("path")),Y1=ne(require("fs-extra")),K1=require("picocolors");var Qw=require("stream"),eS=require("util"),CP=require("path"),LP=require("os"),tS=require("fs"),PP=ne(Jw());var oB=(0,eS.promisify)(Qw.Stream.pipeline);var rS=require("fs-extra");var UP=ne(require("path")),$P=ne(cS()),uS=require("picocolors"),kh=require("fs-extra");var je=require("picocolors"),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log((0,je.green)(" MODIFIED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}unchanged(...e){this._log((0,je.gray)(" UNCHANGED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}skipped(...e){this._log((0,je.yellow)(" SKIPPED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}error(...e){this._log((0,je.red)(" ERROR "),...e,this.dry?(0,je.dim)("(dry run)"):"")}info(...e){this._log((0,je.bold)(" INFO "),...e,this.dry?(0,je.dim)("(dry run)"):"")}};var hS=ne(require("os")),Ch=ne(require("path"));var Qi=require("picocolors"),oa=require("diff"),Or=require("fs-extra"),sa=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Ch.default.extname(e.filePath)===".json"?this.before=(0,Or.readJsonSync)(e.filePath):this.before=(0,Or.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,oa.diffJson)(this.before,e.after):this.changes=(0,oa.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Ch.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Or.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Or.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write((0,Qi.green)(r.value)):r.removed?process.stdout.write((0,Qi.red)(r.value)):process.stdout.write((0,Qi.dim)(r.value))}),ot.log(hS.default.EOL)):ot.log(this.after)}};var Zn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new Ji(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new sa({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped((0,Vn.dim)(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified((0,Vn.bold)(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged((0,Vn.dim)(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ot.log(),r.length>0){ot.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ot.log()}}};function fS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Zn(i);return{log:n,runner:s}}var mS="add-package-names",GP="Ensure all packages have a name in their package.json",zP="2.0.0-canary.0";async function pS(t){try{return await(0,dS.readJson)(t)}catch{return null}}function yS({pkgPath:t,pkgName:e}){let r="",i=e;if(e&&e.startsWith("@")&&e.includes("/")){let s=e.split("/");r=`${s[0]}/`,i=s[1]}let n=Lh.default.basename(Lh.default.dirname(t));return e?`${r}${n}-${i}`:`${r}${n}`}async function gS({root:t,options:e}){let{log:r,runner:i}=fS({transformer:mS,rootPath:t,options:e});r.info('Validating that each package has a unique "name"...');let n;try{n=await Dc({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=[n.paths.packageJson],o=[pS(n.paths.packageJson)];n.workspaceData.workspaces.forEach(u=>{let h=u.paths.packageJson;s.push(h),o.push(pS(h))});let a=await Promise.all(o),l=Object.fromEntries(s.map((u,h)=>[u,a[h]])),c=new Set;for(let[u,h]of Object.entries(l))if(h)if(!h.name||c.has(h.name)){let f=yS({pkgPath:u,pkgName:h.name});i.modifyFile({filePath:u,after:{...h,name:f}}),c.add(f)}else c.add(h.name);return i.finish()}var WP={name:mS,description:GP,introducedIn:zP,transformer:gS},YP=WP;0&&(module.exports={getNewPkgName,transformer});
|
44
44
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
45
45
|
/*! Bundled license information:
|
46
46
|
|