@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.
@@ -1,46 +1,46 @@
1
- "use strict";var y_=Object.create;var Kn=Object.defineProperty;var g_=Object.getOwnPropertyDescriptor;var E_=Object.getOwnPropertyNames;var D_=Object.getPrototypeOf,__=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oh=(t,e)=>{for(var r in e)Kn(t,r,{get:e[r],enumerable:!0})},Th=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E_(e))!__.call(t,n)&&n!==r&&Kn(t,n,{get:()=>e[n],enumerable:!(i=g_(e,n))||i.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?y_(D_(t)):{},Th(e||!t||!t.__esModule?Kn(r,"default",{value:t,enumerable:!0}):r,t)),b_=t=>Th(Kn({},"__esModule",{value:!0}),t);var Ih=H((zk,Ph)=>{Ph.exports=Bh;Bh.sync=S_;var kh=require("fs");function w_(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 Lh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:w_(e,r)}function Bh(t,e,r){kh.stat(t,function(i,n){r(i,i?!1:Lh(n,t,e))})}function S_(t,e){return Lh(kh.statSync(t),t,e)}});var qh=H((Wk,Hh)=>{Hh.exports=Mh;Mh.sync=A_;var Nh=require("fs");function Mh(t,e,r){Nh.stat(t,function(i,n){r(i,i?!1:jh(n,e))})}function A_(t,e){return jh(Nh.statSync(t),e)}function jh(t,e){return t.isFile()&&v_(t,e)}function v_(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(),u=parseInt("100",8),a=parseInt("010",8),l=parseInt("001",8),c=u|a,h=r&l||r&a&&n===o||r&u&&i===s||r&c&&s===0;return h}});var Uh=H((Kk,$h)=>{var Yk=require("fs"),Vn;process.platform==="win32"||global.TESTING_WINDOWS?Vn=Ih():Vn=qh();$h.exports=au;au.sync=C_;function au(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){au(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 C_(t,e){try{return Vn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Zh=H((Vk,Vh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Gh=require("path"),R_=ei?";":":",zh=Uh(),Wh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Yh=(t,e)=>{let r=e.colon||R_,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}},Kh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Yh(t,e),o=[],u=l=>new Promise((c,h)=>{if(l===i.length)return e.all&&o.length?c(o):h(Wh(t));let f=i[l],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Gh.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;c(a(y,l,0))}),a=(l,c,h)=>new Promise((f,d)=>{if(h===n.length)return f(u(c+1));let g=n[h];zh(l+g,{pathExt:s},(y,E)=>{if(!y&&E)if(e.all)o.push(l+g);else return f(l+g);return f(a(l,c,h+1))})});return r?u(0).then(l=>r(null,l),r):u(0)},x_=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Yh(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,l=Gh.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=c+i[h];try{if(zh.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 Wh(t)};Vh.exports=Kh;Kh.sync=x_});var cu=H((Zk,lu)=>{"use strict";var Jh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};lu.exports=Jh;lu.exports.default=Jh});var tf=H((Jk,ef)=>{"use strict";var Xh=require("path"),F_=Zh(),O_=cu();function Qh(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=F_.sync(t.command,{path:r[O_({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 T_(t){return Qh(t)||Qh(t,!0)}ef.exports=T_});var rf=H((Xk,fu)=>{"use strict";var hu=/([()\][%!^"`<>&|;, *?])/g;function k_(t){return t=t.replace(hu,"^$1"),t}function L_(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hu,"^$1"),e&&(t=t.replace(hu,"^$1")),t}fu.exports.command=k_;fu.exports.argument=L_});var sf=H((Qk,nf)=>{"use strict";nf.exports=/^#!(.*)/});var uf=H((eL,of)=>{"use strict";var B_=sf();of.exports=(t="")=>{let e=t.match(B_);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((tL,af)=>{"use strict";var pu=require("fs"),P_=uf();function I_(t){let r=Buffer.alloc(150),i;try{i=pu.openSync(t,"r"),pu.readSync(i,r,0,150,0),pu.closeSync(i)}catch{}return P_(r.toString())}af.exports=I_});var pf=H((rL,ff)=>{"use strict";var N_=require("path"),cf=tf(),hf=rf(),M_=lf(),j_=process.platform==="win32",H_=/\.(?:com|exe)$/i,q_=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function $_(t){t.file=cf(t);let e=t.file&&M_(t.file);return e?(t.args.unshift(t.file),t.command=e,cf(t)):t.file}function U_(t){if(!j_)return t;let e=$_(t),r=!H_.test(e);if(t.options.forceShell||r){let i=q_.test(e);t.command=N_.normalize(t.command),t.command=hf.command(t.command),t.args=t.args.map(s=>hf.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 G_(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:U_(i)}ff.exports=G_});var yf=H((iL,mf)=>{"use strict";var du=process.platform==="win32";function mu(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 z_(t,e){if(!du)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=df(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function df(t,e){return du&&t===1&&!e.file?mu(e.original,"spawn"):null}function W_(t,e){return du&&t===1&&!e.file?mu(e.original,"spawnSync"):null}mf.exports={hookChildProcess:z_,verifyENOENT:df,verifyENOENTSync:W_,notFoundError:mu}});var Df=H((nL,ti)=>{"use strict";var gf=require("child_process"),yu=pf(),gu=yf();function Ef(t,e,r){let i=yu(t,e,r),n=gf.spawn(i.command,i.args,i.options);return gu.hookChildProcess(n,i),n}function Y_(t,e,r){let i=yu(t,e,r),n=gf.spawnSync(i.command,i.args,i.options);return n.error=n.error||gu.verifyENOENTSync(n.status,i),n}ti.exports=Ef;ti.exports.spawn=Ef;ti.exports.sync=Y_;ti.exports._parse=yu;ti.exports._enoent=gu});var bf=H((sL,_f)=>{"use strict";_f.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var yS=Object.create;var Kn=Object.defineProperty;var gS=Object.getOwnPropertyDescriptor;var _S=Object.getOwnPropertyNames;var bS=Object.getPrototypeOf,wS=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ch=(t,e)=>{for(var r in e)Kn(t,r,{get:e[r],enumerable:!0})},Lh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _S(e))!wS.call(t,n)&&n!==r&&Kn(t,n,{get:()=>e[n],enumerable:!(i=gS(e,n))||i.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?yS(bS(t)):{},Lh(e||!t||!t.__esModule?Kn(r,"default",{value:t,enumerable:!0}):r,t)),SS=t=>Lh(Kn({},"__esModule",{value:!0}),t);var Mh=H((WP,Dh)=>{Dh.exports=Nh;Nh.sync=vS;var Ph=require("fs");function ES(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 Ih(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:ES(e,r)}function Nh(t,e,r){Ph.stat(t,function(i,n){r(i,i?!1:Ih(n,t,e))})}function vS(t,e){return Ih(Ph.statSync(t),t,e)}});var qh=H((YP,Hh)=>{Hh.exports=Bh;Bh.sync=RS;var Fh=require("fs");function Bh(t,e,r){Fh.stat(t,function(i,n){r(i,i?!1:jh(n,e))})}function RS(t,e){return jh(Fh.statSync(t),e)}function jh(t,e){return t.isFile()&&xS(t,e)}function xS(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 $h=H((VP,Uh)=>{var KP=require("fs"),Vn;process.platform==="win32"||global.TESTING_WINDOWS?Vn=Mh():Vn=qh();Uh.exports=la;la.sync=AS;function la(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){la(t,e||{},function(s,o){s?n(s):i(o)})})}Vn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function AS(t,e){try{return Vn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Zh=H((ZP,Vh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Gh=require("path"),OS=ei?";":":",zh=$h(),Wh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Yh=(t,e)=>{let r=e.colon||OS,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}},Kh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Yh(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(Wh(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Gh.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];zh(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)},TS=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Yh(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=Gh.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(zh.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 Wh(t)};Vh.exports=Kh;Kh.sync=TS});var ua=H((XP,ca)=>{"use strict";var Xh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ca.exports=Xh;ca.exports.default=Xh});var tf=H((JP,ef)=>{"use strict";var Jh=require("path"),kS=Zh(),CS=ua();function Qh(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=kS.sync(t.command,{path:r[CS({env:r})],pathExt:e?Jh.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Jh.resolve(n?t.options.cwd:"",o)),o}function LS(t){return Qh(t)||Qh(t,!0)}ef.exports=LS});var rf=H((QP,fa)=>{"use strict";var ha=/([()\][%!^"`<>&|;, *?])/g;function PS(t){return t=t.replace(ha,"^$1"),t}function IS(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ha,"^$1"),e&&(t=t.replace(ha,"^$1")),t}fa.exports.command=PS;fa.exports.argument=IS});var sf=H((eI,nf)=>{"use strict";nf.exports=/^#!(.*)/});var af=H((tI,of)=>{"use strict";var NS=sf();of.exports=(t="")=>{let e=t.match(NS);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var cf=H((rI,lf)=>{"use strict";var pa=require("fs"),DS=af();function MS(t){let r=Buffer.alloc(150),i;try{i=pa.openSync(t,"r"),pa.readSync(i,r,0,150,0),pa.closeSync(i)}catch{}return DS(r.toString())}lf.exports=MS});var pf=H((iI,ff)=>{"use strict";var FS=require("path"),uf=tf(),hf=rf(),BS=cf(),jS=process.platform==="win32",HS=/\.(?:com|exe)$/i,qS=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function US(t){t.file=uf(t);let e=t.file&&BS(t.file);return e?(t.args.unshift(t.file),t.command=e,uf(t)):t.file}function $S(t){if(!jS)return t;let e=US(t),r=!HS.test(e);if(t.options.forceShell||r){let i=qS.test(e);t.command=FS.normalize(t.command),t.command=hf.command(t.command),t.args=t.args.map(s=>hf.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 GS(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:$S(i)}ff.exports=GS});var yf=H((nI,mf)=>{"use strict";var da=process.platform==="win32";function ma(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function zS(t,e){if(!da)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=df(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function df(t,e){return da&&t===1&&!e.file?ma(e.original,"spawn"):null}function WS(t,e){return da&&t===1&&!e.file?ma(e.original,"spawnSync"):null}mf.exports={hookChildProcess:zS,verifyENOENT:df,verifyENOENTSync:WS,notFoundError:ma}});var bf=H((sI,ti)=>{"use strict";var gf=require("child_process"),ya=pf(),ga=yf();function _f(t,e,r){let i=ya(t,e,r),n=gf.spawn(i.command,i.args,i.options);return ga.hookChildProcess(n,i),n}function YS(t,e,r){let i=ya(t,e,r),n=gf.spawnSync(i.command,i.args,i.options);return n.error=n.error||ga.verifyENOENTSync(n.status,i),n}ti.exports=_f;ti.exports.spawn=_f;ti.exports.sync=YS;ti.exports._parse=ya;ti.exports._enoent=ga});var Sf=H((oI,wf)=>{"use strict";wf.exports=t=>{let e=typeof t=="string"?`
2
2
  `:`
3
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Af=H((oL,rn)=>{"use strict";var tn=require("path"),wf=cu(),Sf=t=>{t={cwd:process.cwd(),path:process.env[wf()],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=Sf;rn.exports.default=Sf;rn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=wf({env:e});return t.path=e[r],e[r]=rn.exports(t),e}});var Cf=H((uL,Eu)=>{"use strict";var vf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Eu.exports=vf;Eu.exports.default=vf});var xf=H((aL,Jn)=>{"use strict";var K_=Cf(),Zn=new WeakMap,Rf=(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 K_(s,t),Zn.set(s,i),s};Jn.exports=Rf;Jn.exports.default=Rf;Jn.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 Ff=H(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SIGNALS=void 0;var V_=[{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"}];Xn.SIGNALS=V_});var Du=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var Z_=function(){let t=Tf-Of+1;return Array.from({length:t},J_)};ri.getRealtimeSignals=Z_;var J_=function(t,e){return{name:`SIGRT${e+1}`,number:Of+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Of=34,Tf=64;ri.SIGRTMAX=Tf});var kf=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getSignals=void 0;var X_=require("os"),Q_=Ff(),eb=Du(),tb=function(){let t=(0,eb.getRealtimeSignals)();return[...Q_.SIGNALS,...t].map(rb)};Qn.getSignals=tb;var rb=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=X_.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var Bf=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var ib=require("os"),Lf=kf(),nb=Du(),sb=function(){return(0,Lf.getSignals)().reduce(ob,{})},ob=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},ub=sb();ii.signalsByName=ub;var ab=function(){let t=(0,Lf.getSignals)(),e=nb.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>lb(n,t));return Object.assign({},...r)},lb=function(t,e){let r=cb(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},cb=function(t,e){let r=e.find(({name:i})=>ib.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},hb=ab();ii.signalsByNumber=hb});var If=H((pL,Pf)=>{"use strict";var{signalsByName:fb}=Bf(),pb=({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",db=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:l,killed:c,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:fb[n].description,d=i&&i.code,y=`Command ${pb({timedOut:a,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,E=Object.prototype.toString.call(i)==="[object Error]",v=E?`${y}
4
- ${i.message}`:y,F=[v,e,t].filter(Boolean).join(`
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};Pf.exports=db});var Mf=H((dL,_u)=>{"use strict";var es=["stdin","stdout","stderr"],mb=t=>es.some(e=>t[e]!==void 0),Nf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(mb(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])};_u.exports=Nf;_u.exports.node=t=>{let e=Nf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var jf=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 Gf=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)?(Hf=require("assert"),ni=jf(),qf=/^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(){};Hf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&bu();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=wu,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),qf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,bu=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=Uf,me.reallyExit=$f)},oi.exports.load=bu,wu=me.reallyExit,$f=function(e){xr(global.process)&&(me.exitCode=e||0,Fr("exit",me.exitCode,null),Fr("afterexit",me.exitCode,null),wu.call(me,me.exitCode))},ns=me.emit,Uf=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 Hf,ni,qf,nn,Ce,rs,Fr,is,si,bu,wu,$f,ns,Uf});var Wf=H((gL,zf)=>{"use strict";var yb=require("os"),gb=Gf(),Eb=1e3*5,Db=(t,e="SIGTERM",r={})=>{let i=t(e);return _b(t,e,r,i),i},_b=(t,e,r,i)=>{if(!bb(e,r,i))return;let n=Sb(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},bb=(t,{forceKillAfterTimeout:e},r)=>wb(t)&&e!==!1&&r,wb=t=>t===yb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Sb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Eb;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},Ab=(t,e)=>{t.kill()&&(e.isCanceled=!0)},vb=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Cb=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{vb(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},Rb=({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})`)},xb=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=gb(()=>{t.kill()});return i.finally(()=>{n()})};zf.exports={spawnedKill:Db,spawnedCancel:Ab,setupTimeout:Cb,validateTimeout:Rb,setExitHandler:xb}});var Kf=H((EL,Yf)=>{"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";Yf.exports=mt});var Zf=H((DL,Vf)=>{"use strict";var{PassThrough:Fb}=require("stream");Vf.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 Fb({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 Jf=H((_L,sn)=>{"use strict";var{constants:Ob}=require("buffer"),Tb=require("stream"),{promisify:kb}=require("util"),Lb=Zf(),Bb=kb(Tb.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Su(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=Lb(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=Ob.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await Bb(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}sn.exports=Su;sn.exports.buffer=(t,e)=>Su(t,{...e,encoding:"buffer"});sn.exports.array=(t,e)=>Su(t,{...e,array:!0});sn.exports.MaxBufferError=ss});var Qf=H((bL,Xf)=>{"use strict";var{PassThrough:Pb}=require("stream");Xf.exports=function(){var t=[],e=new Pb({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 ip=H((wL,rp)=>{"use strict";var tp=Kf(),ep=Jf(),Ib=Qf(),Nb=(t,e)=>{e===void 0||t.stdin===void 0||(tp(e)?e.pipe(t.stdin):t.stdin.end(e))},Mb=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Ib();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Au=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},vu=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ep(t,{encoding:e,maxBuffer:i}):ep.buffer(t,{maxBuffer:i})},jb=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=vu(t,{encoding:i,buffer:n,maxBuffer:s}),a=vu(e,{encoding:i,buffer:n,maxBuffer:s}),l=vu(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},Au(t,u),Au(e,a),Au(r,l)])}},Hb=({input:t})=>{if(tp(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};rp.exports={handleInput:Nb,makeAllStream:Mb,getSpawnedResult:jb,validateInputSync:Hb}});var sp=H((SL,np)=>{"use strict";var qb=(async()=>{})().constructor.prototype,$b=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(qb,t)]),Ub=(t,e)=>{for(let[r,i]of $b){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},Gb=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)})});np.exports={mergePromise:Ub,getSpawnedPromise:Gb}});var ap=H((AL,up)=>{"use strict";var op=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],zb=/^[\w.-]+$/,Wb=/"/g,Yb=t=>typeof t!="string"||zb.test(t)?t:`"${t.replace(Wb,'\\"')}"`,Kb=(t,e)=>op(t,e).join(" "),Vb=(t,e)=>op(t,e).map(r=>Yb(r)).join(" "),Zb=/ +/g,Jb=t=>{let e=[];for(let r of t.trim().split(Zb)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};up.exports={joinCommand:Kb,getEscapedCommand:Vb,parseCommand:Jb}});var ai=H((vL,ui)=>{"use strict";var Xb=require("path"),Cu=require("child_process"),Qb=Df(),ew=bf(),tw=Af(),rw=xf(),os=If(),cp=Mf(),{spawnedKill:iw,spawnedCancel:nw,setupTimeout:sw,validateTimeout:ow,setExitHandler:uw}=Wf(),{handleInput:aw,getSpawnedResult:lw,makeAllStream:cw,validateInputSync:hw}=ip(),{mergePromise:lp,getSpawnedPromise:fw}=sp(),{joinCommand:hp,parseCommand:fp,getEscapedCommand:pp}=ap(),pw=1e3*1e3*100,dw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?tw.env({env:s,cwd:i,execPath:n}):s},dp=(t,e,r={})=>{let i=Qb._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:pw,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=dw(r),r.stdio=cp(r),process.platform==="win32"&&Xb.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?ew(e):e,us=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);ow(i.options);let o;try{o=Cu.spawn(i.file,i.args,i.options)}catch(d){let g=new Cu.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 u=fw(o),a=sw(o,i.options,u),l=uw(o,i.options,a),c={isCanceled:!1};o.kill=iw.bind(null,o.kill.bind(o)),o.cancel=nw.bind(null,o,c);let f=rw(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:E},v,F,O]=await lw(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 aw(o,i.options.input),o.all=cw(o,i.options),lp(o,f)};ui.exports=us;ui.exports.sync=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);hw(i.options);let o;try{o=Cu.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]=fp(t);return us(r,i,e)};ui.exports.commandSync=(t,e)=>{let[r,...i]=fp(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=cp.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 gd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function PA(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=PA;function IA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=IA});var Ed=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function NA(t){return t.code==="ENOENT"}ds.isEnoentCodeError=NA});var Dd=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var $u=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 MA(t,e){return new $u(t,e)}ms.createDirentFromStats=MA});var _d=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var jA=require("path"),HA=2,qA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function $A(t){return t.replace(/\\/g,"/")}gt.unixify=$A;function UA(t,e){return jA.resolve(t,e)}gt.makeAbsolute=UA;function GA(t){return t.replace(qA,"\\$2")}gt.escape=GA;function zA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(HA)}return t}gt.removeLeadingDotSegment=zA});var wd=H((TL,bd)=>{bd.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 vd=H((kL,Ad)=>{var WA=wd(),Sd={"{":"}","(":")","[":"]"},YA=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=Sd[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},KA=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=Sd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(WA(e))return!0;var i=YA;return r&&r.strict===!1&&(i=KA),i(e)}});var Rd=H((LL,Cd)=>{"use strict";var VA=vd(),ZA=require("path").posix.dirname,JA=require("os").platform()==="win32",Uu="/",XA=/\\/g,QA=/[\{\[].*[\}\]]$/,ev=/(^|[^\\])([\{\[]|\([^\)]+$)/,tv=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Cd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&JA&&e.indexOf(Uu)<0&&(e=e.replace(XA,Uu)),QA.test(e)&&(e+=Uu),e+="a";do e=ZA(e);while(VA(e)||ev.test(e));return e.replace(tv,"$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,Fd)=>{"use strict";var xd=ys();Fd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&xd.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 Td=H((IL,Od)=>{"use strict";Od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Hd=H((NL,jd)=>{"use strict";var kd=Td(),kr=(t,e,r)=>{if(kd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(kd(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=Md(t)||Md(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=Ld(y,Math.abs(l),f,i),l=f.a=0}return c>=0&&(d=Ld(l,c,f,i)),f.negatives=g,f.positives=d,f.result=rv(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 rv(t,e,r){let i=Gu(t,e,"-",!1,r)||[],n=Gu(e,t,"",!1,r)||[],s=Gu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function iv(t,e){let r=1,i=1,n=Pd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Pd(t,r);for(n=Id(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Id(e+1,i)-1;return s=[...s],s.sort(ov),s}function nv(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=sv(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+=uv(a,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ld(t,e,r,i){let n=iv(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let l=n[a],c=nv(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+Nd(u.count),o=l+1;continue}r.isPadded&&(h=av(l,r,i)),c.string=h+c.pattern+Nd(c.count),s.push(c),o=l+1,u=c}return s}function Gu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Bd(e,"string",u)&&s.push(r+u),i&&Bd(e,"string",u)&&s.push(r+u)}return s}function sv(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function ov(t,e){return t>e?1:e>t?-1:0}function Bd(t,e,r){return t.some(i=>i[e]===r)}function Pd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Id(t,e){return t-t%Math.pow(10,e)}function Nd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function uv(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Md(t){return/^-?(0+)\d/.test(t)}function av(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={};jd.exports=kr});var Yu=H((ML,Kd)=>{"use strict";var lv=require("util"),Ud=Hd(),qd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),cv=t=>e=>t===!0?Number(e):String(e),zu=t=>typeof t=="number"||typeof t=="string"&&t!=="",fn=t=>Number.isInteger(+t),Wu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},hv=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,fv=(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},$d=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},pv=(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},Gd=(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}]`},zd=(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)},Wd=(...t)=>new RangeError("Invalid range arguments: "+lv.inspect(...t)),Yd=(t,e,r)=>{if(r.strictRanges===!0)throw Wd([t,e]);return[]},dv=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},mv=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Wd([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=Wu(u)||Wu(a)||Wu(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&hv(t,e,i)===!1,d=i.transform||cv(f);if(i.toRegex&&r===1)return Gd($d(t,h),$d(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(fv(d(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?pv(g,i):zd(E,null,{wrap:!1,...i}):E},yv=(t,e,r=1,i={})=>{if(!fn(t)&&t.length>1||!fn(e)&&e.length>1)return Yd(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 Gd(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?zd(c,null,{wrap:!1,options:i}):c},Es=(t,e,r,i={})=>{if(e==null&&zu(t))return[t];if(!zu(t)||!zu(e))return Yd(t,e,i);if(typeof r=="function")return Es(t,e,1,{transform:r});if(qd(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)?mv(t,e,r,n):yv(t,e,Math.max(Math.abs(r),1),n):r!=null&&!qd(r)?dv(r,n):Es(t,e,1,r)};Kd.exports=Es});var Jd=H((jL,Zd)=>{"use strict";var gv=Yu(),Vd=ys(),Ev=(t,e={})=>{let r=(i,n={})=>{let s=Vd.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=Vd.reduce(i.nodes),h=gv(...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)};Zd.exports=Ev});var em=H((HL,Qd)=>{"use strict";var Dv=Yu(),Xd=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)},_v=(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(),Xd(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=Dv(...h,e);f.length===0&&(f=Xd(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))};Qd.exports=_v});var rm=H((qL,tm)=>{"use strict";tm.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 um=H(($L,om)=>{"use strict";var bv=gs(),{MAX_LENGTH:im,CHAR_BACKSLASH:Ku,CHAR_BACKTICK:wv,CHAR_COMMA:Sv,CHAR_DOT:Av,CHAR_LEFT_PARENTHESES:vv,CHAR_RIGHT_PARENTHESES:Cv,CHAR_LEFT_CURLY_BRACE:Rv,CHAR_RIGHT_CURLY_BRACE:xv,CHAR_LEFT_SQUARE_BRACKET:nm,CHAR_RIGHT_SQUARE_BRACKET:sm,CHAR_DOUBLE_QUOTE:Fv,CHAR_SINGLE_QUOTE:Ov,CHAR_NO_BREAK_SPACE:Tv,CHAR_ZERO_WIDTH_NOBREAK_SPACE:kv}=rm(),Lv=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(im,r.maxLength):im;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===kv||f===Tv)){if(f===Ku){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===sm){y({type:"text",value:"\\"+f});continue}if(f===nm){a++;let E=!0,v;for(;c<l&&(v=g());){if(f+=v,v===nm){a++;continue}if(v===Ku){f+=g();continue}if(v===sm&&(a--,a===0))break}y({type:"text",value:f});continue}if(f===vv){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Cv){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===Fv||f===Ov||f===wv){let E=f,v;for(e.keepQuotes!==!0&&(f="");c<l&&(v=g());){if(v===Ku){f+=v+g();continue}if(v===E){e.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===Rv){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===xv){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===Sv&&h>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:bv(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Av&&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};om.exports=Lv});var cm=H((UL,lm)=>{"use strict";var am=gs(),Bv=Jd(),Pv=em(),Iv=um(),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={})=>Iv(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)),Bv(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Pv(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((GL,mm)=>{"use strict";var Nv=require("path"),Et="\\\\/",hm=`[^${Et}]`,Lt="\\.",Mv="\\+",jv="\\?",Ds="\\/",Hv="(?=.)",fm="[^/]",Vu=`(?:${Ds}|$)`,pm=`(?:^|${Ds})`,Zu=`${Lt}{1,2}${Vu}`,qv=`(?!${Lt})`,$v=`(?!${pm}${Zu})`,Uv=`(?!${Lt}{0,1}${Vu})`,Gv=`(?!${Zu})`,zv=`[^.${Ds}]`,Wv=`${fm}*?`,dm={DOT_LITERAL:Lt,PLUS_LITERAL:Mv,QMARK_LITERAL:jv,SLASH_LITERAL:Ds,ONE_CHAR:Hv,QMARK:fm,END_ANCHOR:Vu,DOTS_SLASH:Zu,NO_DOT:qv,NO_DOTS:$v,NO_DOT_SLASH:Uv,NO_DOTS_SLASH:Gv,QMARK_NO_DOT:zv,STAR:Wv,START_ANCHOR:pm},Yv={...dm,SLASH_LITERAL:`[${Et}]`,QMARK:hm,STAR:`${hm}*?`,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}]|$)`},Kv={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"};mm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Kv,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:Nv.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?Yv:dm}}});var dn=H($e=>{"use strict";var Vv=require("path"),Zv=process.platform==="win32",{REGEX_BACKSLASH:Jv,REGEX_REMOVE_BACKSLASH:Xv,REGEX_SPECIAL_CHARS:Qv,REGEX_SPECIAL_CHARS_GLOBAL:e1}=pn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>Qv.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(e1,"\\$1");$e.toPosixSlashes=t=>t.replace(Jv,"/");$e.removeBackslashes=t=>t.replace(Xv,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:Zv===!0||Vv.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 Sm=H((WL,wm)=>{"use strict";var ym=dn(),{CHAR_ASTERISK:Ju,CHAR_AT:t1,CHAR_BACKWARD_SLASH:mn,CHAR_COMMA:r1,CHAR_DOT:Xu,CHAR_EXCLAMATION_MARK:Qu,CHAR_FORWARD_SLASH:bm,CHAR_LEFT_CURLY_BRACE:ea,CHAR_LEFT_PARENTHESES:ta,CHAR_LEFT_SQUARE_BRACKET:i1,CHAR_PLUS:n1,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:s1,CHAR_RIGHT_PARENTHESES:Em,CHAR_RIGHT_SQUARE_BRACKET:o1}=pn(),Dm=t=>t===bm||t===mn,_m=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},u1=(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===ea&&(v=!0);continue}if(v===!0||S===ea){for(L++;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,U();continue}if(S===ea){L++;continue}if(v!==!0&&S===Xu&&(S=U())===Xu){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(v!==!0&&S===r1){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===s1&&(L--,L===0)){v=!1,f=N.isBrace=!0,R=!0;break}}if(n===!0)continue;break}if(S===bm){if(s.push(l),o.push(N),N={value:"",depth:0,isGlob:!1},R===!0)continue;if(_===Xu&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(S===n1||S===t1||S===Ju||S===gm||S===Qu)===!0&&k()===ta){if(g=N.isGlob=!0,y=N.isExtglob=!0,R=!0,S===Qu&&l===c&&(x=!0),n===!0){for(;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,S=U();continue}if(S===Em){g=N.isGlob=!0,R=!0;break}}continue}break}if(S===Ju){if(_===Ju&&(E=N.isGlobstar=!0),g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===gm){if(g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===i1){for(;q()!==!0&&(T=U());){if(T===mn){F=N.backslashes=!0,U();continue}if(T===o1){d=N.isBracket=!0,g=N.isGlob=!0,R=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===Qu&&l===c){O=N.negated=!0,c++;continue}if(r.noparen!==!0&&S===ta){if(g=N.isGlob=!0,n===!0){for(;q()!==!0&&(S=U());){if(S===ta){F=N.backslashes=!0,S=U();continue}if(S===Em){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&&Dm(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(B&&(B=ym.removeBackslashes(B)),K&&F===!0&&(K=ym.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,Dm(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,_m(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,_m(o[o.length-1]),C.maxDepth+=o[o.length-1].depth)}C.slashes=s,C.parts=u}return C};wm.exports=u1});var Cm=H((YL,vm)=>{"use strict";var _s=pn(),Ve=dn(),{MAX_LENGTH:bs,POSIX_REGEX_SOURCE:a1,REGEX_NON_SPECIAL_CHARS:l1,REGEX_SPECIAL_CHARS_BACKREF:c1,REPLACEMENTS:Am}=_s,h1=(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`,ra=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(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=ra(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(c1,(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=a1[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=h1(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=l1.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};ra.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=Am[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}?`),_};vm.exports=ra});var xm=H((KL,Rm)=>{"use strict";var f1=require("path"),p1=Sm(),ia=Cm(),na=dn(),d1=pn(),m1=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=m1(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=na.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?na.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=na.isWindows(r))=>(e instanceof RegExp?e:De.makeRe(e,r)).test(f1.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)):ia(t,{...e,fastpaths:!1});De.scan=(t,e)=>p1(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=ia.fastpaths(t,e)),n.output||(n=ia(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=d1;Rm.exports=De});var Om=H((VL,Fm)=>{"use strict";Fm.exports=xm()});var Pm=H((ZL,Bm)=>{"use strict";var km=require("util"),Lm=cm(),Dt=Om(),sa=dn(),Tm=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: "${km.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Tm(t)||Tm(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(!sa.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: "${km.inspect(t)}"`);return[].concat(e).every(i=>Dt(i,r)(t))};ye.capture=(t,e,r)=>{let i=sa.isWindows(r),s=Dt.makeRe(String(t),{...r,capture:!0}).exec(i?sa.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 Lm(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]:Lm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Bm.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 y1=require("path"),g1=Rd(),oa=Pm(),Im="**",E1="\\",D1=/[*?]|^!/,_1=/\[[^[]*]/,b1=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,w1=/[!*+?@]\([^(]*\)/,S1=/,|\.\./;function Nm(t,e={}){return!Mm(t,e)}ne.isStaticPattern=Nm;function Mm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(E1)||D1.test(t)||_1.test(t)||b1.test(t)||e.extglob!==!1&&w1.test(t)||e.braceExpansion!==!1&&A1(t))}ne.isDynamicPattern=Mm;function A1(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 S1.test(i)}function v1(t){return ws(t)?t.slice(1):t}ne.convertToPositivePattern=v1;function C1(t){return"!"+t}ne.convertToNegativePattern=C1;function ws(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ws;function jm(t){return!ws(t)}ne.isPositivePattern=jm;function R1(t){return t.filter(ws)}ne.getNegativePatterns=R1;function x1(t){return t.filter(jm)}ne.getPositivePatterns=x1;function F1(t){return t.filter(e=>!ua(e))}ne.getPatternsInsideCurrentDirectory=F1;function O1(t){return t.filter(ua)}ne.getPatternsOutsideCurrentDirectory=O1;function ua(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=ua;function T1(t){return g1(t,{flipBackslashes:!1})}ne.getBaseDirectory=T1;function k1(t){return t.includes(Im)}ne.hasGlobStar=k1;function Hm(t){return t.endsWith("/"+Im)}ne.endsWithSlashGlobStar=Hm;function L1(t){let e=y1.basename(t);return Hm(t)||Nm(e)}ne.isAffectDepthOfReadingPattern=L1;function B1(t){return t.reduce((e,r)=>e.concat(qm(r)),[])}ne.expandPatternsWithBraceExpansion=B1;function qm(t){return oa.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=qm;function P1(t,e){let{parts:r}=oa.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=P1;function $m(t,e){return oa.makeRe(t,e)}ne.makeRe=$m;function I1(t,e){return t.map(r=>$m(r,e))}ne.convertPatternsToRe=I1;function N1(t,e){return e.some(r=>r.test(t))}ne.matchAny=N1});var Ym=H((XL,Wm)=>{"use strict";var M1=require("stream"),Gm=M1.PassThrough,j1=Array.prototype.slice;Wm.exports=H1;function H1(){let t=[],e=j1.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=Gm(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(zm(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 zm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=zm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vm=H(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.merge=void 0;var q1=Ym();function $1(t){let e=q1(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Km(t)),e.once("end",()=>Km(t)),e}Ss.merge=$1;function Km(t){t.forEach(e=>e.emit("close"))}});var Zm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function U1(t){return typeof t=="string"}yi.isString=U1;function G1(t){return t===""}yi.isEmpty=G1});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 z1=gd();Te.array=z1;var W1=Ed();Te.errno=W1;var Y1=Dd();Te.fs=Y1;var K1=_d();Te.path=K1;var V1=Um();Te.pattern=V1;var Z1=Vm();Te.stream=Z1;var J1=Zm();Te.string=J1});var Qm=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 X1(t,e){let r=Jm(t),i=Xm(t,e.ignore),n=r.filter(a=>Pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Pt.pattern.isDynamicPattern(a,e)),o=aa(n,i,!1),u=aa(s,i,!0);return o.concat(u)}ke.generate=X1;function aa(t,e,r){let i=[],n=Pt.pattern.getPatternsOutsideCurrentDirectory(t),s=Pt.pattern.getPatternsInsideCurrentDirectory(t),o=la(n),u=la(s);return i.push(...ca(o,e,r)),"."in u?i.push(ha(".",s,e,r)):i.push(...ca(u,e,r)),i}ke.convertPatternsToTasks=aa;function Jm(t){return Pt.pattern.getPositivePatterns(t)}ke.getPositivePatterns=Jm;function Xm(t,e){return Pt.pattern.getNegativePatterns(t).concat(e).map(Pt.pattern.convertToPositivePattern)}ke.getNegativePatternsAsPositive=Xm;function la(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=la;function ca(t,e,r){return Object.keys(t).map(i=>ha(i,t[i],e,r))}ke.convertPatternGroupsToTasks=ca;function ha(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pt.pattern.convertToNegativePattern))}}ke.convertPatternGroupToTask=ha});var t0=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var Q1=/(?!^)\/{2,}/g;function eC(t){return t.map(e=>e0(e))}gi.transform=eC;function e0(t){return t.replace(Q1,"/")}gi.removeDuplicateSlashes=e0});var i0=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.read=void 0;function tC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){r0(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fa(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r0(r,s);return}fa(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fa(r,o)})})}As.read=tC;function r0(t,e){t(e)}function fa(t,e){t(null,e)}});var n0=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.read=void 0;function rC(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=rC});var s0=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 iC(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=iC});var o0=H(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var nC=s0(),pa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=nC.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}};da.default=pa});var Br=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var u0=i0(),sC=n0(),ma=o0();ir.Settings=ma.default;function oC(t,e,r){if(typeof e=="function"){u0.read(t,ya(),e);return}u0.read(t,ya(e),r)}ir.stat=oC;function uC(t,e){let r=ya(e);return sC.read(t,r)}ir.statSync=uC;function ya(t={}){return t instanceof ma.default?t:new ma.default(t)}});var c0=H((lB,l0)=>{var a0;l0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(a0||(a0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var f0=H((cB,h0)=>{h0.exports=lC;var aC=c0();function lC(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?aC(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 ga=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 p0=Number.parseInt(Rs[0],10),cC=Number.parseInt(Rs[1],10),d0=10,hC=10,fC=p0>d0,pC=p0===d0&&cC>=hC;xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fC||pC});var m0=H(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var Ea=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 dC(t,e){return new Ea(t,e)}Fs.createDirentFromStats=dC});var Da=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.fs=void 0;var mC=m0();Os.fs=mC});var _a=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.joinPathSegments=void 0;function yC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ts.joinPathSegments=yC});var b0=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var gC=Br(),y0=f0(),EC=ga(),g0=Da(),E0=_a();function DC(t,e,r){if(!e.stats&&EC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){D0(t,e,r);return}_0(t,e,r)}nr.read=DC;function D0(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:E0.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ba(r,s);return}let o=s.map(u=>_C(u,e));y0(o,(u,a)=>{if(u!==null){ks(r,u);return}ba(r,a)})})}nr.readdirWithFileTypes=D0;function _C(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=g0.fs.createDirentFromStats(t.name,n),r(null,t)})}}function _0(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(o=>{let u=E0.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{gC.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:g0.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});y0(s,(o,u)=>{if(o!==null){ks(r,o);return}ba(r,u)})})}nr.readdir=_0;function ks(t,e){t(e)}function ba(t,e){t(null,e)}});var C0=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var bC=Br(),wC=ga(),w0=Da(),S0=_a();function SC(t,e){return!e.stats&&wC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?A0(t,e):v0(t,e)}sr.read=SC;function A0(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:S0.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=w0.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=A0;function v0(t,e){return e.fs.readdirSync(t).map(i=>{let n=S0.joinPathSegments(t,i,e.pathSegmentSeparator),s=bC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:w0.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=v0});var R0=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 AC(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=AC});var x0=H(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var vC=require("path"),CC=Br(),RC=R0(),wa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=RC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new CC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Sa.default=wa});var Ls=H(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Settings=ur.scandirSync=ur.scandir=void 0;var F0=b0(),xC=C0(),Aa=x0();ur.Settings=Aa.default;function FC(t,e,r){if(typeof e=="function"){F0.read(t,va(),e);return}F0.read(t,va(e),r)}ur.scandir=FC;function OC(t,e){let r=va(e);return xC.read(t,r)}ur.scandirSync=OC;function va(t={}){return t instanceof Aa.default?t:new Aa.default(t)}});var T0=H((_B,O0)=>{"use strict";function TC(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}}O0.exports=TC});var L0=H((bB,Ca)=>{"use strict";var kC=T0();function k0(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=kC(LC),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 LC(){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 BC(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=k0(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}}Ca.exports=k0;Ca.exports.promise=BC});var Bs=H(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.joinPathSegments=_t.replacePathSegmentSeparator=_t.isAppliedFilter=_t.isFatalError=void 0;function PC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}_t.isFatalError=PC;function IC(t,e){return t===null||t(e)}_t.isAppliedFilter=IC;function NC(t,e){return t.split(/[/\\]/).join(e)}_t.replacePathSegmentSeparator=NC;function MC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}_t.joinPathSegments=MC});var Fa=H(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var jC=Bs(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=jC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};xa.default=Ra});var ka=H(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var HC=require("events"),qC=Ls(),$C=L0(),Ps=Bs(),UC=Fa(),Oa=class extends UC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=qC.scandir,this._emitter=new HC.EventEmitter,this._queue=$C(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)}};Ta.default=Oa});var B0=H(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var GC=ka(),La=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new GC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{zC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{WC(e,this._storage)}),this._reader.read()}};Ba.default=La;function zC(t,e){t(e)}function WC(t,e){t(null,e)}});var P0=H(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var YC=require("stream"),KC=ka(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new KC.default(this._root,this._settings),this._stream=new YC.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}};Ia.default=Pa});var I0=H(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var VC=Ls(),Is=Bs(),ZC=Fa(),Na=class extends ZC.default{constructor(){super(...arguments),this._scandir=VC.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)}};Ma.default=Na});var N0=H(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var JC=I0(),ja=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JC.default(this._root,this._settings)}read(){return this._reader.read()}};Ha.default=ja});var M0=H($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var XC=require("path"),QC=Ls(),qa=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,XC.sep),this.fsScandirSettings=new QC.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}};$a.default=qa});var Ms=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Settings=bt.walkStream=bt.walkSync=bt.walk=void 0;var j0=B0(),eR=P0(),tR=N0(),Ua=M0();bt.Settings=Ua.default;function rR(t,e,r){if(typeof e=="function"){new j0.default(t,Ns()).read(e);return}new j0.default(t,Ns(e)).read(r)}bt.walk=rR;function iR(t,e){let r=Ns(e);return new tR.default(t,r).read()}bt.walkSync=iR;function nR(t,e){let r=Ns(e);return new eR.default(t,r).read()}bt.walkStream=nR;function Ns(t={}){return t instanceof Ua.default?t:new Ua.default(t)}});var js=H(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var sR=require("path"),oR=Br(),H0=Bt(),Ga=class{constructor(e){this._settings=e,this._fsStatSettings=new oR.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return sR.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:H0.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!H0.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};za.default=Ga});var Ka=H(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var uR=require("stream"),aR=Br(),lR=Ms(),cR=js(),Wa=class extends cR.default{constructor(){super(...arguments),this._walkStream=lR.walkStream,this._stat=aR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new uR.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))})}};Ya.default=Wa});var q0=H(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var hR=Ms(),fR=js(),pR=Ka(),Va=class extends fR.default{constructor(){super(...arguments),this._walkAsync=hR.walk,this._readerStream=new pR.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))})}};Za.default=Va});var $0=H(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Di=Bt(),Ja=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))}};Xa.default=Ja});var U0=H(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var dR=$0(),Qa=class extends dR.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}};el.default=Qa});var G0=H(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Hs=Bt(),mR=U0(),tl=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 mR.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)}};rl.default=tl});var z0=H(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var Pr=Bt(),il=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}};nl.default=il});var W0=H(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var yR=Bt(),sl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return yR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ol.default=sl});var K0=H(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Y0=Bt(),ul=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Y0.path.makeAbsolute(this._settings.cwd,r),r=Y0.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};al.default=ul});var qs=H(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var gR=require("path"),ER=G0(),DR=z0(),_R=W0(),bR=K0(),ll=class{constructor(e){this._settings=e,this.errorFilter=new _R.default(this._settings),this.entryFilter=new DR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ER.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new bR.default(this._settings)}_getRootDirectory(e){return gR.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}}};cl.default=ll});var V0=H(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var wR=q0(),SR=qs(),hl=class extends SR.default{constructor(){super(...arguments),this._reader=new wR.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)}};fl.default=hl});var Z0=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var AR=require("stream"),vR=Ka(),CR=qs(),pl=class extends CR.default{constructor(){super(...arguments),this._reader=new vR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new AR.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)}};dl.default=pl});var J0=H(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var RR=Br(),xR=Ms(),FR=js(),ml=class extends FR.default{constructor(){super(...arguments),this._walkSync=xR.walkSync,this._statSync=RR.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)}};yl.default=ml});var X0=H(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var OR=J0(),TR=qs(),gl=class extends TR.default{constructor(){super(...arguments),this._reader=new OR.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)}};El.default=gl});var Q0=H(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs"),kR=require("os"),LR=Math.max(kR.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 Dl=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,LR),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=Dl});var $s=H((WB,ry)=>{"use strict";var ey=Qm(),ty=t0(),BR=V0(),PR=Z0(),IR=X0(),_l=Q0(),Ir=Bt();async function bl(t,e){wi(t);let r=wl(t,BR.default,e),i=await Promise.all(r);return Ir.array.flatten(i)}(function(t){function e(o,u){wi(o);let a=wl(o,IR.default,u);return Ir.array.flatten(a)}t.sync=e;function r(o,u){wi(o);let a=wl(o,PR.default,u);return Ir.stream.merge(a)}t.stream=r;function i(o,u){wi(o);let a=ty.transform([].concat(o)),l=new _l.default(u);return ey.generate(a,l)}t.generateTasks=i;function n(o,u){wi(o);let a=new _l.default(u);return Ir.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return wi(o),Ir.path.escape(o)}t.escapePath=s})(bl||(bl={}));function wl(t,e,r){let i=ty.transform([].concat(t)),n=new _l.default(r),s=ey.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")}ry.exports=bl});var Ny=H((dP,Mt)=>{function Pl(t){return Mt.exports=Pl=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,Pl(t)}Mt.exports=Pl,Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports});var Hy=H((mP,jt)=>{var My=Ny().default;function jy(){"use strict";jt.exports=jy=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&&My(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(My(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=jy,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var $y=H((yP,qy)=>{var Vs=Hy()();qy.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var Fi=H((aI,ig)=>{"use strict";var rg=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"]]);ig.exports=t=>t?Object.keys(t).map(e=>[rg.has(e)?rg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=H((lI,fg)=>{"use strict";var ng=typeof process=="object"&&process?process:{stdout:null,stderr:null},UF=require("events"),sg=require("stream"),og=require("string_decoder").StringDecoder,qt=Symbol("EOF"),$t=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Js=Symbol("emittingEnd"),Rn=Symbol("emittedError"),Xs=Symbol("closed"),ug=Symbol("read"),Qs=Symbol("flush"),ag=Symbol("flushChunk"),Ge=Symbol("encoding"),Ut=Symbol("decoder"),eo=Symbol("flowing"),xn=Symbol("paused"),Oi=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),Ul=Symbol("bufferPush"),Gl=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),zl=Symbol("emitData"),lg=Symbol("emitEnd"),Wl=Symbol("emitEnd2"),Gt=Symbol("async"),Fn=t=>Promise.resolve().then(t),cg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GF=cg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),zF=cg&&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),to=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()}},Yl=class extends to{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)}};fg.exports=class hg extends sg{constructor(e){super(),this[eo]=!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 og(this[Ge]):null,this[qt]=!1,this[dr]=!1,this[Js]=!1,this[Xs]=!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 og(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[Qs](!0),this.flowing?this.emit("data",e):this[Ul](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[Qs](!0),this.flowing?this.emit("data",e):this[Ul](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[ug](e||null,this[_e][0]);return this[$t](),r}[ug](e,r){return e===r.length||e===null?this[Gl]():(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[eo]=!0,this.emit("resume"),this[_e].length?this[Qs]():this[qt]?this[$t]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[eo]=!1,this[xn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[eo]}get paused(){return this[xn]}[Ul](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[Gl](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Qs](e){do;while(this[ag](this[Gl]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[ag](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===ng.stdout||e===ng.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new Yl(this,e,r):new to(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[Js]&&!this[dr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Js]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Js]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[Gt]?Fn(()=>this[zl](r)):this[zl](r):!1;if(e==="end")return this[lg]();if(e==="close"){if(this[Xs]=!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}[zl](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$t](),r}[lg](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?Fn(()=>this[Wl]()):this[Wl]())}[Wl](){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[Xs]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof hg||e instanceof sg||e instanceof UF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var dg=H((cI,pg)=>{var VF=require("zlib").constants||{ZLIB_VERNUM:4736};pg.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 Ql=H((hI,Sg)=>{"use strict";var mg=typeof process=="object"&&process?process:{stdout:null,stderr:null},ZF=require("events"),yg=require("stream"),gg=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),On=Symbol("emittedError"),no=Symbol("closed"),Eg=Symbol("read"),so=Symbol("flush"),Dg=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),oo=Symbol("flowing"),Tn=Symbol("paused"),Ti=Symbol("resume"),xe=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Vl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Zl=Symbol("emitData"),_g=Symbol("emitEnd"),Jl=Symbol("emitEnd2"),Kt=Symbol("async"),kn=t=>Promise.resolve().then(t),bg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",JF=bg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),XF=bg&&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),uo=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()}},Xl=class extends uo{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)}};Sg.exports=class wg extends yg{constructor(e){super(),this[oo]=!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 gg(this[ze]):null,this[zt]=!1,this[mr]=!1,this[io]=!1,this[no]=!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 gg(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[so](!0),this.flowing?this.emit("data",e):this[Kl](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[so](!0),this.flowing?this.emit("data",e):this[Kl](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[Eg](e||null,this.buffer[0]);return this[Wt](),r}[Eg](e,r){return e===r.length||e===null?this[Vl]():(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[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[oo]=!1,this[Tn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[oo]}get paused(){return this[Tn]}[Kl](e){this[Ie]?this[xe]+=1:this[xe]+=e.length,this.buffer.push(e)}[Vl](){return this.buffer.length&&(this[Ie]?this[xe]-=1:this[xe]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[Dg](this[Vl]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[Dg](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===mg.stdout||e===mg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Xl(this,e,r):new uo(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[io]&&!this[mr]&&!this[Ne]&&this.buffer.length===0&&this[zt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?kn(()=>this[Zl](r)):this[Zl](r):!1;if(e==="end")return this[_g]();if(e==="close"){if(this[no]=!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}[Zl](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]?kn(()=>this[Jl]()):this[Jl]())}[Jl](){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[no]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof wg||e instanceof yg||e instanceof ZF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=H(Je=>{"use strict";var nc=require("assert"),yr=require("buffer").Buffer,Cg=require("zlib"),qr=Je.constants=dg(),rO=Ql(),Ag=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"),vg=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),pe=Symbol("handle"),ao=Symbol("onError"),ki=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),fI=Symbol("_defaultFullFlush"),lo=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[rc]=!1,this[iO]=e,this[Ln]=e.flush,this[vg]=e.finishFlush;try{this[pe]=new Cg[r](e)}catch(i){throw new Li(i)}this[ao]=i=>{this[ki]||(this[ki]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ao](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 nc(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(yr.alloc(0),{[Ln]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[vg]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[ki])return;nc(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=Ag}catch(l){yr.concat=Ag,this[ao](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[ao](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 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[dc]=qr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=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[ec]!==e||this[tc]!==r){this.flush(qr.Z_SYNC_FLUSH),nc(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[ec]=e,this[tc]=r)}}}},sc=class extends Vt{constructor(e){super(e,"Deflate")}},oc=class extends Vt{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),uc=class extends Vt{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[$r](e){return this[ic]?(this[ic]=!1,e[9]=255,super[$r](e)):super[$r](e)}},ac=class extends Vt{constructor(e){super(e,"Gunzip")}},lc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},cc=class extends Vt{constructor(e){super(e,"InflateRaw")}},hc=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[dc]=qr.BROTLI_OPERATION_FLUSH}},fc=class extends co{constructor(e){super(e,"BrotliCompress")}},pc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Je.Deflate=sc;Je.Inflate=oc;Je.Gzip=uc;Je.Gunzip=ac;Je.DeflateRaw=lc;Je.InflateRaw=cc;Je.Unzip=hc;typeof Cg.BrotliCompress=="function"?(Je.BrotliCompress=fc,Je.BrotliDecompress=pc):Je.BrotliCompress=Je.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Bi=H((mI,Rg)=>{var nO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Rg.exports=nO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=H((gI,xg)=>{"use strict";var sO=ro(),yc=Bi(),gc=Symbol("slurp");xg.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=yc(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=yc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[gc](r),i&&this[gc](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))}[gc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yc(e[i]):e[i])}}});var Ec=H(fo=>{"use strict";fo.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"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var kg=H((DI,Tg)=>{"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]=Fg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Og(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=Fg(s):s===0?o=s:(i=!0,o=Og(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},Fg=t=>(255^t)&255,Og=t=>(255^t)+1&255;Tg.exports={encode:oO,parse:lO}});var Ii=H((_I,Bg)=>{"use strict";var Dc=Ec(),Pi=require("path").posix,Lg=kg(),_c=Symbol("slurp"),Xe=Symbol("type"),Sc=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=bc(e,r+136,12),this.cksum=gr(e,r+148,12),this[_c](i),this[_c](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=bc(e,r+476,12),this.ctime=bc(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)}[_c](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=wc(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=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(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 Dc.name.get(this[Xe])||this[Xe]}get typeKey(){return this[Xe]}set type(e){Dc.code.has(e)?this[Xe]=Dc.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.*/,""),bc=(t,e,r)=>pO(gr(t,e,r)),pO=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?Lg.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?(Lg.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",wc=(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);Bg.exports=Sc});var po=H((bI,Pg)=>{"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}};Bn.parse=(t,e,r)=>new Bn(SO(AO(t),e),r);var SO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,AO=t=>t.replace(/\n$/,"").split(`
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};Pg.exports=Bn});var Ni=H((wI,Ig)=>{Ig.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 mo=H((SI,Ng)=>{"use strict";Ng.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 vc=H((vI,Mg)=>{"use strict";var yo=["|","<",">","?",":"],Ac=yo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),CO=new Map(yo.map((t,e)=>[t,Ac[e]])),RO=new Map(Ac.map((t,e)=>[t,yo[e]]));Mg.exports={encode:t=>yo.reduce((e,r)=>e.split(r).join(CO.get(r)),t),decode:t=>Ac.reduce((e,r)=>e.split(r).join(RO.get(r)),t)}});var Cc=H((CI,Hg)=>{var{isAbsolute:xO,parse:jg}=require("path").win32;Hg.exports=t=>{let e="",r=jg(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=jg(t)}return[e,t]}});var $g=H((RI,qg)=>{"use strict";qg.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 Ic=H((OI,rE)=>{"use strict";var Vg=ro(),Zg=po(),Jg=Ii(),Rt=require("fs"),Ug=require("path"),Ct=Bi(),FO=Ni(),Xg=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),FO(e)+"/"+t):Ct(t),OO=16*1024*1024,Gg=Symbol("process"),zg=Symbol("file"),Wg=Symbol("directory"),xc=Symbol("symlink"),Yg=Symbol("hardlink"),Pn=Symbol("header"),go=Symbol("read"),Fc=Symbol("lstat"),Eo=Symbol("onlstat"),Oc=Symbol("onread"),Tc=Symbol("onreadlink"),kc=Symbol("openfile"),Lc=Symbol("onopenfile"),Dr=Symbol("close"),Do=Symbol("mode"),Bc=Symbol("awaitDrain"),Rc=Symbol("ondrain"),xt=Symbol("prefix"),Kg=Symbol("hadError"),Qg=mo(),TO=vc(),eE=Cc(),tE=$g(),_o=Qg(class extends Vg{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]=eE(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||Ug.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[Eo](this.statCache.get(this.absolute)):this[Fc]()}emit(e,...r){return e==="error"&&(this[Kg]=!0),super.emit(e,...r)}[Fc](){Rt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Eo](r)})}[Eo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=LO(e),this.emit("stat",e),this[Gg]()}[Gg](){switch(this.type){case"File":return this[zg]();case"Directory":return this[Wg]();case"SymbolicLink":return this[xc]();default:return this.end()}}[Do](e){return tE(e,this.type==="Directory",this.portable)}[xt](e){return Xg(e,this.prefix)}[Pn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Jg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this[Do](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 Zg({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)}[Wg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pn](),this.end()}[xc](){Rt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Tc](r)})}[Tc](e){this.linkpath=Ct(e),this[Pn](),this.end()}[Yg](e){this.type="Link",this.linkpath=Ct(Ug.relative(this.cwd,e)),this.stat.size=0,this[Pn](),this.end()}[zg](){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[Yg](r)}this.linkCache.set(e,this.absolute)}if(this[Pn](),this.stat.size===0)return this.end();this[kc]()}[kc](){Rt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Lc](r)})}[Lc](e){if(this.fd=e,this[Kg])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[go]()}[go](){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[Oc](u)})}[Dr](e){Rt.close(this.fd,e)}[Oc](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[Rc]():this[Bc](()=>this[Rc]())}[Bc](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)}[Rc](){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[go]()}}),Pc=class extends _o{[Fc](){this[Eo](Rt.lstatSync(this.absolute))}[xc](){this[Tc](Rt.readlinkSync(this.absolute))}[kc](){this[Lc](Rt.openSync(this.absolute,"r"))}[go](){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[Oc](u),e=!1}finally{if(e)try{this[Dr](()=>{})}catch{}}}[Bc](e){e()}[Dr](e){Rt.closeSync(this.fd),e()}},kO=Qg(class extends Vg{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[Do](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]=eE(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Jg({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 Zg({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 Xg(e,this.prefix)}[Do](e){return tE(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()}});_o.Sync=Pc;_o.Tar=kO;var LO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";rE.exports=_o});var nE=H((TI,iE)=>{"use strict";iE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Nc=H((kI,sE)=>{"use strict";sE.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{nE()(oe)}catch{}});var Fo=H((BI,fE)=>{"use strict";var Ro=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=ro(),MO=mc(),jO=ho(),Wc=Ic(),HO=Wc.Sync,qO=Wc.Tar,$O=Nc(),oE=Buffer.alloc(1024),So=Symbol("onStat"),bo=Symbol("ended"),Ft=Symbol("queue"),Mi=Symbol("current"),Wr=Symbol("process"),wo=Symbol("processing"),uE=Symbol("processJob"),Ot=Symbol("jobs"),Mc=Symbol("jobDone"),Ao=Symbol("addFSEntry"),aE=Symbol("addTarEntry"),$c=Symbol("stat"),Uc=Symbol("readdir"),vo=Symbol("onreaddir"),Co=Symbol("pipe"),lE=Symbol("entry"),jc=Symbol("entryOpt"),Gc=Symbol("writeEntryClass"),hE=Symbol("write"),Hc=Symbol("ondrain"),xo=require("fs"),cE=require("path"),UO=mo(),qc=Bi(),Yc=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=qc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gc]=Wc,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[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),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[wo]=!1,this[bo]=!1}[hE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[bo]=!0,this[Wr](),this}write(e){if(this[bo])throw new Error("write after end");return e instanceof jO?this[aE](e):this[Ao](e),this.flowing}[aE](e){let r=qc(cE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ro(e.path,r,!1);i.entry=new qO(e,this[jc](i)),i.entry.on("end",n=>this[Mc](i)),this[Ot]+=1,this[Ft].push(i)}this[Wr]()}[Ao](e){let r=qc(cE.resolve(this.cwd,e));this[Ft].push(new Ro(e,r)),this[Wr]()}[$c](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";xo[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[So](e,n)})}[So](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Uc](e){e.pending=!0,this[Ot]+=1,xo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[vo](e,i)})}[vo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[wo]){this[wo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[uE](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[wo]=!1,this[bo]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(oE):(super.write(oE),super.end()))}}get[Mi](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Mc](e){this[Ft].shift(),this[Ot]-=1,this[Wr]()}[uE](e){if(!e.pending){if(e.entry){e===this[Mi]&&!e.piped&&this[Co](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[So](e,this.statCache.get(e.absolute)):this[$c](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vo](e,this.readdirCache.get(e.absolute)):this[Uc](e),!e.readdir))){if(e.entry=this[lE](e),!e.entry){e.ignore=!0;return}e===this[Mi]&&!e.piped&&this[Co](e)}}}[jc](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}}[lE](e){this[Ot]+=1;try{return new this[Gc](e.path,this[jc](e)).on("end",()=>this[Mc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[Mi]&&this[Mi].entry&&this[Mi].entry.resume()}[Co](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),zc=class extends Yc{constructor(e){super(e),this[Gc]=HO}pause(){}resume(){}[$c](e){let r=this.follow?"statSync":"lstatSync";this[So](e,xo[r](e.absolute))}[Uc](e,r){this[vo](e,xo.readdirSync(e.absolute))}[Co](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[hE](n)})}};Yc.Sync=zc;fE.exports=Yc});var Wi=H(Nn=>{"use strict";var GO=Ql(),zO=require("events").EventEmitter,We=require("fs"),Zc=We.writev;if(!Zc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zc=(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"),pE=Symbol("_finished"),br=Symbol("_flags"),Kc=Symbol("_flush"),Jc=Symbol("_handleChunk"),Xc=Symbol("_makeBuf"),Bo=Symbol("_mode"),Oo=Symbol("_needDrain"),$i=Symbol("_onerror"),zi=Symbol("_onopen"),Vc=Symbol("_onread"),Hi=Symbol("_onwrite"),wr=Symbol("_open"),Zt=Symbol("_path"),Yr=Symbol("_pos"),Tt=Symbol("_queue"),qi=Symbol("_read"),dE=Symbol("_readSize"),_r=Symbol("_reading"),To=Symbol("_remain"),mE=Symbol("_size"),ko=Symbol("_write"),ji=Symbol("_writing"),Lo=Symbol("_defaultFlag"),Ui=Symbol("_errored"),Po=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[dE]=r.readSize||16*1024*1024,this[_r]=!1,this[mE]=typeof r.size=="number"?r.size:1/0,this[To]=this[mE],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]())}[Xc](){return Buffer.allocUnsafe(Math.min(this[dE],this[To]))}[qi](){if(!this[_r]){this[_r]=!0;let e=this[Xc]();if(e.length===0)return process.nextTick(()=>this[Vc](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Vc](r,i,n))}}[Vc](e,r,i){this[_r]=!1,e?this[$i](e):this[Jc](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)}[Jc](e,r){let i=!1;return this[To]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[To]<=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)}}},Qc=class extends Po{[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[Xc](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Jc](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")}}},Io=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[Oo]=!1,this[Tt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Bo]=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[Lo]=r.flags===void 0,this[br]=this[Lo]?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[Bo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Lo]&&this[br]==="r+"&&e&&e.code==="ENOENT"?(this[br]="w",this[wr]()):e?this[$i](e):(this[he]=r,this.emit("open",r),this[Kc]())}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[Oo]=!0,!1):(this[ji]=!0,this[ko](e),!0)}[ko](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[Kc]():(this[ji]=!1,this[In]&&!this[pE]?(this[pE]=!0,this[ft](),this.emit("finish")):this[Oo]&&(this[Oo]=!1,this.emit("drain"))))}[Kc](){if(this[Tt].length===0)this[In]&&this[Hi](null,0);else if(this[Tt].length===1)this[ko](this[Tt].pop());else{let e=this[Tt];this[Tt]=[],Zc(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"))}}},eh=class extends Io{[wr](){let e;if(this[Lo]&&this[br]==="r+")try{e=We.openSync(this[Zt],this[br],this[Bo])}catch(r){if(r.code==="ENOENT")return this[br]="w",this[wr]();throw r}else e=We.openSync(this[Zt],this[br],this[Bo]);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")}}[ko](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=Po;Nn.ReadStreamSync=Qc;Nn.WriteStream=Io;Nn.WriteStreamSync=eh});var Uo=H((NI,SE)=>{"use strict";var WO=mo(),YO=Ii(),KO=require("events"),VO=Nc(),ZO=1024*1024,JO=ho(),yE=po(),XO=mc(),{nextTick:QO}=require("process"),th=Buffer.from([31,139]),nt=Symbol("state"),Kr=Symbol("writeEntry"),Jt=Symbol("readEntry"),rh=Symbol("nextEntry"),gE=Symbol("processEntry"),st=Symbol("extendedHeader"),Mn=Symbol("globalExtendedHeader"),Sr=Symbol("meta"),EE=Symbol("emitMeta"),de=Symbol("buffer"),Xt=Symbol("queue"),Vr=Symbol("ended"),DE=Symbol("emittedEnd"),Zr=Symbol("emit"),Ye=Symbol("unzip"),No=Symbol("consumeChunk"),Mo=Symbol("consumeChunkSub"),ih=Symbol("consumeBody"),_E=Symbol("consumeMeta"),bE=Symbol("consumeHeader"),jo=Symbol("consuming"),nh=Symbol("bufferConcat"),sh=Symbol("maybeEnd"),jn=Symbol("writing"),Ar=Symbol("aborted"),Ho=Symbol("onDone"),Jr=Symbol("sawValidEntry"),qo=Symbol("sawNullBlock"),$o=Symbol("sawEOF"),wE=Symbol("closeStream"),eT=t=>!0;SE.exports=WO(class extends KO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Jr]=null,this.on(Ho,r=>{(this[nt]==="begin"||this[Jr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ho,e.ondone):this.on(Ho,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[qo]=!1,this[$o]=!1,this.on("end",()=>this[wE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[bE](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[qo]?(this[$o]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Zr]("eof")):(this[qo]=!0,this[Zr]("nullBlock"));else if(this[qo]=!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[rh]())))}}}[wE](){QO(()=>this.emit("close"))}[gE](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[rh]()),r=!1)):(this[Jt]=null,r=!1),r}[rh](){do;while(this[gE](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"))}}[ih](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}[_E](e,r){let i=this[Kr],n=this[ih](e,r);return this[Kr]||this[EE](i),n}[Zr](e,r,i){!this[Xt].length&&!this[Jt]?this.emit(e,r,i):this[Xt].push([e,r,i])}[EE](e){switch(this[Zr]("meta",this[Sr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=yE.parse(this[Sr],this[st],!1);break;case"GlobalExtendedHeader":this[Mn]=yE.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<th.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<th.length;i++)e[i]!==th[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[No](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[Vr]=!0,this[No]()}),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[No](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}[nh](e){e&&!this[Ar]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[sh](){if(this[Vr]&&!this[DE]&&!this[Ar]&&!this[jo]){this[DE]=!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](Ho)}}[No](e){if(this[jo])this[nh](e);else if(!e&&!this[de])this[sh]();else{if(this[jo]=!0,this[de]){this[nh](e);let r=this[de];this[de]=null,this[Mo](r)}else this[Mo](e);for(;this[de]&&this[de].length>=512&&!this[Ar]&&!this[$o];){let r=this[de];this[de]=null,this[Mo](r)}this[jo]=!1}(!this[de]||this[Vr])&&this[sh]()}[Mo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Ar]&&!this[$o];)switch(this[nt]){case"begin":case"header":this[bE](e,r),r+=512;break;case"ignore":case"body":r+=this[ih](e,r);break;case"meta":r+=this[_E](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 Go=H((MI,RE)=>{"use strict";var tT=Fi(),vE=Uo(),Yi=require("fs"),rT=Wi(),AE=require("path"),oh=Ni();RE.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):CE(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=>[oh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||AE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(AE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(oh(s)):s=>n(oh(s))},sT=t=>{let e=CE(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 vE(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},CE=t=>new vE(t)});var LE=H((jI,kE)=>{"use strict";var uT=Fi(),zo=Fo(),xE=Wi(),FE=Go(),OE=require("path");kE.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 zo.Sync(t),i=new xE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),TE(r,e)},lT=(t,e,r)=>{let i=new zo(t),n=new xE.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 uh(i,e),r?s.then(r,r):s},TE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?FE({file:OE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},uh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return FE({file:OE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},cT=(t,e)=>{let r=new zo.Sync(t);return TE(r,e),r},hT=(t,e)=>{let r=new zo(t);return uh(r,e),r}});var ah=H((HI,HE)=>{"use strict";var fT=Fi(),BE=Fo(),Qe=require("fs"),PE=Wi(),IE=Go(),NE=require("path"),ME=Ii();HE.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 BE.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 ME(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 PE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),yT(e,n)},mT=(t,e,r)=>{e=Array.from(e);let i=new BE(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 ME(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 PE.WriteStream(t.file,{fd:h,start:y});i.pipe(E),E.on("error",u),E.on("close",o),jE(i,e)})})};Qe.open(t.file,a,l)});return r?s.then(r,r):s},yT=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?IE({file:NE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},jE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return IE({file:NE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>jE(t,e));t.add(r)}t.end()}});var $E=H((qI,qE)=>{"use strict";var gT=Fi(),ET=ah();qE.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 zE=H(($I,GE)=>{var{promisify:UE}=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=UE(t.mkdir),t.stat=t.stat||t.fs.stat||vr.stat,t.statAsync=UE(t.stat),t.statSync=t.statSync||t.fs.statSync||vr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||vr.mkdirSync,t};GE.exports=_T});var YE=H((UI,WE)=>{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};WE.exports=AT});var XE=H((GI,JE)=>{var{dirname:KE}=require("path"),VE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?VE(t,KE(e),e):void 0),ZE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?ZE(t,KE(e),e):void 0}};JE.exports={findMade:VE,findMadeSync:ZE}});var hh=H((zI,eD)=>{var{dirname:QE}=require("path"),lh=(t,e,r)=>{e.recursive=!1;let i=QE(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 lh(i,e).then(s=>lh(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})})},ch=(t,e,r)=>{let i=QE(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 ch(t,e,ch(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};eD.exports={mkdirpManual:lh,mkdirpManualSync:ch}});var iD=H((WI,rD)=>{var{dirname:tD}=require("path"),{findMade:vT,findMadeSync:CT}=XE(),{mkdirpManual:RT,mkdirpManualSync:xT}=hh(),FT=(t,e)=>(e.recursive=!0,tD(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,tD(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}};rD.exports={mkdirpNative:FT,mkdirpNativeSync:OT}});var uD=H((YI,oD)=>{var nD=require("fs"),TT=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fh=TT.replace(/^v/,"").split("."),sD=+fh[0]>10||+fh[0]==10&&+fh[1]>=12,kT=sD?t=>t.mkdir===nD.mkdir:()=>!1,LT=sD?t=>t.mkdirSync===nD.mkdirSync:()=>!1;oD.exports={useNative:kT,useNativeSync:LT}});var pD=H((KI,fD)=>{var Ki=zE(),Vi=YE(),{mkdirpNative:aD,mkdirpNativeSync:lD}=iD(),{mkdirpManual:cD,mkdirpManualSync:hD}=hh(),{useNative:BT,useNativeSync:PT}=uD(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),BT(e)?aD(t,e):cD(t,e)),IT=(t,e)=>(t=Vi(t),e=Ki(e),PT(e)?lD(t,e):hD(t,e));Zi.sync=IT;Zi.native=(t,e)=>aD(Vi(t),Ki(e));Zi.manual=(t,e)=>cD(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>lD(Vi(t),Ki(e));Zi.manualSync=(t,e)=>hD(Vi(t),Ki(e));fD.exports=Zi});var _D=H((VI,DD)=>{"use strict";var ot=require("fs"),Xr=require("path"),NT=ot.lchown?"lchown":"chown",MT=ot.lchownSync?"lchownSync":"chownSync",mD=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),dD=(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=mD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,ph=mD?(t,e,r)=>{try{return dD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;jT(t,e,r)}}:(t,e,r)=>dD(t,e,r),qT=process.version,yD=(t,e,r)=>ot.readdir(t,e,r),$T=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(qT)&&(yD=(t,e,r)=>ot.readdir(t,r));var Wo=(t,e,r,i)=>{ot[NT](t,e,r,HT(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},gD=(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,gD(t,o,r,i,n)});if(e.isDirectory())dh(Xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Xr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Xr.resolve(t,e.name);Wo(s,r,i,n)}},dh=(t,e,r,i)=>{yD(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 Wo(t,e,r,i);let o=s.length,u=null,a=l=>{if(!u){if(l)return i(u=l);if(--o===0)return Wo(t,e,r,i)}};s.forEach(l=>gD(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()&&ED(Xr.resolve(t,e.name),r,i),ph(Xr.resolve(t,e.name),r,i)},ED=(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 ph(t,e,r);throw n}return i&&i.length&&i.forEach(n=>UT(t,n,e,r)),ph(t,e,r)};DD.exports=dh;dh.sync=ED});var AD=H((ZI,mh)=>{"use strict";var bD=pD(),ut=require("fs"),Yo=require("path"),wD=_D(),pt=Bi(),Ko=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(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 Vo(t,r&&r.code||"ENOTDIR")),e(r)})};mh.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?wD(v,o,u,F=>d(F)):s?ut.chmod(t,n,r):r())};if(h&&Zo(h,t)===!0)return d();if(t===f)return GT(t,d);if(l)return bD(t,{mode:n}).then(E=>d(null,E),d);let y=pt(Yo.relative(f,t)).split("/");Jo(f,y,n,h,c,f,null,d)};var Jo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),l=pt(Yo.resolve(t+"/"+a));if(Zo(i,l))return Jo(l,e,r,i,n,s,o,u);ut.mkdir(l,r,SD(l,e,r,i,n,s,o,u))},SD=(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())Jo(t,e,r,i,n,s,o,u);else if(n)ut.unlink(t,h=>{if(h)return u(h);ut.mkdir(t,r,SD(t,e,r,i,n,s,o,u))});else{if(c.isSymbolicLink())return u(new Ko(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Jo(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 Vo(t,r)}};mh.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&&wD.sync(E,s,o),n&&ut.chmodSync(t,i)};if(c&&Zo(c,t)===!0)return f();if(t===h)return zT(h),f();if(a)return f(bD.sync(t,i));let g=pt(Yo.relative(h,t)).split("/"),y=null;for(let E=g.shift(),v=h;E&&(v+="/"+E);E=g.shift())if(v=pt(Yo.resolve(v)),!Zo(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 Ko(v,v+"/"+g.join("/"))}return f(y)}});var gh=H((JI,vD)=>{var yh=Object.create(null),{hasOwnProperty:WT}=Object.prototype;vD.exports=t=>(WT.call(yh,t)||(yh[t]=t.normalize("NFKD")),yh[t])});var FD=H((XI,xD)=>{var CD=require("assert"),YT=gh(),KT=Ni(),{join:RD}=require("path"),VT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ZT=VT==="win32";xD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=RD(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);CD.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);CD(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(RD(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 kD=H((QI,TD)=>{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:OD=0}=QT.constants,ik=XT&&!!OD,nk=512*1024,sk=OD|tk|ek|rk;TD.exports=ik?t=>t<nk?sk:"w":()=>"w"});var Ch=H((eN,WD)=>{"use strict";var ok=require("assert"),uk=Uo(),ue=require("fs"),ak=Wi(),Qt=require("path"),UD=AD(),LD=vc(),lk=FD(),ck=Cc(),et=Bi(),hk=Ni(),fk=gh(),BD=Symbol("onEntry"),_h=Symbol("checkFs"),PD=Symbol("checkFs2"),eu=Symbol("pruneCache"),bh=Symbol("isReusable"),at=Symbol("makeFs"),wh=Symbol("file"),Sh=Symbol("directory"),tu=Symbol("link"),ID=Symbol("symlink"),ND=Symbol("hardlink"),MD=Symbol("unsupported"),jD=Symbol("checkPath"),Cr=Symbol("mkdir"),Me=Symbol("onError"),Xo=Symbol("pending"),HD=Symbol("pend"),Ji=Symbol("unpend"),Eh=Symbol("ended"),Dh=Symbol("maybeClose"),Ah=Symbol("skip"),qn=Symbol("doChown"),$n=Symbol("uid"),Un=Symbol("gid"),Gn=Symbol("checkedCwd"),GD=require("crypto"),zD=kD(),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."+GD.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."+GD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},qD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,$D=t=>fk(hk(et(t))).toLowerCase(),yk=(t,e)=>{e=$D(e);for(let r of t.keys()){let i=$D(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[Eh]=!0,this[Dh]()},super(e),this[Gn]=!1,this.reservations=lk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[Eh]=!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[BD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Dh](){this[Eh]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[jD](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+LD.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+LD.encode(e.path.slice(i.length))}return!0}[BD](e){if(!this[jD](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[_h](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[MD](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){UD(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 qD(this.uid,e.uid,this.processUid)}[Un](e){return qD(this.gid,e.gid,this.processGid)}[wh](e,r){let i=e.mode&4095||this.fmode,n=new ak.WriteStream(e.absolute,{flags:zD(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)}[Sh](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()})}[MD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[ID](e,r){this[tu](e,e.linkpath,"symlink",r)}[ND](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[tu](e,i,"link",r)}[HD](){this[Xo]++}[Ji](){this[Xo]--,this[Dh]()}[Ah](e){this[Ji](),e.resume()}[bh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[_h](e){this[HD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[PD](e,i))}[eu](e){e.type==="SymbolicLink"?gk(this.dirCache):e.type!=="Directory"&&yk(this.dirCache,e.absolute)}[PD](e,r){this[eu](e);let i=u=>{this[eu](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[Ah](e),i();return}if(u||this[bh](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[wh](r,i);case"Link":return this[ND](r,i);case"SymbolicLink":return this[ID](r,i);case"Directory":case"GNUDumpDir":return this[Sh](r,i)}}[tu](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Ji](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},vh=class extends Wn{[at](e,r){return super[at](e,r,()=>{})}[_h](e){if(this[eu](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]=Qo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ah](e);if(r||this[bh](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?Qo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[at](u,e)}let[s]=Qo(()=>ue.rmdirSync(e.absolute));this[at](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>mk(e.absolute));this[at](n,e)}[wh](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,zD(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)})}[Sh](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 UD.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}}[tu](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Wn.Sync=vh;WD.exports=Wn});var JD=H((tN,ZD)=>{"use strict";var Ek=Fi(),ru=Ch(),KD=require("fs"),VD=Wi(),YD=require("path"),Rh=Ni();ZD.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=>[Rh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||YD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(YD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Rh(s)):s=>n(Rh(s))},_k=t=>{let e=new ru.Sync(t),r=t.file,i=KD.statSync(r),n=t.maxReadSize||16*1024*1024;new VD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},bk=(t,e)=>{let r=new ru(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),KD.stat(n,(a,l)=>{if(a)u(a);else{let c=new VD.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},wk=t=>new ru.Sync(t),Sk=t=>new ru(t)});var XD=H(ve=>{"use strict";ve.c=ve.create=LE();ve.r=ve.replace=ah();ve.t=ve.list=Go();ve.u=ve.update=$E();ve.x=ve.extract=JD();ve.Pack=Fo();ve.Unpack=Ch();ve.Parse=Uo();ve.ReadEntry=ho();ve.WriteEntry=Ic();ve.Header=Ii();ve.Pax=po();ve.types=Ec()});var n_=H((oN,i_)=>{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))}i_.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 s_=H(Qr=>{var Rk=n_();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 u_=H((aN,o_)=>{o_.exports=s_()});var l_=H((lN,a_)=>{var xk=u_();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)}a_.exports=Fk});var Uk={};Oh(Uk,{default:()=>$k,transformer:()=>m_});module.exports=b_(Uk);var f_=ie(require("path")),p_=require("fs-extra");var cr=ie(require("chalk"),1),gy=ie(require("ora"),1),Ey=ie(require("gradient-string"),1);var Bx=ie(ai(),1),VB=require("fs-extra");function Op(t){return typeof t=="undefined"||t===null}function mw(t){return typeof t=="object"&&t!==null}function yw(t){return Array.isArray(t)?t:Op(t)?[]:[t]}function gw(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 Ew(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Dw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var _w=Op,bw=mw,ww=yw,Sw=Ew,Aw=Dw,vw=gw,Ae={isNothing:_w,isObject:bw,toArray:ww,repeat:Sw,isNegativeZero:Aw,extend:vw};function Tp(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 Rf=H((aI,rn)=>{"use strict";var tn=require("path"),Ef=ua(),vf=t=>{t={cwd:process.cwd(),path:process.env[Ef()],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=vf;rn.exports.default=vf;rn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Ef({env:e});return t.path=e[r],e[r]=rn.exports(t),e}});var Af=H((lI,_a)=>{"use strict";var xf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};_a.exports=xf;_a.exports.default=xf});var Tf=H((cI,Xn)=>{"use strict";var KS=Af(),Zn=new WeakMap,Of=(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 KS(s,t),Zn.set(s,i),s};Xn.exports=Of;Xn.exports.default=Of;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 kf=H(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SIGNALS=void 0;var VS=[{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=VS});var ba=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var ZS=function(){let t=Lf-Cf+1;return Array.from({length:t},XS)};ri.getRealtimeSignals=ZS;var XS=function(t,e){return{name:`SIGRT${e+1}`,number:Cf+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Cf=34,Lf=64;ri.SIGRTMAX=Lf});var Pf=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getSignals=void 0;var JS=require("os"),QS=kf(),eE=ba(),tE=function(){let t=(0,eE.getRealtimeSignals)();return[...QS.SIGNALS,...t].map(rE)};Qn.getSignals=tE;var rE=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=JS.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Nf=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var iE=require("os"),If=Pf(),nE=ba(),sE=function(){return(0,If.getSignals)().reduce(oE,{})},oE=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}}},aE=sE();ii.signalsByName=aE;var lE=function(){let t=(0,If.getSignals)(),e=nE.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>cE(n,t));return Object.assign({},...r)},cE=function(t,e){let r=uE(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}}},uE=function(t,e){let r=e.find(({name:i})=>iE.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},hE=lE();ii.signalsByNumber=hE});var Mf=H((dI,Df)=>{"use strict";var{signalsByName:fE}=Nf(),pE=({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",dE=({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:fE[n].description,d=i&&i.code,y=`Command ${pE({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};Df.exports=dE});var Bf=H((mI,wa)=>{"use strict";var es=["stdin","stdout","stderr"],mE=t=>es.some(e=>t[e]!==void 0),Ff=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(mE(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])};wa.exports=Ff;wa.exports.node=t=>{let e=Ff(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var jf=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 Gf=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)?(Hf=require("assert"),ni=jf(),qf=/^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(){};Hf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&Sa();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ae.removeListener(r,t),Ae.listeners("exit").length===0&&Ae.listeners("afterexit").length===0&&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=Ea,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),qf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,Sa=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=$f,me.reallyExit=Uf)},oi.exports.load=Sa,Ea=me.reallyExit,Uf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),Ea.call(me,me.exitCode))},ns=me.emit,$f=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 Hf,ni,qf,nn,Ae,rs,kr,is,si,Sa,Ea,Uf,ns,$f});var Wf=H((_I,zf)=>{"use strict";var yE=require("os"),gE=Gf(),_E=1e3*5,bE=(t,e="SIGTERM",r={})=>{let i=t(e);return wE(t,e,r,i),i},wE=(t,e,r,i)=>{if(!SE(e,r,i))return;let n=vE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},SE=(t,{forceKillAfterTimeout:e},r)=>EE(t)&&e!==!1&&r,EE=t=>t===yE.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",vE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return _E;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},RE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},xE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},AE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{xE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},OE=({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})`)},TE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=gE(()=>{t.kill()});return i.finally(()=>{n()})};zf.exports={spawnedKill:bE,spawnedCancel:RE,setupTimeout:AE,validateTimeout:OE,setExitHandler:TE}});var Kf=H((bI,Yf)=>{"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";Yf.exports=mt});var Zf=H((wI,Vf)=>{"use strict";var{PassThrough:kE}=require("stream");Vf.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 kE({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 Xf=H((SI,sn)=>{"use strict";var{constants:CE}=require("buffer"),LE=require("stream"),{promisify:PE}=require("util"),IE=Zf(),NE=PE(LE.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function va(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=IE(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=CE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await NE(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}sn.exports=va;sn.exports.buffer=(t,e)=>va(t,{...e,encoding:"buffer"});sn.exports.array=(t,e)=>va(t,{...e,array:!0});sn.exports.MaxBufferError=ss});var Qf=H((EI,Jf)=>{"use strict";var{PassThrough:DE}=require("stream");Jf.exports=function(){var t=[],e=new DE({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 ip=H((vI,rp)=>{"use strict";var tp=Kf(),ep=Xf(),ME=Qf(),FE=(t,e)=>{e===void 0||t.stdin===void 0||(tp(e)?e.pipe(t.stdin):t.stdin.end(e))},BE=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=ME();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Ra=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ep(t,{encoding:e,maxBuffer:i}):ep.buffer(t,{maxBuffer:i})},jE=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=xa(t,{encoding:i,buffer:n,maxBuffer:s}),l=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Ra(t,a),Ra(e,l),Ra(r,c)])}},HE=({input:t})=>{if(tp(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};rp.exports={handleInput:FE,makeAllStream:BE,getSpawnedResult:jE,validateInputSync:HE}});var sp=H((RI,np)=>{"use strict";var qE=(async()=>{})().constructor.prototype,UE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(qE,t)]),$E=(t,e)=>{for(let[r,i]of UE){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},GE=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)})});np.exports={mergePromise:$E,getSpawnedPromise:GE}});var lp=H((xI,ap)=>{"use strict";var op=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],zE=/^[\w.-]+$/,WE=/"/g,YE=t=>typeof t!="string"||zE.test(t)?t:`"${t.replace(WE,'\\"')}"`,KE=(t,e)=>op(t,e).join(" "),VE=(t,e)=>op(t,e).map(r=>YE(r)).join(" "),ZE=/ +/g,XE=t=>{let e=[];for(let r of t.trim().split(ZE)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};ap.exports={joinCommand:KE,getEscapedCommand:VE,parseCommand:XE}});var li=H((AI,ai)=>{"use strict";var JE=require("path"),Aa=require("child_process"),QE=bf(),e0=Sf(),t0=Rf(),r0=Tf(),os=Mf(),up=Bf(),{spawnedKill:i0,spawnedCancel:n0,setupTimeout:s0,validateTimeout:o0,setExitHandler:a0}=Wf(),{handleInput:l0,getSpawnedResult:c0,makeAllStream:u0,validateInputSync:h0}=ip(),{mergePromise:cp,getSpawnedPromise:f0}=sp(),{joinCommand:hp,parseCommand:fp,getEscapedCommand:pp}=lp(),p0=1e3*1e3*100,d0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?t0.env({env:s,cwd:i,execPath:n}):s},dp=(t,e,r={})=>{let i=QE._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:p0,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=d0(r),r.stdio=up(r),process.platform==="win32"&&JE.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?e0(e):e,as=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);o0(i.options);let o;try{o=Aa.spawn(i.file,i.args,i.options)}catch(d){let g=new Aa.ChildProcess,y=Promise.reject(os({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return cp(g,y)}let a=f0(o),l=s0(o,i.options,a),c=a0(o,i.options,l),u={isCanceled:!1};o.kill=i0.bind(null,o.kill.bind(o)),o.cancel=n0.bind(null,o,u);let f=r0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await c0(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 l0(o,i.options.input),o.all=u0(o,i.options),cp(o,f)};ai.exports=as;ai.exports.sync=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);h0(i.options);let o;try{o=Aa.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]=fp(t);return as(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=fp(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=up.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 gd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function DR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=DR;function MR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=MR});var _d=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function FR(t){return t.code==="ENOENT"}ds.isEnoentCodeError=FR});var bd=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var Ua=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function BR(t,e){return new Ua(t,e)}ms.createDirentFromStats=BR});var wd=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var jR=require("path"),HR=2,qR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function UR(t){return t.replace(/\\/g,"/")}gt.unixify=UR;function $R(t,e){return jR.resolve(t,e)}gt.makeAbsolute=$R;function GR(t){return t.replace(qR,"\\$2")}gt.escape=GR;function zR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(HR)}return t}gt.removeLeadingDotSegment=zR});var Ed=H((PI,Sd)=>{Sd.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 xd=H((II,Rd)=>{var WR=Ed(),vd={"{":"}","(":")","[":"]"},YR=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=vd[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},KR=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=vd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Rd.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(WR(e))return!0;var i=YR;return r&&r.strict===!1&&(i=KR),i(e)}});var Od=H((NI,Ad)=>{"use strict";var VR=xd(),ZR=require("path").posix.dirname,XR=require("os").platform()==="win32",$a="/",JR=/\\/g,QR=/[\{\[].*[\}\]]$/,ex=/(^|[^\\])([\{\[]|\([^\)]+$)/,tx=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ad.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&XR&&e.indexOf($a)<0&&(e=e.replace(JR,$a)),QR.test(e)&&(e+=$a),e+="a";do e=ZR(e);while(VR(e)||ex.test(e));return e.replace(tx,"$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,kd)=>{"use strict";var Td=ys();kd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Td.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Td.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 Ld=H((FI,Cd)=>{"use strict";Cd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Hd=H((BI,jd)=>{"use strict";var Pd=Ld(),Pr=(t,e,r)=>{if(Pd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Pd(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=Bd(t)||Bd(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=Id(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Id(c,u,f,i)),f.negatives=g,f.positives=d,f.result=rx(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 rx(t,e,r){let i=Ga(t,e,"-",!1,r)||[],n=Ga(e,t,"",!1,r)||[],s=Ga(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function ix(t,e){let r=1,i=1,n=Dd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Dd(t,r);for(n=Md(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Md(e+1,i)-1;return s=[...s],s.sort(ox),s}function nx(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=sx(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+=ax(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Id(t,e,r,i){let n=ix(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=nx(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+Fd(a.count),o=c+1;continue}r.isPadded&&(h=lx(c,r,i)),u.string=h+u.pattern+Fd(u.count),s.push(u),o=c+1,a=u}return s}function Ga(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Nd(e,"string",a)&&s.push(r+a),i&&Nd(e,"string",a)&&s.push(r+a)}return s}function sx(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function ox(t,e){return t>e?1:e>t?-1:0}function Nd(t,e,r){return t.some(i=>i[e]===r)}function Dd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Md(t,e){return t-t%Math.pow(10,e)}function Fd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function ax(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Bd(t){return/^-?(0+)\d/.test(t)}function lx(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={};jd.exports=Pr});var Ya=H((jI,Kd)=>{"use strict";var cx=require("util"),$d=Hd(),qd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ux=t=>e=>t===!0?Number(e):String(e),za=t=>typeof t=="number"||typeof t=="string"&&t!=="",fn=t=>Number.isInteger(+t),Wa=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},hx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,fx=(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},Ud=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},px=(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},Gd=(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}]`},zd=(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)},Wd=(...t)=>new RangeError("Invalid range arguments: "+cx.inspect(...t)),Yd=(t,e,r)=>{if(r.strictRanges===!0)throw Wd([t,e]);return[]},dx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},mx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Wd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Wa(a)||Wa(l)||Wa(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&hx(t,e,i)===!1,d=i.transform||ux(f);if(i.toRegex&&r===1)return Gd(Ud(t,h),Ud(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(fx(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?px(g,i):zd(_,null,{wrap:!1,...i}):_},yx=(t,e,r=1,i={})=>{if(!fn(t)&&t.length>1||!fn(e)&&e.length>1)return Yd(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 Gd(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?zd(u,null,{wrap:!1,options:i}):u},_s=(t,e,r,i={})=>{if(e==null&&za(t))return[t];if(!za(t)||!za(e))return Yd(t,e,i);if(typeof r=="function")return _s(t,e,1,{transform:r});if(qd(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)?mx(t,e,r,n):yx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!qd(r)?dx(r,n):_s(t,e,1,r)};Kd.exports=_s});var Xd=H((HI,Zd)=>{"use strict";var gx=Ya(),Vd=ys(),_x=(t,e={})=>{let r=(i,n={})=>{let s=Vd.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=Vd.reduce(i.nodes),h=gx(...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)};Zd.exports=_x});var em=H((qI,Qd)=>{"use strict";var bx=Ya(),Jd=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)},wx=(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(),Jd(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=bx(...h,e);f.length===0&&(f=Jd(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))};Qd.exports=wx});var rm=H((UI,tm)=>{"use strict";tm.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 am=H(($I,om)=>{"use strict";var Sx=gs(),{MAX_LENGTH:im,CHAR_BACKSLASH:Ka,CHAR_BACKTICK:Ex,CHAR_COMMA:vx,CHAR_DOT:Rx,CHAR_LEFT_PARENTHESES:xx,CHAR_RIGHT_PARENTHESES:Ax,CHAR_LEFT_CURLY_BRACE:Ox,CHAR_RIGHT_CURLY_BRACE:Tx,CHAR_LEFT_SQUARE_BRACKET:nm,CHAR_RIGHT_SQUARE_BRACKET:sm,CHAR_DOUBLE_QUOTE:kx,CHAR_SINGLE_QUOTE:Cx,CHAR_NO_BREAK_SPACE:Lx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Px}=rm(),Ix=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(im,r.maxLength):im;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===Px||f===Lx)){if(f===Ka){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===sm){y({type:"text",value:"\\"+f});continue}if(f===nm){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===nm){l++;continue}if(x===Ka){f+=g();continue}if(x===sm&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===xx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Ax){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===kx||f===Cx||f===Ex){let _=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=g());){if(x===Ka){f+=x+g();continue}if(x===_){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===Ox){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===Tx){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===vx&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:Sx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Rx&&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};om.exports=Ix});var um=H((GI,cm)=>{"use strict";var lm=gs(),Nx=Xd(),Dx=em(),Mx=am(),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={})=>Mx(t,e);Ke.stringify=(t,e={})=>lm(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),Nx(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Dx(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);cm.exports=Ke});var pn=H((zI,mm)=>{"use strict";var Fx=require("path"),_t="\\\\/",hm=`[^${_t}]`,It="\\.",Bx="\\+",jx="\\?",bs="\\/",Hx="(?=.)",fm="[^/]",Va=`(?:${bs}|$)`,pm=`(?:^|${bs})`,Za=`${It}{1,2}${Va}`,qx=`(?!${It})`,Ux=`(?!${pm}${Za})`,$x=`(?!${It}{0,1}${Va})`,Gx=`(?!${Za})`,zx=`[^.${bs}]`,Wx=`${fm}*?`,dm={DOT_LITERAL:It,PLUS_LITERAL:Bx,QMARK_LITERAL:jx,SLASH_LITERAL:bs,ONE_CHAR:Hx,QMARK:fm,END_ANCHOR:Va,DOTS_SLASH:Za,NO_DOT:qx,NO_DOTS:Ux,NO_DOT_SLASH:$x,NO_DOTS_SLASH:Gx,QMARK_NO_DOT:zx,STAR:Wx,START_ANCHOR:pm},Yx={...dm,SLASH_LITERAL:`[${_t}]`,QMARK:hm,STAR:`${hm}*?`,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}]|$)`},Kx={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"};mm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Kx,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:Fx.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?Yx:dm}}});var dn=H(Ue=>{"use strict";var Vx=require("path"),Zx=process.platform==="win32",{REGEX_BACKSLASH:Xx,REGEX_REMOVE_BACKSLASH:Jx,REGEX_SPECIAL_CHARS:Qx,REGEX_SPECIAL_CHARS_GLOBAL:eA}=pn();Ue.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ue.hasRegexChars=t=>Qx.test(t);Ue.isRegexChar=t=>t.length===1&&Ue.hasRegexChars(t);Ue.escapeRegex=t=>t.replace(eA,"\\$1");Ue.toPosixSlashes=t=>t.replace(Xx,"/");Ue.removeBackslashes=t=>t.replace(Jx,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:Zx===!0||Vx.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 vm=H((YI,Em)=>{"use strict";var ym=dn(),{CHAR_ASTERISK:Xa,CHAR_AT:tA,CHAR_BACKWARD_SLASH:mn,CHAR_COMMA:rA,CHAR_DOT:Ja,CHAR_EXCLAMATION_MARK:Qa,CHAR_FORWARD_SLASH:Sm,CHAR_LEFT_CURLY_BRACE:el,CHAR_LEFT_PARENTHESES:tl,CHAR_LEFT_SQUARE_BRACKET:iA,CHAR_PLUS:nA,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:sA,CHAR_RIGHT_PARENTHESES:_m,CHAR_RIGHT_SQUARE_BRACKET:oA}=pn(),bm=t=>t===Sm||t===mn,wm=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},aA=(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===el&&(x=!0);continue}if(x===!0||v===el){for(I++;q()!==!0&&(v=$());){if(v===mn){k=F.backslashes=!0,$();continue}if(v===el){I++;continue}if(x!==!0&&v===Ja&&(v=$())===Ja){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===rA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===sA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===Sm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(w===Ja&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===nA||v===tA||v===Xa||v===gm||v===Qa)===!0&&P()===tl){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===Qa&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===mn){k=F.backslashes=!0,v=$();continue}if(v===_m){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Xa){if(w===Xa&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===gm){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===iA){for(;q()!==!0&&(L=$());){if(L===mn){k=F.backslashes=!0,$();continue}if(L===oA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===Qa&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===tl){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===tl){k=F.backslashes=!0,v=$();continue}if(v===_m){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&&bm(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(N&&(N=ym.removeBackslashes(N)),K&&k===!0&&(K=ym.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,bm(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,wm(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,wm(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Em.exports=aA});var Am=H((KI,xm)=>{"use strict";var ws=pn(),Ve=dn(),{MAX_LENGTH:Ss,POSIX_REGEX_SOURCE:lA,REGEX_NON_SPECIAL_CHARS:cA,REGEX_SPECIAL_CHARS_BACKREF:uA,REPLACEMENTS:Rm}=ws,hA=(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`,rl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Rm[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=rl(G,{...e,fastpaths:!1}).output;J=U.close=`)${ce})${re})`}U.prev.type==="bos"&&(P.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:A,output:J}),E("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let U=!1,J=t.replace(uA,(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=lA[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=hA(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=cA.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};rl.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=Rm[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};xm.exports=rl});var Tm=H((VI,Om)=>{"use strict";var fA=require("path"),pA=vm(),il=Am(),nl=dn(),dA=pn(),mA=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=mA(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=nl.isWindows(e),o=i?be.compileRe(t,e):be.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=be(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:d,output:g}=be.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:g,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};be.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?nl.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=be.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};be.matchBase=(t,e,r,i=nl.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(fA.basename(t));be.isMatch=(t,e,r)=>be(e,r)(t);be.parse=(t,e)=>Array.isArray(t)?t.map(r=>be.parse(r,e)):il(t,{...e,fastpaths:!1});be.scan=(t,e)=>pA(t,e);be.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=be.toRegex(a,e);return i===!0&&(l.state=t),l};be.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=il.fastpaths(t,e)),n.output||(n=il(t,e)),be.compileRe(n,e,r,i)};be.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};be.constants=dA;Om.exports=be});var Cm=H((ZI,km)=>{"use strict";km.exports=Tm()});var Dm=H((XI,Nm)=>{"use strict";var Pm=require("util"),Im=um(),bt=Cm(),sl=dn(),Lm=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: "${Pm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Lm(t)||Lm(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sl.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=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: "${Pm.inspect(t)}"`);return[].concat(e).every(i=>bt(i,r)(t))};ye.capture=(t,e,r)=>{let i=sl.isWindows(r),s=bt.makeRe(String(t),{...r,capture:!0}).exec(i?sl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>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 Im(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]:Im(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Nm.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 yA=require("path"),gA=Od(),ol=Dm(),Mm="**",_A="\\",bA=/[*?]|^!/,wA=/\[[^[]*]/,SA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,EA=/[!*+?@]\([^(]*\)/,vA=/,|\.\./;function Fm(t,e={}){return!Bm(t,e)}ne.isStaticPattern=Fm;function Bm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(_A)||bA.test(t)||wA.test(t)||SA.test(t)||e.extglob!==!1&&EA.test(t)||e.braceExpansion!==!1&&RA(t))}ne.isDynamicPattern=Bm;function RA(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 vA.test(i)}function xA(t){return Es(t)?t.slice(1):t}ne.convertToPositivePattern=xA;function AA(t){return"!"+t}ne.convertToNegativePattern=AA;function Es(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=Es;function jm(t){return!Es(t)}ne.isPositivePattern=jm;function OA(t){return t.filter(Es)}ne.getNegativePatterns=OA;function TA(t){return t.filter(jm)}ne.getPositivePatterns=TA;function kA(t){return t.filter(e=>!al(e))}ne.getPatternsInsideCurrentDirectory=kA;function CA(t){return t.filter(al)}ne.getPatternsOutsideCurrentDirectory=CA;function al(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=al;function LA(t){return gA(t,{flipBackslashes:!1})}ne.getBaseDirectory=LA;function PA(t){return t.includes(Mm)}ne.hasGlobStar=PA;function Hm(t){return t.endsWith("/"+Mm)}ne.endsWithSlashGlobStar=Hm;function IA(t){let e=yA.basename(t);return Hm(t)||Fm(e)}ne.isAffectDepthOfReadingPattern=IA;function NA(t){return t.reduce((e,r)=>e.concat(qm(r)),[])}ne.expandPatternsWithBraceExpansion=NA;function qm(t){return ol.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=qm;function DA(t,e){let{parts:r}=ol.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ne.getPatternParts=DA;function Um(t,e){return ol.makeRe(t,e)}ne.makeRe=Um;function MA(t,e){return t.map(r=>Um(r,e))}ne.convertPatternsToRe=MA;function FA(t,e){return e.some(r=>r.test(t))}ne.matchAny=FA});var Ym=H((QI,Wm)=>{"use strict";var BA=require("stream"),Gm=BA.PassThrough,jA=Array.prototype.slice;Wm.exports=HA;function HA(){let t=[],e=jA.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=Gm(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(zm(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 zm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=zm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vm=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.merge=void 0;var qA=Ym();function UA(t){let e=qA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Km(t)),e.once("end",()=>Km(t)),e}vs.merge=UA;function Km(t){t.forEach(e=>e.emit("close"))}});var Zm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function $A(t){return typeof t=="string"}yi.isString=$A;function GA(t){return t===""}yi.isEmpty=GA});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 zA=gd();Le.array=zA;var WA=_d();Le.errno=WA;var YA=bd();Le.fs=YA;var KA=wd();Le.path=KA;var VA=$m();Le.pattern=VA;var ZA=Vm();Le.stream=ZA;var XA=Zm();Le.string=XA});var Qm=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 JA(t,e){let r=Xm(t),i=Jm(t,e.ignore),n=r.filter(l=>Dt.pattern.isStaticPattern(l,e)),s=r.filter(l=>Dt.pattern.isDynamicPattern(l,e)),o=ll(n,i,!1),a=ll(s,i,!0);return o.concat(a)}Pe.generate=JA;function ll(t,e,r){let i=[],n=Dt.pattern.getPatternsOutsideCurrentDirectory(t),s=Dt.pattern.getPatternsInsideCurrentDirectory(t),o=cl(n),a=cl(s);return i.push(...ul(o,e,r)),"."in a?i.push(hl(".",s,e,r)):i.push(...ul(a,e,r)),i}Pe.convertPatternsToTasks=ll;function Xm(t){return Dt.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=Xm;function Jm(t,e){return Dt.pattern.getNegativePatterns(t).concat(e).map(Dt.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=Jm;function cl(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=cl;function ul(t,e,r){return Object.keys(t).map(i=>hl(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=ul;function hl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Dt.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=hl});var ty=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var QA=/(?!^)\/{2,}/g;function eO(t){return t.map(e=>ey(e))}gi.transform=eO;function ey(t){return t.replace(QA,"/")}gi.removeDuplicateSlashes=ey});var iy=H(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.read=void 0;function tO(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){ry(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){ry(r,s);return}fl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fl(r,o)})})}Rs.read=tO;function ry(t,e){t(e)}function fl(t,e){t(null,e)}});var ny=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.read=void 0;function rO(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=rO});var sy=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 iO(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=iO});var oy=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var nO=sy(),pl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=nO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};dl.default=pl});var Nr=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var ay=iy(),sO=ny(),ml=oy();ir.Settings=ml.default;function oO(t,e,r){if(typeof e=="function"){ay.read(t,yl(),e);return}ay.read(t,yl(e),r)}ir.stat=oO;function aO(t,e){let r=yl(e);return sO.read(t,r)}ir.statSync=aO;function yl(t={}){return t instanceof ml.default?t:new ml.default(t)}});var uy=H((uN,cy)=>{var ly;cy.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ly||(ly=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var fy=H((hN,hy)=>{hy.exports=cO;var lO=uy();function cO(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?lO(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var gl=H(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 py=Number.parseInt(Os[0],10),uO=Number.parseInt(Os[1],10),dy=10,hO=10,fO=py>dy,pO=py===dy&&uO>=hO;Ts.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fO||pO});var my=H(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.createDirentFromStats=void 0;var _l=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function dO(t,e){return new _l(t,e)}ks.createDirentFromStats=dO});var bl=H(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.fs=void 0;var mO=my();Cs.fs=mO});var wl=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.joinPathSegments=void 0;function yO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ls.joinPathSegments=yO});var Sy=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var gO=Nr(),yy=fy(),_O=gl(),gy=bl(),_y=wl();function bO(t,e,r){if(!e.stats&&_O.IS_SUPPORT_READDIR_WITH_FILE_TYPES){by(t,e,r);return}wy(t,e,r)}nr.read=bO;function by(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:_y.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Sl(r,s);return}let o=s.map(a=>wO(a,e));yy(o,(a,l)=>{if(a!==null){Ps(r,a);return}Sl(r,l)})})}nr.readdirWithFileTypes=by;function wO(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=gy.fs.createDirentFromStats(t.name,n),r(null,t)})}}function wy(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ps(r,i);return}let s=n.map(o=>{let a=_y.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{gO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:gy.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});yy(s,(o,a)=>{if(o!==null){Ps(r,o);return}Sl(r,a)})})}nr.readdir=wy;function Ps(t,e){t(e)}function Sl(t,e){t(null,e)}});var Ay=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var SO=Nr(),EO=gl(),Ey=bl(),vy=wl();function vO(t,e){return!e.stats&&EO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ry(t,e):xy(t,e)}sr.read=vO;function Ry(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:vy.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Ey.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=Ry;function xy(t,e){return e.fs.readdirSync(t).map(i=>{let n=vy.joinPathSegments(t,i,e.pathSegmentSeparator),s=SO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Ey.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=xy});var Oy=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 RO(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=RO});var Ty=H(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var xO=require("path"),AO=Nr(),OO=Oy(),El=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=OO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,xO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new AO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};vl.default=El});var Is=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Settings=ar.scandirSync=ar.scandir=void 0;var ky=Sy(),TO=Ay(),Rl=Ty();ar.Settings=Rl.default;function kO(t,e,r){if(typeof e=="function"){ky.read(t,xl(),e);return}ky.read(t,xl(e),r)}ar.scandir=kO;function CO(t,e){let r=xl(e);return TO.read(t,r)}ar.scandirSync=CO;function xl(t={}){return t instanceof Rl.default?t:new Rl.default(t)}});var Ly=H((SN,Cy)=>{"use strict";function LO(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}}Cy.exports=LO});var Iy=H((EN,Al)=>{"use strict";var PO=Ly();function Py(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=PO(IO),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 IO(){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 NO(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=Py(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}}Al.exports=Py;Al.exports.promise=NO});var Ns=H(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.joinPathSegments=wt.replacePathSegmentSeparator=wt.isAppliedFilter=wt.isFatalError=void 0;function DO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}wt.isFatalError=DO;function MO(t,e){return t===null||t(e)}wt.isAppliedFilter=MO;function FO(t,e){return t.split(/[/\\]/).join(e)}wt.replacePathSegmentSeparator=FO;function BO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}wt.joinPathSegments=BO});var kl=H(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var jO=Ns(),Ol=class{constructor(e,r){this._root=e,this._settings=r,this._root=jO.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Tl.default=Ol});var Pl=H(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var HO=require("events"),qO=Is(),UO=Iy(),Ds=Ns(),$O=kl(),Cl=class extends $O.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=qO.scandir,this._emitter=new HO.EventEmitter,this._queue=UO(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)}};Ll.default=Cl});var Ny=H(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var GO=Pl(),Il=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new GO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{zO(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{WO(e,this._storage)}),this._reader.read()}};Nl.default=Il;function zO(t,e){t(e)}function WO(t,e){t(null,e)}});var Dy=H(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var YO=require("stream"),KO=Pl(),Dl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new KO.default(this._root,this._settings),this._stream=new YO.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ml.default=Dl});var My=H(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var VO=Is(),Ms=Ns(),ZO=kl(),Fl=class extends ZO.default{constructor(){super(...arguments),this._scandir=VO.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)}};Bl.default=Fl});var Fy=H(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var XO=My(),jl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new XO.default(this._root,this._settings)}read(){return this._reader.read()}};Hl.default=jl});var By=H(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var JO=require("path"),QO=Is(),ql=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,JO.sep),this.fsScandirSettings=new QO.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ul.default=ql});var Bs=H(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.Settings=St.walkStream=St.walkSync=St.walk=void 0;var jy=Ny(),eT=Dy(),tT=Fy(),$l=By();St.Settings=$l.default;function rT(t,e,r){if(typeof e=="function"){new jy.default(t,Fs()).read(e);return}new jy.default(t,Fs(e)).read(r)}St.walk=rT;function iT(t,e){let r=Fs(e);return new tT.default(t,r).read()}St.walkSync=iT;function nT(t,e){let r=Fs(e);return new eT.default(t,r).read()}St.walkStream=nT;function Fs(t={}){return t instanceof $l.default?t:new $l.default(t)}});var js=H(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var sT=require("path"),oT=Nr(),Hy=Nt(),Gl=class{constructor(e){this._settings=e,this._fsStatSettings=new oT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return sT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Hy.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Hy.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};zl.default=Gl});var Kl=H(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var aT=require("stream"),lT=Nr(),cT=Bs(),uT=js(),Wl=class extends uT.default{constructor(){super(...arguments),this._walkStream=cT.walkStream,this._stat=lT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new aT.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Yl.default=Wl});var qy=H(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var hT=Bs(),fT=js(),pT=Kl(),Vl=class extends fT.default{constructor(){super(...arguments),this._walkAsync=hT.walk,this._readerStream=new pT.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Zl.default=Vl});var Uy=H(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var bi=Nt(),Xl=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=bi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return bi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>bi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:bi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return bi.array.splitWhen(e,r=>r.dynamic&&bi.pattern.hasGlobStar(r.pattern))}};Jl.default=Xl});var $y=H(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var dT=Uy(),Ql=class extends dT.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};ec.default=Ql});var Gy=H(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Hs=Nt(),mT=$y(),tc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new mT.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)}};rc.default=tc});var zy=H(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Dr=Nt(),ic=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Dr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Dr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=Dr.path.makeAbsolute(this._settings.cwd,e);return Dr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Dr.path.removeLeadingDotSegment(e),s=Dr.pattern.matchAny(n,r);return!s&&i?Dr.pattern.matchAny(n+"/",r):s}};nc.default=ic});var Wy=H(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var yT=Nt(),sc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return yT.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};oc.default=sc});var Ky=H(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Yy=Nt(),ac=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Yy.path.makeAbsolute(this._settings.cwd,r),r=Yy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};lc.default=ac});var qs=H(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var gT=require("path"),_T=Gy(),bT=zy(),wT=Wy(),ST=Ky(),cc=class{constructor(e){this._settings=e,this.errorFilter=new wT.default(this._settings),this.entryFilter=new bT.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new _T.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new ST.default(this._settings)}_getRootDirectory(e){return gT.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};uc.default=cc});var Vy=H(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var ET=qy(),vT=qs(),hc=class extends vT.default{constructor(){super(...arguments),this._reader=new ET.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};fc.default=hc});var Zy=H(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var RT=require("stream"),xT=Kl(),AT=qs(),pc=class extends AT.default{constructor(){super(...arguments),this._reader=new xT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new RT.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};dc.default=pc});var Xy=H(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var OT=Nr(),TT=Bs(),kT=js(),mc=class extends kT.default{constructor(){super(...arguments),this._walkSync=TT.walkSync,this._statSync=OT.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};yc.default=mc});var Jy=H(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var CT=Xy(),LT=qs(),gc=class extends LT.default{constructor(){super(...arguments),this._reader=new CT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};_c.default=gc});var Qy=H(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wi=require("fs"),PT=require("os"),IT=Math.max(PT.cpus().length,1);Si.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wi.lstat,lstatSync:wi.lstatSync,stat:wi.stat,statSync:wi.statSync,readdir:wi.readdir,readdirSync:wi.readdirSync};var bc=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,IT),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Si.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Si.default=bc});var Us=H((YN,rg)=>{"use strict";var eg=Qm(),tg=ty(),NT=Vy(),DT=Zy(),MT=Jy(),wc=Qy(),Mr=Nt();async function Sc(t,e){Ei(t);let r=Ec(t,NT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=Ec(o,MT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=Ec(o,DT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=tg.transform([].concat(o)),c=new wc.default(a);return eg.generate(l,c)}t.generateTasks=i;function n(o,a){Ei(o);let l=new wc.default(a);return Mr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Ei(o),Mr.path.escape(o)}t.escapePath=s})(Sc||(Sc={}));function Ec(t,e,r){let i=tg.transform([].concat(t)),n=new wc.default(r),s=eg.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")}rg.exports=Sc});var Fg=H((mM,Bt)=>{function Dc(t){return Bt.exports=Dc=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,Dc(t)}Bt.exports=Dc,Bt.exports.__esModule=!0,Bt.exports.default=Bt.exports});var Hg=H((yM,jt)=>{var Bg=Fg().default;function jg(){"use strict";jt.exports=jg=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&&Bg(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(Bg(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=jg,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var Ug=H((gM,qg)=>{var Vs=Hg()();qg.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var ki=H((oF,i_)=>{"use strict";var r_=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);i_.exports=t=>t?Object.keys(t).map(e=>[r_.has(e)?r_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=H((aF,f_)=>{"use strict";var n_=typeof process=="object"&&process?process:{stdout:null,stderr:null},G1=require("events"),s_=require("stream"),o_=require("string_decoder").StringDecoder,qt=Symbol("EOF"),Ut=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Xs=Symbol("emittingEnd"),On=Symbol("emittedError"),Js=Symbol("closed"),a_=Symbol("read"),Qs=Symbol("flush"),l_=Symbol("flushChunk"),Ge=Symbol("encoding"),$t=Symbol("decoder"),eo=Symbol("flowing"),Tn=Symbol("paused"),Ci=Symbol("resume"),we=Symbol("buffer"),xt=Symbol("pipes"),Oe=Symbol("bufferLength"),$c=Symbol("bufferPush"),Gc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),zc=Symbol("emitData"),c_=Symbol("emitEnd"),Wc=Symbol("emitEnd2"),Gt=Symbol("async"),kn=t=>Promise.resolve().then(t),u_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",z1=u_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),W1=u_&&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),to=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()}},Yc=class extends to{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};f_.exports=class h_ extends s_{constructor(e){super(),this[eo]=!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 o_(this[Ge]):null,this[qt]=!1,this[dr]=!1,this[Xs]=!1,this[Js]=!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 o_(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[Qs](!0),this.flowing?this.emit("data",e):this[$c](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[Qs](!0),this.flowing?this.emit("data",e):this[$c](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[a_](e||null,this[we][0]);return this[Ut](),r}[a_](e,r){return e===r.length||e===null?this[Gc]():(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[eo]=!0,this.emit("resume"),this[we].length?this[Qs]():this[qt]?this[Ut]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[eo]=!1,this[Tn]=!0}get destroyed(){return this[De]}get flowing(){return this[eo]}get paused(){return this[Tn]}[$c](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[we].push(e)}[Gc](){return this[we].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[we][0].length),this[we].shift()}[Qs](e){do;while(this[l_](this[Gc]()));!e&&!this[we].length&&!this[qt]&&this.emit("drain")}[l_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[De])return;let i=this[dr];return r=r||{},e===n_.stdout||e===n_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[xt].push(r.proxyErrors?new Yc(this,e,r):new to(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[Xs]&&!this[dr]&&!this[De]&&this[we].length===0&&this[qt]&&(this[Xs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Js]&&this.emit("close"),this[Xs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Gt]?kn(()=>this[zc](r)):this[zc](r):!1;if(e==="end")return this[c_]();if(e==="close"){if(this[Js]=!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}[zc](e){for(let i of this[xt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ut](),r}[c_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?kn(()=>this[Wc]()):this[Wc]())}[Wc](){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[Js]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof h_||e instanceof s_||e instanceof G1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var d_=H((lF,p_)=>{var Z1=require("zlib").constants||{ZLIB_VERNUM:4736};p_.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Z1))});var Qc=H((cF,v_)=>{"use strict";var m_=typeof process=="object"&&process?process:{stdout:null,stderr:null},X1=require("events"),y_=require("stream"),g_=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),Cn=Symbol("emittedError"),no=Symbol("closed"),__=Symbol("read"),so=Symbol("flush"),b_=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),oo=Symbol("flowing"),Ln=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Kc=Symbol("bufferPush"),Vc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Zc=Symbol("emitData"),w_=Symbol("emitEnd"),Xc=Symbol("emitEnd2"),Kt=Symbol("async"),Pn=t=>Promise.resolve().then(t),S_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",J1=S_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Q1=S_&&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),ao=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()}},Jc=class extends ao{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};v_.exports=class E_ extends y_{constructor(e){super(),this[oo]=!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 g_(this[ze]):null,this[zt]=!1,this[mr]=!1,this[io]=!1,this[no]=!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 g_(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[so](!0),this.flowing?this.emit("data",e):this[Kc](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[so](!0),this.flowing?this.emit("data",e):this[Kc](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[__](e||null,this.buffer[0]);return this[Wt](),r}[__](e,r){return e===r.length||e===null?this[Vc]():(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[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[oo]=!1,this[Ln]=!0}get destroyed(){return this[Fe]}get flowing(){return this[oo]}get paused(){return this[Ln]}[Kc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Vc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[b_](this[Vc]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[b_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Fe])return;let i=this[mr];return r=r||{},e===m_.stdout||e===m_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Jc(this,e,r):new ao(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[io]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[zt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Kt]?Pn(()=>this[Zc](r)):this[Zc](r):!1;if(e==="end")return this[w_]();if(e==="close"){if(this[no]=!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}[Zc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[w_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Kt]?Pn(()=>this[Xc]()):this[Xc]())}[Xc](){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[no]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof E_||e instanceof y_||e instanceof X1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mu=H(Xe=>{"use strict";var nu=require("assert"),yr=require("buffer").Buffer,A_=require("zlib"),qr=Xe.constants=d_(),iC=Qc(),R_=yr.concat,Ur=Symbol("_superWrite"),Ii=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},nC=Symbol("opts"),In=Symbol("flushFlag"),x_=Symbol("finishFlushFlag"),du=Symbol("fullFlushFlag"),pe=Symbol("handle"),lo=Symbol("onError"),Pi=Symbol("sawError"),eu=Symbol("level"),tu=Symbol("strategy"),ru=Symbol("ended"),uF=Symbol("_defaultFullFlush"),co=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[ru]=!1,this[nC]=e,this[In]=e.flush,this[x_]=e.finishFlush;try{this[pe]=new A_[r](e)}catch(i){throw new Ii(i)}this[lo]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[lo](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 nu(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[du]),this.write(Object.assign(yr.alloc(0),{[In]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[x_]),this[ru]=!0,super.end(null,null,i)}get ended(){return this[ru]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;nu(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=R_}catch(c){yr.concat=R_,this[lo](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[lo](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 co{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[du]=qr.Z_FULL_FLUSH,this[eu]=e.level,this[tu]=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[eu]!==e||this[tu]!==r){this.flush(qr.Z_SYNC_FLUSH),nu(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[eu]=e,this[tu]=r)}}}},su=class extends Vt{constructor(e){super(e,"Deflate")}},ou=class extends Vt{constructor(e){super(e,"Inflate")}},iu=Symbol("_portable"),au=class extends Vt{constructor(e){super(e,"Gzip"),this[iu]=e&&!!e.portable}[Ur](e){return this[iu]?(this[iu]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},lu=class extends Vt{constructor(e){super(e,"Gunzip")}},cu=class extends Vt{constructor(e){super(e,"DeflateRaw")}},uu=class extends Vt{constructor(e){super(e,"InflateRaw")}},hu=class extends Vt{constructor(e){super(e,"Unzip")}},uo=class extends co{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[du]=qr.BROTLI_OPERATION_FLUSH}},fu=class extends uo{constructor(e){super(e,"BrotliCompress")}},pu=class extends uo{constructor(e){super(e,"BrotliDecompress")}};Xe.Deflate=su;Xe.Inflate=ou;Xe.Gzip=au;Xe.Gunzip=lu;Xe.DeflateRaw=cu;Xe.InflateRaw=uu;Xe.Unzip=hu;typeof A_.BrotliCompress=="function"?(Xe.BrotliCompress=fu,Xe.BrotliDecompress=pu):Xe.BrotliCompress=Xe.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((pF,O_)=>{var sC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;O_.exports=sC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=H((mF,T_)=>{"use strict";var oC=ro(),yu=Ni(),gu=Symbol("slurp");T_.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=yu(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=yu(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[gu](r),i&&this[gu](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))}[gu](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yu(e[i]):e[i])}}});var _u=H(fo=>{"use strict";fo.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"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var P_=H((gF,L_)=>{"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]=k_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=C_(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=k_(s):s===0?o=s:(i=!0,o=C_(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},k_=t=>(255^t)&255,C_=t=>(255^t)+1&255;L_.exports={encode:aC,parse:uC}});var Mi=H((_F,N_)=>{"use strict";var bu=_u(),Di=require("path").posix,I_=P_(),wu=Symbol("slurp"),Je=Symbol("type"),vu=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=Su(e,r+136,12),this.cksum=gr(e,r+148,12),this[wu](i),this[wu](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=Su(e,r+476,12),this.ctime=Su(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)}[wu](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=Eu(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=Eu(e,r+476,12,this.atime)||this.needPax,this.needPax=Eu(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 bu.name.get(this[Je])||this[Je]}get typeKey(){return this[Je]}set type(e){bu.code.has(e)?this[Je]=bu.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.*/,""),Su=(t,e,r)=>dC(gr(t,e,r)),dC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?I_.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?(I_.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",Eu=(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);N_.exports=vu});var po=H((bF,D_)=>{"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};D_.exports=Nn});var Fi=H((wF,M_)=>{M_.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var mo=H((SF,F_)=>{"use strict";F_.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var xu=H((vF,B_)=>{"use strict";var yo=["|","<",">","?",":"],Ru=yo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),OC=new Map(yo.map((t,e)=>[t,Ru[e]])),TC=new Map(Ru.map((t,e)=>[t,yo[e]]));B_.exports={encode:t=>yo.reduce((e,r)=>e.split(r).join(OC.get(r)),t),decode:t=>Ru.reduce((e,r)=>e.split(r).join(TC.get(r)),t)}});var Au=H((RF,H_)=>{var{isAbsolute:kC,parse:j_}=require("path").win32;H_.exports=t=>{let e="",r=j_(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=j_(t)}return[e,t]}});var U_=H((xF,q_)=>{"use strict";q_.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Mu=H((TF,rb)=>{"use strict";var V_=ro(),Z_=po(),X_=Mi(),Ot=require("fs"),$_=require("path"),At=Ni(),CC=Fi(),J_=(t,e)=>e?(t=At(t).replace(/^\.(\/|$)/,""),CC(e)+"/"+t):At(t),LC=16*1024*1024,G_=Symbol("process"),z_=Symbol("file"),W_=Symbol("directory"),Tu=Symbol("symlink"),Y_=Symbol("hardlink"),Dn=Symbol("header"),go=Symbol("read"),ku=Symbol("lstat"),_o=Symbol("onlstat"),Cu=Symbol("onread"),Lu=Symbol("onreadlink"),Pu=Symbol("openfile"),Iu=Symbol("onopenfile"),br=Symbol("close"),bo=Symbol("mode"),Nu=Symbol("awaitDrain"),Ou=Symbol("ondrain"),Tt=Symbol("prefix"),K_=Symbol("hadError"),Q_=mo(),PC=xu(),eb=Au(),tb=U_(),wo=Q_(class extends V_{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]=eb(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||$_.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[_o](this.statCache.get(this.absolute)):this[ku]()}emit(e,...r){return e==="error"&&(this[K_]=!0),super.emit(e,...r)}[ku](){Ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_o](r)})}[_o](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=NC(e),this.emit("stat",e),this[G_]()}[G_](){switch(this.type){case"File":return this[z_]();case"Directory":return this[W_]();case"SymbolicLink":return this[Tu]();default:return this.end()}}[bo](e){return tb(e,this.type==="Directory",this.portable)}[Tt](e){return J_(e,this.prefix)}[Dn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new X_({path:this[Tt](this.path),linkpath:this.type==="Link"?this[Tt](this.linkpath):this.linkpath,mode:this[bo](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Z_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[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)}[W_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Dn](),this.end()}[Tu](){Ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Lu](r)})}[Lu](e){this.linkpath=At(e),this[Dn](),this.end()}[Y_](e){this.type="Link",this.linkpath=At($_.relative(this.cwd,e)),this.stat.size=0,this[Dn](),this.end()}[z_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[Y_](r)}this.linkCache.set(e,this.absolute)}if(this[Dn](),this.stat.size===0)return this.end();this[Pu]()}[Pu](){Ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Iu](r)})}[Iu](e){if(this.fd=e,this[K_])return this[br]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[go]()}[go](){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[Cu](a)})}[br](e){Ot.close(this.fd,e)}[Cu](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[Ou]():this[Nu](()=>this[Ou]())}[Nu](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)}[Ou](){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[go]()}}),Du=class extends wo{[ku](){this[_o](Ot.lstatSync(this.absolute))}[Tu](){this[Lu](Ot.readlinkSync(this.absolute))}[Pu](){this[Iu](Ot.openSync(this.absolute,"r"))}[go](){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[Cu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Nu](e){e()}[br](e){Ot.closeSync(this.fd),e()}},IC=Q_(class extends V_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=At(e.path),this.mode=this[bo](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]=eb(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new X_({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 Z_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[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 J_(e,this.prefix)}[bo](e){return tb(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});wo.Sync=Du;wo.Tar=IC;var NC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";rb.exports=wo});var nb=H((kF,ib)=>{"use strict";ib.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Fu=H((CF,sb)=>{"use strict";sb.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}oe.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};oe.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};oe.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)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{nb()(oe)}catch{}});var ko=H((PF,fb)=>{"use strict";var Oo=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=ro(),jC=mu(),HC=ho(),Wu=Mu(),qC=Wu.Sync,UC=Wu.Tar,$C=Fu(),ob=Buffer.alloc(1024),vo=Symbol("onStat"),So=Symbol("ended"),kt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),Eo=Symbol("processing"),ab=Symbol("processJob"),Ct=Symbol("jobs"),Bu=Symbol("jobDone"),Ro=Symbol("addFSEntry"),lb=Symbol("addTarEntry"),Uu=Symbol("stat"),$u=Symbol("readdir"),xo=Symbol("onreaddir"),Ao=Symbol("pipe"),cb=Symbol("entry"),ju=Symbol("entryOpt"),Gu=Symbol("writeEntryClass"),hb=Symbol("write"),Hu=Symbol("ondrain"),To=require("fs"),ub=require("path"),GC=mo(),qu=Ni(),Yu=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=qu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gu]=Wu,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[Hu]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hu]),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[Eo]=!1,this[So]=!1}[hb](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[So]=!0,this[Wr](),this}write(e){if(this[So])throw new Error("write after end");return e instanceof HC?this[lb](e):this[Ro](e),this.flowing}[lb](e){let r=qu(ub.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Oo(e.path,r,!1);i.entry=new UC(e,this[ju](i)),i.entry.on("end",n=>this[Bu](i)),this[Ct]+=1,this[kt].push(i)}this[Wr]()}[Ro](e){let r=qu(ub.resolve(this.cwd,e));this[kt].push(new Oo(e,r)),this[Wr]()}[Uu](e){e.pending=!0,this[Ct]+=1;let r=this.follow?"stat":"lstat";To[r](e.absolute,(i,n)=>{e.pending=!1,this[Ct]-=1,i?this.emit("error",i):this[vo](e,n)})}[vo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[$u](e){e.pending=!0,this[Ct]+=1,To.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ct]-=1,r)return this.emit("error",r);this[xo](e,i)})}[xo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[Eo]){this[Eo]=!0;for(let e=this[kt].head;e!==null&&this[Ct]<this.jobs;e=e.next)if(this[ab](e.value),e.value.ignore){let r=e.next;this[kt].removeNode(e),e.next=r}this[Eo]=!1,this[So]&&!this[kt].length&&this[Ct]===0&&(this.zip?this.zip.end(ob):(super.write(ob),super.end()))}}get[Bi](){return this[kt]&&this[kt].head&&this[kt].head.value}[Bu](e){this[kt].shift(),this[Ct]-=1,this[Wr]()}[ab](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[Ao](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[vo](e,this.statCache.get(e.absolute)):this[Uu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[xo](e,this.readdirCache.get(e.absolute)):this[$u](e),!e.readdir))){if(e.entry=this[cb](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[Ao](e)}}}[ju](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[cb](e){this[Ct]+=1;try{return new this[Gu](e.path,this[ju](e)).on("end",()=>this[Bu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hu](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[Ao](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ro](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()}}),zu=class extends Yu{constructor(e){super(e),this[Gu]=qC}pause(){}resume(){}[Uu](e){let r=this.follow?"statSync":"lstatSync";this[vo](e,To[r](e.absolute))}[$u](e,r){this[xo](e,To.readdirSync(e.absolute))}[Ao](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ro](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[hb](n)})}};Yu.Sync=zu;fb.exports=Yu});var Wi=H(Fn=>{"use strict";var zC=Qc(),WC=require("events").EventEmitter,We=require("fs"),Zu=We.writev;if(!Zu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zu=(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"),pb=Symbol("_finished"),Sr=Symbol("_flags"),Ku=Symbol("_flush"),Xu=Symbol("_handleChunk"),Ju=Symbol("_makeBuf"),No=Symbol("_mode"),Co=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Vu=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Zt=Symbol("_path"),Yr=Symbol("_pos"),Lt=Symbol("_queue"),qi=Symbol("_read"),db=Symbol("_readSize"),wr=Symbol("_reading"),Lo=Symbol("_remain"),mb=Symbol("_size"),Po=Symbol("_write"),ji=Symbol("_writing"),Io=Symbol("_defaultFlag"),$i=Symbol("_errored"),Do=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[db]=r.readSize||16*1024*1024,this[wr]=!1,this[mb]=typeof r.size=="number"?r.size:1/0,this[Lo]=this[mb],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[Er]()}get fd(){return this[he]}get path(){return this[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]())}[Ju](){return Buffer.allocUnsafe(Math.min(this[db],this[Lo]))}[qi](){if(!this[wr]){this[wr]=!0;let e=this[Ju]();if(e.length===0)return process.nextTick(()=>this[Vu](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Vu](r,i,n))}}[Vu](e,r,i){this[wr]=!1,e?this[Ui](e):this[Xu](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)}[Xu](e,r){let i=!1;return this[Lo]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Lo]<=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)}}},Qu=class extends Do{[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[Ju](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Xu](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")}}},Mo=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[Co]=!1,this[Lt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[No]=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[Io]=r.flags===void 0,this[Sr]=this[Io]?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[No],(e,r)=>this[zi](e,r))}[zi](e,r){this[Io]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Ku]())}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[Co]=!0,!1):(this[ji]=!0,this[Po](e),!0)}[Po](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[Ku]():(this[ji]=!1,this[Mn]&&!this[pb]?(this[pb]=!0,this[ft](),this.emit("finish")):this[Co]&&(this[Co]=!1,this.emit("drain"))))}[Ku](){if(this[Lt].length===0)this[Mn]&&this[Hi](null,0);else if(this[Lt].length===1)this[Po](this[Lt].pop());else{let e=this[Lt];this[Lt]=[],Zu(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"))}}},eh=class extends Mo{[Er](){let e;if(this[Io]&&this[Sr]==="r+")try{e=We.openSync(this[Zt],this[Sr],this[No])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Er]();throw r}else e=We.openSync(this[Zt],this[Sr],this[No]);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")}}[Po](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=Do;Fn.ReadStreamSync=Qu;Fn.WriteStream=Mo;Fn.WriteStreamSync=eh});var $o=H((DF,vb)=>{"use strict";var YC=mo(),KC=Mi(),VC=require("events"),ZC=Fu(),XC=1024*1024,JC=ho(),yb=po(),QC=mu(),{nextTick:eL}=require("process"),th=Buffer.from([31,139]),nt=Symbol("state"),Kr=Symbol("writeEntry"),Xt=Symbol("readEntry"),rh=Symbol("nextEntry"),gb=Symbol("processEntry"),st=Symbol("extendedHeader"),Bn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),_b=Symbol("emitMeta"),de=Symbol("buffer"),Jt=Symbol("queue"),Vr=Symbol("ended"),bb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ye=Symbol("unzip"),Fo=Symbol("consumeChunk"),Bo=Symbol("consumeChunkSub"),ih=Symbol("consumeBody"),wb=Symbol("consumeMeta"),Sb=Symbol("consumeHeader"),jo=Symbol("consuming"),nh=Symbol("bufferConcat"),sh=Symbol("maybeEnd"),jn=Symbol("writing"),Rr=Symbol("aborted"),Ho=Symbol("onDone"),Xr=Symbol("sawValidEntry"),qo=Symbol("sawNullBlock"),Uo=Symbol("sawEOF"),Eb=Symbol("closeStream"),tL=t=>!0;vb.exports=YC(class extends VC{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on(Ho,r=>{(this[nt]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ho,e.ondone):this.on(Ho,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[qo]=!1,this[Uo]=!1,this.on("end",()=>this[Eb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Sb](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new KC(e,r,this[st],this[Bn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[qo]?(this[Uo]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Zr]("eof")):(this[qo]=!0,this[Zr]("nullBlock"));else if(this[qo]=!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[rh]())))}}}[Eb](){eL(()=>this.emit("close"))}[gb](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[rh]()),r=!1)):(this[Xt]=null,r=!1),r}[rh](){do;while(this[gb](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"))}}[ih](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}[wb](e,r){let i=this[Kr],n=this[ih](e,r);return this[Kr]||this[_b](i),n}[Zr](e,r,i){!this[Jt].length&&!this[Xt]?this.emit(e,r,i):this[Jt].push([e,r,i])}[_b](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=yb.parse(this[vr],this[st],!1);break;case"GlobalExtendedHeader":this[Bn]=yb.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<th.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<th.length;i++)e[i]!==th[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[Fo](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[Vr]=!0,this[Fo]()}),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[Fo](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}[nh](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[sh](){if(this[Vr]&&!this[bb]&&!this[Rr]&&!this[jo]){this[bb]=!0;let e=this[Kr];if(e&&e.blockRemain){let r=this[de]?this[de].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[de]&&e.write(this[de]),e.end()}this[Zr](Ho)}}[Fo](e){if(this[jo])this[nh](e);else if(!e&&!this[de])this[sh]();else{if(this[jo]=!0,this[de]){this[nh](e);let r=this[de];this[de]=null,this[Bo](r)}else this[Bo](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[Uo];){let r=this[de];this[de]=null,this[Bo](r)}this[jo]=!1}(!this[de]||this[Vr])&&this[sh]()}[Bo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[Uo];)switch(this[nt]){case"begin":case"header":this[Sb](e,r),r+=512;break;case"ignore":case"body":r+=this[ih](e,r);break;case"meta":r+=this[wb](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 Go=H((MF,Ob)=>{"use strict";var rL=ki(),xb=$o(),Yi=require("fs"),iL=Wi(),Rb=require("path"),oh=Fi();Ob.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=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):Ab(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=>[oh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Rb.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Rb.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(oh(s)):s=>n(oh(s))},oL=t=>{let e=Ab(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");a<s.size;){let c=Yi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},aL=(t,e)=>{let r=new xb(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Yi.stat(n,(l,c)=>{if(l)a(l);else{let u=new iL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Ab=t=>new xb(t)});var Ib=H((FF,Pb)=>{"use strict";var lL=ki(),zo=ko(),Tb=Wi(),kb=Go(),Cb=require("path");Pb.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=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 zo.Sync(t),i=new Tb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Lb(r,e)},uL=(t,e,r)=>{let i=new zo(t),n=new Tb.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return ah(i,e),r?s.then(r,r):s},Lb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?kb({file:Cb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},ah=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return kb({file:Cb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>ah(t,e));t.add(r)}t.end()},hL=(t,e)=>{let r=new zo.Sync(t);return Lb(r,e),r},fL=(t,e)=>{let r=new zo(t);return ah(r,e),r}});var lh=H((BF,Hb)=>{"use strict";var pL=ki(),Nb=ko(),Qe=require("fs"),Db=Wi(),Mb=Go(),Fb=require("path"),Bb=Mi();Hb.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 Nb.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 Bb(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,mL(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},mL=(t,e,r,i,n)=>{let s=new Db.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),gL(e,n)},yL=(t,e,r)=>{e=Array.from(e);let i=new Nb(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 Bb(f);if(!_.cksumValid)return c(null,u);let x=512*Math.ceil(_.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),h=0,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 Db.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),jb(i,e)})})};Qe.open(t.file,l,c)});return r?s.then(r,r):s},gL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Mb({file:Fb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},jb=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Mb({file:Fb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>jb(t,e));t.add(r)}t.end()}});var Ub=H((jF,qb)=>{"use strict";var _L=ki(),bL=lh();qb.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 zb=H((HF,Gb)=>{var{promisify:$b}=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=$b(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=$b(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};Gb.exports=SL});var Yb=H((qF,Wb)=>{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};Wb.exports=xL});var Jb=H((UF,Xb)=>{var{dirname:Kb}=require("path"),Vb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Vb(t,Kb(e),e):void 0),Zb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Zb(t,Kb(e),e):void 0}};Xb.exports={findMade:Vb,findMadeSync:Zb}});var hh=H(($F,ew)=>{var{dirname:Qb}=require("path"),ch=(t,e,r)=>{e.recursive=!1;let i=Qb(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return ch(i,e).then(s=>ch(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})})},uh=(t,e,r)=>{let i=Qb(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return uh(t,e,uh(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ew.exports={mkdirpManual:ch,mkdirpManualSync:uh}});var iw=H((GF,rw)=>{var{dirname:tw}=require("path"),{findMade:AL,findMadeSync:OL}=Jb(),{mkdirpManual:TL,mkdirpManualSync:kL}=hh(),CL=(t,e)=>(e.recursive=!0,tw(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,tw(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}};rw.exports={mkdirpNative:CL,mkdirpNativeSync:LL}});var aw=H((zF,ow)=>{var nw=require("fs"),PL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fh=PL.replace(/^v/,"").split("."),sw=+fh[0]>10||+fh[0]==10&&+fh[1]>=12,IL=sw?t=>t.mkdir===nw.mkdir:()=>!1,NL=sw?t=>t.mkdirSync===nw.mkdirSync:()=>!1;ow.exports={useNative:IL,useNativeSync:NL}});var pw=H((WF,fw)=>{var Ki=zb(),Vi=Yb(),{mkdirpNative:lw,mkdirpNativeSync:cw}=iw(),{mkdirpManual:uw,mkdirpManualSync:hw}=hh(),{useNative:DL,useNativeSync:ML}=aw(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),DL(e)?lw(t,e):uw(t,e)),FL=(t,e)=>(t=Vi(t),e=Ki(e),ML(e)?cw(t,e):hw(t,e));Zi.sync=FL;Zi.native=(t,e)=>lw(Vi(t),Ki(e));Zi.manual=(t,e)=>uw(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>cw(Vi(t),Ki(e));Zi.manualSync=(t,e)=>hw(Vi(t),Ki(e));fw.exports=Zi});var ww=H((YF,bw)=>{"use strict";var ot=require("fs"),Jr=require("path"),BL=ot.lchown?"lchown":"chown",jL=ot.lchownSync?"lchownSync":"chownSync",mw=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),dw=(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=mw?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,ph=mw?(t,e,r)=>{try{return dw(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;HL(t,e,r)}}:(t,e,r)=>dw(t,e,r),UL=process.version,yw=(t,e,r)=>ot.readdir(t,e,r),$L=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(UL)&&(yw=(t,e,r)=>ot.readdir(t,r));var Wo=(t,e,r,i)=>{ot[BL](t,e,r,qL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},gw=(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,gw(t,o,r,i,n)});if(e.isDirectory())dh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Wo(s,r,i,n)}},dh=(t,e,r,i)=>{yw(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Wo(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Wo(t,e,r,i)}};s.forEach(c=>gw(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()&&_w(Jr.resolve(t,e.name),r,i),ph(Jr.resolve(t,e.name),r,i)},_w=(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 ph(t,e,r);throw n}return i&&i.length&&i.forEach(n=>GL(t,n,e,r)),ph(t,e,r)};bw.exports=dh;dh.sync=_w});var Rw=H((KF,mh)=>{"use strict";var Sw=pw(),at=require("fs"),Yo=require("path"),Ew=ww(),pt=Ni(),Ko=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(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 Vo(t,r&&r.code||"ENOTDIR")),e(r)})};mh.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?Ew(x,o,a,k=>d(k)):s?at.chmod(t,n,r):r())};if(h&&Zo(h,t)===!0)return d();if(t===f)return zL(t,d);if(c)return Sw(t,{mode:n}).then(_=>d(null,_),d);let y=pt(Yo.relative(f,t)).split("/");Xo(f,y,n,h,u,f,null,d)};var Xo=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=pt(Yo.resolve(t+"/"+l));if(Zo(i,c))return Xo(c,e,r,i,n,s,o,a);at.mkdir(c,r,vw(c,e,r,i,n,s,o,a))},vw=(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())Xo(t,e,r,i,n,s,o,a);else if(n)at.unlink(t,h=>{if(h)return a(h);at.mkdir(t,r,vw(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Ko(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Xo(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 Vo(t,r)}};mh.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&&Ew.sync(_,s,o),n&&at.chmodSync(t,i)};if(u&&Zo(u,t)===!0)return f();if(t===h)return WL(h),f();if(l)return f(Sw.sync(t,i));let g=pt(Yo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=pt(Yo.resolve(x)),!Zo(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 Ko(x,x+"/"+g.join("/"))}return f(y)}});var gh=H((VF,xw)=>{var yh=Object.create(null),{hasOwnProperty:YL}=Object.prototype;xw.exports=t=>(YL.call(yh,t)||(yh[t]=t.normalize("NFKD")),yh[t])});var kw=H((ZF,Tw)=>{var Aw=require("assert"),KL=gh(),VL=Fi(),{join:Ow}=require("path"),ZL=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,XL=ZL==="win32";Tw.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=Ow(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(d=>{let g=t.get(d);Aw.equal(g[0],c),g.length===1?t.delete(d):(g.shift(),typeof g[0]=="function"?f.add(g[0]):g[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let g=t.get(d);Aw(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,u)=>{c=XL?["win32 parallelization disabled"]:c.map(f=>KL(VL(Ow(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(u):t.set(f,[u])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(u):d.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var Pw=H((XF,Lw)=>{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:Cw=0}=eP.constants,nP=QL&&!!Cw,sP=512*1024,oP=Cw|rP|tP|iP;Lw.exports=nP?t=>t<sP?oP:"w":()=>"w"});var Ah=H((JF,Ww)=>{"use strict";var aP=require("assert"),lP=$o(),ae=require("fs"),cP=Wi(),Qt=require("path"),$w=Rw(),Iw=xu(),uP=kw(),hP=Au(),et=Ni(),fP=Fi(),pP=gh(),Nw=Symbol("onEntry"),wh=Symbol("checkFs"),Dw=Symbol("checkFs2"),ea=Symbol("pruneCache"),Sh=Symbol("isReusable"),lt=Symbol("makeFs"),Eh=Symbol("file"),vh=Symbol("directory"),ta=Symbol("link"),Mw=Symbol("symlink"),Fw=Symbol("hardlink"),Bw=Symbol("unsupported"),jw=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),Jo=Symbol("pending"),Hw=Symbol("pend"),Xi=Symbol("unpend"),_h=Symbol("ended"),bh=Symbol("maybeClose"),Rh=Symbol("skip"),qn=Symbol("doChown"),Un=Symbol("uid"),$n=Symbol("gid"),Gn=Symbol("checkedCwd"),Gw=require("crypto"),zw=Pw(),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."+Gw.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."+Gw.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},qw=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,Uw=t=>pP(fP(et(t))).toLowerCase(),gP=(t,e)=>{e=Uw(e);for(let r of t.keys()){let i=Uw(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[_h]=!0,this[bh]()},super(e),this[Gn]=!1,this.reservations=uP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Jo]=0,this[_h]=!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[Nw](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[bh](){this[_h]&&this[Jo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[jw](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+Iw.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+Iw.encode(e.path.slice(i.length))}return!0}[Nw](e){if(!this[jw](e))return e.resume();switch(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[wh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[Bw](e)}}[Be](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Xi](),r.resume())}[Ar](e,r,i){$w(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 qw(this.uid,e.uid,this.processUid)}[$n](e){return qw(this.gid,e.gid,this.processGid)}[Eh](e,r){let i=e.mode&4095||this.fmode,n=new cP.WriteStream(e.absolute,{flags:zw(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&ae.close(n.fd,()=>{}),n.write=()=>!0,this[Be](l,e),r()});let s=1,o=l=>{if(l){n.fd&&ae.close(n.fd,()=>{}),this[Be](l,e),r();return}--s===0&&ae.close(n.fd,c=>{c?this[Be](c,e):this[Xi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ae.futimes(u,h,f,d=>d?ae.utimes(c,h,f,g=>o(g&&d)):o())}if(this[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)}[vh](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()})}[Bw](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Mw](e,r){this[ta](e,e.linkpath,"symlink",r)}[Fw](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[ta](e,i,"link",r)}[Hw](){this[Jo]++}[Xi](){this[Jo]--,this[bh]()}[Rh](e){this[Xi](),e.resume()}[Sh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[wh](e){this[Hw]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[Dw](e,i))}[ea](e){e.type==="SymbolicLink"?_P(this.dirCache):e.type!=="Directory"&&gP(this.dirCache,e.absolute)}[Dw](e,r){this[ea](e);let i=a=>{this[ea](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[Rh](e),i();return}if(a||this[Sh](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[Eh](r,i);case"Link":return this[Fw](r,i);case"SymbolicLink":return this[Mw](r,i);case"Directory":case"GNUDumpDir":return this[vh](r,i)}}[ta](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},xh=class extends Wn{[lt](e,r){return super[lt](e,r,()=>{})}[wh](e){if(this[ea](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]=Qo(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Rh](e);if(r||this[Sh](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?Qo(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[lt](a,e)}let[s]=Qo(()=>ae.rmdirSync(e.absolute));this[lt](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>yP(e.absolute));this[lt](n,e)}[Eh](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{ae.closeSync(s)}catch(c){l=c}(a||l)&&this[Be](a||l,e),r()},s;try{s=ae.openSync(e.absolute,zw(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Be](a,e)),e.pipe(o)),o.on("data",a=>{try{ae.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{ae.futimesSync(s,c,u)}catch(h){try{ae.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[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)})}[vh](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 $w.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}}[ta](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Wn.Sync=xh;Ww.exports=Wn});var Xw=H((QF,Zw)=>{"use strict";var bP=ki(),ra=Ah(),Kw=require("fs"),Vw=Wi(),Yw=require("path"),Oh=Fi();Zw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=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=>[Oh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Yw.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Yw.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Oh(s)):s=>n(Oh(s))},SP=t=>{let e=new ra.Sync(t),r=t.file,i=Kw.statSync(r),n=t.maxReadSize||16*1024*1024;new Vw.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},EP=(t,e)=>{let r=new ra(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Kw.stat(n,(l,c)=>{if(l)a(l);else{let u=new Vw.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},vP=t=>new ra.Sync(t),RP=t=>new ra(t)});var Jw=H(xe=>{"use strict";xe.c=xe.create=Ib();xe.r=xe.replace=lh();xe.t=xe.list=Go();xe.u=xe.update=Ub();xe.x=xe.extract=Xw();xe.Pack=ko();xe.Unpack=Ah();xe.Parse=$o();xe.ReadEntry=ho();xe.WriteEntry=Mu();xe.Header=Mi();xe.Pax=po();xe.types=_u()});var nS=H((nB,iS)=>{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))}iS.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 sS=H(Qr=>{var TP=nS();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 aS=H((oB,oS)=>{oS.exports=sS()});var cS=H((aB,lS)=>{var kP=aS();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)}lS.exports=CP});var GP={};Ch(GP,{default:()=>$P,transformer:()=>mS});module.exports=SS(GP);var fS=ie(require("path")),pS=require("fs-extra");var ur=ie(require("chalk"),1),gg=ie(require("ora"),1),_g=ie(require("gradient-string"),1);var Nk=ie(li(),1),ZN=require("fs-extra");function Cp(t){return typeof t=="undefined"||t===null}function m0(t){return typeof t=="object"&&t!==null}function y0(t){return Array.isArray(t)?t:Cp(t)?[]:[t]}function g0(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 _0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function b0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var w0=Cp,S0=m0,E0=y0,v0=_0,R0=b0,x0=g0,Re={isNothing:w0,isObject:S0,toArray:E0,repeat:v0,isNegativeZero:R0,extend:x0};function Lp(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 an(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Tp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}an.prototype=Object.create(Error.prototype);an.prototype.constructor=an;an.prototype.toString=function(e){return this.name+": "+Tp(this,e)};var je=an;function Ru(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function xu(t,e){return Ae.repeat(" ",e-t.length)+t}function Cw(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 u="",a,l,c=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)l=Ru(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),h),u=Ae.repeat(" ",e.indent)+xu((t.line-a+1).toString(),c)+" | "+l.str+`
11
- `+u;for(l=Ru(t.buffer,i[o],n[o],t.position,h),u+=Ae.repeat(" ",e.indent)+xu((t.line+1).toString(),c)+" | "+l.str+`
12
- `,u+=Ae.repeat("-",e.indent+c+3+l.pos)+`^
13
- `,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)l=Ru(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),h),u+=Ae.repeat(" ",e.indent)+xu((t.line+a+1).toString(),c)+" | "+l.str+`
14
- `;return u.replace(/\n$/,"")}var Rw=Cw,xw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Fw=["scalar","sequence","mapping"];function Ow(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Tw(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(xw.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=Ow(e.styleAliases||null),Fw.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Fe=Tw;function mp(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 kw(){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 Ou(t){return this.extend(t)}Ou.prototype.extend=function(e){var r=[],i=[];if(e instanceof Fe)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 Fe))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 Fe))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ou.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=mp(n,"implicit"),n.compiledExplicit=mp(n,"explicit"),n.compiledTypeMap=kw(n.compiledImplicit,n.compiledExplicit),n};var kp=Ou,Lp=new Fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Bp=new Fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Pp=new Fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ip=new kp({explicit:[Lp,Bp,Pp]});function Lw(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Bw(){return null}function Pw(t){return t===null}var Np=new Fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lw,construct:Bw,predicate:Pw,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Iw(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 Nw(t){return t==="true"||t==="True"||t==="TRUE"}function Mw(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Mp=new Fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Iw,construct:Nw,predicate:Mw,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 jw(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Hw(t){return 48<=t&&t<=55}function qw(t){return 48<=t&&t<=57}function $w(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(!jw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Hw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!qw(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Uw(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 Gw(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ae.isNegativeZero(t)}var jp=new Fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:$w,construct:Uw,predicate:Gw,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"]}}),zw=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ww(t){return!(t===null||!zw.test(t)||t[t.length-1]==="_")}function Yw(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 Kw=/^[-+]?[0-9]+e/;function Vw(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(Ae.isNegativeZero(t))return"-0.0";return r=t.toString(10),Kw.test(r)?r.replace("e",".e"):r}function Zw(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ae.isNegativeZero(t))}var Hp=new Fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ww,construct:Yw,predicate:Zw,represent:Vw,defaultStyle:"lowercase"}),qp=Ip.extend({implicit:[Np,Mp,jp,Hp]}),$p=qp,Up=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gp=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 Jw(t){return t===null?!1:Up.exec(t)!==null||Gp.exec(t)!==null}function Xw(t){var e,r,i,n,s,o,u,a=0,l=null,c,h,f;if(e=Up.exec(t),e===null&&(e=Gp.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],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(c=+e[10],h=+(e[11]||0),l=(c*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,u,a)),l&&f.setTime(f.getTime()-l),f}function Qw(t){return t.toISOString()}var zp=new Fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jw,construct:Xw,instanceOf:Date,represent:Qw});function eS(t){return t==="<<"||t===null}var Wp=new Fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eS}),Pu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function tS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Pu;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 rS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Pu,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function iS(t){var e="",r=0,i,n,s=t.length,o=Pu;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 nS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Yp=new Fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tS,construct:rS,predicate:nS,represent:iS}),sS=Object.prototype.hasOwnProperty,oS=Object.prototype.toString;function uS(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,oS.call(n)!=="[object Object]")return!1;for(s in n)if(sS.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 aS(t){return t!==null?t:[]}var Kp=new Fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:uS,construct:aS}),lS=Object.prototype.toString;function cS(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],lS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function hS(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 Vp=new Fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cS,construct:hS}),fS=Object.prototype.hasOwnProperty;function pS(t){if(t===null)return!0;var e,r=t;for(e in r)if(fS.call(r,e)&&r[e]!==null)return!1;return!0}function dS(t){return t!==null?t:{}}var Zp=new Fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:pS,construct:dS}),Iu=$p.extend({implicit:[zp,Wp],explicit:[Yp,Kp,Vp,Zp]}),tr=Object.prototype.hasOwnProperty,as=1,Jp=2,Xp=3,ls=4,Fu=1,mS=2,yp=3,yS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gS=/[\x85\u2028\u2029]/,ES=/[,\[\]\{\}]/,Qp=/^(?:!|!!|![a-z\-]+!)$/i,ed=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gp(t){return Object.prototype.toString.call(t)}function yt(t){return t===10||t===13}function Tr(t){return t===9||t===32}function qe(t){return t===9||t===32||t===10||t===13}function ci(t){return t===44||t===91||t===93||t===123||t===125}function DS(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function _S(t){return t===120?2:t===117?4:t===85?8:0}function bS(t){return 48<=t&&t<=57?t-48:-1}function Ep(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 wS(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var td=new Array(256),rd=new Array(256);for(Or=0;Or<256;Or++)td[Or]=Ep(Or)?1:0,rd[Or]=Ep(Or);var Or;function SS(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Iu,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 id(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=Rw(r),new je(e,r)}function Q(t,e){throw id(t,e)}function cs(t,e){t.onWarning&&t.onWarning.call(null,id(t,e))}var Dp={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&&cs(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],Qp.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'),ed.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,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else yS.test(u)&&Q(t,"the stream contains non-printable characters");t.result+=u}}function _p(t,e,r,i){var n,s,o,u;for(Ae.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;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,u,a){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&gp(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&gp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)_p(t,e,s[l],r);else _p(t,e,s,r);else!t.json&&!tr.call(r,n)&&tr.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||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 Nu(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 we(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Tr(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(Nu(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&&cs(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 Mu(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ae.repeat(`
17
- `,e-1))}function AS(t,e,r){var i,n,s,o,u,a,l,c,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),qe(d)||ci(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&&ci(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),qe(n)||r&&ci(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&&ci(d))break;if(yt(d))if(a=t.line,l=t.lineStart,c=t.lineIndent,we(t,!1,-1),t.lineIndent>=e){u=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=l,t.lineIndent=c;break}}u&&(er(t,s,o,!1),Mu(t,t.line-a),s=o=t.position,u=!1),Tr(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 vS(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),Mu(t,we(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 CS(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return er(t,r,t.position,!0),t.position++,!0;if(u===92){if(er(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),yt(u))we(t,!1,e);else if(u<256&&td[u])t.result+=rd[u],t.position++;else if((o=_S(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=DS(u))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=wS(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else yt(u)?(er(t,r,i,!0),Mu(t,we(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 RS(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,l,c,h,f,d,g=Object.create(null),y,E,v,F;if(F=t.input.charCodeAt(t.position),F===91)c=93,d=!1,u=[];else if(F===123)c=125,d=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),F=t.input.charCodeAt(++t.position);F!==0;){if(we(t,!0,e),F=t.input.charCodeAt(t.position),F===c)return t.position++,t.tag=o,t.anchor=a,t.kind=d?"mapping":"sequence",t.result=u,!0;r?F===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),E=y=v=null,h=f=!1,F===63&&(l=t.input.charCodeAt(t.position+1),qe(l)&&(h=f=!0,t.position++,we(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,fi(t,e,as,!1,!0),E=t.tag,y=t.result,we(t,!0,e),F=t.input.charCodeAt(t.position),(f||t.line===i)&&F===58&&(h=!0,F=t.input.charCodeAt(++t.position),we(t,!0,e),fi(t,e,as,!1,!0),v=t.result),d?hi(t,u,g,E,y,v,i,n,s):h?u.push(hi(t,null,g,E,y,v,i,n,s)):u.push(y),we(t,!0,e),F=t.input.charCodeAt(t.position),F===44?(r=!0,F=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function xS(t,e){var r,i,n=Fu,s=!1,o=!1,u=e,a=0,l=!1,c,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)Fu===n?n=h===43?yp:mS:Q(t,"repeat of a chomping mode identifier");else if((c=bS(h))>=0)c===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"):(u=e+c-1,o=!0);else break;if(Tr(h)){do h=t.input.charCodeAt(++t.position);while(Tr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!yt(h)&&h!==0)}for(;h!==0;){for(Nu(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),yt(h)){a++;continue}if(t.lineIndent<u){n===yp?t.result+=Ae.repeat(`
18
- `,s?1+a:a):n===Fu&&s&&(t.result+=`
19
- `);break}for(i?Tr(h)?(l=!0,t.result+=Ae.repeat(`
20
- `,s?1+a:a)):l?(l=!1,t.result+=Ae.repeat(`
21
- `,a+1)):a===0?s&&(t.result+=" "):t.result+=Ae.repeat(`
22
- `,a):t.result+=Ae.repeat(`
23
- `,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!yt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);er(t,r,t.position,!1)}return!0}function bp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!qe(o))));){if(u=!0,t.position++,we(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,Xp,!1,!0),s.push(t.result),we(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function FS(t,e,r){var i,n,s,o,u,a,l=t.tag,c=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,E=!1,v=!1,F;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),F=t.input.charCodeAt(t.position);F!==0;){if(!E&&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,(F===63||F===58)&&qe(i))F===63?(E&&(hi(t,h,f,d,g,null,o,u,a),d=g=y=null),v=!0,E=!0,n=!0):E?(E=!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,F=i;else{if(o=t.line,u=t.lineStart,a=t.position,!fi(t,r,Jp,!1,!0))break;if(t.line===s){for(F=t.input.charCodeAt(t.position);Tr(F);)F=t.input.charCodeAt(++t.position);if(F===58)F=t.input.charCodeAt(++t.position),qe(F)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(hi(t,h,f,d,g,null,o,u,a),d=g=y=null),v=!0,E=!1,n=!1,d=t.tag,g=t.result;else if(v)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(v)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===s||t.lineIndent>e)&&(E&&(o=t.line,u=t.lineStart,a=t.position),fi(t,e,ls,!0,n)&&(E?g=t.result:y=t.result),E||(hi(t,h,f,d,g,y,o,u,a),d=g=y=null),we(t,!0,-1),F=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&F!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&hi(t,h,f,d,g,null,o,u,a),v&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=h),v}function OS(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),Qp.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),ES.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!ed.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 TS(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)&&!ci(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 kS(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)&&!ci(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],we(t,!0,-1),!0}function fi(t,e,r,i,n){var s,o,u,a=1,l=!1,c=!1,h,f,d,g,y,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=ls===r||Xp===r,i&&we(t,!0,-1)&&(l=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;OS(t)||TS(t);)we(t,!0,-1)?(l=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=l||n),(a===1||ls===r)&&(as===r||Jp===r?y=e:y=e+1,E=t.position-t.lineStart,a===1?u&&(bp(t,E)||FS(t,E,y))||RS(t,y)?c=!0:(o&&xS(t,y)||vS(t,y)||CS(t,y)?c=!0:kS(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):AS(t,y,as===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(c=u&&bp(t,E))),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||c}function LS(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&&(we(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(;Tr(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&&Nu(t),tr.call(Dp,i)?Dp[i](t,i,n):cs(t,'unknown document directive "'+i+'"')}if(we(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,we(t,!0,-1)):s&&Q(t,"directives end mark is expected"),fi(t,t.lineIndent-1,ls,!1,!0),we(t,!0,-1),t.checkLineBreaks&&gS.test(t.input.slice(e,t.position))&&cs(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,we(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 nd(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 SS(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;)LS(r);return r.documents}function BS(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=nd(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function PS(t,e){var r=nd(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 IS=BS,NS=PS,sd={loadAll:IS,load:NS},od=Object.prototype.toString,ud=Object.prototype.hasOwnProperty,ju=65279,MS=9,ln=10,jS=13,HS=32,qS=33,$S=34,Tu=35,US=37,GS=38,zS=39,WS=42,ad=44,YS=45,hs=58,KS=61,VS=62,ZS=63,JS=64,ld=91,cd=93,XS=96,hd=123,QS=124,fd=125,Oe={};Oe[0]="\\0";Oe[7]="\\a";Oe[8]="\\b";Oe[9]="\\t";Oe[10]="\\n";Oe[11]="\\v";Oe[12]="\\f";Oe[13]="\\r";Oe[27]="\\e";Oe[34]='\\"';Oe[92]="\\\\";Oe[133]="\\N";Oe[160]="\\_";Oe[8232]="\\L";Oe[8233]="\\P";var eA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rA(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&ud.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function iA(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+Ae.repeat("0",i-e.length)+e}var nA=1,cn=2;function sA(t){this.schema=t.schema||Iu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ae.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=rA(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==='"'?cn:nA,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 wp(t,e){for(var r=Ae.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
25
- `,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
26
- `&&(s+=r),s+=o;return s}function ku(t,e){return`
27
- `+Ae.repeat(" ",t.indent*e)}function oA(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===HS||t===MS}function hn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ju||65536<=t&&t<=1114111}function Sp(t){return hn(t)&&t!==ju&&t!==jS&&t!==ln}function Ap(t,e,r){var i=Sp(t),n=i&&!fs(t);return(r?i:i&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd)&&t!==Tu&&!(e===hs&&!n)||Sp(e)&&!fs(e)&&t===Tu||e===hs&&n}function uA(t){return hn(t)&&t!==ju&&!fs(t)&&t!==YS&&t!==ZS&&t!==hs&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd&&t!==Tu&&t!==GS&&t!==WS&&t!==qS&&t!==QS&&t!==KS&&t!==VS&&t!==zS&&t!==$S&&t!==US&&t!==JS&&t!==XS}function aA(t){return!fs(t)&&t!==hs}function un(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 pd(t){var e=/^\n* /;return e.test(t)}var dd=1,Lu=2,md=3,yd=4,li=5;function lA(t,e,r,i,n,s,o,u){var a,l=0,c=null,h=!1,f=!1,d=i!==-1,g=-1,y=uA(un(t,0))&&aA(un(t,t.length-1));if(e||o)for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=un(t,a),!hn(l))return li;y=y&&Ap(l,c,u),c=l}else{for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=un(t,a),l===ln)h=!0,d&&(f=f||a-g-1>i&&t[g+1]!==" ",g=a);else if(!hn(l))return li;y=y&&Ap(l,c,u),c=l}f=f||d&&a-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?dd:s===cn?li:Lu:r>9&&pd(t)?li:o?s===cn?li:Lu:f?yd:md}function cA(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===cn?'""':"''";if(!t.noCompatMode&&(eA.indexOf(e)!==-1||tA.test(e)))return t.quotingType===cn?'"'+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),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(l){return oA(t,l)}switch(lA(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case dd:return e;case Lu:return"'"+e.replace(/'/g,"''")+"'";case md:return"|"+vp(e,t.indent)+Cp(wp(e,s));case yd:return">"+vp(e,t.indent)+Cp(wp(hA(e,o),s));case li:return'"'+fA(e)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function vp(t,e){var r=pd(t)?String(e):"",i=t[t.length-1]===`
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=Lp(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+": "+Lp(this,e)};var je=ln;function Oa(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Ta(t,e){return Re.repeat(" ",e-t.length)+t}function A0(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Oa(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=Re.repeat(" ",e.indent)+Ta((t.line-l+1).toString(),u)+" | "+c.str+`
11
+ `+a;for(c=Oa(t.buffer,i[o],n[o],t.position,h),a+=Re.repeat(" ",e.indent)+Ta((t.line+1).toString(),u)+" | "+c.str+`
12
+ `,a+=Re.repeat("-",e.indent+u+3+c.pos)+`^
13
+ `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Oa(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=Re.repeat(" ",e.indent)+Ta((t.line+l+1).toString(),u)+" | "+c.str+`
14
+ `;return a.replace(/\n$/,"")}var O0=A0,T0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],k0=["scalar","sequence","mapping"];function C0(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function L0(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(T0.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=C0(e.styleAliases||null),k0.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ke=L0;function mp(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 P0(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Ca(t){return this.extend(t)}Ca.prototype.extend=function(e){var r=[],i=[];if(e instanceof ke)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new 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(Ca.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=mp(n,"implicit"),n.compiledExplicit=mp(n,"explicit"),n.compiledTypeMap=P0(n.compiledImplicit,n.compiledExplicit),n};var Pp=Ca,Ip=new ke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Np=new ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Dp=new ke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Mp=new Pp({explicit:[Ip,Np,Dp]});function I0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function N0(){return null}function D0(t){return t===null}var Fp=new ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:I0,construct:N0,predicate:D0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function M0(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 F0(t){return t==="true"||t==="True"||t==="TRUE"}function B0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Bp=new ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:M0,construct:F0,predicate:B0,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 j0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function H0(t){return 48<=t&&t<=55}function q0(t){return 48<=t&&t<=57}function U0(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(!j0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!H0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!q0(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function $0(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 G0(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var jp=new ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:U0,construct:$0,predicate:G0,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"]}}),z0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function W0(t){return!(t===null||!z0.test(t)||t[t.length-1]==="_")}function Y0(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 K0=/^[-+]?[0-9]+e/;function V0(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),K0.test(r)?r.replace("e",".e"):r}function Z0(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var Hp=new ke("tag:yaml.org,2002:float",{kind:"scalar",resolve:W0,construct:Y0,predicate:Z0,represent:V0,defaultStyle:"lowercase"}),qp=Mp.extend({implicit:[Fp,Bp,jp,Hp]}),Up=qp,$p=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gp=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 X0(t){return t===null?!1:$p.exec(t)!==null||Gp.exec(t)!==null}function J0(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=$p.exec(t),e===null&&(e=Gp.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 Q0(t){return t.toISOString()}var zp=new ke("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:X0,construct:J0,instanceOf:Date,represent:Q0});function ev(t){return t==="<<"||t===null}var Wp=new ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ev}),Da=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function tv(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Da;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function rv(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Da,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function iv(t){var e="",r=0,i,n,s=t.length,o=Da;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function nv(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Yp=new ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tv,construct:rv,predicate:nv,represent:iv}),sv=Object.prototype.hasOwnProperty,ov=Object.prototype.toString;function av(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,ov.call(n)!=="[object Object]")return!1;for(s in n)if(sv.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 lv(t){return t!==null?t:[]}var Kp=new ke("tag:yaml.org,2002:omap",{kind:"sequence",resolve:av,construct:lv}),cv=Object.prototype.toString;function uv(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],cv.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function hv(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 Vp=new ke("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:uv,construct:hv}),fv=Object.prototype.hasOwnProperty;function pv(t){if(t===null)return!0;var e,r=t;for(e in r)if(fv.call(r,e)&&r[e]!==null)return!1;return!0}function dv(t){return t!==null?t:{}}var Zp=new ke("tag:yaml.org,2002:set",{kind:"mapping",resolve:pv,construct:dv}),Ma=Up.extend({implicit:[zp,Wp],explicit:[Yp,Kp,Vp,Zp]}),tr=Object.prototype.hasOwnProperty,ls=1,Xp=2,Jp=3,cs=4,ka=1,mv=2,yp=3,yv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gv=/[\x85\u2028\u2029]/,_v=/[,\[\]\{\}]/,Qp=/^(?:!|!!|![a-z\-]+!)$/i,ed=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gp(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 bv(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function wv(t){return t===120?2:t===117?4:t===85?8:0}function Sv(t){return 48<=t&&t<=57?t-48:-1}function _p(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 Ev(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var td=new Array(256),rd=new Array(256);for(Cr=0;Cr<256;Cr++)td[Cr]=_p(Cr)?1:0,rd[Cr]=_p(Cr);var Cr;function vv(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Ma,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function id(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=O0(r),new je(e,r)}function Q(t,e){throw id(t,e)}function us(t,e){t.onWarning&&t.onWarning.call(null,id(t,e))}var bp={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],Qp.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'),ed.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 yv.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function wp(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"&&gp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&gp(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)wp(t,e,s[c],r);else wp(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 Fa(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ee(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Lr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(yt(n))for(Fa(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&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 Ba(t,e){e===1?t.result+=" ":e>1&&(t.result+=Re.repeat(`
17
+ `,e-1))}function Rv(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),Ba(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 xv(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),Ba(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 Av(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&&td[a])t.result+=rd[a],t.position++;else if((o=wv(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=bv(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=Ev(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else yt(a)?(er(t,r,i,!0),Ba(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 Ov(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 Tv(t,e){var r,i,n=ka,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)ka===n?n=h===43?yp:mv:Q(t,"repeat of a chomping mode identifier");else if((u=Sv(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(Fa(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),yt(h)){l++;continue}if(t.lineIndent<a){n===yp?t.result+=Re.repeat(`
18
+ `,s?1+l:l):n===ka&&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 Sp(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,Jp,!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 kv(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,Xp,!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 Cv(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),Qp.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),_v.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!ed.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 Lv(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 Pv(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||Jp===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(;Cv(t)||Lv(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||Xp===r?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(Sp(t,_)||kv(t,_,y))||Ov(t,y)?u=!0:(o&&Tv(t,y)||xv(t,y)||Av(t,y)?u=!0:Pv(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Rv(t,y,ls===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Sp(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 Iv(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&&Fa(t),tr.call(bp,i)?bp[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&&gv.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 nd(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 vv(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;)Iv(r);return r.documents}function Nv(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=nd(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Dv(t,e){var r=nd(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 Mv=Nv,Fv=Dv,sd={loadAll:Mv,load:Fv},od=Object.prototype.toString,ad=Object.prototype.hasOwnProperty,ja=65279,Bv=9,cn=10,jv=13,Hv=32,qv=33,Uv=34,La=35,$v=37,Gv=38,zv=39,Wv=42,ld=44,Yv=45,hs=58,Kv=61,Vv=62,Zv=63,Xv=64,cd=91,ud=93,Jv=96,hd=123,Qv=124,fd=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 eR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rR(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&&ad.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function iR(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 nR=1,un=2;function sR(t){this.schema=t.schema||Ma,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Re.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=rR(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:nR,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 Ep(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 Pa(t,e){return`
27
+ `+Re.repeat(" ",t.indent*e)}function oR(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===Hv||t===Bv}function hn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ja||65536<=t&&t<=1114111}function vp(t){return hn(t)&&t!==ja&&t!==jv&&t!==cn}function Rp(t,e,r){var i=vp(t),n=i&&!fs(t);return(r?i:i&&t!==ld&&t!==cd&&t!==ud&&t!==hd&&t!==fd)&&t!==La&&!(e===hs&&!n)||vp(e)&&!fs(e)&&t===La||e===hs&&n}function aR(t){return hn(t)&&t!==ja&&!fs(t)&&t!==Yv&&t!==Zv&&t!==hs&&t!==ld&&t!==cd&&t!==ud&&t!==hd&&t!==fd&&t!==La&&t!==Gv&&t!==Wv&&t!==qv&&t!==Qv&&t!==Kv&&t!==Vv&&t!==zv&&t!==Uv&&t!==$v&&t!==Xv&&t!==Jv}function lR(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 pd(t){var e=/^\n* /;return e.test(t)}var dd=1,Ia=2,md=3,yd=4,ci=5;function cR(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,d=i!==-1,g=-1,y=aR(an(t,0))&&lR(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&&Rp(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&&Rp(c,u,a),u=c}f=f||d&&l-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?dd:s===un?ci:Ia:r>9&&pd(t)?ci:o?s===un?ci:Ia:f?yd:md}function uR(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===un?'""':"''";if(!t.noCompatMode&&(eR.indexOf(e)!==-1||tR.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 oR(t,c)}switch(cR(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case dd:return e;case Ia:return"'"+e.replace(/'/g,"''")+"'";case md:return"|"+xp(e,t.indent)+Ap(Ep(e,s));case yd:return">"+xp(e,t.indent)+Ap(Ep(hR(e,o),s));case ci:return'"'+fR(e)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function xp(t,e){var r=pd(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 Cp(t){return t[t.length-1]===`
32
- `?t.slice(0,-1):t}function hA(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
33
- `);return l=l!==-1?l:t.length,r.lastIndex=l,Rp(t.slice(0,l),e)}(),n=t[0]===`
34
- `||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
35
- `:"")+Rp(a,e),n=s}return i}function Rp(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
36
- `+t.slice(n,s),n=s+1),o=u;return a+=`
37
- `,t.length-n>e&&o>n?a+=t.slice(n,o)+`
38
- `+t.slice(o+1):a+=t.slice(n),a.slice(1)}function fA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=un(t,n),i=Oe[r],!i&&hn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||iA(r);return e}function pA(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(kt(t,e,u,!1,!1)||typeof u=="undefined"&&kt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function xp(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(kt(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&kt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ku(t,e)),t.dump&&ln===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function dA(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,l,c;for(o=0,u=s.length;o<u;o+=1)c="",i!==""&&(c+=", "),t.condenseFlow&&(c+='"'),a=s[o],l=r[a],t.replacer&&(l=t.replacer.call(r,a,l)),kt(t,e,a,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),kt(t,e,l,!1,!1)&&(c+=t.dump,i+=c));t.tag=n,t.dump="{"+i+"}"}function mA(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,l,c,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(u=0,a=o.length;u<a;u+=1)f="",(!i||n!=="")&&(f+=ku(t,e)),l=o[u],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),kt(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&ln===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=ku(t,e)),kt(t,e+1,c,!0,h)&&(t.dump&&ln===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Fp(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,od.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(ud.call(u.represent,a))i=u.represent[a](e,a);else throw new je("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function kt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Fp(t,r,!1)||Fp(t,r,!0);var u=od.call(t.dump),a=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var c=u==="[object Object]"||u==="[object Array]",h,f;if(c&&(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(c&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(mA(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(dA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?xp(t,e-1,t.dump,n):xp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(pA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&cA(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new je("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function yA(t,e){var r=[],i=[],n,s;for(Bu(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Bu(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)Bu(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Bu(t[i[n]],e,r)}function gA(t,e){e=e||{};var r=new sA(e);r.noRefs||yA(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),kt(r,0,i,!0,!0)?r.dump+`
39
- `:""}var EA=gA,DA={dump:EA};function Hu(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 _A=Fe,bA=kp,wA=Ip,SA=qp,AA=$p,vA=Iu,CA=sd.load,RA=sd.loadAll,xA=DA.dump,FA=je,OA={binary:Yp,float:Hp,map:Pp,null:Np,pairs:Vp,set:Zp,timestamp:zp,bool:Mp,int:jp,merge:Wp,omap:Kp,seq:Bp,str:Lp},TA=Hu("safeLoad","load"),kA=Hu("safeLoadAll","loadAll"),LA=Hu("safeDump","dump"),BA={Type:_A,Schema:bA,FAILSAFE_SCHEMA:wA,JSON_SCHEMA:SA,CORE_SCHEMA:AA,DEFAULT_SCHEMA:vA,load:CA,loadAll:RA,dump:xA,YAMLException:FA,types:OA,safeLoad:TA,safeLoadAll:kA,safeDump:LA},qu=BA;var e2=ie($s(),1),r2=require("fs-extra"),n2=require("fs-extra"),o2=require("chalk"),Sy=require("stream"),Ay=require("util"),c2=require("fs-extra"),d2=require("chalk"),y2=require("fs-extra"),Nr=ie(require("path"),1),He=require("fs-extra"),vy=ie(ai(),1),Cy=ie(require("path"),1),Ry=require("fs-extra"),xy=ie(require("chalk"),1),Nt=ie(require("path"),1),Fy=ie(ai(),1),Ze=require("fs-extra"),Oy=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"),mF=ie(require("chalk"),1),yF=ie(require("gradient-string"),1),gF=ie(ai(),1),EF=ie(require("ora"),1),DF=require("semver"),_F=ie(require("chalk"),1),NR=Object.create,vl=Object.defineProperty,MR=Object.getOwnPropertyDescriptor,jR=Object.getOwnPropertyNames,HR=Object.getPrototypeOf,qR=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')}),$R=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),UR=(t,e)=>{for(var r in e)vl(t,r,{get:e[r],enumerable:!0})},GR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jR(e))!qR.call(t,n)&&n!==r&&vl(t,n,{get:()=>e[n],enumerable:!(i=MR(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?NR(HR(t)):{},GR(e||!t||!t.__esModule?vl(r,"default",{value:t,enumerable:!0}):r,t)),W=$R(()=>{}),zR=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}),WR=ee((t,e)=>{W();var r=zR().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}),YR=ee((t,e)=>{W();var r=WR()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),KR=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),VR=ee((t,e)=>{"use strict";W();var r=KR(),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}),ZR=ee((t,e)=>{"use strict";W();var r=VR(),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}),JR=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=ZR(),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{}}}),XR=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}}}),QR=ee((t,e)=>{"use strict";W();var r=te("path"),i=JR(),n=XR(),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)):{}}),Cl=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 ny 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 ny||w instanceof n||w instanceof i&&(typeof w.pipe=="function"||typeof w.write=="function"&&typeof w.end=="function"))}}}),ex=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))}),sy=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 oy 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 oy||D instanceof n||D instanceof i&&(typeof D.pipe=="function"||typeof D.write=="function"&&typeof D.end=="function"))}}}),uy=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=ex(),s=sy(),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,"/")}),Rl=ee((t,e)=>{"use strict";W();var r=Cl(),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])}}}),ay=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]]))}),tx=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=ay(),i=te("path").posix,n=tx(),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}),xl=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(c),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+c}};n.parse=(a,l,c)=>new n(s(o(a),l),c);var s=(a,l)=>l?Object.keys(a).reduce((c,h)=>(c[h]=a[h],c),l):a,o=a=>a.replace(/\n$/,"").split(`
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)}}),Fl=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))}}}),ly=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)}}),cy=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]}}),rx=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)}),hy=ee((t,e)=>{"use strict";W();var r=Cl(),i=xl(),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=Fl(),B=ly(),C=cy(),T=rx(),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}),ix=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}}}),fy=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{ix()(r)}catch{}}),Ol=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=Cl(),n=uy(),s=Rl(),o=hy(),u=o.Sync,a=o.Tar,l=fy(),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=Fl(),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=sy(),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}),Tl=ee((t,e)=>{"use strict";W();var r=Fl(),i=bn(),n=te("events"),s=fy(),o=1024*1024,u=Rl(),a=xl(),l=uy(),{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)))}})}),kl=ee((t,e)=>{"use strict";W();var r=Dn(),i=Tl(),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)}),nx=ee((t,e)=>{"use strict";W();var r=Dn(),i=Ol(),n=Sn(),s=kl(),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}}),py=ee((t,e)=>{"use strict";W();var r=Dn(),i=Ol(),n=te("fs"),s=Sn(),o=kl(),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()}}),sx=ee((t,e)=>{"use strict";W();var r=Dn(),i=py();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)}}),ox=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}),ux=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}),ax=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}}),dy=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}}),lx=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ax(),{mkdirpManual:s,mkdirpManualSync:o}=dy(),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}}),cx=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}}),hx=ee((t,e)=>{W();var r=ox(),i=ux(),{mkdirpNative:n,mkdirpNativeSync:s}=lx(),{mkdirpManual:o,mkdirpManualSync:u}=dy(),{useNative:a,useNativeSync:l}=cx(),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}),fx=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}),px=ee((t,e)=>{"use strict";W();var r=hx(),i=te("fs"),n=te("path"),s=fx(),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)}}),my=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])}),dx=ee((t,e)=>{W();var r=te("assert"),i=my(),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)}}}}),mx=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"}),yy=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Tl(),n=te("fs"),s=Sn(),o=te("path"),u=px(),a=ly(),l=dx(),c=cy(),h=_n(),f=wn(),d=my(),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=mx(),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,uu=>ge(uu&&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,uu=>ge(uu&&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}),yx=ee((t,e)=>{"use strict";W();var r=Dn(),i=yy(),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)}),gx=ee(t=>{"use strict";W(),t.c=t.create=nx(),t.r=t.replace=py(),t.t=t.list=kl(),t.u=t.update=sx(),t.x=t.extract=yx(),t.Pack=Ol(),t.Unpack=yy(),t.Parse=Tl(),t.ReadEntry=Rl(),t.WriteEntry=hy(),t.Header=bn(),t.Pax=xl(),t.types=ay()}),Ex=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}}),Dx=ee(t=>{W();var e=Ex();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}}}),_x=ee((t,e)=>{W(),e.exports=Dx()}),bx=ee((t,e)=>{W();var r=_x();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}),wx={};UR(wx,{bold:()=>Rx,dimmed:()=>Fx,error:()=>Lx,grey:()=>Ox,info:()=>Cx,item:()=>Tx,log:()=>jr,turboBlue:()=>Si,turboGradient:()=>Ax,turboLoader:()=>vx,turboRed:()=>by,underline:()=>xx,warn:()=>kx,yellow:()=>wy});W();var Dy="#0099F7",_y="#F11712",Sx="#FFFF00",Ax=(0,Ey.default)(Dy,_y),Si=cr.default.hex(Dy),by=cr.default.hex(_y),wy=cr.default.hex(Sx),vx=t=>(0,gy.default)({text:t,spinner:{frames:[" ",Si("> "),Si(">> "),Si(">>>")]}}),Cx=(...t)=>{jr(Si.bold(">>>"),...t)},Rx=(...t)=>{jr(cr.default.bold(...t))},xx=(...t)=>{jr(cr.default.underline(...t))},Fx=(...t)=>{jr(cr.default.dim(...t))},Ox=(...t)=>{jr(cr.default.grey(...t))},Tx=(...t)=>{jr(Si.bold(" \u2022"),...t)},jr=(...t)=>{console.log(...t)},kx=(...t)=>{console.error(wy.bold(">>>"),...t)},Lx=(...t)=>{console.error(by.bold(">>>"),...t)};W();W();W();W();var YB=zs(YR());W();W();function Px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function Sl(t){return Sl=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},Sl(t)}W();function Ix(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nx(t,e){if(e&&(Sl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ix(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 Mx(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 jx(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Hx(){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 Hx()?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 Al(t){var e=typeof Map=="function"?new Map:void 0;return Al=function(r){if(r===null||!jx(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)},Al(t)}var KB=zs(QR()),JB=function(t){Mx(e,t);function e(r){var i;return Px(this,e),i=Nx(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Al(Error));W();W();W();W();W();W();var a2=zs(gx()),l2=(0,Ay.promisify)(Sy.Stream.pipeline);W();W();var p2=zs(bx());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 qx=/^(?!_)(?<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=qx.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 iy({workspaceRoot:t}){let e=Nt.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=qu.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 Ll({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,Oy.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 $x({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 Ux({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 Ty({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Fy.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 Gx({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}=Gx({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let a=h=>{let f=o[h].length;if(f>0)return`${xy.default.green(f.toString())} ${h}`},l=u.map(a).filter(Boolean),c=`./${Cy.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,Ry.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var lr={name:"pnpm",lock:"pnpm-lock.yaml"};async function ky(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 zx(t){if(!await ky(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:iy(t),workspaces:Ks({workspaceGlobs:iy(t),...t})}}}async function Wx(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(u=>` - "${u}"`).join(`
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 Yx(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 Kx(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 Vx(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,vy.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 Ty({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 Zx={detect:ky,read:zx,create:Wx,remove:Yx,clean:Kx,convertLock:Vx};W();var Ai={name:"npm",lock:"package-lock.json"};async function Ly(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 Jx(t){if(!await Ly(t))throw new Le("Not an npm project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({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 Xx(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 Qx(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 eF(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 tF(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 rF={detect:Ly,read:Jx,create:Xx,remove:Qx,clean:eF,convertLock:tF};W();var Mr={name:"yarn",lock:"yarn.lock"};async function By(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 iF(t){if(!await By(t))throw new Le("Not a yarn project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({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 nF(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 sF(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 oF(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 uF(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 Ty({project:e,options:r});break;case"npm":It({project:e,options:r});break;case"yarn":break}}var aF={detect:By,read:iF,create:nF,remove:sF,clean:oF,convertLock:uF};W();var Ci={name:"bun",lock:"bun.lockb"};async function Py(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 lF(t){if(!await Py(t))throw new Le("Not a bun project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({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 cF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Ux({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 hF(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 fF(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 pF(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 dF={detect:Py,read:lF,create:cF,remove:hF,clean:fF,convertLock:pF},Iy={pnpm:Zx,yarn:aF,npm:rF,bun:dF};W();async function Bl({root:t}){let{exists:e,absolute:r}=$x({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(Iy))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 bF=ie($y());function Il(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 Nl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ml(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 Nl(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 jl(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 Hl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ql(){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 ql()?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||!Hl(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 Uy=ie(require("find-up"));var wF=ie(require("fs-extra")),zP=function(t){jl(e,t);function e(r){var i;return Il(this,e),i=Ml(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 SF=ie(require("fs")),AF=ie(require("path"));var IF=ie(require("fs")),NF=ie(require("path"));var MF=ie($s());var it={};Oh(it,{bold:()=>OF,dimmed:()=>kF,error:()=>Xy,grey:()=>LF,info:()=>FF,item:()=>BF,log:()=>pr,turboBlue:()=>xi,turboGradient:()=>xF,turboLoader:()=>Zy,turboRed:()=>Ky,underline:()=>TF,warn:()=>Jy,yellow:()=>Vy});var fr=ie(require("chalk")),Gy=ie(require("ora")),zy=ie(require("gradient-string")),Wy="#0099F7",Yy="#F11712",RF="#FFFF00",xF=(0,zy.default)(Wy,Yy),xi=fr.default.hex(Wy),Ky=fr.default.hex(Yy),Vy=fr.default.hex(RF),Zy=t=>(0,Gy.default)({text:t,spinner:{frames:[" ",xi("> "),xi(">> "),xi(">>>")]}}),FF=(...t)=>{pr(xi.bold(">>>"),...t)},OF=(...t)=>{pr(fr.default.bold(...t))},TF=(...t)=>{pr(fr.default.underline(...t))},kF=(...t)=>{pr(fr.default.dim(...t))},LF=(...t)=>{pr(fr.default.grey(...t))},BF=(...t)=>{pr(xi.bold(" \u2022"),...t)},pr=(...t)=>{console.log(...t)},Jy=(...t)=>{console.error(Vy.bold(">>>"),...t)},Xy=(...t)=>{console.error(Ky.bold(">>>"),...t)};var Qy=ie(require("os")),eg=ie(ai());async function Zs(t,e=[],r){let i={cwd:Qy.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,eg.default)(t,e,i);return n.trim()}catch{return}}async function $l(){let[t,e,r,i]=await Promise.all([Zs("yarnpkg",["--version"]),Zs("npm",["--version"]),Zs("pnpm",["--version"]),Zs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var jF=ie(require("fs-extra"));var HF=ie(require("path")),qF=ie(require("fs-extra")),$F=ie(require("chalk"));var QD=require("stream"),e_=require("util"),Ak=require("path"),vk=require("os"),t_=require("fs"),Ck=ie(XD());var iN=(0,e_.promisify)(QD.Stream.pipeline);var r_=require("fs-extra");var Ik=ie(require("path")),Nk=ie(l_()),Mk=ie(require("chalk")),xh=require("fs-extra");var ou=ie(require("chalk"));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 c_=ie(require("os")),Fh=ie(require("path"));var iu=ie(require("chalk")),su=require("diff"),Rr=require("fs-extra"),nu=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{Fh.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,su.diffJson)(this.before,e.after):this.changes=(0,su.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Fh.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(iu.default.green(r.value)):r.removed?process.stdout.write(iu.default.red(r.value)):process.stdout.write(iu.default.dim(r.value))}),it.log(c_.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 nu({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(ou.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ou.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(ou.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 h_({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 d_="add-package-manager",jk="Set the `packageManager` key in root `package.json` file",Hk="1.1.0";async function m_({root:t,options:e}){let{log:r,runner:i}=h_({transformer:d_,rootPath:t,options:e});r.info('Set "packageManager" key in root "package.json" file...');let n;try{n=await Bl({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=await $l(),{packageManager:o}=n,u=s[o];if(!u)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let a=`${o}@${u}`,l=f_.default.join(t,"package.json"),c=(0,p_.readJsonSync)(l),h=[{name:"package.json",path:t,packageJson:{...c,packageJsonPath:l}}];for(let f of h){let{packageJsonPath:d,...g}=f.packageJson,y={...g,packageManager:a};i.modifyFile({filePath:d,after:y})}return i.finish()}var qk={name:d_,description:jk,introducedIn:Hk,transformer:m_},$k=qk;0&&(module.exports={transformer});
31
+ `}function Ap(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function hR(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,Op(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
+ `:"")+Op(l,e),n=s}return i}function Op(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 fR(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||iR(r);return e}function pR(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 Tp(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+=Pa(t,e)),t.dump&&cn===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function dR(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 mR(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+=Pa(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+=Pa(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 kp(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,od.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(ad.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,kp(t,r,!1)||kp(t,r,!0);var a=od.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?(mR(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(dR(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?Tp(t,e-1,t.dump,n):Tp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(pR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&uR(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 yR(t,e){var r=[],i=[],n,s;for(Na(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Na(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Na(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Na(t[i[n]],e,r)}function gR(t,e){e=e||{};var r=new sR(e);r.noRefs||yR(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Pt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var _R=gR,bR={dump:_R};function Ha(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var wR=ke,SR=Pp,ER=Mp,vR=qp,RR=Up,xR=Ma,AR=sd.load,OR=sd.loadAll,TR=bR.dump,kR=je,CR={binary:Yp,float:Hp,map:Dp,null:Fp,pairs:Vp,set:Zp,timestamp:zp,bool:Bp,int:jp,merge:Wp,omap:Kp,seq:Np,str:Ip},LR=Ha("safeLoad","load"),PR=Ha("safeLoadAll","loadAll"),IR=Ha("safeDump","dump"),NR={Type:wR,Schema:SR,FAILSAFE_SCHEMA:ER,JSON_SCHEMA:vR,CORE_SCHEMA:RR,DEFAULT_SCHEMA:xR,load:AR,loadAll:OR,dump:TR,YAMLException:kR,types:CR,safeLoad:LR,safeLoadAll:PR,safeDump:IR},qa=NR;var tD=ie(Us(),1),iD=require("fs-extra"),sD=require("fs-extra"),aD=require("chalk"),vg=require("stream"),Rg=require("util"),hD=require("fs-extra"),mD=require("chalk"),gD=require("fs-extra"),Fr=ie(require("path"),1),He=require("fs-extra"),xg=ie(li(),1),Ag=ie(require("path"),1),Og=require("fs-extra"),Tg=ie(require("chalk"),1),Ft=ie(require("path"),1),kg=ie(li(),1),Ze=require("fs-extra"),Cg=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"),m1=ie(require("chalk"),1),y1=ie(require("gradient-string"),1),g1=ie(li(),1),_1=ie(require("ora"),1),b1=require("semver"),w1=ie(require("chalk"),1),FT=Object.create,xc=Object.defineProperty,BT=Object.getOwnPropertyDescriptor,jT=Object.getOwnPropertyNames,HT=Object.getPrototypeOf,qT=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')}),UT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$T=(t,e)=>{for(var r in e)xc(t,r,{get:e[r],enumerable:!0})},GT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jT(e))!qT.call(t,n)&&n!==r&&xc(t,n,{get:()=>e[n],enumerable:!(i=BT(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?FT(HT(t)):{},GT(e||!t||!t.__esModule?xc(r,"default",{value:t,enumerable:!0}):r,t)),W=UT(()=>{}),zT=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}),WT=ee((t,e)=>{W();var r=zT().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}),YT=ee((t,e)=>{W();var r=WT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),KT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),VT=ee((t,e)=>{"use strict";W();var r=KT(),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}),ZT=ee((t,e)=>{"use strict";W();var r=VT(),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}),XT=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=ZT(),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{}}}),JT=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}}}),QT=ee((t,e)=>{"use strict";W();var r=te("path"),i=XT(),n=JT(),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)):{}}),Ac=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),l=Symbol("emittedEnd"),c=Symbol("emittingEnd"),u=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),_=Symbol("decoder"),x=Symbol("flowing"),k=Symbol("paused"),C=Symbol("resume"),T=Symbol("buffer"),O=Symbol("pipes"),I=Symbol("bufferLength"),w=Symbol("bufferPush"),v=Symbol("bufferShift"),F=Symbol("objectMode"),q=Symbol("destroyed"),P=Symbol("emitData"),$=Symbol("emitEnd"),K=Symbol("emitEnd2"),V=Symbol("async"),N=R=>Promise.resolve().then(R),A=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=A&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),j=A&&Symbol.iterator||Symbol("iterator not implemented"),z=R=>R==="end"||R==="finish"||R==="prefinish",D=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,p=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),m=class{constructor(R,E,M){this.src=R,this.dest=E,this.opts=M,this.ondrain=()=>R[C](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},b=class extends m{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,E,M){super(R,E,M),this.proxyErrors=B=>E.emit("error",B),R.on("error",this.proxyErrors)}};e.exports=class ng 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 ng||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),ek=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))}),sg=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 og 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 og||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),ag=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=ek(),s=sg(),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,"/")}),Oc=ee((t,e)=>{"use strict";W();var r=Ac(),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])}}}),lg=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]]))}),tk=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=lg(),i=te("path").posix,n=tk(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(w,v,F,q){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,v||0,F,q):w&&this.set(w)}decode(w,v,F,q){if(v||(v=0),!w||!(w.length>=v+512))throw new Error("need 512 bytes for header");if(this.path=c(w,v,100),this.mode=f(w,v+100,8),this.uid=f(w,v+108,8),this.gid=f(w,v+116,8),this.size=f(w,v+124,12),this.mtime=u(w,v+136,12),this.cksum=f(w,v+148,12),this[s](F),this[s](q,!0),this[o]=c(w,v+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(w,v+157,100),w.slice(v+257,v+265).toString()==="ustar\x0000")if(this.uname=c(w,v+265,32),this.gname=c(w,v+297,32),this.devmaj=f(w,v+329,8),this.devmin=f(w,v+337,8),w[v+475]!==0){let $=c(w,v+345,155);this.path=$+"/"+this.path}else{let $=c(w,v+345,130);$&&(this.path=$+"/"+this.path),this.atime=u(w,v+476,12),this.ctime=u(w,v+488,12)}let P=8*32;for(let $=v;$<v+148;$++)P+=w[$];for(let $=v+156;$<v+512;$++)P+=w[$];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[s](w,v){for(let F in w)w[F]!==null&&w[F]!==void 0&&!(v&&F==="path")&&(this[F]=w[F])}encode(w,v){if(w||(w=this.block=Buffer.alloc(512),v=0),v||(v=0),!(w.length>=v+512))throw new Error("need 512 bytes for header");let F=this.ctime||this.atime?130:155,q=l(this.path||"",F),P=q[0],$=q[1];this.needPax=q[2],this.needPax=I(w,v,100,P)||this.needPax,this.needPax=_(w,v+100,8,this.mode)||this.needPax,this.needPax=_(w,v+108,8,this.uid)||this.needPax,this.needPax=_(w,v+116,8,this.gid)||this.needPax,this.needPax=_(w,v+124,12,this.size)||this.needPax,this.needPax=T(w,v+136,12,this.mtime)||this.needPax,w[v+156]=this[o].charCodeAt(0),this.needPax=I(w,v+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",v+257,8),this.needPax=I(w,v+265,32,this.uname)||this.needPax,this.needPax=I(w,v+297,32,this.gname)||this.needPax,this.needPax=_(w,v+329,8,this.devmaj)||this.needPax,this.needPax=_(w,v+337,8,this.devmin)||this.needPax,this.needPax=I(w,v+345,F,$)||this.needPax,w[v+475]!==0?this.needPax=I(w,v+345,155,$)||this.needPax:(this.needPax=I(w,v+345,130,$)||this.needPax,this.needPax=T(w,v+476,12,this.atime)||this.needPax,this.needPax=T(w,v+488,12,this.ctime)||this.needPax);let K=8*32;for(let V=v;V<v+148;V++)K+=w[V];for(let V=v+156;V<v+512;V++)K+=w[V];return this.cksum=K,_(w,v+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let v in w)w[v]!==null&&w[v]!==void 0&&(this[v]=w[v])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(w){r.code.has(w)?this[o]=r.code.get(w):this[o]=w}},l=(w,v)=>{let F=w,q="",P,$=i.parse(w).root||".";if(Buffer.byteLength(F)<100)P=[F,q,!1];else{q=i.dirname(F),F=i.basename(F);do Buffer.byteLength(F)<=100&&Buffer.byteLength(q)<=v?P=[F,q,!1]:Buffer.byteLength(F)>100&&Buffer.byteLength(q)<=v?P=[F.slice(0,100-1),q,!0]:(F=i.join(i.basename(q),F),q=i.dirname(q));while(q!==$&&!P);P||(P=[w.slice(0,100-1),"",!0])}return P},c=(w,v,F)=>w.slice(v,v+F).toString("utf8").replace(/\0.*/,""),u=(w,v,F)=>h(f(w,v,F)),h=w=>w===null?null:new Date(w*1e3),f=(w,v,F)=>w[v]&128?n.parse(w.slice(v,v+F)):g(w,v,F),d=w=>isNaN(w)?null:w,g=(w,v,F)=>d(parseInt(w.slice(v,v+F).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},_=(w,v,F,q)=>q===null?!1:q>y[F]||q<0?(n.encode(q,w.slice(v,v+F)),!0):(x(w,v,F,q),!1),x=(w,v,F,q)=>w.write(k(q,F),v,F,"ascii"),k=(w,v)=>C(Math.floor(w).toString(8),v),C=(w,v)=>(w.length===v-1?w:new Array(v-w.length-1).join("0")+w+" ")+"\0",T=(w,v,F,q)=>q===null?!1:_(w,v,F,q.getTime()/1e3),O=new Array(156).join("\0"),I=(w,v,F,q)=>q===null?!1:(w.write(q+O,v,F,"utf8"),q.length!==Buffer.byteLength(q)||q.length>F);e.exports=a}),Tc=ee((t,e)=>{"use strict";W();var r=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)}}),kc=ee((t,e)=>{"use strict";W(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),cg=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)}}),ug=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]}}),rk=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)}),hg=ee((t,e)=>{"use strict";W();var r=Ac(),i=Tc(),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=kc(),N=cg(),A=ug(),L=rk(),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}),ik=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}}}),fg=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{ik()(r)}catch{}}),Cc=ee((t,e)=>{"use strict";W();var r=class{constructor(p,m){this.path=p||"./",this.absolute=m,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Ac(),n=ag(),s=Oc(),o=hg(),a=o.Sync,l=o.Tar,c=fg(),u=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),g=Symbol("current"),y=Symbol("process"),_=Symbol("processing"),x=Symbol("processJob"),k=Symbol("jobs"),C=Symbol("jobDone"),T=Symbol("addFSEntry"),O=Symbol("addTarEntry"),I=Symbol("stat"),w=Symbol("readdir"),v=Symbol("onreaddir"),F=Symbol("pipe"),q=Symbol("entry"),P=Symbol("entryOpt"),$=Symbol("writeEntryClass"),K=Symbol("write"),V=Symbol("ondrain"),N=te("fs"),A=te("path"),L=kc(),j=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=sg(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let p=process.binding("fs"),m=p.FSReqWrap||p.FSReqCallback;n=(b,R,E,M)=>{let B=(U,J)=>M(U,J,R),Z=new m;Z.oncomplete=B,p.writeBuffers(b,R,E,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),l=Symbol("_fd"),c=Symbol("_finished"),u=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),y=Symbol("_needDrain"),_=Symbol("_onerror"),x=Symbol("_onopen"),k=Symbol("_onread"),C=Symbol("_onwrite"),T=Symbol("_open"),O=Symbol("_path"),I=Symbol("_pos"),w=Symbol("_queue"),v=Symbol("_read"),F=Symbol("_readSize"),q=Symbol("_reading"),P=Symbol("_remain"),$=Symbol("_size"),K=Symbol("_write"),V=Symbol("_writing"),N=Symbol("_defaultFlag"),A=Symbol("_errored"),L=class extends e{constructor(p,m){if(m=m||{},super(m),this.readable=!0,this.writable=!1,typeof p!="string")throw new TypeError("path must be a string");this[A]=!1,this[l]=typeof m.fd=="number"?m.fd:null,this[O]=p,this[F]=m.readSize||16*1024*1024,this[q]=!1,this[$]=typeof m.size=="number"?m.size:1/0,this[P]=this[$],this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0,typeof this[l]=="number"?this[v]():this[T]()}get fd(){return this[l]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[T](){i.open(this[O],"r",(p,m)=>this[x](p,m))}[x](p,m){p?this[_](p):(this[l]=m,this.emit("open",m),this[v]())}[d](){return Buffer.allocUnsafe(Math.min(this[F],this[P]))}[v](){if(!this[q]){this[q]=!0;let p=this[d]();if(p.length===0)return process.nextTick(()=>this[k](null,0,p));i.read(this[l],p,0,p.length,null,(m,b,R)=>this[k](m,b,R))}}[k](p,m,b){this[q]=!1,p?this[_](p):this[f](m,b)&&this[v]()}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}[_](p){this[q]=!0,this[o](),this.emit("error",p)}[f](p,m){let b=!1;return this[P]-=p,p>0&&(b=super.write(p<m.length?m.slice(0,p):m)),(p===0||this[P]<=0)&&(b=!1,this[o](),super.end()),b}emit(p,m){switch(p){case"prefinish":case"finish":break;case"drain":typeof this[l]=="number"&&this[v]();break;case"error":return this[A]?void 0:(this[A]=!0,super.emit(p,m));default:return super.emit(p,m)}}},j=class extends L{[T](){let p=!0;try{this[x](null,i.openSync(this[O],"r")),p=!1}finally{p&&this[o]()}}[v](){let p=!0;try{if(!this[q]){this[q]=!0;do{let m=this[d](),b=m.length===0?0:i.readSync(this[l],m,0,m.length,null);if(!this[f](b,m))break}while(!0);this[q]=!1}p=!1}finally{p&&this[o]()}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}},z=class extends r{constructor(p,m){m=m||{},super(m),this.readable=!1,this.writable=!0,this[A]=!1,this[V]=!1,this[a]=!1,this[y]=!1,this[w]=[],this[O]=p,this[l]=typeof m.fd=="number"?m.fd:null,this[g]=m.mode===void 0?438:m.mode,this[I]=typeof m.start=="number"?m.start:null,this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0;let b=this[I]!==null?"r+":"w";this[N]=m.flags===void 0,this[u]=this[N]?b:m.flags,this[l]===null&&this[T]()}emit(p,m){if(p==="error"){if(this[A])return;this[A]=!0}return super.emit(p,m)}get fd(){return this[l]}get path(){return this[O]}[_](p){this[o](),this[V]=!0,this.emit("error",p)}[T](){i.open(this[O],this[u],this[g],(p,m)=>this[x](p,m))}[x](p,m){this[N]&&this[u]==="r+"&&p&&p.code==="ENOENT"?(this[u]="w",this[T]()):p?this[_](p):(this[l]=m,this.emit("open",m),this[h]())}end(p,m){return p&&this.write(p,m),this[a]=!0,!this[V]&&!this[w].length&&typeof this[l]=="number"&&this[C](null,0),this}write(p,m){return typeof p=="string"&&(p=Buffer.from(p,m)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[l]===null||this[V]||this[w].length?(this[w].push(p),this[y]=!0,!1):(this[V]=!0,this[K](p),!0)}[K](p){i.write(this[l],p,0,p.length,this[I],(m,b)=>this[C](m,b))}[C](p,m){p?this[_](p):(this[I]!==null&&(this[I]+=m),this[w].length?this[h]():(this[V]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[a]&&this[C](null,0);else if(this[w].length===1)this[K](this[w].pop());else{let p=this[w];this[w]=[],n(this[l],p,this[I],(m,b)=>this[C](m,b))}}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}},D=class extends z{[T](){let p;if(this[N]&&this[u]==="r+")try{p=i.openSync(this[O],this[u],this[g])}catch(m){if(m.code==="ENOENT")return this[u]="w",this[T]();throw m}else p=i.openSync(this[O],this[u],this[g]);this[x](null,p)}[o](){if(this[s]&&typeof this[l]=="number"){let p=this[l];this[l]=null,i.closeSync(p),this.emit("close")}}[K](p){let m=!0;try{this[C](null,i.writeSync(this[l],p,0,p.length,this[I])),m=!1}finally{if(m)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=j,t.WriteStream=z,t.WriteStreamSync=D}),Lc=ee((t,e)=>{"use strict";W();var r=kc(),i=Sn(),n=te("events"),s=fg(),o=1024*1024,a=Oc(),l=Tc(),c=ag(),{nextTick:u}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),g=Symbol("readEntry"),y=Symbol("nextEntry"),_=Symbol("processEntry"),x=Symbol("extendedHeader"),k=Symbol("globalExtendedHeader"),C=Symbol("meta"),T=Symbol("emitMeta"),O=Symbol("buffer"),I=Symbol("queue"),w=Symbol("ended"),v=Symbol("emittedEnd"),F=Symbol("emit"),q=Symbol("unzip"),P=Symbol("consumeChunk"),$=Symbol("consumeChunkSub"),K=Symbol("consumeBody"),V=Symbol("consumeMeta"),N=Symbol("consumeHeader"),A=Symbol("consuming"),L=Symbol("bufferConcat"),j=Symbol("maybeEnd"),z=Symbol("writing"),D=Symbol("aborted"),p=Symbol("onDone"),m=Symbol("sawValidEntry"),b=Symbol("sawNullBlock"),R=Symbol("sawEOF"),E=Symbol("closeStream"),M=B=>!0;e.exports=r(class extends n{constructor(B){B=B||{},super(B),this.file=B.file||"",this[m]=null,this.on(p,Z=>{(this[f]==="begin"||this[m]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),B.ondone?this.on(p,B.ondone):this.on(p,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!B.strict,this.maxMetaEntrySize=B.maxMetaEntrySize||o,this.filter=typeof B.filter=="function"?B.filter:M,this.writable=!0,this.readable=!1,this[I]=new s,this[O]=null,this[g]=null,this[d]=null,this[f]="begin",this[C]="",this[x]=null,this[k]=null,this[w]=!1,this[q]=null,this[D]=!1,this[b]=!1,this[R]=!1,this.on("end",()=>this[E]()),typeof B.onwarn=="function"&&this.on("warn",B.onwarn),typeof B.onentry=="function"&&this.on("entry",B.onentry)}[N](B,Z){this[m]===null&&(this[m]=!1);let U;try{U=new i(B,Z,this[x],this[k])}catch(J){return this.warn("TAR_ENTRY_INVALID",J)}if(U.nullBlock)this[b]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[F]("eof")):(this[b]=!0,this[F]("nullBlock"));else if(this[b]=!1,!U.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:U});else if(!U.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:U});else{let J=U.type;if(/^(Symbolic)?Link$/.test(J)&&!U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:U});else if(!/^(Symbolic)?Link$/.test(J)&&U.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:U});else{let G=this[d]=new a(U,this[x],this[k]);if(!this[m])if(G.remain){let re=()=>{G.invalid||(this[m]=!0)};G.on("end",re)}else this[m]=!0;G.meta?G.size>this.maxMetaEntrySize?(G.ignore=!0,this[F]("ignoredEntry",G),this[f]="ignore",G.resume()):G.size>0&&(this[C]="",G.on("data",re=>this[C]+=re),this[f]="meta"):(this[x]=null,G.ignore=G.ignore||!this.filter(G.path,G),G.ignore?(this[F]("ignoredEntry",G),this[f]=G.remain?"ignore":"header",G.resume()):(G.remain?this[f]="body":(this[f]="header",G.end()),this[g]?this[I].push(G):(this[I].push(G),this[y]())))}}}[E](){u(()=>this.emit("close"))}[_](B){let Z=!0;return B?Array.isArray(B)?this.emit.apply(this,B):(this[g]=B,this.emit("entry",B),B.emittedEnd||(B.on("end",U=>this[y]()),Z=!1)):(this[g]=null,Z=!1),Z}[y](){do;while(this[_](this[I].shift()));if(!this[I].length){let B=this[g];!B||B.flowing||B.size===B.remain?this[z]||this.emit("drain"):B.once("drain",Z=>this.emit("drain"))}}[K](B,Z){let U=this[d],J=U.blockRemain,G=J>=B.length&&Z===0?B:B.slice(Z,Z+J);return U.write(G),U.blockRemain||(this[f]="header",this[d]=null,U.end()),G.length}[V](B,Z){let U=this[d],J=this[K](B,Z);return this[d]||this[T](U),J}[F](B,Z,U){!this[I].length&&!this[g]?this.emit(B,Z,U):this[I].push([B,Z,U])}[T](B){switch(this[F]("meta",this[C]),B.type){case"ExtendedHeader":case"OldExtendedHeader":this[x]=l.parse(this[C],this[x],!1);break;case"GlobalExtendedHeader":this[k]=l.parse(this[C],this[k],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[x]=this[x]||Object.create(null),this[x].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[x]=this[x]||Object.create(null),this[x].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+B.type)}}abort(B){this[D]=!0,this.emit("abort",B),this.warn("TAR_ABORT",B,{recoverable:!1})}write(B){if(this[D])return;if(this[q]===null&&B){if(this[O]&&(B=Buffer.concat([this[O],B]),this[O]=null),B.length<h.length)return this[O]=B,!0;for(let U=0;this[q]===null&&U<h.length;U++)B[U]!==h[U]&&(this[q]=!1);if(this[q]===null){let U=this[w];this[w]=!1,this[q]=new c.Unzip,this[q].on("data",G=>this[P](G)),this[q].on("error",G=>this.abort(G)),this[q].on("end",G=>{this[w]=!0,this[P]()}),this[z]=!0;let J=this[q][U?"end":"write"](B);return this[z]=!1,J}}this[z]=!0,this[q]?this[q].write(B):this[P](B),this[z]=!1;let Z=this[I].length?!1:this[g]?this[g].flowing:!0;return!Z&&!this[I].length&&this[g].once("drain",U=>this.emit("drain")),Z}[L](B){B&&!this[D]&&(this[O]=this[O]?Buffer.concat([this[O],B]):B)}[j](){if(this[w]&&!this[v]&&!this[D]&&!this[A]){this[v]=!0;let B=this[d];if(B&&B.blockRemain){let Z=this[O]?this[O].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${B.blockRemain} more bytes, only ${Z} available)`,{entry:B}),this[O]&&B.write(this[O]),B.end()}this[F](p)}}[P](B){if(this[A])this[L](B);else if(!B&&!this[O])this[j]();else{if(this[A]=!0,this[O]){this[L](B);let Z=this[O];this[O]=null,this[$](Z)}else this[$](B);for(;this[O]&&this[O].length>=512&&!this[D]&&!this[R];){let Z=this[O];this[O]=null,this[$](Z)}this[A]=!1}(!this[O]||this[w])&&this[j]()}[$](B){let Z=0,U=B.length;for(;Z+512<=U&&!this[D]&&!this[R];)switch(this[f]){case"begin":case"header":this[N](B,Z),Z+=512;break;case"ignore":case"body":Z+=this[K](B,Z);break;case"meta":Z+=this[V](B,Z);break;default:throw new Error("invalid state: "+this[f])}Z<U&&(this[O]?this[O]=Buffer.concat([B.slice(Z),this[O]]):this[O]=B.slice(Z))}end(B){this[D]||(this[q]?this[q].end(B):(this[w]=!0,this.write(B)))}})}),Pc=ee((t,e)=>{"use strict";W();var r=bn(),i=Lc(),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)}),nk=ee((t,e)=>{"use strict";W();var r=bn(),i=Cc(),n=vn(),s=Pc(),o=te("path");e.exports=(d,g,y)=>{if(typeof g=="function"&&(y=g),Array.isArray(d)&&(g=d,d={}),!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");g=Array.from(g);let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return _.file&&_.sync?a(_,g):_.file?l(_,g,y):_.sync?h(_,g):f(_,g)};var a=(d,g)=>{let y=new i.Sync(d),_=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(_),c(y,g)},l=(d,g,y)=>{let _=new i(d),x=new n.WriteStream(d.file,{mode:d.mode||438});_.pipe(x);let k=new Promise((C,T)=>{x.on("error",T),x.on("close",C),_.on("error",T)});return u(_,g),y?k.then(y,y):k},c=(d,g)=>{g.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:_=>d.add(_)}):d.add(y)}),d.end()},u=(d,g)=>{for(;g.length;){let y=g.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:_=>d.add(_)}).then(_=>u(d,g));d.add(y)}d.end()},h=(d,g)=>{let y=new i.Sync(d);return c(y,g),y},f=(d,g)=>{let y=new i(d);return u(y,g),y}}),pg=ee((t,e)=>{"use strict";W();var r=bn(),i=Cc(),n=te("fs"),s=vn(),o=Pc(),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()}}),sk=ee((t,e)=>{"use strict";W();var r=bn(),i=pg();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)}}),ok=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}),ak=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}),lk=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}}),dg=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}}),ck=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=lk(),{mkdirpManual:s,mkdirpManualSync:o}=dg(),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}}),uk=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}}),hk=ee((t,e)=>{W();var r=ok(),i=ak(),{mkdirpNative:n,mkdirpNativeSync:s}=ck(),{mkdirpManual:o,mkdirpManualSync:a}=dg(),{useNative:l,useNativeSync:c}=uk(),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}),fk=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}),pk=ee((t,e)=>{"use strict";W();var r=hk(),i=te("fs"),n=te("path"),s=fk(),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)}}),mg=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])}),dk=ee((t,e)=>{W();var r=te("assert"),i=mg(),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)}}}}),mk=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"}),yg=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Lc(),n=te("fs"),s=vn(),o=te("path"),a=pk(),l=cg(),c=dk(),u=ug(),h=wn(),f=En(),d=mg(),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=mk(),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,aa=>ge(aa&&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,aa=>ge(aa&&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}),yk=ee((t,e)=>{"use strict";W();var r=bn(),i=yg(),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)}),gk=ee(t=>{"use strict";W(),t.c=t.create=nk(),t.r=t.replace=pg(),t.t=t.list=Pc(),t.u=t.update=sk(),t.x=t.extract=yk(),t.Pack=Cc(),t.Unpack=yg(),t.Parse=Lc(),t.ReadEntry=Oc(),t.WriteEntry=hg(),t.Header=Sn(),t.Pax=Tc(),t.types=lg()}),_k=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}}),bk=ee(t=>{W();var e=_k();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}}}),wk=ee((t,e)=>{W(),e.exports=bk()}),Sk=ee((t,e)=>{W();var r=wk();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}),Ek={};$T(Ek,{bold:()=>Ok,dimmed:()=>kk,error:()=>Ik,grey:()=>Ck,info:()=>Ak,item:()=>Lk,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Rk,turboLoader:()=>xk,turboRed:()=>Sg,underline:()=>Tk,warn:()=>Pk,yellow:()=>Eg});W();var bg="#0099F7",wg="#F11712",vk="#FFFF00",Rk=(0,_g.default)(bg,wg),vi=ur.default.hex(bg),Sg=ur.default.hex(wg),Eg=ur.default.hex(vk),xk=t=>(0,gg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),Ak=(...t)=>{jr(vi.bold(">>>"),...t)},Ok=(...t)=>{jr(ur.default.bold(...t))},Tk=(...t)=>{jr(ur.default.underline(...t))},kk=(...t)=>{jr(ur.default.dim(...t))},Ck=(...t)=>{jr(ur.default.grey(...t))},Lk=(...t)=>{jr(vi.bold(" \u2022"),...t)},jr=(...t)=>{console.log(...t)},Pk=(...t)=>{console.error(Eg.bold(">>>"),...t)},Ik=(...t)=>{console.error(Sg.bold(">>>"),...t)};W();W();W();W();var KN=zs(YT());W();W();function Dk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function vc(t){return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(t)}W();function Mk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fk(t,e){if(e&&(vc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mk(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 Bk(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 jk(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Hk(){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 Hk()?$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 Rc(t){var e=typeof Map=="function"?new Map:void 0;return Rc=function(r){if(r===null||!jk(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)},Rc(t)}var VN=zs(QT()),JN=function(t){Bk(e,t);function e(r){var i;return Dk(this,e),i=Fk(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Rc(Error));W();W();W();W();W();W();var cD=zs(gk()),uD=(0,Rg.promisify)(vg.Stream.pipeline);W();W();var dD=zs(Sk());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 qk=/^(?!_)(?<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=qk.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 ig({workspaceRoot:t}){let e=Ft.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=qa.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 Ic({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,Cg.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 Uk({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 $k({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 Lg({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,kg.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 Gk({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}=Gk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${Tg.default.green(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${Ag.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,Og.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var cr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Pg(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 zk(t){if(!await Pg(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:ig(t),workspaces:Ks({workspaceGlobs:ig(t),...t})}}}async function Wk(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 Yk(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 Kk(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 Vk(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,xg.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 Lg({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 Zk={detect:Pg,read:zk,create:Wk,remove:Yk,clean:Kk,convertLock:Vk};W();var Ri={name:"npm",lock:"package-lock.json"};async function Ig(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 Xk(t){if(!await Ig(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Ic({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 Jk(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 Qk(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 e1(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 t1(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 r1={detect:Ig,read:Xk,create:Jk,remove:Qk,clean:e1,convertLock:t1};W();var Br={name:"yarn",lock:"yarn.lock"};async function Ng(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 i1(t){if(!await Ng(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Ic({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 n1(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 s1(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 o1(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 a1(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 Lg({project:e,options:r});break;case"npm":Mt({project:e,options:r});break;case"yarn":break}}var l1={detect:Ng,read:i1,create:n1,remove:s1,clean:o1,convertLock:a1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Dg(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 c1(t){if(!await Dg(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=$e(t),{name:r,description:i}=Rn(t),n=Ic({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 u1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!$k({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 h1(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 f1(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 p1(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 d1={detect:Dg,read:c1,create:u1,remove:h1,clean:f1,convertLock:p1},Mg={pnpm:Zk,yarn:l1,npm:r1,bun:d1};W();async function Nc({root:t}){let{exists:e,absolute:r}=Uk({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(Mg))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 S1=ie(Ug());function Mc(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 Fc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bc(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 Fc(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 jc(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 Hc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function qc(){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 qc()?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||!Hc(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 $g=ie(require("find-up"));var E1=ie(require("fs-extra")),WM=function(t){jc(e,t);function e(r){var i;return Mc(this,e),i=Bc(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 A1=ie(require("json5"));var v1=ie(require("fs")),R1=ie(require("path"));var M1=ie(require("fs")),F1=ie(require("path"));var B1=ie(Us()),j1=ie(require("json5"));var it={};Ch(it,{bold:()=>C1,dimmed:()=>P1,error:()=>Jg,grey:()=>I1,info:()=>k1,item:()=>N1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>T1,turboLoader:()=>Zg,turboRed:()=>Kg,underline:()=>L1,warn:()=>Xg,yellow:()=>Vg});var fr=ie(require("chalk")),Gg=ie(require("ora")),zg=ie(require("gradient-string")),Wg="#0099F7",Yg="#F11712",O1="#FFFF00",T1=(0,zg.default)(Wg,Yg),Ti=fr.default.hex(Wg),Kg=fr.default.hex(Yg),Vg=fr.default.hex(O1),Zg=t=>(0,Gg.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),k1=(...t)=>{pr(Ti.bold(">>>"),...t)},C1=(...t)=>{pr(fr.default.bold(...t))},L1=(...t)=>{pr(fr.default.underline(...t))},P1=(...t)=>{pr(fr.default.dim(...t))},I1=(...t)=>{pr(fr.default.grey(...t))},N1=(...t)=>{pr(Ti.bold(" \u2022"),...t)},pr=(...t)=>{console.log(...t)},Xg=(...t)=>{console.error(Vg.bold(">>>"),...t)},Jg=(...t)=>{console.error(Kg.bold(">>>"),...t)};var Qg=ie(require("os")),e_=ie(li());async function Zs(t,e=[],r){let i={cwd:Qg.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,e_.default)(t,e,i);return n.trim()}catch{return}}async function Uc(){let[t,e,r,i]=await Promise.all([Zs("yarnpkg",["--version"]),Zs("npm",["--version"]),Zs("pnpm",["--version"]),Zs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var H1=ie(require("fs-extra"));var q1=ie(require("path")),U1=ie(require("fs-extra")),$1=ie(require("chalk"));var Qw=require("stream"),eS=require("util"),xP=require("path"),AP=require("os"),tS=require("fs"),OP=ie(Jw());var tB=(0,eS.promisify)(Qw.Stream.pipeline);var rS=require("fs-extra");var FP=ie(require("path")),BP=ie(cS()),jP=ie(require("chalk")),Th=require("fs-extra");var oa=ie(require("chalk"));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 uS=ie(require("os")),kh=ie(require("path"));var ia=ie(require("chalk")),sa=require("diff"),Or=require("fs-extra"),na=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{kh.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,sa.diffJson)(this.before,e.after):this.changes=(0,sa.diffLines)(this.before,e.after):this.changes=[]}fileName(){return kh.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(ia.default.green(r.value)):r.removed?process.stdout.write(ia.default.red(r.value)):process.stdout.write(ia.default.dim(r.value))}),it.log(uS.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 na({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(oa.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(oa.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(oa.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 hS({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 dS="add-package-manager",HP="Set the `packageManager` key in root `package.json` file",qP="1.1.0";async function mS({root:t,options:e}){let{log:r,runner:i}=hS({transformer:dS,rootPath:t,options:e});r.info('Set "packageManager" key in root "package.json" file...');let n;try{n=await Nc({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=await Uc(),{packageManager:o}=n,a=s[o];if(!a)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let l=`${o}@${a}`,c=fS.default.join(t,"package.json"),u=(0,pS.readJsonSync)(c),h=[{name:"package.json",path:t,packageJson:{...u,packageJsonPath:c}}];for(let f of h){let{packageJsonPath:d,...g}=f.packageJson,y={...g,packageManager:l};i.modifyFile({filePath:d,after:y})}return i.finish()}var UP={name:dS,description:HP,introducedIn:qP,transformer:mS},$P=UP;0&&(module.exports={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