@turbo/codemod 2.0.0-canary.2 → 2.0.0-canary.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +38 -38
- package/dist/transforms/add-package-manager.js +38 -38
- package/dist/transforms/add-package-names.js +38 -38
- package/dist/transforms/clean-globs.js +34 -47
- package/dist/transforms/create-turbo-config.js +34 -34
- package/dist/transforms/migrate-dot-env.js +34 -47
- package/dist/transforms/migrate-env-var-dependencies.js +34 -47
- package/dist/transforms/rename-output-mode.js +34 -47
- package/dist/transforms/rename-pipeline.js +34 -47
- package/dist/transforms/set-default-outputs.js +34 -47
- package/dist/transforms/stabilize-env-mode.js +34 -47
- package/dist/transforms/stabilize-ui.js +34 -34
- package/dist/transforms/transform-env-literals-to-wildcards.js +34 -47
- package/package.json +7 -6
@@ -1,46 +1,46 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var dS=Object.create;var Kn=Object.defineProperty;var mS=Object.getOwnPropertyDescriptor;var yS=Object.getOwnPropertyNames;var gS=Object.getPrototypeOf,_S=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kh=(t,e)=>{for(var r in e)Kn(t,r,{get:e[r],enumerable:!0})},Ch=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yS(e))!_S.call(t,n)&&n!==r&&Kn(t,n,{get:()=>e[n],enumerable:!(i=mS(e,n))||i.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?dS(gS(t)):{},Ch(e||!t||!t.__esModule?Kn(r,"default",{value:t,enumerable:!0}):r,t)),bS=t=>Ch(Kn({},"__esModule",{value:!0}),t);var Dh=H((WP,Nh)=>{Nh.exports=Ih;Ih.sync=SS;var Lh=require("fs");function wS(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 Ph(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:wS(e,r)}function Ih(t,e,r){Lh.stat(t,function(i,n){r(i,i?!1:Ph(n,t,e))})}function SS(t,e){return Ph(Lh.statSync(t),t,e)}});var Hh=H((YP,jh)=>{jh.exports=Fh;Fh.sync=ES;var Mh=require("fs");function Fh(t,e,r){Mh.stat(t,function(i,n){r(i,i?!1:Bh(n,e))})}function ES(t,e){return Bh(Mh.statSync(t),e)}function Bh(t,e){return t.isFile()&&vS(t,e)}function vS(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 Uh=H((VP,qh)=>{var KP=require("fs"),Vn;process.platform==="win32"||global.TESTING_WINDOWS?Vn=Dh():Vn=Hh();qh.exports=aa;aa.sync=RS;function aa(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){aa(t,e||{},function(s,o){s?n(s):i(o)})})}Vn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function RS(t,e){try{return Vn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Vh=H((ZP,Kh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$h=require("path"),xS=ei?";":":",Gh=Uh(),zh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Wh=(t,e)=>{let r=e.colon||xS,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}},Yh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Wh(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(zh(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=$h.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];Gh(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)},AS=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Wh(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=$h.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(Gh.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 zh(t)};Kh.exports=Yh;Yh.sync=AS});var ca=H((XP,la)=>{"use strict";var Zh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};la.exports=Zh;la.exports.default=Zh});var ef=H((JP,Qh)=>{"use strict";var Xh=require("path"),OS=Vh(),TS=ca();function Jh(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=OS.sync(t.command,{path:r[TS({env:r})],pathExt:e?Xh.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Xh.resolve(n?t.options.cwd:"",o)),o}function kS(t){return Jh(t)||Jh(t,!0)}Qh.exports=kS});var tf=H((QP,ha)=>{"use strict";var ua=/([()\][%!^"`<>&|;, *?])/g;function CS(t){return t=t.replace(ua,"^$1"),t}function LS(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ua,"^$1"),e&&(t=t.replace(ua,"^$1")),t}ha.exports.command=CS;ha.exports.argument=LS});var nf=H((eI,rf)=>{"use strict";rf.exports=/^#!(.*)/});var of=H((tI,sf)=>{"use strict";var PS=nf();sf.exports=(t="")=>{let e=t.match(PS);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var lf=H((rI,af)=>{"use strict";var fa=require("fs"),IS=of();function NS(t){let r=Buffer.alloc(150),i;try{i=fa.openSync(t,"r"),fa.readSync(i,r,0,150,0),fa.closeSync(i)}catch{}return IS(r.toString())}af.exports=NS});var ff=H((iI,hf)=>{"use strict";var DS=require("path"),cf=ef(),uf=tf(),MS=lf(),FS=process.platform==="win32",BS=/\.(?:com|exe)$/i,jS=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function HS(t){t.file=cf(t);let e=t.file&&MS(t.file);return e?(t.args.unshift(t.file),t.command=e,cf(t)):t.file}function qS(t){if(!FS)return t;let e=HS(t),r=!BS.test(e);if(t.options.forceShell||r){let i=jS.test(e);t.command=DS.normalize(t.command),t.command=uf.command(t.command),t.args=t.args.map(s=>uf.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 US(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:qS(i)}hf.exports=US});var mf=H((nI,df)=>{"use strict";var pa=process.platform==="win32";function da(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 $S(t,e){if(!pa)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=pf(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function pf(t,e){return pa&&t===1&&!e.file?da(e.original,"spawn"):null}function GS(t,e){return pa&&t===1&&!e.file?da(e.original,"spawnSync"):null}df.exports={hookChildProcess:$S,verifyENOENT:pf,verifyENOENTSync:GS,notFoundError:da}});var _f=H((sI,ti)=>{"use strict";var yf=require("child_process"),ma=ff(),ya=mf();function gf(t,e,r){let i=ma(t,e,r),n=yf.spawn(i.command,i.args,i.options);return ya.hookChildProcess(n,i),n}function zS(t,e,r){let i=ma(t,e,r),n=yf.spawnSync(i.command,i.args,i.options);return n.error=n.error||ya.verifyENOENTSync(n.status,i),n}ti.exports=gf;ti.exports.spawn=gf;ti.exports.sync=zS;ti.exports._parse=ma;ti.exports._enoent=ya});var wf=H((oI,bf)=>{"use strict";bf.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
|
4
|
-
${i.message}`:y,
|
5
|
-
`);return E?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=v,i.command=o,i.escapedCommand=u,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=!!a,i.isCanceled=l,i.killed=c&&!a,i};Bf.exports=fb});var Nf=H((dL,Du)=>{"use strict";var es=["stdin","stdout","stderr"],pb=t=>es.some(e=>t[e]!==void 0),If=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(pb(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.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,es.length);return Array.from({length:r},(i,n)=>e[n])};Du.exports=If;Du.exports.node=t=>{let e=If(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Mf=H((mL,ts)=>{ts.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ts.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ts.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Uf=H((yL,oi)=>{var me=global.process,xr=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"};xr(me)?(jf=require("assert"),ni=Mf(),Hf=/^win/i.test(me.platform),nn=require("events"),typeof nn!="function"&&(nn=nn.EventEmitter),me.__signal_exit_emitter__?Ce=me.__signal_exit_emitter__:(Ce=me.__signal_exit_emitter__=new nn,Ce.count=0,Ce.emitted={}),Ce.infinite||(Ce.setMaxListeners(1/0),Ce.infinite=!0),oi.exports=function(t,e){if(!xr(global.process))return function(){};jf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&_u();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ce.removeListener(r,t),Ce.listeners("exit").length===0&&Ce.listeners("afterexit").length===0&&rs()};return Ce.on(r,t),i},rs=function(){!si||!xr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,is[e])}catch{}}),me.emit=ns,me.reallyExit=bu,Ce.count-=1)},oi.exports.unload=rs,Fr=function(e,r,i){Ce.emitted[e]||(Ce.emitted[e]=!0,Ce.emit(e,r,i))},is={},ni.forEach(function(t){is[t]=function(){if(xr(global.process)){var r=me.listeners(t);r.length===Ce.count&&(rs(),Fr("exit",null,t),Fr("afterexit",null,t),Hf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,_u=function(){si||!xr(global.process)||(si=!0,Ce.count+=1,ni=ni.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=$f,me.reallyExit=qf)},oi.exports.load=_u,bu=me.reallyExit,qf=function(e){xr(global.process)&&(me.exitCode=e||0,Fr("exit",me.exitCode,null),Fr("afterexit",me.exitCode,null),bu.call(me,me.exitCode))},ns=me.emit,$f=function(e,r){if(e==="exit"&&xr(global.process)){r!==void 0&&(me.exitCode=r);var i=ns.apply(this,arguments);return Fr("exit",me.exitCode,null),Fr("afterexit",me.exitCode,null),i}else return ns.apply(this,arguments)}):oi.exports=function(){return function(){}};var jf,ni,Hf,nn,Ce,rs,Fr,is,si,_u,bu,qf,ns,$f});var zf=H((gL,Gf)=>{"use strict";var db=require("os"),mb=Uf(),yb=1e3*5,gb=(t,e="SIGTERM",r={})=>{let i=t(e);return Eb(t,e,r,i),i},Eb=(t,e,r,i)=>{if(!Db(e,r,i))return;let n=bb(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},Db=(t,{forceKillAfterTimeout:e},r)=>_b(t)&&e!==!1&&r,_b=t=>t===db.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",bb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return yb;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},wb=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sb=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ab=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{Sb(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},vb=({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})`)},Cb=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=mb(()=>{t.kill()});return i.finally(()=>{n()})};Gf.exports={spawnedKill:gb,spawnedCancel:wb,setupTimeout:Ab,validateTimeout:vb,setExitHandler:Cb}});var Yf=H((EL,Wf)=>{"use strict";var mt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mt.writable=t=>mt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";mt.readable=t=>mt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";mt.duplex=t=>mt.writable(t)&&mt.readable(t);mt.transform=t=>mt.duplex(t)&&typeof t._transform=="function";Wf.exports=mt});var Vf=H((DL,Kf)=>{"use strict";var{PassThrough:Rb}=require("stream");Kf.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 Rb({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Zf=H((_L,sn)=>{"use strict";var{constants:xb}=require("buffer"),Fb=require("stream"),{promisify:Ob}=require("util"),Tb=Vf(),kb=Ob(Fb.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function wu(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=Tb(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=xb.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await kb(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}sn.exports=wu;sn.exports.buffer=(t,e)=>wu(t,{...e,encoding:"buffer"});sn.exports.array=(t,e)=>wu(t,{...e,array:!0});sn.exports.MaxBufferError=ss});var Xf=H((bL,Jf)=>{"use strict";var{PassThrough:Lb}=require("stream");Jf.exports=function(){var t=[],e=new Lb({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 rp=H((wL,tp)=>{"use strict";var ep=Yf(),Qf=Zf(),Bb=Xf(),Pb=(t,e)=>{e===void 0||t.stdin===void 0||(ep(e)?e.pipe(t.stdin):t.stdin.end(e))},Ib=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Bb();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Su=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Au=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Qf(t,{encoding:e,maxBuffer:i}):Qf.buffer(t,{maxBuffer:i})},Nb=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=Au(t,{encoding:i,buffer:n,maxBuffer:s}),a=Au(e,{encoding:i,buffer:n,maxBuffer:s}),l=Au(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Su(t,u),Su(e,a),Su(r,l)])}},Mb=({input:t})=>{if(ep(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};tp.exports={handleInput:Pb,makeAllStream:Ib,getSpawnedResult:Nb,validateInputSync:Mb}});var np=H((SL,ip)=>{"use strict";var jb=(async()=>{})().constructor.prototype,Hb=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(jb,t)]),qb=(t,e)=>{for(let[r,i]of Hb){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},$b=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)})});ip.exports={mergePromise:qb,getSpawnedPromise:$b}});var up=H((AL,op)=>{"use strict";var sp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Ub=/^[\w.-]+$/,Gb=/"/g,zb=t=>typeof t!="string"||Ub.test(t)?t:`"${t.replace(Gb,'\\"')}"`,Wb=(t,e)=>sp(t,e).join(" "),Yb=(t,e)=>sp(t,e).map(r=>zb(r)).join(" "),Kb=/ +/g,Vb=t=>{let e=[];for(let r of t.trim().split(Kb)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};op.exports={joinCommand:Wb,getEscapedCommand:Yb,parseCommand:Vb}});var ai=H((vL,ui)=>{"use strict";var Zb=require("path"),vu=require("child_process"),Jb=Ef(),Xb=_f(),Qb=Sf(),ew=Rf(),os=Pf(),lp=Nf(),{spawnedKill:tw,spawnedCancel:rw,setupTimeout:iw,validateTimeout:nw,setExitHandler:sw}=zf(),{handleInput:ow,getSpawnedResult:uw,makeAllStream:aw,validateInputSync:lw}=rp(),{mergePromise:ap,getSpawnedPromise:cw}=np(),{joinCommand:cp,parseCommand:hp,getEscapedCommand:fp}=up(),hw=1e3*1e3*100,fw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?Qb.env({env:s,cwd:i,execPath:n}):s},pp=(t,e,r={})=>{let i=Jb._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:hw,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=fw(r),r.stdio=lp(r),process.platform==="win32"&&Zb.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},on=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xb(e):e,us=(t,e,r)=>{let i=pp(t,e,r),n=cp(t,e),s=fp(t,e);nw(i.options);let o;try{o=vu.spawn(i.file,i.args,i.options)}catch(d){let g=new vu.ChildProcess,y=Promise.reject(os({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return ap(g,y)}let u=cw(o),a=iw(o,i.options,u),l=sw(o,i.options,a),c={isCanceled:!1};o.kill=tw.bind(null,o.kill.bind(o)),o.cancel=rw.bind(null,o,c);let f=ew(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:E},v,F,O]=await uw(o,i.options,l),x=on(i.options,v),R=on(i.options,F),L=on(i.options,O);if(d||g!==0||y!==null){let _=os({error:d,exitCode:g,signal:y,stdout:x,stderr:R,all:L,command:n,escapedCommand:s,parsed:i,timedOut:E,isCanceled:c.isCanceled,killed:o.killed});if(!i.options.reject)return _;throw _}return{command:n,escapedCommand:s,exitCode:0,stdout:x,stderr:R,all:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return ow(o,i.options.input),o.all=aw(o,i.options),ap(o,f)};ui.exports=us;ui.exports.sync=(t,e,r)=>{let i=pp(t,e,r),n=cp(t,e),s=fp(t,e);lw(i.options);let o;try{o=vu.spawnSync(i.file,i.args,i.options)}catch(l){throw os({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=on(i.options,o.stdout,o.error),a=on(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=os({stdout:u,stderr:a,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 l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ui.exports.command=(t,e)=>{let[r,...i]=hp(t);return us(r,i,e)};ui.exports.commandSync=(t,e)=>{let[r,...i]=hp(t);return us.sync(r,i,e)};ui.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=lp.node(r),n=process.execArgv.filter(u=>!u.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 yd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function LA(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=LA;function BA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=BA});var gd=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function PA(t){return t.code==="ENOENT"}ds.isEnoentCodeError=PA});var Ed=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var qu=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 IA(t,e){return new qu(t,e)}ms.createDirentFromStats=IA});var Dd=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var NA=require("path"),MA=2,jA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function HA(t){return t.replace(/\\/g,"/")}gt.unixify=HA;function qA(t,e){return NA.resolve(t,e)}gt.makeAbsolute=qA;function $A(t){return t.replace(jA,"\\$2")}gt.escape=$A;function UA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(MA)}return t}gt.removeLeadingDotSegment=UA});var bd=H((TL,_d)=>{_d.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 Ad=H((kL,Sd)=>{var GA=bd(),wd={"{":"}","(":")","[":"]"},zA=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 u=t[e+1];e+=2;var a=wd[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},WA=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=wd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Sd.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(GA(e))return!0;var i=zA;return r&&r.strict===!1&&(i=WA),i(e)}});var Cd=H((LL,vd)=>{"use strict";var YA=Ad(),KA=require("path").posix.dirname,VA=require("os").platform()==="win32",$u="/",ZA=/\\/g,JA=/[\{\[].*[\}\]]$/,XA=/(^|[^\\])([\{\[]|\([^\)]+$)/,QA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;vd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&VA&&e.indexOf($u)<0&&(e=e.replace(ZA,$u)),JA.test(e)&&(e+=$u),e+="a";do e=KA(e);while(YA(e)||XA.test(e));return e.replace(QA,"$1")}});var ys=H(tt=>{"use strict";tt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tt.find=(t,e)=>t.nodes.find(r=>r.type===e);tt.exceedsLimit=(t,e,r=1,i)=>i===!1||!tt.isInteger(t)||!tt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;tt.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)};tt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);tt.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;tt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tt.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 gs=H((PL,xd)=>{"use strict";var Rd=ys();xd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Rd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Rd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Od=H((IL,Fd)=>{"use strict";Fd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var jd=H((NL,Md)=>{"use strict";var Td=Od(),kr=(t,e,r)=>{if(Td(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Td(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),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(kr.cache.hasOwnProperty(a))return kr.cache[a].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Nd(t)||Nd(e),f={min:t,max:e,a:l,b:c},d=[],g=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=c<0?Math.abs(c):1;g=kd(y,Math.abs(l),f,i),l=f.a=0}return c>=0&&(d=kd(l,c,f,i)),f.negatives=g,f.positives=d,f.result=ev(g,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+g.length>1&&(f.result=`(?:${f.result})`),kr.cache[a]=f,f.result};function ev(t,e,r){let i=Uu(t,e,"-",!1,r)||[],n=Uu(e,t,"",!1,r)||[],s=Uu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function tv(t,e){let r=1,i=1,n=Bd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Bd(t,r);for(n=Pd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Pd(e+1,i)-1;return s=[...s],s.sort(nv),s}function rv(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=iv(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,l]=i[u];a===l?s+=a:a!=="0"||l!=="9"?s+=sv(a,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function kd(t,e,r,i){let n=tv(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let l=n[a],c=rv(String(o),String(l),i),h="";if(!r.isPadded&&u&&u.pattern===c.pattern){u.count.length>1&&u.count.pop(),u.count.push(c.count[0]),u.string=u.pattern+Id(u.count),o=l+1;continue}r.isPadded&&(h=ov(l,r,i)),c.string=h+c.pattern+Id(c.count),s.push(c),o=l+1,u=c}return s}function Uu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Ld(e,"string",u)&&s.push(r+u),i&&Ld(e,"string",u)&&s.push(r+u)}return s}function iv(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function nv(t,e){return t>e?1:e>t?-1:0}function Ld(t,e,r){return t.some(i=>i[e]===r)}function Bd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Pd(t,e){return t-t%Math.pow(10,e)}function Id(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function sv(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Nd(t){return/^-?(0+)\d/.test(t)}function ov(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}}`}}kr.cache={};kr.clearCache=()=>kr.cache={};Md.exports=kr});var Wu=H((ML,Yd)=>{"use strict";var uv=require("util"),$d=jd(),Hd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),av=t=>e=>t===!0?Number(e):String(e),Gu=t=>typeof t=="number"||typeof t=="string"&&t!=="",fn=t=>Number.isInteger(+t),zu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},lv=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,cv=(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},qd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},hv=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?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},Ud=(t,e,r,i)=>{if(r)return $d(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Gd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return $d(t,e,r)},zd=(...t)=>new RangeError("Invalid range arguments: "+uv.inspect(...t)),Wd=(t,e,r)=>{if(r.strictRanges===!0)throw zd([t,e]);return[]},fv=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},pv=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw zd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=zu(u)||zu(a)||zu(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&lv(t,e,i)===!1,d=i.transform||av(f);if(i.toRegex&&r===1)return Ud(qd(t,h),qd(e,h),!0,i);let g={negatives:[],positives:[]},y=F=>g[F<0?"negatives":"positives"].push(Math.abs(F)),E=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):E.push(cv(d(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?hv(g,i):Gd(E,null,{wrap:!1,...i}):E},dv=(t,e,r=1,i={})=>{if(!fn(t)&&t.length>1||!fn(e)&&e.length>1)return Wd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Ud(a,l,!1,i);let c=[],h=0;for(;u?s>=o:s<=o;)c.push(n(s,h)),s=u?s-r:s+r,h++;return i.toRegex===!0?Gd(c,null,{wrap:!1,options:i}):c},Es=(t,e,r,i={})=>{if(e==null&&Gu(t))return[t];if(!Gu(t)||!Gu(e))return Wd(t,e,i);if(typeof r=="function")return Es(t,e,1,{transform:r});if(Hd(r))return Es(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,fn(r)?fn(t)&&fn(e)?pv(t,e,r,n):dv(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Hd(r)?fv(r,n):Es(t,e,1,r)};Yd.exports=Es});var Zd=H((jL,Vd)=>{"use strict";var mv=Wu(),Kd=ys(),yv=(t,e={})=>{let r=(i,n={})=>{let s=Kd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=Kd.reduce(i.nodes),h=mv(...c,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};Vd.exports=yv});var Qd=H((HL,Xd)=>{"use strict";var gv=Wu(),Jd=gs(),di=ys(),Lr=(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(Lr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Lr(n,s,r):n+s);return di.flatten(i)},Ev=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(Lr(u.pop(),Jd(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Lr(u.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=gv(...h,e);f.length===0&&(f=Jd(n,e)),u.push(Lr(u.pop(),f)),n.nodes=[];return}let a=di.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){u.push(Lr(u.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(Lr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return di.flatten(i(t))};Xd.exports=Ev});var tm=H((qL,em)=>{"use strict";em.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 om=H(($L,sm)=>{"use strict";var Dv=gs(),{MAX_LENGTH:rm,CHAR_BACKSLASH:Yu,CHAR_BACKTICK:_v,CHAR_COMMA:bv,CHAR_DOT:wv,CHAR_LEFT_PARENTHESES:Sv,CHAR_RIGHT_PARENTHESES:Av,CHAR_LEFT_CURLY_BRACE:vv,CHAR_RIGHT_CURLY_BRACE:Cv,CHAR_LEFT_SQUARE_BRACKET:im,CHAR_RIGHT_SQUARE_BRACKET:nm,CHAR_DOUBLE_QUOTE:Rv,CHAR_SINGLE_QUOTE:xv,CHAR_NO_BREAK_SPACE:Fv,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ov}=tm(),Tv=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(rm,r.maxLength):rm;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,u=n,a=0,l=t.length,c=0,h=0,f,d={},g=()=>t[c++],y=E=>{if(E.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&E.type==="text"){u.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=u,u=E,E};for(y({type:"bos"});c<l;)if(o=s[s.length-1],f=g(),!(f===Ov||f===Fv)){if(f===Yu){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===nm){y({type:"text",value:"\\"+f});continue}if(f===im){a++;let E=!0,v;for(;c<l&&(v=g());){if(f+=v,v===im){a++;continue}if(v===Yu){f+=g();continue}if(v===nm&&(a--,a===0))break}y({type:"text",value:f});continue}if(f===Sv){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Av){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===Rv||f===xv||f===_v){let E=f,v;for(e.keepQuotes!==!0&&(f="");c<l&&(v=g());){if(v===Yu){f+=v+g();continue}if(v===E){e.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===vv){h++;let v={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(v),s.push(o),y({type:"open",value:f});continue}if(f===Cv){if(o.type!=="brace"){y({type:"text",value:f});continue}let E="close";o=s.pop(),o.close=!0,y({type:E,value:f}),h--,o=s[s.length-1];continue}if(f===bv&&h>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:Dv(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===wv&&h>0&&o.commas===0){let E=o.nodes;if(h===0||E.length===0){y({type:"text",value:f});continue}if(u.type==="dot"){if(o.range=[],u.value+=f,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){E.pop();let v=E[E.length-1];v.value+=u.value+f,u=v,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(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let E=s[s.length-1],v=E.nodes.indexOf(o);E.nodes.splice(v,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};sm.exports=Tv});var lm=H((UL,am)=>{"use strict";var um=gs(),kv=Zd(),Lv=Qd(),Bv=om(),Ke=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ke.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ke.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.parse=(t,e={})=>Bv(t,e);Ke.stringify=(t,e={})=>um(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),kv(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Lv(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ke.compile(t,e):Ke.expand(t,e);am.exports=Ke});var pn=H((GL,dm)=>{"use strict";var Pv=require("path"),Et="\\\\/",cm=`[^${Et}]`,Lt="\\.",Iv="\\+",Nv="\\?",Ds="\\/",Mv="(?=.)",hm="[^/]",Ku=`(?:${Ds}|$)`,fm=`(?:^|${Ds})`,Vu=`${Lt}{1,2}${Ku}`,jv=`(?!${Lt})`,Hv=`(?!${fm}${Vu})`,qv=`(?!${Lt}{0,1}${Ku})`,$v=`(?!${Vu})`,Uv=`[^.${Ds}]`,Gv=`${hm}*?`,pm={DOT_LITERAL:Lt,PLUS_LITERAL:Iv,QMARK_LITERAL:Nv,SLASH_LITERAL:Ds,ONE_CHAR:Mv,QMARK:hm,END_ANCHOR:Ku,DOTS_SLASH:Vu,NO_DOT:jv,NO_DOTS:Hv,NO_DOT_SLASH:qv,NO_DOTS_SLASH:$v,QMARK_NO_DOT:Uv,STAR:Gv,START_ANCHOR:fm},zv={...pm,SLASH_LITERAL:`[${Et}]`,QMARK:cm,STAR:`${cm}*?`,DOTS_SLASH:`${Lt}{1,2}(?:[${Et}]|$)`,NO_DOT:`(?!${Lt})`,NO_DOTS:`(?!(?:^|[${Et}])${Lt}{1,2}(?:[${Et}]|$))`,NO_DOT_SLASH:`(?!${Lt}{0,1}(?:[${Et}]|$))`,NO_DOTS_SLASH:`(?!${Lt}{1,2}(?:[${Et}]|$))`,QMARK_NO_DOT:`[^.${Et}]`,START_ANCHOR:`(?:^|[${Et}])`,END_ANCHOR:`(?:[${Et}]|$)`},Wv={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"};dm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wv,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:Pv.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?zv:pm}}});var dn=H($e=>{"use strict";var Yv=require("path"),Kv=process.platform==="win32",{REGEX_BACKSLASH:Vv,REGEX_REMOVE_BACKSLASH:Zv,REGEX_SPECIAL_CHARS:Jv,REGEX_SPECIAL_CHARS_GLOBAL:Xv}=pn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>Jv.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(Xv,"\\$1");$e.toPosixSlashes=t=>t.replace(Vv,"/");$e.removeBackslashes=t=>t.replace(Zv,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:Kv===!0||Yv.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 wm=H((WL,bm)=>{"use strict";var mm=dn(),{CHAR_ASTERISK:Zu,CHAR_AT:Qv,CHAR_BACKWARD_SLASH:mn,CHAR_COMMA:e1,CHAR_DOT:Ju,CHAR_EXCLAMATION_MARK:Xu,CHAR_FORWARD_SLASH:_m,CHAR_LEFT_CURLY_BRACE:Qu,CHAR_LEFT_PARENTHESES:ea,CHAR_LEFT_SQUARE_BRACKET:t1,CHAR_PLUS:r1,CHAR_QUESTION_MARK:ym,CHAR_RIGHT_CURLY_BRACE:i1,CHAR_RIGHT_PARENTHESES:gm,CHAR_RIGHT_SQUARE_BRACKET:n1}=pn(),Em=t=>t===_m||t===mn,Dm=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},s1=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,l=-1,c=0,h=0,f=!1,d=!1,g=!1,y=!1,E=!1,v=!1,F=!1,O=!1,x=!1,R=!1,L=0,_,S,N={value:"",depth:0,isGlob:!1},q=()=>l>=i,k=()=>a.charCodeAt(l+1),U=()=>(_=S,a.charCodeAt(++l));for(;l<i;){S=U();let T;if(S===mn){F=N.backslashes=!0,S=U(),S===Qu&&(v=!0);continue}if(v===!0||S===Qu){for(L++;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,U();continue}if(S===Qu){L++;continue}if(v!==!0&&S===Ju&&(S=U())===Ju){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(v!==!0&&S===e1){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===i1&&(L--,L===0)){v=!1,f=N.isBrace=!0,R=!0;break}}if(n===!0)continue;break}if(S===_m){if(s.push(l),o.push(N),N={value:"",depth:0,isGlob:!1},R===!0)continue;if(_===Ju&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(S===r1||S===Qv||S===Zu||S===ym||S===Xu)===!0&&k()===ea){if(g=N.isGlob=!0,y=N.isExtglob=!0,R=!0,S===Xu&&l===c&&(x=!0),n===!0){for(;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,S=U();continue}if(S===gm){g=N.isGlob=!0,R=!0;break}}continue}break}if(S===Zu){if(_===Zu&&(E=N.isGlobstar=!0),g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===ym){if(g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===t1){for(;q()!==!0&&(T=U());){if(T===mn){F=N.backslashes=!0,U();continue}if(T===n1){d=N.isBracket=!0,g=N.isGlob=!0,R=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===Xu&&l===c){O=N.negated=!0,c++;continue}if(r.noparen!==!0&&S===ea){if(g=N.isGlob=!0,n===!0){for(;q()!==!0&&(S=U());){if(S===ea){F=N.backslashes=!0,S=U();continue}if(S===gm){R=!0;break}}continue}break}if(g===!0){if(R=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let K=a,V="",B="";c>0&&(V=a.slice(0,c),a=a.slice(c),h-=c),K&&g===!0&&h>0?(K=a.slice(0,h),B=a.slice(h)):g===!0?(K="",B=a):K=a,K&&K!==""&&K!=="/"&&K!==a&&Em(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(B&&(B=mm.removeBackslashes(B)),K&&F===!0&&(K=mm.removeBackslashes(K)));let C={prefix:V,input:t,start:c,base:K,glob:B,isBrace:f,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:E,negated:O,negatedExtglob:x};if(r.tokens===!0&&(C.maxDepth=0,Em(S)||o.push(N),C.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let j=0;j<s.length;j++){let z=T?T+1:c,P=s[j],p=t.slice(z,P);r.tokens&&(j===0&&c!==0?(o[j].isPrefix=!0,o[j].value=V):o[j].value=p,Dm(o[j]),C.maxDepth+=o[j].depth),(j!==0||p!=="")&&u.push(p),T=P}if(T&&T+1<t.length){let j=t.slice(T+1);u.push(j),r.tokens&&(o[o.length-1].value=j,Dm(o[o.length-1]),C.maxDepth+=o[o.length-1].depth)}C.slashes=s,C.parts=u}return C};bm.exports=s1});var vm=H((YL,Am)=>{"use strict";var _s=pn(),Ve=dn(),{MAX_LENGTH:bs,POSIX_REGEX_SOURCE:o1,REGEX_NON_SPECIAL_CHARS:u1,REGEX_SPECIAL_CHARS_BACKREF:a1,REPLACEMENTS:Sm}=_s,l1=(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=>Ve.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ta=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Sm[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,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],u=r.capture?"":"?:",a=Ve.isWindows(e),l=_s.globChars(a),c=_s.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:E,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:O,QMARK_NO_DOT:x,STAR:R,START_ANCHOR:L}=l,_=$=>`(${u}(?:(?!${L}${$.dot?y:h}).)*?)`,S=r.dot?"":E,N=r.dot?O:x,q=r.bash===!0?_(r):R;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let k={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ve.removePrefix(t,k),n=t.length;let U=[],K=[],V=[],B=s,C,T=()=>k.index===n-1,j=k.peek=($=1)=>t[k.index+$],z=k.advance=()=>t[++k.index]||"",P=()=>t.slice(k.index+1),p=($="",X=0)=>{k.consumed+=$,k.index+=X},m=$=>{k.output+=$.output!=null?$.output:$.value,p($.value)},D=()=>{let $=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),k.start++,$++;return $%2===0?!1:(k.negated=!0,k.start++,!0)},A=$=>{k[$]++,V.push($)},w=$=>{k[$]--,V.pop()},I=$=>{if(B.type==="globstar"){let X=k.braces>0&&($.type==="comma"||$.type==="brace"),G=$.extglob===!0||U.length&&($.type==="pipe"||$.type==="paren");$.type!=="slash"&&$.type!=="paren"&&!X&&!G&&(k.output=k.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=q,k.output+=B.output)}if(U.length&&$.type!=="paren"&&(U[U.length-1].inner+=$.value),($.value||$.output)&&m($),B&&B.type==="text"&&$.type==="text"){B.value+=$.value,B.output=(B.output||"")+$.value;return}$.prev=B,o.push($),B=$},M=($,X)=>{let G={...c[X],conditions:1,inner:""};G.prev=B,G.parens=k.parens,G.output=k.output;let re=(r.capture?"(":"")+G.open;A("parens"),I({type:$,value:X,output:k.output?"":g}),I({type:"paren",extglob:!0,value:z(),output:re}),U.push(G)},Z=$=>{let X=$.close+(r.capture?")":""),G;if($.type==="negate"){let re=q;if($.inner&&$.inner.length>1&&$.inner.includes("/")&&(re=_(r)),(re!==q||T()||/^\)+$/.test(P()))&&(X=$.close=`)$))${re}`),$.inner.includes("*")&&(G=P())&&/^\.[^\\/.]+$/.test(G)){let le=ta(G,{...e,fastpaths:!1}).output;X=$.close=`)${le})${re})`}$.prev.type==="bos"&&(k.negatedExtglob=!0)}I({type:"paren",extglob:!0,value:C,output:X}),w("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let $=!1,X=t.replace(a1,(G,re,le,be,Ee,b)=>be==="\\"?($=!0,G):be==="?"?re?re+be+(Ee?O.repeat(Ee.length):""):b===0?N+(Ee?O.repeat(Ee.length):""):O.repeat(le.length):be==="."?h.repeat(le.length):be==="*"?re?re+be+(Ee?q:""):q:re?G:`\\${G}`);return $===!0&&(r.unescape===!0?X=X.replace(/\\/g,""):X=X.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),X===t&&r.contains===!0?(k.output=t,k):(k.output=Ve.wrapOutput(X,k,e),k)}for(;!T();){if(C=z(),C==="\0")continue;if(C==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){C+="\\",I({type:"text",value:C});continue}let re=/^\\+/.exec(P()),le=0;if(re&&re[0].length>2&&(le=re[0].length,k.index+=le,le%2!==0&&(C+="\\")),r.unescape===!0?C=z():C+=z(),k.brackets===0){I({type:"text",value:C});continue}}if(k.brackets>0&&(C!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==!1&&C===":"){let G=B.value.slice(1);if(G.includes("[")&&(B.posix=!0,G.includes(":"))){let re=B.value.lastIndexOf("["),le=B.value.slice(0,re),be=B.value.slice(re+2),Ee=o1[be];if(Ee){B.value=le+Ee,k.backtrack=!0,z(),!s.output&&o.indexOf(B)===1&&(s.output=g);continue}}}(C==="["&&j()!==":"||C==="-"&&j()==="]")&&(C=`\\${C}`),C==="]"&&(B.value==="["||B.value==="[^")&&(C=`\\${C}`),r.posix===!0&&C==="!"&&B.value==="["&&(C="^"),B.value+=C,m({value:C});continue}if(k.quotes===1&&C!=='"'){C=Ve.escapeRegex(C),B.value+=C,m({value:C});continue}if(C==='"'){k.quotes=k.quotes===1?0:1,r.keepQuotes===!0&&I({type:"text",value:C});continue}if(C==="("){A("parens"),I({type:"paren",value:C});continue}if(C===")"){if(k.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=U[U.length-1];if(G&&k.parens===G.parens+1){Z(U.pop());continue}I({type:"paren",value:C,output:k.parens?")":"\\)"}),w("parens");continue}if(C==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));C=`\\${C}`}else A("brackets");I({type:"bracket",value:C});continue}if(C==="]"){if(r.nobracket===!0||B&&B.type==="bracket"&&B.value.length===1){I({type:"text",value:C,output:`\\${C}`});continue}if(k.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));I({type:"text",value:C,output:`\\${C}`});continue}w("brackets");let G=B.value.slice(1);if(B.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(C=`/${C}`),B.value+=C,m({value:C}),r.literalBrackets===!1||Ve.hasRegexChars(G))continue;let re=Ve.escapeRegex(B.value);if(k.output=k.output.slice(0,-B.value.length),r.literalBrackets===!0){k.output+=re,B.value=re;continue}B.value=`(${u}${re}|${B.value})`,k.output+=B.value;continue}if(C==="{"&&r.nobrace!==!0){A("braces");let G={type:"brace",value:C,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};K.push(G),I(G);continue}if(C==="}"){let G=K[K.length-1];if(r.nobrace===!0||!G){I({type:"text",value:C,output:C});continue}let re=")";if(G.dots===!0){let le=o.slice(),be=[];for(let Ee=le.length-1;Ee>=0&&(o.pop(),le[Ee].type!=="brace");Ee--)le[Ee].type!=="dots"&&be.unshift(le[Ee].value);re=l1(be,r),k.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let le=k.output.slice(0,G.outputIndex),be=k.tokens.slice(G.tokensIndex);G.value=G.output="\\{",C=re="\\}",k.output=le;for(let Ee of be)k.output+=Ee.output||Ee.value}I({type:"brace",value:C,output:re}),w("braces"),K.pop();continue}if(C==="|"){U.length>0&&U[U.length-1].conditions++,I({type:"text",value:C});continue}if(C===","){let G=C,re=K[K.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,G="|"),I({type:"comma",value:C,output:G});continue}if(C==="/"){if(B.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),B=s;continue}I({type:"slash",value:C,output:d});continue}if(C==="."){if(k.braces>0&&B.type==="dot"){B.value==="."&&(B.output=h);let G=K[K.length-1];B.type="dots",B.output+=C,B.value+=C,G.dots=!0;continue}if(k.braces+k.parens===0&&B.type!=="bos"&&B.type!=="slash"){I({type:"text",value:C,output:h});continue}I({type:"dot",value:C,output:h});continue}if(C==="?"){if(!(B&&B.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M("qmark",C);continue}if(B&&B.type==="paren"){let re=j(),le=C;if(re==="<"&&!Ve.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(B.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(P()))&&(le=`\\${C}`),I({type:"text",value:C,output:le});continue}if(r.dot!==!0&&(B.type==="slash"||B.type==="bos")){I({type:"qmark",value:C,output:x});continue}I({type:"qmark",value:C,output:O});continue}if(C==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){M("negate",C);continue}if(r.nonegate!==!0&&k.index===0){D();continue}}if(C==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M("plus",C);continue}if(B&&B.value==="("||r.regex===!1){I({type:"plus",value:C,output:f});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||k.parens>0){I({type:"plus",value:C});continue}I({type:"plus",value:f});continue}if(C==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){I({type:"at",extglob:!0,value:C,output:""});continue}I({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let G=u1.exec(P());G&&(C+=G[0],k.index+=G[0].length),I({type:"text",value:C});continue}if(B&&(B.type==="globstar"||B.star===!0)){B.type="star",B.star=!0,B.value+=C,B.output=q,k.backtrack=!0,k.globstar=!0,p(C);continue}let $=P();if(r.noextglob!==!0&&/^\([^?]/.test($)){M("star",C);continue}if(B.type==="star"){if(r.noglobstar===!0){p(C);continue}let G=B.prev,re=G.prev,le=G.type==="slash"||G.type==="bos",be=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!le||$[0]&&$[0]!=="/")){I({type:"star",value:C,output:""});continue}let Ee=k.braces>0&&(G.type==="comma"||G.type==="brace"),b=U.length&&(G.type==="pipe"||G.type==="paren");if(!le&&G.type!=="paren"&&!Ee&&!b){I({type:"star",value:C,output:""});continue}for(;$.slice(0,3)==="/**";){let Y=t[k.index+4];if(Y&&Y!=="/")break;$=$.slice(3),p("/**",3)}if(G.type==="bos"&&T()){B.type="globstar",B.value+=C,B.output=_(r),k.output=B.output,k.globstar=!0,p(C);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!be&&T()){k.output=k.output.slice(0,-(G.output+B.output).length),G.output=`(?:${G.output}`,B.type="globstar",B.output=_(r)+(r.strictSlashes?")":"|$)"),B.value+=C,k.globstar=!0,k.output+=G.output+B.output,p(C);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&$[0]==="/"){let Y=$[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(G.output+B.output).length),G.output=`(?:${G.output}`,B.type="globstar",B.output=`${_(r)}${d}|${d}${Y})`,B.value+=C,k.output+=G.output+B.output,k.globstar=!0,p(C+z()),I({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&$[0]==="/"){B.type="globstar",B.value+=C,B.output=`(?:^|${d}|${_(r)}${d})`,k.output=B.output,k.globstar=!0,p(C+z()),I({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-B.output.length),B.type="globstar",B.output=_(r),B.value+=C,k.output+=B.output,k.globstar=!0,p(C);continue}let X={type:"star",value:C,output:q};if(r.bash===!0){X.output=".*?",(B.type==="bos"||B.type==="slash")&&(X.output=S+X.output),I(X);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===!0){X.output=C,I(X);continue}(k.index===k.start||B.type==="slash"||B.type==="dot")&&(B.type==="dot"?(k.output+=v,B.output+=v):r.dot===!0?(k.output+=F,B.output+=F):(k.output+=S,B.output+=S),j()!=="*"&&(k.output+=g,B.output+=g)),I(X)}for(;k.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));k.output=Ve.escapeLast(k.output,"["),w("brackets")}for(;k.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));k.output=Ve.escapeLast(k.output,"("),w("parens")}for(;k.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));k.output=Ve.escapeLast(k.output,"{"),w("braces")}if(r.strictSlashes!==!0&&(B.type==="star"||B.type==="bracket")&&I({type:"maybe_slash",value:"",output:`${d}?`}),k.backtrack===!0){k.output="";for(let $ of k.tokens)k.output+=$.output!=null?$.output:$.value,$.suffix&&(k.output+=$.suffix)}return k};ta.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Sm[t]||t;let s=Ve.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=_s.globChars(s),y=r.dot?h:c,E=r.dot?f:c,v=r.capture?"":"?:",F={negated:!1,prefix:""},O=r.bash===!0?".*?":d;r.capture&&(O=`(${O})`);let x=S=>S.noglobstar===!0?O:`(${v}(?:(?!${g}${S.dot?l:o}).)*?)`,R=S=>{switch(S){case"*":return`${y}${a}${O}`;case".*":return`${o}${a}${O}`;case"*.*":return`${y}${O}${o}${a}${O}`;case"*/*":return`${y}${O}${u}${a}${E}${O}`;case"**":return y+x(r);case"**/*":return`(?:${y}${x(r)}${u})?${E}${a}${O}`;case"**/*.*":return`(?:${y}${x(r)}${u})?${E}${O}${o}${a}${O}`;case"**/.*":return`(?:${y}${x(r)}${u})?${o}${a}${O}`;default:{let N=/^(.*?)\.(\w+)$/.exec(S);if(!N)return;let q=R(N[1]);return q?q+o+N[2]:void 0}}},L=Ve.removePrefix(t,F),_=R(L);return _&&r.strictSlashes!==!0&&(_+=`${u}?`),_};Am.exports=ta});var Rm=H((KL,Cm)=>{"use strict";var c1=require("path"),h1=wm(),ra=vm(),ia=dn(),f1=pn(),p1=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>De(f,e,r));return f=>{for(let d of c){let g=d(f);if(g)return g}return!1}}let i=p1(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=ia.isWindows(e),o=i?De.compileRe(t,e):De.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:d,output:g}=De.test(c,o,e,{glob:t,posix:s}),y={glob:t,state:u,regex:o,posix:s,input:c,output:g,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):a(c)?(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&&(l.state=u),l};De.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?ia.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=De.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};De.matchBase=(t,e,r,i=ia.isWindows(r))=>(e instanceof RegExp?e:De.makeRe(e,r)).test(c1.basename(t));De.isMatch=(t,e,r)=>De(e,r)(t);De.parse=(t,e)=>Array.isArray(t)?t.map(r=>De.parse(r,e)):ra(t,{...e,fastpaths:!1});De.scan=(t,e)=>h1(t,e);De.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=De.toRegex(u,e);return i===!0&&(a.state=t),a};De.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=ra.fastpaths(t,e)),n.output||(n=ra(t,e)),De.compileRe(n,e,r,i)};De.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/$^/}};De.constants=f1;Cm.exports=De});var Fm=H((VL,xm)=>{"use strict";xm.exports=Rm()});var Bm=H((ZL,Lm)=>{"use strict";var Tm=require("util"),km=lm(),Dt=Fm(),na=dn(),Om=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,u=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Dt(String(e[c]),{...r,onResult:u},!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 l=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&l.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(c=>c.replace(/\\/g,"")):e}return l};ye.match=ye;ye.matcher=(t,e)=>Dt(t,e);ye.isMatch=(t,e,r)=>Dt(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Tm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Om(t)||Om(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(!na.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=Dt(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=Dt(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: "${Tm.inspect(t)}"`);return[].concat(e).every(i=>Dt(i,r)(t))};ye.capture=(t,e,r)=>{let i=na.isWindows(r),s=Dt.makeRe(String(t),{...r,capture:!0}).exec(i?na.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>Dt.makeRe(...t);ye.scan=(...t)=>Dt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of km(String(i),e))r.push(Dt.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]:km(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Lm.exports=ye});var $m=H(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var d1=require("path"),m1=Cd(),sa=Bm(),Pm="**",y1="\\",g1=/[*?]|^!/,E1=/\[[^[]*]/,D1=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_1=/[!*+?@]\([^(]*\)/,b1=/,|\.\./;function Im(t,e={}){return!Nm(t,e)}ne.isStaticPattern=Im;function Nm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(y1)||g1.test(t)||E1.test(t)||D1.test(t)||e.extglob!==!1&&_1.test(t)||e.braceExpansion!==!1&&w1(t))}ne.isDynamicPattern=Nm;function w1(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 b1.test(i)}function S1(t){return ws(t)?t.slice(1):t}ne.convertToPositivePattern=S1;function A1(t){return"!"+t}ne.convertToNegativePattern=A1;function ws(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ws;function Mm(t){return!ws(t)}ne.isPositivePattern=Mm;function v1(t){return t.filter(ws)}ne.getNegativePatterns=v1;function C1(t){return t.filter(Mm)}ne.getPositivePatterns=C1;function R1(t){return t.filter(e=>!oa(e))}ne.getPatternsInsideCurrentDirectory=R1;function x1(t){return t.filter(oa)}ne.getPatternsOutsideCurrentDirectory=x1;function oa(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=oa;function F1(t){return m1(t,{flipBackslashes:!1})}ne.getBaseDirectory=F1;function O1(t){return t.includes(Pm)}ne.hasGlobStar=O1;function jm(t){return t.endsWith("/"+Pm)}ne.endsWithSlashGlobStar=jm;function T1(t){let e=d1.basename(t);return jm(t)||Im(e)}ne.isAffectDepthOfReadingPattern=T1;function k1(t){return t.reduce((e,r)=>e.concat(Hm(r)),[])}ne.expandPatternsWithBraceExpansion=k1;function Hm(t){return sa.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=Hm;function L1(t,e){let{parts:r}=sa.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}ne.getPatternParts=L1;function qm(t,e){return sa.makeRe(t,e)}ne.makeRe=qm;function B1(t,e){return t.map(r=>qm(r,e))}ne.convertPatternsToRe=B1;function P1(t,e){return e.some(r=>r.test(t))}ne.matchAny=P1});var Wm=H((XL,zm)=>{"use strict";var I1=require("stream"),Um=I1.PassThrough,N1=Array.prototype.slice;zm.exports=M1;function M1(){let t=[],e=N1.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=Um(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(Gm(arguments[c],i));return a(),this}function a(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,a())}function d(g){function y(){g.removeListener("merge2UnpipeEnd",y),g.removeListener("end",y),s&&g.removeListener("error",E),f()}function E(v){o.emit("error",v)}if(g._readableState.endEmitted)return f();g.on("merge2UnpipeEnd",y),g.on("end",y),s&&g.on("error",E),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<c.length;g++)d(c[g]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function Gm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Gm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Um(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Km=H(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.merge=void 0;var j1=Wm();function H1(t){let e=j1(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Ym(t)),e.once("end",()=>Ym(t)),e}Ss.merge=H1;function Ym(t){t.forEach(e=>e.emit("close"))}});var Vm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function q1(t){return typeof t=="string"}yi.isString=q1;function $1(t){return t===""}yi.isEmpty=$1});var Bt=H(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.string=Te.stream=Te.pattern=Te.path=Te.fs=Te.errno=Te.array=void 0;var U1=yd();Te.array=U1;var G1=gd();Te.errno=G1;var z1=Ed();Te.fs=z1;var W1=Dd();Te.path=W1;var Y1=$m();Te.pattern=Y1;var K1=Km();Te.stream=K1;var V1=Vm();Te.string=V1});var Xm=H(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPatternGroupToTask=ke.convertPatternGroupsToTasks=ke.groupPatternsByBaseDirectory=ke.getNegativePatternsAsPositive=ke.getPositivePatterns=ke.convertPatternsToTasks=ke.generate=void 0;var Pt=Bt();function Z1(t,e){let r=Zm(t),i=Jm(t,e.ignore),n=r.filter(a=>Pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Pt.pattern.isDynamicPattern(a,e)),o=ua(n,i,!1),u=ua(s,i,!0);return o.concat(u)}ke.generate=Z1;function ua(t,e,r){let i=[],n=Pt.pattern.getPatternsOutsideCurrentDirectory(t),s=Pt.pattern.getPatternsInsideCurrentDirectory(t),o=aa(n),u=aa(s);return i.push(...la(o,e,r)),"."in u?i.push(ca(".",s,e,r)):i.push(...la(u,e,r)),i}ke.convertPatternsToTasks=ua;function Zm(t){return Pt.pattern.getPositivePatterns(t)}ke.getPositivePatterns=Zm;function Jm(t,e){return Pt.pattern.getNegativePatterns(t).concat(e).map(Pt.pattern.convertToPositivePattern)}ke.getNegativePatternsAsPositive=Jm;function aa(t){let e={};return t.reduce((r,i)=>{let n=Pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ke.groupPatternsByBaseDirectory=aa;function la(t,e,r){return Object.keys(t).map(i=>ca(i,t[i],e,r))}ke.convertPatternGroupsToTasks=la;function ca(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pt.pattern.convertToNegativePattern))}}ke.convertPatternGroupToTask=ca});var e0=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var J1=/(?!^)\/{2,}/g;function X1(t){return t.map(e=>Qm(e))}gi.transform=X1;function Qm(t){return t.replace(J1,"/")}gi.removeDuplicateSlashes=Qm});var r0=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.read=void 0;function Q1(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){t0(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ha(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){t0(r,s);return}ha(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ha(r,o)})})}As.read=Q1;function t0(t,e){t(e)}function ha(t,e){t(null,e)}});var i0=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.read=void 0;function eC(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}}vs.read=eC});var n0=H(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.createFileSystemAdapter=rr.FILE_SYSTEM_ADAPTER=void 0;var Cs=require("fs");rr.FILE_SYSTEM_ADAPTER={lstat:Cs.lstat,stat:Cs.stat,lstatSync:Cs.lstatSync,statSync:Cs.statSync};function tC(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=tC});var s0=H(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var rC=n0(),fa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=rC.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}};pa.default=fa});var Br=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var o0=r0(),iC=i0(),da=s0();ir.Settings=da.default;function nC(t,e,r){if(typeof e=="function"){o0.read(t,ma(),e);return}o0.read(t,ma(e),r)}ir.stat=nC;function sC(t,e){let r=ma(e);return iC.read(t,r)}ir.statSync=sC;function ma(t={}){return t instanceof da.default?t:new da.default(t)}});var l0=H((lB,a0)=>{var u0;a0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(u0||(u0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var h0=H((cB,c0)=>{c0.exports=uC;var oC=l0();function uC(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(a){function l(){e&&e(a,r),e=null}s?oC(l):l()}function u(a,l,c){r[a]=c,(--i===0||l)&&o(l)}i?n?n.forEach(function(a){t[a](function(l,c){u(a,l,c)})}):t.forEach(function(a,l){a(function(c,h){u(l,c,h)})}):o(null),s=!1}});var ya=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rs=process.versions.node.split(".");if(Rs[0]===void 0||Rs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var f0=Number.parseInt(Rs[0],10),aC=Number.parseInt(Rs[1],10),p0=10,lC=10,cC=f0>p0,hC=f0===p0&&aC>=lC;xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=cC||hC});var d0=H(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var ga=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 fC(t,e){return new ga(t,e)}Fs.createDirentFromStats=fC});var Ea=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.fs=void 0;var pC=d0();Os.fs=pC});var Da=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.joinPathSegments=void 0;function dC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ts.joinPathSegments=dC});var _0=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var mC=Br(),m0=h0(),yC=ya(),y0=Ea(),g0=Da();function gC(t,e,r){if(!e.stats&&yC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){E0(t,e,r);return}D0(t,e,r)}nr.read=gC;function E0(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:g0.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){_a(r,s);return}let o=s.map(u=>EC(u,e));m0(o,(u,a)=>{if(u!==null){ks(r,u);return}_a(r,a)})})}nr.readdirWithFileTypes=E0;function EC(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=y0.fs.createDirentFromStats(t.name,n),r(null,t)})}}function D0(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(o=>{let u=g0.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{mC.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:y0.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});m0(s,(o,u)=>{if(o!==null){ks(r,o);return}_a(r,u)})})}nr.readdir=D0;function ks(t,e){t(e)}function _a(t,e){t(null,e)}});var v0=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var DC=Br(),_C=ya(),b0=Ea(),w0=Da();function bC(t,e){return!e.stats&&_C.IS_SUPPORT_READDIR_WITH_FILE_TYPES?S0(t,e):A0(t,e)}sr.read=bC;function S0(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:w0.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=b0.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=S0;function A0(t,e){return e.fs.readdirSync(t).map(i=>{let n=w0.joinPathSegments(t,i,e.pathSegmentSeparator),s=DC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:b0.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=A0});var C0=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createFileSystemAdapter=or.FILE_SYSTEM_ADAPTER=void 0;var Ei=require("fs");or.FILE_SYSTEM_ADAPTER={lstat:Ei.lstat,stat:Ei.stat,lstatSync:Ei.lstatSync,statSync:Ei.statSync,readdir:Ei.readdir,readdirSync:Ei.readdirSync};function wC(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=wC});var R0=H(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var SC=require("path"),AC=Br(),vC=C0(),ba=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=vC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,SC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new AC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};wa.default=ba});var Ls=H(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Settings=ur.scandirSync=ur.scandir=void 0;var x0=_0(),CC=v0(),Sa=R0();ur.Settings=Sa.default;function RC(t,e,r){if(typeof e=="function"){x0.read(t,Aa(),e);return}x0.read(t,Aa(e),r)}ur.scandir=RC;function xC(t,e){let r=Aa(e);return CC.read(t,r)}ur.scandirSync=xC;function Aa(t={}){return t instanceof Sa.default?t:new Sa.default(t)}});var O0=H((_B,F0)=>{"use strict";function FC(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}}F0.exports=FC});var k0=H((bB,va)=>{"use strict";var OC=O0();function T0(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=OC(TC),n=null,s=null,o=0,u=null,a={push:y,drain:rt,saturated:rt,pause:c,paused:!1,concurrency:r,running:l,resume:d,idle:g,length:h,getQueue:f,unshift:E,empty:rt,kill:F,killAndDrain:O,error:x};return a;function l(){return o}function c(){a.paused=!0}function h(){for(var R=n,L=0;R;)R=R.next,L++;return L}function f(){for(var R=n,L=[];R;)L.push(R.value),R=R.next;return L}function d(){if(a.paused){a.paused=!1;for(var R=0;R<a.concurrency;R++)o++,v()}}function g(){return o===0&&a.length()===0}function y(R,L){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=L||rt,_.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=_,s=_):(n=_,s=_,a.saturated()):(o++,e.call(t,_.value,_.worked))}function E(R,L){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=L||rt,o===a.concurrency||a.paused?n?(_.next=n,n=_):(n=_,s=_,a.saturated()):(o++,e.call(t,_.value,_.worked))}function v(R){R&&i.release(R);var L=n;L?a.paused?o--:(s===n&&(s=null),n=L.next,L.next=null,e.call(t,L.value,L.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=rt}function O(){n=null,s=null,a.drain(),a.drain=rt}function x(R){u=R}}function rt(){}function TC(){this.value=null,this.callback=rt,this.next=null,this.release=rt,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=rt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function kC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var n=T0(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=l,n;function u(c){var h=new Promise(function(f,d){s(c,function(g,y){if(g){d(g);return}f(y)})});return h.catch(rt),h}function a(c){var h=new Promise(function(f,d){o(c,function(g,y){if(g){d(g);return}f(y)})});return h.catch(rt),h}function l(){var c=n.drain,h=new Promise(function(f){n.drain=function(){c(),f()}});return h}}va.exports=T0;va.exports.promise=kC});var Bs=H(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.joinPathSegments=_t.replacePathSegmentSeparator=_t.isAppliedFilter=_t.isFatalError=void 0;function LC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}_t.isFatalError=LC;function BC(t,e){return t===null||t(e)}_t.isAppliedFilter=BC;function PC(t,e){return t.split(/[/\\]/).join(e)}_t.replacePathSegmentSeparator=PC;function IC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}_t.joinPathSegments=IC});var xa=H(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var NC=Bs(),Ca=class{constructor(e,r){this._root=e,this._settings=r,this._root=NC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ra.default=Ca});var Ta=H(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var MC=require("events"),jC=Ls(),HC=k0(),Ps=Bs(),qC=xa(),Fa=class extends qC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=jC.scandir,this._emitter=new MC.EventEmitter,this._queue=HC(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||!Ps.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=Ps.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ps.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ps.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Oa.default=Fa});var L0=H(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var $C=Ta(),ka=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $C.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{UC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{GC(e,this._storage)}),this._reader.read()}};La.default=ka;function UC(t,e){t(e)}function GC(t,e){t(null,e)}});var B0=H(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var zC=require("stream"),WC=Ta(),Ba=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new WC.default(this._root,this._settings),this._stream=new zC.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}};Pa.default=Ba});var P0=H(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var YC=Ls(),Is=Bs(),KC=xa(),Ia=class extends KC.default{constructor(){super(...arguments),this._scandir=YC.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(Is.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Is.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Is.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Is.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Na.default=Ia});var I0=H(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var VC=P0(),Ma=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VC.default(this._root,this._settings)}read(){return this._reader.read()}};ja.default=Ma});var N0=H(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var ZC=require("path"),JC=Ls(),Ha=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,ZC.sep),this.fsScandirSettings=new JC.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}};qa.default=Ha});var Ms=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Settings=bt.walkStream=bt.walkSync=bt.walk=void 0;var M0=L0(),XC=B0(),QC=I0(),$a=N0();bt.Settings=$a.default;function eR(t,e,r){if(typeof e=="function"){new M0.default(t,Ns()).read(e);return}new M0.default(t,Ns(e)).read(r)}bt.walk=eR;function tR(t,e){let r=Ns(e);return new QC.default(t,r).read()}bt.walkSync=tR;function rR(t,e){let r=Ns(e);return new XC.default(t,r).read()}bt.walkStream=rR;function Ns(t={}){return t instanceof $a.default?t:new $a.default(t)}});var js=H(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var iR=require("path"),nR=Br(),j0=Bt(),Ua=class{constructor(e){this._settings=e,this._fsStatSettings=new nR.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return iR.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:j0.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!j0.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ga.default=Ua});var Ya=H(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var sR=require("stream"),oR=Br(),uR=Ms(),aR=js(),za=class extends aR.default{constructor(){super(...arguments),this._walkStream=uR.walkStream,this._stat=oR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new sR.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);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))})}};Wa.default=za});var H0=H(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var lR=Ms(),cR=js(),hR=Ya(),Ka=class extends cR.default{constructor(){super(...arguments),this._walkAsync=lR.walk,this._readerStream=new hR.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",u=>i.push(u)),n.once("end",()=>s(i))})}};Va.default=Ka});var q0=H(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var Di=Bt(),Za=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Di.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 Di.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Di.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Di.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Di.array.splitWhen(e,r=>r.dynamic&&Di.pattern.hasGlobStar(r.pattern))}};Ja.default=Za});var $0=H(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var fR=q0(),Xa=class extends fR.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((a,l)=>{let c=s.segments[l];return!!(c.dynamic&&c.patternRe.test(a)||!c.dynamic&&c.pattern===a)}))return!0}return!1}};Qa.default=Xa});var U0=H(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Hs=Bt(),pR=$0(),el=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 pR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Hs.pattern.isAffectDepthOfReadingPattern);return Hs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hs.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!Hs.pattern.matchAny(e,r)}};tl.default=el});var G0=H(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var Pr=Bt(),rl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Pr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Pr.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=Pr.path.makeAbsolute(this._settings.cwd,e);return Pr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Pr.path.removeLeadingDotSegment(e),s=Pr.pattern.matchAny(n,r);return!s&&i?Pr.pattern.matchAny(n+"/",r):s}};il.default=rl});var z0=H(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var dR=Bt(),nl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return dR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};sl.default=nl});var Y0=H(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var W0=Bt(),ol=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=W0.path.makeAbsolute(this._settings.cwd,r),r=W0.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ul.default=ol});var qs=H(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var mR=require("path"),yR=U0(),gR=G0(),ER=z0(),DR=Y0(),al=class{constructor(e){this._settings=e,this.errorFilter=new ER.default(this._settings),this.entryFilter=new gR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new yR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new DR.default(this._settings)}_getRootDirectory(e){return mR.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}}};ll.default=al});var K0=H(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var _R=H0(),bR=qs(),cl=class extends bR.default{constructor(){super(...arguments),this._reader=new _R.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)}};hl.default=cl});var V0=H(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var wR=require("stream"),SR=Ya(),AR=qs(),fl=class extends AR.default{constructor(){super(...arguments),this._reader=new SR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new wR.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)}};pl.default=fl});var Z0=H(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var vR=Br(),CR=Ms(),RR=js(),dl=class extends RR.default{constructor(){super(...arguments),this._walkSync=CR.walkSync,this._statSync=vR.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)}};ml.default=dl});var J0=H(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var xR=Z0(),FR=qs(),yl=class extends FR.default{constructor(){super(...arguments),this._reader=new xR.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)}};gl.default=yl});var X0=H(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs"),OR=require("os"),TR=Math.max(OR.cpus().length,1);bi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_i.lstat,lstatSync:_i.lstatSync,stat:_i.stat,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};var El=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,TR),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({},bi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};bi.default=El});var $s=H((WB,ty)=>{"use strict";var Q0=Xm(),ey=e0(),kR=K0(),LR=V0(),BR=J0(),Dl=X0(),Ir=Bt();async function _l(t,e){wi(t);let r=bl(t,kR.default,e),i=await Promise.all(r);return Ir.array.flatten(i)}(function(t){function e(o,u){wi(o);let a=bl(o,BR.default,u);return Ir.array.flatten(a)}t.sync=e;function r(o,u){wi(o);let a=bl(o,LR.default,u);return Ir.stream.merge(a)}t.stream=r;function i(o,u){wi(o);let a=ey.transform([].concat(o)),l=new Dl.default(u);return Q0.generate(a,l)}t.generateTasks=i;function n(o,u){wi(o);let a=new Dl.default(u);return Ir.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return wi(o),Ir.path.escape(o)}t.escapePath=s})(_l||(_l={}));function bl(t,e,r){let i=ey.transform([].concat(t)),n=new Dl.default(r),s=Q0.generate(i,n),o=new e(n);return s.map(o.read,o)}function wi(t){if(![].concat(t).every(i=>Ir.string.isString(i)&&!Ir.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ty.exports=_l});var Iy=H((d2,Mt)=>{function Bl(t){return Mt.exports=Bl=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},Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports,Bl(t)}Mt.exports=Bl,Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports});var jy=H((m2,jt)=>{var Ny=Iy().default;function My(){"use strict";jt.exports=My=function(){return e},jt.exports.__esModule=!0,jt.exports.default=jt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(C,T,j){C[T]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function l(C,T,j){return Object.defineProperty(C,T,{value:j,enumerable:!0,configurable:!0,writable:!0}),C[T]}try{l({},"")}catch{l=function(j,z,P){return j[z]=P}}function c(C,T,j,z){var P=T&&T.prototype instanceof v?T:v,p=Object.create(P.prototype),m=new V(z||[]);return n(p,"_invoke",{value:q(C,j,m)}),p}function h(C,T,j){try{return{type:"normal",arg:C.call(T,j)}}catch(z){return{type:"throw",arg:z}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",g="executing",y="completed",E={};function v(){}function F(){}function O(){}var x={};l(x,o,function(){return this});var R=Object.getPrototypeOf,L=R&&R(R(B([])));L&&L!==r&&i.call(L,o)&&(x=L);var _=O.prototype=v.prototype=Object.create(x);function S(C){["next","throw","return"].forEach(function(T){l(C,T,function(j){return this._invoke(T,j)})})}function N(C,T){function j(P,p,m,D){var A=h(C[P],C,p);if(A.type!=="throw"){var w=A.arg,I=w.value;return I&&Ny(I)=="object"&&i.call(I,"__await")?T.resolve(I.__await).then(function(M){j("next",M,m,D)},function(M){j("throw",M,m,D)}):T.resolve(I).then(function(M){w.value=M,m(w)},function(M){return j("throw",M,m,D)})}D(A.arg)}var z;n(this,"_invoke",{value:function(p,m){function D(){return new T(function(A,w){j(p,m,A,w)})}return z=z?z.then(D,D):D()}})}function q(C,T,j){var z=f;return function(P,p){if(z===g)throw new Error("Generator is already running");if(z===y){if(P==="throw")throw p;return{value:t,done:!0}}for(j.method=P,j.arg=p;;){var m=j.delegate;if(m){var D=k(m,j);if(D){if(D===E)continue;return D}}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 A=h(C,T,j);if(A.type==="normal"){if(z=j.done?y:d,A.arg===E)continue;return{value:A.arg,done:j.done}}A.type==="throw"&&(z=y,j.method="throw",j.arg=A.arg)}}}function k(C,T){var j=T.method,z=C.iterator[j];if(z===t)return T.delegate=null,j==="throw"&&C.iterator.return&&(T.method="return",T.arg=t,k(C,T),T.method==="throw")||j!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+j+"' method")),E;var P=h(z,C.iterator,T.arg);if(P.type==="throw")return T.method="throw",T.arg=P.arg,T.delegate=null,E;var p=P.arg;return p?p.done?(T[C.resultName]=p.value,T.next=C.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,E):p:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,E)}function U(C){var T={tryLoc:C[0]};1 in C&&(T.catchLoc=C[1]),2 in C&&(T.finallyLoc=C[2],T.afterLoc=C[3]),this.tryEntries.push(T)}function K(C){var T=C.completion||{};T.type="normal",delete T.arg,C.completion=T}function V(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(U,this),this.reset(!0)}function B(C){if(C||C===""){var T=C[o];if(T)return T.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var j=-1,z=function P(){for(;++j<C.length;)if(i.call(C,j))return P.value=C[j],P.done=!1,P;return P.value=t,P.done=!0,P};return z.next=z}}throw new TypeError(Ny(C)+" is not iterable")}return F.prototype=O,n(_,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:F,configurable:!0}),F.displayName=l(O,a,"GeneratorFunction"),e.isGeneratorFunction=function(C){var T=typeof C=="function"&&C.constructor;return!!T&&(T===F||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,O):(C.__proto__=O,l(C,a,"GeneratorFunction")),C.prototype=Object.create(_),C},e.awrap=function(C){return{__await:C}},S(N.prototype),l(N.prototype,u,function(){return this}),e.AsyncIterator=N,e.async=function(C,T,j,z,P){P===void 0&&(P=Promise);var p=new N(c(C,T,j,z),P);return e.isGeneratorFunction(T)?p:p.next().then(function(m){return m.done?m.value:p.next()})},S(_),l(_,a,"Generator"),l(_,o,function(){return this}),l(_,"toString",function(){return"[object Generator]"}),e.keys=function(C){var T=Object(C),j=[];for(var z in T)j.push(z);return j.reverse(),function P(){for(;j.length;){var p=j.pop();if(p in T)return P.value=p,P.done=!1,P}return P.done=!0,P}},e.values=B,V.prototype={constructor:V,reset:function(T){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),!T)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 T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var j=this;function z(w,I){return m.type="throw",m.arg=T,j.next=w,I&&(j.method="next",j.arg=t),!!I}for(var P=this.tryEntries.length-1;P>=0;--P){var p=this.tryEntries[P],m=p.completion;if(p.tryLoc==="root")return z("end");if(p.tryLoc<=this.prev){var D=i.call(p,"catchLoc"),A=i.call(p,"finallyLoc");if(D&&A){if(this.prev<p.catchLoc)return z(p.catchLoc,!0);if(this.prev<p.finallyLoc)return z(p.finallyLoc)}else if(D){if(this.prev<p.catchLoc)return z(p.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return z(p.finallyLoc)}}}},abrupt:function(T,j){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var p=P;break}}p&&(T==="break"||T==="continue")&&p.tryLoc<=j&&j<=p.finallyLoc&&(p=null);var m=p?p.completion:{};return m.type=T,m.arg=j,p?(this.method="next",this.next=p.finallyLoc,E):this.complete(m)},complete:function(T,j){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&j&&(this.next=j),E},finish:function(T){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===T)return this.complete(z.completion,z.afterLoc),K(z),E}},catch:function(T){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===T){var P=z.completion;if(P.type==="throw"){var p=P.arg;K(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(T,j,z){return this.delegate={iterator:B(T),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),E}},e}jt.exports=My,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var qy=H((y2,Hy)=>{var Vs=jy()();Hy.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var Fi=H((aI,eg)=>{"use strict";var Qy=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"]]);eg.exports=t=>t?Object.keys(t).map(e=>[Qy.has(e)?Qy.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var to=H((lI,lg)=>{"use strict";var tg=typeof process=="object"&&process?process:{stdout:null,stderr:null},UF=require("events"),rg=require("stream"),ig=require("string_decoder").StringDecoder,qt=Symbol("EOF"),$t=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Zs=Symbol("emittingEnd"),Rn=Symbol("emittedError"),Js=Symbol("closed"),ng=Symbol("read"),Xs=Symbol("flush"),sg=Symbol("flushChunk"),Ge=Symbol("encoding"),Ut=Symbol("decoder"),Qs=Symbol("flowing"),xn=Symbol("paused"),Oi=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),ql=Symbol("bufferPush"),$l=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),Ul=Symbol("emitData"),og=Symbol("emitEnd"),Gl=Symbol("emitEnd2"),Gt=Symbol("async"),Fn=t=>Promise.resolve().then(t),ug=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GF=ug&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),zF=ug&&Symbol.iterator||Symbol("iterator not implemented"),WF=t=>t==="end"||t==="finish"||t==="prefinish",YF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,KF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),eo=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Oi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zl=class extends eo{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)}};lg.exports=class ag extends rg{constructor(e){super(),this[Qs]=!1,this[xn]=!1,this[vt]=[],this[_e]=[],this[Be]=e&&e.objectMode||!1,this[Be]?this[Ge]=null:this[Ge]=e&&e.encoding||null,this[Ge]==="buffer"&&(this[Ge]=null),this[Gt]=e&&!!e.async||!1,this[Ut]=this[Ge]?new ig(this[Ge]):null,this[qt]=!1,this[dr]=!1,this[Zs]=!1,this[Js]=!1,this[Rn]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[Pe]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_e]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[vt]})}get bufferLength(){return this[Re]}get encoding(){return this[Ge]}set encoding(e){if(this[Be])throw new Error("cannot set encoding in objectMode");if(this[Ge]&&e!==this[Ge]&&(this[Ut]&&this[Ut].lastNeed||this[Re]))throw new Error("cannot change encoding");this[Ge]!==e&&(this[Ut]=e?new ig(e):null,this[_e].length&&(this[_e]=this[_e].map(r=>this[Ut].write(r)))),this[Ge]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Be]}set objectMode(e){this[Be]=this[Be]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}write(e,r,i){if(this[qt])throw new Error("write after end");if(this[Pe])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[Gt]?Fn:s=>s();return!this[Be]&&!Buffer.isBuffer(e)&&(KF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):YF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Be]?(this.flowing&&this[Re]!==0&&this[Xs](!0),this.flowing?this.emit("data",e):this[ql](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ge]&&!this[Ut].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ge]&&(e=this[Ut].write(e)),this.flowing&&this[Re]!==0&&this[Xs](!0),this.flowing?this.emit("data",e):this[ql](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Pe])return null;if(this[Re]===0||e===0||e>this[Re])return this[$t](),null;this[Be]&&(e=null),this[_e].length>1&&!this[Be]&&(this.encoding?this[_e]=[this[_e].join("")]:this[_e]=[Buffer.concat(this[_e],this[Re])]);let r=this[ng](e||null,this[_e][0]);return this[$t](),r}[ng](e,r){return e===r.length||e===null?this[$l]():(this[_e][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[_e].length&&!this[qt]&&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[qt]=!0,this.writable=!1,(this.flowing||!this[xn])&&this[$t](),this}[Oi](){this[Pe]||(this[xn]=!1,this[Qs]=!0,this.emit("resume"),this[_e].length?this[Xs]():this[qt]?this[$t]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[Qs]=!1,this[xn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[Qs]}get paused(){return this[xn]}[ql](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[$l](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Xs](e){do;while(this[sg](this[$l]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[sg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Pe])return;let i=this[dr];return r=r||{},e===tg.stdout||e===tg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new zl(this,e,r):new eo(this,e,r)),this[Gt]?Fn(()=>this[Oi]()):this[Oi]()),e}unpipe(e){let r=this[vt].find(i=>i.dest===e);r&&(this[vt].splice(this[vt].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[vt].length&&!this.flowing?this[Oi]():e==="readable"&&this[Re]!==0?super.emit("readable"):WF(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rn]&&(this[Gt]?Fn(()=>r.call(this,this[Rn])):r.call(this,this[Rn])),i}get emittedEnd(){return this[dr]}[$t](){!this[Zs]&&!this[dr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Zs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Js]&&this.emit("close"),this[Zs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[Gt]?Fn(()=>this[Ul](r)):this[Ul](r):!1;if(e==="end")return this[og]();if(e==="close"){if(this[Js]=!0,!this[dr]&&!this[Pe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rn]=r;let s=super.emit("error",r);return this[$t](),s}else if(e==="resume"){let s=super.emit("resume");return this[$t](),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[$t](),n}[Ul](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$t](),r}[og](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?Fn(()=>this[Gl]()):this[Gl]())}[Gl](){if(this[Ut]){let r=this[Ut].end();if(r){for(let i of this[vt])i.dest.write(r);super.emit("data",r)}}for(let r of this[vt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ge]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Pe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[GF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[qt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Pe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[zF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Pe]?(e?this.emit("error",e):this.emit(Pe),this):(this[Pe]=!0,this[_e].length=0,this[Re]=0,typeof this.close=="function"&&!this[Js]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof ag||e instanceof rg||e instanceof UF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var hg=H((cI,cg)=>{var VF=require("zlib").constants||{ZLIB_VERNUM:4736};cg.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},VF))});var Jl=H((hI,_g)=>{"use strict";var fg=typeof process=="object"&&process?process:{stdout:null,stderr:null},ZF=require("events"),pg=require("stream"),dg=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),ro=Symbol("emittingEnd"),On=Symbol("emittedError"),io=Symbol("closed"),mg=Symbol("read"),no=Symbol("flush"),yg=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),so=Symbol("flowing"),Tn=Symbol("paused"),Ti=Symbol("resume"),xe=Symbol("bufferLength"),Wl=Symbol("bufferPush"),Yl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Kl=Symbol("emitData"),gg=Symbol("emitEnd"),Vl=Symbol("emitEnd2"),Kt=Symbol("async"),kn=t=>Promise.resolve().then(t),Eg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",JF=Eg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),XF=Eg&&Symbol.iterator||Symbol("iterator not implemented"),QF=t=>t==="end"||t==="finish"||t==="prefinish",eO=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tO=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),oo=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Zl=class extends oo{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)}};_g.exports=class Dg extends pg{constructor(e){super(),this[so]=!1,this[Tn]=!1,this.pipes=[],this.buffer=[],this[Ie]=e&&e.objectMode||!1,this[Ie]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[Kt]=e&&!!e.async||!1,this[Yt]=this[ze]?new dg(this[ze]):null,this[zt]=!1,this[mr]=!1,this[ro]=!1,this[io]=!1,this[On]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[Ne]=!1}get bufferLength(){return this[xe]}get encoding(){return this[ze]}set encoding(e){if(this[Ie])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Yt]&&this[Yt].lastNeed||this[xe]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Yt]=e?new dg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ie]}set objectMode(e){this[Ie]=this[Ie]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[zt])throw new Error("write after end");if(this[Ne])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[Kt]?kn:s=>s();return!this[Ie]&&!Buffer.isBuffer(e)&&(tO(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eO(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ie]?(this.flowing&&this[xe]!==0&&this[no](!0),this.flowing?this.emit("data",e):this[Wl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Yt].write(e)),this.flowing&&this[xe]!==0&&this[no](!0),this.flowing?this.emit("data",e):this[Wl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Wt](),null;this[Ie]&&(e=null),this.buffer.length>1&&!this[Ie]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[xe])]);let r=this[mg](e||null,this.buffer[0]);return this[Wt](),r}[mg](e,r){return e===r.length||e===null?this[Yl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[xe]-=e),this.emit("data",r),!this.buffer.length&&!this[zt]&&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[zt]=!0,this.writable=!1,(this.flowing||!this[Tn])&&this[Wt](),this}[Ti](){this[Ne]||(this[Tn]=!1,this[so]=!0,this.emit("resume"),this.buffer.length?this[no]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[so]=!1,this[Tn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[so]}get paused(){return this[Tn]}[Wl](e){this[Ie]?this[xe]+=1:this[xe]+=e.length,this.buffer.push(e)}[Yl](){return this.buffer.length&&(this[Ie]?this[xe]-=1:this[xe]-=this.buffer[0].length),this.buffer.shift()}[no](e){do;while(this[yg](this[Yl]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[yg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ne])return;let i=this[mr];return r=r||{},e===fg.stdout||e===fg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Zl(this,e,r):new oo(this,e,r)),this[Kt]?kn(()=>this[Ti]()):this[Ti]()),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[Ti]():e==="readable"&&this[xe]!==0?super.emit("readable"):QF(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[On]&&(this[Kt]?kn(()=>r.call(this,this[On])):r.call(this,this[On])),i}get emittedEnd(){return this[mr]}[Wt](){!this[ro]&&!this[mr]&&!this[Ne]&&this.buffer.length===0&&this[zt]&&(this[ro]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[io]&&this.emit("close"),this[ro]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?kn(()=>this[Kl](r)):this[Kl](r):!1;if(e==="end")return this[gg]();if(e==="close"){if(this[io]=!0,!this[mr]&&!this[Ne])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[On]=r;let s=super.emit("error",r);return this[Wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wt](),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[Wt](),n}[Kl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[gg](){this[mr]||(this[mr]=!0,this.readable=!1,this[Kt]?kn(()=>this[Vl]()):this[Vl]())}[Vl](){if(this[Yt]){let r=this[Yt].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[Ie]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ie]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this[ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ne,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[JF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[zt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Ne,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[XF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ne]?(e?this.emit("error",e):this.emit(Ne),this):(this[Ne]=!0,this.buffer.length=0,this[xe]=0,typeof this.close=="function"&&!this[io]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof Dg||e instanceof pg||e instanceof ZF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var pc=H(Je=>{"use strict";var rc=require("assert"),yr=require("buffer").Buffer,Sg=require("zlib"),qr=Je.constants=hg(),rO=Jl(),bg=yr.concat,$r=Symbol("_superWrite"),Li=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"}},iO=Symbol("opts"),Ln=Symbol("flushFlag"),wg=Symbol("finishFlushFlag"),fc=Symbol("fullFlushFlag"),pe=Symbol("handle"),uo=Symbol("onError"),ki=Symbol("sawError"),Xl=Symbol("level"),Ql=Symbol("strategy"),ec=Symbol("ended"),fI=Symbol("_defaultFullFlush"),ao=class extends rO{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[ki]=!1,this[ec]=!1,this[iO]=e,this[Ln]=e.flush,this[wg]=e.finishFlush;try{this[pe]=new Sg[r](e)}catch(i){throw new Li(i)}this[uo]=i=>{this[ki]||(this[ki]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[uo](new Li(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[ki])return rc(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[fc]),this.write(Object.assign(yr.alloc(0),{[Ln]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[wg]),this[ec]=!0,super.end(null,null,i)}get ended(){return this[ec]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[ki])return;rc(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=l=>l;let u;try{let l=typeof e[Ln]=="number"?e[Ln]:this[Ln];u=this[pe]._processChunk(e,l),yr.concat=bg}catch(l){yr.concat=bg,this[uo](new Li(l))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",l=>this[uo](new Li(l)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[$r](yr.from(u[0]));for(let l=1;l<u.length;l++)a=this[$r](u[l])}else a=this[$r](yr.from(u));return i&&i(),a}[$r](e){return super.write(e)}},Vt=class extends ao{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[fc]=qr.Z_FULL_FLUSH,this[Xl]=e.level,this[Ql]=e.strategy}params(e,r){if(!this[ki]){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[Xl]!==e||this[Ql]!==r){this.flush(qr.Z_SYNC_FLUSH),rc(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[Xl]=e,this[Ql]=r)}}}},ic=class extends Vt{constructor(e){super(e,"Deflate")}},nc=class extends Vt{constructor(e){super(e,"Inflate")}},tc=Symbol("_portable"),sc=class extends Vt{constructor(e){super(e,"Gzip"),this[tc]=e&&!!e.portable}[$r](e){return this[tc]?(this[tc]=!1,e[9]=255,super[$r](e)):super[$r](e)}},oc=class extends Vt{constructor(e){super(e,"Gunzip")}},uc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},ac=class extends Vt{constructor(e){super(e,"InflateRaw")}},lc=class extends Vt{constructor(e){super(e,"Unzip")}},lo=class extends ao{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[fc]=qr.BROTLI_OPERATION_FLUSH}},cc=class extends lo{constructor(e){super(e,"BrotliCompress")}},hc=class extends lo{constructor(e){super(e,"BrotliDecompress")}};Je.Deflate=ic;Je.Inflate=nc;Je.Gzip=sc;Je.Gunzip=oc;Je.DeflateRaw=uc;Je.InflateRaw=ac;Je.Unzip=lc;typeof Sg.BrotliCompress=="function"?(Je.BrotliCompress=cc,Je.BrotliDecompress=hc):Je.BrotliCompress=Je.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Bi=H((mI,Ag)=>{var nO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Ag.exports=nO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var co=H((gI,vg)=>{"use strict";var sO=to(),dc=Bi(),mc=Symbol("slurp");vg.exports=class extends sO{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=dc(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=dc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[mc](r),i&&this[mc](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))}[mc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?dc(e[i]):e[i])}}});var yc=H(ho=>{"use strict";ho.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"]]);ho.code=new Map(Array.from(ho.name).map(t=>[t[1],t[0]]))});var Fg=H((DI,xg)=>{"use strict";var oO=(t,e)=>{if(Number.isSafeInteger(t))t<0?aO(t,e):uO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},uO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},aO=(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]=Cg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Rg(n))}},lO=t=>{let e=t[0],r=e===128?hO(t.slice(1,t.length)):e===255?cO(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},cO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Cg(s):s===0?o=s:(i=!0,o=Rg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},hO=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},Cg=t=>(255^t)&255,Rg=t=>(255^t)+1&255;xg.exports={encode:oO,parse:lO}});var Ii=H((_I,Tg)=>{"use strict";var gc=yc(),Pi=require("path").posix,Og=Fg(),Ec=Symbol("slurp"),Xe=Symbol("type"),bc=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[Xe]="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=Ur(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=Dc(e,r+136,12),this.cksum=gr(e,r+148,12),this[Ec](i),this[Ec](n,!0),this[Xe]=Ur(e,r+156,1),this[Xe]===""&&(this[Xe]="0"),this[Xe]==="0"&&this.path.slice(-1)==="/"&&(this[Xe]="5"),this[Xe]==="5"&&(this.size=0),this.linkpath=Ur(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Ur(e,r+265,32),this.gname=Ur(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=Ur(e,r+345,155);this.path=o+"/"+this.path}else{let o=Ur(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Dc(e,r+476,12),this.ctime=Dc(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)}[Ec](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=fO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=Er(e,r+100,8,this.mode)||this.needPax,this.needPax=Er(e,r+108,8,this.uid)||this.needPax,this.needPax=Er(e,r+116,8,this.gid)||this.needPax,this.needPax=Er(e,r+124,12,this.size)||this.needPax,this.needPax=_c(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Xe].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=Er(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Er(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=_c(e,r+476,12,this.atime)||this.needPax,this.needPax=_c(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,Er(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 gc.name.get(this[Xe])||this[Xe]}get typeKey(){return this[Xe]}set type(e){gc.code.has(e)?this[Xe]=gc.code.get(e):this[Xe]=e}},fO=(t,e)=>{let i=t,n="",s,o=Pi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Pi.dirname(i),i=Pi.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=Pi.join(Pi.basename(n),i),n=Pi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Ur=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Dc=(t,e,r)=>pO(gr(t,e,r)),pO=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?Og.parse(t.slice(e,e+r)):mO(t,e,r),dO=t=>isNaN(t)?null:t,mO=(t,e,r)=>dO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),yO={12:8589934591,8:2097151},Er=(t,e,r,i)=>i===null?!1:i>yO[r]||i<0?(Og.encode(i,t.slice(e,e+r)),!0):(gO(t,e,r,i),!1),gO=(t,e,r,i)=>t.write(EO(i,r),e,r,"ascii"),EO=(t,e)=>DO(Math.floor(t).toString(8),e),DO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",_c=(t,e,r,i)=>i===null?!1:Er(t,e,r,i.getTime()/1e3),_O=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+_O,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Tg.exports=bc});var fo=H((bI,kg)=>{"use strict";var bO=Ii(),wO=require("path"),Bn=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 bO({path:("PaxHeader/"+wO.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}};
|
8
|
-
`).reduce(vO,Object.create(null)),vO=(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};kg.exports=Bn});var Ni=H((wI,Lg)=>{Lg.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 po=H((SI,Bg)=>{"use strict";Bg.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 Sc=H((vI,Pg)=>{"use strict";var mo=["|","<",">","?",":"],wc=mo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),CO=new Map(mo.map((t,e)=>[t,wc[e]])),RO=new Map(wc.map((t,e)=>[t,mo[e]]));Pg.exports={encode:t=>mo.reduce((e,r)=>e.split(r).join(CO.get(r)),t),decode:t=>wc.reduce((e,r)=>e.split(r).join(RO.get(r)),t)}});var Ac=H((CI,Ng)=>{var{isAbsolute:xO,parse:Ig}=require("path").win32;Ng.exports=t=>{let e="",r=Ig(t);for(;xO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ig(t)}return[e,t]}});var jg=H((RI,Mg)=>{"use strict";Mg.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 Bc=H((OI,Qg)=>{"use strict";var Wg=to(),Yg=fo(),Kg=Ii(),Rt=require("fs"),Hg=require("path"),Ct=Bi(),FO=Ni(),Vg=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),FO(e)+"/"+t):Ct(t),OO=16*1024*1024,qg=Symbol("process"),$g=Symbol("file"),Ug=Symbol("directory"),Cc=Symbol("symlink"),Gg=Symbol("hardlink"),Pn=Symbol("header"),yo=Symbol("read"),Rc=Symbol("lstat"),go=Symbol("onlstat"),xc=Symbol("onread"),Fc=Symbol("onreadlink"),Oc=Symbol("openfile"),Tc=Symbol("onopenfile"),Dr=Symbol("close"),Eo=Symbol("mode"),kc=Symbol("awaitDrain"),vc=Symbol("ondrain"),xt=Symbol("prefix"),zg=Symbol("hadError"),Zg=po(),TO=Sc(),Jg=Ac(),Xg=jg(),Do=Zg(class extends Wg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ct(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||OO,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ct(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?Ct(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]=Jg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=TO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ct(r.absolute||Hg.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[go](this.statCache.get(this.absolute)):this[Rc]()}emit(e,...r){return e==="error"&&(this[zg]=!0),super.emit(e,...r)}[Rc](){Rt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[go](r)})}[go](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=LO(e),this.emit("stat",e),this[qg]()}[qg](){switch(this.type){case"File":return this[$g]();case"Directory":return this[Ug]();case"SymbolicLink":return this[Cc]();default:return this.end()}}[Eo](e){return Xg(e,this.type==="Directory",this.portable)}[xt](e){return Vg(e,this.prefix)}[Pn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Kg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this[Eo](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 Yg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[Ug](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pn](),this.end()}[Cc](){Rt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Fc](r)})}[Fc](e){this.linkpath=Ct(e),this[Pn](),this.end()}[Gg](e){this.type="Link",this.linkpath=Ct(Hg.relative(this.cwd,e)),this.stat.size=0,this[Pn](),this.end()}[$g](){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[Gg](r)}this.linkCache.set(e,this.absolute)}if(this[Pn](),this.stat.size===0)return this.end();this[Oc]()}[Oc](){Rt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Tc](r)})}[Tc](e){if(this.fd=e,this[zg])return this[Dr]();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[yo]()}[yo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Rt.read(e,r,i,n,s,(o,u)=>{if(o)return this[Dr](()=>this.emit("error",o));this[xc](u)})}[Dr](e){Rt.close(this.fd,e)}[xc](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[Dr](()=>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[Dr](()=>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[vc]():this[kc](()=>this[vc]())}[kc](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)}[vc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Dr](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[yo]()}}),Lc=class extends Do{[Rc](){this[go](Rt.lstatSync(this.absolute))}[Cc](){this[Fc](Rt.readlinkSync(this.absolute))}[Oc](){this[Tc](Rt.openSync(this.absolute,"r"))}[yo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=Rt.readSync(r,i,n,s,o);this[xc](u),e=!1}finally{if(e)try{this[Dr](()=>{})}catch{}}}[kc](e){e()}[Dr](e){Rt.closeSync(this.fd),e()}},kO=Zg(class extends Wg{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=Ct(e.path),this.mode=this[Eo](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=Ct(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Jg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Kg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](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 Yg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[xt](e){return Vg(e,this.prefix)}[Eo](e){return Xg(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()}});Do.Sync=Lc;Do.Tar=kO;var LO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Qg.exports=Do});var tE=H((TI,eE)=>{"use strict";eE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Pc=H((kI,rE)=>{"use strict";rE.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++)PO(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)IO(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=BO(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 BO(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 PO(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function IO(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{tE()(oe)}catch{}});var xo=H((BI,lE)=>{"use strict";var Co=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}},NO=to(),MO=pc(),jO=co(),Gc=Bc(),HO=Gc.Sync,qO=Gc.Tar,$O=Pc(),iE=Buffer.alloc(1024),wo=Symbol("onStat"),_o=Symbol("ended"),Ft=Symbol("queue"),Mi=Symbol("current"),Wr=Symbol("process"),bo=Symbol("processing"),nE=Symbol("processJob"),Ot=Symbol("jobs"),Ic=Symbol("jobDone"),So=Symbol("addFSEntry"),sE=Symbol("addTarEntry"),Hc=Symbol("stat"),qc=Symbol("readdir"),Ao=Symbol("onreaddir"),vo=Symbol("pipe"),oE=Symbol("entry"),Nc=Symbol("entryOpt"),$c=Symbol("writeEntryClass"),aE=Symbol("write"),Mc=Symbol("ondrain"),Ro=require("fs"),uE=require("path"),UO=po(),jc=Bi(),zc=UO(class extends NO{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=jc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[$c]=Gc,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 MO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Mc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Mc]),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[Ft]=new $O,this[Ot]=0,this.jobs=+e.jobs||4,this[bo]=!1,this[_o]=!1}[aE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[_o]=!0,this[Wr](),this}write(e){if(this[_o])throw new Error("write after end");return e instanceof jO?this[sE](e):this[So](e),this.flowing}[sE](e){let r=jc(uE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Co(e.path,r,!1);i.entry=new qO(e,this[Nc](i)),i.entry.on("end",n=>this[Ic](i)),this[Ot]+=1,this[Ft].push(i)}this[Wr]()}[So](e){let r=jc(uE.resolve(this.cwd,e));this[Ft].push(new Co(e,r)),this[Wr]()}[Hc](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";Ro[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[wo](e,n)})}[wo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[qc](e){e.pending=!0,this[Ot]+=1,Ro.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[Ao](e,i)})}[Ao](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[bo]){this[bo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[nE](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[bo]=!1,this[_o]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(iE):(super.write(iE),super.end()))}}get[Mi](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Ic](e){this[Ft].shift(),this[Ot]-=1,this[Wr]()}[nE](e){if(!e.pending){if(e.entry){e===this[Mi]&&!e.piped&&this[vo](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[wo](e,this.statCache.get(e.absolute)):this[Hc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ao](e,this.readdirCache.get(e.absolute)):this[qc](e),!e.readdir))){if(e.entry=this[oE](e),!e.entry){e.ignore=!0;return}e===this[Mi]&&!e.piped&&this[vo](e)}}}[Nc](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}}[oE](e){this[Ot]+=1;try{return new this[$c](e.path,this[Nc](e)).on("end",()=>this[Ic](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Mc](){this[Mi]&&this[Mi].entry&&this[Mi].entry.resume()}[vo](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[So](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()}}),Uc=class extends zc{constructor(e){super(e),this[$c]=HO}pause(){}resume(){}[Hc](e){let r=this.follow?"statSync":"lstatSync";this[wo](e,Ro[r](e.absolute))}[qc](e,r){this[Ao](e,Ro.readdirSync(e.absolute))}[vo](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[So](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[aE](n)})}};zc.Sync=Uc;lE.exports=zc});var Wi=H(Nn=>{"use strict";var GO=Jl(),zO=require("events").EventEmitter,We=require("fs"),Kc=We.writev;if(!Kc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Kc=(r,i,n,s)=>{let o=(a,l)=>s(a,l,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var Gi=Symbol("_autoClose"),ft=Symbol("_close"),In=Symbol("_ended"),he=Symbol("_fd"),cE=Symbol("_finished"),br=Symbol("_flags"),Wc=Symbol("_flush"),Vc=Symbol("_handleChunk"),Zc=Symbol("_makeBuf"),Lo=Symbol("_mode"),Fo=Symbol("_needDrain"),$i=Symbol("_onerror"),zi=Symbol("_onopen"),Yc=Symbol("_onread"),Hi=Symbol("_onwrite"),wr=Symbol("_open"),Zt=Symbol("_path"),Yr=Symbol("_pos"),Tt=Symbol("_queue"),qi=Symbol("_read"),hE=Symbol("_readSize"),_r=Symbol("_reading"),Oo=Symbol("_remain"),fE=Symbol("_size"),To=Symbol("_write"),ji=Symbol("_writing"),ko=Symbol("_defaultFlag"),Ui=Symbol("_errored"),Bo=class extends GO{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[Ui]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Zt]=e,this[hE]=r.readSize||16*1024*1024,this[_r]=!1,this[fE]=typeof r.size=="number"?r.size:1/0,this[Oo]=this[fE],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[wr]()}get fd(){return this[he]}get path(){return this[Zt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wr](){We.open(this[Zt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[$i](e):(this[he]=r,this.emit("open",r),this[qi]())}[Zc](){return Buffer.allocUnsafe(Math.min(this[hE],this[Oo]))}[qi](){if(!this[_r]){this[_r]=!0;let e=this[Zc]();if(e.length===0)return process.nextTick(()=>this[Yc](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Yc](r,i,n))}}[Yc](e,r,i){this[_r]=!1,e?this[$i](e):this[Vc](r,i)&&this[qi]()}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[$i](e){this[_r]=!0,this[ft](),this.emit("error",e)}[Vc](e,r){let i=!1;return this[Oo]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Oo]<=0)&&(i=!1,this[ft](),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[Ui]?void 0:(this[Ui]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Jc=class extends Bo{[wr](){let e=!0;try{this[zi](null,We.openSync(this[Zt],"r")),e=!1}finally{e&&this[ft]()}}[qi](){let e=!0;try{if(!this[_r]){this[_r]=!0;do{let r=this[Zc](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Vc](i,r))break}while(!0);this[_r]=!1}e=!1}finally{e&&this[ft]()}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}},Po=class extends zO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ui]=!1,this[ji]=!1,this[In]=!1,this[Fo]=!1,this[Tt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Lo]=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[ko]=r.flags===void 0,this[br]=this[ko]?i:r.flags,this[he]===null&&this[wr]()}emit(e,r){if(e==="error"){if(this[Ui])return;this[Ui]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Zt]}[$i](e){this[ft](),this[ji]=!0,this.emit("error",e)}[wr](){We.open(this[Zt],this[br],this[Lo],(e,r)=>this[zi](e,r))}[zi](e,r){this[ko]&&this[br]==="r+"&&e&&e.code==="ENOENT"?(this[br]="w",this[wr]()):e?this[$i](e):(this[he]=r,this.emit("open",r),this[Wc]())}end(e,r){return e&&this.write(e,r),this[In]=!0,!this[ji]&&!this[Tt].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[In]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[Tt].length?(this[Tt].push(e),this[Fo]=!0,!1):(this[ji]=!0,this[To](e),!0)}[To](e){We.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[$i](e):(this[Yr]!==null&&(this[Yr]+=r),this[Tt].length?this[Wc]():(this[ji]=!1,this[In]&&!this[cE]?(this[cE]=!0,this[ft](),this.emit("finish")):this[Fo]&&(this[Fo]=!1,this.emit("drain"))))}[Wc](){if(this[Tt].length===0)this[In]&&this[Hi](null,0);else if(this[Tt].length===1)this[To](this[Tt].pop());else{let e=this[Tt];this[Tt]=[],Kc(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Xc=class extends Po{[wr](){let e;if(this[ko]&&this[br]==="r+")try{e=We.openSync(this[Zt],this[br],this[Lo])}catch(r){if(r.code==="ENOENT")return this[br]="w",this[wr]();throw r}else e=We.openSync(this[Zt],this[br],this[Lo]);this[zi](null,e)}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}[To](e){let r=!0;try{this[Hi](null,We.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[ft]()}catch{}}}};Nn.ReadStream=Bo;Nn.ReadStreamSync=Jc;Nn.WriteStream=Po;Nn.WriteStreamSync=Xc});var $o=H((NI,_E)=>{"use strict";var WO=po(),YO=Ii(),KO=require("events"),VO=Pc(),ZO=1024*1024,JO=co(),pE=fo(),XO=pc(),{nextTick:QO}=require("process"),Qc=Buffer.from([31,139]),nt=Symbol("state"),Kr=Symbol("writeEntry"),Jt=Symbol("readEntry"),eh=Symbol("nextEntry"),dE=Symbol("processEntry"),st=Symbol("extendedHeader"),Mn=Symbol("globalExtendedHeader"),Sr=Symbol("meta"),mE=Symbol("emitMeta"),de=Symbol("buffer"),Xt=Symbol("queue"),Vr=Symbol("ended"),yE=Symbol("emittedEnd"),Zr=Symbol("emit"),Ye=Symbol("unzip"),Io=Symbol("consumeChunk"),No=Symbol("consumeChunkSub"),th=Symbol("consumeBody"),gE=Symbol("consumeMeta"),EE=Symbol("consumeHeader"),Mo=Symbol("consuming"),rh=Symbol("bufferConcat"),ih=Symbol("maybeEnd"),jn=Symbol("writing"),Ar=Symbol("aborted"),jo=Symbol("onDone"),Jr=Symbol("sawValidEntry"),Ho=Symbol("sawNullBlock"),qo=Symbol("sawEOF"),DE=Symbol("closeStream"),eT=t=>!0;_E.exports=WO(class extends KO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Jr]=null,this.on(jo,r=>{(this[nt]==="begin"||this[Jr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(jo,e.ondone):this.on(jo,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||ZO,this.filter=typeof e.filter=="function"?e.filter:eT,this.writable=!0,this.readable=!1,this[Xt]=new VO,this[de]=null,this[Jt]=null,this[Kr]=null,this[nt]="begin",this[Sr]="",this[st]=null,this[Mn]=null,this[Vr]=!1,this[Ye]=null,this[Ar]=!1,this[Ho]=!1,this[qo]=!1,this.on("end",()=>this[DE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[EE](e,r){this[Jr]===null&&(this[Jr]=!1);let i;try{i=new YO(e,r,this[st],this[Mn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ho]?(this[qo]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Zr]("eof")):(this[Ho]=!0,this[Zr]("nullBlock"));else if(this[Ho]=!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 JO(i,this[st],this[Mn]);if(!this[Jr])if(s.remain){let o=()=>{s.invalid||(this[Jr]=!0)};s.on("end",o)}else this[Jr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[nt]="ignore",s.resume()):s.size>0&&(this[Sr]="",s.on("data",o=>this[Sr]+=o),this[nt]="meta"):(this[st]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[nt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[nt]="body":(this[nt]="header",s.end()),this[Jt]?this[Xt].push(s):(this[Xt].push(s),this[eh]())))}}}[DE](){QO(()=>this.emit("close"))}[dE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Jt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[eh]()),r=!1)):(this[Jt]=null,r=!1),r}[eh](){do;while(this[dE](this[Xt].shift()));if(!this[Xt].length){let e=this[Jt];!e||e.flowing||e.size===e.remain?this[jn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[th](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[nt]="header",this[Kr]=null,i.end()),s.length}[gE](e,r){let i=this[Kr],n=this[th](e,r);return this[Kr]||this[mE](i),n}[Zr](e,r,i){!this[Xt].length&&!this[Jt]?this.emit(e,r,i):this[Xt].push([e,r,i])}[mE](e){switch(this[Zr]("meta",this[Sr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=pE.parse(this[Sr],this[st],!1);break;case"GlobalExtendedHeader":this[Mn]=pE.parse(this[Sr],this[Mn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[st]=this[st]||Object.create(null),this[st].path=this[Sr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[st]=this[st]||Object.create(null),this[st].linkpath=this[Sr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ar]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ar])return;if(this[Ye]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<Qc.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<Qc.length;i++)e[i]!==Qc[i]&&(this[Ye]=!1);if(this[Ye]===null){let i=this[Vr];this[Vr]=!1,this[Ye]=new XO.Unzip,this[Ye].on("data",s=>this[Io](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[Vr]=!0,this[Io]()}),this[jn]=!0;let n=this[Ye][i?"end":"write"](e);return this[jn]=!1,n}}this[jn]=!0,this[Ye]?this[Ye].write(e):this[Io](e),this[jn]=!1;let r=this[Xt].length?!1:this[Jt]?this[Jt].flowing:!0;return!r&&!this[Xt].length&&this[Jt].once("drain",i=>this.emit("drain")),r}[rh](e){e&&!this[Ar]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[ih](){if(this[Vr]&&!this[yE]&&!this[Ar]&&!this[Mo]){this[yE]=!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](jo)}}[Io](e){if(this[Mo])this[rh](e);else if(!e&&!this[de])this[ih]();else{if(this[Mo]=!0,this[de]){this[rh](e);let r=this[de];this[de]=null,this[No](r)}else this[No](e);for(;this[de]&&this[de].length>=512&&!this[Ar]&&!this[qo];){let r=this[de];this[de]=null,this[No](r)}this[Mo]=!1}(!this[de]||this[Vr])&&this[ih]()}[No](e){let r=0,i=e.length;for(;r+512<=i&&!this[Ar]&&!this[qo];)switch(this[nt]){case"begin":case"header":this[EE](e,r),r+=512;break;case"ignore":case"body":r+=this[th](e,r);break;case"meta":r+=this[gE](e,r);break;default:throw new Error("invalid state: "+this[nt])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Ar]||(this[Ye]?this[Ye].end(e):(this[Vr]=!0,this.write(e)))}})});var Uo=H((MI,AE)=>{"use strict";var tT=Fi(),wE=$o(),Yi=require("fs"),rT=Wi(),bE=require("path"),nh=Ni();AE.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=tT(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&&nT(i,e),i.noResume||iT(i),i.file&&i.sync?sT(i):i.file?oT(i,r):SE(i)};var iT=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},nT=(t,e)=>{let r=new Map(e.map(s=>[nh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||bE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(bE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(nh(s)):s=>n(nh(s))},sT=t=>{let e=SE(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 u=0,a=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");u<s.size;){let l=Yi.readSync(n,a,0,o,u);u+=l,e.write(a.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},oT=(t,e)=>{let r=new wE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Yi.stat(n,(a,l)=>{if(a)u(a);else{let c=new rT.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},SE=t=>new wE(t)});var OE=H((jI,FE)=>{"use strict";var uT=Fi(),Go=xo(),vE=Wi(),CE=Uo(),RE=require("path");FE.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=uT(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?aT(i,e):i.file?lT(i,e,r):i.sync?cT(i,e):hT(i,e)};var aT=(t,e)=>{let r=new Go.Sync(t),i=new vE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),xE(r,e)},lT=(t,e,r)=>{let i=new Go(t),n=new vE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return sh(i,e),r?s.then(r,r):s},xE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?CE({file:RE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},sh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return CE({file:RE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>sh(t,e));t.add(r)}t.end()},cT=(t,e)=>{let r=new Go.Sync(t);return xE(r,e),r},hT=(t,e)=>{let r=new Go(t);return sh(r,e),r}});var oh=H((HI,NE)=>{"use strict";var fT=Fi(),TE=xo(),Qe=require("fs"),kE=Wi(),LE=Uo(),BE=require("path"),PE=Ii();NE.exports=(t,e,r)=>{let i=fT(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?pT(i,e):mT(i,e,r)};var pT=(t,e)=>{let r=new TE.Sync(t),i=!0,n,s;try{try{n=Qe.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Qe.openSync(t.file,"w+");else throw a}let o=Qe.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let c=0,h=0;c<512;c+=h){if(h=Qe.readSync(n,u,c,u.length-c,s+c),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let a=new PE(u);if(!a.cksumValid)break;let l=512*Math.ceil(a.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,dT(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},dT=(t,e,r,i,n)=>{let s=new kE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),yT(e,n)},mT=(t,e,r)=>{e=Array.from(e);let i=new TE(t),n=(o,u,a)=>{let l=(g,y)=>{g?Qe.close(o,E=>a(g)):a(null,y)},c=0;if(u===0)return l(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return l(g);if(h+=y,h<512&&y)return Qe.read(o,f,h,f.length-h,c+h,d);if(c===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,c);let E=new PE(f);if(!E.cksumValid)return l(null,c);let v=512*Math.ceil(E.size/512);if(c+v+512>u||(c+=v+512,c>=u))return l(null,c);t.mtimeCache&&t.mtimeCache.set(E.path,E.mtime),h=0,Qe.read(o,f,0,512,c,d)};Qe.read(o,f,0,512,c,d)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",l=(c,h)=>{if(c&&c.code==="ENOENT"&&a==="r+")return a="w+",Qe.open(t.file,a,l);if(c)return u(c);Qe.fstat(h,(f,d)=>{if(f)return Qe.close(h,()=>u(f));n(h,d.size,(g,y)=>{if(g)return u(g);let E=new kE.WriteStream(t.file,{fd:h,start:y});i.pipe(E),E.on("error",u),E.on("close",o),IE(i,e)})})};Qe.open(t.file,a,l)});return r?s.then(r,r):s},yT=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?LE({file:BE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},IE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return LE({file:BE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>IE(t,e));t.add(r)}t.end()}});var jE=H((qI,ME)=>{"use strict";var gT=Fi(),ET=oh();ME.exports=(t,e,r)=>{let i=gT(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),DT(i),ET(i,e,r)};var DT=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 $E=H(($I,qE)=>{var{promisify:HE}=require("util"),vr=require("fs"),_T=t=>{if(!t)t={mode:511,fs:vr};else if(typeof t=="object")t={mode:511,fs:vr,...t};else if(typeof t=="number")t={mode:t,fs:vr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:vr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||vr.mkdir,t.mkdirAsync=HE(t.mkdir),t.stat=t.stat||t.fs.stat||vr.stat,t.statAsync=HE(t.stat),t.statSync=t.statSync||t.fs.statSync||vr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||vr.mkdirSync,t};qE.exports=_T});var GE=H((UI,UE)=>{var bT=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:wT,parse:ST}=require("path"),AT=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=wT(t),bT==="win32"){let e=/[*|"<>?:]/,{root:r}=ST(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};UE.exports=AT});var VE=H((GI,KE)=>{var{dirname:zE}=require("path"),WE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?WE(t,zE(e),e):void 0),YE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?YE(t,zE(e),e):void 0}};KE.exports={findMade:WE,findMadeSync:YE}});var lh=H((zI,JE)=>{var{dirname:ZE}=require("path"),uh=(t,e,r)=>{e.recursive=!1;let i=ZE(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})})},ah=(t,e,r)=>{let i=ZE(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 ah(t,e,ah(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};JE.exports={mkdirpManual:uh,mkdirpManualSync:ah}});var eD=H((WI,QE)=>{var{dirname:XE}=require("path"),{findMade:vT,findMadeSync:CT}=VE(),{mkdirpManual:RT,mkdirpManualSync:xT}=lh(),FT=(t,e)=>(e.recursive=!0,XE(t)===t?e.mkdirAsync(t,e):vT(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return RT(t,e);throw n}))),OT=(t,e)=>{if(e.recursive=!0,XE(t)===t)return e.mkdirSync(t,e);let i=CT(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return xT(t,e);throw n}};QE.exports={mkdirpNative:FT,mkdirpNativeSync:OT}});var nD=H((YI,iD)=>{var tD=require("fs"),TT=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ch=TT.replace(/^v/,"").split("."),rD=+ch[0]>10||+ch[0]==10&&+ch[1]>=12,kT=rD?t=>t.mkdir===tD.mkdir:()=>!1,LT=rD?t=>t.mkdirSync===tD.mkdirSync:()=>!1;iD.exports={useNative:kT,useNativeSync:LT}});var cD=H((KI,lD)=>{var Ki=$E(),Vi=GE(),{mkdirpNative:sD,mkdirpNativeSync:oD}=eD(),{mkdirpManual:uD,mkdirpManualSync:aD}=lh(),{useNative:BT,useNativeSync:PT}=nD(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),BT(e)?sD(t,e):uD(t,e)),IT=(t,e)=>(t=Vi(t),e=Ki(e),PT(e)?oD(t,e):aD(t,e));Zi.sync=IT;Zi.native=(t,e)=>sD(Vi(t),Ki(e));Zi.manual=(t,e)=>uD(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>oD(Vi(t),Ki(e));Zi.manualSync=(t,e)=>aD(Vi(t),Ki(e));lD.exports=Zi});var gD=H((VI,yD)=>{"use strict";var ot=require("fs"),Xr=require("path"),NT=ot.lchown?"lchown":"chown",MT=ot.lchownSync?"lchownSync":"chownSync",fD=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),hD=(t,e,r)=>{try{return ot[MT](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},jT=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},HT=fD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,hh=fD?(t,e,r)=>{try{return hD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;jT(t,e,r)}}:(t,e,r)=>hD(t,e,r),qT=process.version,pD=(t,e,r)=>ot.readdir(t,e,r),$T=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(qT)&&(pD=(t,e,r)=>ot.readdir(t,r));var zo=(t,e,r,i)=>{ot[NT](t,e,r,HT(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},dD=(t,e,r,i,n)=>{if(typeof e=="string")return ot.lstat(Xr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,dD(t,o,r,i,n)});if(e.isDirectory())fh(Xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Xr.resolve(t,e.name);zo(o,r,i,n)});else{let s=Xr.resolve(t,e.name);zo(s,r,i,n)}},fh=(t,e,r,i)=>{pD(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 zo(t,e,r,i);let o=s.length,u=null,a=l=>{if(!u){if(l)return i(u=l);if(--o===0)return zo(t,e,r,i)}};s.forEach(l=>dD(t,l,e,r,a))})},UT=(t,e,r,i)=>{if(typeof e=="string")try{let n=ot.lstatSync(Xr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&mD(Xr.resolve(t,e.name),r,i),hh(Xr.resolve(t,e.name),r,i)},mD=(t,e,r)=>{let i;try{i=$T(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return hh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>UT(t,n,e,r)),hh(t,e,r)};yD.exports=fh;fh.sync=mD});var bD=H((ZI,ph)=>{"use strict";var ED=cD(),ut=require("fs"),Wo=require("path"),DD=gD(),pt=Bi(),Yo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Ko=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Vo=(t,e)=>t.get(pt(e)),Hn=(t,e,r)=>t.set(pt(e),r),GT=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Ko(t,r&&r.code||"ENOTDIR")),e(r)})};ph.exports=(t,e,r)=>{t=pt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),l=e.preserve,c=e.unlink,h=e.cache,f=pt(e.cwd),d=(E,v)=>{E?r(E):(Hn(h,t,!0),v&&a?DD(v,o,u,F=>d(F)):s?ut.chmod(t,n,r):r())};if(h&&Vo(h,t)===!0)return d();if(t===f)return GT(t,d);if(l)return ED(t,{mode:n}).then(E=>d(null,E),d);let y=pt(Wo.relative(f,t)).split("/");Zo(f,y,n,h,c,f,null,d)};var Zo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),l=pt(Wo.resolve(t+"/"+a));if(Vo(i,l))return Zo(l,e,r,i,n,s,o,u);ut.mkdir(l,r,_D(l,e,r,i,n,s,o,u))},_D=(t,e,r,i,n,s,o,u)=>a=>{a?ut.lstat(t,(l,c)=>{if(l)l.path=l.path&&pt(l.path),u(l);else if(c.isDirectory())Zo(t,e,r,i,n,s,o,u);else if(n)ut.unlink(t,h=>{if(h)return u(h);ut.mkdir(t,r,_D(t,e,r,i,n,s,o,u))});else{if(c.isSymbolicLink())return u(new Yo(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Zo(t,e,r,i,n,s,o,u))},zT=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Ko(t,r)}};ph.exports.sync=(t,e)=>{t=pt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,l=e.unlink,c=e.cache,h=pt(e.cwd),f=E=>{Hn(c,t,!0),E&&u&&DD.sync(E,s,o),n&&ut.chmodSync(t,i)};if(c&&Vo(c,t)===!0)return f();if(t===h)return zT(h),f();if(a)return f(ED.sync(t,i));let g=pt(Wo.relative(h,t)).split("/"),y=null;for(let E=g.shift(),v=h;E&&(v+="/"+E);E=g.shift())if(v=pt(Wo.resolve(v)),!Vo(c,v))try{ut.mkdirSync(v,i),y=y||v,Hn(c,v,!0)}catch{let O=ut.lstatSync(v);if(O.isDirectory()){Hn(c,v,!0);continue}else if(l){ut.unlinkSync(v),ut.mkdirSync(v,i),y=y||v,Hn(c,v,!0);continue}else if(O.isSymbolicLink())return new Yo(v,v+"/"+g.join("/"))}return f(y)}});var mh=H((JI,wD)=>{var dh=Object.create(null),{hasOwnProperty:WT}=Object.prototype;wD.exports=t=>(WT.call(dh,t)||(dh[t]=t.normalize("NFKD")),dh[t])});var CD=H((XI,vD)=>{var SD=require("assert"),YT=mh(),KT=Ni(),{join:AD}=require("path"),VT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ZT=VT==="win32";vD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=AD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let c=e.get(l);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>t.get(h)),dirs:[...c.dirs].map(h=>t.get(h))}},s=l=>{let{paths:c,dirs:h}=n(l);return c.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>u(l)),!0),u=l=>{if(!i.has(l))return!1;let{paths:c,dirs:h}=e.get(l),f=new Set;return c.forEach(d=>{let g=t.get(d);SD.equal(g[0],l),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);SD(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(l)}),i.delete(l),f.forEach(d=>o(d)),!0};return{check:s,reserve:(l,c)=>{l=ZT?["win32 parallelization disabled"]:l.map(f=>YT(KT(AD(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(c,{dirs:h,paths:l}),l.forEach(f=>{let d=t.get(f);d?d.push(c):t.set(f,[c])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(c):d.push(new Set([c])):t.set(f,[new Set([c])])}),o(c)}}}});var FD=H((QI,xD)=>{var JT=process.env.__FAKE_PLATFORM__||process.platform,XT=JT==="win32",QT=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:ek,O_TRUNC:tk,O_WRONLY:rk,UV_FS_O_FILEMAP:RD=0}=QT.constants,ik=XT&&!!RD,nk=512*1024,sk=RD|tk|ek|rk;xD.exports=ik?t=>t<nk?sk:"w":()=>"w"});var Ah=H((eN,UD)=>{"use strict";var ok=require("assert"),uk=$o(),ue=require("fs"),ak=Wi(),Qt=require("path"),HD=bD(),OD=Sc(),lk=CD(),ck=Ac(),et=Bi(),hk=Ni(),fk=mh(),TD=Symbol("onEntry"),Eh=Symbol("checkFs"),kD=Symbol("checkFs2"),Qo=Symbol("pruneCache"),Dh=Symbol("isReusable"),at=Symbol("makeFs"),_h=Symbol("file"),bh=Symbol("directory"),eu=Symbol("link"),LD=Symbol("symlink"),BD=Symbol("hardlink"),PD=Symbol("unsupported"),ID=Symbol("checkPath"),Cr=Symbol("mkdir"),Me=Symbol("onError"),Jo=Symbol("pending"),ND=Symbol("pend"),Ji=Symbol("unpend"),yh=Symbol("ended"),gh=Symbol("maybeClose"),wh=Symbol("skip"),qn=Symbol("doChown"),$n=Symbol("uid"),Un=Symbol("gid"),Gn=Symbol("checkedCwd"),qD=require("crypto"),$D=FD(),pk=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zn=pk==="win32",dk=(t,e)=>{if(!zn)return ue.unlink(t,e);let r=t+".DELETE."+qD.randomBytes(16).toString("hex");ue.rename(t,r,i=>{if(i)return e(i);ue.unlink(r,e)})},mk=t=>{if(!zn)return ue.unlinkSync(t);let e=t+".DELETE."+qD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},MD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,jD=t=>fk(hk(et(t))).toLowerCase(),yk=(t,e)=>{e=jD(e);for(let r of t.keys()){let i=jD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},gk=t=>{for(let e of t.keys())t.delete(e)},Wn=class extends uk{constructor(e){if(e||(e={}),e.ondone=r=>{this[yh]=!0,this[gh]()},super(e),this[Gn]=!1,this.reservations=lk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Jo]=0,this[yh]=!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||zn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Qt.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[TD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[gh](){this[yh]&&this[Jo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[ID](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=et(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),i=r.split("/");if(i.includes("..")||zn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=ck(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Qt.isAbsolute(e.path)?e.absolute=et(Qt.resolve(e.path)):e.absolute=et(Qt.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:et(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}=Qt.win32.parse(e.absolute);e.absolute=r+OD.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+OD.encode(e.path.slice(i.length))}return!0}[TD](e){if(!this[ID](e))return e.resume();switch(ok.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[Eh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[PD](e)}}[Me](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Ji](),r.resume())}[Cr](e,r,i){HD(et(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)}[qn](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}[$n](e){return MD(this.uid,e.uid,this.processUid)}[Un](e){return MD(this.gid,e.gid,this.processGid)}[_h](e,r){let i=e.mode&4095||this.fmode,n=new ak.WriteStream(e.absolute,{flags:$D(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&ue.close(n.fd,()=>{}),n.write=()=>!0,this[Me](a,e),r()});let s=1,o=a=>{if(a){n.fd&&ue.close(n.fd,()=>{}),this[Me](a,e),r();return}--s===0&&ue.close(n.fd,l=>{l?this[Me](l,e):this[Ji](),r()})};n.on("finish",a=>{let l=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ue.futimes(c,h,f,d=>d?ue.utimes(l,h,f,g=>o(g&&d)):o())}if(this[qn](e)){s++;let h=this[$n](e),f=this[Un](e);ue.fchown(c,h,f,d=>d?ue.chown(l,h,f,g=>o(g&&d)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[Me](a,e),r()}),e.pipe(u)),u.pipe(n)}[bh](e,r){let i=e.mode&4095||this.dmode;this[Cr](e.absolute,i,n=>{if(n){this[Me](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Ji](),e.resume())};e.mtime&&!this.noMtime&&(s++,ue.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[qn](e)&&(s++,ue.chown(e.absolute,this[$n](e),this[Un](e),o)),o()})}[PD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[LD](e,r){this[eu](e,e.linkpath,"symlink",r)}[BD](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[eu](e,i,"link",r)}[ND](){this[Jo]++}[Ji](){this[Jo]--,this[gh]()}[wh](e){this[Ji](),e.resume()}[Dh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[Eh](e){this[ND]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[kD](e,i))}[Qo](e){e.type==="SymbolicLink"?gk(this.dirCache):e.type!=="Directory"&&yk(this.dirCache,e.absolute)}[kD](e,r){this[Qo](e);let i=u=>{this[Qo](e),r(u)},n=()=>{this[Cr](this.cwd,this.dmode,u=>{if(u){this[Me](u,e),i();return}this[Gn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=et(Qt.dirname(e.absolute));if(u!==this.cwd)return this[Cr](u,this.dmode,a=>{if(a){this[Me](a,e),i();return}o()})}o()},o=()=>{ue.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[wh](e),i();return}if(u||this[Dh](e,a))return this[at](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,c=h=>this[at](h,e,i);return l?ue.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ue.rmdir(e.absolute,l=>this[at](l,e,i))}if(e.absolute===this.cwd)return this[at](null,e,i);dk(e.absolute,l=>this[at](l,e,i))})};this[Gn]?s():n()}[at](e,r,i){if(e){this[Me](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[_h](r,i);case"Link":return this[BD](r,i);case"SymbolicLink":return this[LD](r,i);case"Directory":case"GNUDumpDir":return this[bh](r,i)}}[eu](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Ji](),e.resume()),n()})}},Xo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Sh=class extends Wn{[at](e,r){return super[at](e,r,()=>{})}[Eh](e){if(this[Qo](e),!this[Gn]){let s=this[Cr](this.cwd,this.dmode);if(s)return this[Me](s,e);this[Gn]=!0}if(e.absolute!==this.cwd){let s=et(Qt.dirname(e.absolute));if(s!==this.cwd){let o=this[Cr](s,this.dmode);if(o)return this[Me](o,e)}}let[r,i]=Xo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[wh](e);if(r||this[Dh](e,i))return this[at](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Xo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[at](u,e)}let[s]=Xo(()=>ue.rmdirSync(e.absolute));this[at](s,e)}let[n]=e.absolute===this.cwd?[]:Xo(()=>mk(e.absolute));this[at](n,e)}[_h](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{ue.closeSync(s)}catch(l){a=l}(u||a)&&this[Me](u||a,e),r()},s;try{s=ue.openSync(e.absolute,$D(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[Me](u,e)),e.pipe(o)),o.on("data",u=>{try{ue.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,c=e.mtime;try{ue.futimesSync(s,l,c)}catch(h){try{ue.utimesSync(e.absolute,l,c)}catch{a=h}}}if(this[qn](e)){let l=this[$n](e),c=this[Un](e);try{ue.fchownSync(s,l,c)}catch(h){try{ue.chownSync(e.absolute,l,c)}catch{a=a||h}}}n(a)})}[bh](e,r){let i=e.mode&4095||this.dmode,n=this[Cr](e.absolute,i);if(n){this[Me](n,e),r();return}if(e.mtime&&!this.noMtime)try{ue.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[qn](e))try{ue.chownSync(e.absolute,this[$n](e),this[Un](e))}catch{}r(),e.resume()}[Cr](e,r){try{return HD.sync(et(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}}[eu](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Wn.Sync=Sh;UD.exports=Wn});var KD=H((tN,YD)=>{"use strict";var Ek=Fi(),tu=Ah(),zD=require("fs"),WD=Wi(),GD=require("path"),vh=Ni();YD.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=Ek(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&&Dk(i,e),i.file&&i.sync?_k(i):i.file?bk(i,r):i.sync?wk(i):Sk(i)};var Dk=(t,e)=>{let r=new Map(e.map(s=>[vh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||GD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(GD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(vh(s)):s=>n(vh(s))},_k=t=>{let e=new tu.Sync(t),r=t.file,i=zD.statSync(r),n=t.maxReadSize||16*1024*1024;new WD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},bk=(t,e)=>{let r=new tu(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),zD.stat(n,(a,l)=>{if(a)u(a);else{let c=new WD.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},wk=t=>new tu.Sync(t),Sk=t=>new tu(t)});var VD=H(ve=>{"use strict";ve.c=ve.create=OE();ve.r=ve.replace=oh();ve.t=ve.list=Uo();ve.u=ve.update=jE();ve.x=ve.extract=KD();ve.Pack=xo();ve.Unpack=Ah();ve.Parse=$o();ve.ReadEntry=co();ve.WriteEntry=Bc();ve.Header=Ii();ve.Pax=fo();ve.types=yc()});var t_=H((oN,e_)=>{function lt(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))}e_.exports=lt;lt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};lt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};lt.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};lt.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)};lt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};lt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};lt.prototype.start=lt.prototype.try;lt.prototype.errors=function(){return this._errors};lt.prototype.attempts=function(){return this._attempts};lt.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 r_=H(Qr=>{var Rk=t_();Qr.operation=function(t){var e=Qr.timeouts(t);return new Rk(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(a){var l=Qr.operation(e),c=Array.prototype.slice.call(arguments,1),h=c.pop();c.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){a.apply(t,c)})}.bind(t,o),t[s].options=e}}});var n_=H((aN,i_)=>{i_.exports=r_()});var o_=H((lN,s_)=>{var xk=n_();function Fk(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=xk.operation(s);function u(c){n(c||new Error("Aborted"))}function a(c,h){if(c.bail){u(c);return}o.retry(c)?s.onRetry&&s.onRetry(c,h):n(o.mainError())}function l(c){var h;try{h=t(u,c)}catch(f){a(f,c);return}Promise.resolve(h).then(i).catch(function(d){a(d,c)})}o.attempt(l)}return new Promise(r)}s_.exports=Fk});var Uk={};Fh(Uk,{default:()=>$k,getNewPkgName:()=>f_,transformer:()=>p_});module.exports=D_(Uk);var xh=ie(require("path"));var cr=ie(require("chalk"),1),yy=ie(require("ora"),1),gy=ie(require("gradient-string"),1);var kx=ie(ai(),1),VB=require("fs-extra");function Fp(t){return typeof t=="undefined"||t===null}function pw(t){return typeof t=="object"&&t!==null}function dw(t){return Array.isArray(t)?t:Fp(t)?[]:[t]}function mw(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 yw(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function gw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Ew=Fp,Dw=pw,_w=dw,bw=yw,ww=gw,Sw=mw,Ae={isNothing:Ew,isObject:Dw,toArray:_w,repeat:bw,isNegativeZero:ww,extend:Sw};function Op(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+=`
|
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 vf=H((aI,rn)=>{"use strict";var tn=require("path"),Sf=ca(),Ef=t=>{t={cwd:process.cwd(),path:process.env[Sf()],execPath:process.execPath,...t};let e,r=tn.resolve(t.cwd),i=[];for(;e!==r;)i.push(tn.join(r,"node_modules/.bin")),e=r,r=tn.resolve(r,"..");let n=tn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(tn.delimiter)};rn.exports=Ef;rn.exports.default=Ef;rn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Sf({env:e});return t.path=e[r],e[r]=rn.exports(t),e}});var xf=H((lI,ga)=>{"use strict";var Rf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};ga.exports=Rf;ga.exports.default=Rf});var Of=H((cI,Xn)=>{"use strict";var WS=xf(),Zn=new WeakMap,Af=(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(Zn.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 WS(s,t),Zn.set(s,i),s};Xn.exports=Af;Xn.exports.default=Af;Xn.exports.callCount=t=>{if(!Zn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zn.get(t)}});var Tf=H(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SIGNALS=void 0;var YS=[{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"}];Jn.SIGNALS=YS});var _a=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var KS=function(){let t=Cf-kf+1;return Array.from({length:t},VS)};ri.getRealtimeSignals=KS;var VS=function(t,e){return{name:`SIGRT${e+1}`,number:kf+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},kf=34,Cf=64;ri.SIGRTMAX=Cf});var Lf=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getSignals=void 0;var ZS=require("os"),XS=Tf(),JS=_a(),QS=function(){let t=(0,JS.getRealtimeSignals)();return[...XS.SIGNALS,...t].map(eE)};Qn.getSignals=QS;var eE=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=ZS.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var If=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var tE=require("os"),Pf=Lf(),rE=_a(),iE=function(){return(0,Pf.getSignals)().reduce(nE,{})},nE=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}}},sE=iE();ii.signalsByName=sE;var oE=function(){let t=(0,Pf.getSignals)(),e=rE.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>aE(n,t));return Object.assign({},...r)},aE=function(t,e){let r=lE(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}}},lE=function(t,e){let r=e.find(({name:i})=>tE.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},cE=oE();ii.signalsByNumber=cE});var Df=H((dI,Nf)=>{"use strict";var{signalsByName:uE}=If(),hE=({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",fE=({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:uE[n].description,d=i&&i.code,y=`Command ${hE({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
|
+
${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};Nf.exports=fE});var Ff=H((mI,ba)=>{"use strict";var es=["stdin","stdout","stderr"],pE=t=>es.some(e=>t[e]!==void 0),Mf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(pE(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.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,es.length);return Array.from({length:r},(i,n)=>e[n])};ba.exports=Mf;ba.exports.node=t=>{let e=Mf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Bf=H((yI,ts)=>{ts.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ts.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ts.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var $f=H((gI,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)?(jf=require("assert"),ni=Bf(),Hf=/^win/i.test(me.platform),nn=require("events"),typeof nn!="function"&&(nn=nn.EventEmitter),me.__signal_exit_emitter__?Ae=me.__signal_exit_emitter__:(Ae=me.__signal_exit_emitter__=new nn,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(){};jf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&wa();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&&rs()};return Ae.on(r,t),i},rs=function(){!si||!Tr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,is[e])}catch{}}),me.emit=ns,me.reallyExit=Sa,Ae.count-=1)},oi.exports.unload=rs,kr=function(e,r,i){Ae.emitted[e]||(Ae.emitted[e]=!0,Ae.emit(e,r,i))},is={},ni.forEach(function(t){is[t]=function(){if(Tr(global.process)){var r=me.listeners(t);r.length===Ae.count&&(rs(),kr("exit",null,t),kr("afterexit",null,t),Hf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,wa=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=Uf,me.reallyExit=qf)},oi.exports.load=wa,Sa=me.reallyExit,qf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),Sa.call(me,me.exitCode))},ns=me.emit,Uf=function(e,r){if(e==="exit"&&Tr(global.process)){r!==void 0&&(me.exitCode=r);var i=ns.apply(this,arguments);return kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),i}else return ns.apply(this,arguments)}):oi.exports=function(){return function(){}};var jf,ni,Hf,nn,Ae,rs,kr,is,si,wa,Sa,qf,ns,Uf});var zf=H((_I,Gf)=>{"use strict";var dE=require("os"),mE=$f(),yE=1e3*5,gE=(t,e="SIGTERM",r={})=>{let i=t(e);return _E(t,e,r,i),i},_E=(t,e,r,i)=>{if(!bE(e,r,i))return;let n=SE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},bE=(t,{forceKillAfterTimeout:e},r)=>wE(t)&&e!==!1&&r,wE=t=>t===dE.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",SE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return yE;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},EE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},vE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},RE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{vE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},xE=({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})`)},AE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=mE(()=>{t.kill()});return i.finally(()=>{n()})};Gf.exports={spawnedKill:gE,spawnedCancel:EE,setupTimeout:RE,validateTimeout:xE,setExitHandler:AE}});var Yf=H((bI,Wf)=>{"use strict";var mt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mt.writable=t=>mt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";mt.readable=t=>mt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";mt.duplex=t=>mt.writable(t)&&mt.readable(t);mt.transform=t=>mt.duplex(t)&&typeof t._transform=="function";Wf.exports=mt});var Vf=H((wI,Kf)=>{"use strict";var{PassThrough:OE}=require("stream");Kf.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 OE({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 Zf=H((SI,sn)=>{"use strict";var{constants:TE}=require("buffer"),kE=require("stream"),{promisify:CE}=require("util"),LE=Vf(),PE=CE(kE.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ea(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=LE(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=TE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await PE(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}sn.exports=Ea;sn.exports.buffer=(t,e)=>Ea(t,{...e,encoding:"buffer"});sn.exports.array=(t,e)=>Ea(t,{...e,array:!0});sn.exports.MaxBufferError=ss});var Jf=H((EI,Xf)=>{"use strict";var{PassThrough:IE}=require("stream");Xf.exports=function(){var t=[],e=new IE({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 rp=H((vI,tp)=>{"use strict";var ep=Yf(),Qf=Zf(),NE=Jf(),DE=(t,e)=>{e===void 0||t.stdin===void 0||(ep(e)?e.pipe(t.stdin):t.stdin.end(e))},ME=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=NE();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},va=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ra=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Qf(t,{encoding:e,maxBuffer:i}):Qf.buffer(t,{maxBuffer:i})},FE=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ra(t,{encoding:i,buffer:n,maxBuffer:s}),l=Ra(e,{encoding:i,buffer:n,maxBuffer:s}),c=Ra(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},va(t,a),va(e,l),va(r,c)])}},BE=({input:t})=>{if(ep(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};tp.exports={handleInput:DE,makeAllStream:ME,getSpawnedResult:FE,validateInputSync:BE}});var np=H((RI,ip)=>{"use strict";var jE=(async()=>{})().constructor.prototype,HE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(jE,t)]),qE=(t,e)=>{for(let[r,i]of HE){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},UE=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)})});ip.exports={mergePromise:qE,getSpawnedPromise:UE}});var ap=H((xI,op)=>{"use strict";var sp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],$E=/^[\w.-]+$/,GE=/"/g,zE=t=>typeof t!="string"||$E.test(t)?t:`"${t.replace(GE,'\\"')}"`,WE=(t,e)=>sp(t,e).join(" "),YE=(t,e)=>sp(t,e).map(r=>zE(r)).join(" "),KE=/ +/g,VE=t=>{let e=[];for(let r of t.trim().split(KE)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};op.exports={joinCommand:WE,getEscapedCommand:YE,parseCommand:VE}});var li=H((AI,ai)=>{"use strict";var ZE=require("path"),xa=require("child_process"),XE=_f(),JE=wf(),QE=vf(),e0=Of(),os=Df(),cp=Ff(),{spawnedKill:t0,spawnedCancel:r0,setupTimeout:i0,validateTimeout:n0,setExitHandler:s0}=zf(),{handleInput:o0,getSpawnedResult:a0,makeAllStream:l0,validateInputSync:c0}=rp(),{mergePromise:lp,getSpawnedPromise:u0}=np(),{joinCommand:up,parseCommand:hp,getEscapedCommand:fp}=ap(),h0=1e3*1e3*100,f0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?QE.env({env:s,cwd:i,execPath:n}):s},pp=(t,e,r={})=>{let i=XE._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:h0,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=f0(r),r.stdio=cp(r),process.platform==="win32"&&ZE.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},on=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?JE(e):e,as=(t,e,r)=>{let i=pp(t,e,r),n=up(t,e),s=fp(t,e);n0(i.options);let o;try{o=xa.spawn(i.file,i.args,i.options)}catch(d){let g=new xa.ChildProcess,y=Promise.reject(os({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return lp(g,y)}let a=u0(o),l=i0(o,i.options,a),c=s0(o,i.options,l),u={isCanceled:!1};o.kill=t0.bind(null,o.kill.bind(o)),o.cancel=r0.bind(null,o,u);let f=e0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await a0(o,i.options,c),T=on(i.options,x),O=on(i.options,k),I=on(i.options,C);if(d||g!==0||y!==null){let w=os({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 o0(o,i.options.input),o.all=l0(o,i.options),lp(o,f)};ai.exports=as;ai.exports.sync=(t,e,r)=>{let i=pp(t,e,r),n=up(t,e),s=fp(t,e);c0(i.options);let o;try{o=xa.spawnSync(i.file,i.args,i.options)}catch(c){throw os({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=on(i.options,o.stdout,o.error),l=on(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=os({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]=hp(t);return as(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=hp(t);return as.sync(r,i,e)};ai.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=cp.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return as(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var yd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function IR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=IR;function NR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=NR});var gd=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function DR(t){return t.code==="ENOENT"}ds.isEnoentCodeError=DR});var _d=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var qa=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 MR(t,e){return new qa(t,e)}ms.createDirentFromStats=MR});var bd=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var FR=require("path"),BR=2,jR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function HR(t){return t.replace(/\\/g,"/")}gt.unixify=HR;function qR(t,e){return FR.resolve(t,e)}gt.makeAbsolute=qR;function UR(t){return t.replace(jR,"\\$2")}gt.escape=UR;function $R(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(BR)}return t}gt.removeLeadingDotSegment=$R});var Sd=H((PI,wd)=>{wd.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 Rd=H((II,vd)=>{var GR=Sd(),Ed={"{":"}","(":")","[":"]"},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=Ed[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},WR=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=Ed[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};vd.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(GR(e))return!0;var i=zR;return r&&r.strict===!1&&(i=WR),i(e)}});var Ad=H((NI,xd)=>{"use strict";var YR=Rd(),KR=require("path").posix.dirname,VR=require("os").platform()==="win32",Ua="/",ZR=/\\/g,XR=/[\{\[].*[\}\]]$/,JR=/(^|[^\\])([\{\[]|\([^\)]+$)/,QR=/\\([\!\*\?\|\[\]\(\)\{\}])/g;xd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&VR&&e.indexOf(Ua)<0&&(e=e.replace(ZR,Ua)),XR.test(e)&&(e+=Ua),e+="a";do e=KR(e);while(YR(e)||JR.test(e));return e.replace(QR,"$1")}});var ys=H(tt=>{"use strict";tt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tt.find=(t,e)=>t.nodes.find(r=>r.type===e);tt.exceedsLimit=(t,e,r=1,i)=>i===!1||!tt.isInteger(t)||!tt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;tt.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)};tt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);tt.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;tt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tt.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 gs=H((MI,Td)=>{"use strict";var Od=ys();Td.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Od.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Od.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 Cd=H((FI,kd)=>{"use strict";kd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var jd=H((BI,Bd)=>{"use strict";var Ld=Cd(),Pr=(t,e,r)=>{if(Ld(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Ld(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=Fd(t)||Fd(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=Pd(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Pd(c,u,f,i)),f.negatives=g,f.positives=d,f.result=ex(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 ex(t,e,r){let i=$a(t,e,"-",!1,r)||[],n=$a(e,t,"",!1,r)||[],s=$a(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function tx(t,e){let r=1,i=1,n=Nd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Nd(t,r);for(n=Dd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Dd(e+1,i)-1;return s=[...s],s.sort(nx),s}function rx(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=ix(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+=sx(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Pd(t,e,r,i){let n=tx(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=rx(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+Md(a.count),o=c+1;continue}r.isPadded&&(h=ox(c,r,i)),u.string=h+u.pattern+Md(u.count),s.push(u),o=c+1,a=u}return s}function $a(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Id(e,"string",a)&&s.push(r+a),i&&Id(e,"string",a)&&s.push(r+a)}return s}function ix(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function nx(t,e){return t>e?1:e>t?-1:0}function Id(t,e,r){return t.some(i=>i[e]===r)}function Nd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Dd(t,e){return t-t%Math.pow(10,e)}function Md(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function sx(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Fd(t){return/^-?(0+)\d/.test(t)}function ox(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={};Bd.exports=Pr});var Wa=H((jI,Yd)=>{"use strict";var ax=require("util"),Ud=jd(),Hd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),lx=t=>e=>t===!0?Number(e):String(e),Ga=t=>typeof t=="number"||typeof t=="string"&&t!=="",fn=t=>Number.isInteger(+t),za=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},cx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,ux=(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},qd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},hx=(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},$d=(t,e,r,i)=>{if(r)return Ud(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Gd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ud(t,e,r)},zd=(...t)=>new RangeError("Invalid range arguments: "+ax.inspect(...t)),Wd=(t,e,r)=>{if(r.strictRanges===!0)throw zd([t,e]);return[]},fx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},px=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw zd([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=za(a)||za(l)||za(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&cx(t,e,i)===!1,d=i.transform||lx(f);if(i.toRegex&&r===1)return $d(qd(t,h),qd(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(ux(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?hx(g,i):Gd(_,null,{wrap:!1,...i}):_},dx=(t,e,r=1,i={})=>{if(!fn(t)&&t.length>1||!fn(e)&&e.length>1)return Wd(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 $d(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?Gd(u,null,{wrap:!1,options:i}):u},_s=(t,e,r,i={})=>{if(e==null&&Ga(t))return[t];if(!Ga(t)||!Ga(e))return Wd(t,e,i);if(typeof r=="function")return _s(t,e,1,{transform:r});if(Hd(r))return _s(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,fn(r)?fn(t)&&fn(e)?px(t,e,r,n):dx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Hd(r)?fx(r,n):_s(t,e,1,r)};Yd.exports=_s});var Zd=H((HI,Vd)=>{"use strict";var mx=Wa(),Kd=ys(),yx=(t,e={})=>{let r=(i,n={})=>{let s=Kd.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=Kd.reduce(i.nodes),h=mx(...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)};Vd.exports=yx});var Qd=H((qI,Jd)=>{"use strict";var gx=Wa(),Xd=gs(),di=ys(),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)},_x=(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(),Xd(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=gx(...h,e);f.length===0&&(f=Xd(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))};Jd.exports=_x});var tm=H((UI,em)=>{"use strict";em.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 om=H(($I,sm)=>{"use strict";var bx=gs(),{MAX_LENGTH:rm,CHAR_BACKSLASH:Ya,CHAR_BACKTICK:wx,CHAR_COMMA:Sx,CHAR_DOT:Ex,CHAR_LEFT_PARENTHESES:vx,CHAR_RIGHT_PARENTHESES:Rx,CHAR_LEFT_CURLY_BRACE:xx,CHAR_RIGHT_CURLY_BRACE:Ax,CHAR_LEFT_SQUARE_BRACKET:im,CHAR_RIGHT_SQUARE_BRACKET:nm,CHAR_DOUBLE_QUOTE:Ox,CHAR_SINGLE_QUOTE:Tx,CHAR_NO_BREAK_SPACE:kx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Cx}=tm(),Lx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(rm,r.maxLength):rm;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===Cx||f===kx)){if(f===Ya){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===nm){y({type:"text",value:"\\"+f});continue}if(f===im){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===im){l++;continue}if(x===Ya){f+=g();continue}if(x===nm&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===vx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Rx){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===Ox||f===Tx||f===wx){let _=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=g());){if(x===Ya){f+=x+g();continue}if(x===_){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===xx){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===Ax){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===Sx&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:bx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Ex&&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};sm.exports=Lx});var cm=H((GI,lm)=>{"use strict";var am=gs(),Px=Zd(),Ix=Qd(),Nx=om(),Ke=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ke.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ke.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.parse=(t,e={})=>Nx(t,e);Ke.stringify=(t,e={})=>am(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),Px(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Ix(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ke.compile(t,e):Ke.expand(t,e);lm.exports=Ke});var pn=H((zI,dm)=>{"use strict";var Dx=require("path"),_t="\\\\/",um=`[^${_t}]`,It="\\.",Mx="\\+",Fx="\\?",bs="\\/",Bx="(?=.)",hm="[^/]",Ka=`(?:${bs}|$)`,fm=`(?:^|${bs})`,Va=`${It}{1,2}${Ka}`,jx=`(?!${It})`,Hx=`(?!${fm}${Va})`,qx=`(?!${It}{0,1}${Ka})`,Ux=`(?!${Va})`,$x=`[^.${bs}]`,Gx=`${hm}*?`,pm={DOT_LITERAL:It,PLUS_LITERAL:Mx,QMARK_LITERAL:Fx,SLASH_LITERAL:bs,ONE_CHAR:Bx,QMARK:hm,END_ANCHOR:Ka,DOTS_SLASH:Va,NO_DOT:jx,NO_DOTS:Hx,NO_DOT_SLASH:qx,NO_DOTS_SLASH:Ux,QMARK_NO_DOT:$x,STAR:Gx,START_ANCHOR:fm},zx={...pm,SLASH_LITERAL:`[${_t}]`,QMARK:um,STAR:`${um}*?`,DOTS_SLASH:`${It}{1,2}(?:[${_t}]|$)`,NO_DOT:`(?!${It})`,NO_DOTS:`(?!(?:^|[${_t}])${It}{1,2}(?:[${_t}]|$))`,NO_DOT_SLASH:`(?!${It}{0,1}(?:[${_t}]|$))`,NO_DOTS_SLASH:`(?!${It}{1,2}(?:[${_t}]|$))`,QMARK_NO_DOT:`[^.${_t}]`,START_ANCHOR:`(?:^|[${_t}])`,END_ANCHOR:`(?:[${_t}]|$)`},Wx={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"};dm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wx,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:Dx.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:pm}}});var dn=H(Ue=>{"use strict";var Yx=require("path"),Kx=process.platform==="win32",{REGEX_BACKSLASH:Vx,REGEX_REMOVE_BACKSLASH:Zx,REGEX_SPECIAL_CHARS:Xx,REGEX_SPECIAL_CHARS_GLOBAL:Jx}=pn();Ue.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ue.hasRegexChars=t=>Xx.test(t);Ue.isRegexChar=t=>t.length===1&&Ue.hasRegexChars(t);Ue.escapeRegex=t=>t.replace(Jx,"\\$1");Ue.toPosixSlashes=t=>t.replace(Vx,"/");Ue.removeBackslashes=t=>t.replace(Zx,e=>e==="\\"?"":e);Ue.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ue.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Kx===!0||Yx.sep==="\\";Ue.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Ue.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Ue.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ue.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Em=H((YI,Sm)=>{"use strict";var mm=dn(),{CHAR_ASTERISK:Za,CHAR_AT:Qx,CHAR_BACKWARD_SLASH:mn,CHAR_COMMA:eA,CHAR_DOT:Xa,CHAR_EXCLAMATION_MARK:Ja,CHAR_FORWARD_SLASH:wm,CHAR_LEFT_CURLY_BRACE:Qa,CHAR_LEFT_PARENTHESES:el,CHAR_LEFT_SQUARE_BRACKET:tA,CHAR_PLUS:rA,CHAR_QUESTION_MARK:ym,CHAR_RIGHT_CURLY_BRACE:iA,CHAR_RIGHT_PARENTHESES:gm,CHAR_RIGHT_SQUARE_BRACKET:nA}=pn(),_m=t=>t===wm||t===mn,bm=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},sA=(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===mn){k=F.backslashes=!0,v=$(),v===Qa&&(x=!0);continue}if(x===!0||v===Qa){for(I++;q()!==!0&&(v=$());){if(v===mn){k=F.backslashes=!0,$();continue}if(v===Qa){I++;continue}if(x!==!0&&v===Xa&&(v=$())===Xa){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===eA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===iA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===wm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(w===Xa&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===rA||v===Qx||v===Za||v===ym||v===Ja)===!0&&P()===el){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===Ja&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===mn){k=F.backslashes=!0,v=$();continue}if(v===gm){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Za){if(w===Za&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===ym){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===tA){for(;q()!==!0&&(L=$());){if(L===mn){k=F.backslashes=!0,$();continue}if(L===nA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===Ja&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===el){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===el){k=F.backslashes=!0,v=$();continue}if(v===gm){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&&_m(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(N&&(N=mm.removeBackslashes(N)),K&&k===!0&&(K=mm.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,_m(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,bm(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,bm(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Sm.exports=sA});var xm=H((KI,Rm)=>{"use strict";var ws=pn(),Ve=dn(),{MAX_LENGTH:Ss,POSIX_REGEX_SOURCE:oA,REGEX_NON_SPECIAL_CHARS:aA,REGEX_SPECIAL_CHARS_BACKREF:lA,REPLACEMENTS:vm}=ws,cA=(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=>Ve.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,tl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=vm[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Ss,r.maxLength):Ss,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=Ve.isWindows(e),c=ws.globChars(l),u=ws.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=Ve.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=tl(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(lA,(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=Ve.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=oA[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=Ve.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||Ve.hasRegexChars(G))continue;let re=Ve.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=cA(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==="<"&&!Ve.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=aA.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=Ve.escapeLast(P.output,"["),E("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));P.output=Ve.escapeLast(P.output,"("),E("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));P.output=Ve.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};tl.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Ss,r.maxLength):Ss,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=vm[t]||t;let s=Ve.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}=ws.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=Ve.removePrefix(t,k),w=O(I);return w&&r.strictSlashes!==!0&&(w+=`${a}?`),w};Rm.exports=tl});var Om=H((VI,Am)=>{"use strict";var uA=require("path"),hA=Em(),rl=xm(),il=dn(),fA=pn(),pA=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=pA(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=il.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?il.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=il.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(uA.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)):rl(t,{...e,fastpaths:!1});be.scan=(t,e)=>hA(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=rl.fastpaths(t,e)),n.output||(n=rl(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=fA;Am.exports=be});var km=H((ZI,Tm)=>{"use strict";Tm.exports=Om()});var Nm=H((XI,Im)=>{"use strict";var Lm=require("util"),Pm=cm(),bt=km(),nl=dn(),Cm=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=bt(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)=>bt(t,e);ye.isMatch=(t,e,r)=>bt(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: "${Lm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Cm(t)||Cm(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(!nl.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=bt(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=bt(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: "${Lm.inspect(t)}"`);return[].concat(e).every(i=>bt(i,r)(t))};ye.capture=(t,e,r)=>{let i=nl.isWindows(r),s=bt.makeRe(String(t),{...r,capture:!0}).exec(i?nl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>bt.makeRe(...t);ye.scan=(...t)=>bt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Pm(String(i),e))r.push(bt.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]:Pm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Im.exports=ye});var Um=H(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var dA=require("path"),mA=Ad(),sl=Nm(),Dm="**",yA="\\",gA=/[*?]|^!/,_A=/\[[^[]*]/,bA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wA=/[!*+?@]\([^(]*\)/,SA=/,|\.\./;function Mm(t,e={}){return!Fm(t,e)}ne.isStaticPattern=Mm;function Fm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(yA)||gA.test(t)||_A.test(t)||bA.test(t)||e.extglob!==!1&&wA.test(t)||e.braceExpansion!==!1&&EA(t))}ne.isDynamicPattern=Fm;function EA(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 SA.test(i)}function vA(t){return Es(t)?t.slice(1):t}ne.convertToPositivePattern=vA;function RA(t){return"!"+t}ne.convertToNegativePattern=RA;function Es(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=Es;function Bm(t){return!Es(t)}ne.isPositivePattern=Bm;function xA(t){return t.filter(Es)}ne.getNegativePatterns=xA;function AA(t){return t.filter(Bm)}ne.getPositivePatterns=AA;function OA(t){return t.filter(e=>!ol(e))}ne.getPatternsInsideCurrentDirectory=OA;function TA(t){return t.filter(ol)}ne.getPatternsOutsideCurrentDirectory=TA;function ol(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=ol;function kA(t){return mA(t,{flipBackslashes:!1})}ne.getBaseDirectory=kA;function CA(t){return t.includes(Dm)}ne.hasGlobStar=CA;function jm(t){return t.endsWith("/"+Dm)}ne.endsWithSlashGlobStar=jm;function LA(t){let e=dA.basename(t);return jm(t)||Mm(e)}ne.isAffectDepthOfReadingPattern=LA;function PA(t){return t.reduce((e,r)=>e.concat(Hm(r)),[])}ne.expandPatternsWithBraceExpansion=PA;function Hm(t){return sl.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=Hm;function IA(t,e){let{parts:r}=sl.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}ne.getPatternParts=IA;function qm(t,e){return sl.makeRe(t,e)}ne.makeRe=qm;function NA(t,e){return t.map(r=>qm(r,e))}ne.convertPatternsToRe=NA;function DA(t,e){return e.some(r=>r.test(t))}ne.matchAny=DA});var Wm=H((QI,zm)=>{"use strict";var MA=require("stream"),$m=MA.PassThrough,FA=Array.prototype.slice;zm.exports=BA;function BA(){let t=[],e=FA.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=$m(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Gm(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 Gm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Gm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe($m(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Km=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.merge=void 0;var jA=Wm();function HA(t){let e=jA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Ym(t)),e.once("end",()=>Ym(t)),e}vs.merge=HA;function Ym(t){t.forEach(e=>e.emit("close"))}});var Vm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function qA(t){return typeof t=="string"}yi.isString=qA;function UA(t){return t===""}yi.isEmpty=UA});var Nt=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 $A=yd();Le.array=$A;var GA=gd();Le.errno=GA;var zA=_d();Le.fs=zA;var WA=bd();Le.path=WA;var YA=Um();Le.pattern=YA;var KA=Km();Le.stream=KA;var VA=Vm();Le.string=VA});var Jm=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 Dt=Nt();function ZA(t,e){let r=Zm(t),i=Xm(t,e.ignore),n=r.filter(l=>Dt.pattern.isStaticPattern(l,e)),s=r.filter(l=>Dt.pattern.isDynamicPattern(l,e)),o=al(n,i,!1),a=al(s,i,!0);return o.concat(a)}Pe.generate=ZA;function al(t,e,r){let i=[],n=Dt.pattern.getPatternsOutsideCurrentDirectory(t),s=Dt.pattern.getPatternsInsideCurrentDirectory(t),o=ll(n),a=ll(s);return i.push(...cl(o,e,r)),"."in a?i.push(ul(".",s,e,r)):i.push(...cl(a,e,r)),i}Pe.convertPatternsToTasks=al;function Zm(t){return Dt.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=Zm;function Xm(t,e){return Dt.pattern.getNegativePatterns(t).concat(e).map(Dt.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=Xm;function ll(t){let e={};return t.reduce((r,i)=>{let n=Dt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Pe.groupPatternsByBaseDirectory=ll;function cl(t,e,r){return Object.keys(t).map(i=>ul(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=cl;function ul(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Dt.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=ul});var ey=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var XA=/(?!^)\/{2,}/g;function JA(t){return t.map(e=>Qm(e))}gi.transform=JA;function Qm(t){return t.replace(XA,"/")}gi.removeDuplicateSlashes=Qm});var ry=H(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.read=void 0;function QA(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){ty(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){hl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){ty(r,s);return}hl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),hl(r,o)})})}Rs.read=QA;function ty(t,e){t(e)}function hl(t,e){t(null,e)}});var iy=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.read=void 0;function eO(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}}xs.read=eO});var ny=H(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.createFileSystemAdapter=rr.FILE_SYSTEM_ADAPTER=void 0;var As=require("fs");rr.FILE_SYSTEM_ADAPTER={lstat:As.lstat,stat:As.stat,lstatSync:As.lstatSync,statSync:As.statSync};function tO(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=tO});var sy=H(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var rO=ny(),fl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=rO.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}};pl.default=fl});var Nr=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var oy=ry(),iO=iy(),dl=sy();ir.Settings=dl.default;function nO(t,e,r){if(typeof e=="function"){oy.read(t,ml(),e);return}oy.read(t,ml(e),r)}ir.stat=nO;function sO(t,e){let r=ml(e);return iO.read(t,r)}ir.statSync=sO;function ml(t={}){return t instanceof dl.default?t:new dl.default(t)}});var cy=H((uN,ly)=>{var ay;ly.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ay||(ay=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var hy=H((hN,uy)=>{uy.exports=aO;var oO=cy();function aO(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?oO(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 yl=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Os=process.versions.node.split(".");if(Os[0]===void 0||Os[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var fy=Number.parseInt(Os[0],10),lO=Number.parseInt(Os[1],10),py=10,cO=10,uO=fy>py,hO=fy===py&&lO>=cO;Ts.IS_SUPPORT_READDIR_WITH_FILE_TYPES=uO||hO});var dy=H(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.createDirentFromStats=void 0;var gl=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 fO(t,e){return new gl(t,e)}ks.createDirentFromStats=fO});var _l=H(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.fs=void 0;var pO=dy();Cs.fs=pO});var bl=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.joinPathSegments=void 0;function dO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ls.joinPathSegments=dO});var wy=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var mO=Nr(),my=hy(),yO=yl(),yy=_l(),gy=bl();function gO(t,e,r){if(!e.stats&&yO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){_y(t,e,r);return}by(t,e,r)}nr.read=gO;function _y(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ps(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:gy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){wl(r,s);return}let o=s.map(a=>_O(a,e));my(o,(a,l)=>{if(a!==null){Ps(r,a);return}wl(r,l)})})}nr.readdirWithFileTypes=_y;function _O(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=yy.fs.createDirentFromStats(t.name,n),r(null,t)})}}function by(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ps(r,i);return}let s=n.map(o=>{let a=gy.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{mO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:yy.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});my(s,(o,a)=>{if(o!==null){Ps(r,o);return}wl(r,a)})})}nr.readdir=by;function Ps(t,e){t(e)}function wl(t,e){t(null,e)}});var xy=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var bO=Nr(),wO=yl(),Sy=_l(),Ey=bl();function SO(t,e){return!e.stats&&wO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vy(t,e):Ry(t,e)}sr.read=SO;function vy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Ey.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Sy.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=vy;function Ry(t,e){return e.fs.readdirSync(t).map(i=>{let n=Ey.joinPathSegments(t,i,e.pathSegmentSeparator),s=bO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Sy.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=Ry});var Ay=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createFileSystemAdapter=or.FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs");or.FILE_SYSTEM_ADAPTER={lstat:_i.lstat,stat:_i.stat,lstatSync:_i.lstatSync,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};function EO(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=EO});var Oy=H(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var vO=require("path"),RO=Nr(),xO=Ay(),Sl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=xO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new RO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};El.default=Sl});var Is=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Settings=ar.scandirSync=ar.scandir=void 0;var Ty=wy(),AO=xy(),vl=Oy();ar.Settings=vl.default;function OO(t,e,r){if(typeof e=="function"){Ty.read(t,Rl(),e);return}Ty.read(t,Rl(e),r)}ar.scandir=OO;function TO(t,e){let r=Rl(e);return AO.read(t,r)}ar.scandirSync=TO;function Rl(t={}){return t instanceof vl.default?t:new vl.default(t)}});var Cy=H((SN,ky)=>{"use strict";function kO(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}}ky.exports=kO});var Py=H((EN,xl)=>{"use strict";var CO=Cy();function Ly(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=CO(LO),n=null,s=null,o=0,a=null,l={push:y,drain:rt,saturated:rt,pause:u,paused:!1,concurrency:r,running:c,resume:d,idle:g,length:h,getQueue:f,unshift:_,empty:rt,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||rt,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||rt,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=rt}function C(){n=null,s=null,l.drain(),l.drain=rt}function T(O){a=O}}function rt(){}function LO(){this.value=null,this.callback=rt,this.next=null,this.release=rt,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=rt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function PO(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=Ly(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(rt),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(rt),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}xl.exports=Ly;xl.exports.promise=PO});var Ns=H(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.joinPathSegments=wt.replacePathSegmentSeparator=wt.isAppliedFilter=wt.isFatalError=void 0;function IO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}wt.isFatalError=IO;function NO(t,e){return t===null||t(e)}wt.isAppliedFilter=NO;function DO(t,e){return t.split(/[/\\]/).join(e)}wt.replacePathSegmentSeparator=DO;function MO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}wt.joinPathSegments=MO});var Tl=H(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var FO=Ns(),Al=class{constructor(e,r){this._root=e,this._settings=r,this._root=FO.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ol.default=Al});var Ll=H(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var BO=require("events"),jO=Is(),HO=Py(),Ds=Ns(),qO=Tl(),kl=class extends qO.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=jO.scandir,this._emitter=new BO.EventEmitter,this._queue=HO(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||!Ds.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=Ds.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ds.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ds.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Cl.default=kl});var Iy=H(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var UO=Ll(),Pl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new UO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{$O(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{GO(e,this._storage)}),this._reader.read()}};Il.default=Pl;function $O(t,e){t(e)}function GO(t,e){t(null,e)}});var Ny=H(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var zO=require("stream"),WO=Ll(),Nl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new WO.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}};Dl.default=Nl});var Dy=H(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var YO=Is(),Ms=Ns(),KO=Tl(),Ml=class extends KO.default{constructor(){super(...arguments),this._scandir=YO.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(Ms.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Ms.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ms.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ms.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Fl.default=Ml});var My=H(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var VO=Dy(),Bl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VO.default(this._root,this._settings)}read(){return this._reader.read()}};jl.default=Bl});var Fy=H(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var ZO=require("path"),XO=Is(),Hl=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,ZO.sep),this.fsScandirSettings=new XO.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}};ql.default=Hl});var Bs=H(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.Settings=St.walkStream=St.walkSync=St.walk=void 0;var By=Iy(),JO=Ny(),QO=My(),Ul=Fy();St.Settings=Ul.default;function eT(t,e,r){if(typeof e=="function"){new By.default(t,Fs()).read(e);return}new By.default(t,Fs(e)).read(r)}St.walk=eT;function tT(t,e){let r=Fs(e);return new QO.default(t,r).read()}St.walkSync=tT;function rT(t,e){let r=Fs(e);return new JO.default(t,r).read()}St.walkStream=rT;function Fs(t={}){return t instanceof Ul.default?t:new Ul.default(t)}});var js=H(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var iT=require("path"),nT=Nr(),jy=Nt(),$l=class{constructor(e){this._settings=e,this._fsStatSettings=new nT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return iT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:jy.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!jy.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Gl.default=$l});var Yl=H(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var sT=require("stream"),oT=Nr(),aT=Bs(),lT=js(),zl=class extends lT.default{constructor(){super(...arguments),this._walkStream=aT.walkStream,this._stat=oT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new sT.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))})}};Wl.default=zl});var Hy=H(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var cT=Bs(),uT=js(),hT=Yl(),Kl=class extends uT.default{constructor(){super(...arguments),this._walkAsync=cT.walk,this._readerStream=new hT.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))})}};Vl.default=Kl});var qy=H(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var bi=Nt(),Zl=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))}};Xl.default=Zl});var Uy=H(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var fT=qy(),Jl=class extends fT.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}};Ql.default=Jl});var $y=H(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var Hs=Nt(),pT=Uy(),ec=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 pT.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Hs.pattern.isAffectDepthOfReadingPattern);return Hs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hs.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!Hs.pattern.matchAny(e,r)}};tc.default=ec});var Gy=H(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Dr=Nt(),rc=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}};ic.default=rc});var zy=H(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var dT=Nt(),nc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return dT.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};sc.default=nc});var Yy=H(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Wy=Nt(),oc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Wy.path.makeAbsolute(this._settings.cwd,r),r=Wy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ac.default=oc});var qs=H(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var mT=require("path"),yT=$y(),gT=Gy(),_T=zy(),bT=Yy(),lc=class{constructor(e){this._settings=e,this.errorFilter=new _T.default(this._settings),this.entryFilter=new gT.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new yT.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new bT.default(this._settings)}_getRootDirectory(e){return mT.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}}};cc.default=lc});var Ky=H(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var wT=Hy(),ST=qs(),uc=class extends ST.default{constructor(){super(...arguments),this._reader=new wT.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)}};hc.default=uc});var Vy=H(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var ET=require("stream"),vT=Yl(),RT=qs(),fc=class extends RT.default{constructor(){super(...arguments),this._reader=new vT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new ET.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)}};pc.default=fc});var Zy=H(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var xT=Nr(),AT=Bs(),OT=js(),dc=class extends OT.default{constructor(){super(...arguments),this._walkSync=AT.walkSync,this._statSync=xT.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)}};mc.default=dc});var Xy=H(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var TT=Zy(),kT=qs(),yc=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);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)}};gc.default=yc});var Jy=H(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wi=require("fs"),CT=require("os"),LT=Math.max(CT.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 _c=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,LT),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=_c});var Us=H((YN,tg)=>{"use strict";var Qy=Jm(),eg=ey(),PT=Ky(),IT=Vy(),NT=Xy(),bc=Jy(),Mr=Nt();async function wc(t,e){Ei(t);let r=Sc(t,PT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=Sc(o,NT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=Sc(o,IT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=eg.transform([].concat(o)),c=new bc.default(a);return Qy.generate(l,c)}t.generateTasks=i;function n(o,a){Ei(o);let l=new bc.default(a);return Mr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Ei(o),Mr.path.escape(o)}t.escapePath=s})(wc||(wc={}));function Sc(t,e,r){let i=eg.transform([].concat(t)),n=new bc.default(r),s=Qy.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")}tg.exports=wc});var Mg=H((mM,Bt)=>{function Nc(t){return Bt.exports=Nc=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},Bt.exports.__esModule=!0,Bt.exports.default=Bt.exports,Nc(t)}Bt.exports=Nc,Bt.exports.__esModule=!0,Bt.exports.default=Bt.exports});var jg=H((yM,jt)=>{var Fg=Mg().default;function Bg(){"use strict";jt.exports=Bg=function(){return e},jt.exports.__esModule=!0,jt.exports.default=jt.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&&Fg(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(Fg(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}jt.exports=Bg,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var qg=H((gM,Hg)=>{var Vs=jg()();Hg.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var ki=H((oF,e_)=>{"use strict";var Qg=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=t=>t?Object.keys(t).map(e=>[Qg.has(e)?Qg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var to=H((aF,c_)=>{"use strict";var t_=typeof process=="object"&&process?process:{stdout:null,stderr:null},G1=require("events"),r_=require("stream"),i_=require("string_decoder").StringDecoder,qt=Symbol("EOF"),Ut=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Zs=Symbol("emittingEnd"),On=Symbol("emittedError"),Xs=Symbol("closed"),n_=Symbol("read"),Js=Symbol("flush"),s_=Symbol("flushChunk"),Ge=Symbol("encoding"),$t=Symbol("decoder"),Qs=Symbol("flowing"),Tn=Symbol("paused"),Ci=Symbol("resume"),we=Symbol("buffer"),xt=Symbol("pipes"),Oe=Symbol("bufferLength"),qc=Symbol("bufferPush"),Uc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),$c=Symbol("emitData"),o_=Symbol("emitEnd"),Gc=Symbol("emitEnd2"),Gt=Symbol("async"),kn=t=>Promise.resolve().then(t),a_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",z1=a_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),W1=a_&&Symbol.iterator||Symbol("iterator not implemented"),Y1=t=>t==="end"||t==="finish"||t==="prefinish",K1=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,V1=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),eo=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()}},zc=class extends eo{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)}};c_.exports=class l_ extends r_{constructor(e){super(),this[Qs]=!1,this[Tn]=!1,this[xt]=[],this[we]=[],this[Ne]=e&&e.objectMode||!1,this[Ne]?this[Ge]=null:this[Ge]=e&&e.encoding||null,this[Ge]==="buffer"&&(this[Ge]=null),this[Gt]=e&&!!e.async||!1,this[$t]=this[Ge]?new i_(this[Ge]):null,this[qt]=!1,this[dr]=!1,this[Zs]=!1,this[Xs]=!1,this[On]=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[xt]})}get bufferLength(){return this[Oe]}get encoding(){return this[Ge]}set encoding(e){if(this[Ne])throw new Error("cannot set encoding in objectMode");if(this[Ge]&&e!==this[Ge]&&(this[$t]&&this[$t].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Ge]!==e&&(this[$t]=e?new i_(e):null,this[we].length&&(this[we]=this[we].map(r=>this[$t].write(r)))),this[Ge]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ne]}set objectMode(e){this[Ne]=this[Ne]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}write(e,r,i){if(this[qt])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[Gt]?kn:s=>s();return!this[Ne]&&!Buffer.isBuffer(e)&&(V1(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):K1(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ne]?(this.flowing&&this[Oe]!==0&&this[Js](!0),this.flowing?this.emit("data",e):this[qc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ge]&&!this[$t].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ge]&&(e=this[$t].write(e)),this.flowing&&this[Oe]!==0&&this[Js](!0),this.flowing?this.emit("data",e):this[qc](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[Ut](),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[n_](e||null,this[we][0]);return this[Ut](),r}[n_](e,r){return e===r.length||e===null?this[Uc]():(this[we][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[we].length&&!this[qt]&&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[qt]=!0,this.writable=!1,(this.flowing||!this[Tn])&&this[Ut](),this}[Ci](){this[De]||(this[Tn]=!1,this[Qs]=!0,this.emit("resume"),this[we].length?this[Js]():this[qt]?this[Ut]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[Qs]=!1,this[Tn]=!0}get destroyed(){return this[De]}get flowing(){return this[Qs]}get paused(){return this[Tn]}[qc](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[we].push(e)}[Uc](){return this[we].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[we][0].length),this[we].shift()}[Js](e){do;while(this[s_](this[Uc]()));!e&&!this[we].length&&!this[qt]&&this.emit("drain")}[s_](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===t_.stdout||e===t_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[xt].push(r.proxyErrors?new zc(this,e,r):new eo(this,e,r)),this[Gt]?kn(()=>this[Ci]()):this[Ci]()),e}unpipe(e){let r=this[xt].find(i=>i.dest===e);r&&(this[xt].splice(this[xt].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[xt].length&&!this.flowing?this[Ci]():e==="readable"&&this[Oe]!==0?super.emit("readable"):Y1(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[On]&&(this[Gt]?kn(()=>r.call(this,this[On])):r.call(this,this[On])),i}get emittedEnd(){return this[dr]}[Ut](){!this[Zs]&&!this[dr]&&!this[De]&&this[we].length===0&&this[qt]&&(this[Zs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Zs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Gt]?kn(()=>this[$c](r)):this[$c](r):!1;if(e==="end")return this[o_]();if(e==="close"){if(this[Xs]=!0,!this[dr]&&!this[De])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[On]=r;let s=super.emit("error",r);return this[Ut](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ut](),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[Ut](),n}[$c](e){for(let i of this[xt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ut](),r}[o_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?kn(()=>this[Gc]()):this[Gc]())}[Gc](){if(this[$t]){let r=this[$t].end();if(r){for(let i of this[xt])i.dest.write(r);super.emit("data",r)}}for(let r of this[xt])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[Ge]?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[qt])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[qt]})},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)})}}}[W1](){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[Xs]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof l_||e instanceof r_||e instanceof G1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var h_=H((lF,u_)=>{var Z1=require("zlib").constants||{ZLIB_VERNUM:4736};u_.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},Z1))});var Xc=H((cF,w_)=>{"use strict";var f_=typeof process=="object"&&process?process:{stdout:null,stderr:null},X1=require("events"),p_=require("stream"),d_=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),ro=Symbol("emittingEnd"),Cn=Symbol("emittedError"),io=Symbol("closed"),m_=Symbol("read"),no=Symbol("flush"),y_=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),so=Symbol("flowing"),Ln=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Wc=Symbol("bufferPush"),Yc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Kc=Symbol("emitData"),g_=Symbol("emitEnd"),Vc=Symbol("emitEnd2"),Kt=Symbol("async"),Pn=t=>Promise.resolve().then(t),__=global._MP_NO_ITERATOR_SYMBOLS_!=="1",J1=__&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Q1=__&&Symbol.iterator||Symbol("iterator not implemented"),eC=t=>t==="end"||t==="finish"||t==="prefinish",tC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,rC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),oo=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()}},Zc=class extends oo{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)}};w_.exports=class b_ extends p_{constructor(e){super(),this[so]=!1,this[Ln]=!1,this.pipes=[],this.buffer=[],this[Me]=e&&e.objectMode||!1,this[Me]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[Kt]=e&&!!e.async||!1,this[Yt]=this[ze]?new d_(this[ze]):null,this[zt]=!1,this[mr]=!1,this[ro]=!1,this[io]=!1,this[Cn]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[Fe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[ze]}set encoding(e){if(this[Me])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Yt]&&this[Yt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Yt]=e?new d_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Me]}set objectMode(e){this[Me]=this[Me]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[zt])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[Kt]?Pn:s=>s();return!this[Me]&&!Buffer.isBuffer(e)&&(rC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):tC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Me]?(this.flowing&&this[Te]!==0&&this[no](!0),this.flowing?this.emit("data",e):this[Wc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Yt].write(e)),this.flowing&&this[Te]!==0&&this[no](!0),this.flowing?this.emit("data",e):this[Wc](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[Wt](),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[m_](e||null,this.buffer[0]);return this[Wt](),r}[m_](e,r){return e===r.length||e===null?this[Yc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[zt]&&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[zt]=!0,this.writable=!1,(this.flowing||!this[Ln])&&this[Wt](),this}[Li](){this[Fe]||(this[Ln]=!1,this[so]=!0,this.emit("resume"),this.buffer.length?this[no]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[so]=!1,this[Ln]=!0}get destroyed(){return this[Fe]}get flowing(){return this[so]}get paused(){return this[Ln]}[Wc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Yc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[no](e){do;while(this[y_](this[Yc]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[y_](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===f_.stdout||e===f_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Zc(this,e,r):new oo(this,e,r)),this[Kt]?Pn(()=>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"):eC(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Cn]&&(this[Kt]?Pn(()=>r.call(this,this[Cn])):r.call(this,this[Cn])),i}get emittedEnd(){return this[mr]}[Wt](){!this[ro]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[zt]&&(this[ro]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[io]&&this.emit("close"),this[ro]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Kt]?Pn(()=>this[Kc](r)):this[Kc](r):!1;if(e==="end")return this[g_]();if(e==="close"){if(this[io]=!0,!this[mr]&&!this[Fe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Cn]=r;let s=super.emit("error",r);return this[Wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wt](),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[Wt](),n}[Kc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[g_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Kt]?Pn(()=>this[Vc]()):this[Vc]())}[Vc](){if(this[Yt]){let r=this[Yt].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[ze]?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())})}[J1](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zt])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[zt]})},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)})}}}[Q1](){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[io]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof b_||e instanceof p_||e instanceof X1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var pu=H(Xe=>{"use strict";var ru=require("assert"),yr=require("buffer").Buffer,v_=require("zlib"),qr=Xe.constants=h_(),iC=Xc(),S_=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"}},nC=Symbol("opts"),In=Symbol("flushFlag"),E_=Symbol("finishFlushFlag"),fu=Symbol("fullFlushFlag"),pe=Symbol("handle"),ao=Symbol("onError"),Pi=Symbol("sawError"),Jc=Symbol("level"),Qc=Symbol("strategy"),eu=Symbol("ended"),uF=Symbol("_defaultFullFlush"),lo=class extends iC{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Pi]=!1,this[eu]=!1,this[nC]=e,this[In]=e.flush,this[E_]=e.finishFlush;try{this[pe]=new v_[r](e)}catch(i){throw new Ii(i)}this[ao]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ao](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 ru(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[fu]),this.write(Object.assign(yr.alloc(0),{[In]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[E_]),this[eu]=!0,super.end(null,null,i)}get ended(){return this[eu]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;ru(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[In]=="number"?e[In]:this[In];a=this[pe]._processChunk(e,c),yr.concat=S_}catch(c){yr.concat=S_,this[ao](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[ao](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)}},Vt=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[fu]=qr.Z_FULL_FLUSH,this[Jc]=e.level,this[Qc]=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[Jc]!==e||this[Qc]!==r){this.flush(qr.Z_SYNC_FLUSH),ru(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[Jc]=e,this[Qc]=r)}}}},iu=class extends Vt{constructor(e){super(e,"Deflate")}},nu=class extends Vt{constructor(e){super(e,"Inflate")}},tu=Symbol("_portable"),su=class extends Vt{constructor(e){super(e,"Gzip"),this[tu]=e&&!!e.portable}[Ur](e){return this[tu]?(this[tu]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},ou=class extends Vt{constructor(e){super(e,"Gunzip")}},au=class extends Vt{constructor(e){super(e,"DeflateRaw")}},lu=class extends Vt{constructor(e){super(e,"InflateRaw")}},cu=class extends Vt{constructor(e){super(e,"Unzip")}},co=class extends lo{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[fu]=qr.BROTLI_OPERATION_FLUSH}},uu=class extends co{constructor(e){super(e,"BrotliCompress")}},hu=class extends co{constructor(e){super(e,"BrotliDecompress")}};Xe.Deflate=iu;Xe.Inflate=nu;Xe.Gzip=su;Xe.Gunzip=ou;Xe.DeflateRaw=au;Xe.InflateRaw=lu;Xe.Unzip=cu;typeof v_.BrotliCompress=="function"?(Xe.BrotliCompress=uu,Xe.BrotliDecompress=hu):Xe.BrotliCompress=Xe.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((pF,R_)=>{var sC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;R_.exports=sC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var uo=H((mF,x_)=>{"use strict";var oC=to(),du=Ni(),mu=Symbol("slurp");x_.exports=class extends oC{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=du(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=du(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[mu](r),i&&this[mu](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))}[mu](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?du(e[i]):e[i])}}});var yu=H(ho=>{"use strict";ho.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"]]);ho.code=new Map(Array.from(ho.name).map(t=>[t[1],t[0]]))});var k_=H((gF,T_)=>{"use strict";var aC=(t,e)=>{if(Number.isSafeInteger(t))t<0?cC(t,e):lC(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},lC=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},cC=(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]=A_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=O_(n))}},uC=t=>{let e=t[0],r=e===128?fC(t.slice(1,t.length)):e===255?hC(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},hC=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=A_(s):s===0?o=s:(i=!0,o=O_(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},fC=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},A_=t=>(255^t)&255,O_=t=>(255^t)+1&255;T_.exports={encode:aC,parse:uC}});var Mi=H((_F,L_)=>{"use strict";var gu=yu(),Di=require("path").posix,C_=k_(),_u=Symbol("slurp"),Je=Symbol("type"),Su=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[Je]="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=bu(e,r+136,12),this.cksum=gr(e,r+148,12),this[_u](i),this[_u](n,!0),this[Je]=$r(e,r+156,1),this[Je]===""&&(this[Je]="0"),this[Je]==="0"&&this.path.slice(-1)==="/"&&(this[Je]="5"),this[Je]==="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=bu(e,r+476,12),this.ctime=bu(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)}[_u](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=pC(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=wu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Je].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=wu(e,r+476,12,this.atime)||this.needPax,this.needPax=wu(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 gu.name.get(this[Je])||this[Je]}get typeKey(){return this[Je]}set type(e){gu.code.has(e)?this[Je]=gu.code.get(e):this[Je]=e}},pC=(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.*/,""),bu=(t,e,r)=>dC(gr(t,e,r)),dC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?C_.parse(t.slice(e,e+r)):yC(t,e,r),mC=t=>isNaN(t)?null:t,yC=(t,e,r)=>mC(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),gC={12:8589934591,8:2097151},_r=(t,e,r,i)=>i===null?!1:i>gC[r]||i<0?(C_.encode(i,t.slice(e,e+r)),!0):(_C(t,e,r,i),!1),_C=(t,e,r,i)=>t.write(bC(i,r),e,r,"ascii"),bC=(t,e)=>wC(Math.floor(t).toString(8),e),wC=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wu=(t,e,r,i)=>i===null?!1:_r(t,e,r,i.getTime()/1e3),SC=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+SC,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);L_.exports=Su});var fo=H((bF,P_)=>{"use strict";var EC=Mi(),vC=require("path"),Nn=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 EC({path:("PaxHeader/"+vC.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}};Nn.parse=(t,e,r)=>new Nn(RC(xC(t),e),r);var RC=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,xC=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(AC,Object.create(null)),AC=(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};P_.exports=Nn});var Fi=H((wF,I_)=>{I_.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 po=H((SF,N_)=>{"use strict";N_.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 vu=H((vF,D_)=>{"use strict";var mo=["|","<",">","?",":"],Eu=mo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),OC=new Map(mo.map((t,e)=>[t,Eu[e]])),TC=new Map(Eu.map((t,e)=>[t,mo[e]]));D_.exports={encode:t=>mo.reduce((e,r)=>e.split(r).join(OC.get(r)),t),decode:t=>Eu.reduce((e,r)=>e.split(r).join(TC.get(r)),t)}});var Ru=H((RF,F_)=>{var{isAbsolute:kC,parse:M_}=require("path").win32;F_.exports=t=>{let e="",r=M_(t);for(;kC(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=M_(t)}return[e,t]}});var j_=H((xF,B_)=>{"use strict";B_.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 Nu=H((TF,Q_)=>{"use strict";var W_=to(),Y_=fo(),K_=Mi(),Ot=require("fs"),H_=require("path"),At=Ni(),CC=Fi(),V_=(t,e)=>e?(t=At(t).replace(/^\.(\/|$)/,""),CC(e)+"/"+t):At(t),LC=16*1024*1024,q_=Symbol("process"),U_=Symbol("file"),$_=Symbol("directory"),Au=Symbol("symlink"),G_=Symbol("hardlink"),Dn=Symbol("header"),yo=Symbol("read"),Ou=Symbol("lstat"),go=Symbol("onlstat"),Tu=Symbol("onread"),ku=Symbol("onreadlink"),Cu=Symbol("openfile"),Lu=Symbol("onopenfile"),br=Symbol("close"),_o=Symbol("mode"),Pu=Symbol("awaitDrain"),xu=Symbol("ondrain"),Tt=Symbol("prefix"),z_=Symbol("hadError"),Z_=po(),PC=vu(),X_=Ru(),J_=j_(),bo=Z_(class extends W_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=At(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||LC,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=At(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?At(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]=X_(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=PC.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=At(r.absolute||H_.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[go](this.statCache.get(this.absolute)):this[Ou]()}emit(e,...r){return e==="error"&&(this[z_]=!0),super.emit(e,...r)}[Ou](){Ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[go](r)})}[go](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=NC(e),this.emit("stat",e),this[q_]()}[q_](){switch(this.type){case"File":return this[U_]();case"Directory":return this[$_]();case"SymbolicLink":return this[Au]();default:return this.end()}}[_o](e){return J_(e,this.type==="Directory",this.portable)}[Tt](e){return V_(e,this.prefix)}[Dn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new K_({path:this[Tt](this.path),linkpath:this.type==="Link"?this[Tt](this.linkpath):this.linkpath,mode:this[_o](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 Y_({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[Tt](this.path),linkpath:this.type==="Link"?this[Tt](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)}[$_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Dn](),this.end()}[Au](){Ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[ku](r)})}[ku](e){this.linkpath=At(e),this[Dn](),this.end()}[G_](e){this.type="Link",this.linkpath=At(H_.relative(this.cwd,e)),this.stat.size=0,this[Dn](),this.end()}[U_](){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[G_](r)}this.linkCache.set(e,this.absolute)}if(this[Dn](),this.stat.size===0)return this.end();this[Cu]()}[Cu](){Ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Lu](r)})}[Lu](e){if(this.fd=e,this[z_])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[yo]()}[yo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Ot.read(e,r,i,n,s,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Tu](a)})}[br](e){Ot.close(this.fd,e)}[Tu](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[xu]():this[Pu](()=>this[xu]())}[Pu](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)}[xu](){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[yo]()}}),Iu=class extends bo{[Ou](){this[go](Ot.lstatSync(this.absolute))}[Au](){this[ku](Ot.readlinkSync(this.absolute))}[Cu](){this[Lu](Ot.openSync(this.absolute,"r"))}[yo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=Ot.readSync(r,i,n,s,o);this[Tu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Pu](e){e()}[br](e){Ot.closeSync(this.fd),e()}},IC=Z_(class extends W_{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=At(e.path),this.mode=this[_o](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=At(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=X_(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new K_({path:this[Tt](this.path),linkpath:this.type==="Link"?this[Tt](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 Y_({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[Tt](this.path),linkpath:this.type==="Link"?this[Tt](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)}[Tt](e){return V_(e,this.prefix)}[_o](e){return J_(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()}});bo.Sync=Iu;bo.Tar=IC;var NC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Q_.exports=bo});var tb=H((kF,eb)=>{"use strict";eb.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Du=H((CF,rb)=>{"use strict";rb.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++)MC(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)FC(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=DC(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 DC(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 MC(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function FC(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{tb()(oe)}catch{}});var To=H((PF,cb)=>{"use strict";var Ao=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}},BC=to(),jC=pu(),HC=uo(),Gu=Nu(),qC=Gu.Sync,UC=Gu.Tar,$C=Du(),ib=Buffer.alloc(1024),Eo=Symbol("onStat"),wo=Symbol("ended"),kt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),So=Symbol("processing"),nb=Symbol("processJob"),Ct=Symbol("jobs"),Mu=Symbol("jobDone"),vo=Symbol("addFSEntry"),sb=Symbol("addTarEntry"),Hu=Symbol("stat"),qu=Symbol("readdir"),Ro=Symbol("onreaddir"),xo=Symbol("pipe"),ob=Symbol("entry"),Fu=Symbol("entryOpt"),Uu=Symbol("writeEntryClass"),lb=Symbol("write"),Bu=Symbol("ondrain"),Oo=require("fs"),ab=require("path"),GC=po(),ju=Ni(),zu=GC(class extends BC{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=ju(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Uu]=Gu,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 jC.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Bu]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Bu]),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[kt]=new $C,this[Ct]=0,this.jobs=+e.jobs||4,this[So]=!1,this[wo]=!1}[lb](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[wo]=!0,this[Wr](),this}write(e){if(this[wo])throw new Error("write after end");return e instanceof HC?this[sb](e):this[vo](e),this.flowing}[sb](e){let r=ju(ab.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ao(e.path,r,!1);i.entry=new UC(e,this[Fu](i)),i.entry.on("end",n=>this[Mu](i)),this[Ct]+=1,this[kt].push(i)}this[Wr]()}[vo](e){let r=ju(ab.resolve(this.cwd,e));this[kt].push(new Ao(e,r)),this[Wr]()}[Hu](e){e.pending=!0,this[Ct]+=1;let r=this.follow?"stat":"lstat";Oo[r](e.absolute,(i,n)=>{e.pending=!1,this[Ct]-=1,i?this.emit("error",i):this[Eo](e,n)})}[Eo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[qu](e){e.pending=!0,this[Ct]+=1,Oo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ct]-=1,r)return this.emit("error",r);this[Ro](e,i)})}[Ro](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[So]){this[So]=!0;for(let e=this[kt].head;e!==null&&this[Ct]<this.jobs;e=e.next)if(this[nb](e.value),e.value.ignore){let r=e.next;this[kt].removeNode(e),e.next=r}this[So]=!1,this[wo]&&!this[kt].length&&this[Ct]===0&&(this.zip?this.zip.end(ib):(super.write(ib),super.end()))}}get[Bi](){return this[kt]&&this[kt].head&&this[kt].head.value}[Mu](e){this[kt].shift(),this[Ct]-=1,this[Wr]()}[nb](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[xo](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Eo](e,this.statCache.get(e.absolute)):this[Hu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ro](e,this.readdirCache.get(e.absolute)):this[qu](e),!e.readdir))){if(e.entry=this[ob](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[xo](e)}}}[Fu](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}}[ob](e){this[Ct]+=1;try{return new this[Uu](e.path,this[Fu](e)).on("end",()=>this[Mu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Bu](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[xo](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[vo](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()}}),$u=class extends zu{constructor(e){super(e),this[Uu]=qC}pause(){}resume(){}[Hu](e){let r=this.follow?"statSync":"lstatSync";this[Eo](e,Oo[r](e.absolute))}[qu](e,r){this[Ro](e,Oo.readdirSync(e.absolute))}[xo](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[vo](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[lb](n)})}};zu.Sync=$u;cb.exports=zu});var Wi=H(Fn=>{"use strict";var zC=Xc(),WC=require("events").EventEmitter,We=require("fs"),Ku=We.writev;if(!Ku){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Ku=(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"),ft=Symbol("_close"),Mn=Symbol("_ended"),he=Symbol("_fd"),ub=Symbol("_finished"),Sr=Symbol("_flags"),Wu=Symbol("_flush"),Vu=Symbol("_handleChunk"),Zu=Symbol("_makeBuf"),Io=Symbol("_mode"),ko=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Yu=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Zt=Symbol("_path"),Yr=Symbol("_pos"),Lt=Symbol("_queue"),qi=Symbol("_read"),hb=Symbol("_readSize"),wr=Symbol("_reading"),Co=Symbol("_remain"),fb=Symbol("_size"),Lo=Symbol("_write"),ji=Symbol("_writing"),Po=Symbol("_defaultFlag"),$i=Symbol("_errored"),No=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[Zt]=e,this[hb]=r.readSize||16*1024*1024,this[wr]=!1,this[fb]=typeof r.size=="number"?r.size:1/0,this[Co]=this[fb],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[Zt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Er](){We.open(this[Zt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[Ui](e):(this[he]=r,this.emit("open",r),this[qi]())}[Zu](){return Buffer.allocUnsafe(Math.min(this[hb],this[Co]))}[qi](){if(!this[wr]){this[wr]=!0;let e=this[Zu]();if(e.length===0)return process.nextTick(()=>this[Yu](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Yu](r,i,n))}}[Yu](e,r,i){this[wr]=!1,e?this[Ui](e):this[Vu](r,i)&&this[qi]()}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[wr]=!0,this[ft](),this.emit("error",e)}[Vu](e,r){let i=!1;return this[Co]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Co]<=0)&&(i=!1,this[ft](),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)}}},Xu=class extends No{[Er](){let e=!0;try{this[zi](null,We.openSync(this[Zt],"r")),e=!1}finally{e&&this[ft]()}}[qi](){let e=!0;try{if(!this[wr]){this[wr]=!0;do{let r=this[Zu](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Vu](i,r))break}while(!0);this[wr]=!1}e=!1}finally{e&&this[ft]()}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}},Do=class extends WC{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[ji]=!1,this[Mn]=!1,this[ko]=!1,this[Lt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Io]=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[Po]=r.flags===void 0,this[Sr]=this[Po]?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[Zt]}[Ui](e){this[ft](),this[ji]=!0,this.emit("error",e)}[Er](){We.open(this[Zt],this[Sr],this[Io],(e,r)=>this[zi](e,r))}[zi](e,r){this[Po]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Wu]())}end(e,r){return e&&this.write(e,r),this[Mn]=!0,!this[ji]&&!this[Lt].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Mn]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[Lt].length?(this[Lt].push(e),this[ko]=!0,!1):(this[ji]=!0,this[Lo](e),!0)}[Lo](e){We.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[Lt].length?this[Wu]():(this[ji]=!1,this[Mn]&&!this[ub]?(this[ub]=!0,this[ft](),this.emit("finish")):this[ko]&&(this[ko]=!1,this.emit("drain"))))}[Wu](){if(this[Lt].length===0)this[Mn]&&this[Hi](null,0);else if(this[Lt].length===1)this[Lo](this[Lt].pop());else{let e=this[Lt];this[Lt]=[],Ku(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Ju=class extends Do{[Er](){let e;if(this[Po]&&this[Sr]==="r+")try{e=We.openSync(this[Zt],this[Sr],this[Io])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Er]();throw r}else e=We.openSync(this[Zt],this[Sr],this[Io]);this[zi](null,e)}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}[Lo](e){let r=!0;try{this[Hi](null,We.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[ft]()}catch{}}}};Fn.ReadStream=No;Fn.ReadStreamSync=Xu;Fn.WriteStream=Do;Fn.WriteStreamSync=Ju});var Uo=H((DF,wb)=>{"use strict";var YC=po(),KC=Mi(),VC=require("events"),ZC=Du(),XC=1024*1024,JC=uo(),pb=fo(),QC=pu(),{nextTick:eL}=require("process"),Qu=Buffer.from([31,139]),nt=Symbol("state"),Kr=Symbol("writeEntry"),Xt=Symbol("readEntry"),eh=Symbol("nextEntry"),db=Symbol("processEntry"),st=Symbol("extendedHeader"),Bn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),mb=Symbol("emitMeta"),de=Symbol("buffer"),Jt=Symbol("queue"),Vr=Symbol("ended"),yb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ye=Symbol("unzip"),Mo=Symbol("consumeChunk"),Fo=Symbol("consumeChunkSub"),th=Symbol("consumeBody"),gb=Symbol("consumeMeta"),_b=Symbol("consumeHeader"),Bo=Symbol("consuming"),rh=Symbol("bufferConcat"),ih=Symbol("maybeEnd"),jn=Symbol("writing"),Rr=Symbol("aborted"),jo=Symbol("onDone"),Xr=Symbol("sawValidEntry"),Ho=Symbol("sawNullBlock"),qo=Symbol("sawEOF"),bb=Symbol("closeStream"),tL=t=>!0;wb.exports=YC(class extends VC{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on(jo,r=>{(this[nt]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(jo,e.ondone):this.on(jo,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||XC,this.filter=typeof e.filter=="function"?e.filter:tL,this.writable=!0,this.readable=!1,this[Jt]=new ZC,this[de]=null,this[Xt]=null,this[Kr]=null,this[nt]="begin",this[vr]="",this[st]=null,this[Bn]=null,this[Vr]=!1,this[Ye]=null,this[Rr]=!1,this[Ho]=!1,this[qo]=!1,this.on("end",()=>this[bb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[_b](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new KC(e,r,this[st],this[Bn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ho]?(this[qo]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Zr]("eof")):(this[Ho]=!0,this[Zr]("nullBlock"));else if(this[Ho]=!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 JC(i,this[st],this[Bn]);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[nt]="ignore",s.resume()):s.size>0&&(this[vr]="",s.on("data",o=>this[vr]+=o),this[nt]="meta"):(this[st]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[nt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[nt]="body":(this[nt]="header",s.end()),this[Xt]?this[Jt].push(s):(this[Jt].push(s),this[eh]())))}}}[bb](){eL(()=>this.emit("close"))}[db](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Xt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[eh]()),r=!1)):(this[Xt]=null,r=!1),r}[eh](){do;while(this[db](this[Jt].shift()));if(!this[Jt].length){let e=this[Xt];!e||e.flowing||e.size===e.remain?this[jn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[th](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[nt]="header",this[Kr]=null,i.end()),s.length}[gb](e,r){let i=this[Kr],n=this[th](e,r);return this[Kr]||this[mb](i),n}[Zr](e,r,i){!this[Jt].length&&!this[Xt]?this.emit(e,r,i):this[Jt].push([e,r,i])}[mb](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=pb.parse(this[vr],this[st],!1);break;case"GlobalExtendedHeader":this[Bn]=pb.parse(this[vr],this[Bn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[st]=this[st]||Object.create(null),this[st].path=this[vr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[st]=this[st]||Object.create(null),this[st].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[Ye]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<Qu.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<Qu.length;i++)e[i]!==Qu[i]&&(this[Ye]=!1);if(this[Ye]===null){let i=this[Vr];this[Vr]=!1,this[Ye]=new QC.Unzip,this[Ye].on("data",s=>this[Mo](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[Vr]=!0,this[Mo]()}),this[jn]=!0;let n=this[Ye][i?"end":"write"](e);return this[jn]=!1,n}}this[jn]=!0,this[Ye]?this[Ye].write(e):this[Mo](e),this[jn]=!1;let r=this[Jt].length?!1:this[Xt]?this[Xt].flowing:!0;return!r&&!this[Jt].length&&this[Xt].once("drain",i=>this.emit("drain")),r}[rh](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[ih](){if(this[Vr]&&!this[yb]&&!this[Rr]&&!this[Bo]){this[yb]=!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](jo)}}[Mo](e){if(this[Bo])this[rh](e);else if(!e&&!this[de])this[ih]();else{if(this[Bo]=!0,this[de]){this[rh](e);let r=this[de];this[de]=null,this[Fo](r)}else this[Fo](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[qo];){let r=this[de];this[de]=null,this[Fo](r)}this[Bo]=!1}(!this[de]||this[Vr])&&this[ih]()}[Fo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[qo];)switch(this[nt]){case"begin":case"header":this[_b](e,r),r+=512;break;case"ignore":case"body":r+=this[th](e,r);break;case"meta":r+=this[gb](e,r);break;default:throw new Error("invalid state: "+this[nt])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Rr]||(this[Ye]?this[Ye].end(e):(this[Vr]=!0,this.write(e)))}})});var $o=H((MF,Rb)=>{"use strict";var rL=ki(),Eb=Uo(),Yi=require("fs"),iL=Wi(),Sb=require("path"),nh=Fi();Rb.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=rL(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&&sL(i,e),i.noResume||nL(i),i.file&&i.sync?oL(i):i.file?aL(i,r):vb(i)};var nL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},sL=(t,e)=>{let r=new Map(e.map(s=>[nh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Sb.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Sb.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(nh(s)):s=>n(nh(s))},oL=t=>{let e=vb(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{}}},aL=(t,e)=>{let r=new Eb(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 iL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},vb=t=>new Eb(t)});var Cb=H((FF,kb)=>{"use strict";var lL=ki(),Go=To(),xb=Wi(),Ab=$o(),Ob=require("path");kb.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=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 i.file&&i.sync?cL(i,e):i.file?uL(i,e,r):i.sync?hL(i,e):fL(i,e)};var cL=(t,e)=>{let r=new Go.Sync(t),i=new xb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Tb(r,e)},uL=(t,e,r)=>{let i=new Go(t),n=new xb.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 sh(i,e),r?s.then(r,r):s},Tb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ab({file:Ob.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},sh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ab({file:Ob.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>sh(t,e));t.add(r)}t.end()},hL=(t,e)=>{let r=new Go.Sync(t);return Tb(r,e),r},fL=(t,e)=>{let r=new Go(t);return sh(r,e),r}});var oh=H((BF,Fb)=>{"use strict";var pL=ki(),Lb=To(),Qe=require("fs"),Pb=Wi(),Ib=$o(),Nb=require("path"),Db=Mi();Fb.exports=(t,e,r)=>{let i=pL(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?dL(i,e):yL(i,e,r)};var dL=(t,e)=>{let r=new Lb.Sync(t),i=!0,n,s;try{try{n=Qe.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=Qe.openSync(t.file,"w+");else throw l}let o=Qe.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=Qe.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 Db(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,mL(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},mL=(t,e,r,i,n)=>{let s=new Pb.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),gL(e,n)},yL=(t,e,r)=>{e=Array.from(e);let i=new Lb(t),n=(o,a,l)=>{let c=(g,y)=>{g?Qe.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 Qe.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 Db(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,Qe.read(o,f,0,512,u,d)};Qe.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+",Qe.open(t.file,l,c);if(u)return a(u);Qe.fstat(h,(f,d)=>{if(f)return Qe.close(h,()=>a(f));n(h,d.size,(g,y)=>{if(g)return a(g);let _=new Pb.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),Mb(i,e)})})};Qe.open(t.file,l,c)});return r?s.then(r,r):s},gL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ib({file:Nb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Mb=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ib({file:Nb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Mb(t,e));t.add(r)}t.end()}});var jb=H((jF,Bb)=>{"use strict";var _L=ki(),bL=oh();Bb.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),wL(i),bL(i,e,r)};var wL=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 Ub=H((HF,qb)=>{var{promisify:Hb}=require("util"),xr=require("fs"),SL=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=Hb(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=Hb(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};qb.exports=SL});var Gb=H((qF,$b)=>{var EL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:vL,parse:RL}=require("path"),xL=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=vL(t),EL==="win32"){let e=/[*|"<>?:]/,{root:r}=RL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};$b.exports=xL});var Vb=H((UF,Kb)=>{var{dirname:zb}=require("path"),Wb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Wb(t,zb(e),e):void 0),Yb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Yb(t,zb(e),e):void 0}};Kb.exports={findMade:Wb,findMadeSync:Yb}});var ch=H(($F,Xb)=>{var{dirname:Zb}=require("path"),ah=(t,e,r)=>{e.recursive=!1;let i=Zb(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 ah(i,e).then(s=>ah(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})})},lh=(t,e,r)=>{let i=Zb(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 lh(t,e,lh(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};Xb.exports={mkdirpManual:ah,mkdirpManualSync:lh}});var ew=H((GF,Qb)=>{var{dirname:Jb}=require("path"),{findMade:AL,findMadeSync:OL}=Vb(),{mkdirpManual:TL,mkdirpManualSync:kL}=ch(),CL=(t,e)=>(e.recursive=!0,Jb(t)===t?e.mkdirAsync(t,e):AL(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return TL(t,e);throw n}))),LL=(t,e)=>{if(e.recursive=!0,Jb(t)===t)return e.mkdirSync(t,e);let i=OL(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return kL(t,e);throw n}};Qb.exports={mkdirpNative:CL,mkdirpNativeSync:LL}});var nw=H((zF,iw)=>{var tw=require("fs"),PL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,uh=PL.replace(/^v/,"").split("."),rw=+uh[0]>10||+uh[0]==10&&+uh[1]>=12,IL=rw?t=>t.mkdir===tw.mkdir:()=>!1,NL=rw?t=>t.mkdirSync===tw.mkdirSync:()=>!1;iw.exports={useNative:IL,useNativeSync:NL}});var uw=H((WF,cw)=>{var Ki=Ub(),Vi=Gb(),{mkdirpNative:sw,mkdirpNativeSync:ow}=ew(),{mkdirpManual:aw,mkdirpManualSync:lw}=ch(),{useNative:DL,useNativeSync:ML}=nw(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),DL(e)?sw(t,e):aw(t,e)),FL=(t,e)=>(t=Vi(t),e=Ki(e),ML(e)?ow(t,e):lw(t,e));Zi.sync=FL;Zi.native=(t,e)=>sw(Vi(t),Ki(e));Zi.manual=(t,e)=>aw(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>ow(Vi(t),Ki(e));Zi.manualSync=(t,e)=>lw(Vi(t),Ki(e));cw.exports=Zi});var gw=H((YF,yw)=>{"use strict";var ot=require("fs"),Jr=require("path"),BL=ot.lchown?"lchown":"chown",jL=ot.lchownSync?"lchownSync":"chownSync",fw=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),hw=(t,e,r)=>{try{return ot[jL](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},HL=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},qL=fw?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,hh=fw?(t,e,r)=>{try{return hw(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;HL(t,e,r)}}:(t,e,r)=>hw(t,e,r),UL=process.version,pw=(t,e,r)=>ot.readdir(t,e,r),$L=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(UL)&&(pw=(t,e,r)=>ot.readdir(t,r));var zo=(t,e,r,i)=>{ot[BL](t,e,r,qL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},dw=(t,e,r,i,n)=>{if(typeof e=="string")return ot.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,dw(t,o,r,i,n)});if(e.isDirectory())fh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);zo(o,r,i,n)});else{let s=Jr.resolve(t,e.name);zo(s,r,i,n)}},fh=(t,e,r,i)=>{pw(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 zo(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return zo(t,e,r,i)}};s.forEach(c=>dw(t,c,e,r,l))})},GL=(t,e,r,i)=>{if(typeof e=="string")try{let n=ot.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&mw(Jr.resolve(t,e.name),r,i),hh(Jr.resolve(t,e.name),r,i)},mw=(t,e,r)=>{let i;try{i=$L(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return hh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>GL(t,n,e,r)),hh(t,e,r)};yw.exports=fh;fh.sync=mw});var Sw=H((KF,ph)=>{"use strict";var _w=uw(),at=require("fs"),Wo=require("path"),bw=gw(),pt=Ni(),Yo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Ko=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Vo=(t,e)=>t.get(pt(e)),Hn=(t,e,r)=>t.set(pt(e),r),zL=(t,e)=>{at.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Ko(t,r&&r.code||"ENOTDIR")),e(r)})};ph.exports=(t,e,r)=>{t=pt(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=pt(e.cwd),d=(_,x)=>{_?r(_):(Hn(h,t,!0),x&&l?bw(x,o,a,k=>d(k)):s?at.chmod(t,n,r):r())};if(h&&Vo(h,t)===!0)return d();if(t===f)return zL(t,d);if(c)return _w(t,{mode:n}).then(_=>d(null,_),d);let y=pt(Wo.relative(f,t)).split("/");Zo(f,y,n,h,u,f,null,d)};var Zo=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=pt(Wo.resolve(t+"/"+l));if(Vo(i,c))return Zo(c,e,r,i,n,s,o,a);at.mkdir(c,r,ww(c,e,r,i,n,s,o,a))},ww=(t,e,r,i,n,s,o,a)=>l=>{l?at.lstat(t,(c,u)=>{if(c)c.path=c.path&&pt(c.path),a(c);else if(u.isDirectory())Zo(t,e,r,i,n,s,o,a);else if(n)at.unlink(t,h=>{if(h)return a(h);at.mkdir(t,r,ww(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Yo(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Zo(t,e,r,i,n,s,o,a))},WL=t=>{let e=!1,r="ENOTDIR";try{e=at.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Ko(t,r)}};ph.exports.sync=(t,e)=>{t=pt(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=pt(e.cwd),f=_=>{Hn(u,t,!0),_&&a&&bw.sync(_,s,o),n&&at.chmodSync(t,i)};if(u&&Vo(u,t)===!0)return f();if(t===h)return WL(h),f();if(l)return f(_w.sync(t,i));let g=pt(Wo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=pt(Wo.resolve(x)),!Vo(u,x))try{at.mkdirSync(x,i),y=y||x,Hn(u,x,!0)}catch{let C=at.lstatSync(x);if(C.isDirectory()){Hn(u,x,!0);continue}else if(c){at.unlinkSync(x),at.mkdirSync(x,i),y=y||x,Hn(u,x,!0);continue}else if(C.isSymbolicLink())return new Yo(x,x+"/"+g.join("/"))}return f(y)}});var mh=H((VF,Ew)=>{var dh=Object.create(null),{hasOwnProperty:YL}=Object.prototype;Ew.exports=t=>(YL.call(dh,t)||(dh[t]=t.normalize("NFKD")),dh[t])});var Aw=H((ZF,xw)=>{var vw=require("assert"),KL=mh(),VL=Fi(),{join:Rw}=require("path"),ZL=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,XL=ZL==="win32";xw.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=Rw(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);vw.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);vw(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=XL?["win32 parallelization disabled"]:c.map(f=>KL(VL(Rw(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 kw=H((XF,Tw)=>{var JL=process.env.__FAKE_PLATFORM__||process.platform,QL=JL==="win32",eP=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:tP,O_TRUNC:rP,O_WRONLY:iP,UV_FS_O_FILEMAP:Ow=0}=eP.constants,nP=QL&&!!Ow,sP=512*1024,oP=Ow|rP|tP|iP;Tw.exports=nP?t=>t<sP?oP:"w":()=>"w"});var Rh=H((JF,$w)=>{"use strict";var aP=require("assert"),lP=Uo(),ae=require("fs"),cP=Wi(),Qt=require("path"),Hw=Sw(),Cw=vu(),uP=Aw(),hP=Ru(),et=Ni(),fP=Fi(),pP=mh(),Lw=Symbol("onEntry"),_h=Symbol("checkFs"),Pw=Symbol("checkFs2"),Qo=Symbol("pruneCache"),bh=Symbol("isReusable"),lt=Symbol("makeFs"),wh=Symbol("file"),Sh=Symbol("directory"),ea=Symbol("link"),Iw=Symbol("symlink"),Nw=Symbol("hardlink"),Dw=Symbol("unsupported"),Mw=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),Xo=Symbol("pending"),Fw=Symbol("pend"),Xi=Symbol("unpend"),yh=Symbol("ended"),gh=Symbol("maybeClose"),Eh=Symbol("skip"),qn=Symbol("doChown"),Un=Symbol("uid"),$n=Symbol("gid"),Gn=Symbol("checkedCwd"),qw=require("crypto"),Uw=kw(),dP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zn=dP==="win32",mP=(t,e)=>{if(!zn)return ae.unlink(t,e);let r=t+".DELETE."+qw.randomBytes(16).toString("hex");ae.rename(t,r,i=>{if(i)return e(i);ae.unlink(r,e)})},yP=t=>{if(!zn)return ae.unlinkSync(t);let e=t+".DELETE."+qw.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},Bw=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,jw=t=>pP(fP(et(t))).toLowerCase(),gP=(t,e)=>{e=jw(e);for(let r of t.keys()){let i=jw(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},_P=t=>{for(let e of t.keys())t.delete(e)},Wn=class extends lP{constructor(e){if(e||(e={}),e.ondone=r=>{this[yh]=!0,this[gh]()},super(e),this[Gn]=!1,this.reservations=uP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[yh]=!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||zn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Qt.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[Lw](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[gh](){this[yh]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Mw](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=et(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),i=r.split("/");if(i.includes("..")||zn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=hP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Qt.isAbsolute(e.path)?e.absolute=et(Qt.resolve(e.path)):e.absolute=et(Qt.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:et(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}=Qt.win32.parse(e.absolute);e.absolute=r+Cw.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+Cw.encode(e.path.slice(i.length))}return!0}[Lw](e){if(!this[Mw](e))return e.resume();switch(aP.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[_h](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[Dw](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){Hw(et(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)}[qn](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}[Un](e){return Bw(this.uid,e.uid,this.processUid)}[$n](e){return Bw(this.gid,e.gid,this.processGid)}[wh](e,r){let i=e.mode&4095||this.fmode,n=new cP.WriteStream(e.absolute,{flags:Uw(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[qn](e)){s++;let h=this[Un](e),f=this[$n](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)}[Sh](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[qn](e)&&(s++,ae.chown(e.absolute,this[Un](e),this[$n](e),o)),o()})}[Dw](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Iw](e,r){this[ea](e,e.linkpath,"symlink",r)}[Nw](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[ea](e,i,"link",r)}[Fw](){this[Xo]++}[Xi](){this[Xo]--,this[gh]()}[Eh](e){this[Xi](),e.resume()}[bh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[_h](e){this[Fw]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[Pw](e,i))}[Qo](e){e.type==="SymbolicLink"?_P(this.dirCache):e.type!=="Directory"&&gP(this.dirCache,e.absolute)}[Pw](e,r){this[Qo](e);let i=a=>{this[Qo](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Be](a,e),i();return}this[Gn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=et(Qt.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[Eh](e),i();return}if(a||this[bh](e,l))return this[lt](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[lt](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[lt](c,e,i))}if(e.absolute===this.cwd)return this[lt](null,e,i);mP(e.absolute,c=>this[lt](c,e,i))})};this[Gn]?s():n()}[lt](e,r,i){if(e){this[Be](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wh](r,i);case"Link":return this[Nw](r,i);case"SymbolicLink":return this[Iw](r,i);case"Directory":case"GNUDumpDir":return this[Sh](r,i)}}[ea](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},Jo=t=>{try{return[null,t()]}catch(e){return[e,null]}},vh=class extends Wn{[lt](e,r){return super[lt](e,r,()=>{})}[_h](e){if(this[Qo](e),!this[Gn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Be](s,e);this[Gn]=!0}if(e.absolute!==this.cwd){let s=et(Qt.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Be](o,e)}}let[r,i]=Jo(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Eh](e);if(r||this[bh](e,i))return this[lt](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Jo(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[lt](a,e)}let[s]=Jo(()=>ae.rmdirSync(e.absolute));this[lt](s,e)}let[n]=e.absolute===this.cwd?[]:Jo(()=>yP(e.absolute));this[lt](n,e)}[wh](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,Uw(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[qn](e)){let c=this[Un](e),u=this[$n](e);try{ae.fchownSync(s,c,u)}catch(h){try{ae.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[Sh](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[qn](e))try{ae.chownSync(e.absolute,this[Un](e),this[$n](e))}catch{}r(),e.resume()}[Ar](e,r){try{return Hw.sync(et(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}}[ea](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Wn.Sync=vh;$w.exports=Wn});var Kw=H((QF,Yw)=>{"use strict";var bP=ki(),ta=Rh(),zw=require("fs"),Ww=Wi(),Gw=require("path"),xh=Fi();Yw.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=bP(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&&wP(i,e),i.file&&i.sync?SP(i):i.file?EP(i,r):i.sync?vP(i):RP(i)};var wP=(t,e)=>{let r=new Map(e.map(s=>[xh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Gw.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Gw.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(xh(s)):s=>n(xh(s))},SP=t=>{let e=new ta.Sync(t),r=t.file,i=zw.statSync(r),n=t.maxReadSize||16*1024*1024;new Ww.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},EP=(t,e)=>{let r=new ta(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),zw.stat(n,(l,c)=>{if(l)a(l);else{let u=new Ww.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},vP=t=>new ta.Sync(t),RP=t=>new ta(t)});var Vw=H(xe=>{"use strict";xe.c=xe.create=Cb();xe.r=xe.replace=oh();xe.t=xe.list=$o();xe.u=xe.update=jb();xe.x=xe.extract=Kw();xe.Pack=To();xe.Unpack=Rh();xe.Parse=Uo();xe.ReadEntry=uo();xe.WriteEntry=Nu();xe.Header=Mi();xe.Pax=fo();xe.types=yu()});var tS=H((nB,eS)=>{function ct(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))}eS.exports=ct;ct.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ct.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ct.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};ct.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)};ct.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ct.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ct.prototype.start=ct.prototype.try;ct.prototype.errors=function(){return this._errors};ct.prototype.attempts=function(){return this._attempts};ct.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 rS=H(Qr=>{var TP=tS();Qr.operation=function(t){var e=Qr.timeouts(t);return new TP(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 nS=H((oB,iS)=>{iS.exports=rS()});var oS=H((aB,sS)=>{var kP=nS();function CP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=kP.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)}sS.exports=CP});var GP={};kh(GP,{default:()=>$P,getNewPkgName:()=>fS,transformer:()=>pS});module.exports=bS(GP);var Th=ie(require("path"));var ur=ie(require("chalk"),1),yg=ie(require("ora"),1),gg=ie(require("gradient-string"),1);var Pk=ie(li(),1),ZN=require("fs-extra");function kp(t){return typeof t=="undefined"||t===null}function p0(t){return typeof t=="object"&&t!==null}function d0(t){return Array.isArray(t)?t:kp(t)?[]:[t]}function m0(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 y0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function g0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var _0=kp,b0=p0,w0=d0,S0=y0,E0=g0,v0=m0,Re={isNothing:_0,isObject:b0,toArray:w0,repeat:S0,isNegativeZero:E0,extend:v0};function Cp(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
|
11
|
-
`+
|
12
|
-
`,
|
13
|
-
`,
|
14
|
-
`;return
|
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
|
18
|
-
`,s?1+
|
19
|
-
`);break}for(i?
|
20
|
-
`,s?1+
|
21
|
-
`,
|
22
|
-
`,
|
23
|
-
`,s?1+
|
24
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
25
|
-
`,i),n===-1?(o=t.slice(i),i=
|
26
|
-
`&&(s+=r),s+=o;return s}function
|
27
|
-
`+
|
10
|
+
`+t.mark.snippet),i+" "+r):i}function ln(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Cp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ln.prototype=Object.create(Error.prototype);ln.prototype.constructor=ln;ln.prototype.toString=function(e){return this.name+": "+Cp(this,e)};var je=ln;function Aa(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 Oa(t,e){return Re.repeat(" ",e-t.length)+t}function R0(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=Aa(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=Re.repeat(" ",e.indent)+Oa((t.line-l+1).toString(),u)+" | "+c.str+`
|
11
|
+
`+a;for(c=Aa(t.buffer,i[o],n[o],t.position,h),a+=Re.repeat(" ",e.indent)+Oa((t.line+1).toString(),u)+" | "+c.str+`
|
12
|
+
`,a+=Re.repeat("-",e.indent+u+3+c.pos)+`^
|
13
|
+
`,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Aa(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=Re.repeat(" ",e.indent)+Oa((t.line+l+1).toString(),u)+" | "+c.str+`
|
14
|
+
`;return a.replace(/\n$/,"")}var x0=R0,A0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],O0=["scalar","sequence","mapping"];function T0(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function k0(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(A0.indexOf(r)===-1)throw new je('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=T0(e.styleAliases||null),O0.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ke=k0;function dp(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 C0(){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 ka(t){return this.extend(t)}ka.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 je("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ke))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new je("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 je("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 je("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ka.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=dp(n,"implicit"),n.compiledExplicit=dp(n,"explicit"),n.compiledTypeMap=C0(n.compiledImplicit,n.compiledExplicit),n};var Lp=ka,Pp=new ke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Ip=new ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Np=new ke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Dp=new Lp({explicit:[Pp,Ip,Np]});function L0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function P0(){return null}function I0(t){return t===null}var Mp=new ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:L0,construct:P0,predicate:I0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function N0(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 D0(t){return t==="true"||t==="True"||t==="TRUE"}function M0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Fp=new ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:N0,construct:D0,predicate:M0,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 F0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function B0(t){return 48<=t&&t<=55}function j0(t){return 48<=t&&t<=57}function H0(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(!F0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!B0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!j0(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function q0(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 U0(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var Bp=new ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:H0,construct:q0,predicate:U0,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"]}}),$0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G0(t){return!(t===null||!$0.test(t)||t[t.length-1]==="_")}function z0(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 W0=/^[-+]?[0-9]+e/;function Y0(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),W0.test(r)?r.replace("e",".e"):r}function K0(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var jp=new ke("tag:yaml.org,2002:float",{kind:"scalar",resolve:G0,construct:z0,predicate:K0,represent:Y0,defaultStyle:"lowercase"}),Hp=Dp.extend({implicit:[Mp,Fp,Bp,jp]}),qp=Hp,Up=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$p=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 V0(t){return t===null?!1:Up.exec(t)!==null||$p.exec(t)!==null}function Z0(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=Up.exec(t),e===null&&(e=$p.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 X0(t){return t.toISOString()}var Gp=new ke("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:V0,construct:Z0,instanceOf:Date,represent:X0});function J0(t){return t==="<<"||t===null}var zp=new ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:J0}),Na=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
15
|
+
\r`;function Q0(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Na;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 ev(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Na,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 tv(t){var e="",r=0,i,n,s=t.length,o=Na;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 rv(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Wp=new ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Q0,construct:ev,predicate:rv,represent:tv}),iv=Object.prototype.hasOwnProperty,nv=Object.prototype.toString;function sv(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,nv.call(n)!=="[object Object]")return!1;for(s in n)if(iv.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 ov(t){return t!==null?t:[]}var Yp=new ke("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sv,construct:ov}),av=Object.prototype.toString;function lv(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],av.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function cv(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 Kp=new ke("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lv,construct:cv}),uv=Object.prototype.hasOwnProperty;function hv(t){if(t===null)return!0;var e,r=t;for(e in r)if(uv.call(r,e)&&r[e]!==null)return!1;return!0}function fv(t){return t!==null?t:{}}var Vp=new ke("tag:yaml.org,2002:set",{kind:"mapping",resolve:hv,construct:fv}),Da=qp.extend({implicit:[Gp,zp],explicit:[Wp,Yp,Kp,Vp]}),tr=Object.prototype.hasOwnProperty,ls=1,Zp=2,Xp=3,cs=4,Ta=1,pv=2,mp=3,dv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mv=/[\x85\u2028\u2029]/,yv=/[,\[\]\{\}]/,Jp=/^(?:!|!!|![a-z\-]+!)$/i,Qp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yp(t){return Object.prototype.toString.call(t)}function yt(t){return t===10||t===13}function Lr(t){return t===9||t===32}function qe(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 gv(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function _v(t){return t===120?2:t===117?4:t===85?8:0}function bv(t){return 48<=t&&t<=57?t-48:-1}function gp(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 wv(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var ed=new Array(256),td=new Array(256);for(Cr=0;Cr<256;Cr++)ed[Cr]=gp(Cr)?1:0,td[Cr]=gp(Cr);var Cr;function Sv(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Da,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 rd(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=x0(r),new je(e,r)}function Q(t,e){throw rd(t,e)}function us(t,e){t.onWarning&&t.onWarning.call(null,rd(t,e))}var _p={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&&us(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],Jp.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),Qp.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 er(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 dv.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function bp(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],tr.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"&&yp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&yp(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)bp(t,e,s[c],r);else bp(t,e,s,r);else!t.json&&!tr.call(r,n)&&tr.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 Ma(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(yt(n))for(Ma(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&&us(t,"deficient indentation"),i}function ps(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||qe(r)))}function Fa(t,e){e===1?t.result+=" ":e>1&&(t.result+=Re.repeat(`
|
17
|
+
`,e-1))}function Ev(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),qe(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),qe(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),qe(n)||r&&ui(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),qe(i))break}else{if(t.position===t.lineStart&&ps(t)||r&&ui(d))break;if(yt(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&&(er(t,s,o,!1),Fa(t,t.line-l),s=o=t.position,a=!1),Lr(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return er(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function vv(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(er(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 yt(r)?(er(t,i,n,!0),Fa(t,Ee(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ps(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 Rv(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 er(t,r,t.position,!0),t.position++,!0;if(a===92){if(er(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),yt(a))Ee(t,!1,e);else if(a<256&&ed[a])t.result+=td[a],t.position++;else if((o=_v(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=gv(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=wv(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else yt(a)?(er(t,r,i,!0),Fa(t,Ee(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ps(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 xv(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),qe(c)&&(h=f=!0,t.position++,Ee(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,fi(t,e,ls,!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,ls,!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 Av(t,e){var r,i,n=Ta,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)Ta===n?n=h===43?mp:pv:Q(t,"repeat of a chomping mode identifier");else if((u=bv(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(!yt(h)&&h!==0)}for(;h!==0;){for(Ma(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),yt(h)){l++;continue}if(t.lineIndent<a){n===mp?t.result+=Re.repeat(`
|
18
|
+
`,s?1+l:l):n===Ta&&s&&(t.result+=`
|
19
|
+
`);break}for(i?Lr(h)?(c=!0,t.result+=Re.repeat(`
|
20
|
+
`,s?1+l:l)):c?(c=!1,t.result+=Re.repeat(`
|
21
|
+
`,l+1)):l===0?s&&(t.result+=" "):t.result+=Re.repeat(`
|
22
|
+
`,l):t.result+=Re.repeat(`
|
23
|
+
`,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!yt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);er(t,r,t.position,!1)}return!0}function wp(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),!qe(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,Xp,!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 Ov(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)&&qe(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,Zp,!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),qe(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,cs,!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 Tv(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&&!qe(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Jp.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),yv.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!Qp.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:tr.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 kv(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&&!qe(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 Cv(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&&!qe(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),tr.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=cs===r||Xp===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(;Tv(t)||kv(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||cs===r)&&(ls===r||Zp===r?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(wp(t,_)||Ov(t,_,y))||xv(t,y)?u=!0:(o&&Av(t,y)||vv(t,y)||Rv(t,y)?u=!0:Cv(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Ev(t,y,ls===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&wp(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(tr.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 Lv(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&&!qe(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&&!yt(o));break}if(yt(o))break;for(r=t.position;o!==0&&!qe(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Ma(t),tr.call(_p,i)?_p[i](t,i,n):us(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,cs,!1,!0),Ee(t,!0,-1),t.checkLineBreaks&&mv.test(t.input.slice(e,t.position))&&us(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ps(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 id(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 Sv(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;)Lv(r);return r.documents}function Pv(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=id(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Iv(t,e){var r=id(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new je("expected a single document in the stream, but found more")}}var Nv=Pv,Dv=Iv,nd={loadAll:Nv,load:Dv},sd=Object.prototype.toString,od=Object.prototype.hasOwnProperty,Ba=65279,Mv=9,cn=10,Fv=13,Bv=32,jv=33,Hv=34,Ca=35,qv=37,Uv=38,$v=39,Gv=42,ad=44,zv=45,hs=58,Wv=61,Yv=62,Kv=63,Vv=64,ld=91,cd=93,Zv=96,ud=123,Xv=124,hd=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 Jv=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Qv=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function eR(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&&od.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function tR(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 je("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Re.repeat("0",i-e.length)+e}var rR=1,un=2;function iR(t){this.schema=t.schema||Da,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=eR(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==='"'?un:rR,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 Sp(t,e){for(var r=Re.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
25
|
+
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
26
|
+
`&&(s+=r),s+=o;return s}function La(t,e){return`
|
27
|
+
`+Re.repeat(" ",t.indent*e)}function nR(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 fs(t){return t===Bv||t===Mv}function hn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ba||65536<=t&&t<=1114111}function Ep(t){return hn(t)&&t!==Ba&&t!==Fv&&t!==cn}function vp(t,e,r){var i=Ep(t),n=i&&!fs(t);return(r?i:i&&t!==ad&&t!==ld&&t!==cd&&t!==ud&&t!==hd)&&t!==Ca&&!(e===hs&&!n)||Ep(e)&&!fs(e)&&t===Ca||e===hs&&n}function sR(t){return hn(t)&&t!==Ba&&!fs(t)&&t!==zv&&t!==Kv&&t!==hs&&t!==ad&&t!==ld&&t!==cd&&t!==ud&&t!==hd&&t!==Ca&&t!==Uv&&t!==Gv&&t!==jv&&t!==Xv&&t!==Wv&&t!==Yv&&t!==$v&&t!==Hv&&t!==qv&&t!==Vv&&t!==Zv}function oR(t){return!fs(t)&&t!==hs}function an(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 fd(t){var e=/^\n* /;return e.test(t)}var pd=1,Pa=2,dd=3,md=4,ci=5;function aR(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,d=i!==-1,g=-1,y=sR(an(t,0))&&oR(an(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=an(t,l),!hn(c))return ci;y=y&&vp(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=an(t,l),c===cn)h=!0,d&&(f=f||l-g-1>i&&t[g+1]!==" ",g=l);else if(!hn(c))return ci;y=y&&vp(c,u,a),u=c}f=f||d&&l-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?pd:s===un?ci:Pa:r>9&&fd(t)?ci:o?s===un?ci:Pa:f?md:dd}function lR(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===un?'""':"''";if(!t.noCompatMode&&(Jv.indexOf(e)!==-1||Qv.test(e)))return t.quotingType===un?'"'+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 nR(t,c)}switch(aR(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case pd:return e;case Pa:return"'"+e.replace(/'/g,"''")+"'";case dd:return"|"+Rp(e,t.indent)+xp(Sp(e,s));case md:return">"+Rp(e,t.indent)+xp(Sp(cR(e,o),s));case ci:return'"'+uR(e)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function Rp(t,e){var r=fd(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
|
-
`}function
|
32
|
-
`?t.slice(0,-1):t}function
|
33
|
-
`);return
|
34
|
-
`||t[0]===" ",s,o;o=r.exec(t);){var
|
35
|
-
`:"")+
|
36
|
-
`+t.slice(n,s),n=s+1),o=
|
37
|
-
`,t.length-n>e&&o>n?
|
38
|
-
`+t.slice(o+1):
|
39
|
-
`:""}var yA=mA,gA={dump:yA};function ju(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 EA=Fe,DA=Tp,_A=Pp,bA=Hp,wA=qp,SA=Pu,AA=nd.load,vA=nd.loadAll,CA=gA.dump,RA=je,xA={binary:Wp,float:jp,map:Bp,null:Ip,pairs:Kp,set:Vp,timestamp:Gp,bool:Np,int:Mp,merge:zp,omap:Yp,seq:Lp,str:kp},FA=ju("safeLoad","load"),OA=ju("safeLoadAll","loadAll"),TA=ju("safeDump","dump"),kA={Type:EA,Schema:DA,FAILSAFE_SCHEMA:_A,JSON_SCHEMA:bA,CORE_SCHEMA:wA,DEFAULT_SCHEMA:SA,load:AA,loadAll:vA,dump:CA,YAMLException:RA,types:xA,safeLoad:FA,safeLoadAll:OA,safeDump:TA},Hu=kA;var eP=ie($s(),1),rP=require("fs-extra"),nP=require("fs-extra"),oP=require("chalk"),wy=require("stream"),Sy=require("util"),cP=require("fs-extra"),dP=require("chalk"),yP=require("fs-extra"),Nr=ie(require("path"),1),He=require("fs-extra"),Ay=ie(ai(),1),vy=ie(require("path"),1),Cy=require("fs-extra"),Ry=ie(require("chalk"),1),Nt=ie(require("path"),1),xy=ie(ai(),1),Ze=require("fs-extra"),Fy=ie($s(),1);var gn=ie(require("path"),1),wt=require("fs-extra"),vi=ie(require("path"),1),St=require("fs-extra"),En=ie(require("path"),1),At=require("fs-extra"),pF=ie(require("chalk"),1),dF=ie(require("gradient-string"),1),mF=ie(ai(),1),yF=ie(require("ora"),1),gF=require("semver"),EF=ie(require("chalk"),1),PR=Object.create,Al=Object.defineProperty,IR=Object.getOwnPropertyDescriptor,NR=Object.getOwnPropertyNames,MR=Object.getPrototypeOf,jR=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')}),HR=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qR=(t,e)=>{for(var r in e)Al(t,r,{get:e[r],enumerable:!0})},$R=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of NR(e))!jR.call(t,n)&&n!==r&&Al(t,n,{get:()=>e[n],enumerable:!(i=IR(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?PR(MR(t)):{},$R(e||!t||!t.__esModule?Al(r,"default",{value:t,enumerable:!0}):r,t)),W=HR(()=>{}),UR=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}),GR=ee((t,e)=>{W();var r=UR().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,u=o.hasOwnProperty,a=Object.defineProperty||function(P,p,m){P[p]=m.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function d(P,p,m){return Object.defineProperty(P,p,{value:m,enumerable:!0,configurable:!0,writable:!0}),P[p]}try{d({},"")}catch{d=function(P,p,m){return P[p]=m}}function g(P,p,m,D){var A=p&&p.prototype instanceof R?p:R,w=Object.create(A.prototype),I=new j(D||[]);return a(w,"_invoke",{value:V(P,m,I)}),w}function y(P,p,m){try{return{type:"normal",arg:P.call(p,m)}}catch(D){return{type:"throw",arg:D}}}s.wrap=g;var E="suspendedStart",v="suspendedYield",F="executing",O="completed",x={};function R(){}function L(){}function _(){}var S={};d(S,c,function(){return this});var N=Object.getPrototypeOf,q=N&&N(N(z([])));q&&q!==o&&u.call(q,c)&&(S=q);var k=_.prototype=R.prototype=Object.create(S);function U(P){["next","throw","return"].forEach(function(p){d(P,p,function(m){return this._invoke(p,m)})})}function K(P,p){function m(A,w,I,M){var Z=y(P[A],P,w);if(Z.type!=="throw"){var $=Z.arg,X=$.value;return X&&r(X)=="object"&&u.call(X,"__await")?p.resolve(X.__await).then(function(G){m("next",G,I,M)},function(G){m("throw",G,I,M)}):p.resolve(X).then(function(G){$.value=G,I($)},function(G){return m("throw",G,I,M)})}M(Z.arg)}var D;a(this,"_invoke",{value:function(A,w){function I(){return new p(function(M,Z){m(A,w,M,Z)})}return D=D?D.then(I,I):I()}})}function V(P,p,m){var D=E;return function(A,w){if(D===F)throw new Error("Generator is already running");if(D===O){if(A==="throw")throw w;return{value:n,done:!0}}for(m.method=A,m.arg=w;;){var I=m.delegate;if(I){var M=B(I,m);if(M){if(M===x)continue;return M}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(D===E)throw D=O,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);D=F;var Z=y(P,p,m);if(Z.type==="normal"){if(D=m.done?O:v,Z.arg===x)continue;return{value:Z.arg,done:m.done}}Z.type==="throw"&&(D=O,m.method="throw",m.arg=Z.arg)}}}function B(P,p){var m=p.method,D=P.iterator[m];if(D===n)return p.delegate=null,m==="throw"&&P.iterator.return&&(p.method="return",p.arg=n,B(P,p),p.method==="throw")||m!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+m+"' method")),x;var A=y(D,P.iterator,p.arg);if(A.type==="throw")return p.method="throw",p.arg=A.arg,p.delegate=null,x;var w=A.arg;return w?w.done?(p[P.resultName]=w.value,p.next=P.nextLoc,p.method!=="return"&&(p.method="next",p.arg=n),p.delegate=null,x):w:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,x)}function C(P){var p={tryLoc:P[0]};1 in P&&(p.catchLoc=P[1]),2 in P&&(p.finallyLoc=P[2],p.afterLoc=P[3]),this.tryEntries.push(p)}function T(P){var p=P.completion||{};p.type="normal",delete p.arg,P.completion=p}function j(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(C,this),this.reset(!0)}function z(P){if(P||P===""){var p=P[c];if(p)return p.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var m=-1,D=function A(){for(;++m<P.length;)if(u.call(P,m))return A.value=P[m],A.done=!1,A;return A.value=n,A.done=!0,A};return D.next=D}}throw new TypeError(r(P)+" is not iterable")}return L.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:L,configurable:!0}),L.displayName=d(_,f,"GeneratorFunction"),s.isGeneratorFunction=function(P){var p=typeof P=="function"&&P.constructor;return!!p&&(p===L||(p.displayName||p.name)==="GeneratorFunction")},s.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,_):(P.__proto__=_,d(P,f,"GeneratorFunction")),P.prototype=Object.create(k),P},s.awrap=function(P){return{__await:P}},U(K.prototype),d(K.prototype,h,function(){return this}),s.AsyncIterator=K,s.async=function(P,p,m,D,A){A===void 0&&(A=Promise);var w=new K(g(P,p,m,D),A);return s.isGeneratorFunction(p)?w:w.next().then(function(I){return I.done?I.value:w.next()})},U(k),d(k,f,"Generator"),d(k,c,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),s.keys=function(P){var p=Object(P),m=[];for(var D in p)m.push(D);return m.reverse(),function A(){for(;m.length;){var w=m.pop();if(w in p)return A.value=w,A.done=!1,A}return A.done=!0,A}},s.values=z,j.prototype={constructor:j,reset:function(P){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(T),!P)for(var p in this)p.charAt(0)==="t"&&u.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=n)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var p=this;function m(Z,$){return w.type="throw",w.arg=P,p.next=Z,$&&(p.method="next",p.arg=n),!!$}for(var D=this.tryEntries.length-1;D>=0;--D){var A=this.tryEntries[D],w=A.completion;if(A.tryLoc==="root")return m("end");if(A.tryLoc<=this.prev){var I=u.call(A,"catchLoc"),M=u.call(A,"finallyLoc");if(I&&M){if(this.prev<A.catchLoc)return m(A.catchLoc,!0);if(this.prev<A.finallyLoc)return m(A.finallyLoc)}else if(I){if(this.prev<A.catchLoc)return m(A.catchLoc,!0)}else{if(!M)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return m(A.finallyLoc)}}}},abrupt:function(P,p){for(var m=this.tryEntries.length-1;m>=0;--m){var D=this.tryEntries[m];if(D.tryLoc<=this.prev&&u.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var A=D;break}}A&&(P==="break"||P==="continue")&&A.tryLoc<=p&&p<=A.finallyLoc&&(A=null);var w=A?A.completion:{};return w.type=P,w.arg=p,A?(this.method="next",this.next=A.finallyLoc,x):this.complete(w)},complete:function(P,p){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&p&&(this.next=p),x},finish:function(P){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.finallyLoc===P)return this.complete(m.completion,m.afterLoc),T(m),x}},catch:function(P){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.tryLoc===P){var D=m.completion;if(D.type==="throw"){var A=D.arg;T(m)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(P,p,m){return this.delegate={iterator:z(P),resultName:p,nextLoc:m},this.method==="next"&&(this.arg=n),x}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),zR=ee((t,e)=>{W();var r=GR()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),WR=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),YR=ee((t,e)=>{"use strict";W();var r=WR(),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,u=()=>{o--,s.length>0&&s.shift()()},a=(h,f,...d)=>{o++;let g=r(h,...d);f(g),g.then(u,u)},l=(h,f,...d)=>{o<n?a(h,f,...d):s.push(a.bind(null,h,f,...d))},c=(h,...f)=>new Promise(d=>l(h,d,...f));return Object.defineProperties(c,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),c};e.exports=i,e.exports.default=i}),KR=ee((t,e)=>{"use strict";W();var r=YR(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,a)=>a(await u),s=async u=>{let a=await Promise.all(u);if(a[1]===!0)throw new i(a[0]);return!1},o=async(u,a,l)=>{l={concurrency:1/0,preserveOrder:!0,...l};let c=r(l.concurrency),h=[...u].map(d=>[d,c(n,d,a)]),f=r(l.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}),VR=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=KR(),o=n(i.stat),u=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function l({type:h}){if(!(h in a))throw new Error(`Invalid type specified: ${h}`)}var c=(h,f)=>h===void 0||f[a[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},l(f);let d=f.allowSymlinks?o:u;return s(h,async g=>{try{let y=await d(r.resolve(f.cwd,g));return c(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},l(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let g of h)try{let y=d(r.resolve(f.cwd,g));if(c(f.type,y))return g}catch{}}}),ZR=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}}}),JR=ee((t,e)=>{"use strict";W();var r=te("path"),i=VR(),n=ZR(),s=Symbol("findUp.stop");e.exports=async(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=async f=>{if(typeof o!="function")return i(c,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.sync=(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(c,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),Dn=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)):{}}),vl=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"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),E=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),O=Symbol("resume"),x=Symbol("buffer"),R=Symbol("pipes"),L=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),N=Symbol("objectMode"),q=Symbol("destroyed"),k=Symbol("emitData"),U=Symbol("emitEnd"),K=Symbol("emitEnd2"),V=Symbol("async"),B=A=>Promise.resolve().then(A),C=global._MP_NO_ITERATOR_SYMBOLS_!=="1",T=C&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),j=C&&Symbol.iterator||Symbol("iterator not implemented"),z=A=>A==="end"||A==="finish"||A==="prefinish",P=A=>A instanceof ArrayBuffer||typeof A=="object"&&A.constructor&&A.constructor.name==="ArrayBuffer"&&A.byteLength>=0,p=A=>!Buffer.isBuffer(A)&&ArrayBuffer.isView(A),m=class{constructor(A,w,I){this.src=A,this.dest=w,this.opts=I,this.ondrain=()=>A[O](),w.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},D=class extends m{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(A,w,I){super(A,w,I),this.proxyErrors=M=>w.emit("error",M),A.on("error",this.proxyErrors)}};e.exports=class iy extends n{constructor(w){super(),this[v]=!1,this[F]=!1,this[R]=[],this[x]=[],this[N]=w&&w.objectMode||!1,this[N]?this[y]=null:this[y]=w&&w.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=w&&!!w.async||!1,this[E]=this[y]?new s(this[y]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[L]=0,this[q]=!1,w&&w.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[x]}),w&&w.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[R]})}get bufferLength(){return this[L]}get encoding(){return this[y]}set encoding(w){if(this[N])throw new Error("cannot set encoding in objectMode");if(this[y]&&w!==this[y]&&(this[E]&&this[E].lastNeed||this[L]))throw new Error("cannot change encoding");this[y]!==w&&(this[E]=w?new s(w):null,this[x].length&&(this[x]=this[x].map(I=>this[E].write(I)))),this[y]=w}setEncoding(w){this.encoding=w}get objectMode(){return this[N]}set objectMode(w){this[N]=this[N]||!!w}get async(){return this[V]}set async(w){this[V]=this[V]||!!w}write(w,I,M){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 I=="function"&&(M=I,I="utf8"),I||(I="utf8");let Z=this[V]?B:$=>$();return!this[N]&&!Buffer.isBuffer(w)&&(p(w)?w=Buffer.from(w.buffer,w.byteOffset,w.byteLength):P(w)?w=Buffer.from(w):typeof w!="string"&&(this.objectMode=!0)),this[N]?(this.flowing&&this[L]!==0&&this[d](!0),this.flowing?this.emit("data",w):this[_](w),this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing):w.length?(typeof w=="string"&&!(I===this[y]&&!this[E].lastNeed)&&(w=Buffer.from(w,I)),Buffer.isBuffer(w)&&this[y]&&(w=this[E].write(w)),this.flowing&&this[L]!==0&&this[d](!0),this.flowing?this.emit("data",w):this[_](w),this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing):(this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing)}read(w){if(this[q])return null;if(this[L]===0||w===0||w>this[L])return this[u](),null;this[N]&&(w=null),this[x].length>1&&!this[N]&&(this.encoding?this[x]=[this[x].join("")]:this[x]=[Buffer.concat(this[x],this[L])]);let I=this[f](w||null,this[x][0]);return this[u](),I}[f](w,I){return w===I.length||w===null?this[S]():(this[x][0]=I.slice(w),I=I.slice(0,w),this[L]-=w),this.emit("data",I),!this[x].length&&!this[o]&&this.emit("drain"),I}end(w,I,M){return typeof w=="function"&&(M=w,w=null),typeof I=="function"&&(M=I,I="utf8"),w&&this.write(w,I),M&&this.once("end",M),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[O](){this[q]||(this[F]=!1,this[v]=!0,this.emit("resume"),this[x].length?this[d]():this[o]?this[u]():this.emit("drain"))}resume(){return this[O]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[q]}get flowing(){return this[v]}get paused(){return this[F]}[_](w){this[N]?this[L]+=1:this[L]+=w.length,this[x].push(w)}[S](){return this[x].length&&(this[N]?this[L]-=1:this[L]-=this[x][0].length),this[x].shift()}[d](w){do;while(this[g](this[S]()));!w&&!this[x].length&&!this[o]&&this.emit("drain")}[g](w){return w?(this.emit("data",w),this.flowing):!1}pipe(w,I){if(this[q])return;let M=this[a];return I=I||{},w===r.stdout||w===r.stderr?I.end=!1:I.end=I.end!==!1,I.proxyErrors=!!I.proxyErrors,M?I.end&&w.end():(this[R].push(I.proxyErrors?new D(this,w,I):new m(this,w,I)),this[V]?B(()=>this[O]()):this[O]()),w}unpipe(w){let I=this[R].find(M=>M.dest===w);I&&(this[R].splice(this[R].indexOf(I),1),I.unpipe())}addListener(w,I){return this.on(w,I)}on(w,I){let M=super.on(w,I);return w==="data"&&!this[R].length&&!this.flowing?this[O]():w==="readable"&&this[L]!==0?super.emit("readable"):z(w)&&this[a]?(super.emit(w),this.removeAllListeners(w)):w==="error"&&this[c]&&(this[V]?B(()=>I.call(this,this[c])):I.call(this,this[c])),M}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[q]&&this[x].length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(w,I,...M){if(w!=="error"&&w!=="close"&&w!==q&&this[q])return;if(w==="data")return I?this[V]?B(()=>this[k](I)):this[k](I):!1;if(w==="end")return this[U]();if(w==="close"){if(this[h]=!0,!this[a]&&!this[q])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(w==="error"){this[c]=I;let $=super.emit("error",I);return this[u](),$}else if(w==="resume"){let $=super.emit("resume");return this[u](),$}else if(w==="finish"||w==="prefinish"){let $=super.emit(w);return this.removeAllListeners(w),$}let Z=super.emit(w,I,...M);return this[u](),Z}[k](w){for(let M of this[R])M.dest.write(w)===!1&&this.pause();let I=super.emit("data",w);return this[u](),I}[U](){this[a]||(this[a]=!0,this.readable=!1,this[V]?B(()=>this[K]()):this[K]())}[K](){if(this[E]){let I=this[E].end();if(I){for(let M of this[R])M.dest.write(I);super.emit("data",I)}}for(let I of this[R])I.end();let w=super.emit("end");return this.removeAllListeners("end"),w}collect(){let w=[];this[N]||(w.dataLength=0);let I=this.promise();return this.on("data",M=>{w.push(M),this[N]||(w.dataLength+=M.length)}),I.then(()=>w)}concat(){return this[N]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(w=>this[N]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?w.join(""):Buffer.concat(w,w.dataLength))}promise(){return new Promise((w,I)=>{this.on(q,()=>I(new Error("stream destroyed"))),this.on("error",M=>I(M)),this.on("end",()=>w())})}[T](){return{next:()=>{let w=this.read();if(w!==null)return Promise.resolve({done:!1,value:w});if(this[o])return Promise.resolve({done:!0});let I=null,M=null,Z=re=>{this.removeListener("data",$),this.removeListener("end",X),M(re)},$=re=>{this.removeListener("error",Z),this.removeListener("end",X),this.pause(),I({value:re,done:!!this[o]})},X=()=>{this.removeListener("error",Z),this.removeListener("data",$),I({done:!0})},G=()=>Z(new Error("stream destroyed"));return new Promise((re,le)=>{M=le,I=re,this.once(q,G),this.once("error",Z),this.once("end",X),this.once("data",$)})}}}[j](){return{next:()=>{let w=this.read();return{value:w,done:w===null}}}}destroy(w){return this[q]?(w?this.emit("error",w):this.emit(q),this):(this[q]=!0,this[x].length=0,this[L]=0,typeof this.close=="function"&&!this[h]&&this.close(),w?this.emit("error",w):this.emit(q),this)}static isStream(w){return!!w&&(w instanceof iy||w instanceof n||w instanceof i&&(typeof w.pipe=="function"||typeof w.write=="function"&&typeof w.end=="function"))}}}),XR=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))}),ny=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"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),E=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),O=Symbol("resume"),x=Symbol("bufferLength"),R=Symbol("bufferPush"),L=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),N=Symbol("emitData"),q=Symbol("emitEnd"),k=Symbol("emitEnd2"),U=Symbol("async"),K=m=>Promise.resolve().then(m),V=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=V&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),C=V&&Symbol.iterator||Symbol("iterator not implemented"),T=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),P=class{constructor(m,D,A){this.src=m,this.dest=D,this.opts=A,this.ondrain=()=>m[O](),D.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},p=class extends P{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(m,D,A){super(m,D,A),this.proxyErrors=w=>D.emit("error",w),m.on("error",this.proxyErrors)}};e.exports=class sy extends n{constructor(D){super(),this[v]=!1,this[F]=!1,this.pipes=[],this.buffer=[],this[_]=D&&D.objectMode||!1,this[_]?this[y]=null:this[y]=D&&D.encoding||null,this[y]==="buffer"&&(this[y]=null),this[U]=D&&!!D.async||!1,this[E]=this[y]?new s(this[y]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[x]=0,this[S]=!1}get bufferLength(){return this[x]}get encoding(){return this[y]}set encoding(D){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[y]&&D!==this[y]&&(this[E]&&this[E].lastNeed||this[x]))throw new Error("cannot change encoding");this[y]!==D&&(this[E]=D?new s(D):null,this.buffer.length&&(this.buffer=this.buffer.map(A=>this[E].write(A)))),this[y]=D}setEncoding(D){this.encoding=D}get objectMode(){return this[_]}set objectMode(D){this[_]=this[_]||!!D}get async(){return this[U]}set async(D){this[U]=this[U]||!!D}write(D,A,w){if(this[o])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof A=="function"&&(w=A,A="utf8"),A||(A="utf8");let I=this[U]?K:M=>M();return!this[_]&&!Buffer.isBuffer(D)&&(z(D)?D=Buffer.from(D.buffer,D.byteOffset,D.byteLength):j(D)?D=Buffer.from(D):typeof D!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[x]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[R](D),this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing):D.length?(typeof D=="string"&&!(A===this[y]&&!this[E].lastNeed)&&(D=Buffer.from(D,A)),Buffer.isBuffer(D)&&this[y]&&(D=this[E].write(D)),this.flowing&&this[x]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[R](D),this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing):(this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing)}read(D){if(this[S])return null;if(this[x]===0||D===0||D>this[x])return this[u](),null;this[_]&&(D=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[x])]);let A=this[f](D||null,this.buffer[0]);return this[u](),A}[f](D,A){return D===A.length||D===null?this[L]():(this.buffer[0]=A.slice(D),A=A.slice(0,D),this[x]-=D),this.emit("data",A),!this.buffer.length&&!this[o]&&this.emit("drain"),A}end(D,A,w){return typeof D=="function"&&(w=D,D=null),typeof A=="function"&&(w=A,A="utf8"),D&&this.write(D,A),w&&this.once("end",w),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[O](){this[S]||(this[F]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[u]():this.emit("drain"))}resume(){return this[O]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[S]}get flowing(){return this[v]}get paused(){return this[F]}[R](D){this[_]?this[x]+=1:this[x]+=D.length,this.buffer.push(D)}[L](){return this.buffer.length&&(this[_]?this[x]-=1:this[x]-=this.buffer[0].length),this.buffer.shift()}[d](D){do;while(this[g](this[L]()));!D&&!this.buffer.length&&!this[o]&&this.emit("drain")}[g](D){return D?(this.emit("data",D),this.flowing):!1}pipe(D,A){if(this[S])return;let w=this[a];return A=A||{},D===r.stdout||D===r.stderr?A.end=!1:A.end=A.end!==!1,A.proxyErrors=!!A.proxyErrors,w?A.end&&D.end():(this.pipes.push(A.proxyErrors?new p(this,D,A):new P(this,D,A)),this[U]?K(()=>this[O]()):this[O]()),D}unpipe(D){let A=this.pipes.find(w=>w.dest===D);A&&(this.pipes.splice(this.pipes.indexOf(A),1),A.unpipe())}addListener(D,A){return this.on(D,A)}on(D,A){let w=super.on(D,A);return D==="data"&&!this.pipes.length&&!this.flowing?this[O]():D==="readable"&&this[x]!==0?super.emit("readable"):T(D)&&this[a]?(super.emit(D),this.removeAllListeners(D)):D==="error"&&this[c]&&(this[U]?K(()=>A.call(this,this[c])):A.call(this,this[c])),w}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[S]&&this.buffer.length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(D,A,...w){if(D!=="error"&&D!=="close"&&D!==S&&this[S])return;if(D==="data")return A?this[U]?K(()=>this[N](A)):this[N](A):!1;if(D==="end")return this[q]();if(D==="close"){if(this[h]=!0,!this[a]&&!this[S])return;let M=super.emit("close");return this.removeAllListeners("close"),M}else if(D==="error"){this[c]=A;let M=super.emit("error",A);return this[u](),M}else if(D==="resume"){let M=super.emit("resume");return this[u](),M}else if(D==="finish"||D==="prefinish"){let M=super.emit(D);return this.removeAllListeners(D),M}let I=super.emit(D,A,...w);return this[u](),I}[N](D){for(let w of this.pipes)w.dest.write(D)===!1&&this.pause();let A=super.emit("data",D);return this[u](),A}[q](){this[a]||(this[a]=!0,this.readable=!1,this[U]?K(()=>this[k]()):this[k]())}[k](){if(this[E]){let A=this[E].end();if(A){for(let w of this.pipes)w.dest.write(A);super.emit("data",A)}}for(let A of this.pipes)A.end();let D=super.emit("end");return this.removeAllListeners("end"),D}collect(){let D=[];this[_]||(D.dataLength=0);let A=this.promise();return this.on("data",w=>{D.push(w),this[_]||(D.dataLength+=w.length)}),A.then(()=>D)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(D=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?D.join(""):Buffer.concat(D,D.dataLength))}promise(){return new Promise((D,A)=>{this.on(S,()=>A(new Error("stream destroyed"))),this.on("error",w=>A(w)),this.on("end",()=>D())})}[B](){return{next:()=>{let D=this.read();if(D!==null)return Promise.resolve({done:!1,value:D});if(this[o])return Promise.resolve({done:!0});let A=null,w=null,I=X=>{this.removeListener("data",M),this.removeListener("end",Z),w(X)},M=X=>{this.removeListener("error",I),this.removeListener("end",Z),this.pause(),A({value:X,done:!!this[o]})},Z=()=>{this.removeListener("error",I),this.removeListener("data",M),A({done:!0})},$=()=>I(new Error("stream destroyed"));return new Promise((X,G)=>{w=G,A=X,this.once(S,$),this.once("error",I),this.once("end",Z),this.once("data",M)})}}}[C](){return{next:()=>{let D=this.read();return{value:D,done:D===null}}}}destroy(D){return this[S]?(D?this.emit("error",D):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[x]=0,typeof this.close=="function"&&!this[h]&&this.close(),D?this.emit("error",D):this.emit(S),this)}static isStream(D){return!!D&&(D instanceof sy||D instanceof n||D instanceof i&&(typeof D.pipe=="function"||typeof D.write=="function"&&typeof D.end=="function"))}}}),oy=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=XR(),s=ny(),o=r.concat,u=Symbol("_superWrite"),a=class extends Error{constructor(T){super("zlib: "+T.message),this.code=T.code,this.errno=T.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+T.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},l=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),g=Symbol("onError"),y=Symbol("sawError"),E=Symbol("level"),v=Symbol("strategy"),F=Symbol("ended"),O=Symbol("_defaultFullFlush"),x=class extends s{constructor(T,j){if(!T||typeof T!="object")throw new TypeError("invalid options for ZlibBase constructor");super(T),this[y]=!1,this[F]=!1,this[l]=T,this[c]=T.flush,this[h]=T.finishFlush;try{this[d]=new i[j](T)}catch(z){throw new a(z)}this[g]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[g](new a(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(T){this.ended||(typeof T!="number"&&(T=this[f]),this.write(Object.assign(r.alloc(0),{[c]:T})))}end(T,j,z){return T&&this.write(T,j),this.flush(this[h]),this[F]=!0,super.end(null,null,z)}get ended(){return this[F]}write(T,j,z){if(typeof j=="function"&&(z=j,j="utf8"),typeof T=="string"&&(T=r.from(T,j)),this[y])return;e(this[d],"zlib binding closed");let P=this[d]._handle,p=P.close;P.close=()=>{};let m=this[d].close;this[d].close=()=>{},r.concat=w=>w;let D;try{let w=typeof T[c]=="number"?T[c]:this[c];D=this[d]._processChunk(T,w),r.concat=o}catch(w){r.concat=o,this[g](new a(w))}finally{this[d]&&(this[d]._handle=P,P.close=p,this[d].close=m,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",w=>this[g](new a(w)));let A;if(D)if(Array.isArray(D)&&D.length>0){A=this[u](r.from(D[0]));for(let w=1;w<D.length;w++)A=this[u](D[w])}else A=this[u](r.from(D));return z&&z(),A}[u](T){return super.write(T)}},R=class extends x{constructor(T,j){T=T||{},T.flush=T.flush||n.Z_NO_FLUSH,T.finishFlush=T.finishFlush||n.Z_FINISH,super(T,j),this[f]=n.Z_FULL_FLUSH,this[E]=T.level,this[v]=T.strategy}params(T,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[E]!==T||this[v]!==j){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(P,p)=>{this.flush(P),p()};try{this[d].params(T,j)}finally{this[d].flush=z}this[d]&&(this[E]=T,this[v]=j)}}}},L=class extends R{constructor(T){super(T,"Deflate")}},_=class extends R{constructor(T){super(T,"Inflate")}},S=Symbol("_portable"),N=class extends R{constructor(T){super(T,"Gzip"),this[S]=T&&!!T.portable}[u](T){return this[S]?(this[S]=!1,T[9]=255,super[u](T)):super[u](T)}},q=class extends R{constructor(T){super(T,"Gunzip")}},k=class extends R{constructor(T){super(T,"DeflateRaw")}},U=class extends R{constructor(T){super(T,"InflateRaw")}},K=class extends R{constructor(T){super(T,"Unzip")}},V=class extends x{constructor(T,j){T=T||{},T.flush=T.flush||n.BROTLI_OPERATION_PROCESS,T.finishFlush=T.finishFlush||n.BROTLI_OPERATION_FINISH,super(T,j),this[f]=n.BROTLI_OPERATION_FLUSH}},B=class extends V{constructor(T){super(T,"BrotliCompress")}},C=class extends V{constructor(T){super(T,"BrotliDecompress")}};t.Deflate=L,t.Inflate=_,t.Gzip=N,t.Gunzip=q,t.DeflateRaw=k,t.InflateRaw=U,t.Unzip=K,typeof i.BrotliCompress=="function"?(t.BrotliCompress=B,t.BrotliDecompress=C):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),_n=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,"/")}),Cl=ee((t,e)=>{"use strict";W();var r=vl(),i=_n(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,u){switch(super(),this.pause(),this.extended=o,this.globalExtended=u,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),u&&this[n](u,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let u=this.remain,a=this.blockRemain;return this.remain=Math.max(0,u-o),this.blockRemain=Math.max(0,a-o),this.ignore?!0:u>=o?super.write(s):super.write(s.slice(0,u))}[n](s,o){for(let u in s)s[u]!==null&&s[u]!==void 0&&!(o&&u==="path")&&(this[u]=u==="path"||u==="linkpath"?i(s[u]):s[u])}}}),uy=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]]))}),QR=ee((t,e)=>{"use strict";W();var r=(c,h)=>{if(Number.isSafeInteger(c))c<0?n(c,h):i(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(c,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=c&255,c=Math.floor(c/256)},n=(c,h)=>{h[0]=255;var f=!1;c=c*-1;for(var d=h.length;d>1;d--){var g=c&255;c=Math.floor(c/256),f?h[d-1]=a(g):g===0?h[d-1]=0:(f=!0,h[d-1]=l(g))}},s=c=>{let h=c[0],f=h===128?u(c.slice(1,c.length)):h===255?o(c):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=c=>{for(var h=c.length,f=0,d=!1,g=h-1;g>-1;g--){var y=c[g],E;d?E=a(y):y===0?E=y:(d=!0,E=l(y)),E!==0&&(f-=E*Math.pow(256,h-g-1))}return f},u=c=>{for(var h=c.length,f=0,d=h-1;d>-1;d--){var g=c[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},a=c=>(255^c)&255,l=c=>(255^c)+1&255;e.exports={encode:r,parse:s}}),bn=ee((t,e)=>{"use strict";W();var r=uy(),i=te("path").posix,n=QR(),s=Symbol("slurp"),o=Symbol("type"),u=class{constructor(_,S,N,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(_)?this.decode(_,S||0,N,q):_&&this.set(_)}decode(_,S,N,q){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=l(_,S,100),this.mode=f(_,S+100,8),this.uid=f(_,S+108,8),this.gid=f(_,S+116,8),this.size=f(_,S+124,12),this.mtime=c(_,S+136,12),this.cksum=f(_,S+148,12),this[s](N),this[s](q,!0),this[o]=l(_,S+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=l(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=l(_,S+265,32),this.gname=l(_,S+297,32),this.devmaj=f(_,S+329,8),this.devmin=f(_,S+337,8),_[S+475]!==0){let U=l(_,S+345,155);this.path=U+"/"+this.path}else{let U=l(_,S+345,130);U&&(this.path=U+"/"+this.path),this.atime=c(_,S+476,12),this.ctime=c(_,S+488,12)}let k=8*32;for(let U=S;U<S+148;U++)k+=_[U];for(let U=S+156;U<S+512;U++)k+=_[U];this.cksumValid=k===this.cksum,this.cksum===null&&k===8*32&&(this.nullBlock=!0)}[s](_,S){for(let N in _)_[N]!==null&&_[N]!==void 0&&!(S&&N==="path")&&(this[N]=_[N])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let N=this.ctime||this.atime?130:155,q=a(this.path||"",N),k=q[0],U=q[1];this.needPax=q[2],this.needPax=L(_,S,100,k)||this.needPax,this.needPax=E(_,S+100,8,this.mode)||this.needPax,this.needPax=E(_,S+108,8,this.uid)||this.needPax,this.needPax=E(_,S+116,8,this.gid)||this.needPax,this.needPax=E(_,S+124,12,this.size)||this.needPax,this.needPax=x(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[o].charCodeAt(0),this.needPax=L(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=L(_,S+265,32,this.uname)||this.needPax,this.needPax=L(_,S+297,32,this.gname)||this.needPax,this.needPax=E(_,S+329,8,this.devmaj)||this.needPax,this.needPax=E(_,S+337,8,this.devmin)||this.needPax,this.needPax=L(_,S+345,N,U)||this.needPax,_[S+475]!==0?this.needPax=L(_,S+345,155,U)||this.needPax:(this.needPax=L(_,S+345,130,U)||this.needPax,this.needPax=x(_,S+476,12,this.atime)||this.needPax,this.needPax=x(_,S+488,12,this.ctime)||this.needPax);let K=8*32;for(let V=S;V<S+148;V++)K+=_[V];for(let V=S+156;V<S+512;V++)K+=_[V];return this.cksum=K,E(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(_){r.code.has(_)?this[o]=r.code.get(_):this[o]=_}},a=(_,S)=>{let N=_,q="",k,U=i.parse(_).root||".";if(Buffer.byteLength(N)<100)k=[N,q,!1];else{q=i.dirname(N),N=i.basename(N);do Buffer.byteLength(N)<=100&&Buffer.byteLength(q)<=S?k=[N,q,!1]:Buffer.byteLength(N)>100&&Buffer.byteLength(q)<=S?k=[N.slice(0,100-1),q,!0]:(N=i.join(i.basename(q),N),q=i.dirname(q));while(q!==U&&!k);k||(k=[_.slice(0,100-1),"",!0])}return k},l=(_,S,N)=>_.slice(S,S+N).toString("utf8").replace(/\0.*/,""),c=(_,S,N)=>h(f(_,S,N)),h=_=>_===null?null:new Date(_*1e3),f=(_,S,N)=>_[S]&128?n.parse(_.slice(S,S+N)):g(_,S,N),d=_=>isNaN(_)?null:_,g=(_,S,N)=>d(parseInt(_.slice(S,S+N).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},E=(_,S,N,q)=>q===null?!1:q>y[N]||q<0?(n.encode(q,_.slice(S,S+N)),!0):(v(_,S,N,q),!1),v=(_,S,N,q)=>_.write(F(q,N),S,N,"ascii"),F=(_,S)=>O(Math.floor(_).toString(8),S),O=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",x=(_,S,N,q)=>q===null?!1:E(_,S,N,q.getTime()/1e3),R=new Array(156).join("\0"),L=(_,S,N,q)=>q===null?!1:(_.write(q+R,S,N,"utf8"),q.length!==Buffer.byteLength(q)||q.length>N);e.exports=u}),Rl=ee((t,e)=>{"use strict";W();var r=bn(),i=te("path"),n=class{constructor(a,l){this.atime=a.atime||null,this.charset=a.charset||null,this.comment=a.comment||null,this.ctime=a.ctime||null,this.gid=a.gid||null,this.gname=a.gname||null,this.linkpath=a.linkpath||null,this.mtime=a.mtime||null,this.path=a.path||null,this.size=a.size||null,this.uid=a.uid||null,this.uname=a.uname||null,this.dev=a.dev||null,this.ino=a.ino||null,this.nlink=a.nlink||null,this.global=l||!1}encode(){let a=this.encodeBody();if(a==="")return null;let l=Buffer.byteLength(a),c=512*Math.ceil(1+l/512),h=Buffer.allocUnsafe(c);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:l,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(a,512,l,"utf8");for(let f=l+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(a){if(this[a]===null||this[a]===void 0)return"";let l=this[a]instanceof Date?this[a].getTime()/1e3:this[a],c=" "+(a==="dev"||a==="ino"||a==="nlink"?"SCHILY.":"")+a+"="+l+`
|
40
|
-
`,h=Buffer.byteLength(
|
41
|
-
`).reduce(u,Object.create(null)),u=(a,l)=>{let c=parseInt(l,10);if(c!==Buffer.byteLength(l)+1)return a;l=l.slice((c+" ").length);let h=l.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return a;let d=h.join("=");return a[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,a};e.exports=n}),wn=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)}}),xl=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))}}}),ay=ee((t,e)=>{"use strict";W();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,u)=>[o,i[u]])),s=new Map(i.map((o,u)=>[o,r[u]]));e.exports={encode:o=>r.reduce((u,a)=>u.split(a).join(n.get(a)),o),decode:o=>i.reduce((u,a)=>u.split(a).join(s.get(a)),o)}}),ly=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 u=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(u.length),s+=u,o=i(n)}return[s,n]}}),ex=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)}),cy=ee((t,e)=>{"use strict";W();var r=vl(),i=Rl(),n=bn(),s=te("fs"),o=te("path"),u=_n(),a=wn(),l=(m,D)=>D?(m=u(m).replace(/^\.(\/|$)/,""),a(D)+"/"+m):u(m),c=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),E=Symbol("header"),v=Symbol("read"),F=Symbol("lstat"),O=Symbol("onlstat"),x=Symbol("onread"),R=Symbol("onreadlink"),L=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),N=Symbol("mode"),q=Symbol("awaitDrain"),k=Symbol("ondrain"),U=Symbol("prefix"),K=Symbol("hadError"),V=xl(),B=ay(),C=ly(),T=ex(),j=V(class extends r{constructor(m,D){if(D=D||{},super(D),typeof m!="string")throw new TypeError("path is required");this.path=u(m),this.portable=!!D.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=D.maxReadSize||c,this.linkCache=D.linkCache||new Map,this.statCache=D.statCache||new Map,this.preservePaths=!!D.preservePaths,this.cwd=u(D.cwd||process.cwd()),this.strict=!!D.strict,this.noPax=!!D.noPax,this.noMtime=!!D.noMtime,this.mtime=D.mtime||null,this.prefix=D.prefix?u(D.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 D.onwarn=="function"&&this.on("warn",D.onwarn);let A=!1;if(!this.preservePaths){let[w,I]=C(this.path);w&&(this.path=I,A=w)}this.win32=!!D.win32||process.platform==="win32",this.win32&&(this.path=B.decode(this.path.replace(/\\/g,"/")),m=m.replace(/\\/g,"/")),this.absolute=u(D.absolute||o.resolve(this.cwd,m)),this.path===""&&(this.path="./"),A&&this.warn("TAR_ENTRY_INFO",`stripping ${A} from absolute path`,{entry:this,path:A+this.path}),this.statCache.has(this.absolute)?this[O](this.statCache.get(this.absolute)):this[F]()}emit(m,...D){return m==="error"&&(this[K]=!0),super.emit(m,...D)}[F](){s.lstat(this.absolute,(m,D)=>{if(m)return this.emit("error",m);this[O](D)})}[O](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()}}[N](m){return T(m,this.type==="Directory",this.portable)}[U](m){return l(m,this.prefix)}[E](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[U](this.path),linkpath:this.type==="Link"?this[U](this.linkpath):this.linkpath,mode:this[N](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[U](this.path),linkpath:this.type==="Link"?this[U](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[E](),this.end()}[g](){s.readlink(this.absolute,(m,D)=>{if(m)return this.emit("error",m);this[R](D)})}[R](m){this.linkpath=u(m),this[E](),this.end()}[y](m){this.type="Link",this.linkpath=u(o.relative(this.cwd,m)),this.stat.size=0,this[E](),this.end()}[f](){if(this.stat.nlink>1){let m=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(m)){let D=this.linkCache.get(m);if(D.indexOf(this.cwd)===0)return this[y](D)}this.linkCache.set(m,this.absolute)}if(this[E](),this.stat.size===0)return this.end();this[L]()}[L](){s.open(this.absolute,"r",(m,D)=>{if(m)return this.emit("error",m);this[_](D)})}[_](m){if(this.fd=m,this[K])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let D=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(D),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:m,buf:D,offset:A,length:w,pos:I}=this;s.read(m,D,A,w,I,(M,Z)=>{if(M)return this[S](()=>this.emit("error",M));this[x](Z)})}[S](m){s.close(this.fd,m)}[x](m){if(m<=0&&this.remain>0){let A=new Error("encountered unexpected EOF");return A.path=this.absolute,A.syscall="read",A.code="EOF",this[S](()=>this.emit("error",A))}if(m>this.remain){let A=new Error("did not encounter expected EOF");return A.path=this.absolute,A.syscall="read",A.code="EOF",this[S](()=>this.emit("error",A))}if(m===this.remain)for(let A=m;A<this.length&&m<this.blockRemain;A++)this.buf[A+this.offset]=0,m++,this.remain++;let D=this.offset===0&&m===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+m);this.write(D)?this[k]():this[q](()=>this[k]())}[q](m){this.once("drain",m)}write(m){if(this.blockRemain<m.length){let D=new Error("writing more data than expected");return D.path=this.absolute,this.emit("error",D)}return this.remain-=m.length,this.blockRemain-=m.length,this.pos+=m.length,this.offset+=m.length,super.write(m)}[k](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](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[v]()}}),z=class extends j{[F](){this[O](s.lstatSync(this.absolute))}[g](){this[R](s.readlinkSync(this.absolute))}[L](){this[_](s.openSync(this.absolute,"r"))}[v](){let m=!0;try{let{fd:D,buf:A,offset:w,length:I,pos:M}=this,Z=s.readSync(D,A,w,I,M);this[x](Z),m=!1}finally{if(m)try{this[S](()=>{})}catch{}}}[q](m){m()}[S](m){s.closeSync(this.fd),m()}},P=V(class extends r{constructor(m,D){D=D||{},super(D),this.preservePaths=!!D.preservePaths,this.portable=!!D.portable,this.strict=!!D.strict,this.noPax=!!D.noPax,this.noMtime=!!D.noMtime,this.readEntry=m,this.type=m.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=D.prefix||null,this.path=u(m.path),this.mode=this[N](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:D.mtime||m.mtime,this.atime=this.portable?null:m.atime,this.ctime=this.portable?null:m.ctime,this.linkpath=u(m.linkpath),typeof D.onwarn=="function"&&this.on("warn",D.onwarn);let A=!1;if(!this.preservePaths){let[w,I]=C(this.path);w&&(this.path=I,A=w)}this.remain=m.size,this.blockRemain=m.startBlockSize,this.header=new n({path:this[U](this.path),linkpath:this.type==="Link"?this[U](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}),A&&this.warn("TAR_ENTRY_INFO",`stripping ${A} from absolute path`,{entry:this,path:A+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[U](this.path),linkpath:this.type==="Link"?this[U](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)}[U](m){return l(m,this.prefix)}[N](m){return T(m,this.type==="Directory",this.portable)}write(m){let D=m.length;if(D>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=D,super.write(m)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});j.Sync=z,j.Tar=P;var p=m=>m.isFile()?"File":m.isDirectory()?"Directory":m.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=j}),tx=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}}}),hy=ee((t,e)=>{"use strict";W(),e.exports=r,r.Node=o,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(h){a.push(h)});else if(arguments.length>0)for(var l=0,c=arguments.length;l<c;l++)a.push(arguments[l]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,l=u.prev;return a&&(a.prev=l),l&&(l.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=l),u.list.length--,u.next=null,u.prev=null,u.list=null,a},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)s(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var l=this.head,c=0;l!==null;c++)u.call(a,l.value,c,this),l=l.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var l=this.tail,c=this.length-1;l!==null;c--)u.call(a,l.value,c,this),l=l.prev},r.prototype.get=function(u){for(var a=0,l=this.head;l!==null&&a<u;a++)l=l.next;if(a===u&&l!==null)return l.value},r.prototype.getReverse=function(u){for(var a=0,l=this.tail;l!==null&&a<u;a++)l=l.prev;if(a===u&&l!==null)return l.value},r.prototype.map=function(u,a){a=a||this;for(var l=new r,c=this.head;c!==null;)l.push(u.call(a,c.value,this)),c=c.next;return l},r.prototype.mapReverse=function(u,a){a=a||this;for(var l=new r,c=this.tail;c!==null;)l.push(u.call(a,c.value,this)),c=c.prev;return l},r.prototype.reduce=function(u,a){var l,c=this.head;if(arguments.length>1)l=a;else if(this.head)c=this.head.next,l=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)l=u(l,c.value,h),c=c.next;return l},r.prototype.reduceReverse=function(u,a){var l,c=this.tail;if(arguments.length>1)l=a;else if(this.tail)c=this.tail.prev,l=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)l=u(l,c.value,h),c=c.prev;return l},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,l=this.head;l!==null;a++)u[a]=l.value,l=l.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,l=this.tail;l!==null;a++)u[a]=l.value,l=l.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(;h!==null&&c<a;c++,h=h.next)l.push(h.value);return l},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,h=this.tail;h!==null&&c>a;c--)h=h.prev;for(;h!==null&&c>u;c--,h=h.prev)l.push(h.value);return l},r.prototype.splice=function(u,a,...l){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(var f=[],c=0;h&&c<a;c++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<l.length;c++)h=i(this,h,l[c]);return f},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,l=u;l!==null;l=l.prev){var c=l.prev;l.prev=l.next,l.next=c}return this.head=a,this.tail=u,this};function i(u,a,l){var c=a===u.head?new o(l,null,a,u):new o(l,a,a.next,u);return c.next===null&&(u.tail=c),c.prev===null&&(u.head=c),u.length++,c}function n(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function s(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,l,c){if(!(this instanceof o))return new o(u,a,l,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,l?(l.prev=this,this.next=l):this.next=null}try{tx()(r)}catch{}}),Fl=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=vl(),n=oy(),s=Cl(),o=cy(),u=o.Sync,a=o.Tar,l=hy(),c=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),g=Symbol("current"),y=Symbol("process"),E=Symbol("processing"),v=Symbol("processJob"),F=Symbol("jobs"),O=Symbol("jobDone"),x=Symbol("addFSEntry"),R=Symbol("addTarEntry"),L=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),N=Symbol("pipe"),q=Symbol("entry"),k=Symbol("entryOpt"),U=Symbol("writeEntryClass"),K=Symbol("write"),V=Symbol("ondrain"),B=te("fs"),C=te("path"),T=xl(),j=_n(),z=T(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[U]=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 l,this[F]=0,this.jobs=+p.jobs||4,this[E]=!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[R](p):this[x](p),this.flowing}[R](p){let m=j(C.resolve(this.cwd,p.path));if(!this.filter(p.path,p))p.resume();else{let D=new r(p.path,m,!1);D.entry=new a(p,this[k](D)),D.entry.on("end",A=>this[O](D)),this[F]+=1,this[d].push(D)}this[y]()}[x](p){let m=j(C.resolve(this.cwd,p));this[d].push(new r(p,m)),this[y]()}[L](p){p.pending=!0,this[F]+=1;let m=this.follow?"stat":"lstat";B[m](p.absolute,(D,A)=>{p.pending=!1,this[F]-=1,D?this.emit("error",D):this[h](p,A)})}[h](p,m){this.statCache.set(p.absolute,m),p.stat=m,this.filter(p.path,m)||(p.ignore=!0),this[y]()}[_](p){p.pending=!0,this[F]+=1,B.readdir(p.absolute,(m,D)=>{if(p.pending=!1,this[F]-=1,m)return this.emit("error",m);this[S](p,D)})}[S](p,m){this.readdirCache.set(p.absolute,m),p.readdir=m,this[y]()}[y](){if(!this[E]){this[E]=!0;for(let p=this[d].head;p!==null&&this[F]<this.jobs;p=p.next)if(this[v](p.value),p.value.ignore){let m=p.next;this[d].removeNode(p),p.next=m}this[E]=!1,this[f]&&!this[d].length&&this[F]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[g](){return this[d]&&this[d].head&&this[d].head.value}[O](p){this[d].shift(),this[F]-=1,this[y]()}[v](p){if(!p.pending){if(p.entry){p===this[g]&&!p.piped&&this[N](p);return}if(p.stat||(this.statCache.has(p.absolute)?this[h](p,this.statCache.get(p.absolute)):this[L](p)),!!p.stat&&!p.ignore&&!(!this.noDirRecurse&&p.stat.isDirectory()&&!p.readdir&&(this.readdirCache.has(p.absolute)?this[S](p,this.readdirCache.get(p.absolute)):this[_](p),!p.readdir))){if(p.entry=this[q](p),!p.entry){p.ignore=!0;return}p===this[g]&&!p.piped&&this[N](p)}}}[k](p){return{onwarn:(m,D,A)=>this.warn(m,D,A),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[F]+=1;try{return new this[U](p.path,this[k](p)).on("end",()=>this[O](p)).on("error",m=>this.emit("error",m))}catch(m){this.emit("error",m)}}[V](){this[g]&&this[g].entry&&this[g].entry.resume()}[N](p){p.piped=!0,p.readdir&&p.readdir.forEach(A=>{let w=p.path,I=w==="./"?"":w.replace(/\/*$/,"/");this[x](I+A)});let m=p.entry,D=this.zip;D?m.on("data",A=>{D.write(A)||m.pause()}):m.on("data",A=>{super.write(A)||m.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),P=class extends z{constructor(p){super(p),this[U]=u}pause(){}resume(){}[L](p){let m=this.follow?"statSync":"lstatSync";this[h](p,B[m](p.absolute))}[_](p,m){this[S](p,B.readdirSync(p.absolute))}[N](p){let m=p.entry,D=this.zip;p.readdir&&p.readdir.forEach(A=>{let w=p.path,I=w==="./"?"":w.replace(/\/*$/,"/");this[x](I+A)}),D?m.on("data",A=>{D.write(A)}):m.on("data",A=>{super[K](A)})}};z.Sync=P,e.exports=z}),Sn=ee(t=>{"use strict";W();var e=ny(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let p=process.binding("fs"),m=p.FSReqWrap||p.FSReqCallback;n=(D,A,w,I)=>{let M=($,X)=>I($,X,A),Z=new m;Z.oncomplete=M,p.writeBuffers(D,A,w,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),u=Symbol("_ended"),a=Symbol("_fd"),l=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),y=Symbol("_needDrain"),E=Symbol("_onerror"),v=Symbol("_onopen"),F=Symbol("_onread"),O=Symbol("_onwrite"),x=Symbol("_open"),R=Symbol("_path"),L=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),N=Symbol("_readSize"),q=Symbol("_reading"),k=Symbol("_remain"),U=Symbol("_size"),K=Symbol("_write"),V=Symbol("_writing"),B=Symbol("_defaultFlag"),C=Symbol("_errored"),T=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[C]=!1,this[a]=typeof m.fd=="number"?m.fd:null,this[R]=p,this[N]=m.readSize||16*1024*1024,this[q]=!1,this[U]=typeof m.size=="number"?m.size:1/0,this[k]=this[U],this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0,typeof this[a]=="number"?this[S]():this[x]()}get fd(){return this[a]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[x](){i.open(this[R],"r",(p,m)=>this[v](p,m))}[v](p,m){p?this[E](p):(this[a]=m,this.emit("open",m),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[N],this[k]))}[S](){if(!this[q]){this[q]=!0;let p=this[d]();if(p.length===0)return process.nextTick(()=>this[F](null,0,p));i.read(this[a],p,0,p.length,null,(m,D,A)=>this[F](m,D,A))}}[F](p,m,D){this[q]=!1,p?this[E](p):this[f](m,D)&&this[S]()}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}[E](p){this[q]=!0,this[o](),this.emit("error",p)}[f](p,m){let D=!1;return this[k]-=p,p>0&&(D=super.write(p<m.length?m.slice(0,p):m)),(p===0||this[k]<=0)&&(D=!1,this[o](),super.end()),D}emit(p,m){switch(p){case"prefinish":case"finish":break;case"drain":typeof this[a]=="number"&&this[S]();break;case"error":return this[C]?void 0:(this[C]=!0,super.emit(p,m));default:return super.emit(p,m)}}},j=class extends T{[x](){let p=!0;try{this[v](null,i.openSync(this[R],"r")),p=!1}finally{p&&this[o]()}}[S](){let p=!0;try{if(!this[q]){this[q]=!0;do{let m=this[d](),D=m.length===0?0:i.readSync(this[a],m,0,m.length,null);if(!this[f](D,m))break}while(!0);this[q]=!1}p=!1}finally{p&&this[o]()}}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=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[C]=!1,this[V]=!1,this[u]=!1,this[y]=!1,this[_]=[],this[R]=p,this[a]=typeof m.fd=="number"?m.fd:null,this[g]=m.mode===void 0?438:m.mode,this[L]=typeof m.start=="number"?m.start:null,this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0;let D=this[L]!==null?"r+":"w";this[B]=m.flags===void 0,this[c]=this[B]?D:m.flags,this[a]===null&&this[x]()}emit(p,m){if(p==="error"){if(this[C])return;this[C]=!0}return super.emit(p,m)}get fd(){return this[a]}get path(){return this[R]}[E](p){this[o](),this[V]=!0,this.emit("error",p)}[x](){i.open(this[R],this[c],this[g],(p,m)=>this[v](p,m))}[v](p,m){this[B]&&this[c]==="r+"&&p&&p.code==="ENOENT"?(this[c]="w",this[x]()):p?this[E](p):(this[a]=m,this.emit("open",m),this[h]())}end(p,m){return p&&this.write(p,m),this[u]=!0,!this[V]&&!this[_].length&&typeof this[a]=="number"&&this[O](null,0),this}write(p,m){return typeof p=="string"&&(p=Buffer.from(p,m)),this[u]?(this.emit("error",new Error("write() after end()")),!1):this[a]===null||this[V]||this[_].length?(this[_].push(p),this[y]=!0,!1):(this[V]=!0,this[K](p),!0)}[K](p){i.write(this[a],p,0,p.length,this[L],(m,D)=>this[O](m,D))}[O](p,m){p?this[E](p):(this[L]!==null&&(this[L]+=m),this[_].length?this[h]():(this[V]=!1,this[u]&&!this[l]?(this[l]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[_].length===0)this[u]&&this[O](null,0);else if(this[_].length===1)this[K](this[_].pop());else{let p=this[_];this[_]=[],n(this[a],p,this[L],(m,D)=>this[O](m,D))}}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}},P=class extends z{[x](){let p;if(this[B]&&this[c]==="r+")try{p=i.openSync(this[R],this[c],this[g])}catch(m){if(m.code==="ENOENT")return this[c]="w",this[x]();throw m}else p=i.openSync(this[R],this[c],this[g]);this[v](null,p)}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.closeSync(p),this.emit("close")}}[K](p){let m=!0;try{this[O](null,i.writeSync(this[a],p,0,p.length,this[L])),m=!1}finally{if(m)try{this[o]()}catch{}}}};t.ReadStream=T,t.ReadStreamSync=j,t.WriteStream=z,t.WriteStreamSync=P}),Ol=ee((t,e)=>{"use strict";W();var r=xl(),i=bn(),n=te("events"),s=hy(),o=1024*1024,u=Cl(),a=Rl(),l=oy(),{nextTick:c}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),g=Symbol("readEntry"),y=Symbol("nextEntry"),E=Symbol("processEntry"),v=Symbol("extendedHeader"),F=Symbol("globalExtendedHeader"),O=Symbol("meta"),x=Symbol("emitMeta"),R=Symbol("buffer"),L=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),N=Symbol("emit"),q=Symbol("unzip"),k=Symbol("consumeChunk"),U=Symbol("consumeChunkSub"),K=Symbol("consumeBody"),V=Symbol("consumeMeta"),B=Symbol("consumeHeader"),C=Symbol("consuming"),T=Symbol("bufferConcat"),j=Symbol("maybeEnd"),z=Symbol("writing"),P=Symbol("aborted"),p=Symbol("onDone"),m=Symbol("sawValidEntry"),D=Symbol("sawNullBlock"),A=Symbol("sawEOF"),w=Symbol("closeStream"),I=M=>!0;e.exports=r(class extends n{constructor(M){M=M||{},super(M),this.file=M.file||"",this[m]=null,this.on(p,Z=>{(this[f]==="begin"||this[m]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),M.ondone?this.on(p,M.ondone):this.on(p,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!M.strict,this.maxMetaEntrySize=M.maxMetaEntrySize||o,this.filter=typeof M.filter=="function"?M.filter:I,this.writable=!0,this.readable=!1,this[L]=new s,this[R]=null,this[g]=null,this[d]=null,this[f]="begin",this[O]="",this[v]=null,this[F]=null,this[_]=!1,this[q]=null,this[P]=!1,this[D]=!1,this[A]=!1,this.on("end",()=>this[w]()),typeof M.onwarn=="function"&&this.on("warn",M.onwarn),typeof M.onentry=="function"&&this.on("entry",M.onentry)}[B](M,Z){this[m]===null&&(this[m]=!1);let $;try{$=new i(M,Z,this[v],this[F])}catch(X){return this.warn("TAR_ENTRY_INVALID",X)}if($.nullBlock)this[D]?(this[A]=!0,this[f]==="begin"&&(this[f]="header"),this[N]("eof")):(this[D]=!0,this[N]("nullBlock"));else if(this[D]=!1,!$.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:$});else if(!$.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:$});else{let X=$.type;if(/^(Symbolic)?Link$/.test(X)&&!$.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:$});else if(!/^(Symbolic)?Link$/.test(X)&&$.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:$});else{let G=this[d]=new u($,this[v],this[F]);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[N]("ignoredEntry",G),this[f]="ignore",G.resume()):G.size>0&&(this[O]="",G.on("data",re=>this[O]+=re),this[f]="meta"):(this[v]=null,G.ignore=G.ignore||!this.filter(G.path,G),G.ignore?(this[N]("ignoredEntry",G),this[f]=G.remain?"ignore":"header",G.resume()):(G.remain?this[f]="body":(this[f]="header",G.end()),this[g]?this[L].push(G):(this[L].push(G),this[y]())))}}}[w](){c(()=>this.emit("close"))}[E](M){let Z=!0;return M?Array.isArray(M)?this.emit.apply(this,M):(this[g]=M,this.emit("entry",M),M.emittedEnd||(M.on("end",$=>this[y]()),Z=!1)):(this[g]=null,Z=!1),Z}[y](){do;while(this[E](this[L].shift()));if(!this[L].length){let M=this[g];!M||M.flowing||M.size===M.remain?this[z]||this.emit("drain"):M.once("drain",Z=>this.emit("drain"))}}[K](M,Z){let $=this[d],X=$.blockRemain,G=X>=M.length&&Z===0?M:M.slice(Z,Z+X);return $.write(G),$.blockRemain||(this[f]="header",this[d]=null,$.end()),G.length}[V](M,Z){let $=this[d],X=this[K](M,Z);return this[d]||this[x]($),X}[N](M,Z,$){!this[L].length&&!this[g]?this.emit(M,Z,$):this[L].push([M,Z,$])}[x](M){switch(this[N]("meta",this[O]),M.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=a.parse(this[O],this[v],!1);break;case"GlobalExtendedHeader":this[F]=a.parse(this[O],this[F],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[O].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[O].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+M.type)}}abort(M){this[P]=!0,this.emit("abort",M),this.warn("TAR_ABORT",M,{recoverable:!1})}write(M){if(this[P])return;if(this[q]===null&&M){if(this[R]&&(M=Buffer.concat([this[R],M]),this[R]=null),M.length<h.length)return this[R]=M,!0;for(let $=0;this[q]===null&&$<h.length;$++)M[$]!==h[$]&&(this[q]=!1);if(this[q]===null){let $=this[_];this[_]=!1,this[q]=new l.Unzip,this[q].on("data",G=>this[k](G)),this[q].on("error",G=>this.abort(G)),this[q].on("end",G=>{this[_]=!0,this[k]()}),this[z]=!0;let X=this[q][$?"end":"write"](M);return this[z]=!1,X}}this[z]=!0,this[q]?this[q].write(M):this[k](M),this[z]=!1;let Z=this[L].length?!1:this[g]?this[g].flowing:!0;return!Z&&!this[L].length&&this[g].once("drain",$=>this.emit("drain")),Z}[T](M){M&&!this[P]&&(this[R]=this[R]?Buffer.concat([this[R],M]):M)}[j](){if(this[_]&&!this[S]&&!this[P]&&!this[C]){this[S]=!0;let M=this[d];if(M&&M.blockRemain){let Z=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${M.blockRemain} more bytes, only ${Z} available)`,{entry:M}),this[R]&&M.write(this[R]),M.end()}this[N](p)}}[k](M){if(this[C])this[T](M);else if(!M&&!this[R])this[j]();else{if(this[C]=!0,this[R]){this[T](M);let Z=this[R];this[R]=null,this[U](Z)}else this[U](M);for(;this[R]&&this[R].length>=512&&!this[P]&&!this[A];){let Z=this[R];this[R]=null,this[U](Z)}this[C]=!1}(!this[R]||this[_])&&this[j]()}[U](M){let Z=0,$=M.length;for(;Z+512<=$&&!this[P]&&!this[A];)switch(this[f]){case"begin":case"header":this[B](M,Z),Z+=512;break;case"ignore":case"body":Z+=this[K](M,Z);break;case"meta":Z+=this[V](M,Z);break;default:throw new Error("invalid state: "+this[f])}Z<$&&(this[R]?this[R]=Buffer.concat([M.slice(Z),this[R]]):this[R]=M.slice(Z))}end(M){this[P]||(this[q]?this[q].end(M):(this[_]=!0,this.write(M)))}})}),Tl=ee((t,e)=>{"use strict";W();var r=Dn(),i=Ol(),n=te("fs"),s=Sn(),o=te("path"),u=wn();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 E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(E,g),E.noResume||a(E),E.file&&E.sync?c(E):E.file?h(E,y):f(E)};var a=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},l=(d,g)=>{let y=new Map(g.map(F=>[u(F),!0])),E=d.filter,v=(F,O)=>{let x=O||o.parse(F).root||".",R=F===x?!1:y.has(F)?y.get(F):v(o.dirname(F),x);return y.set(F,R),R};d.filter=E?(F,O)=>E(F,O)&&v(u(F)):F=>v(u(F))},c=d=>{let g=f(d),y=d.file,E=!0,v;try{let F=n.statSync(y),O=d.maxReadSize||16*1024*1024;if(F.size<O)g.end(n.readFileSync(y));else{let x=0,R=Buffer.allocUnsafe(O);for(v=n.openSync(y,"r");x<F.size;){let L=n.readSync(v,R,0,O,x);x+=L,g.write(R.slice(0,L))}g.end()}E=!1}finally{if(E&&v)try{n.closeSync(v)}catch{}}},h=(d,g)=>{let y=new i(d),E=d.maxReadSize||16*1024*1024,v=d.file,F=new Promise((O,x)=>{y.on("error",x),y.on("end",O),n.stat(v,(R,L)=>{if(R)x(R);else{let _=new s.ReadStream(v,{readSize:E,size:L.size});_.on("error",x),_.pipe(y)}})});return g?F.then(g,g):F},f=d=>new i(d)}),rx=ee((t,e)=>{"use strict";W();var r=Dn(),i=Fl(),n=Sn(),s=Tl(),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 E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return E.file&&E.sync?u(E,g):E.file?a(E,g,y):E.sync?h(E,g):f(E,g)};var u=(d,g)=>{let y=new i.Sync(d),E=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(E),l(y,g)},a=(d,g,y)=>{let E=new i(d),v=new n.WriteStream(d.file,{mode:d.mode||438});E.pipe(v);let F=new Promise((O,x)=>{v.on("error",x),v.on("close",O),E.on("error",x)});return c(E,g),y?F.then(y,y):F},l=(d,g)=>{g.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:E=>d.add(E)}):d.add(y)}),d.end()},c=(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:E=>d.add(E)}).then(E=>c(d,g));d.add(y)}d.end()},h=(d,g)=>{let y=new i.Sync(d);return l(y,g),y},f=(d,g)=>{let y=new i(d);return c(y,g),y}}),fy=ee((t,e)=>{"use strict";W();var r=Dn(),i=Fl(),n=te("fs"),s=Sn(),o=Tl(),u=te("path"),a=bn();e.exports=(g,y,E)=>{let v=r(g);if(!v.file)throw new TypeError("file is required");if(v.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),v.sync?l(v,y):h(v,y,E)};var l=(g,y)=>{let E=new i.Sync(g),v=!0,F,O;try{try{F=n.openSync(g.file,"r+")}catch(L){if(L.code==="ENOENT")F=n.openSync(g.file,"w+");else throw L}let x=n.fstatSync(F),R=Buffer.alloc(512);e:for(O=0;O<x.size;O+=512){for(let S=0,N=0;S<512;S+=N){if(N=n.readSync(F,R,S,R.length-S,O+S),O===0&&R[0]===31&&R[1]===139)throw new Error("cannot append to compressed archives");if(!N)break e}let L=new a(R);if(!L.cksumValid)break;let _=512*Math.ceil(L.size/512);if(O+_+512>x.size)break;O+=_,g.mtimeCache&&g.mtimeCache.set(L.path,L.mtime)}v=!1,c(g,E,O,F,y)}finally{if(v)try{n.closeSync(F)}catch{}}},c=(g,y,E,v,F)=>{let O=new s.WriteStreamSync(g.file,{fd:v,start:E});y.pipe(O),f(y,F)},h=(g,y,E)=>{y=Array.from(y);let v=new i(g),F=(x,R,L)=>{let _=(U,K)=>{U?n.close(x,V=>L(U)):L(null,K)},S=0;if(R===0)return _(null,0);let N=0,q=Buffer.alloc(512),k=(U,K)=>{if(U)return _(U);if(N+=K,N<512&&K)return n.read(x,q,N,q.length-N,S+N,k);if(S===0&&q[0]===31&&q[1]===139)return _(new Error("cannot append to compressed archives"));if(N<512)return _(null,S);let V=new a(q);if(!V.cksumValid)return _(null,S);let B=512*Math.ceil(V.size/512);if(S+B+512>R||(S+=B+512,S>=R))return _(null,S);g.mtimeCache&&g.mtimeCache.set(V.path,V.mtime),N=0,n.read(x,q,0,512,S,k)};n.read(x,q,0,512,S,k)},O=new Promise((x,R)=>{v.on("error",R);let L="r+",_=(S,N)=>{if(S&&S.code==="ENOENT"&&L==="r+")return L="w+",n.open(g.file,L,_);if(S)return R(S);n.fstat(N,(q,k)=>{if(q)return n.close(N,()=>R(q));F(N,k.size,(U,K)=>{if(U)return R(U);let V=new s.WriteStream(g.file,{fd:N,start:K});v.pipe(V),V.on("error",R),V.on("close",x),d(v,y)})})};n.open(g.file,L,_)});return E?O.then(E,E):O},f=(g,y)=>{y.forEach(E=>{E.charAt(0)==="@"?o({file:u.resolve(g.cwd,E.slice(1)),sync:!0,noResume:!0,onentry:v=>g.add(v)}):g.add(E)}),g.end()},d=(g,y)=>{for(;y.length;){let E=y.shift();if(E.charAt(0)==="@")return o({file:u.resolve(g.cwd,E.slice(1)),noResume:!0,onentry:v=>g.add(v)}).then(v=>d(g,y));g.add(E)}g.end()}}),ix=ee((t,e)=>{"use strict";W();var r=Dn(),i=fy();e.exports=(s,o,u)=>{let a=r(s);if(!a.file)throw new TypeError("file is required");if(a.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(a),i(a,o,u)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(u,a)=>o(u,a)&&!(s.mtimeCache.get(u)>a.mtime):(u,a)=>!(s.mtimeCache.get(u)>a.mtime)}}),nx=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}),sx=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 u=/[*|"<>?:]/,{root:a}=n(o);if(u.test(o.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),ox=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,u=void 0)=>u===o?Promise.resolve():s.statAsync(o).then(a=>a.isDirectory()?u:void 0,a=>a.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,u=void 0)=>{if(u!==o)try{return s.statSync(o).isDirectory()?u:void 0}catch(a){return a.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),py=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,u)=>{o.recursive=!1;let a=r(s);return a===s?o.mkdirAsync(s,o).catch(l=>{if(l.code!=="EISDIR")throw l}):o.mkdirAsync(s,o).then(()=>u||s,l=>{if(l.code==="ENOENT")return i(a,o).then(c=>i(s,o,c));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;return o.statAsync(s).then(c=>{if(c.isDirectory())return u;throw l},()=>{throw l})})},n=(s,o,u)=>{let a=r(s);if(o.recursive=!1,a===s)try{return o.mkdirSync(s,o)}catch(l){if(l.code!=="EISDIR")throw l;return}try{return o.mkdirSync(s,o),u||s}catch(l){if(l.code==="ENOENT")return n(s,o,n(a,o,u));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;try{if(!o.statSync(s).isDirectory())throw l}catch{throw l}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),ux=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ox(),{mkdirpManual:s,mkdirpManualSync:o}=py(),u=(l,c)=>(c.recursive=!0,r(l)===l?c.mkdirAsync(l,c):i(c,l).then(h=>c.mkdirAsync(l,c).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(l,c);throw f}))),a=(l,c)=>{if(c.recursive=!0,r(l)===l)return c.mkdirSync(l,c);let h=n(c,l);try{return c.mkdirSync(l,c),h}catch(f){if(f.code==="ENOENT")return o(l,c);throw f}};e.exports={mkdirpNative:u,mkdirpNativeSync:a}}),ax=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?a=>a.mkdir===r.mkdir:()=>!1,u=s?a=>a.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:u}}),lx=ee((t,e)=>{W();var r=nx(),i=sx(),{mkdirpNative:n,mkdirpNativeSync:s}=ux(),{mkdirpManual:o,mkdirpManualSync:u}=py(),{useNative:a,useNativeSync:l}=ax(),c=(f,d)=>(f=i(f),d=r(d),a(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),l(d)?s(f,d):u(f,d));c.sync=h,c.native=(f,d)=>n(i(f),r(d)),c.manual=(f,d)=>o(i(f),r(d)),c.nativeSync=(f,d)=>s(i(f),r(d)),c.manualSync=(f,d)=>u(i(f),r(d)),e.exports=c}),cx=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]/),u=(O,x,R)=>{try{return r[s](O,x,R)}catch(L){if(L.code!=="ENOENT")throw L}},a=(O,x,R)=>{try{return r.chownSync(O,x,R)}catch(L){if(L.code!=="ENOENT")throw L}},l=o?(O,x,R,L)=>_=>{!_||_.code!=="EISDIR"?L(_):r.chown(O,x,R,L)}:(O,x,R,L)=>L,c=o?(O,x,R)=>{try{return u(O,x,R)}catch(L){if(L.code!=="EISDIR")throw L;a(O,x,R)}}:(O,x,R)=>u(O,x,R),h=process.version,f=(O,x,R)=>r.readdir(O,x,R),d=(O,x)=>r.readdirSync(O,x);/^v4\./.test(h)&&(f=(O,x,R)=>r.readdir(O,R));var g=(O,x,R,L)=>{r[n](O,x,R,l(O,x,R,_=>{L(_&&_.code!=="ENOENT"?_:null)}))},y=(O,x,R,L,_)=>{if(typeof x=="string")return r.lstat(i.resolve(O,x),(S,N)=>{if(S)return _(S.code!=="ENOENT"?S:null);N.name=x,y(O,N,R,L,_)});if(x.isDirectory())E(i.resolve(O,x.name),R,L,S=>{if(S)return _(S);let N=i.resolve(O,x.name);g(N,R,L,_)});else{let S=i.resolve(O,x.name);g(S,R,L,_)}},E=(O,x,R,L)=>{f(O,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return L();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return L(_)}if(_||!S.length)return g(O,x,R,L);let N=S.length,q=null,k=U=>{if(!q){if(U)return L(q=U);if(--N===0)return g(O,x,R,L)}};S.forEach(U=>y(O,U,x,R,k))})},v=(O,x,R,L)=>{if(typeof x=="string")try{let _=r.lstatSync(i.resolve(O,x));_.name=x,x=_}catch(_){if(_.code==="ENOENT")return;throw _}x.isDirectory()&&F(i.resolve(O,x.name),R,L),c(i.resolve(O,x.name),R,L)},F=(O,x,R)=>{let L;try{L=d(O,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return c(O,x,R);throw _}return L&&L.length&&L.forEach(_=>v(O,_,x,R)),c(O,x,R)};e.exports=E,E.sync=F}),hx=ee((t,e)=>{"use strict";W();var r=lx(),i=te("fs"),n=te("path"),s=cx(),o=_n(),u=class extends Error{constructor(y,E){super("Cannot extract through symbolic link"),this.path=E,this.symlink=y}get name(){return"SylinkError"}},a=class extends Error{constructor(y,E){super(E+": Cannot cd into '"+y+"'"),this.path=y,this.code=E}get name(){return"CwdError"}},l=(y,E)=>y.get(o(E)),c=(y,E,v)=>y.set(o(E),v),h=(y,E)=>{i.stat(y,(v,F)=>{(v||!F.isDirectory())&&(v=new a(y,v&&v.code||"ENOTDIR")),E(v)})};e.exports=(y,E,v)=>{y=o(y);let F=E.umask,O=E.mode|448,x=(O&F)!==0,R=E.uid,L=E.gid,_=typeof R=="number"&&typeof L=="number"&&(R!==E.processUid||L!==E.processGid),S=E.preserve,N=E.unlink,q=E.cache,k=o(E.cwd),U=(V,B)=>{V?v(V):(c(q,y,!0),B&&_?s(B,R,L,C=>U(C)):x?i.chmod(y,O,v):v())};if(q&&l(q,y)===!0)return U();if(y===k)return h(y,U);if(S)return r(y,{mode:O}).then(V=>U(null,V),U);let K=o(n.relative(k,y)).split("/");f(k,K,O,q,N,k,null,U)};var f=(y,E,v,F,O,x,R,L)=>{if(!E.length)return L(null,R);let _=E.shift(),S=o(n.resolve(y+"/"+_));if(l(F,S))return f(S,E,v,F,O,x,R,L);i.mkdir(S,v,d(S,E,v,F,O,x,R,L))},d=(y,E,v,F,O,x,R,L)=>_=>{_?i.lstat(y,(S,N)=>{if(S)S.path=S.path&&o(S.path),L(S);else if(N.isDirectory())f(y,E,v,F,O,x,R,L);else if(O)i.unlink(y,q=>{if(q)return L(q);i.mkdir(y,v,d(y,E,v,F,O,x,R,L))});else{if(N.isSymbolicLink())return L(new u(y,y+"/"+E.join("/")));L(_)}}):(R=R||y,f(y,E,v,F,O,x,R,L))},g=y=>{let E=!1,v="ENOTDIR";try{E=i.statSync(y).isDirectory()}catch(F){v=F.code}finally{if(!E)throw new a(y,v)}};e.exports.sync=(y,E)=>{y=o(y);let v=E.umask,F=E.mode|448,O=(F&v)!==0,x=E.uid,R=E.gid,L=typeof x=="number"&&typeof R=="number"&&(x!==E.processUid||R!==E.processGid),_=E.preserve,S=E.unlink,N=E.cache,q=o(E.cwd),k=V=>{c(N,y,!0),V&&L&&s.sync(V,x,R),O&&i.chmodSync(y,F)};if(N&&l(N,y)===!0)return k();if(y===q)return g(q),k();if(_)return k(r.sync(y,F));let U=o(n.relative(q,y)).split("/"),K=null;for(let V=U.shift(),B=q;V&&(B+="/"+V);V=U.shift())if(B=o(n.resolve(B)),!l(N,B))try{i.mkdirSync(B,F),K=K||B,c(N,B,!0)}catch{let C=i.lstatSync(B);if(C.isDirectory()){c(N,B,!0);continue}else if(S){i.unlinkSync(B),i.mkdirSync(B,F),K=K||B,c(N,B,!0);continue}else if(C.isSymbolicLink())return new u(B,B+"/"+U.join("/"))}return k(K)}}),dy=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])}),fx=ee((t,e)=>{W();var r=te("assert"),i=dy(),n=wn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,u=o==="win32";e.exports=()=>{let a=new Map,l=new Map,c=E=>E.split("/").slice(0,-1).reduce((v,F)=>(v.length&&(F=s(v[v.length-1],F)),v.push(F||"/"),v),[]),h=new Set,f=E=>{let v=l.get(E);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(F=>a.get(F)),dirs:[...v.dirs].map(F=>a.get(F))}},d=E=>{let{paths:v,dirs:F}=f(E);return v.every(O=>O[0]===E)&&F.every(O=>O[0]instanceof Set&&O[0].has(E))},g=E=>h.has(E)||!d(E)?!1:(h.add(E),E(()=>y(E)),!0),y=E=>{if(!h.has(E))return!1;let{paths:v,dirs:F}=l.get(E),O=new Set;return v.forEach(x=>{let R=a.get(x);r.equal(R[0],E),R.length===1?a.delete(x):(R.shift(),typeof R[0]=="function"?O.add(R[0]):R[0].forEach(L=>O.add(L)))}),F.forEach(x=>{let R=a.get(x);r(R[0]instanceof Set),R[0].size===1&&R.length===1?a.delete(x):R[0].size===1?(R.shift(),O.add(R[0])):R[0].delete(E)}),h.delete(E),O.forEach(x=>g(x)),!0};return{check:d,reserve:(E,v)=>{E=u?["win32 parallelization disabled"]:E.map(O=>i(n(s(O))).toLowerCase());let F=new Set(E.map(O=>c(O)).reduce((O,x)=>O.concat(x)));return l.set(v,{dirs:F,paths:E}),E.forEach(O=>{let x=a.get(O);x?x.push(v):a.set(O,[v])}),F.forEach(O=>{let x=a.get(O);x?x[x.length-1]instanceof Set?x[x.length-1].add(v):x.push(new Set([v])):a.set(O,[new Set([v])])}),g(v)}}}}),px=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:u,UV_FS_O_FILEMAP:a=0}=n.constants,l=i&&!!a,c=512*1024,h=a|o|s|u;e.exports=l?f=>f<c?h:"w":()=>"w"}),my=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Ol(),n=te("fs"),s=Sn(),o=te("path"),u=hx(),a=ay(),l=fx(),c=ly(),h=_n(),f=wn(),d=dy(),g=Symbol("onEntry"),y=Symbol("checkFs"),E=Symbol("checkFs2"),v=Symbol("pruneCache"),F=Symbol("isReusable"),O=Symbol("makeFs"),x=Symbol("file"),R=Symbol("directory"),L=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),N=Symbol("unsupported"),q=Symbol("checkPath"),k=Symbol("mkdir"),U=Symbol("onError"),K=Symbol("pending"),V=Symbol("pend"),B=Symbol("unpend"),C=Symbol("ended"),T=Symbol("maybeClose"),j=Symbol("skip"),z=Symbol("doChown"),P=Symbol("uid"),p=Symbol("gid"),m=Symbol("checkedCwd"),D=te("crypto"),A=px(),w=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,I=w==="win32",M=(b,Y)=>{if(!I)return n.unlink(b,Y);let J=b+".DELETE."+D.randomBytes(16).toString("hex");n.rename(b,J,se=>{if(se)return Y(se);n.unlink(J,Y)})},Z=b=>{if(!I)return n.unlinkSync(b);let Y=b+".DELETE."+D.randomBytes(16).toString("hex");n.renameSync(b,Y),n.unlinkSync(Y)},$=(b,Y,J)=>b===b>>>0?b:Y===Y>>>0?Y:J,X=b=>d(f(h(b))).toLowerCase(),G=(b,Y)=>{Y=X(Y);for(let J of b.keys()){let se=X(J);(se===Y||se.indexOf(Y+"/")===0)&&b.delete(J)}},re=b=>{for(let Y of b.keys())b.delete(Y)},le=class extends i{constructor(b){if(b||(b={}),b.ondone=Y=>{this[C]=!0,this[T]()},super(b),this[m]=!1,this.reservations=l(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[K]=0,this[C]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.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=b.forceChown===!0,this.win32=!!b.win32||I,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",Y=>this[g](Y))}warn(b,Y,J={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(J.recoverable=!1),super.warn(b,Y,J)}[T](){this[C]&&this[K]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](b){if(this.strip){let Y=h(b.path).split("/");if(Y.length<this.strip)return!1;if(b.path=Y.slice(this.strip).join("/"),b.type==="Link"){let J=h(b.linkpath).split("/");if(J.length>=this.strip)b.linkpath=J.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(b.path),J=Y.split("/");if(J.includes("..")||I&&/^[a-z]:\.\.$/i.test(J[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:Y}),!1;let[se,ae]=c(Y);se&&(b.path=ae,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:b,path:Y}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:Y}=o.win32.parse(b.absolute);b.absolute=Y+a.encode(b.absolute.slice(Y.length));let{root:J}=o.win32.parse(b.path);b.path=J+a.encode(b.path.slice(J.length))}return!0}[g](b){if(!this[q](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[N](b)}}[U](b,Y){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:Y}),this[B](),Y.resume())}[k](b,Y,J){u(h(b),{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},J)}[z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[P](b){return $(this.uid,b.uid,this.processUid)}[p](b){return $(this.gid,b.gid,this.processGid)}[x](b,Y){let J=b.mode&4095||this.fmode,se=new s.WriteStream(b.absolute,{flags:A(b.size),mode:J,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[U](fe,b),Y()});let ae=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[U](fe,b),Y();return}--ae===0&&n.close(se.fd,Se=>{Se?this[U](Se,b):this[B](),Y()})};se.on("finish",fe=>{let Se=b.absolute,ct=se.fd;if(b.mtime&&!this.noMtime){ae++;let ht=b.atime||new Date,Qi=b.mtime;n.futimes(ct,ht,Qi,en=>en?n.utimes(Se,ht,Qi,ou=>ge(ou&&en)):ge())}if(this[z](b)){ae++;let ht=this[P](b),Qi=this[p](b);n.fchown(ct,ht,Qi,en=>en?n.chown(Se,ht,Qi,ou=>ge(ou&&en)):ge())}ge()});let ce=this.transform&&this.transform(b)||b;ce!==b&&(ce.on("error",fe=>{this[U](fe,b),Y()}),b.pipe(ce)),ce.pipe(se)}[R](b,Y){let J=b.mode&4095||this.dmode;this[k](b.absolute,J,se=>{if(se){this[U](se,b),Y();return}let ae=1,ge=ce=>{--ae===0&&(Y(),this[B](),b.resume())};b.mtime&&!this.noMtime&&(ae++,n.utimes(b.absolute,b.atime||new Date,b.mtime,ge)),this[z](b)&&(ae++,n.chown(b.absolute,this[P](b),this[p](b),ge)),ge()})}[N](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[_](b,Y){this[L](b,b.linkpath,"symlink",Y)}[S](b,Y){let J=h(o.resolve(this.cwd,b.linkpath));this[L](b,J,"link",Y)}[V](){this[K]++}[B](){this[K]--,this[T]()}[j](b){this[B](),b.resume()}[F](b,Y){return b.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!I}[y](b){this[V]();let Y=[b.path];b.linkpath&&Y.push(b.linkpath),this.reservations.reserve(Y,J=>this[E](b,J))}[v](b){b.type==="SymbolicLink"?re(this.dirCache):b.type!=="Directory"&&G(this.dirCache,b.absolute)}[E](b,Y){this[v](b);let J=ce=>{this[v](b),Y(ce)},se=()=>{this[k](this.cwd,this.dmode,ce=>{if(ce){this[U](ce,b),J();return}this[m]=!0,ae()})},ae=()=>{if(b.absolute!==this.cwd){let ce=h(o.dirname(b.absolute));if(ce!==this.cwd)return this[k](ce,this.dmode,fe=>{if(fe){this[U](fe,b),J();return}ge()})}ge()},ge=()=>{n.lstat(b.absolute,(ce,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>b.mtime)){this[j](b),J();return}if(ce||this[F](b,fe))return this[O](null,b,J);if(fe.isDirectory()){if(b.type==="Directory"){let Se=!this.noChmod&&b.mode&&(fe.mode&4095)!==b.mode,ct=ht=>this[O](ht,b,J);return Se?n.chmod(b.absolute,b.mode,ct):ct()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,Se=>this[O](Se,b,J))}if(b.absolute===this.cwd)return this[O](null,b,J);M(b.absolute,Se=>this[O](Se,b,J))})};this[m]?ae():se()}[O](b,Y,J){if(b){this[U](b,Y),J();return}switch(Y.type){case"File":case"OldFile":case"ContiguousFile":return this[x](Y,J);case"Link":return this[S](Y,J);case"SymbolicLink":return this[_](Y,J);case"Directory":case"GNUDumpDir":return this[R](Y,J)}}[L](b,Y,J,se){n[J](Y,b.absolute,ae=>{ae?this[U](ae,b):(this[B](),b.resume()),se()})}},be=b=>{try{return[null,b()]}catch(Y){return[Y,null]}},Ee=class extends le{[O](b,Y){return super[O](b,Y,()=>{})}[y](b){if(this[v](b),!this[m]){let ae=this[k](this.cwd,this.dmode);if(ae)return this[U](ae,b);this[m]=!0}if(b.absolute!==this.cwd){let ae=h(o.dirname(b.absolute));if(ae!==this.cwd){let ge=this[k](ae,this.dmode);if(ge)return this[U](ge,b)}}let[Y,J]=be(()=>n.lstatSync(b.absolute));if(J&&(this.keep||this.newer&&J.mtime>b.mtime))return this[j](b);if(Y||this[F](b,J))return this[O](null,b);if(J.isDirectory()){if(b.type==="Directory"){let ge=!this.noChmod&&b.mode&&(J.mode&4095)!==b.mode,[ce]=ge?be(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[O](ce,b)}let[ae]=be(()=>n.rmdirSync(b.absolute));this[O](ae,b)}let[se]=b.absolute===this.cwd?[]:be(()=>Z(b.absolute));this[O](se,b)}[x](b,Y){let J=b.mode&4095||this.fmode,se=ce=>{let fe;try{n.closeSync(ae)}catch(Se){fe=Se}(ce||fe)&&this[U](ce||fe,b),Y()},ae;try{ae=n.openSync(b.absolute,A(b.size),J)}catch(ce){return se(ce)}let ge=this.transform&&this.transform(b)||b;ge!==b&&(ge.on("error",ce=>this[U](ce,b)),b.pipe(ge)),ge.on("data",ce=>{try{n.writeSync(ae,ce,0,ce.length)}catch(fe){se(fe)}}),ge.on("end",ce=>{let fe=null;if(b.mtime&&!this.noMtime){let Se=b.atime||new Date,ct=b.mtime;try{n.futimesSync(ae,Se,ct)}catch(ht){try{n.utimesSync(b.absolute,Se,ct)}catch{fe=ht}}}if(this[z](b)){let Se=this[P](b),ct=this[p](b);try{n.fchownSync(ae,Se,ct)}catch(ht){try{n.chownSync(b.absolute,Se,ct)}catch{fe=fe||ht}}}se(fe)})}[R](b,Y){let J=b.mode&4095||this.dmode,se=this[k](b.absolute,J);if(se){this[U](se,b),Y();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[z](b))try{n.chownSync(b.absolute,this[P](b),this[p](b))}catch{}Y(),b.resume()}[k](b,Y){try{return u.sync(h(b),{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(J){return J}}[L](b,Y,J,se){try{n[J+"Sync"](Y,b.absolute),se(),b.resume()}catch(ae){return this[U](ae,b)}}};le.Sync=Ee,e.exports=le}),dx=ee((t,e)=>{"use strict";W();var r=Dn(),i=my(),n=te("fs"),s=Sn(),o=te("path"),u=wn();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 E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&a(E,g),E.file&&E.sync?l(E):E.file?c(E,y):E.sync?h(E):f(E)};var a=(d,g)=>{let y=new Map(g.map(F=>[u(F),!0])),E=d.filter,v=(F,O)=>{let x=O||o.parse(F).root||".",R=F===x?!1:y.has(F)?y.get(F):v(o.dirname(F),x);return y.set(F,R),R};d.filter=E?(F,O)=>E(F,O)&&v(u(F)):F=>v(u(F))},l=d=>{let g=new i.Sync(d),y=d.file,E=n.statSync(y),v=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:v,size:E.size}).pipe(g)},c=(d,g)=>{let y=new i(d),E=d.maxReadSize||16*1024*1024,v=d.file,F=new Promise((O,x)=>{y.on("error",x),y.on("close",O),n.stat(v,(R,L)=>{if(R)x(R);else{let _=new s.ReadStream(v,{readSize:E,size:L.size});_.on("error",x),_.pipe(y)}})});return g?F.then(g,g):F},h=d=>new i.Sync(d),f=d=>new i(d)}),mx=ee(t=>{"use strict";W(),t.c=t.create=rx(),t.r=t.replace=fy(),t.t=t.list=Tl(),t.u=t.update=ix(),t.x=t.extract=dx(),t.Pack=Fl(),t.Unpack=my(),t.Parse=Ol(),t.ReadEntry=Cl(),t.WriteEntry=cy(),t.Header=bn(),t.Pax=Rl(),t.types=uy()}),yx=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 u=this._errors[o],a=u.message,l=(i[a]||0)+1;i[a]=l,l>=s&&(n=u,s=l)}return n}}),gx=ee(t=>{W();var e=yx();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(u,a){return u-a}),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 u=n[o],a=r[u];r[u]=function(l){var c=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){c.retry(d)||(d&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){l.apply(r,h)})}.bind(r,a),r[u].options=i}}}),Ex=ee((t,e)=>{W(),e.exports=gx()}),Dx=ee((t,e)=>{W();var r=Ex();function i(n,s){function o(u,a){var l=s||{},c;"randomize"in l||(l.randomize=!0),c=r.operation(l);function h(g){a(g||new Error("Aborted"))}function f(g,y){if(g.bail){h(g);return}c.retry(g)?l.onRetry&&l.onRetry(g,y):a(c.mainError())}function d(g){var y;try{y=n(h,g)}catch(E){f(E,g);return}Promise.resolve(y).then(u).catch(function(E){f(E,g)})}c.attempt(d)}return new Promise(o)}e.exports=i}),_x={};qR(_x,{bold:()=>vx,dimmed:()=>Rx,error:()=>Tx,grey:()=>xx,info:()=>Ax,item:()=>Fx,log:()=>jr,turboBlue:()=>Si,turboGradient:()=>wx,turboLoader:()=>Sx,turboRed:()=>_y,underline:()=>Cx,warn:()=>Ox,yellow:()=>by});W();var Ey="#0099F7",Dy="#F11712",bx="#FFFF00",wx=(0,gy.default)(Ey,Dy),Si=cr.default.hex(Ey),_y=cr.default.hex(Dy),by=cr.default.hex(bx),Sx=t=>(0,yy.default)({text:t,spinner:{frames:[" ",Si("> "),Si(">> "),Si(">>>")]}}),Ax=(...t)=>{jr(Si.bold(">>>"),...t)},vx=(...t)=>{jr(cr.default.bold(...t))},Cx=(...t)=>{jr(cr.default.underline(...t))},Rx=(...t)=>{jr(cr.default.dim(...t))},xx=(...t)=>{jr(cr.default.grey(...t))},Fx=(...t)=>{jr(Si.bold(" \u2022"),...t)},jr=(...t)=>{console.log(...t)},Ox=(...t)=>{console.error(by.bold(">>>"),...t)},Tx=(...t)=>{console.error(_y.bold(">>>"),...t)};W();W();W();W();var YB=zs(zR());W();W();function Lx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function wl(t){return wl=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},wl(t)}W();function Bx(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Px(t,e){if(e&&(wl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bx(t)}W();function Gs(t){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(t)}W();W();function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yn(t,e)}function Ix(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&&yn(t,e)}W();W();function Nx(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Mx(){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 Us(t,e,r){return Mx()?Us=Reflect.construct.bind():Us=function(i,n,s){var o=[null];o.push.apply(o,n);var u=Function.bind.apply(i,o),a=new u;return s&&yn(a,s.prototype),a},Us.apply(null,arguments)}function Sl(t){var e=typeof Map=="function"?new Map:void 0;return Sl=function(r){if(r===null||!Nx(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 Us(r,arguments,Gs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yn(i,r)},Sl(t)}var KB=zs(JR()),JB=function(t){Ix(e,t);function e(r){var i;return Lx(this,e),i=Px(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Sl(Error));W();W();W();W();W();W();var aP=zs(mx()),lP=(0,Sy.promisify)(wy.Stream.pipeline);W();W();var pP=zs(Dx());W();W();W();var Le=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,Le)}};W();W();W();W();var jx=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Ue({workspaceRoot:t}){let e=Nt.default.join(t,"package.json");try{return(0,Ze.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Le(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Le(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ws({workspaceRoot:t}){let{packageManager:e}=Ue({workspaceRoot:t});if(e)try{let r=jx.exec(e);if(r){let[i,n]=r;return n}}catch{}}function An({workspaceRoot:t}){let e=Ue({workspaceRoot:t}),r=Nt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function ry({workspaceRoot:t}){let e=Nt.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=Hu.load((0,Ze.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Le(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Ys({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Nt.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 kl({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Ks({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,Fy.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Nt.default.dirname(r),{name:n,description:s}=An({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Nt.default.join(i,"node_modules")}}}):[]}function Hx({directory:t}){let e=Nt.default.resolve(process.cwd(),t);return{exists:(0,Ze.existsSync)(e),absolute:e}}function hr({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 qx({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 It({project:t,options:e}){e!=null&&e.dry||(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}async function Oy({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,xy.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Ze.writeFile)(Nt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}}function $x({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],u=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${u}`:u,i.push(s)}}),{dependencyList:t,updated:i}}function ar({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=Ue({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},u=["dependencies","devDependencies","peerDependencies","optionalDependencies"];u.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=$x({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let a=h=>{let f=o[h].length;if(f>0)return`${Ry.default.green(f.toString())} ${h}`},l=u.map(a).filter(Boolean),c=`./${vy.default.relative(t.paths.root,e.paths.packageJson)}`;if(l.length>=1){let h="updating";l.forEach((f,d)=>{l.length===1?h+=` ${f} in ${c}`:d===l.length-1?h+=`and ${f} in ${c}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${c}`);n!=null&&n.dry||(0,Cy.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var lr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Ty(t){let e=Nr.default.join(t.workspaceRoot,lr.lock),r=Nr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ws({workspaceRoot:t.workspaceRoot});return(0,He.existsSync)(e)||(0,He.existsSync)(r)||i===lr.name}async function Ux(t){if(!await Ty(t))throw new Le("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=An(t);return{name:e,description:r,packageManager:lr.name,paths:Ys({root:t.workspaceRoot,lockFile:lr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:ry(t),workspaces:Ks({workspaceGlobs:ry(t),...t})}}}async function Gx(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({action:"create",packageManager:lr.name,project:e}));let o=Ue({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,He.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,He.writeFileSync)(Nr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
42
|
-
${e.workspaceData.globs.map(
|
43
|
-
`)}`))),s&&(ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})}))}async function zx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({action:"remove",packageManager:lr.name,project:e}));let s=Ue({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,He.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,He.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,He.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Wx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Nr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,He.rmSync)(e.paths.lockfile,{force:!0})}async function Yx(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Nr.default.relative(e.paths.root,e.paths.lockfile)} to ${lr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,He.existsSync)(e.paths.lockfile))try{await(0,Ay.default)(lr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{It({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Oy({project:e,options:r}),await s(),(0,He.rmSync)(Nr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Kx={detect:Ty,read:Ux,create:Gx,remove:zx,clean:Wx,convertLock:Yx};W();var Ai={name:"npm",lock:"package-lock.json"};async function ky(t){let e=gn.default.join(t.workspaceRoot,Ai.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,wt.existsSync)(e)||r===Ai.name}async function Vx(t){if(!await ky(t))throw new Le("Not an npm project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=kl({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Ys({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function Zx(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(hr({packageManager:Ai.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Jx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Ai.name,action:"remove",project:e}));let s=Ue({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,wt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,wt.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Xx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${gn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,wt.rmSync)(e.paths.lockfile,{force:!0})}async function Qx(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":It({project:e,options:r});break;case"npm":break;case"yarn":It({project:e,options:r});break}}var eF={detect:ky,read:Vx,create:Zx,remove:Jx,clean:Xx,convertLock:Qx};W();var Mr={name:"yarn",lock:"yarn.lock"};async function Ly(t){let e=vi.default.join(t.workspaceRoot,Mr.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,St.existsSync)(e)||r===Mr.name}async function tF(t){if(!await Ly(t))throw new Le("Not a yarn project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=kl({workspaces:e.workspaces});return{name:r,description:i,packageManager:Mr.name,paths:Ys({root:t.workspaceRoot,lockFile:Mr.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function rF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({packageManager:Mr.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${vi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${vi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function iF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Mr.name,action:"remove",project:e}));let s=Ue({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,St.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,St.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function nF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${vi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,St.rmSync)(e.paths.lockfile,{force:!0})}async function sF(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${vi.default.relative(e.paths.root,e.paths.lockfile)} to ${Mr.lock}`)};switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":n(),await Oy({project:e,options:r});break;case"npm":It({project:e,options:r});break;case"yarn":break}}var oF={detect:Ly,read:tF,create:rF,remove:iF,clean:nF,convertLock:sF};W();var Ci={name:"bun",lock:"bun.lockb"};async function By(t){let e=En.default.join(t.workspaceRoot,Ci.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ci.name}async function uF(t){if(!await By(t))throw new Le("Not a bun project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=kl({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ci.name,paths:Ys({root:t.workspaceRoot,lockFile:Ci.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function aF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!qx({project:e}))throw new Le("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(hr({packageManager:Ci.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${En.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${En.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}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function lF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Ci.name,action:"remove",project:e}));let s=Ue({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(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,At.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function cF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${En.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function hF(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":break;case"npm":It({project:e,options:r});break;case"yarn":It({project:e,options:r});break}}var fF={detect:By,read:uF,create:aF,remove:lF,clean:cF,convertLock:hF},Py={pnpm:Kx,yarn:oF,npm:eF,bun:fF};W();async function Ll({root:t}){let{exists:e,absolute:r}=Hx({directory:t});if(!e)throw new Le(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Py))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Le("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 c_=require("fs-extra");var su=ie(require("chalk"));var DF=ie(qy());function Pl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t){return vn=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},vn(t)}function Il(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nl(t,e){if(e&&(vn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Il(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ht(t,e)}function Ml(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&&Ht(t,e)}function jl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Hl(){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 Ri(t,e,r){return Hl()?Ri=Reflect.construct.bind():Ri=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),l=new a;return o&&Ht(l,o.prototype),l},Ri.apply(null,arguments)}function Cn(t){var e=typeof Map=="function"?new Map:void 0;return Cn=function(i){if(i===null||!jl(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 Ri(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,i)},Cn(t)}var $y=ie(require("find-up"));var _F=ie(require("fs-extra")),z2=function(t){Ml(e,t);function e(r){var i;return Pl(this,e),i=Nl(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Cn(Error));var bF=ie(require("fs")),wF=ie(require("path"));var BF=ie(require("fs")),PF=ie(require("path"));var IF=ie($s());var it={};Fh(it,{bold:()=>xF,dimmed:()=>OF,error:()=>Jy,grey:()=>TF,info:()=>RF,item:()=>kF,log:()=>pr,turboBlue:()=>xi,turboGradient:()=>CF,turboLoader:()=>Vy,turboRed:()=>Yy,underline:()=>FF,warn:()=>Zy,yellow:()=>Ky});var fr=ie(require("chalk")),Uy=ie(require("ora")),Gy=ie(require("gradient-string")),zy="#0099F7",Wy="#F11712",vF="#FFFF00",CF=(0,Gy.default)(zy,Wy),xi=fr.default.hex(zy),Yy=fr.default.hex(Wy),Ky=fr.default.hex(vF),Vy=t=>(0,Uy.default)({text:t,spinner:{frames:[" ",xi("> "),xi(">> "),xi(">>>")]}}),RF=(...t)=>{pr(xi.bold(">>>"),...t)},xF=(...t)=>{pr(fr.default.bold(...t))},FF=(...t)=>{pr(fr.default.underline(...t))},OF=(...t)=>{pr(fr.default.dim(...t))},TF=(...t)=>{pr(fr.default.grey(...t))},kF=(...t)=>{pr(xi.bold(" \u2022"),...t)},pr=(...t)=>{console.log(...t)},Zy=(...t)=>{console.error(Ky.bold(">>>"),...t)},Jy=(...t)=>{console.error(Yy.bold(">>>"),...t)};var NF=ie(require("os")),MF=ie(ai());var jF=ie(require("fs-extra"));var HF=ie(require("path")),qF=ie(require("fs-extra")),$F=ie(require("chalk"));var ZD=require("stream"),JD=require("util"),Ak=require("path"),vk=require("os"),XD=require("fs"),Ck=ie(VD());var iN=(0,JD.promisify)(ZD.Stream.pipeline);var QD=require("fs-extra");var Ik=ie(require("path")),Nk=ie(o_()),Mk=ie(require("chalk")),Ch=require("fs-extra");var dt=ie(require("chalk")),Xi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(dt.default.green(" MODIFIED "),...e,this.dry?dt.default.dim("(dry run)"):"")}unchanged(...e){this._log(dt.default.gray(" UNCHANGED "),...e,this.dry?dt.default.dim("(dry run)"):"")}skipped(...e){this._log(dt.default.yellow(" SKIPPED "),...e,this.dry?dt.default.dim("(dry run)"):"")}error(...e){this._log(dt.default.red(" ERROR "),...e,this.dry?dt.default.dim("(dry run)"):"")}info(...e){this._log(dt.default.bold(" INFO "),...e,this.dry?dt.default.dim("(dry run)"):"")}};var u_=ie(require("os")),Rh=ie(require("path"));var ru=ie(require("chalk")),nu=require("diff"),Rr=require("fs-extra"),iu=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{Rh.default.extname(e.filePath)===".json"?this.before=(0,Rr.readJsonSync)(e.filePath):this.before=(0,Rr.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,nu.diffJson)(this.before,e.after):this.changes=(0,nu.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Rh.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Rr.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Rr.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(ru.default.green(r.value)):r.removed?process.stdout.write(ru.default.red(r.value)):process.stdout.write(ru.default.dim(r.value))}),it.log(u_.default.EOL)):it.log(this.after)}};var Yn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Xi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new iu({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(su.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(su.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(su.default.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(it.log(),r.length>0){it.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),it.log()}}};function a_({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Xi(i),s=new Yn(i);return{log:n,runner:s}}var h_="add-package-names",jk="Ensure all packages have a name in their package.json",Hk="2.0.0-canary.0";async function l_(t){try{return await(0,c_.readJson)(t)}catch{return null}}function f_({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=xh.default.basename(xh.default.dirname(t));return e?`${r}${n}-${i}`:`${r}${n}`}async function p_({root:t,options:e}){let{log:r,runner:i}=a_({transformer:h_,rootPath:t,options:e});r.info('Validating that each package has a unique "name"...');let n;try{n=await Ll({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=[n.paths.packageJson],o=[l_(n.paths.packageJson)];n.workspaceData.workspaces.forEach(c=>{let h=c.paths.packageJson;s.push(h),o.push(l_(h))});let u=await Promise.all(o),a=Object.fromEntries(s.map((c,h)=>[c,u[h]])),l=new Set;for(let[c,h]of Object.entries(a))if(h)if(!h.name||l.has(h.name)){let f=f_({pkgPath:c,pkgName:h.name});i.modifyFile({filePath:c,after:{...h,name:f}}),l.add(f)}else l.add(h.name);return i.finish()}var qk={name:h_,description:jk,introducedIn:Hk,transformer:p_},$k=qk;0&&(module.exports={getNewPkgName,transformer});
|
31
|
+
`}function xp(t){return t[t.length-1]===`
|
32
|
+
`?t.slice(0,-1):t}function cR(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
33
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,Ap(t.slice(0,c),e)}(),n=t[0]===`
|
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
|
+
`:"")+Ap(l,e),n=s}return i}function Ap(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
|
+
`+t.slice(n,s),n=s+1),o=a;return l+=`
|
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 uR(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=an(t,n),i=Ce[r],!i&&hn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||tR(r);return e}function hR(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)),(Pt(t,e,a,!1,!1)||typeof a=="undefined"&&Pt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Op(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)),(Pt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Pt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=La(t,e)),t.dump&&cn===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function fR(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)),Pt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Pt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function pR(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 je("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=La(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Pt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&cn===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=La(t,e)),Pt(t,e+1,u,!0,h)&&(t.dump&&cn===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Tp(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,sd.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(od.call(a.represent,l))i=a.represent[l](e,l);else throw new je("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function Pt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Tp(t,r,!1)||Tp(t,r,!0);var a=sd.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?(pR(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(fR(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?Op(t,e-1,t.dump,n):Op(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(hR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&lR(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new je("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 dR(t,e){var r=[],i=[],n,s;for(Ia(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Ia(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)Ia(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Ia(t[i[n]],e,r)}function mR(t,e){e=e||{};var r=new iR(e);r.noRefs||dR(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Pt(r,0,i,!0,!0)?r.dump+`
|
39
|
+
`:""}var yR=mR,gR={dump:yR};function ja(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 _R=ke,bR=Lp,wR=Dp,SR=Hp,ER=qp,vR=Da,RR=nd.load,xR=nd.loadAll,AR=gR.dump,OR=je,TR={binary:Wp,float:jp,map:Np,null:Mp,pairs:Kp,set:Vp,timestamp:Gp,bool:Fp,int:Bp,merge:zp,omap:Yp,seq:Ip,str:Pp},kR=ja("safeLoad","load"),CR=ja("safeLoadAll","loadAll"),LR=ja("safeDump","dump"),PR={Type:_R,Schema:bR,FAILSAFE_SCHEMA:wR,JSON_SCHEMA:SR,CORE_SCHEMA:ER,DEFAULT_SCHEMA:vR,load:RR,loadAll:xR,dump:AR,YAMLException:OR,types:TR,safeLoad:kR,safeLoadAll:CR,safeDump:LR},Ha=PR;var tD=ie(Us(),1),iD=require("fs-extra"),sD=require("fs-extra"),aD=require("chalk"),Eg=require("stream"),vg=require("util"),hD=require("fs-extra"),mD=require("chalk"),gD=require("fs-extra"),Fr=ie(require("path"),1),He=require("fs-extra"),Rg=ie(li(),1),xg=ie(require("path"),1),Ag=require("fs-extra"),Og=ie(require("chalk"),1),Ft=ie(require("path"),1),Tg=ie(li(),1),Ze=require("fs-extra"),kg=ie(Us(),1);var gn=ie(require("path"),1),Et=require("fs-extra"),xi=ie(require("path"),1),vt=require("fs-extra"),_n=ie(require("path"),1),Rt=require("fs-extra"),p1=ie(require("chalk"),1),d1=ie(require("gradient-string"),1),m1=ie(li(),1),y1=ie(require("ora"),1),g1=require("semver"),_1=ie(require("chalk"),1),DT=Object.create,Rc=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,FT=Object.getOwnPropertyNames,BT=Object.getPrototypeOf,jT=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')}),HT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qT=(t,e)=>{for(var r in e)Rc(t,r,{get:e[r],enumerable:!0})},UT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of FT(e))!jT.call(t,n)&&n!==r&&Rc(t,n,{get:()=>e[n],enumerable:!(i=MT(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?DT(BT(t)):{},UT(e||!t||!t.__esModule?Rc(r,"default",{value:t,enumerable:!0}):r,t)),W=HT(()=>{}),$T=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}),GT=ee((t,e)=>{W();var r=$T().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=GT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),WT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),YT=ee((t,e)=>{"use strict";W();var r=WT(),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}),KT=ee((t,e)=>{"use strict";W();var r=YT(),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}),VT=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=KT(),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{}}}),ZT=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}}}),XT=ee((t,e)=>{"use strict";W();var r=te("path"),i=VT(),n=ZT(),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}),bn=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)):{}}),xc=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 ig 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 ig||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),JT=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))}),ng=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 sg 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 sg||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),og=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=JT(),s=ng(),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")}}}),wn=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,"/")}),Ac=ee((t,e)=>{"use strict";W();var r=xc(),i=wn(),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])}}}),ag=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]]))}),QT=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}}),Sn=ee((t,e)=>{"use strict";W();var r=ag(),i=te("path").posix,n=QT(),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}),Oc=ee((t,e)=>{"use strict";W();var r=Sn(),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
|
+
`,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}),En=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)}}),Tc=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))}}}),lg=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)}}),cg=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]}}),ek=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)}),ug=ee((t,e)=>{"use strict";W();var r=xc(),i=Oc(),n=Sn(),s=te("fs"),o=te("path"),a=wn(),l=En(),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=Tc(),N=lg(),A=cg(),L=ek(),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}),tk=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}}}),hg=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{tk()(r)}catch{}}),kc=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=xc(),n=og(),s=Ac(),o=ug(),a=o.Sync,l=o.Tar,c=hg(),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=Tc(),j=wn(),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}),vn=ee(t=>{"use strict";W();var e=ng(),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}),Cc=ee((t,e)=>{"use strict";W();var r=Tc(),i=Sn(),n=te("events"),s=hg(),o=1024*1024,a=Ac(),l=Oc(),c=og(),{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)))}})}),Lc=ee((t,e)=>{"use strict";W();var r=bn(),i=Cc(),n=te("fs"),s=vn(),o=te("path"),a=En();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)}),rk=ee((t,e)=>{"use strict";W();var r=bn(),i=kc(),n=vn(),s=Lc(),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}}),fg=ee((t,e)=>{"use strict";W();var r=bn(),i=kc(),n=te("fs"),s=vn(),o=Lc(),a=te("path"),l=Sn();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()}}),ik=ee((t,e)=>{"use strict";W();var r=bn(),i=fg();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)}}),nk=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}),sk=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}),ok=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}}),pg=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}}),ak=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ok(),{mkdirpManual:s,mkdirpManualSync:o}=pg(),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}}),lk=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}}),ck=ee((t,e)=>{W();var r=nk(),i=sk(),{mkdirpNative:n,mkdirpNativeSync:s}=ak(),{mkdirpManual:o,mkdirpManualSync:a}=pg(),{useNative:l,useNativeSync:c}=lk(),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}),uk=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}),hk=ee((t,e)=>{"use strict";W();var r=ck(),i=te("fs"),n=te("path"),s=uk(),o=wn(),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)}}),dg=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])}),fk=ee((t,e)=>{W();var r=te("assert"),i=dg(),n=En(),{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)}}}}),pk=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"}),mg=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Cc(),n=te("fs"),s=vn(),o=te("path"),a=hk(),l=lg(),c=fk(),u=cg(),h=wn(),f=En(),d=dg(),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=pk(),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,ut=se.fd;if(S.mtime&&!this.noMtime){le++;let ht=S.atime||new Date,Qi=S.mtime;n.futimes(ut,ht,Qi,en=>en?n.utimes(ve,ht,Qi,oa=>ge(oa&&en)):ge())}if(this[z](S)){le++;let ht=this[D](S),Qi=this[p](S);n.fchown(ut,ht,Qi,en=>en?n.chown(ve,ht,Qi,oa=>ge(oa&&en)):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,ut=ht=>this[C](ht,S,X);return ve?n.chmod(S.absolute,S.mode,ut):ut()}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,ut=S.mtime;try{n.futimesSync(le,ve,ut)}catch(ht){try{n.utimesSync(S.absolute,ve,ut)}catch{fe=ht}}}if(this[z](S)){let ve=this[D](S),ut=this[p](S);try{n.fchownSync(le,ve,ut)}catch(ht){try{n.chownSync(S.absolute,ve,ut)}catch{fe=fe||ht}}}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}),dk=ee((t,e)=>{"use strict";W();var r=bn(),i=mg(),n=te("fs"),s=vn(),o=te("path"),a=En();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)}),mk=ee(t=>{"use strict";W(),t.c=t.create=rk(),t.r=t.replace=fg(),t.t=t.list=Lc(),t.u=t.update=ik(),t.x=t.extract=dk(),t.Pack=kc(),t.Unpack=mg(),t.Parse=Cc(),t.ReadEntry=Ac(),t.WriteEntry=ug(),t.Header=Sn(),t.Pax=Oc(),t.types=ag()}),yk=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}}),gk=ee(t=>{W();var e=yk();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}}}),_k=ee((t,e)=>{W(),e.exports=gk()}),bk=ee((t,e)=>{W();var r=_k();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}),wk={};qT(wk,{bold:()=>xk,dimmed:()=>Ok,error:()=>Lk,grey:()=>Tk,info:()=>Rk,item:()=>kk,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Ek,turboLoader:()=>vk,turboRed:()=>wg,underline:()=>Ak,warn:()=>Ck,yellow:()=>Sg});W();var _g="#0099F7",bg="#F11712",Sk="#FFFF00",Ek=(0,gg.default)(_g,bg),vi=ur.default.hex(_g),wg=ur.default.hex(bg),Sg=ur.default.hex(Sk),vk=t=>(0,yg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),Rk=(...t)=>{jr(vi.bold(">>>"),...t)},xk=(...t)=>{jr(ur.default.bold(...t))},Ak=(...t)=>{jr(ur.default.underline(...t))},Ok=(...t)=>{jr(ur.default.dim(...t))},Tk=(...t)=>{jr(ur.default.grey(...t))},kk=(...t)=>{jr(vi.bold(" \u2022"),...t)},jr=(...t)=>{console.log(...t)},Ck=(...t)=>{console.error(Sg.bold(">>>"),...t)},Lk=(...t)=>{console.error(wg.bold(">>>"),...t)};W();W();W();W();var KN=zs(zT());W();W();function Ik(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function Ec(t){return Ec=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},Ec(t)}W();function Nk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dk(t,e){if(e&&(Ec(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nk(t)}W();function Gs(t){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(t)}W();W();function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yn(t,e)}function Mk(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&&yn(t,e)}W();W();function Fk(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Bk(){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 $s(t,e,r){return Bk()?$s=Reflect.construct.bind():$s=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),l=new a;return s&&yn(l,s.prototype),l},$s.apply(null,arguments)}function vc(t){var e=typeof Map=="function"?new Map:void 0;return vc=function(r){if(r===null||!Fk(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 $s(r,arguments,Gs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yn(i,r)},vc(t)}var VN=zs(XT()),JN=function(t){Mk(e,t);function e(r){var i;return Ik(this,e),i=Dk(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(vc(Error));W();W();W();W();W();W();var cD=zs(mk()),uD=(0,vg.promisify)(Eg.Stream.pipeline);W();W();var dD=zs(bk());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 jk=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function $e({workspaceRoot:t}){let e=Ft.default.join(t,"package.json");try{return(0,Ze.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 Ws({workspaceRoot:t}){let{packageManager:e}=$e({workspaceRoot:t});if(e)try{let r=jk.exec(e);if(r){let[i,n]=r;return n}}catch{}}function Rn({workspaceRoot:t}){let e=$e({workspaceRoot:t}),r=Ft.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function rg({workspaceRoot:t}){let e=Ft.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=Ha.load((0,Ze.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 Ys({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Ft.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 Pc({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Ks({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,kg.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Ft.default.dirname(r),{name:n,description:s}=Rn({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Ft.default.join(i,"node_modules")}}}):[]}function Hk({directory:t}){let e=Ft.default.resolve(process.cwd(),t);return{exists:(0,Ze.existsSync)(e),absolute:e}}function hr({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 qk({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 Mt({project:t,options:e}){e!=null&&e.dry||(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}async function Cg({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Tg.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Ze.writeFile)(Ft.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}}function Uk({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 lr({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=$e({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}=Uk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${Og.default.green(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${xg.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,Ag.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var cr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Lg(t){let e=Fr.default.join(t.workspaceRoot,cr.lock),r=Fr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ws({workspaceRoot:t.workspaceRoot});return(0,He.existsSync)(e)||(0,He.existsSync)(r)||i===cr.name}async function $k(t){if(!await Lg(t))throw new Ie("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=Rn(t);return{name:e,description:r,packageManager:cr.name,paths:Ys({root:t.workspaceRoot,lockFile:cr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:rg(t),workspaces:Ks({workspaceGlobs:rg(t),...t})}}}async function Gk(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({action:"create",packageManager:cr.name,project:e}));let o=$e({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,He.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,He.writeFileSync)(Fr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
42
|
+
${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
|
43
|
+
`)}`))),s&&(lr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{lr({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(hr({action:"remove",packageManager:cr.name,project:e}));let s=$e({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,He.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,He.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,He.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Wk(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,He.rmSync)(e.paths.lockfile,{force:!0})}async function Yk(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Fr.default.relative(e.paths.root,e.paths.lockfile)} to ${cr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,He.existsSync)(e.paths.lockfile))try{await(0,Rg.default)(cr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Mt({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Cg({project:e,options:r}),await s(),(0,He.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 Kk={detect:Lg,read:$k,create:Gk,remove:zk,clean:Wk,convertLock:Yk};W();var Ri={name:"npm",lock:"package-lock.json"};async function Pg(t){let e=gn.default.join(t.workspaceRoot,Ri.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,Et.existsSync)(e)||r===Ri.name}async function Vk(t){if(!await Pg(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Pc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ri.name,paths:Ys({root:t.workspaceRoot,lockFile:Ri.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function Zk(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(hr({packageManager:Ri.name,action:"create",project:e}));let o=$e({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Et.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),lr({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{lr({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Et.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Xk(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Ri.name,action:"remove",project:e}));let s=$e({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,Et.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,Et.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 ${gn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Et.rmSync)(e.paths.lockfile,{force:!0})}async function Qk(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Mt({project:e,options:r});break;case"bun":Mt({project:e,options:r});break;case"npm":break;case"yarn":Mt({project:e,options:r});break}}var e1={detect:Pg,read:Vk,create:Zk,remove:Xk,clean:Jk,convertLock:Qk};W();var Br={name:"yarn",lock:"yarn.lock"};async function Ig(t){let e=xi.default.join(t.workspaceRoot,Br.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,vt.existsSync)(e)||r===Br.name}async function t1(t){if(!await Ig(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Pc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Br.name,paths:Ys({root:t.workspaceRoot,lockFile:Br.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function r1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({packageManager:Br.name,action:"create",project:e}));let o=$e({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,vt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),lr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{lr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,vt.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(hr({packageManager:Br.name,action:"remove",project:e}));let s=$e({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,vt.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,vt.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 ${xi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,vt.rmSync)(e.paths.lockfile,{force:!0})}async function s1(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":Mt({project:e,options:r});break;case"bun":n(),await Cg({project:e,options:r});break;case"npm":Mt({project:e,options:r});break;case"yarn":break}}var o1={detect:Ig,read:t1,create:r1,remove:i1,clean:n1,convertLock:s1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Ng(t){let e=_n.default.join(t.workspaceRoot,Ai.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,Rt.existsSync)(e)||r===Ai.name}async function a1(t){if(!await Ng(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Pc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Ys({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function l1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!qk({project:e}))throw new Ie("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(hr({packageManager:Ai.name,action:"create",project:e}));let o=$e({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),lr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{lr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Rt.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(hr({packageManager:Ai.name,action:"remove",project:e}));let s=$e({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 u1(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 h1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Mt({project:e,options:r});break;case"bun":break;case"npm":Mt({project:e,options:r});break;case"yarn":Mt({project:e,options:r});break}}var f1={detect:Ng,read:a1,create:l1,remove:c1,clean:u1,convertLock:h1},Dg={pnpm:Kk,yarn:o1,npm:e1,bun:f1};W();async function Ic({root:t}){let{exists:e,absolute:r}=Hk({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(Dg))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 uS=require("fs-extra");var sa=ie(require("chalk"));var b1=ie(qg());function Dc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xn(t){return xn=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},xn(t)}function Mc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fc(t,e){if(e&&(xn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mc(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ht(t,e)}function Bc(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&&Ht(t,e)}function jc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Hc(){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 Hc()?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&&Ht(c,o.prototype),c},Oi.apply(null,arguments)}function An(t){var e=typeof Map=="function"?new Map:void 0;return An=function(i){if(i===null||!jc(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}}),Ht(n,i)},An(t)}var Ug=ie(require("find-up"));var w1=ie(require("fs-extra")),WM=function(t){Bc(e,t);function e(r){var i;return Dc(this,e),i=Fc(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(An(Error));var R1=ie(require("json5"));var S1=ie(require("fs")),E1=ie(require("path"));var N1=ie(require("fs")),D1=ie(require("path"));var M1=ie(Us()),F1=ie(require("json5"));var it={};kh(it,{bold:()=>T1,dimmed:()=>C1,error:()=>Xg,grey:()=>L1,info:()=>O1,item:()=>P1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>A1,turboLoader:()=>Vg,turboRed:()=>Yg,underline:()=>k1,warn:()=>Zg,yellow:()=>Kg});var fr=ie(require("chalk")),$g=ie(require("ora")),Gg=ie(require("gradient-string")),zg="#0099F7",Wg="#F11712",x1="#FFFF00",A1=(0,Gg.default)(zg,Wg),Ti=fr.default.hex(zg),Yg=fr.default.hex(Wg),Kg=fr.default.hex(x1),Vg=t=>(0,$g.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),O1=(...t)=>{pr(Ti.bold(">>>"),...t)},T1=(...t)=>{pr(fr.default.bold(...t))},k1=(...t)=>{pr(fr.default.underline(...t))},C1=(...t)=>{pr(fr.default.dim(...t))},L1=(...t)=>{pr(fr.default.grey(...t))},P1=(...t)=>{pr(Ti.bold(" \u2022"),...t)},pr=(...t)=>{console.log(...t)},Zg=(...t)=>{console.error(Kg.bold(">>>"),...t)},Xg=(...t)=>{console.error(Yg.bold(">>>"),...t)};var B1=ie(require("os")),j1=ie(li());var H1=ie(require("fs-extra"));var q1=ie(require("path")),U1=ie(require("fs-extra")),$1=ie(require("chalk"));var Zw=require("stream"),Xw=require("util"),xP=require("path"),AP=require("os"),Jw=require("fs"),OP=ie(Vw());var tB=(0,Xw.promisify)(Zw.Stream.pipeline);var Qw=require("fs-extra");var FP=ie(require("path")),BP=ie(oS()),jP=ie(require("chalk")),Ah=require("fs-extra");var dt=ie(require("chalk")),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log(dt.default.green(" MODIFIED "),...e,this.dry?dt.default.dim("(dry run)"):"")}unchanged(...e){this._log(dt.default.gray(" UNCHANGED "),...e,this.dry?dt.default.dim("(dry run)"):"")}skipped(...e){this._log(dt.default.yellow(" SKIPPED "),...e,this.dry?dt.default.dim("(dry run)"):"")}error(...e){this._log(dt.default.red(" ERROR "),...e,this.dry?dt.default.dim("(dry run)"):"")}info(...e){this._log(dt.default.bold(" INFO "),...e,this.dry?dt.default.dim("(dry run)"):"")}};var aS=ie(require("os")),Oh=ie(require("path"));var ra=ie(require("chalk")),na=require("diff"),Or=require("fs-extra"),ia=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{Oh.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,na.diffJson)(this.before,e.after):this.changes=(0,na.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Oh.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(ra.default.green(r.value)):r.removed?process.stdout.write(ra.default.red(r.value)):process.stdout.write(ra.default.dim(r.value))}),it.log(aS.default.EOL)):it.log(this.after)}};var Yn=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 ia({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(sa.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(sa.default.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(sa.default.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(it.log(),r.length>0){it.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),it.log()}}};function lS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Yn(i);return{log:n,runner:s}}var hS="add-package-names",HP="Ensure all packages have a name in their package.json",qP="2.0.0-canary.0";async function cS(t){try{return await(0,uS.readJson)(t)}catch{return null}}function fS({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=Th.default.basename(Th.default.dirname(t));return e?`${r}${n}-${i}`:`${r}${n}`}async function pS({root:t,options:e}){let{log:r,runner:i}=lS({transformer:hS,rootPath:t,options:e});r.info('Validating that each package has a unique "name"...');let n;try{n=await Ic({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=[n.paths.packageJson],o=[cS(n.paths.packageJson)];n.workspaceData.workspaces.forEach(u=>{let h=u.paths.packageJson;s.push(h),o.push(cS(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=fS({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 UP={name:hS,description:HP,introducedIn:qP,transformer:pS},$P=UP;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
|
|