@turbo/codemod 2.0.15-canary.1 → 2.0.15-canary.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,30 +1,30 @@
1
- "use strict";var wS=Object.create;var Xn=Object.defineProperty;var SS=Object.getOwnPropertyDescriptor;var ES=Object.getOwnPropertyNames;var vS=Object.getPrototypeOf,RS=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ih=(t,e)=>{for(var r in e)Xn(t,r,{get:e[r],enumerable:!0})},Nh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ES(e))!RS.call(t,n)&&n!==r&&Xn(t,n,{get:()=>e[n],enumerable:!(i=SS(e,n))||i.enumerable});return t};var ne=(t,e,r)=>(r=t!=null?wS(vS(t)):{},Nh(e||!t||!t.__esModule?Xn(r,"default",{value:t,enumerable:!0}):r,t)),xS=t=>Nh(Xn({},"__esModule",{value:!0}),t);var jh=H((ZP,Bh)=>{Bh.exports=Fh;Fh.sync=OS;var Dh=require("fs");function AS(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 Mh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:AS(e,r)}function Fh(t,e,r){Dh.stat(t,function(i,n){r(i,i?!1:Mh(n,t,e))})}function OS(t,e){return Mh(Dh.statSync(t),t,e)}});var Gh=H((XP,$h)=>{$h.exports=qh;qh.sync=TS;var Hh=require("fs");function qh(t,e,r){Hh.stat(t,function(i,n){r(i,i?!1:Uh(n,e))})}function TS(t,e){return Uh(Hh.statSync(t),e)}function Uh(t,e){return t.isFile()&&kS(t,e)}function kS(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 Wh=H((QP,zh)=>{var JP=require("fs"),Jn;process.platform==="win32"||global.TESTING_WINDOWS?Jn=jh():Jn=Gh();zh.exports=ca;ca.sync=CS;function ca(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){ca(t,e||{},function(s,o){s?n(s):i(o)})})}Jn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function CS(t,e){try{return Jn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Qh=H((eI,Jh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Yh=require("path"),LS=ei?";":":",Kh=Wh(),Vh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Zh=(t,e)=>{let r=e.colon||LS,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}},Xh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Zh(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(Vh(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Yh.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];Kh(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)},PS=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Zh(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=Yh.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(Kh.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 Vh(t)};Jh.exports=Xh;Xh.sync=PS});var ha=H((tI,ua)=>{"use strict";var ef=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ua.exports=ef;ua.exports.default=ef});var sf=H((rI,nf)=>{"use strict";var tf=require("path"),IS=Qh(),NS=ha();function rf(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=IS.sync(t.command,{path:r[NS({env:r})],pathExt:e?tf.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=tf.resolve(n?t.options.cwd:"",o)),o}function DS(t){return rf(t)||rf(t,!0)}nf.exports=DS});var of=H((iI,pa)=>{"use strict";var fa=/([()\][%!^"`<>&|;, *?])/g;function MS(t){return t=t.replace(fa,"^$1"),t}function FS(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(fa,"^$1"),e&&(t=t.replace(fa,"^$1")),t}pa.exports.command=MS;pa.exports.argument=FS});var lf=H((nI,af)=>{"use strict";af.exports=/^#!(.*)/});var uf=H((sI,cf)=>{"use strict";var BS=lf();cf.exports=(t="")=>{let e=t.match(BS);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var ff=H((oI,hf)=>{"use strict";var da=require("fs"),jS=uf();function HS(t){let r=Buffer.alloc(150),i;try{i=da.openSync(t,"r"),da.readSync(i,r,0,150,0),da.closeSync(i)}catch{}return jS(r.toString())}hf.exports=HS});var yf=H((aI,mf)=>{"use strict";var qS=require("path"),pf=sf(),df=of(),US=ff(),$S=process.platform==="win32",GS=/\.(?:com|exe)$/i,zS=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function WS(t){t.file=pf(t);let e=t.file&&US(t.file);return e?(t.args.unshift(t.file),t.command=e,pf(t)):t.file}function YS(t){if(!$S)return t;let e=WS(t),r=!GS.test(e);if(t.options.forceShell||r){let i=zS.test(e);t.command=qS.normalize(t.command),t.command=df.command(t.command),t.args=t.args.map(s=>df.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 KS(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:YS(i)}mf.exports=KS});var bf=H((lI,_f)=>{"use strict";var ma=process.platform==="win32";function ya(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 VS(t,e){if(!ma)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=gf(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function gf(t,e){return ma&&t===1&&!e.file?ya(e.original,"spawn"):null}function ZS(t,e){return ma&&t===1&&!e.file?ya(e.original,"spawnSync"):null}_f.exports={hookChildProcess:VS,verifyENOENT:gf,verifyENOENTSync:ZS,notFoundError:ya}});var Ef=H((cI,ti)=>{"use strict";var wf=require("child_process"),ga=yf(),_a=bf();function Sf(t,e,r){let i=ga(t,e,r),n=wf.spawn(i.command,i.args,i.options);return _a.hookChildProcess(n,i),n}function XS(t,e,r){let i=ga(t,e,r),n=wf.spawnSync(i.command,i.args,i.options);return n.error=n.error||_a.verifyENOENTSync(n.status,i),n}ti.exports=Sf;ti.exports.spawn=Sf;ti.exports.sync=XS;ti.exports._parse=ga;ti.exports._enoent=_a});var Rf=H((uI,vf)=>{"use strict";vf.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var Sw=Object.create;var Xn=Object.defineProperty;var ww=Object.getOwnPropertyDescriptor;var Ew=Object.getOwnPropertyNames;var vw=Object.getPrototypeOf,Rw=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ih=(t,e)=>{for(var r in e)Xn(t,r,{get:e[r],enumerable:!0})},Nh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ew(e))!Rw.call(t,n)&&n!==r&&Xn(t,n,{get:()=>e[n],enumerable:!(i=ww(e,n))||i.enumerable});return t};var ne=(t,e,r)=>(r=t!=null?Sw(vw(t)):{},Nh(e||!t||!t.__esModule?Xn(r,"default",{value:t,enumerable:!0}):r,t)),xw=t=>Nh(Xn({},"__esModule",{value:!0}),t);var jh=H((ZP,Bh)=>{Bh.exports=Fh;Fh.sync=Ow;var Dh=require("fs");function Aw(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 Mh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Aw(e,r)}function Fh(t,e,r){Dh.stat(t,function(i,n){r(i,i?!1:Mh(n,t,e))})}function Ow(t,e){return Mh(Dh.statSync(t),t,e)}});var Gh=H((XP,$h)=>{$h.exports=qh;qh.sync=Tw;var Hh=require("fs");function qh(t,e,r){Hh.stat(t,function(i,n){r(i,i?!1:Uh(n,e))})}function Tw(t,e){return Uh(Hh.statSync(t),e)}function Uh(t,e){return t.isFile()&&kw(t,e)}function kw(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 Wh=H((QP,zh)=>{var JP=require("fs"),Jn;process.platform==="win32"||global.TESTING_WINDOWS?Jn=jh():Jn=Gh();zh.exports=ca;ca.sync=Cw;function ca(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){ca(t,e||{},function(s,o){s?n(s):i(o)})})}Jn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function Cw(t,e){try{return Jn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Qh=H((eI,Jh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Yh=require("path"),Lw=ei?";":":",Vh=Wh(),Kh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Zh=(t,e)=>{let r=e.colon||Lw,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}},Xh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Zh(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(Kh(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Yh.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];Vh(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)},Pw=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Zh(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=Yh.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(Vh.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Kh(t)};Jh.exports=Xh;Xh.sync=Pw});var ha=H((tI,ua)=>{"use strict";var ef=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ua.exports=ef;ua.exports.default=ef});var sf=H((rI,nf)=>{"use strict";var tf=require("path"),Iw=Qh(),Nw=ha();function rf(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=Iw.sync(t.command,{path:r[Nw({env:r})],pathExt:e?tf.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=tf.resolve(n?t.options.cwd:"",o)),o}function Dw(t){return rf(t)||rf(t,!0)}nf.exports=Dw});var of=H((iI,pa)=>{"use strict";var fa=/([()\][%!^"`<>&|;, *?])/g;function Mw(t){return t=t.replace(fa,"^$1"),t}function Fw(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(fa,"^$1"),e&&(t=t.replace(fa,"^$1")),t}pa.exports.command=Mw;pa.exports.argument=Fw});var lf=H((nI,af)=>{"use strict";af.exports=/^#!(.*)/});var uf=H((sI,cf)=>{"use strict";var Bw=lf();cf.exports=(t="")=>{let e=t.match(Bw);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var ff=H((oI,hf)=>{"use strict";var da=require("fs"),jw=uf();function Hw(t){let r=Buffer.alloc(150),i;try{i=da.openSync(t,"r"),da.readSync(i,r,0,150,0),da.closeSync(i)}catch{}return jw(r.toString())}hf.exports=Hw});var yf=H((aI,mf)=>{"use strict";var qw=require("path"),pf=sf(),df=of(),Uw=ff(),$w=process.platform==="win32",Gw=/\.(?:com|exe)$/i,zw=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ww(t){t.file=pf(t);let e=t.file&&Uw(t.file);return e?(t.args.unshift(t.file),t.command=e,pf(t)):t.file}function Yw(t){if(!$w)return t;let e=Ww(t),r=!Gw.test(e);if(t.options.forceShell||r){let i=zw.test(e);t.command=qw.normalize(t.command),t.command=df.command(t.command),t.args=t.args.map(s=>df.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 Vw(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:Yw(i)}mf.exports=Vw});var bf=H((lI,_f)=>{"use strict";var ma=process.platform==="win32";function ya(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 Kw(t,e){if(!ma)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=gf(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function gf(t,e){return ma&&t===1&&!e.file?ya(e.original,"spawn"):null}function Zw(t,e){return ma&&t===1&&!e.file?ya(e.original,"spawnSync"):null}_f.exports={hookChildProcess:Kw,verifyENOENT:gf,verifyENOENTSync:Zw,notFoundError:ya}});var Ef=H((cI,ti)=>{"use strict";var Sf=require("child_process"),ga=yf(),_a=bf();function wf(t,e,r){let i=ga(t,e,r),n=Sf.spawn(i.command,i.args,i.options);return _a.hookChildProcess(n,i),n}function Xw(t,e,r){let i=ga(t,e,r),n=Sf.spawnSync(i.command,i.args,i.options);return n.error=n.error||_a.verifyENOENTSync(n.status,i),n}ti.exports=wf;ti.exports.spawn=wf;ti.exports.sync=Xw;ti.exports._parse=ga;ti.exports._enoent=_a});var Rf=H((uI,vf)=>{"use strict";vf.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 Of=H((hI,nn)=>{"use strict";var rn=require("path"),xf=ha(),Af=t=>{t={cwd:process.cwd(),path:process.env[xf()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),i=[];for(;e!==r;)i.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let n=rn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(rn.delimiter)};nn.exports=Af;nn.exports.default=Af;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=xf({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var kf=H((fI,ba)=>{"use strict";var Tf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};ba.exports=Tf;ba.exports.default=Tf});var Lf=H((pI,es)=>{"use strict";var JS=kf(),Qn=new WeakMap,Cf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Qn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return JS(s,t),Qn.set(s,i),s};es.exports=Cf;es.exports.default=Cf;es.exports.callCount=t=>{if(!Qn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Qn.get(t)}});var Pf=H(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.SIGNALS=void 0;var QS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];ts.SIGNALS=QS});var wa=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var eE=function(){let t=Nf-If+1;return Array.from({length:t},tE)};ri.getRealtimeSignals=eE;var tE=function(t,e){return{name:`SIGRT${e+1}`,number:If+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},If=34,Nf=64;ri.SIGRTMAX=Nf});var Df=H(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.getSignals=void 0;var rE=require("os"),iE=Pf(),nE=wa(),sE=function(){let t=(0,nE.getRealtimeSignals)();return[...iE.SIGNALS,...t].map(oE)};rs.getSignals=sE;var oE=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=rE.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Ff=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var aE=require("os"),Mf=Df(),lE=wa(),cE=function(){return(0,Mf.getSignals)().reduce(uE,{})},uE=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}}},hE=cE();ii.signalsByName=hE;var fE=function(){let t=(0,Mf.getSignals)(),e=lE.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>pE(n,t));return Object.assign({},...r)},pE=function(t,e){let r=dE(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}}},dE=function(t,e){let r=e.find(({name:i})=>aE.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},mE=fE();ii.signalsByNumber=mE});var jf=H((_I,Bf)=>{"use strict";var{signalsByName:yE}=Ff(),gE=({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",_E=({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:yE[n].description,d=i&&i.code,y=`Command ${gE({timedOut:l,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,_=Object.prototype.toString.call(i)==="[object Error]",x=_?`${y}
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 Of=H((hI,nn)=>{"use strict";var rn=require("path"),xf=ha(),Af=t=>{t={cwd:process.cwd(),path:process.env[xf()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),i=[];for(;e!==r;)i.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let n=rn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(rn.delimiter)};nn.exports=Af;nn.exports.default=Af;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=xf({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var kf=H((fI,ba)=>{"use strict";var Tf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};ba.exports=Tf;ba.exports.default=Tf});var Lf=H((pI,es)=>{"use strict";var Jw=kf(),Qn=new WeakMap,Cf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Qn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Jw(s,t),Qn.set(s,i),s};es.exports=Cf;es.exports.default=Cf;es.exports.callCount=t=>{if(!Qn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Qn.get(t)}});var Pf=H(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.SIGNALS=void 0;var Qw=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];ts.SIGNALS=Qw});var Sa=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var eE=function(){let t=Nf-If+1;return Array.from({length:t},tE)};ri.getRealtimeSignals=eE;var tE=function(t,e){return{name:`SIGRT${e+1}`,number:If+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},If=34,Nf=64;ri.SIGRTMAX=Nf});var Df=H(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.getSignals=void 0;var rE=require("os"),iE=Pf(),nE=Sa(),sE=function(){let t=(0,nE.getRealtimeSignals)();return[...iE.SIGNALS,...t].map(oE)};rs.getSignals=sE;var oE=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=rE.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Ff=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var aE=require("os"),Mf=Df(),lE=Sa(),cE=function(){return(0,Mf.getSignals)().reduce(uE,{})},uE=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}}},hE=cE();ii.signalsByName=hE;var fE=function(){let t=(0,Mf.getSignals)(),e=lE.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>pE(n,t));return Object.assign({},...r)},pE=function(t,e){let r=dE(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}}},dE=function(t,e){let r=e.find(({name:i})=>aE.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},mE=fE();ii.signalsByNumber=mE});var jf=H((_I,Bf)=>{"use strict";var{signalsByName:yE}=Ff(),gE=({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",_E=({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:yE[n].description,d=i&&i.code,y=`Command ${gE({timedOut:l,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,_=Object.prototype.toString.call(i)==="[object Error]",x=_?`${y}
4
4
  ${i.message}`:y,k=[x,e,t].filter(Boolean).join(`
5
- `);return _?(i.originalMessage=i.message,i.message=k):i=new Error(k),i.shortMessage=x,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};Bf.exports=_E});var qf=H((bI,Sa)=>{"use strict";var is=["stdin","stdout","stderr"],bE=t=>is.some(e=>t[e]!==void 0),Hf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return is.map(i=>t[i]);if(bE(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${is.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,is.length);return Array.from({length:r},(i,n)=>e[n])};Sa.exports=Hf;Sa.exports.node=t=>{let e=Hf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Uf=H((wI,ns)=>{ns.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ns.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ns.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Yf=H((SI,oi)=>{var me=global.process,Tr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Tr(me)?($f=require("assert"),ni=Uf(),Gf=/^win/i.test(me.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),me.__signal_exit_emitter__?Ae=me.__signal_exit_emitter__:(Ae=me.__signal_exit_emitter__=new sn,Ae.count=0,Ae.emitted={}),Ae.infinite||(Ae.setMaxListeners(1/0),Ae.infinite=!0),oi.exports=function(t,e){if(!Tr(global.process))return function(){};$f.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&Ea();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ae.removeListener(r,t),Ae.listeners("exit").length===0&&Ae.listeners("afterexit").length===0&&ss()};return Ae.on(r,t),i},ss=function(){!si||!Tr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,os[e])}catch{}}),me.emit=as,me.reallyExit=va,Ae.count-=1)},oi.exports.unload=ss,kr=function(e,r,i){Ae.emitted[e]||(Ae.emitted[e]=!0,Ae.emit(e,r,i))},os={},ni.forEach(function(t){os[t]=function(){if(Tr(global.process)){var r=me.listeners(t);r.length===Ae.count&&(ss(),kr("exit",null,t),kr("afterexit",null,t),Gf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,Ea=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,os[e]),!0}catch{return!1}}),me.emit=Wf,me.reallyExit=zf)},oi.exports.load=Ea,va=me.reallyExit,zf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),va.call(me,me.exitCode))},as=me.emit,Wf=function(e,r){if(e==="exit"&&Tr(global.process)){r!==void 0&&(me.exitCode=r);var i=as.apply(this,arguments);return kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),i}else return as.apply(this,arguments)}):oi.exports=function(){return function(){}};var $f,ni,Gf,sn,Ae,ss,kr,os,si,Ea,va,zf,as,Wf});var Vf=H((EI,Kf)=>{"use strict";var wE=require("os"),SE=Yf(),EE=1e3*5,vE=(t,e="SIGTERM",r={})=>{let i=t(e);return RE(t,e,r,i),i},RE=(t,e,r,i)=>{if(!xE(e,r,i))return;let n=OE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},xE=(t,{forceKillAfterTimeout:e},r)=>AE(t)&&e!==!1&&r,AE=t=>t===wE.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",OE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return EE;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},TE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},kE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},CE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{kE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},LE=({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})`)},PE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=SE(()=>{t.kill()});return i.finally(()=>{n()})};Kf.exports={spawnedKill:vE,spawnedCancel:TE,setupTimeout:CE,validateTimeout:LE,setExitHandler:PE}});var Xf=H((vI,Zf)=>{"use strict";var gt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";gt.writable=t=>gt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";gt.readable=t=>gt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";gt.duplex=t=>gt.writable(t)&&gt.readable(t);gt.transform=t=>gt.duplex(t)&&typeof t._transform=="function";Zf.exports=gt});var Qf=H((RI,Jf)=>{"use strict";var{PassThrough:IE}=require("stream");Jf.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 IE({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 ep=H((xI,on)=>{"use strict";var{constants:NE}=require("buffer"),DE=require("stream"),{promisify:ME}=require("util"),FE=Qf(),BE=ME(DE.pipeline),ls=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ra(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=FE(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=NE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await BE(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ls)})}),i.getBufferedValue()}on.exports=Ra;on.exports.buffer=(t,e)=>Ra(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>Ra(t,{...e,array:!0});on.exports.MaxBufferError=ls});var rp=H((AI,tp)=>{"use strict";var{PassThrough:jE}=require("stream");tp.exports=function(){var t=[],e=new jE({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 op=H((OI,sp)=>{"use strict";var np=Xf(),ip=ep(),HE=rp(),qE=(t,e)=>{e===void 0||t.stdin===void 0||(np(e)?e.pipe(t.stdin):t.stdin.end(e))},UE=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=HE();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},xa=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Aa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ip(t,{encoding:e,maxBuffer:i}):ip.buffer(t,{maxBuffer:i})},$E=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Aa(t,{encoding:i,buffer:n,maxBuffer:s}),l=Aa(e,{encoding:i,buffer:n,maxBuffer:s}),c=Aa(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},xa(t,a),xa(e,l),xa(r,c)])}},GE=({input:t})=>{if(np(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};sp.exports={handleInput:qE,makeAllStream:UE,getSpawnedResult:$E,validateInputSync:GE}});var lp=H((TI,ap)=>{"use strict";var zE=(async()=>{})().constructor.prototype,WE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(zE,t)]),YE=(t,e)=>{for(let[r,i]of WE){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},KE=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)})});ap.exports={mergePromise:YE,getSpawnedPromise:KE}});var hp=H((kI,up)=>{"use strict";var cp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],VE=/^[\w.-]+$/,ZE=/"/g,XE=t=>typeof t!="string"||VE.test(t)?t:`"${t.replace(ZE,'\\"')}"`,JE=(t,e)=>cp(t,e).join(" "),QE=(t,e)=>cp(t,e).map(r=>XE(r)).join(" "),e0=/ +/g,t0=t=>{let e=[];for(let r of t.trim().split(e0)){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:JE,getEscapedCommand:QE,parseCommand:t0}});var li=H((CI,ai)=>{"use strict";var r0=require("path"),Oa=require("child_process"),i0=Ef(),n0=Rf(),s0=Of(),o0=Lf(),cs=jf(),pp=qf(),{spawnedKill:a0,spawnedCancel:l0,setupTimeout:c0,validateTimeout:u0,setExitHandler:h0}=Vf(),{handleInput:f0,getSpawnedResult:p0,makeAllStream:d0,validateInputSync:m0}=op(),{mergePromise:fp,getSpawnedPromise:y0}=lp(),{joinCommand:dp,parseCommand:mp,getEscapedCommand:yp}=hp(),g0=1e3*1e3*100,_0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?s0.env({env:s,cwd:i,execPath:n}):s},gp=(t,e,r={})=>{let i=i0._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:g0,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=_0(r),r.stdio=pp(r),process.platform==="win32"&&r0.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},an=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?n0(e):e,us=(t,e,r)=>{let i=gp(t,e,r),n=dp(t,e),s=yp(t,e);u0(i.options);let o;try{o=Oa.spawn(i.file,i.args,i.options)}catch(d){let g=new Oa.ChildProcess,y=Promise.reject(cs({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return fp(g,y)}let a=y0(o),l=c0(o,i.options,a),c=h0(o,i.options,l),u={isCanceled:!1};o.kill=a0.bind(null,o.kill.bind(o)),o.cancel=l0.bind(null,o,u);let f=o0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await p0(o,i.options,c),T=an(i.options,x),O=an(i.options,k),I=an(i.options,C);if(d||g!==0||y!==null){let w=cs({error:d,exitCode:g,signal:y,stdout:T,stderr:O,all:I,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return w;throw w}return{command:n,escapedCommand:s,exitCode:0,stdout:T,stderr:O,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return f0(o,i.options.input),o.all=d0(o,i.options),fp(o,f)};ai.exports=us;ai.exports.sync=(t,e,r)=>{let i=gp(t,e,r),n=dp(t,e),s=yp(t,e);m0(i.options);let o;try{o=Oa.spawnSync(i.file,i.args,i.options)}catch(c){throw cs({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=an(i.options,o.stdout,o.error),l=an(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=cs({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ai.exports.command=(t,e)=>{let[r,...i]=mp(t);return us(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=mp(t);return us.sync(r,i,e)};ai.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=pp.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var wd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function jR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=jR;function HR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=HR});var Sd=H(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.isEnoentCodeError=void 0;function qR(t){return t.code==="ENOENT"}gs.isEnoentCodeError=qR});var Ed=H(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createDirentFromStats=void 0;var $a=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 UR(t,e){return new $a(t,e)}_s.createDirentFromStats=UR});var vd=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.removeLeadingDotSegment=bt.escape=bt.makeAbsolute=bt.unixify=void 0;var $R=require("path"),GR=2,zR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function WR(t){return t.replace(/\\/g,"/")}bt.unixify=WR;function YR(t,e){return $R.resolve(t,e)}bt.makeAbsolute=YR;function KR(t){return t.replace(zR,"\\$2")}bt.escape=KR;function VR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(GR)}return t}bt.removeLeadingDotSegment=VR});var xd=H((MI,Rd)=>{Rd.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 Td=H((FI,Od)=>{var ZR=xd(),Ad={"{":"}","(":")","[":"]"},XR=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=Ad[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},JR=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=Ad[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Od.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ZR(e))return!0;var i=XR;return r&&r.strict===!1&&(i=JR),i(e)}});var Cd=H((BI,kd)=>{"use strict";var QR=Td(),ex=require("path").posix.dirname,tx=require("os").platform()==="win32",Ga="/",rx=/\\/g,ix=/[\{\[].*[\}\]]$/,nx=/(^|[^\\])([\{\[]|\([^\)]+$)/,sx=/\\([\!\*\?\|\[\]\(\)\{\}])/g;kd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&tx&&e.indexOf(Ga)<0&&(e=e.replace(rx,Ga)),ix.test(e)&&(e+=Ga),e+="a";do e=ex(e);while(QR(e)||nx.test(e));return e.replace(sx,"$1")}});var bs=H(nt=>{"use strict";nt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;nt.find=(t,e)=>t.nodes.find(r=>r.type===e);nt.exceedsLimit=(t,e,r=1,i)=>i===!1||!nt.isInteger(t)||!nt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;nt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};nt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);nt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;nt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;nt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);nt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ws=H((HI,Pd)=>{"use strict";var Ld=bs();Pd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Ld.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Ld.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 Nd=H((qI,Id)=>{"use strict";Id.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var $d=H((UI,Ud)=>{"use strict";var Dd=Nd(),Pr=(t,e,r)=>{if(Dd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Dd(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=qd(t)||qd(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=Md(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Md(c,u,f,i)),f.negatives=g,f.positives=d,f.result=ox(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 ox(t,e,r){let i=za(t,e,"-",!1,r)||[],n=za(e,t,"",!1,r)||[],s=za(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function ax(t,e){let r=1,i=1,n=Bd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Bd(t,r);for(n=jd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=jd(e+1,i)-1;return s=[...s],s.sort(ux),s}function lx(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=cx(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+=hx(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Md(t,e,r,i){let n=ax(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=lx(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+Hd(a.count),o=c+1;continue}r.isPadded&&(h=fx(c,r,i)),u.string=h+u.pattern+Hd(u.count),s.push(u),o=c+1,a=u}return s}function za(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Fd(e,"string",a)&&s.push(r+a),i&&Fd(e,"string",a)&&s.push(r+a)}return s}function cx(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function ux(t,e){return t>e?1:e>t?-1:0}function Fd(t,e,r){return t.some(i=>i[e]===r)}function Bd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function jd(t,e){return t-t%Math.pow(10,e)}function Hd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function hx(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function qd(t){return/^-?(0+)\d/.test(t)}function fx(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={};Ud.exports=Pr});var Ka=H(($I,Xd)=>{"use strict";var px=require("util"),Wd=$d(),Gd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),dx=t=>e=>t===!0?Number(e):String(e),Wa=t=>typeof t=="number"||typeof t=="string"&&t!=="",pn=t=>Number.isInteger(+t),Ya=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},mx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,yx=(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},zd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},gx=(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},Yd=(t,e,r,i)=>{if(r)return Wd(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Kd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Wd(t,e,r)},Vd=(...t)=>new RangeError("Invalid range arguments: "+px.inspect(...t)),Zd=(t,e,r)=>{if(r.strictRanges===!0)throw Vd([t,e]);return[]},_x=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},bx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Vd([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=Ya(a)||Ya(l)||Ya(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&mx(t,e,i)===!1,d=i.transform||dx(f);if(i.toRegex&&r===1)return Yd(zd(t,h),zd(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(yx(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?gx(g,i):Kd(_,null,{wrap:!1,...i}):_},wx=(t,e,r=1,i={})=>{if(!pn(t)&&t.length>1||!pn(e)&&e.length>1)return Zd(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 Yd(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?Kd(u,null,{wrap:!1,options:i}):u},Ss=(t,e,r,i={})=>{if(e==null&&Wa(t))return[t];if(!Wa(t)||!Wa(e))return Zd(t,e,i);if(typeof r=="function")return Ss(t,e,1,{transform:r});if(Gd(r))return Ss(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,pn(r)?pn(t)&&pn(e)?bx(t,e,r,n):wx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Gd(r)?_x(r,n):Ss(t,e,1,r)};Xd.exports=Ss});var em=H((GI,Qd)=>{"use strict";var Sx=Ka(),Jd=bs(),Ex=(t,e={})=>{let r=(i,n={})=>{let s=Jd.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=Jd.reduce(i.nodes),h=Sx(...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)};Qd.exports=Ex});var im=H((zI,rm)=>{"use strict";var vx=Ka(),tm=ws(),di=bs(),Ir=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?di.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ir(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ir(n,s,r):n+s);return di.flatten(i)},Rx=(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(),tm(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=vx(...h,e);f.length===0&&(f=tm(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))};rm.exports=Rx});var sm=H((WI,nm)=>{"use strict";nm.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((YI,cm)=>{"use strict";var xx=ws(),{MAX_LENGTH:om,CHAR_BACKSLASH:Va,CHAR_BACKTICK:Ax,CHAR_COMMA:Ox,CHAR_DOT:Tx,CHAR_LEFT_PARENTHESES:kx,CHAR_RIGHT_PARENTHESES:Cx,CHAR_LEFT_CURLY_BRACE:Lx,CHAR_RIGHT_CURLY_BRACE:Px,CHAR_LEFT_SQUARE_BRACKET:am,CHAR_RIGHT_SQUARE_BRACKET:lm,CHAR_DOUBLE_QUOTE:Ix,CHAR_SINGLE_QUOTE:Nx,CHAR_NO_BREAK_SPACE:Dx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mx}=sm(),Fx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(om,r.maxLength):om;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===Mx||f===Dx)){if(f===Va){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===lm){y({type:"text",value:"\\"+f});continue}if(f===am){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===am){l++;continue}if(x===Va){f+=g();continue}if(x===lm&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===kx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Cx){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===Ix||f===Nx||f===Ax){let _=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=g());){if(x===Va){f+=x+g();continue}if(x===_){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===Lx){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===Px){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===Ox&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:xx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Tx&&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};cm.exports=Fx});var pm=H((KI,fm)=>{"use strict";var hm=ws(),Bx=em(),jx=im(),Hx=um(),Xe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Xe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Xe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.parse=(t,e={})=>Hx(t,e);Xe.stringify=(t,e={})=>hm(typeof t=="string"?Xe.parse(t,e):t,e);Xe.compile=(t,e={})=>(typeof t=="string"&&(t=Xe.parse(t,e)),Bx(t,e));Xe.expand=(t,e={})=>{typeof t=="string"&&(t=Xe.parse(t,e));let r=jx(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Xe.compile(t,e):Xe.expand(t,e);fm.exports=Xe});var dn=H((VI,_m)=>{"use strict";var qx=require("path"),wt="\\\\/",dm=`[^${wt}]`,Dt="\\.",Ux="\\+",$x="\\?",Es="\\/",Gx="(?=.)",mm="[^/]",Za=`(?:${Es}|$)`,ym=`(?:^|${Es})`,Xa=`${Dt}{1,2}${Za}`,zx=`(?!${Dt})`,Wx=`(?!${ym}${Xa})`,Yx=`(?!${Dt}{0,1}${Za})`,Kx=`(?!${Xa})`,Vx=`[^.${Es}]`,Zx=`${mm}*?`,gm={DOT_LITERAL:Dt,PLUS_LITERAL:Ux,QMARK_LITERAL:$x,SLASH_LITERAL:Es,ONE_CHAR:Gx,QMARK:mm,END_ANCHOR:Za,DOTS_SLASH:Xa,NO_DOT:zx,NO_DOTS:Wx,NO_DOT_SLASH:Yx,NO_DOTS_SLASH:Kx,QMARK_NO_DOT:Vx,STAR:Zx,START_ANCHOR:ym},Xx={...gm,SLASH_LITERAL:`[${wt}]`,QMARK:dm,STAR:`${dm}*?`,DOTS_SLASH:`${Dt}{1,2}(?:[${wt}]|$)`,NO_DOT:`(?!${Dt})`,NO_DOTS:`(?!(?:^|[${wt}])${Dt}{1,2}(?:[${wt}]|$))`,NO_DOT_SLASH:`(?!${Dt}{0,1}(?:[${wt}]|$))`,NO_DOTS_SLASH:`(?!${Dt}{1,2}(?:[${wt}]|$))`,QMARK_NO_DOT:`[^.${wt}]`,START_ANCHOR:`(?:^|[${wt}])`,END_ANCHOR:`(?:[${wt}]|$)`},Jx={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"};_m.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Jx,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:qx.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?Xx:gm}}});var mn=H($e=>{"use strict";var Qx=require("path"),eA=process.platform==="win32",{REGEX_BACKSLASH:tA,REGEX_REMOVE_BACKSLASH:rA,REGEX_SPECIAL_CHARS:iA,REGEX_SPECIAL_CHARS_GLOBAL:nA}=dn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>iA.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(nA,"\\$1");$e.toPosixSlashes=t=>t.replace(tA,"/");$e.removeBackslashes=t=>t.replace(rA,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:eA===!0||Qx.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 Am=H((XI,xm)=>{"use strict";var bm=mn(),{CHAR_ASTERISK:Ja,CHAR_AT:sA,CHAR_BACKWARD_SLASH:yn,CHAR_COMMA:oA,CHAR_DOT:Qa,CHAR_EXCLAMATION_MARK:el,CHAR_FORWARD_SLASH:Rm,CHAR_LEFT_CURLY_BRACE:tl,CHAR_LEFT_PARENTHESES:rl,CHAR_LEFT_SQUARE_BRACKET:aA,CHAR_PLUS:lA,CHAR_QUESTION_MARK:wm,CHAR_RIGHT_CURLY_BRACE:cA,CHAR_RIGHT_PARENTHESES:Sm,CHAR_RIGHT_SQUARE_BRACKET:uA}=dn(),Em=t=>t===Rm||t===yn,vm=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hA=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,d=!1,g=!1,y=!1,_=!1,x=!1,k=!1,C=!1,T=!1,O=!1,I=0,w,v,F={value:"",depth:0,isGlob:!1},q=()=>c>=i,P=()=>l.charCodeAt(c+1),$=()=>(w=v,l.charCodeAt(++c));for(;c<i;){v=$();let L;if(v===yn){k=F.backslashes=!0,v=$(),v===tl&&(x=!0);continue}if(x===!0||v===tl){for(I++;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,$();continue}if(v===tl){I++;continue}if(x!==!0&&v===Qa&&(v=$())===Qa){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===oA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===cA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===Rm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(w===Qa&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===lA||v===sA||v===Ja||v===wm||v===el)===!0&&P()===rl){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===el&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,v=$();continue}if(v===Sm){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Ja){if(w===Ja&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===wm){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===aA){for(;q()!==!0&&(L=$());){if(L===yn){k=F.backslashes=!0,$();continue}if(L===uA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===el&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===rl){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===rl){k=F.backslashes=!0,v=$();continue}if(v===Sm){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&&Em(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(N&&(N=bm.removeBackslashes(N)),K&&k===!0&&(K=bm.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,Em(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,vm(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,vm(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};xm.exports=hA});var km=H((JI,Tm)=>{"use strict";var vs=dn(),Je=mn(),{MAX_LENGTH:Rs,POSIX_REGEX_SOURCE:fA,REGEX_NON_SPECIAL_CHARS:pA,REGEX_SPECIAL_CHARS_BACKREF:dA,REPLACEMENTS:Om}=vs,mA=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Je.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,il=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Om[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Je.isWindows(e),c=vs.globChars(l),u=vs.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:_,NO_DOT_SLASH:x,NO_DOTS_SLASH:k,QMARK:C,QMARK_NO_DOT:T,STAR:O,START_ANCHOR:I}=c,w=U=>`(${a}(?:(?!${I}${U.dot?y:h}).)*?)`,v=r.dot?"":_,F=r.dot?C:T,q=r.bash===!0?w(r):O;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Je.removePrefix(t,P),n=t.length;let $=[],K=[],V=[],N=s,A,L=()=>P.index===n-1,j=P.peek=(U=1)=>t[P.index+U],z=P.advance=()=>t[++P.index]||"",D=()=>t.slice(P.index+1),p=(U="",J=0)=>{P.consumed+=U,P.index+=J},m=U=>{P.output+=U.output!=null?U.output:U.value,p(U.value)},b=()=>{let U=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),P.start++,U++;return U%2===0?!1:(P.negated=!0,P.start++,!0)},R=U=>{P[U]++,V.push(U)},E=U=>{P[U]--,V.pop()},M=U=>{if(N.type==="globstar"){let J=P.braces>0&&(U.type==="comma"||U.type==="brace"),G=U.extglob===!0||$.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!J&&!G&&(P.output=P.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=q,P.output+=N.output)}if($.length&&U.type!=="paren"&&($[$.length-1].inner+=U.value),(U.value||U.output)&&m(U),N&&N.type==="text"&&U.type==="text"){N.value+=U.value,N.output=(N.output||"")+U.value;return}U.prev=N,o.push(U),N=U},B=(U,J)=>{let G={...u[J],conditions:1,inner:""};G.prev=N,G.parens=P.parens,G.output=P.output;let re=(r.capture?"(":"")+G.open;R("parens"),M({type:U,value:J,output:P.output?"":g}),M({type:"paren",extglob:!0,value:z(),output:re}),$.push(G)},Z=U=>{let J=U.close+(r.capture?")":""),G;if(U.type==="negate"){let re=q;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(re=w(r)),(re!==q||L()||/^\)+$/.test(D()))&&(J=U.close=`)$))${re}`),U.inner.includes("*")&&(G=D())&&/^\.[^\\/.]+$/.test(G)){let ce=il(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(dA,(G,re,ce,Se,_e,S)=>Se==="\\"?(U=!0,G):Se==="?"?re?re+Se+(_e?C.repeat(_e.length):""):S===0?F+(_e?C.repeat(_e.length):""):C.repeat(ce.length):Se==="."?h.repeat(ce.length):Se==="*"?re?re+Se+(_e?q:""):q:re?G:`\\${G}`);return U===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),J===t&&r.contains===!0?(P.output=t,P):(P.output=Je.wrapOutput(J,P,e),P)}for(;!L();){if(A=z(),A==="\0")continue;if(A==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){A+="\\",M({type:"text",value:A});continue}let re=/^\\+/.exec(D()),ce=0;if(re&&re[0].length>2&&(ce=re[0].length,P.index+=ce,ce%2!==0&&(A+="\\")),r.unescape===!0?A=z():A+=z(),P.brackets===0){M({type:"text",value:A});continue}}if(P.brackets>0&&(A!=="]"||N.value==="["||N.value==="[^")){if(r.posix!==!1&&A===":"){let G=N.value.slice(1);if(G.includes("[")&&(N.posix=!0,G.includes(":"))){let re=N.value.lastIndexOf("["),ce=N.value.slice(0,re),Se=N.value.slice(re+2),_e=fA[Se];if(_e){N.value=ce+_e,P.backtrack=!0,z(),!s.output&&o.indexOf(N)===1&&(s.output=g);continue}}}(A==="["&&j()!==":"||A==="-"&&j()==="]")&&(A=`\\${A}`),A==="]"&&(N.value==="["||N.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&N.value==="["&&(A="^"),N.value+=A,m({value:A});continue}if(P.quotes===1&&A!=='"'){A=Je.escapeRegex(A),N.value+=A,m({value:A});continue}if(A==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:A});continue}if(A==="("){R("parens"),M({type:"paren",value:A});continue}if(A===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=$[$.length-1];if(G&&P.parens===G.parens+1){Z($.pop());continue}M({type:"paren",value:A,output:P.parens?")":"\\)"}),E("parens");continue}if(A==="["){if(r.nobracket===!0||!D().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));A=`\\${A}`}else R("brackets");M({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){M({type:"text",value:A,output:`\\${A}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));M({type:"text",value:A,output:`\\${A}`});continue}E("brackets");let G=N.value.slice(1);if(N.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(A=`/${A}`),N.value+=A,m({value:A}),r.literalBrackets===!1||Je.hasRegexChars(G))continue;let re=Je.escapeRegex(N.value);if(P.output=P.output.slice(0,-N.value.length),r.literalBrackets===!0){P.output+=re,N.value=re;continue}N.value=`(${a}${re}|${N.value})`,P.output+=N.value;continue}if(A==="{"&&r.nobrace!==!0){R("braces");let G={type:"brace",value:A,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};K.push(G),M(G);continue}if(A==="}"){let G=K[K.length-1];if(r.nobrace===!0||!G){M({type:"text",value:A,output:A});continue}let re=")";if(G.dots===!0){let ce=o.slice(),Se=[];for(let _e=ce.length-1;_e>=0&&(o.pop(),ce[_e].type!=="brace");_e--)ce[_e].type!=="dots"&&Se.unshift(ce[_e].value);re=mA(Se,r),P.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=P.output.slice(0,G.outputIndex),Se=P.tokens.slice(G.tokensIndex);G.value=G.output="\\{",A=re="\\}",P.output=ce;for(let _e of Se)P.output+=_e.output||_e.value}M({type:"brace",value:A,output:re}),E("braces"),K.pop();continue}if(A==="|"){$.length>0&&$[$.length-1].conditions++,M({type:"text",value:A});continue}if(A===","){let G=A,re=K[K.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,G="|"),M({type:"comma",value:A,output:G});continue}if(A==="/"){if(N.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",o.pop(),N=s;continue}M({type:"slash",value:A,output:d});continue}if(A==="."){if(P.braces>0&&N.type==="dot"){N.value==="."&&(N.output=h);let G=K[K.length-1];N.type="dots",N.output+=A,N.value+=A,G.dots=!0;continue}if(P.braces+P.parens===0&&N.type!=="bos"&&N.type!=="slash"){M({type:"text",value:A,output:h});continue}M({type:"dot",value:A,output:h});continue}if(A==="?"){if(!(N&&N.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("qmark",A);continue}if(N&&N.type==="paren"){let re=j(),ce=A;if(re==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(D()))&&(ce=`\\${A}`),M({type:"text",value:A,output:ce});continue}if(r.dot!==!0&&(N.type==="slash"||N.type==="bos")){M({type:"qmark",value:A,output:T});continue}M({type:"qmark",value:A,output:C});continue}if(A==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){B("negate",A);continue}if(r.nonegate!==!0&&P.index===0){b();continue}}if(A==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("plus",A);continue}if(N&&N.value==="("||r.regex===!1){M({type:"plus",value:A,output:f});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||P.parens>0){M({type:"plus",value:A});continue}M({type:"plus",value:f});continue}if(A==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M({type:"at",extglob:!0,value:A,output:""});continue}M({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let G=pA.exec(D());G&&(A+=G[0],P.index+=G[0].length),M({type:"text",value:A});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=A,N.output=q,P.backtrack=!0,P.globstar=!0,p(A);continue}let U=D();if(r.noextglob!==!0&&/^\([^?]/.test(U)){B("star",A);continue}if(N.type==="star"){if(r.noglobstar===!0){p(A);continue}let G=N.prev,re=G.prev,ce=G.type==="slash"||G.type==="bos",Se=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!ce||U[0]&&U[0]!=="/")){M({type:"star",value:A,output:""});continue}let _e=P.braces>0&&(G.type==="comma"||G.type==="brace"),S=$.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!_e&&!S){M({type:"star",value:A,output:""});continue}for(;U.slice(0,3)==="/**";){let Y=t[P.index+4];if(Y&&Y!=="/")break;U=U.slice(3),p("/**",3)}if(G.type==="bos"&&L()){N.type="globstar",N.value+=A,N.output=w(r),P.output=N.output,P.globstar=!0,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Se&&L()){P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=w(r)+(r.strictSlashes?")":"|$)"),N.value+=A,P.globstar=!0,P.output+=G.output+N.output,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&U[0]==="/"){let Y=U[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=`${w(r)}${d}|${d}${Y})`,N.value+=A,P.output+=G.output+N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&U[0]==="/"){N.type="globstar",N.value+=A,N.output=`(?:^|${d}|${w(r)}${d})`,P.output=N.output,P.globstar=!0,p(A+z()),M({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-N.output.length),N.type="globstar",N.output=w(r),N.value+=A,P.output+=N.output,P.globstar=!0,p(A);continue}let J={type:"star",value:A,output:q};if(r.bash===!0){J.output=".*?",(N.type==="bos"||N.type==="slash")&&(J.output=v+J.output),M(J);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&r.regex===!0){J.output=A,M(J);continue}(P.index===P.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(P.output+=x,N.output+=x):r.dot===!0?(P.output+=k,N.output+=k):(P.output+=v,N.output+=v),j()!=="*"&&(P.output+=g,N.output+=g)),M(J)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));P.output=Je.escapeLast(P.output,"["),E("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));P.output=Je.escapeLast(P.output,"("),E("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));P.output=Je.escapeLast(P.output,"{"),E("braces")}if(r.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${d}?`}),P.backtrack===!0){P.output="";for(let U of P.tokens)P.output+=U.output!=null?U.output:U.value,U.suffix&&(P.output+=U.suffix)}return P};il.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Om[t]||t;let s=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=vs.globChars(s),y=r.dot?h:u,_=r.dot?f:u,x=r.capture?"":"?:",k={negated:!1,prefix:""},C=r.bash===!0?".*?":d;r.capture&&(C=`(${C})`);let T=v=>v.noglobstar===!0?C:`(${x}(?:(?!${g}${v.dot?c:o}).)*?)`,O=v=>{switch(v){case"*":return`${y}${l}${C}`;case".*":return`${o}${l}${C}`;case"*.*":return`${y}${C}${o}${l}${C}`;case"*/*":return`${y}${C}${a}${l}${_}${C}`;case"**":return y+T(r);case"**/*":return`(?:${y}${T(r)}${a})?${_}${l}${C}`;case"**/*.*":return`(?:${y}${T(r)}${a})?${_}${C}${o}${l}${C}`;case"**/.*":return`(?:${y}${T(r)}${a})?${o}${l}${C}`;default:{let F=/^(.*?)\.(\w+)$/.exec(v);if(!F)return;let q=O(F[1]);return q?q+o+F[2]:void 0}}},I=Je.removePrefix(t,k),w=O(I);return w&&r.strictSlashes!==!0&&(w+=`${a}?`),w};Tm.exports=il});var Lm=H((QI,Cm)=>{"use strict";var yA=require("path"),gA=Am(),nl=km(),sl=mn(),_A=dn(),bA=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=bA(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=sl.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?sl.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=sl.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(yA.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)):nl(t,{...e,fastpaths:!1});be.scan=(t,e)=>gA(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=nl.fastpaths(t,e)),n.output||(n=nl(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=_A;Cm.exports=be});var Im=H((eN,Pm)=>{"use strict";Pm.exports=Lm()});var Bm=H((tN,Fm)=>{"use strict";var Dm=require("util"),Mm=pm(),St=Im(),ol=mn(),Nm=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=St(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let g=h(d,!0);(f?!g.isMatch:g.isMatch)&&(f?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};ye.match=ye;ye.matcher=(t,e)=>St(t,e);ye.isMatch=(t,e,r)=>St(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Dm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Nm(t)||Nm(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(!ol.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=St(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Dm.inspect(t)}"`);return[].concat(e).every(i=>St(i,r)(t))};ye.capture=(t,e,r)=>{let i=ol.isWindows(r),s=St.makeRe(String(t),{...r,capture:!0}).exec(i?ol.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>St.makeRe(...t);ye.scan=(...t)=>St.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Mm(String(i),e))r.push(St.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Mm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Fm.exports=ye});var Wm=H(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.matchAny=ie.convertPatternsToRe=ie.makeRe=ie.getPatternParts=ie.expandBraceExpansion=ie.expandPatternsWithBraceExpansion=ie.isAffectDepthOfReadingPattern=ie.endsWithSlashGlobStar=ie.hasGlobStar=ie.getBaseDirectory=ie.isPatternRelatedToParentDirectory=ie.getPatternsOutsideCurrentDirectory=ie.getPatternsInsideCurrentDirectory=ie.getPositivePatterns=ie.getNegativePatterns=ie.isPositivePattern=ie.isNegativePattern=ie.convertToNegativePattern=ie.convertToPositivePattern=ie.isDynamicPattern=ie.isStaticPattern=void 0;var wA=require("path"),SA=Cd(),al=Bm(),jm="**",EA="\\",vA=/[*?]|^!/,RA=/\[[^[]*]/,xA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,AA=/[!*+?@]\([^(]*\)/,OA=/,|\.\./;function Hm(t,e={}){return!qm(t,e)}ie.isStaticPattern=Hm;function qm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(EA)||vA.test(t)||RA.test(t)||xA.test(t)||e.extglob!==!1&&AA.test(t)||e.braceExpansion!==!1&&TA(t))}ie.isDynamicPattern=qm;function TA(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 OA.test(i)}function kA(t){return xs(t)?t.slice(1):t}ie.convertToPositivePattern=kA;function CA(t){return"!"+t}ie.convertToNegativePattern=CA;function xs(t){return t.startsWith("!")&&t[1]!=="("}ie.isNegativePattern=xs;function Um(t){return!xs(t)}ie.isPositivePattern=Um;function LA(t){return t.filter(xs)}ie.getNegativePatterns=LA;function PA(t){return t.filter(Um)}ie.getPositivePatterns=PA;function IA(t){return t.filter(e=>!ll(e))}ie.getPatternsInsideCurrentDirectory=IA;function NA(t){return t.filter(ll)}ie.getPatternsOutsideCurrentDirectory=NA;function ll(t){return t.startsWith("..")||t.startsWith("./..")}ie.isPatternRelatedToParentDirectory=ll;function DA(t){return SA(t,{flipBackslashes:!1})}ie.getBaseDirectory=DA;function MA(t){return t.includes(jm)}ie.hasGlobStar=MA;function $m(t){return t.endsWith("/"+jm)}ie.endsWithSlashGlobStar=$m;function FA(t){let e=wA.basename(t);return $m(t)||Hm(e)}ie.isAffectDepthOfReadingPattern=FA;function BA(t){return t.reduce((e,r)=>e.concat(Gm(r)),[])}ie.expandPatternsWithBraceExpansion=BA;function Gm(t){return al.braces(t,{expand:!0,nodupes:!0})}ie.expandBraceExpansion=Gm;function jA(t,e){let{parts:r}=al.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ie.getPatternParts=jA;function zm(t,e){return al.makeRe(t,e)}ie.makeRe=zm;function HA(t,e){return t.map(r=>zm(r,e))}ie.convertPatternsToRe=HA;function qA(t,e){return e.some(r=>r.test(t))}ie.matchAny=qA});var Zm=H((iN,Vm)=>{"use strict";var UA=require("stream"),Ym=UA.PassThrough,$A=Array.prototype.slice;Vm.exports=GA;function GA(){let t=[],e=$A.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=Ym(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Km(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 Km(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Km(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Ym(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Jm=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.merge=void 0;var zA=Zm();function WA(t){let e=zA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Xm(t)),e.once("end",()=>Xm(t)),e}As.merge=WA;function Xm(t){t.forEach(e=>e.emit("close"))}});var Qm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function YA(t){return typeof t=="string"}yi.isString=YA;function KA(t){return t===""}yi.isEmpty=KA});var Mt=H(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.string=Le.stream=Le.pattern=Le.path=Le.fs=Le.errno=Le.array=void 0;var VA=wd();Le.array=VA;var ZA=Sd();Le.errno=ZA;var XA=Ed();Le.fs=XA;var JA=vd();Le.path=JA;var QA=Wm();Le.pattern=QA;var eO=Jm();Le.stream=eO;var tO=Qm();Le.string=tO});var ry=H(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.convertPatternGroupToTask=Pe.convertPatternGroupsToTasks=Pe.groupPatternsByBaseDirectory=Pe.getNegativePatternsAsPositive=Pe.getPositivePatterns=Pe.convertPatternsToTasks=Pe.generate=void 0;var Ft=Mt();function rO(t,e){let r=ey(t),i=ty(t,e.ignore),n=r.filter(l=>Ft.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ft.pattern.isDynamicPattern(l,e)),o=cl(n,i,!1),a=cl(s,i,!0);return o.concat(a)}Pe.generate=rO;function cl(t,e,r){let i=[],n=Ft.pattern.getPatternsOutsideCurrentDirectory(t),s=Ft.pattern.getPatternsInsideCurrentDirectory(t),o=ul(n),a=ul(s);return i.push(...hl(o,e,r)),"."in a?i.push(fl(".",s,e,r)):i.push(...hl(a,e,r)),i}Pe.convertPatternsToTasks=cl;function ey(t){return Ft.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=ey;function ty(t,e){return Ft.pattern.getNegativePatterns(t).concat(e).map(Ft.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=ty;function ul(t){let e={};return t.reduce((r,i)=>{let n=Ft.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Pe.groupPatternsByBaseDirectory=ul;function hl(t,e,r){return Object.keys(t).map(i=>fl(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=hl;function fl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ft.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=fl});var ny=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var iO=/(?!^)\/{2,}/g;function nO(t){return t.map(e=>iy(e))}gi.transform=nO;function iy(t){return t.replace(iO,"/")}gi.removeDuplicateSlashes=iy});var oy=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.read=void 0;function sO(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){sy(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){pl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){sy(r,s);return}pl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),pl(r,o)})})}Os.read=sO;function sy(t,e){t(e)}function pl(t,e){t(null,e)}});var ay=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.read=void 0;function oO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ts.read=oO});var ly=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.createFileSystemAdapter=nr.FILE_SYSTEM_ADAPTER=void 0;var ks=require("fs");nr.FILE_SYSTEM_ADAPTER={lstat:ks.lstat,stat:ks.stat,lstatSync:ks.lstatSync,statSync:ks.statSync};function aO(t){return t===void 0?nr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nr.FILE_SYSTEM_ADAPTER),t)}nr.createFileSystemAdapter=aO});var cy=H(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var lO=ly(),dl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=lO.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}};ml.default=dl});var Nr=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var uy=oy(),cO=ay(),yl=cy();sr.Settings=yl.default;function uO(t,e,r){if(typeof e=="function"){uy.read(t,gl(),e);return}uy.read(t,gl(e),r)}sr.stat=uO;function hO(t,e){let r=gl(e);return cO.read(t,r)}sr.statSync=hO;function gl(t={}){return t instanceof yl.default?t:new yl.default(t)}});var py=H((dN,fy)=>{var hy;fy.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(hy||(hy=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var my=H((mN,dy)=>{dy.exports=pO;var fO=py();function pO(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?fO(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 _l=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cs=process.versions.node.split(".");if(Cs[0]===void 0||Cs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var yy=Number.parseInt(Cs[0],10),dO=Number.parseInt(Cs[1],10),gy=10,mO=10,yO=yy>gy,gO=yy===gy&&dO>=mO;Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=yO||gO});var _y=H(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createDirentFromStats=void 0;var bl=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 _O(t,e){return new bl(t,e)}Ps.createDirentFromStats=_O});var wl=H(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.fs=void 0;var bO=_y();Is.fs=bO});var Sl=H(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.joinPathSegments=void 0;function wO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ns.joinPathSegments=wO});var Ry=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var SO=Nr(),by=my(),EO=_l(),wy=wl(),Sy=Sl();function vO(t,e,r){if(!e.stats&&EO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ey(t,e,r);return}vy(t,e,r)}or.read=vO;function Ey(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Sy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){El(r,s);return}let o=s.map(a=>RO(a,e));by(o,(a,l)=>{if(a!==null){Ds(r,a);return}El(r,l)})})}or.readdirWithFileTypes=Ey;function RO(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=wy.fs.createDirentFromStats(t.name,n),r(null,t)})}}function vy(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(o=>{let a=Sy.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{SO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:wy.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});by(s,(o,a)=>{if(o!==null){Ds(r,o);return}El(r,a)})})}or.readdir=vy;function Ds(t,e){t(e)}function El(t,e){t(null,e)}});var ky=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var xO=Nr(),AO=_l(),xy=wl(),Ay=Sl();function OO(t,e){return!e.stats&&AO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Oy(t,e):Ty(t,e)}ar.read=OO;function Oy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Ay.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=xy.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ar.readdirWithFileTypes=Oy;function Ty(t,e){return e.fs.readdirSync(t).map(i=>{let n=Ay.joinPathSegments(t,i,e.pathSegmentSeparator),s=xO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:xy.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ar.readdir=Ty});var Cy=H(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:_i.lstat,stat:_i.stat,lstatSync:_i.lstatSync,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};function TO(t){return t===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),t)}lr.createFileSystemAdapter=TO});var Ly=H(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var kO=require("path"),CO=Nr(),LO=Cy(),vl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=LO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,kO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new CO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Rl.default=vl});var Ms=H(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Settings=cr.scandirSync=cr.scandir=void 0;var Py=Ry(),PO=ky(),xl=Ly();cr.Settings=xl.default;function IO(t,e,r){if(typeof e=="function"){Py.read(t,Al(),e);return}Py.read(t,Al(e),r)}cr.scandir=IO;function NO(t,e){let r=Al(e);return PO.read(t,r)}cr.scandirSync=NO;function Al(t={}){return t instanceof xl.default?t:new xl.default(t)}});var Ny=H((xN,Iy)=>{"use strict";function DO(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}}Iy.exports=DO});var My=H((AN,Ol)=>{"use strict";var MO=Ny();function Dy(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=MO(FO),n=null,s=null,o=0,a=null,l={push:y,drain:st,saturated:st,pause:u,paused:!1,concurrency:r,running:c,resume:d,idle:g,length:h,getQueue:f,unshift:_,empty:st,kill:k,killAndDrain:C,error:T};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var O=n,I=0;O;)O=O.next,I++;return I}function f(){for(var O=n,I=[];O;)I.push(O.value),O=O.next;return I}function d(){if(l.paused){l.paused=!1;for(var O=0;O<l.concurrency;O++)o++,x()}}function g(){return o===0&&l.length()===0}function y(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,w.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=w,s=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function _(O,I){var w=i.get();w.context=t,w.release=x,w.value=O,w.callback=I||st,o===l.concurrency||l.paused?n?(w.next=n,n=w):(n=w,s=w,l.saturated()):(o++,e.call(t,w.value,w.worked))}function x(O){O&&i.release(O);var I=n;I?l.paused?o--:(s===n&&(s=null),n=I.next,I.next=null,e.call(t,I.value,I.worked),s===null&&l.empty()):--o===0&&l.drain()}function k(){n=null,s=null,l.drain=st}function C(){n=null,s=null,l.drain(),l.drain=st}function T(O){a=O}}function st(){}function FO(){this.value=null,this.callback=st,this.next=null,this.release=st,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=st,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function BO(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=Dy(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,d){s(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function l(u){var h=new Promise(function(f,d){o(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Ol.exports=Dy;Ol.exports.promise=BO});var Fs=H(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.joinPathSegments=Et.replacePathSegmentSeparator=Et.isAppliedFilter=Et.isFatalError=void 0;function jO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Et.isFatalError=jO;function HO(t,e){return t===null||t(e)}Et.isAppliedFilter=HO;function qO(t,e){return t.split(/[/\\]/).join(e)}Et.replacePathSegmentSeparator=qO;function UO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Et.joinPathSegments=UO});var Cl=H(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var $O=Fs(),Tl=class{constructor(e,r){this._root=e,this._settings=r,this._root=$O.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};kl.default=Tl});var Il=H(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var GO=require("events"),zO=Ms(),WO=My(),Bs=Fs(),YO=Cl(),Ll=class extends YO.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zO.scandir,this._emitter=new GO.EventEmitter,this._queue=WO(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Bs.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Bs.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bs.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bs.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Pl.default=Ll});var Fy=H(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var KO=Il(),Nl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new KO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{VO(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZO(e,this._storage)}),this._reader.read()}};Dl.default=Nl;function VO(t,e){t(e)}function ZO(t,e){t(null,e)}});var By=H(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var XO=require("stream"),JO=Il(),Ml=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JO.default(this._root,this._settings),this._stream=new XO.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}};Fl.default=Ml});var jy=H(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var QO=Ms(),js=Fs(),eT=Cl(),Bl=class extends eT.default{constructor(){super(...arguments),this._scandir=QO.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(js.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=js.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),js.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&js.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};jl.default=Bl});var Hy=H(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var tT=jy(),Hl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tT.default(this._root,this._settings)}read(){return this._reader.read()}};ql.default=Hl});var qy=H($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var rT=require("path"),iT=Ms(),Ul=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,rT.sep),this.fsScandirSettings=new iT.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}};$l.default=Ul});var qs=H(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Settings=vt.walkStream=vt.walkSync=vt.walk=void 0;var Uy=Fy(),nT=By(),sT=Hy(),Gl=qy();vt.Settings=Gl.default;function oT(t,e,r){if(typeof e=="function"){new Uy.default(t,Hs()).read(e);return}new Uy.default(t,Hs(e)).read(r)}vt.walk=oT;function aT(t,e){let r=Hs(e);return new sT.default(t,r).read()}vt.walkSync=aT;function lT(t,e){let r=Hs(e);return new nT.default(t,r).read()}vt.walkStream=lT;function Hs(t={}){return t instanceof Gl.default?t:new Gl.default(t)}});var Us=H(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var cT=require("path"),uT=Nr(),$y=Mt(),zl=class{constructor(e){this._settings=e,this._fsStatSettings=new uT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return cT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:$y.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!$y.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Wl.default=zl});var Vl=H(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var hT=require("stream"),fT=Nr(),pT=qs(),dT=Us(),Yl=class extends dT.default{constructor(){super(...arguments),this._walkStream=pT.walkStream,this._stat=fT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hT.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))})}};Kl.default=Yl});var Gy=H(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var mT=qs(),yT=Us(),gT=Vl(),Zl=class extends yT.default{constructor(){super(...arguments),this._walkAsync=mT.walk,this._readerStream=new gT.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))})}};Xl.default=Zl});var zy=H(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var bi=Mt(),Jl=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))}};Ql.default=Jl});var Wy=H(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var _T=zy(),ec=class extends _T.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}};tc.default=ec});var Yy=H(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var $s=Mt(),bT=Wy(),rc=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 bT.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($s.pattern.isAffectDepthOfReadingPattern);return $s.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$s.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!$s.pattern.matchAny(e,r)}};ic.default=rc});var Ky=H(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Dr=Mt(),nc=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}};sc.default=nc});var Vy=H(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var wT=Mt(),oc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return wT.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ac.default=oc});var Xy=H(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var Zy=Mt(),lc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Zy.path.makeAbsolute(this._settings.cwd,r),r=Zy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};cc.default=lc});var Gs=H(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var ST=require("path"),ET=Yy(),vT=Ky(),RT=Vy(),xT=Xy(),uc=class{constructor(e){this._settings=e,this.errorFilter=new RT.default(this._settings),this.entryFilter=new vT.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ET.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new xT.default(this._settings)}_getRootDirectory(e){return ST.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}}};hc.default=uc});var Jy=H(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var AT=Gy(),OT=Gs(),fc=class extends OT.default{constructor(){super(...arguments),this._reader=new AT.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)}};pc.default=fc});var Qy=H(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var TT=require("stream"),kT=Vl(),CT=Gs(),dc=class extends CT.default{constructor(){super(...arguments),this._reader=new kT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new TT.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)}};mc.default=dc});var eg=H(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var LT=Nr(),PT=qs(),IT=Us(),yc=class extends IT.default{constructor(){super(...arguments),this._walkSync=PT.walkSync,this._statSync=LT.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)}};gc.default=yc});var tg=H(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var NT=eg(),DT=Gs(),_c=class extends DT.default{constructor(){super(...arguments),this._reader=new NT.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)}};bc.default=_c});var rg=H(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wi=require("fs"),MT=require("os"),FT=Math.max(MT.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 wc=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,FT),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=wc});var zs=H((XN,sg)=>{"use strict";var ig=ry(),ng=ny(),BT=Jy(),jT=Qy(),HT=tg(),Sc=rg(),Mr=Mt();async function Ec(t,e){Ei(t);let r=vc(t,BT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=vc(o,HT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=vc(o,jT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=ng.transform([].concat(o)),c=new Sc.default(a);return ig.generate(l,c)}t.generateTasks=i;function n(o,a){Ei(o);let l=new Sc.default(a);return Mr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Ei(o),Mr.path.escape(o)}t.escapePath=s})(Ec||(Ec={}));function vc(t,e,r){let i=ng.transform([].concat(t)),n=new Sc.default(r),s=ig.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")}sg.exports=Ec});var Hg=H((wM,Ht)=>{function Fc(t){return Ht.exports=Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports,Fc(t)}Ht.exports=Fc,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports});var $g=H((SM,qt)=>{var qg=Hg().default;function Ug(){"use strict";qt.exports=Ug=function(){return e},qt.exports.__esModule=!0,qt.exports.default=qt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(A,L,j){A[L]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(A,L,j){return Object.defineProperty(A,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),A[L]}try{c({},"")}catch{c=function(j,z,D){return j[z]=D}}function u(A,L,j,z){var D=L&&L.prototype instanceof x?L:x,p=Object.create(D.prototype),m=new V(z||[]);return n(p,"_invoke",{value:q(A,j,m)}),p}function h(A,L,j){try{return{type:"normal",arg:A.call(L,j)}}catch(z){return{type:"throw",arg:z}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",g="executing",y="completed",_={};function x(){}function k(){}function C(){}var T={};c(T,o,function(){return this});var O=Object.getPrototypeOf,I=O&&O(O(N([])));I&&I!==r&&i.call(I,o)&&(T=I);var w=C.prototype=x.prototype=Object.create(T);function v(A){["next","throw","return"].forEach(function(L){c(A,L,function(j){return this._invoke(L,j)})})}function F(A,L){function j(D,p,m,b){var R=h(A[D],A,p);if(R.type!=="throw"){var E=R.arg,M=E.value;return M&&qg(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(qg(A)+" is not iterable")}return k.prototype=C,n(w,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:k,configurable:!0}),k.displayName=c(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(A){var L=typeof A=="function"&&A.constructor;return!!L&&(L===k||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,C):(A.__proto__=C,c(A,l,"GeneratorFunction")),A.prototype=Object.create(w),A},e.awrap=function(A){return{__await:A}},v(F.prototype),c(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(A,L,j,z,D){D===void 0&&(D=Promise);var p=new F(u(A,L,j,z),D);return e.isGeneratorFunction(L)?p:p.next().then(function(m){return m.done?m.value:p.next()})},v(w),c(w,l,"Generator"),c(w,o,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),e.keys=function(A){var L=Object(A),j=[];for(var z in L)j.push(z);return j.reverse(),function D(){for(;j.length;){var p=j.pop();if(p in L)return D.value=p,D.done=!1,D}return D.done=!0,D}},e.values=N,V.prototype={constructor:V,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(K),!L)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var j=this;function z(E,M){return m.type="throw",m.arg=L,j.next=E,M&&(j.method="next",j.arg=t),!!M}for(var D=this.tryEntries.length-1;D>=0;--D){var p=this.tryEntries[D],m=p.completion;if(p.tryLoc==="root")return z("end");if(p.tryLoc<=this.prev){var b=i.call(p,"catchLoc"),R=i.call(p,"finallyLoc");if(b&&R){if(this.prev<p.catchLoc)return z(p.catchLoc,!0);if(this.prev<p.finallyLoc)return z(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return z(p.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return z(p.finallyLoc)}}}},abrupt:function(L,j){for(var z=this.tryEntries.length-1;z>=0;--z){var D=this.tryEntries[z];if(D.tryLoc<=this.prev&&i.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var p=D;break}}p&&(L==="break"||L==="continue")&&p.tryLoc<=j&&j<=p.finallyLoc&&(p=null);var m=p?p.completion:{};return m.type=L,m.arg=j,p?(this.method="next",this.next=p.finallyLoc,_):this.complete(m)},complete:function(L,j){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&j&&(this.next=j),_},finish:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===L)return this.complete(z.completion,z.afterLoc),K(z),_}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===L){var D=z.completion;if(D.type==="throw"){var p=D.arg;K(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(L,j,z){return this.delegate={iterator:N(L),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),_}},e}qt.exports=Ug,qt.exports.__esModule=!0,qt.exports.default=qt.exports});var zg=H((EM,Gg)=>{var Js=$g()();Gg.exports=Js;try{regeneratorRuntime=Js}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Js:Function("r","regeneratorRuntime = r")(Js)}});var ki=H((hF,o_)=>{"use strict";var s_=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"]]);o_.exports=t=>t?Object.keys(t).map(e=>[s_.has(e)?s_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var so=H((fF,m_)=>{"use strict";var a_=typeof process=="object"&&process?process:{stdout:null,stderr:null},V1=require("events"),l_=require("stream"),c_=require("string_decoder").StringDecoder,$t=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),eo=Symbol("emittingEnd"),kn=Symbol("emittedError"),to=Symbol("closed"),u_=Symbol("read"),ro=Symbol("flush"),h_=Symbol("flushChunk"),Ye=Symbol("encoding"),zt=Symbol("decoder"),io=Symbol("flowing"),Cn=Symbol("paused"),Ci=Symbol("resume"),we=Symbol("buffer"),Ot=Symbol("pipes"),Oe=Symbol("bufferLength"),Wc=Symbol("bufferPush"),Yc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),Kc=Symbol("emitData"),f_=Symbol("emitEnd"),Vc=Symbol("emitEnd2"),Wt=Symbol("async"),Ln=t=>Promise.resolve().then(t),p_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Z1=p_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),X1=p_&&Symbol.iterator||Symbol("iterator not implemented"),J1=t=>t==="end"||t==="finish"||t==="prefinish",Q1=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),no=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ci](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Zc=class extends no{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)}};m_.exports=class d_ extends l_{constructor(e){super(),this[io]=!1,this[Cn]=!1,this[Ot]=[],this[we]=[],this[Ne]=e&&e.objectMode||!1,this[Ne]?this[Ye]=null:this[Ye]=e&&e.encoding||null,this[Ye]==="buffer"&&(this[Ye]=null),this[Wt]=e&&!!e.async||!1,this[zt]=this[Ye]?new c_(this[Ye]):null,this[$t]=!1,this[dr]=!1,this[eo]=!1,this[to]=!1,this[kn]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[De]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[we]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ot]})}get bufferLength(){return this[Oe]}get encoding(){return this[Ye]}set encoding(e){if(this[Ne])throw new Error("cannot set encoding in objectMode");if(this[Ye]&&e!==this[Ye]&&(this[zt]&&this[zt].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Ye]!==e&&(this[zt]=e?new c_(e):null,this[we].length&&(this[we]=this[we].map(r=>this[zt].write(r)))),this[Ye]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ne]}set objectMode(e){this[Ne]=this[Ne]||!!e}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}write(e,r,i){if(this[$t])throw new Error("write after end");if(this[De])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Wt]?Ln:s=>s();return!this[Ne]&&!Buffer.isBuffer(e)&&(eC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Q1(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ne]?(this.flowing&&this[Oe]!==0&&this[ro](!0),this.flowing?this.emit("data",e):this[Wc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ye]&&!this[zt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ye]&&(e=this[zt].write(e)),this.flowing&&this[Oe]!==0&&this[ro](!0),this.flowing?this.emit("data",e):this[Wc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[De])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[Gt](),null;this[Ne]&&(e=null),this[we].length>1&&!this[Ne]&&(this.encoding?this[we]=[this[we].join("")]:this[we]=[Buffer.concat(this[we],this[Oe])]);let r=this[u_](e||null,this[we][0]);return this[Gt](),r}[u_](e,r){return e===r.length||e===null?this[Yc]():(this[we][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[we].length&&!this[$t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[$t]=!0,this.writable=!1,(this.flowing||!this[Cn])&&this[Gt](),this}[Ci](){this[De]||(this[Cn]=!1,this[io]=!0,this.emit("resume"),this[we].length?this[ro]():this[$t]?this[Gt]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[io]=!1,this[Cn]=!0}get destroyed(){return this[De]}get flowing(){return this[io]}get paused(){return this[Cn]}[Wc](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[we].push(e)}[Yc](){return this[we].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[we][0].length),this[we].shift()}[ro](e){do;while(this[h_](this[Yc]()));!e&&!this[we].length&&!this[$t]&&this.emit("drain")}[h_](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===a_.stdout||e===a_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ot].push(r.proxyErrors?new Zc(this,e,r):new no(this,e,r)),this[Wt]?Ln(()=>this[Ci]()):this[Ci]()),e}unpipe(e){let r=this[Ot].find(i=>i.dest===e);r&&(this[Ot].splice(this[Ot].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ot].length&&!this.flowing?this[Ci]():e==="readable"&&this[Oe]!==0?super.emit("readable"):J1(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[kn]&&(this[Wt]?Ln(()=>r.call(this,this[kn])):r.call(this,this[kn])),i}get emittedEnd(){return this[dr]}[Gt](){!this[eo]&&!this[dr]&&!this[De]&&this[we].length===0&&this[$t]&&(this[eo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[to]&&this.emit("close"),this[eo]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Wt]?Ln(()=>this[Kc](r)):this[Kc](r):!1;if(e==="end")return this[f_]();if(e==="close"){if(this[to]=!0,!this[dr]&&!this[De])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[kn]=r;let s=super.emit("error",r);return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Gt](),n}[Kc](e){for(let i of this[Ot])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Gt](),r}[f_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Wt]?Ln(()=>this[Vc]()):this[Vc]())}[Vc](){if(this[zt]){let r=this[zt].end();if(r){for(let i of this[Ot])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ot])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ne]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ne]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this[Ye]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(De,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Z1](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[$t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[$t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(De,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[X1](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[De]?(e?this.emit("error",e):this.emit(De),this):(this[De]=!0,this[we].length=0,this[Oe]=0,typeof this.close=="function"&&!this[to]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof d_||e instanceof l_||e instanceof V1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var g_=H((pF,y_)=>{var tC=require("zlib").constants||{ZLIB_VERNUM:4736};y_.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},tC))});var ru=H((dF,A_)=>{"use strict";var __=typeof process=="object"&&process?process:{stdout:null,stderr:null},rC=require("events"),b_=require("stream"),w_=require("string_decoder").StringDecoder,Yt=Symbol("EOF"),Kt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),oo=Symbol("emittingEnd"),Pn=Symbol("emittedError"),ao=Symbol("closed"),S_=Symbol("read"),lo=Symbol("flush"),E_=Symbol("flushChunk"),Ke=Symbol("encoding"),Vt=Symbol("decoder"),co=Symbol("flowing"),In=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Xc=Symbol("bufferPush"),Jc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Qc=Symbol("emitData"),v_=Symbol("emitEnd"),eu=Symbol("emitEnd2"),Zt=Symbol("async"),Nn=t=>Promise.resolve().then(t),R_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iC=R_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),nC=R_&&Symbol.iterator||Symbol("iterator not implemented"),sC=t=>t==="end"||t==="finish"||t==="prefinish",oC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,aC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=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()}},tu=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)}};A_.exports=class x_ extends b_{constructor(e){super(),this[co]=!1,this[In]=!1,this.pipes=[],this.buffer=[],this[Me]=e&&e.objectMode||!1,this[Me]?this[Ke]=null:this[Ke]=e&&e.encoding||null,this[Ke]==="buffer"&&(this[Ke]=null),this[Zt]=e&&!!e.async||!1,this[Vt]=this[Ke]?new w_(this[Ke]):null,this[Yt]=!1,this[mr]=!1,this[oo]=!1,this[ao]=!1,this[Pn]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[Fe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ke]}set encoding(e){if(this[Me])throw new Error("cannot set encoding in objectMode");if(this[Ke]&&e!==this[Ke]&&(this[Vt]&&this[Vt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ke]!==e&&(this[Vt]=e?new w_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[Ke]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Me]}set objectMode(e){this[Me]=this[Me]||!!e}get async(){return this[Zt]}set async(e){this[Zt]=this[Zt]||!!e}write(e,r,i){if(this[Yt])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Zt]?Nn:s=>s();return!this[Me]&&!Buffer.isBuffer(e)&&(aC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):oC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Me]?(this.flowing&&this[Te]!==0&&this[lo](!0),this.flowing?this.emit("data",e):this[Xc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[Vt].write(e)),this.flowing&&this[Te]!==0&&this[lo](!0),this.flowing?this.emit("data",e):this[Xc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Fe])return null;if(this[Te]===0||e===0||e>this[Te])return this[Kt](),null;this[Me]&&(e=null),this.buffer.length>1&&!this[Me]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[S_](e||null,this.buffer[0]);return this[Kt](),r}[S_](e,r){return e===r.length||e===null?this[Jc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Yt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Yt]=!0,this.writable=!1,(this.flowing||!this[In])&&this[Kt](),this}[Li](){this[Fe]||(this[In]=!1,this[co]=!0,this.emit("resume"),this.buffer.length?this[lo]():this[Yt]?this[Kt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[co]=!1,this[In]=!0}get destroyed(){return this[Fe]}get flowing(){return this[co]}get paused(){return this[In]}[Xc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Jc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[lo](e){do;while(this[E_](this[Jc]()));!e&&!this.buffer.length&&!this[Yt]&&this.emit("drain")}[E_](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===__.stdout||e===__.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new tu(this,e,r):new uo(this,e,r)),this[Zt]?Nn(()=>this[Li]()):this[Li]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Li]():e==="readable"&&this[Te]!==0?super.emit("readable"):sC(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Pn]&&(this[Zt]?Nn(()=>r.call(this,this[Pn])):r.call(this,this[Pn])),i}get emittedEnd(){return this[mr]}[Kt](){!this[oo]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[Yt]&&(this[oo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ao]&&this.emit("close"),this[oo]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Zt]?Nn(()=>this[Qc](r)):this[Qc](r):!1;if(e==="end")return this[v_]();if(e==="close"){if(this[ao]=!0,!this[mr]&&!this[Fe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Pn]=r;let s=super.emit("error",r);return this[Kt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Kt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Kt](),n}[Qc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Kt](),r}[v_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Zt]?Nn(()=>this[eu]()):this[eu]())}[eu](){if(this[Vt]){let r=this[Vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Me]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Me]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Me]?Promise.reject(new Error("cannot concat in objectMode")):this[Ke]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Fe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[iC](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Yt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Yt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Fe,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[nC](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Fe]?(e?this.emit("error",e):this.emit(Fe),this):(this[Fe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[ao]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof x_||e instanceof b_||e instanceof rC&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var _u=H(et=>{"use strict";var au=require("assert"),yr=require("buffer").Buffer,k_=require("zlib"),qr=et.constants=g_(),lC=ru(),O_=yr.concat,Ur=Symbol("_superWrite"),Ii=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},cC=Symbol("opts"),Dn=Symbol("flushFlag"),T_=Symbol("finishFlushFlag"),gu=Symbol("fullFlushFlag"),pe=Symbol("handle"),ho=Symbol("onError"),Pi=Symbol("sawError"),iu=Symbol("level"),nu=Symbol("strategy"),su=Symbol("ended"),mF=Symbol("_defaultFullFlush"),fo=class extends lC{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Pi]=!1,this[su]=!1,this[cC]=e,this[Dn]=e.flush,this[T_]=e.finishFlush;try{this[pe]=new k_[r](e)}catch(i){throw new Ii(i)}this[ho]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ho](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 au(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[gu]),this.write(Object.assign(yr.alloc(0),{[Dn]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[T_]),this[su]=!0,super.end(null,null,i)}get ended(){return this[su]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;au(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},yr.concat=c=>c;let a;try{let c=typeof e[Dn]=="number"?e[Dn]:this[Dn];a=this[pe]._processChunk(e,c),yr.concat=O_}catch(c){yr.concat=O_,this[ho](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[ho](new Ii(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Ur](yr.from(a[0]));for(let c=1;c<a.length;c++)l=this[Ur](a[c])}else l=this[Ur](yr.from(a));return i&&i(),l}[Ur](e){return super.write(e)}},Xt=class extends fo{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[gu]=qr.Z_FULL_FLUSH,this[iu]=e.level,this[nu]=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[iu]!==e||this[nu]!==r){this.flush(qr.Z_SYNC_FLUSH),au(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[iu]=e,this[nu]=r)}}}},lu=class extends Xt{constructor(e){super(e,"Deflate")}},cu=class extends Xt{constructor(e){super(e,"Inflate")}},ou=Symbol("_portable"),uu=class extends Xt{constructor(e){super(e,"Gzip"),this[ou]=e&&!!e.portable}[Ur](e){return this[ou]?(this[ou]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},hu=class extends Xt{constructor(e){super(e,"Gunzip")}},fu=class extends Xt{constructor(e){super(e,"DeflateRaw")}},pu=class extends Xt{constructor(e){super(e,"InflateRaw")}},du=class extends Xt{constructor(e){super(e,"Unzip")}},po=class extends fo{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[gu]=qr.BROTLI_OPERATION_FLUSH}},mu=class extends po{constructor(e){super(e,"BrotliCompress")}},yu=class extends po{constructor(e){super(e,"BrotliDecompress")}};et.Deflate=lu;et.Inflate=cu;et.Gzip=uu;et.Gunzip=hu;et.DeflateRaw=fu;et.InflateRaw=pu;et.Unzip=du;typeof k_.BrotliCompress=="function"?(et.BrotliCompress=mu,et.BrotliDecompress=yu):et.BrotliCompress=et.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((_F,C_)=>{var uC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;C_.exports=uC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var mo=H((wF,L_)=>{"use strict";var hC=so(),bu=Ni(),wu=Symbol("slurp");L_.exports=class extends hC{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=bu(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=bu(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[wu](r),i&&this[wu](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))}[wu](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?bu(e[i]):e[i])}}});var Su=H(yo=>{"use strict";yo.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"]]);yo.code=new Map(Array.from(yo.name).map(t=>[t[1],t[0]]))});var D_=H((EF,N_)=>{"use strict";var fC=(t,e)=>{if(Number.isSafeInteger(t))t<0?dC(t,e):pC(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pC=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},dC=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=P_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=I_(n))}},mC=t=>{let e=t[0],r=e===128?gC(t.slice(1,t.length)):e===255?yC(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},yC=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=P_(s):s===0?o=s:(i=!0,o=I_(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},gC=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},P_=t=>(255^t)&255,I_=t=>(255^t)+1&255;N_.exports={encode:fC,parse:mC}});var Mi=H((vF,F_)=>{"use strict";var Eu=Su(),Di=require("path").posix,M_=D_(),vu=Symbol("slurp"),tt=Symbol("type"),Au=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[tt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=$r(e,r,100),this.mode=gr(e,r+100,8),this.uid=gr(e,r+108,8),this.gid=gr(e,r+116,8),this.size=gr(e,r+124,12),this.mtime=Ru(e,r+136,12),this.cksum=gr(e,r+148,12),this[vu](i),this[vu](n,!0),this[tt]=$r(e,r+156,1),this[tt]===""&&(this[tt]="0"),this[tt]==="0"&&this.path.slice(-1)==="/"&&(this[tt]="5"),this[tt]==="5"&&(this.size=0),this.linkpath=$r(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=$r(e,r+265,32),this.gname=$r(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=$r(e,r+345,155);this.path=o+"/"+this.path}else{let o=$r(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ru(e,r+476,12),this.ctime=Ru(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)}[vu](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=_C(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=_r(e,r+100,8,this.mode)||this.needPax,this.needPax=_r(e,r+108,8,this.uid)||this.needPax,this.needPax=_r(e,r+116,8,this.gid)||this.needPax,this.needPax=_r(e,r+124,12,this.size)||this.needPax,this.needPax=xu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[tt].charCodeAt(0),this.needPax=Gr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Gr(e,r+265,32,this.uname)||this.needPax,this.needPax=Gr(e,r+297,32,this.gname)||this.needPax,this.needPax=_r(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_r(e,r+337,8,this.devmin)||this.needPax,this.needPax=Gr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Gr(e,r+345,155,o)||this.needPax:(this.needPax=Gr(e,r+345,130,o)||this.needPax,this.needPax=xu(e,r+476,12,this.atime)||this.needPax,this.needPax=xu(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 Eu.name.get(this[tt])||this[tt]}get typeKey(){return this[tt]}set type(e){Eu.code.has(e)?this[tt]=Eu.code.get(e):this[tt]=e}},_C=(t,e)=>{let i=t,n="",s,o=Di.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Di.dirname(i),i=Di.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=Di.join(Di.basename(n),i),n=Di.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},$r=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ru=(t,e,r)=>bC(gr(t,e,r)),bC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?M_.parse(t.slice(e,e+r)):SC(t,e,r),wC=t=>isNaN(t)?null:t,SC=(t,e,r)=>wC(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),EC={12:8589934591,8:2097151},_r=(t,e,r,i)=>i===null?!1:i>EC[r]||i<0?(M_.encode(i,t.slice(e,e+r)),!0):(vC(t,e,r,i),!1),vC=(t,e,r,i)=>t.write(RC(i,r),e,r,"ascii"),RC=(t,e)=>xC(Math.floor(t).toString(8),e),xC=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",xu=(t,e,r,i)=>i===null?!1:_r(t,e,r,i.getTime()/1e3),AC=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+AC,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);F_.exports=Au});var go=H((RF,B_)=>{"use strict";var OC=Mi(),TC=require("path"),Mn=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new OC({path:("PaxHeader/"+TC.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
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};Bf.exports=_E});var qf=H((bI,wa)=>{"use strict";var is=["stdin","stdout","stderr"],bE=t=>is.some(e=>t[e]!==void 0),Hf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return is.map(i=>t[i]);if(bE(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${is.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,is.length);return Array.from({length:r},(i,n)=>e[n])};wa.exports=Hf;wa.exports.node=t=>{let e=Hf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Uf=H((SI,ns)=>{ns.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ns.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ns.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Yf=H((wI,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)?($f=require("assert"),ni=Uf(),Gf=/^win/i.test(me.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),me.__signal_exit_emitter__?Ae=me.__signal_exit_emitter__:(Ae=me.__signal_exit_emitter__=new sn,Ae.count=0,Ae.emitted={}),Ae.infinite||(Ae.setMaxListeners(1/0),Ae.infinite=!0),oi.exports=function(t,e){if(!Tr(global.process))return function(){};$f.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&Ea();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ae.removeListener(r,t),Ae.listeners("exit").length===0&&Ae.listeners("afterexit").length===0&&ss()};return Ae.on(r,t),i},ss=function(){!si||!Tr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,os[e])}catch{}}),me.emit=as,me.reallyExit=va,Ae.count-=1)},oi.exports.unload=ss,kr=function(e,r,i){Ae.emitted[e]||(Ae.emitted[e]=!0,Ae.emit(e,r,i))},os={},ni.forEach(function(t){os[t]=function(){if(Tr(global.process)){var r=me.listeners(t);r.length===Ae.count&&(ss(),kr("exit",null,t),kr("afterexit",null,t),Gf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,Ea=function(){si||!Tr(global.process)||(si=!0,Ae.count+=1,ni=ni.filter(function(e){try{return me.on(e,os[e]),!0}catch{return!1}}),me.emit=Wf,me.reallyExit=zf)},oi.exports.load=Ea,va=me.reallyExit,zf=function(e){Tr(global.process)&&(me.exitCode=e||0,kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),va.call(me,me.exitCode))},as=me.emit,Wf=function(e,r){if(e==="exit"&&Tr(global.process)){r!==void 0&&(me.exitCode=r);var i=as.apply(this,arguments);return kr("exit",me.exitCode,null),kr("afterexit",me.exitCode,null),i}else return as.apply(this,arguments)}):oi.exports=function(){return function(){}};var $f,ni,Gf,sn,Ae,ss,kr,os,si,Ea,va,zf,as,Wf});var Kf=H((EI,Vf)=>{"use strict";var SE=require("os"),wE=Yf(),EE=1e3*5,vE=(t,e="SIGTERM",r={})=>{let i=t(e);return RE(t,e,r,i),i},RE=(t,e,r,i)=>{if(!xE(e,r,i))return;let n=OE(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},xE=(t,{forceKillAfterTimeout:e},r)=>AE(t)&&e!==!1&&r,AE=t=>t===SE.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",OE=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return EE;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},TE=(t,e)=>{t.kill()&&(e.isCanceled=!0)},kE=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},CE=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{kE(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},LE=({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})`)},PE=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=wE(()=>{t.kill()});return i.finally(()=>{n()})};Vf.exports={spawnedKill:vE,spawnedCancel:TE,setupTimeout:CE,validateTimeout:LE,setExitHandler:PE}});var Xf=H((vI,Zf)=>{"use strict";var gt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";gt.writable=t=>gt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";gt.readable=t=>gt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";gt.duplex=t=>gt.writable(t)&&gt.readable(t);gt.transform=t=>gt.duplex(t)&&typeof t._transform=="function";Zf.exports=gt});var Qf=H((RI,Jf)=>{"use strict";var{PassThrough:IE}=require("stream");Jf.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 IE({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 ep=H((xI,on)=>{"use strict";var{constants:NE}=require("buffer"),DE=require("stream"),{promisify:ME}=require("util"),FE=Qf(),BE=ME(DE.pipeline),ls=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ra(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=FE(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=NE.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await BE(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ls)})}),i.getBufferedValue()}on.exports=Ra;on.exports.buffer=(t,e)=>Ra(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>Ra(t,{...e,array:!0});on.exports.MaxBufferError=ls});var rp=H((AI,tp)=>{"use strict";var{PassThrough:jE}=require("stream");tp.exports=function(){var t=[],e=new jE({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 op=H((OI,sp)=>{"use strict";var np=Xf(),ip=ep(),HE=rp(),qE=(t,e)=>{e===void 0||t.stdin===void 0||(np(e)?e.pipe(t.stdin):t.stdin.end(e))},UE=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=HE();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},xa=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Aa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ip(t,{encoding:e,maxBuffer:i}):ip.buffer(t,{maxBuffer:i})},$E=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Aa(t,{encoding:i,buffer:n,maxBuffer:s}),l=Aa(e,{encoding:i,buffer:n,maxBuffer:s}),c=Aa(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},xa(t,a),xa(e,l),xa(r,c)])}},GE=({input:t})=>{if(np(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};sp.exports={handleInput:qE,makeAllStream:UE,getSpawnedResult:$E,validateInputSync:GE}});var lp=H((TI,ap)=>{"use strict";var zE=(async()=>{})().constructor.prototype,WE=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(zE,t)]),YE=(t,e)=>{for(let[r,i]of WE){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},VE=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)})});ap.exports={mergePromise:YE,getSpawnedPromise:VE}});var hp=H((kI,up)=>{"use strict";var cp=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],KE=/^[\w.-]+$/,ZE=/"/g,XE=t=>typeof t!="string"||KE.test(t)?t:`"${t.replace(ZE,'\\"')}"`,JE=(t,e)=>cp(t,e).join(" "),QE=(t,e)=>cp(t,e).map(r=>XE(r)).join(" "),e0=/ +/g,t0=t=>{let e=[];for(let r of t.trim().split(e0)){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:JE,getEscapedCommand:QE,parseCommand:t0}});var li=H((CI,ai)=>{"use strict";var r0=require("path"),Oa=require("child_process"),i0=Ef(),n0=Rf(),s0=Of(),o0=Lf(),cs=jf(),pp=qf(),{spawnedKill:a0,spawnedCancel:l0,setupTimeout:c0,validateTimeout:u0,setExitHandler:h0}=Kf(),{handleInput:f0,getSpawnedResult:p0,makeAllStream:d0,validateInputSync:m0}=op(),{mergePromise:fp,getSpawnedPromise:y0}=lp(),{joinCommand:dp,parseCommand:mp,getEscapedCommand:yp}=hp(),g0=1e3*1e3*100,_0=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?s0.env({env:s,cwd:i,execPath:n}):s},gp=(t,e,r={})=>{let i=i0._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:g0,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=_0(r),r.stdio=pp(r),process.platform==="win32"&&r0.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},an=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?n0(e):e,us=(t,e,r)=>{let i=gp(t,e,r),n=dp(t,e),s=yp(t,e);u0(i.options);let o;try{o=Oa.spawn(i.file,i.args,i.options)}catch(d){let g=new Oa.ChildProcess,y=Promise.reject(cs({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return fp(g,y)}let a=y0(o),l=c0(o,i.options,a),c=h0(o,i.options,l),u={isCanceled:!1};o.kill=a0.bind(null,o.kill.bind(o)),o.cancel=l0.bind(null,o,u);let f=o0(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:_},x,k,C]=await p0(o,i.options,c),T=an(i.options,x),O=an(i.options,k),I=an(i.options,C);if(d||g!==0||y!==null){let S=cs({error:d,exitCode:g,signal:y,stdout:T,stderr:O,all:I,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return S;throw S}return{command:n,escapedCommand:s,exitCode:0,stdout:T,stderr:O,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return f0(o,i.options.input),o.all=d0(o,i.options),fp(o,f)};ai.exports=us;ai.exports.sync=(t,e,r)=>{let i=gp(t,e,r),n=dp(t,e),s=yp(t,e);m0(i.options);let o;try{o=Oa.spawnSync(i.file,i.args,i.options)}catch(c){throw cs({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=an(i.options,o.stdout,o.error),l=an(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=cs({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ai.exports.command=(t,e)=>{let[r,...i]=mp(t);return us(r,i,e)};ai.exports.commandSync=(t,e)=>{let[r,...i]=mp(t);return us.sync(r,i,e)};ai.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=pp.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Sd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function jR(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=jR;function HR(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=HR});var wd=H(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.isEnoentCodeError=void 0;function qR(t){return t.code==="ENOENT"}gs.isEnoentCodeError=qR});var Ed=H(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createDirentFromStats=void 0;var $a=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 UR(t,e){return new $a(t,e)}_s.createDirentFromStats=UR});var vd=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.removeLeadingDotSegment=bt.escape=bt.makeAbsolute=bt.unixify=void 0;var $R=require("path"),GR=2,zR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function WR(t){return t.replace(/\\/g,"/")}bt.unixify=WR;function YR(t,e){return $R.resolve(t,e)}bt.makeAbsolute=YR;function VR(t){return t.replace(zR,"\\$2")}bt.escape=VR;function KR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(GR)}return t}bt.removeLeadingDotSegment=KR});var xd=H((MI,Rd)=>{Rd.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 Td=H((FI,Od)=>{var ZR=xd(),Ad={"{":"}","(":")","[":"]"},XR=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=Ad[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},JR=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=Ad[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Od.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ZR(e))return!0;var i=XR;return r&&r.strict===!1&&(i=JR),i(e)}});var Cd=H((BI,kd)=>{"use strict";var QR=Td(),ex=require("path").posix.dirname,tx=require("os").platform()==="win32",Ga="/",rx=/\\/g,ix=/[\{\[].*[\}\]]$/,nx=/(^|[^\\])([\{\[]|\([^\)]+$)/,sx=/\\([\!\*\?\|\[\]\(\)\{\}])/g;kd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&tx&&e.indexOf(Ga)<0&&(e=e.replace(rx,Ga)),ix.test(e)&&(e+=Ga),e+="a";do e=ex(e);while(QR(e)||nx.test(e));return e.replace(sx,"$1")}});var bs=H(nt=>{"use strict";nt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;nt.find=(t,e)=>t.nodes.find(r=>r.type===e);nt.exceedsLimit=(t,e,r=1,i)=>i===!1||!nt.isInteger(t)||!nt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;nt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};nt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);nt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;nt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;nt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);nt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var Ss=H((HI,Pd)=>{"use strict";var Ld=bs();Pd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Ld.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Ld.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 Nd=H((qI,Id)=>{"use strict";Id.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var $d=H((UI,Ud)=>{"use strict";var Dd=Nd(),Pr=(t,e,r)=>{if(Dd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Dd(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=qd(t)||qd(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=Md(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(d=Md(c,u,f,i)),f.negatives=g,f.positives=d,f.result=ox(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 ox(t,e,r){let i=za(t,e,"-",!1,r)||[],n=za(e,t,"",!1,r)||[],s=za(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function ax(t,e){let r=1,i=1,n=Bd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Bd(t,r);for(n=jd(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=jd(e+1,i)-1;return s=[...s],s.sort(ux),s}function lx(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=cx(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+=hx(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Md(t,e,r,i){let n=ax(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=lx(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+Hd(a.count),o=c+1;continue}r.isPadded&&(h=fx(c,r,i)),u.string=h+u.pattern+Hd(u.count),s.push(u),o=c+1,a=u}return s}function za(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Fd(e,"string",a)&&s.push(r+a),i&&Fd(e,"string",a)&&s.push(r+a)}return s}function cx(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function ux(t,e){return t>e?1:e>t?-1:0}function Fd(t,e,r){return t.some(i=>i[e]===r)}function Bd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function jd(t,e){return t-t%Math.pow(10,e)}function Hd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function hx(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function qd(t){return/^-?(0+)\d/.test(t)}function fx(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={};Ud.exports=Pr});var Va=H(($I,Xd)=>{"use strict";var px=require("util"),Wd=$d(),Gd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),dx=t=>e=>t===!0?Number(e):String(e),Wa=t=>typeof t=="number"||typeof t=="string"&&t!=="",pn=t=>Number.isInteger(+t),Ya=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},mx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,yx=(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},zd=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},gx=(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},Yd=(t,e,r,i)=>{if(r)return Wd(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Vd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Wd(t,e,r)},Kd=(...t)=>new RangeError("Invalid range arguments: "+px.inspect(...t)),Zd=(t,e,r)=>{if(r.strictRanges===!0)throw Kd([t,e]);return[]},_x=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},bx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Kd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Ya(a)||Ya(l)||Ya(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&mx(t,e,i)===!1,d=i.transform||dx(f);if(i.toRegex&&r===1)return Yd(zd(t,h),zd(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(yx(d(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?gx(g,i):Vd(_,null,{wrap:!1,...i}):_},Sx=(t,e,r=1,i={})=>{if(!pn(t)&&t.length>1||!pn(e)&&e.length>1)return Zd(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 Yd(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?Vd(u,null,{wrap:!1,options:i}):u},ws=(t,e,r,i={})=>{if(e==null&&Wa(t))return[t];if(!Wa(t)||!Wa(e))return Zd(t,e,i);if(typeof r=="function")return ws(t,e,1,{transform:r});if(Gd(r))return ws(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,pn(r)?pn(t)&&pn(e)?bx(t,e,r,n):Sx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Gd(r)?_x(r,n):ws(t,e,1,r)};Xd.exports=ws});var em=H((GI,Qd)=>{"use strict";var wx=Va(),Jd=bs(),Ex=(t,e={})=>{let r=(i,n={})=>{let s=Jd.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=Jd.reduce(i.nodes),h=wx(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Qd.exports=Ex});var im=H((zI,rm)=>{"use strict";var vx=Va(),tm=Ss(),di=bs(),Ir=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?di.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ir(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ir(n,s,r):n+s);return di.flatten(i)},Rx=(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(),tm(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=vx(...h,e);f.length===0&&(f=tm(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))};rm.exports=Rx});var sm=H((WI,nm)=>{"use strict";nm.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((YI,cm)=>{"use strict";var xx=Ss(),{MAX_LENGTH:om,CHAR_BACKSLASH:Ka,CHAR_BACKTICK:Ax,CHAR_COMMA:Ox,CHAR_DOT:Tx,CHAR_LEFT_PARENTHESES:kx,CHAR_RIGHT_PARENTHESES:Cx,CHAR_LEFT_CURLY_BRACE:Lx,CHAR_RIGHT_CURLY_BRACE:Px,CHAR_LEFT_SQUARE_BRACKET:am,CHAR_RIGHT_SQUARE_BRACKET:lm,CHAR_DOUBLE_QUOTE:Ix,CHAR_SINGLE_QUOTE:Nx,CHAR_NO_BREAK_SPACE:Dx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mx}=sm(),Fx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(om,r.maxLength):om;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===Mx||f===Dx)){if(f===Ka){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===lm){y({type:"text",value:"\\"+f});continue}if(f===am){l++;let _=!0,x;for(;u<c&&(x=g());){if(f+=x,x===am){l++;continue}if(x===Ka){f+=g();continue}if(x===lm&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===kx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Cx){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===Ix||f===Nx||f===Ax){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===Lx){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===Px){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===Ox&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:xx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Tx&&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};cm.exports=Fx});var pm=H((VI,fm)=>{"use strict";var hm=Ss(),Bx=em(),jx=im(),Hx=um(),Xe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Xe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Xe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.parse=(t,e={})=>Hx(t,e);Xe.stringify=(t,e={})=>hm(typeof t=="string"?Xe.parse(t,e):t,e);Xe.compile=(t,e={})=>(typeof t=="string"&&(t=Xe.parse(t,e)),Bx(t,e));Xe.expand=(t,e={})=>{typeof t=="string"&&(t=Xe.parse(t,e));let r=jx(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Xe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Xe.compile(t,e):Xe.expand(t,e);fm.exports=Xe});var dn=H((KI,_m)=>{"use strict";var qx=require("path"),St="\\\\/",dm=`[^${St}]`,Dt="\\.",Ux="\\+",$x="\\?",Es="\\/",Gx="(?=.)",mm="[^/]",Za=`(?:${Es}|$)`,ym=`(?:^|${Es})`,Xa=`${Dt}{1,2}${Za}`,zx=`(?!${Dt})`,Wx=`(?!${ym}${Xa})`,Yx=`(?!${Dt}{0,1}${Za})`,Vx=`(?!${Xa})`,Kx=`[^.${Es}]`,Zx=`${mm}*?`,gm={DOT_LITERAL:Dt,PLUS_LITERAL:Ux,QMARK_LITERAL:$x,SLASH_LITERAL:Es,ONE_CHAR:Gx,QMARK:mm,END_ANCHOR:Za,DOTS_SLASH:Xa,NO_DOT:zx,NO_DOTS:Wx,NO_DOT_SLASH:Yx,NO_DOTS_SLASH:Vx,QMARK_NO_DOT:Kx,STAR:Zx,START_ANCHOR:ym},Xx={...gm,SLASH_LITERAL:`[${St}]`,QMARK:dm,STAR:`${dm}*?`,DOTS_SLASH:`${Dt}{1,2}(?:[${St}]|$)`,NO_DOT:`(?!${Dt})`,NO_DOTS:`(?!(?:^|[${St}])${Dt}{1,2}(?:[${St}]|$))`,NO_DOT_SLASH:`(?!${Dt}{0,1}(?:[${St}]|$))`,NO_DOTS_SLASH:`(?!${Dt}{1,2}(?:[${St}]|$))`,QMARK_NO_DOT:`[^.${St}]`,START_ANCHOR:`(?:^|[${St}])`,END_ANCHOR:`(?:[${St}]|$)`},Jx={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"};_m.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Jx,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:qx.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?Xx:gm}}});var mn=H($e=>{"use strict";var Qx=require("path"),eA=process.platform==="win32",{REGEX_BACKSLASH:tA,REGEX_REMOVE_BACKSLASH:rA,REGEX_SPECIAL_CHARS:iA,REGEX_SPECIAL_CHARS_GLOBAL:nA}=dn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>iA.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(nA,"\\$1");$e.toPosixSlashes=t=>t.replace(tA,"/");$e.removeBackslashes=t=>t.replace(rA,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:eA===!0||Qx.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 Am=H((XI,xm)=>{"use strict";var bm=mn(),{CHAR_ASTERISK:Ja,CHAR_AT:sA,CHAR_BACKWARD_SLASH:yn,CHAR_COMMA:oA,CHAR_DOT:Qa,CHAR_EXCLAMATION_MARK:el,CHAR_FORWARD_SLASH:Rm,CHAR_LEFT_CURLY_BRACE:tl,CHAR_LEFT_PARENTHESES:rl,CHAR_LEFT_SQUARE_BRACKET:aA,CHAR_PLUS:lA,CHAR_QUESTION_MARK:Sm,CHAR_RIGHT_CURLY_BRACE:cA,CHAR_RIGHT_PARENTHESES:wm,CHAR_RIGHT_SQUARE_BRACKET:uA}=dn(),Em=t=>t===Rm||t===yn,vm=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hA=(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,S,v,F={value:"",depth:0,isGlob:!1},q=()=>c>=i,P=()=>l.charCodeAt(c+1),$=()=>(S=v,l.charCodeAt(++c));for(;c<i;){v=$();let L;if(v===yn){k=F.backslashes=!0,v=$(),v===tl&&(x=!0);continue}if(x===!0||v===tl){for(I++;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,$();continue}if(v===tl){I++;continue}if(x!==!0&&v===Qa&&(v=$())===Qa){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(x!==!0&&v===oA){if(f=F.isBrace=!0,g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===cA&&(I--,I===0)){x=!1,f=F.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(v===Rm){if(s.push(c),o.push(F),F={value:"",depth:0,isGlob:!1},O===!0)continue;if(S===Qa&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===lA||v===sA||v===Ja||v===Sm||v===el)===!0&&P()===rl){if(g=F.isGlob=!0,y=F.isExtglob=!0,O=!0,v===el&&c===u&&(T=!0),n===!0){for(;q()!==!0&&(v=$());){if(v===yn){k=F.backslashes=!0,v=$();continue}if(v===wm){g=F.isGlob=!0,O=!0;break}}continue}break}if(v===Ja){if(S===Ja&&(_=F.isGlobstar=!0),g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===Sm){if(g=F.isGlob=!0,O=!0,n===!0)continue;break}if(v===aA){for(;q()!==!0&&(L=$());){if(L===yn){k=F.backslashes=!0,$();continue}if(L===uA){d=F.isBracket=!0,g=F.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&v===el&&c===u){C=F.negated=!0,u++;continue}if(r.noparen!==!0&&v===rl){if(g=F.isGlob=!0,n===!0){for(;q()!==!0&&(v=$());){if(v===rl){k=F.backslashes=!0,v=$();continue}if(v===wm){O=!0;break}}continue}break}if(g===!0){if(O=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let V=l,K="",N="";u>0&&(K=l.slice(0,u),l=l.slice(u),h-=u),V&&g===!0&&h>0?(V=l.slice(0,h),N=l.slice(h)):g===!0?(V="",N=l):V=l,V&&V!==""&&V!=="/"&&V!==l&&Em(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),r.unescape===!0&&(N&&(N=bm.removeBackslashes(N)),V&&k===!0&&(V=bm.removeBackslashes(V)));let A={prefix:K,input:t,start:u,base:V,glob:N,isBrace:f,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:_,negated:C,negatedExtglob:T};if(r.tokens===!0&&(A.maxDepth=0,Em(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=K):o[j].value=p,vm(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,vm(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};xm.exports=hA});var km=H((JI,Tm)=>{"use strict";var vs=dn(),Je=mn(),{MAX_LENGTH:Rs,POSIX_REGEX_SOURCE:fA,REGEX_NON_SPECIAL_CHARS:pA,REGEX_SPECIAL_CHARS_BACKREF:dA,REPLACEMENTS:Om}=vs,mA=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Je.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,il=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Om[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Je.isWindows(e),c=vs.globChars(l),u=vs.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:_,NO_DOT_SLASH:x,NO_DOTS_SLASH:k,QMARK:C,QMARK_NO_DOT:T,STAR:O,START_ANCHOR:I}=c,S=U=>`(${a}(?:(?!${I}${U.dot?y:h}).)*?)`,v=r.dot?"":_,F=r.dot?C:T,q=r.bash===!0?S(r):O;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Je.removePrefix(t,P),n=t.length;let $=[],V=[],K=[],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]++,K.push(U)},E=U=>{P[U]--,K.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=S(r)),(re!==q||L()||/^\)+$/.test(D()))&&(J=U.close=`)$))${re}`),U.inner.includes("*")&&(G=D())&&/^\.[^\\/.]+$/.test(G)){let ce=il(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(dA,(G,re,ce,we,_e,w)=>we==="\\"?(U=!0,G):we==="?"?re?re+we+(_e?C.repeat(_e.length):""):w===0?F+(_e?C.repeat(_e.length):""):C.repeat(ce.length):we==="."?h.repeat(ce.length):we==="*"?re?re+we+(_e?q:""):q:re?G:`\\${G}`);return U===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),J===t&&r.contains===!0?(P.output=t,P):(P.output=Je.wrapOutput(J,P,e),P)}for(;!L();){if(A=z(),A==="\0")continue;if(A==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){A+="\\",M({type:"text",value:A});continue}let re=/^\\+/.exec(D()),ce=0;if(re&&re[0].length>2&&(ce=re[0].length,P.index+=ce,ce%2!==0&&(A+="\\")),r.unescape===!0?A=z():A+=z(),P.brackets===0){M({type:"text",value:A});continue}}if(P.brackets>0&&(A!=="]"||N.value==="["||N.value==="[^")){if(r.posix!==!1&&A===":"){let G=N.value.slice(1);if(G.includes("[")&&(N.posix=!0,G.includes(":"))){let re=N.value.lastIndexOf("["),ce=N.value.slice(0,re),we=N.value.slice(re+2),_e=fA[we];if(_e){N.value=ce+_e,P.backtrack=!0,z(),!s.output&&o.indexOf(N)===1&&(s.output=g);continue}}}(A==="["&&j()!==":"||A==="-"&&j()==="]")&&(A=`\\${A}`),A==="]"&&(N.value==="["||N.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&N.value==="["&&(A="^"),N.value+=A,m({value:A});continue}if(P.quotes===1&&A!=='"'){A=Je.escapeRegex(A),N.value+=A,m({value:A});continue}if(A==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:A});continue}if(A==="("){R("parens"),M({type:"paren",value:A});continue}if(A===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=$[$.length-1];if(G&&P.parens===G.parens+1){Z($.pop());continue}M({type:"paren",value:A,output:P.parens?")":"\\)"}),E("parens");continue}if(A==="["){if(r.nobracket===!0||!D().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));A=`\\${A}`}else R("brackets");M({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){M({type:"text",value:A,output:`\\${A}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));M({type:"text",value:A,output:`\\${A}`});continue}E("brackets");let G=N.value.slice(1);if(N.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(A=`/${A}`),N.value+=A,m({value:A}),r.literalBrackets===!1||Je.hasRegexChars(G))continue;let re=Je.escapeRegex(N.value);if(P.output=P.output.slice(0,-N.value.length),r.literalBrackets===!0){P.output+=re,N.value=re;continue}N.value=`(${a}${re}|${N.value})`,P.output+=N.value;continue}if(A==="{"&&r.nobrace!==!0){R("braces");let G={type:"brace",value:A,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};V.push(G),M(G);continue}if(A==="}"){let G=V[V.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(),we=[];for(let _e=ce.length-1;_e>=0&&(o.pop(),ce[_e].type!=="brace");_e--)ce[_e].type!=="dots"&&we.unshift(ce[_e].value);re=mA(we,r),P.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=P.output.slice(0,G.outputIndex),we=P.tokens.slice(G.tokensIndex);G.value=G.output="\\{",A=re="\\}",P.output=ce;for(let _e of we)P.output+=_e.output||_e.value}M({type:"brace",value:A,output:re}),E("braces"),V.pop();continue}if(A==="|"){$.length>0&&$[$.length-1].conditions++,M({type:"text",value:A});continue}if(A===","){let G=A,re=V[V.length-1];re&&K[K.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=V[V.length-1];N.type="dots",N.output+=A,N.value+=A,G.dots=!0;continue}if(P.braces+P.parens===0&&N.type!=="bos"&&N.type!=="slash"){M({type:"text",value:A,output:h});continue}M({type:"dot",value:A,output:h});continue}if(A==="?"){if(!(N&&N.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("qmark",A);continue}if(N&&N.type==="paren"){let re=j(),ce=A;if(re==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(D()))&&(ce=`\\${A}`),M({type:"text",value:A,output:ce});continue}if(r.dot!==!0&&(N.type==="slash"||N.type==="bos")){M({type:"qmark",value:A,output:T});continue}M({type:"qmark",value:A,output:C});continue}if(A==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){B("negate",A);continue}if(r.nonegate!==!0&&P.index===0){b();continue}}if(A==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){B("plus",A);continue}if(N&&N.value==="("||r.regex===!1){M({type:"plus",value:A,output:f});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||P.parens>0){M({type:"plus",value:A});continue}M({type:"plus",value:f});continue}if(A==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M({type:"at",extglob:!0,value:A,output:""});continue}M({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let G=pA.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",we=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"),w=$.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!_e&&!w){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=S(r),P.output=N.output,P.globstar=!0,p(A);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!we&&L()){P.output=P.output.slice(0,-(G.output+N.output).length),G.output=`(?:${G.output}`,N.type="globstar",N.output=S(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=`${S(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}|${S(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=S(r),N.value+=A,P.output+=N.output,P.globstar=!0,p(A);continue}let J={type:"star",value:A,output:q};if(r.bash===!0){J.output=".*?",(N.type==="bos"||N.type==="slash")&&(J.output=v+J.output),M(J);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&r.regex===!0){J.output=A,M(J);continue}(P.index===P.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(P.output+=x,N.output+=x):r.dot===!0?(P.output+=k,N.output+=k):(P.output+=v,N.output+=v),j()!=="*"&&(P.output+=g,N.output+=g)),M(J)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));P.output=Je.escapeLast(P.output,"["),E("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));P.output=Je.escapeLast(P.output,"("),E("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));P.output=Je.escapeLast(P.output,"{"),E("braces")}if(r.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${d}?`}),P.backtrack===!0){P.output="";for(let U of P.tokens)P.output+=U.output!=null?U.output:U.value,U.suffix&&(P.output+=U.suffix)}return P};il.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Rs,r.maxLength):Rs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Om[t]||t;let s=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=vs.globChars(s),y=r.dot?h:u,_=r.dot?f:u,x=r.capture?"":"?:",k={negated:!1,prefix:""},C=r.bash===!0?".*?":d;r.capture&&(C=`(${C})`);let T=v=>v.noglobstar===!0?C:`(${x}(?:(?!${g}${v.dot?c:o}).)*?)`,O=v=>{switch(v){case"*":return`${y}${l}${C}`;case".*":return`${o}${l}${C}`;case"*.*":return`${y}${C}${o}${l}${C}`;case"*/*":return`${y}${C}${a}${l}${_}${C}`;case"**":return y+T(r);case"**/*":return`(?:${y}${T(r)}${a})?${_}${l}${C}`;case"**/*.*":return`(?:${y}${T(r)}${a})?${_}${C}${o}${l}${C}`;case"**/.*":return`(?:${y}${T(r)}${a})?${o}${l}${C}`;default:{let F=/^(.*?)\.(\w+)$/.exec(v);if(!F)return;let q=O(F[1]);return q?q+o+F[2]:void 0}}},I=Je.removePrefix(t,k),S=O(I);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};Tm.exports=il});var Lm=H((QI,Cm)=>{"use strict";var yA=require("path"),gA=Am(),nl=km(),sl=mn(),_A=dn(),bA=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=bA(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=sl.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?sl.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=sl.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(yA.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)):nl(t,{...e,fastpaths:!1});be.scan=(t,e)=>gA(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=nl.fastpaths(t,e)),n.output||(n=nl(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=_A;Cm.exports=be});var Im=H((eN,Pm)=>{"use strict";Pm.exports=Lm()});var Bm=H((tN,Fm)=>{"use strict";var Dm=require("util"),Mm=pm(),wt=Im(),ol=mn(),Nm=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=wt(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)=>wt(t,e);ye.isMatch=(t,e,r)=>wt(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: "${Dm.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Nm(t)||Nm(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(!ol.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=wt(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=wt(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: "${Dm.inspect(t)}"`);return[].concat(e).every(i=>wt(i,r)(t))};ye.capture=(t,e,r)=>{let i=ol.isWindows(r),s=wt.makeRe(String(t),{...r,capture:!0}).exec(i?ol.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>wt.makeRe(...t);ye.scan=(...t)=>wt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Mm(String(i),e))r.push(wt.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]:Mm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Fm.exports=ye});var Wm=H(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.matchAny=ie.convertPatternsToRe=ie.makeRe=ie.getPatternParts=ie.expandBraceExpansion=ie.expandPatternsWithBraceExpansion=ie.isAffectDepthOfReadingPattern=ie.endsWithSlashGlobStar=ie.hasGlobStar=ie.getBaseDirectory=ie.isPatternRelatedToParentDirectory=ie.getPatternsOutsideCurrentDirectory=ie.getPatternsInsideCurrentDirectory=ie.getPositivePatterns=ie.getNegativePatterns=ie.isPositivePattern=ie.isNegativePattern=ie.convertToNegativePattern=ie.convertToPositivePattern=ie.isDynamicPattern=ie.isStaticPattern=void 0;var SA=require("path"),wA=Cd(),al=Bm(),jm="**",EA="\\",vA=/[*?]|^!/,RA=/\[[^[]*]/,xA=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,AA=/[!*+?@]\([^(]*\)/,OA=/,|\.\./;function Hm(t,e={}){return!qm(t,e)}ie.isStaticPattern=Hm;function qm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(EA)||vA.test(t)||RA.test(t)||xA.test(t)||e.extglob!==!1&&AA.test(t)||e.braceExpansion!==!1&&TA(t))}ie.isDynamicPattern=qm;function TA(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 OA.test(i)}function kA(t){return xs(t)?t.slice(1):t}ie.convertToPositivePattern=kA;function CA(t){return"!"+t}ie.convertToNegativePattern=CA;function xs(t){return t.startsWith("!")&&t[1]!=="("}ie.isNegativePattern=xs;function Um(t){return!xs(t)}ie.isPositivePattern=Um;function LA(t){return t.filter(xs)}ie.getNegativePatterns=LA;function PA(t){return t.filter(Um)}ie.getPositivePatterns=PA;function IA(t){return t.filter(e=>!ll(e))}ie.getPatternsInsideCurrentDirectory=IA;function NA(t){return t.filter(ll)}ie.getPatternsOutsideCurrentDirectory=NA;function ll(t){return t.startsWith("..")||t.startsWith("./..")}ie.isPatternRelatedToParentDirectory=ll;function DA(t){return wA(t,{flipBackslashes:!1})}ie.getBaseDirectory=DA;function MA(t){return t.includes(jm)}ie.hasGlobStar=MA;function $m(t){return t.endsWith("/"+jm)}ie.endsWithSlashGlobStar=$m;function FA(t){let e=SA.basename(t);return $m(t)||Hm(e)}ie.isAffectDepthOfReadingPattern=FA;function BA(t){return t.reduce((e,r)=>e.concat(Gm(r)),[])}ie.expandPatternsWithBraceExpansion=BA;function Gm(t){return al.braces(t,{expand:!0,nodupes:!0})}ie.expandBraceExpansion=Gm;function jA(t,e){let{parts:r}=al.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ie.getPatternParts=jA;function zm(t,e){return al.makeRe(t,e)}ie.makeRe=zm;function HA(t,e){return t.map(r=>zm(r,e))}ie.convertPatternsToRe=HA;function qA(t,e){return e.some(r=>r.test(t))}ie.matchAny=qA});var Zm=H((iN,Km)=>{"use strict";var UA=require("stream"),Ym=UA.PassThrough,$A=Array.prototype.slice;Km.exports=GA;function GA(){let t=[],e=$A.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=Ym(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Vm(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 Vm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Vm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Ym(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Jm=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.merge=void 0;var zA=Zm();function WA(t){let e=zA(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Xm(t)),e.once("end",()=>Xm(t)),e}As.merge=WA;function Xm(t){t.forEach(e=>e.emit("close"))}});var Qm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function YA(t){return typeof t=="string"}yi.isString=YA;function VA(t){return t===""}yi.isEmpty=VA});var Mt=H(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.string=Le.stream=Le.pattern=Le.path=Le.fs=Le.errno=Le.array=void 0;var KA=Sd();Le.array=KA;var ZA=wd();Le.errno=ZA;var XA=Ed();Le.fs=XA;var JA=vd();Le.path=JA;var QA=Wm();Le.pattern=QA;var eO=Jm();Le.stream=eO;var tO=Qm();Le.string=tO});var ry=H(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.convertPatternGroupToTask=Pe.convertPatternGroupsToTasks=Pe.groupPatternsByBaseDirectory=Pe.getNegativePatternsAsPositive=Pe.getPositivePatterns=Pe.convertPatternsToTasks=Pe.generate=void 0;var Ft=Mt();function rO(t,e){let r=ey(t),i=ty(t,e.ignore),n=r.filter(l=>Ft.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ft.pattern.isDynamicPattern(l,e)),o=cl(n,i,!1),a=cl(s,i,!0);return o.concat(a)}Pe.generate=rO;function cl(t,e,r){let i=[],n=Ft.pattern.getPatternsOutsideCurrentDirectory(t),s=Ft.pattern.getPatternsInsideCurrentDirectory(t),o=ul(n),a=ul(s);return i.push(...hl(o,e,r)),"."in a?i.push(fl(".",s,e,r)):i.push(...hl(a,e,r)),i}Pe.convertPatternsToTasks=cl;function ey(t){return Ft.pattern.getPositivePatterns(t)}Pe.getPositivePatterns=ey;function ty(t,e){return Ft.pattern.getNegativePatterns(t).concat(e).map(Ft.pattern.convertToPositivePattern)}Pe.getNegativePatternsAsPositive=ty;function ul(t){let e={};return t.reduce((r,i)=>{let n=Ft.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Pe.groupPatternsByBaseDirectory=ul;function hl(t,e,r){return Object.keys(t).map(i=>fl(i,t[i],e,r))}Pe.convertPatternGroupsToTasks=hl;function fl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ft.pattern.convertToNegativePattern))}}Pe.convertPatternGroupToTask=fl});var ny=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var iO=/(?!^)\/{2,}/g;function nO(t){return t.map(e=>iy(e))}gi.transform=nO;function iy(t){return t.replace(iO,"/")}gi.removeDuplicateSlashes=iy});var oy=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.read=void 0;function sO(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){sy(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){pl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){sy(r,s);return}pl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),pl(r,o)})})}Os.read=sO;function sy(t,e){t(e)}function pl(t,e){t(null,e)}});var ay=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.read=void 0;function oO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ts.read=oO});var ly=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.createFileSystemAdapter=nr.FILE_SYSTEM_ADAPTER=void 0;var ks=require("fs");nr.FILE_SYSTEM_ADAPTER={lstat:ks.lstat,stat:ks.stat,lstatSync:ks.lstatSync,statSync:ks.statSync};function aO(t){return t===void 0?nr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nr.FILE_SYSTEM_ADAPTER),t)}nr.createFileSystemAdapter=aO});var cy=H(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var lO=ly(),dl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=lO.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}};ml.default=dl});var Nr=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var uy=oy(),cO=ay(),yl=cy();sr.Settings=yl.default;function uO(t,e,r){if(typeof e=="function"){uy.read(t,gl(),e);return}uy.read(t,gl(e),r)}sr.stat=uO;function hO(t,e){let r=gl(e);return cO.read(t,r)}sr.statSync=hO;function gl(t={}){return t instanceof yl.default?t:new yl.default(t)}});var py=H((dN,fy)=>{var hy;fy.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(hy||(hy=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var my=H((mN,dy)=>{dy.exports=pO;var fO=py();function pO(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?fO(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 _l=H(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Cs=process.versions.node.split(".");if(Cs[0]===void 0||Cs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var yy=Number.parseInt(Cs[0],10),dO=Number.parseInt(Cs[1],10),gy=10,mO=10,yO=yy>gy,gO=yy===gy&&dO>=mO;Ls.IS_SUPPORT_READDIR_WITH_FILE_TYPES=yO||gO});var _y=H(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createDirentFromStats=void 0;var bl=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 _O(t,e){return new bl(t,e)}Ps.createDirentFromStats=_O});var Sl=H(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.fs=void 0;var bO=_y();Is.fs=bO});var wl=H(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.joinPathSegments=void 0;function SO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ns.joinPathSegments=SO});var Ry=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var wO=Nr(),by=my(),EO=_l(),Sy=Sl(),wy=wl();function vO(t,e,r){if(!e.stats&&EO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ey(t,e,r);return}vy(t,e,r)}or.read=vO;function Ey(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:wy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){El(r,s);return}let o=s.map(a=>RO(a,e));by(o,(a,l)=>{if(a!==null){Ds(r,a);return}El(r,l)})})}or.readdirWithFileTypes=Ey;function RO(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=Sy.fs.createDirentFromStats(t.name,n),r(null,t)})}}function vy(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ds(r,i);return}let s=n.map(o=>{let a=wy.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{wO.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:Sy.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});by(s,(o,a)=>{if(o!==null){Ds(r,o);return}El(r,a)})})}or.readdir=vy;function Ds(t,e){t(e)}function El(t,e){t(null,e)}});var ky=H(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var xO=Nr(),AO=_l(),xy=Sl(),Ay=wl();function OO(t,e){return!e.stats&&AO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Oy(t,e):Ty(t,e)}ar.read=OO;function Oy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Ay.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=xy.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ar.readdirWithFileTypes=Oy;function Ty(t,e){return e.fs.readdirSync(t).map(i=>{let n=Ay.joinPathSegments(t,i,e.pathSegmentSeparator),s=xO.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:xy.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ar.readdir=Ty});var Cy=H(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:_i.lstat,stat:_i.stat,lstatSync:_i.lstatSync,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};function TO(t){return t===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),t)}lr.createFileSystemAdapter=TO});var Ly=H(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var kO=require("path"),CO=Nr(),LO=Cy(),vl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=LO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,kO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new CO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Rl.default=vl});var Ms=H(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Settings=cr.scandirSync=cr.scandir=void 0;var Py=Ry(),PO=ky(),xl=Ly();cr.Settings=xl.default;function IO(t,e,r){if(typeof e=="function"){Py.read(t,Al(),e);return}Py.read(t,Al(e),r)}cr.scandir=IO;function NO(t,e){let r=Al(e);return PO.read(t,r)}cr.scandirSync=NO;function Al(t={}){return t instanceof xl.default?t:new xl.default(t)}});var Ny=H((xN,Iy)=>{"use strict";function DO(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}}Iy.exports=DO});var My=H((AN,Ol)=>{"use strict";var MO=Ny();function Dy(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=MO(FO),n=null,s=null,o=0,a=null,l={push:y,drain:st,saturated:st,pause:u,paused:!1,concurrency:r,running:c,resume:d,idle:g,length:h,getQueue:f,unshift:_,empty:st,kill:k,killAndDrain:C,error:T};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var O=n,I=0;O;)O=O.next,I++;return I}function f(){for(var O=n,I=[];O;)I.push(O.value),O=O.next;return I}function d(){if(l.paused){l.paused=!1;for(var O=0;O<l.concurrency;O++)o++,x()}}function g(){return o===0&&l.length()===0}function y(O,I){var S=i.get();S.context=t,S.release=x,S.value=O,S.callback=I||st,S.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=S,s=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function _(O,I){var S=i.get();S.context=t,S.release=x,S.value=O,S.callback=I||st,o===l.concurrency||l.paused?n?(S.next=n,n=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function x(O){O&&i.release(O);var I=n;I?l.paused?o--:(s===n&&(s=null),n=I.next,I.next=null,e.call(t,I.value,I.worked),s===null&&l.empty()):--o===0&&l.drain()}function k(){n=null,s=null,l.drain=st}function C(){n=null,s=null,l.drain(),l.drain=st}function T(O){a=O}}function st(){}function FO(){this.value=null,this.callback=st,this.next=null,this.release=st,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=st,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function BO(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=Dy(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,d){s(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function l(u){var h=new Promise(function(f,d){o(u,function(g,y){if(g){d(g);return}f(y)})});return h.catch(st),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Ol.exports=Dy;Ol.exports.promise=BO});var Fs=H(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.joinPathSegments=Et.replacePathSegmentSeparator=Et.isAppliedFilter=Et.isFatalError=void 0;function jO(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Et.isFatalError=jO;function HO(t,e){return t===null||t(e)}Et.isAppliedFilter=HO;function qO(t,e){return t.split(/[/\\]/).join(e)}Et.replacePathSegmentSeparator=qO;function UO(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Et.joinPathSegments=UO});var Cl=H(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var $O=Fs(),Tl=class{constructor(e,r){this._root=e,this._settings=r,this._root=$O.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};kl.default=Tl});var Il=H(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var GO=require("events"),zO=Ms(),WO=My(),Bs=Fs(),YO=Cl(),Ll=class extends YO.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zO.scandir,this._emitter=new GO.EventEmitter,this._queue=WO(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Bs.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Bs.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bs.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bs.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Pl.default=Ll});var Fy=H(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var VO=Il(),Nl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VO.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{KO(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZO(e,this._storage)}),this._reader.read()}};Dl.default=Nl;function KO(t,e){t(e)}function ZO(t,e){t(null,e)}});var By=H(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var XO=require("stream"),JO=Il(),Ml=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JO.default(this._root,this._settings),this._stream=new XO.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}};Fl.default=Ml});var jy=H(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var QO=Ms(),js=Fs(),eT=Cl(),Bl=class extends eT.default{constructor(){super(...arguments),this._scandir=QO.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(js.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=js.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),js.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&js.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};jl.default=Bl});var Hy=H(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var tT=jy(),Hl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tT.default(this._root,this._settings)}read(){return this._reader.read()}};ql.default=Hl});var qy=H($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var rT=require("path"),iT=Ms(),Ul=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,rT.sep),this.fsScandirSettings=new iT.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}};$l.default=Ul});var qs=H(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Settings=vt.walkStream=vt.walkSync=vt.walk=void 0;var Uy=Fy(),nT=By(),sT=Hy(),Gl=qy();vt.Settings=Gl.default;function oT(t,e,r){if(typeof e=="function"){new Uy.default(t,Hs()).read(e);return}new Uy.default(t,Hs(e)).read(r)}vt.walk=oT;function aT(t,e){let r=Hs(e);return new sT.default(t,r).read()}vt.walkSync=aT;function lT(t,e){let r=Hs(e);return new nT.default(t,r).read()}vt.walkStream=lT;function Hs(t={}){return t instanceof Gl.default?t:new Gl.default(t)}});var Us=H(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var cT=require("path"),uT=Nr(),$y=Mt(),zl=class{constructor(e){this._settings=e,this._fsStatSettings=new uT.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return cT.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:$y.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!$y.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Wl.default=zl});var Kl=H(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var hT=require("stream"),fT=Nr(),pT=qs(),dT=Us(),Yl=class extends dT.default{constructor(){super(...arguments),this._walkStream=pT.walkStream,this._stat=fT.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hT.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))})}};Vl.default=Yl});var Gy=H(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var mT=qs(),yT=Us(),gT=Kl(),Zl=class extends yT.default{constructor(){super(...arguments),this._walkAsync=mT.walk,this._readerStream=new gT.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))})}};Xl.default=Zl});var zy=H(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var bi=Mt(),Jl=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))}};Ql.default=Jl});var Wy=H(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var _T=zy(),ec=class extends _T.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}};tc.default=ec});var Yy=H(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var $s=Mt(),bT=Wy(),rc=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 bT.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($s.pattern.isAffectDepthOfReadingPattern);return $s.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$s.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!$s.pattern.matchAny(e,r)}};ic.default=rc});var Vy=H(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Dr=Mt(),nc=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}};sc.default=nc});var Ky=H(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var ST=Mt(),oc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return ST.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ac.default=oc});var Xy=H(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var Zy=Mt(),lc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Zy.path.makeAbsolute(this._settings.cwd,r),r=Zy.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};cc.default=lc});var Gs=H(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var wT=require("path"),ET=Yy(),vT=Vy(),RT=Ky(),xT=Xy(),uc=class{constructor(e){this._settings=e,this.errorFilter=new RT.default(this._settings),this.entryFilter=new vT.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ET.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new xT.default(this._settings)}_getRootDirectory(e){return wT.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};hc.default=uc});var Jy=H(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var AT=Gy(),OT=Gs(),fc=class extends OT.default{constructor(){super(...arguments),this._reader=new AT.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)}};pc.default=fc});var Qy=H(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var TT=require("stream"),kT=Kl(),CT=Gs(),dc=class extends CT.default{constructor(){super(...arguments),this._reader=new kT.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new TT.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)}};mc.default=dc});var eg=H(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var LT=Nr(),PT=qs(),IT=Us(),yc=class extends IT.default{constructor(){super(...arguments),this._walkSync=PT.walkSync,this._statSync=LT.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)}};gc.default=yc});var tg=H(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var NT=eg(),DT=Gs(),_c=class extends DT.default{constructor(){super(...arguments),this._reader=new NT.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)}};bc.default=_c});var rg=H(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Si=require("fs"),MT=require("os"),FT=Math.max(MT.cpus().length,1);wi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Si.lstat,lstatSync:Si.lstatSync,stat:Si.stat,statSync:Si.statSync,readdir:Si.readdir,readdirSync:Si.readdirSync};var Sc=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,FT),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({},wi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};wi.default=Sc});var zs=H((XN,sg)=>{"use strict";var ig=ry(),ng=ny(),BT=Jy(),jT=Qy(),HT=tg(),wc=rg(),Mr=Mt();async function Ec(t,e){Ei(t);let r=vc(t,BT.default,e),i=await Promise.all(r);return Mr.array.flatten(i)}(function(t){function e(o,a){Ei(o);let l=vc(o,HT.default,a);return Mr.array.flatten(l)}t.sync=e;function r(o,a){Ei(o);let l=vc(o,jT.default,a);return Mr.stream.merge(l)}t.stream=r;function i(o,a){Ei(o);let l=ng.transform([].concat(o)),c=new wc.default(a);return ig.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})(Ec||(Ec={}));function vc(t,e,r){let i=ng.transform([].concat(t)),n=new wc.default(r),s=ig.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")}sg.exports=Ec});var Hg=H((SM,Ht)=>{function Fc(t){return Ht.exports=Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports,Fc(t)}Ht.exports=Fc,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports});var $g=H((wM,qt)=>{var qg=Hg().default;function Ug(){"use strict";qt.exports=Ug=function(){return e},qt.exports.__esModule=!0,qt.exports.default=qt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(A,L,j){A[L]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(A,L,j){return Object.defineProperty(A,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),A[L]}try{c({},"")}catch{c=function(j,z,D){return j[z]=D}}function u(A,L,j,z){var D=L&&L.prototype instanceof x?L:x,p=Object.create(D.prototype),m=new K(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 S=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&&qg(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 V(A){var L=A.completion||{};L.type="normal",delete L.arg,A.completion=L}function K(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(qg(A)+" is not iterable")}return k.prototype=C,n(S,"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(S),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(S),c(S,l,"Generator"),c(S,o,function(){return this}),c(S,"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,K.prototype={constructor:K,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(V),!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),V(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;V(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(L,j,z){return this.delegate={iterator:N(L),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),_}},e}qt.exports=Ug,qt.exports.__esModule=!0,qt.exports.default=qt.exports});var zg=H((EM,Gg)=>{var Js=$g()();Gg.exports=Js;try{regeneratorRuntime=Js}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Js:Function("r","regeneratorRuntime = r")(Js)}});var ki=H((hF,o_)=>{"use strict";var s_=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"]]);o_.exports=t=>t?Object.keys(t).map(e=>[s_.has(e)?s_.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var so=H((fF,m_)=>{"use strict";var a_=typeof process=="object"&&process?process:{stdout:null,stderr:null},K1=require("events"),l_=require("stream"),c_=require("string_decoder").StringDecoder,$t=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),eo=Symbol("emittingEnd"),kn=Symbol("emittedError"),to=Symbol("closed"),u_=Symbol("read"),ro=Symbol("flush"),h_=Symbol("flushChunk"),Ye=Symbol("encoding"),zt=Symbol("decoder"),io=Symbol("flowing"),Cn=Symbol("paused"),Ci=Symbol("resume"),Se=Symbol("buffer"),Ot=Symbol("pipes"),Oe=Symbol("bufferLength"),Wc=Symbol("bufferPush"),Yc=Symbol("bufferShift"),Ne=Symbol("objectMode"),De=Symbol("destroyed"),Vc=Symbol("emitData"),f_=Symbol("emitEnd"),Kc=Symbol("emitEnd2"),Wt=Symbol("async"),Ln=t=>Promise.resolve().then(t),p_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Z1=p_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),X1=p_&&Symbol.iterator||Symbol("iterator not implemented"),J1=t=>t==="end"||t==="finish"||t==="prefinish",Q1=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),no=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ci](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Zc=class extends no{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)}};m_.exports=class d_ extends l_{constructor(e){super(),this[io]=!1,this[Cn]=!1,this[Ot]=[],this[Se]=[],this[Ne]=e&&e.objectMode||!1,this[Ne]?this[Ye]=null:this[Ye]=e&&e.encoding||null,this[Ye]==="buffer"&&(this[Ye]=null),this[Wt]=e&&!!e.async||!1,this[zt]=this[Ye]?new c_(this[Ye]):null,this[$t]=!1,this[dr]=!1,this[eo]=!1,this[to]=!1,this[kn]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[De]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ot]})}get bufferLength(){return this[Oe]}get encoding(){return this[Ye]}set encoding(e){if(this[Ne])throw new Error("cannot set encoding in objectMode");if(this[Ye]&&e!==this[Ye]&&(this[zt]&&this[zt].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Ye]!==e&&(this[zt]=e?new c_(e):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[zt].write(r)))),this[Ye]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ne]}set objectMode(e){this[Ne]=this[Ne]||!!e}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}write(e,r,i){if(this[$t])throw new Error("write after end");if(this[De])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Wt]?Ln:s=>s();return!this[Ne]&&!Buffer.isBuffer(e)&&(eC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Q1(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ne]?(this.flowing&&this[Oe]!==0&&this[ro](!0),this.flowing?this.emit("data",e):this[Wc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ye]&&!this[zt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ye]&&(e=this[zt].write(e)),this.flowing&&this[Oe]!==0&&this[ro](!0),this.flowing?this.emit("data",e):this[Wc](e),this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Oe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[De])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[Gt](),null;this[Ne]&&(e=null),this[Se].length>1&&!this[Ne]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Oe])]);let r=this[u_](e||null,this[Se][0]);return this[Gt](),r}[u_](e,r){return e===r.length||e===null?this[Yc]():(this[Se][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[Se].length&&!this[$t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[$t]=!0,this.writable=!1,(this.flowing||!this[Cn])&&this[Gt](),this}[Ci](){this[De]||(this[Cn]=!1,this[io]=!0,this.emit("resume"),this[Se].length?this[ro]():this[$t]?this[Gt]():this.emit("drain"))}resume(){return this[Ci]()}pause(){this[io]=!1,this[Cn]=!0}get destroyed(){return this[De]}get flowing(){return this[io]}get paused(){return this[Cn]}[Wc](e){this[Ne]?this[Oe]+=1:this[Oe]+=e.length,this[Se].push(e)}[Yc](){return this[Se].length&&(this[Ne]?this[Oe]-=1:this[Oe]-=this[Se][0].length),this[Se].shift()}[ro](e){do;while(this[h_](this[Yc]()));!e&&!this[Se].length&&!this[$t]&&this.emit("drain")}[h_](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===a_.stdout||e===a_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ot].push(r.proxyErrors?new Zc(this,e,r):new no(this,e,r)),this[Wt]?Ln(()=>this[Ci]()):this[Ci]()),e}unpipe(e){let r=this[Ot].find(i=>i.dest===e);r&&(this[Ot].splice(this[Ot].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ot].length&&!this.flowing?this[Ci]():e==="readable"&&this[Oe]!==0?super.emit("readable"):J1(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[kn]&&(this[Wt]?Ln(()=>r.call(this,this[kn])):r.call(this,this[kn])),i}get emittedEnd(){return this[dr]}[Gt](){!this[eo]&&!this[dr]&&!this[De]&&this[Se].length===0&&this[$t]&&(this[eo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[to]&&this.emit("close"),this[eo]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==De&&this[De])return;if(e==="data")return r?this[Wt]?Ln(()=>this[Vc](r)):this[Vc](r):!1;if(e==="end")return this[f_]();if(e==="close"){if(this[to]=!0,!this[dr]&&!this[De])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[kn]=r;let s=super.emit("error",r);return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Gt](),n}[Vc](e){for(let i of this[Ot])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Gt](),r}[f_](){this[dr]||(this[dr]=!0,this.readable=!1,this[Wt]?Ln(()=>this[Kc]()):this[Kc]())}[Kc](){if(this[zt]){let r=this[zt].end();if(r){for(let i of this[Ot])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ot])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ne]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ne]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ne]?Promise.reject(new Error("cannot concat in objectMode")):this[Ye]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(De,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Z1](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[$t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[$t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(De,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[X1](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[De]?(e?this.emit("error",e):this.emit(De),this):(this[De]=!0,this[Se].length=0,this[Oe]=0,typeof this.close=="function"&&!this[to]&&this.close(),e?this.emit("error",e):this.emit(De),this)}static isStream(e){return!!e&&(e instanceof d_||e instanceof l_||e instanceof K1&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var g_=H((pF,y_)=>{var tC=require("zlib").constants||{ZLIB_VERNUM:4736};y_.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},tC))});var ru=H((dF,A_)=>{"use strict";var __=typeof process=="object"&&process?process:{stdout:null,stderr:null},rC=require("events"),b_=require("stream"),S_=require("string_decoder").StringDecoder,Yt=Symbol("EOF"),Vt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),oo=Symbol("emittingEnd"),Pn=Symbol("emittedError"),ao=Symbol("closed"),w_=Symbol("read"),lo=Symbol("flush"),E_=Symbol("flushChunk"),Ve=Symbol("encoding"),Kt=Symbol("decoder"),co=Symbol("flowing"),In=Symbol("paused"),Li=Symbol("resume"),Te=Symbol("bufferLength"),Xc=Symbol("bufferPush"),Jc=Symbol("bufferShift"),Me=Symbol("objectMode"),Fe=Symbol("destroyed"),Qc=Symbol("emitData"),v_=Symbol("emitEnd"),eu=Symbol("emitEnd2"),Zt=Symbol("async"),Nn=t=>Promise.resolve().then(t),R_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iC=R_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),nC=R_&&Symbol.iterator||Symbol("iterator not implemented"),sC=t=>t==="end"||t==="finish"||t==="prefinish",oC=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,aC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=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()}},tu=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)}};A_.exports=class x_ extends b_{constructor(e){super(),this[co]=!1,this[In]=!1,this.pipes=[],this.buffer=[],this[Me]=e&&e.objectMode||!1,this[Me]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[Zt]=e&&!!e.async||!1,this[Kt]=this[Ve]?new S_(this[Ve]):null,this[Yt]=!1,this[mr]=!1,this[oo]=!1,this[ao]=!1,this[Pn]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[Fe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ve]}set encoding(e){if(this[Me])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[Kt]&&this[Kt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[Kt]=e?new S_(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Kt].write(r)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Me]}set objectMode(e){this[Me]=this[Me]||!!e}get async(){return this[Zt]}set async(e){this[Zt]=this[Zt]||!!e}write(e,r,i){if(this[Yt])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Zt]?Nn:s=>s();return!this[Me]&&!Buffer.isBuffer(e)&&(aC(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):oC(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Me]?(this.flowing&&this[Te]!==0&&this[lo](!0),this.flowing?this.emit("data",e):this[Xc](e),this[Te]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ve]&&!this[Kt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[Kt].write(e)),this.flowing&&this[Te]!==0&&this[lo](!0),this.flowing?this.emit("data",e):this[Xc](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[Vt](),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[w_](e||null,this.buffer[0]);return this[Vt](),r}[w_](e,r){return e===r.length||e===null?this[Jc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Yt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Yt]=!0,this.writable=!1,(this.flowing||!this[In])&&this[Vt](),this}[Li](){this[Fe]||(this[In]=!1,this[co]=!0,this.emit("resume"),this.buffer.length?this[lo]():this[Yt]?this[Vt]():this.emit("drain"))}resume(){return this[Li]()}pause(){this[co]=!1,this[In]=!0}get destroyed(){return this[Fe]}get flowing(){return this[co]}get paused(){return this[In]}[Xc](e){this[Me]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[Jc](){return this.buffer.length&&(this[Me]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[lo](e){do;while(this[E_](this[Jc]()));!e&&!this.buffer.length&&!this[Yt]&&this.emit("drain")}[E_](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===__.stdout||e===__.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new tu(this,e,r):new uo(this,e,r)),this[Zt]?Nn(()=>this[Li]()):this[Li]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Li]():e==="readable"&&this[Te]!==0?super.emit("readable"):sC(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Pn]&&(this[Zt]?Nn(()=>r.call(this,this[Pn])):r.call(this,this[Pn])),i}get emittedEnd(){return this[mr]}[Vt](){!this[oo]&&!this[mr]&&!this[Fe]&&this.buffer.length===0&&this[Yt]&&(this[oo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ao]&&this.emit("close"),this[oo]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return;if(e==="data")return r?this[Zt]?Nn(()=>this[Qc](r)):this[Qc](r):!1;if(e==="end")return this[v_]();if(e==="close"){if(this[ao]=!0,!this[mr]&&!this[Fe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Pn]=r;let s=super.emit("error",r);return this[Vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Vt](),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[Vt](),n}[Qc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Vt](),r}[v_](){this[mr]||(this[mr]=!0,this.readable=!1,this[Zt]?Nn(()=>this[eu]()):this[eu]())}[eu](){if(this[Kt]){let r=this[Kt].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[Ve]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Fe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[iC](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Yt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Yt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Fe,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[nC](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Fe]?(e?this.emit("error",e):this.emit(Fe),this):(this[Fe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[ao]&&this.close(),e?this.emit("error",e):this.emit(Fe),this)}static isStream(e){return!!e&&(e instanceof x_||e instanceof b_||e instanceof rC&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var _u=H(et=>{"use strict";var au=require("assert"),yr=require("buffer").Buffer,k_=require("zlib"),qr=et.constants=g_(),lC=ru(),O_=yr.concat,Ur=Symbol("_superWrite"),Ii=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},cC=Symbol("opts"),Dn=Symbol("flushFlag"),T_=Symbol("finishFlushFlag"),gu=Symbol("fullFlushFlag"),pe=Symbol("handle"),ho=Symbol("onError"),Pi=Symbol("sawError"),iu=Symbol("level"),nu=Symbol("strategy"),su=Symbol("ended"),mF=Symbol("_defaultFullFlush"),fo=class extends lC{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Pi]=!1,this[su]=!1,this[cC]=e,this[Dn]=e.flush,this[T_]=e.finishFlush;try{this[pe]=new k_[r](e)}catch(i){throw new Ii(i)}this[ho]=i=>{this[Pi]||(this[Pi]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ho](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 au(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[gu]),this.write(Object.assign(yr.alloc(0),{[Dn]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[T_]),this[su]=!0,super.end(null,null,i)}get ended(){return this[su]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Pi])return;au(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},yr.concat=c=>c;let a;try{let c=typeof e[Dn]=="number"?e[Dn]:this[Dn];a=this[pe]._processChunk(e,c),yr.concat=O_}catch(c){yr.concat=O_,this[ho](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[ho](new Ii(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Ur](yr.from(a[0]));for(let c=1;c<a.length;c++)l=this[Ur](a[c])}else l=this[Ur](yr.from(a));return i&&i(),l}[Ur](e){return super.write(e)}},Xt=class extends fo{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[gu]=qr.Z_FULL_FLUSH,this[iu]=e.level,this[nu]=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[iu]!==e||this[nu]!==r){this.flush(qr.Z_SYNC_FLUSH),au(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[iu]=e,this[nu]=r)}}}},lu=class extends Xt{constructor(e){super(e,"Deflate")}},cu=class extends Xt{constructor(e){super(e,"Inflate")}},ou=Symbol("_portable"),uu=class extends Xt{constructor(e){super(e,"Gzip"),this[ou]=e&&!!e.portable}[Ur](e){return this[ou]?(this[ou]=!1,e[9]=255,super[Ur](e)):super[Ur](e)}},hu=class extends Xt{constructor(e){super(e,"Gunzip")}},fu=class extends Xt{constructor(e){super(e,"DeflateRaw")}},pu=class extends Xt{constructor(e){super(e,"InflateRaw")}},du=class extends Xt{constructor(e){super(e,"Unzip")}},po=class extends fo{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[gu]=qr.BROTLI_OPERATION_FLUSH}},mu=class extends po{constructor(e){super(e,"BrotliCompress")}},yu=class extends po{constructor(e){super(e,"BrotliDecompress")}};et.Deflate=lu;et.Inflate=cu;et.Gzip=uu;et.Gunzip=hu;et.DeflateRaw=fu;et.InflateRaw=pu;et.Unzip=du;typeof k_.BrotliCompress=="function"?(et.BrotliCompress=mu,et.BrotliDecompress=yu):et.BrotliCompress=et.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ni=H((_F,C_)=>{var uC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;C_.exports=uC!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var mo=H((SF,L_)=>{"use strict";var hC=so(),bu=Ni(),Su=Symbol("slurp");L_.exports=class extends hC{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=bu(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=bu(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Su](r),i&&this[Su](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))}[Su](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?bu(e[i]):e[i])}}});var wu=H(yo=>{"use strict";yo.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"]]);yo.code=new Map(Array.from(yo.name).map(t=>[t[1],t[0]]))});var D_=H((EF,N_)=>{"use strict";var fC=(t,e)=>{if(Number.isSafeInteger(t))t<0?dC(t,e):pC(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pC=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},dC=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=P_(n):n===0?e[i-1]=0:(r=!0,e[i-1]=I_(n))}},mC=t=>{let e=t[0],r=e===128?gC(t.slice(1,t.length)):e===255?yC(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},yC=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=P_(s):s===0?o=s:(i=!0,o=I_(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},gC=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},P_=t=>(255^t)&255,I_=t=>(255^t)+1&255;N_.exports={encode:fC,parse:mC}});var Mi=H((vF,F_)=>{"use strict";var Eu=wu(),Di=require("path").posix,M_=D_(),vu=Symbol("slurp"),tt=Symbol("type"),Au=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[tt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=$r(e,r,100),this.mode=gr(e,r+100,8),this.uid=gr(e,r+108,8),this.gid=gr(e,r+116,8),this.size=gr(e,r+124,12),this.mtime=Ru(e,r+136,12),this.cksum=gr(e,r+148,12),this[vu](i),this[vu](n,!0),this[tt]=$r(e,r+156,1),this[tt]===""&&(this[tt]="0"),this[tt]==="0"&&this.path.slice(-1)==="/"&&(this[tt]="5"),this[tt]==="5"&&(this.size=0),this.linkpath=$r(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=$r(e,r+265,32),this.gname=$r(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=$r(e,r+345,155);this.path=o+"/"+this.path}else{let o=$r(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ru(e,r+476,12),this.ctime=Ru(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)}[vu](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=_C(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=_r(e,r+100,8,this.mode)||this.needPax,this.needPax=_r(e,r+108,8,this.uid)||this.needPax,this.needPax=_r(e,r+116,8,this.gid)||this.needPax,this.needPax=_r(e,r+124,12,this.size)||this.needPax,this.needPax=xu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[tt].charCodeAt(0),this.needPax=Gr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Gr(e,r+265,32,this.uname)||this.needPax,this.needPax=Gr(e,r+297,32,this.gname)||this.needPax,this.needPax=_r(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_r(e,r+337,8,this.devmin)||this.needPax,this.needPax=Gr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Gr(e,r+345,155,o)||this.needPax:(this.needPax=Gr(e,r+345,130,o)||this.needPax,this.needPax=xu(e,r+476,12,this.atime)||this.needPax,this.needPax=xu(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 Eu.name.get(this[tt])||this[tt]}get typeKey(){return this[tt]}set type(e){Eu.code.has(e)?this[tt]=Eu.code.get(e):this[tt]=e}},_C=(t,e)=>{let i=t,n="",s,o=Di.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Di.dirname(i),i=Di.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=Di.join(Di.basename(n),i),n=Di.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},$r=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ru=(t,e,r)=>bC(gr(t,e,r)),bC=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?M_.parse(t.slice(e,e+r)):wC(t,e,r),SC=t=>isNaN(t)?null:t,wC=(t,e,r)=>SC(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),EC={12:8589934591,8:2097151},_r=(t,e,r,i)=>i===null?!1:i>EC[r]||i<0?(M_.encode(i,t.slice(e,e+r)),!0):(vC(t,e,r,i),!1),vC=(t,e,r,i)=>t.write(RC(i,r),e,r,"ascii"),RC=(t,e)=>xC(Math.floor(t).toString(8),e),xC=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",xu=(t,e,r,i)=>i===null?!1:_r(t,e,r,i.getTime()/1e3),AC=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+AC,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);F_.exports=Au});var go=H((RF,B_)=>{"use strict";var OC=Mi(),TC=require("path"),Mn=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new OC({path:("PaxHeader/"+TC.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
7
  `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Mn.parse=(t,e,r)=>new Mn(kC(CC(t),e),r);var kC=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,CC=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(LC,Object.create(null)),LC=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};B_.exports=Mn});var Fi=H((xF,j_)=>{j_.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 _o=H((AF,H_)=>{"use strict";H_.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 Tu=H((TF,q_)=>{"use strict";var bo=["|","<",">","?",":"],Ou=bo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),PC=new Map(bo.map((t,e)=>[t,Ou[e]])),IC=new Map(Ou.map((t,e)=>[t,bo[e]]));q_.exports={encode:t=>bo.reduce((e,r)=>e.split(r).join(PC.get(r)),t),decode:t=>Ou.reduce((e,r)=>e.split(r).join(IC.get(r)),t)}});var ku=H((kF,$_)=>{var{isAbsolute:NC,parse:U_}=require("path").win32;$_.exports=t=>{let e="",r=U_(t);for(;NC(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=U_(t)}return[e,t]}});var z_=H((CF,G_)=>{"use strict";G_.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 ju=H((IF,sb)=>{"use strict";var J_=so(),Q_=go(),eb=Mi(),kt=require("fs"),W_=require("path"),Tt=Ni(),DC=Fi(),tb=(t,e)=>e?(t=Tt(t).replace(/^\.(\/|$)/,""),DC(e)+"/"+t):Tt(t),MC=16*1024*1024,Y_=Symbol("process"),K_=Symbol("file"),V_=Symbol("directory"),Lu=Symbol("symlink"),Z_=Symbol("hardlink"),Fn=Symbol("header"),wo=Symbol("read"),Pu=Symbol("lstat"),So=Symbol("onlstat"),Iu=Symbol("onread"),Nu=Symbol("onreadlink"),Du=Symbol("openfile"),Mu=Symbol("onopenfile"),br=Symbol("close"),Eo=Symbol("mode"),Fu=Symbol("awaitDrain"),Cu=Symbol("ondrain"),Ct=Symbol("prefix"),X_=Symbol("hadError"),rb=_o(),FC=Tu(),ib=ku(),nb=z_(),vo=rb(class extends J_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Tt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||MC,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Tt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Tt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=ib(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=FC.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Tt(r.absolute||W_.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[So](this.statCache.get(this.absolute)):this[Pu]()}emit(e,...r){return e==="error"&&(this[X_]=!0),super.emit(e,...r)}[Pu](){kt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[So](r)})}[So](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=jC(e),this.emit("stat",e),this[Y_]()}[Y_](){switch(this.type){case"File":return this[K_]();case"Directory":return this[V_]();case"SymbolicLink":return this[Lu]();default:return this.end()}}[Eo](e){return nb(e,this.type==="Directory",this.portable)}[Ct](e){return tb(e,this.prefix)}[Fn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new eb({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this[Eo](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Q_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[V_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Fn](),this.end()}[Lu](){kt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Nu](r)})}[Nu](e){this.linkpath=Tt(e),this[Fn](),this.end()}[Z_](e){this.type="Link",this.linkpath=Tt(W_.relative(this.cwd,e)),this.stat.size=0,this[Fn](),this.end()}[K_](){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[Z_](r)}this.linkCache.set(e,this.absolute)}if(this[Fn](),this.stat.size===0)return this.end();this[Du]()}[Du](){kt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Mu](r)})}[Mu](e){if(this.fd=e,this[X_])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[wo]()}[wo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;kt.read(e,r,i,n,s,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Iu](a)})}[br](e){kt.close(this.fd,e)}[Iu](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[Cu]():this[Fu](()=>this[Cu]())}[Fu](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)}[Cu](){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[wo]()}}),Bu=class extends vo{[Pu](){this[So](kt.lstatSync(this.absolute))}[Lu](){this[Nu](kt.readlinkSync(this.absolute))}[Du](){this[Mu](kt.openSync(this.absolute,"r"))}[wo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=kt.readSync(r,i,n,s,o);this[Iu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Fu](e){e()}[br](e){kt.closeSync(this.fd),e()}},BC=rb(class extends J_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Tt(e.path),this.mode=this[Eo](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Tt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=ib(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new eb({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Q_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Ct](e){return tb(e,this.prefix)}[Eo](e){return nb(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()}});vo.Sync=Bu;vo.Tar=BC;var jC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";sb.exports=vo});var ab=H((NF,ob)=>{"use strict";ob.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Hu=H((DF,lb)=>{"use strict";lb.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}oe.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};oe.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};oe.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)qC(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)UC(this,arguments[t]);return this.length};oe.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};oe.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};oe.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};oe.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};oe.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};oe.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};oe.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};oe.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};oe.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};oe.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};oe.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};oe.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=HC(this,n,r[i]);return s};oe.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function HC(t,e,r){var i=e===t.head?new zr(r,null,e,t):new zr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function qC(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function UC(t,e){t.head=new zr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function zr(t,e,r,i){if(!(this instanceof zr))return new zr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{ab()(oe)}catch{}});var Po=H((FF,mb)=>{"use strict";var Co=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},$C=so(),GC=_u(),zC=mo(),Vu=ju(),WC=Vu.Sync,YC=Vu.Tar,KC=Hu(),cb=Buffer.alloc(1024),Ao=Symbol("onStat"),Ro=Symbol("ended"),Lt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),xo=Symbol("processing"),ub=Symbol("processJob"),Pt=Symbol("jobs"),qu=Symbol("jobDone"),Oo=Symbol("addFSEntry"),hb=Symbol("addTarEntry"),zu=Symbol("stat"),Wu=Symbol("readdir"),To=Symbol("onreaddir"),ko=Symbol("pipe"),fb=Symbol("entry"),Uu=Symbol("entryOpt"),Yu=Symbol("writeEntryClass"),db=Symbol("write"),$u=Symbol("ondrain"),Lo=require("fs"),pb=require("path"),VC=_o(),Gu=Ni(),Zu=VC(class extends $C{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Gu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Yu]=Vu,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new GC.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$u]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$u]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Lt]=new KC,this[Pt]=0,this.jobs=+e.jobs||4,this[xo]=!1,this[Ro]=!1}[db](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Ro]=!0,this[Wr](),this}write(e){if(this[Ro])throw new Error("write after end");return e instanceof zC?this[hb](e):this[Oo](e),this.flowing}[hb](e){let r=Gu(pb.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Co(e.path,r,!1);i.entry=new YC(e,this[Uu](i)),i.entry.on("end",n=>this[qu](i)),this[Pt]+=1,this[Lt].push(i)}this[Wr]()}[Oo](e){let r=Gu(pb.resolve(this.cwd,e));this[Lt].push(new Co(e,r)),this[Wr]()}[zu](e){e.pending=!0,this[Pt]+=1;let r=this.follow?"stat":"lstat";Lo[r](e.absolute,(i,n)=>{e.pending=!1,this[Pt]-=1,i?this.emit("error",i):this[Ao](e,n)})}[Ao](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Wu](e){e.pending=!0,this[Pt]+=1,Lo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Pt]-=1,r)return this.emit("error",r);this[To](e,i)})}[To](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[xo]){this[xo]=!0;for(let e=this[Lt].head;e!==null&&this[Pt]<this.jobs;e=e.next)if(this[ub](e.value),e.value.ignore){let r=e.next;this[Lt].removeNode(e),e.next=r}this[xo]=!1,this[Ro]&&!this[Lt].length&&this[Pt]===0&&(this.zip?this.zip.end(cb):(super.write(cb),super.end()))}}get[Bi](){return this[Lt]&&this[Lt].head&&this[Lt].head.value}[qu](e){this[Lt].shift(),this[Pt]-=1,this[Wr]()}[ub](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[ko](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ao](e,this.statCache.get(e.absolute)):this[zu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[To](e,this.readdirCache.get(e.absolute)):this[Wu](e),!e.readdir))){if(e.entry=this[fb](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[ko](e)}}}[Uu](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}}[fb](e){this[Pt]+=1;try{return new this[Yu](e.path,this[Uu](e)).on("end",()=>this[qu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$u](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[ko](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Oo](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()}}),Ku=class extends Zu{constructor(e){super(e),this[Yu]=WC}pause(){}resume(){}[zu](e){let r=this.follow?"statSync":"lstatSync";this[Ao](e,Lo[r](e.absolute))}[Wu](e,r){this[To](e,Lo.readdirSync(e.absolute))}[ko](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Oo](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[db](n)})}};Zu.Sync=Ku;mb.exports=Zu});var Wi=H(jn=>{"use strict";var ZC=ru(),XC=require("events").EventEmitter,Ve=require("fs"),Qu=Ve.writev;if(!Qu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Qu=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Gi=Symbol("_autoClose"),mt=Symbol("_close"),Bn=Symbol("_ended"),he=Symbol("_fd"),yb=Symbol("_finished"),Sr=Symbol("_flags"),Xu=Symbol("_flush"),eh=Symbol("_handleChunk"),th=Symbol("_makeBuf"),Fo=Symbol("_mode"),Io=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Ju=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Jt=Symbol("_path"),Yr=Symbol("_pos"),It=Symbol("_queue"),qi=Symbol("_read"),gb=Symbol("_readSize"),wr=Symbol("_reading"),No=Symbol("_remain"),_b=Symbol("_size"),Do=Symbol("_write"),ji=Symbol("_writing"),Mo=Symbol("_defaultFlag"),$i=Symbol("_errored"),Bo=class extends ZC{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[gb]=r.readSize||16*1024*1024,this[wr]=!1,this[_b]=typeof r.size=="number"?r.size:1/0,this[No]=this[_b],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[Er]()}get fd(){return this[he]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Er](){Ve.open(this[Jt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[Ui](e):(this[he]=r,this.emit("open",r),this[qi]())}[th](){return Buffer.allocUnsafe(Math.min(this[gb],this[No]))}[qi](){if(!this[wr]){this[wr]=!0;let e=this[th]();if(e.length===0)return process.nextTick(()=>this[Ju](null,0,e));Ve.read(this[he],e,0,e.length,null,(r,i,n)=>this[Ju](r,i,n))}}[Ju](e,r,i){this[wr]=!1,e?this[Ui](e):this[eh](r,i)&&this[qi]()}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[wr]=!0,this[mt](),this.emit("error",e)}[eh](e,r){let i=!1;return this[No]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[No]<=0)&&(i=!1,this[mt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[qi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},rh=class extends Bo{[Er](){let e=!0;try{this[zi](null,Ve.openSync(this[Jt],"r")),e=!1}finally{e&&this[mt]()}}[qi](){let e=!0;try{if(!this[wr]){this[wr]=!0;do{let r=this[th](),i=r.length===0?0:Ve.readSync(this[he],r,0,r.length,null);if(!this[eh](i,r))break}while(!0);this[wr]=!1}e=!1}finally{e&&this[mt]()}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}},jo=class extends XC{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[ji]=!1,this[Bn]=!1,this[Io]=!1,this[It]=[],this[Jt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Fo]=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[Mo]=r.flags===void 0,this[Sr]=this[Mo]?i:r.flags,this[he]===null&&this[Er]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Jt]}[Ui](e){this[mt](),this[ji]=!0,this.emit("error",e)}[Er](){Ve.open(this[Jt],this[Sr],this[Fo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Mo]&&this[Sr]==="r+"&&e&&e.code==="ENOENT"?(this[Sr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Xu]())}end(e,r){return e&&this.write(e,r),this[Bn]=!0,!this[ji]&&!this[It].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bn]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[It].length?(this[It].push(e),this[Io]=!0,!1):(this[ji]=!0,this[Do](e),!0)}[Do](e){Ve.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[Ui](e):(this[Yr]!==null&&(this[Yr]+=r),this[It].length?this[Xu]():(this[ji]=!1,this[Bn]&&!this[yb]?(this[yb]=!0,this[mt](),this.emit("finish")):this[Io]&&(this[Io]=!1,this.emit("drain"))))}[Xu](){if(this[It].length===0)this[Bn]&&this[Hi](null,0);else if(this[It].length===1)this[Do](this[It].pop());else{let e=this[It];this[It]=[],Qu(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},ih=class extends jo{[Er](){let e;if(this[Mo]&&this[Sr]==="r+")try{e=Ve.openSync(this[Jt],this[Sr],this[Fo])}catch(r){if(r.code==="ENOENT")return this[Sr]="w",this[Er]();throw r}else e=Ve.openSync(this[Jt],this[Sr],this[Fo]);this[zi](null,e)}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ve.closeSync(e),this.emit("close")}}[Do](e){let r=!0;try{this[Hi](null,Ve.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[mt]()}catch{}}}};jn.ReadStream=Bo;jn.ReadStreamSync=rh;jn.WriteStream=jo;jn.WriteStreamSync=ih});var Wo=H((HF,Ab)=>{"use strict";var JC=_o(),QC=Mi(),eL=require("events"),tL=Hu(),rL=1024*1024,iL=mo(),bb=go(),nL=_u(),{nextTick:sL}=require("process"),nh=Buffer.from([31,139]),at=Symbol("state"),Kr=Symbol("writeEntry"),Qt=Symbol("readEntry"),sh=Symbol("nextEntry"),wb=Symbol("processEntry"),lt=Symbol("extendedHeader"),Hn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),Sb=Symbol("emitMeta"),de=Symbol("buffer"),er=Symbol("queue"),Vr=Symbol("ended"),Eb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ze=Symbol("unzip"),Ho=Symbol("consumeChunk"),qo=Symbol("consumeChunkSub"),oh=Symbol("consumeBody"),vb=Symbol("consumeMeta"),Rb=Symbol("consumeHeader"),Uo=Symbol("consuming"),ah=Symbol("bufferConcat"),lh=Symbol("maybeEnd"),qn=Symbol("writing"),Rr=Symbol("aborted"),$o=Symbol("onDone"),Xr=Symbol("sawValidEntry"),Go=Symbol("sawNullBlock"),zo=Symbol("sawEOF"),xb=Symbol("closeStream"),oL=t=>!0;Ab.exports=JC(class extends eL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on($o,r=>{(this[at]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on($o,e.ondone):this.on($o,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||rL,this.filter=typeof e.filter=="function"?e.filter:oL,this.writable=!0,this.readable=!1,this[er]=new tL,this[de]=null,this[Qt]=null,this[Kr]=null,this[at]="begin",this[vr]="",this[lt]=null,this[Hn]=null,this[Vr]=!1,this[Ze]=null,this[Rr]=!1,this[Go]=!1,this[zo]=!1,this.on("end",()=>this[xb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Rb](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new QC(e,r,this[lt],this[Hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Go]?(this[zo]=!0,this[at]==="begin"&&(this[at]="header"),this[Zr]("eof")):(this[Go]=!0,this[Zr]("nullBlock"));else if(this[Go]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Kr]=new iL(i,this[lt],this[Hn]);if(!this[Xr])if(s.remain){let o=()=>{s.invalid||(this[Xr]=!0)};s.on("end",o)}else this[Xr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[at]="ignore",s.resume()):s.size>0&&(this[vr]="",s.on("data",o=>this[vr]+=o),this[at]="meta"):(this[lt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[at]=s.remain?"ignore":"header",s.resume()):(s.remain?this[at]="body":(this[at]="header",s.end()),this[Qt]?this[er].push(s):(this[er].push(s),this[sh]())))}}}[xb](){sL(()=>this.emit("close"))}[wb](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Qt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[sh]()),r=!1)):(this[Qt]=null,r=!1),r}[sh](){do;while(this[wb](this[er].shift()));if(!this[er].length){let e=this[Qt];!e||e.flowing||e.size===e.remain?this[qn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[oh](e,r){let i=this[Kr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[at]="header",this[Kr]=null,i.end()),s.length}[vb](e,r){let i=this[Kr],n=this[oh](e,r);return this[Kr]||this[Sb](i),n}[Zr](e,r,i){!this[er].length&&!this[Qt]?this.emit(e,r,i):this[er].push([e,r,i])}[Sb](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[lt]=bb.parse(this[vr],this[lt],!1);break;case"GlobalExtendedHeader":this[Hn]=bb.parse(this[vr],this[Hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[lt]=this[lt]||Object.create(null),this[lt].path=this[vr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[lt]=this[lt]||Object.create(null),this[lt].linkpath=this[vr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Rr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Rr])return;if(this[Ze]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<nh.length)return this[de]=e,!0;for(let i=0;this[Ze]===null&&i<nh.length;i++)e[i]!==nh[i]&&(this[Ze]=!1);if(this[Ze]===null){let i=this[Vr];this[Vr]=!1,this[Ze]=new nL.Unzip,this[Ze].on("data",s=>this[Ho](s)),this[Ze].on("error",s=>this.abort(s)),this[Ze].on("end",s=>{this[Vr]=!0,this[Ho]()}),this[qn]=!0;let n=this[Ze][i?"end":"write"](e);return this[qn]=!1,n}}this[qn]=!0,this[Ze]?this[Ze].write(e):this[Ho](e),this[qn]=!1;let r=this[er].length?!1:this[Qt]?this[Qt].flowing:!0;return!r&&!this[er].length&&this[Qt].once("drain",i=>this.emit("drain")),r}[ah](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[lh](){if(this[Vr]&&!this[Eb]&&!this[Rr]&&!this[Uo]){this[Eb]=!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]($o)}}[Ho](e){if(this[Uo])this[ah](e);else if(!e&&!this[de])this[lh]();else{if(this[Uo]=!0,this[de]){this[ah](e);let r=this[de];this[de]=null,this[qo](r)}else this[qo](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[zo];){let r=this[de];this[de]=null,this[qo](r)}this[Uo]=!1}(!this[de]||this[Vr])&&this[lh]()}[qo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[zo];)switch(this[at]){case"begin":case"header":this[Rb](e,r),r+=512;break;case"ignore":case"body":r+=this[oh](e,r);break;case"meta":r+=this[vb](e,r);break;default:throw new Error("invalid state: "+this[at])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Rr]||(this[Ze]?this[Ze].end(e):(this[Vr]=!0,this.write(e)))}})});var Yo=H((qF,Cb)=>{"use strict";var aL=ki(),Tb=Wo(),Yi=require("fs"),lL=Wi(),Ob=require("path"),ch=Fi();Cb.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=aL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&uL(i,e),i.noResume||cL(i),i.file&&i.sync?hL(i):i.file?fL(i,r):kb(i)};var cL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},uL=(t,e)=>{let r=new Map(e.map(s=>[ch(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Ob.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Ob.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ch(s)):s=>n(ch(s))},hL=t=>{let e=kb(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");a<s.size;){let c=Yi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},fL=(t,e)=>{let r=new Tb(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Yi.stat(n,(l,c)=>{if(l)a(l);else{let u=new lL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},kb=t=>new Tb(t)});var Mb=H((UF,Db)=>{"use strict";var pL=ki(),Ko=Po(),Lb=Wi(),Pb=Yo(),Ib=require("path");Db.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=pL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?dL(i,e):i.file?mL(i,e,r):i.sync?yL(i,e):gL(i,e)};var dL=(t,e)=>{let r=new Ko.Sync(t),i=new Lb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Nb(r,e)},mL=(t,e,r)=>{let i=new Ko(t),n=new Lb.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 uh(i,e),r?s.then(r,r):s},Nb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Pb({file:Ib.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 Pb({file:Ib.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},yL=(t,e)=>{let r=new Ko.Sync(t);return Nb(r,e),r},gL=(t,e)=>{let r=new Ko(t);return uh(r,e),r}});var hh=H(($F,$b)=>{"use strict";var _L=ki(),Fb=Po(),rt=require("fs"),Bb=Wi(),jb=Yo(),Hb=require("path"),qb=Mi();$b.exports=(t,e,r)=>{let i=_L(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?bL(i,e):SL(i,e,r)};var bL=(t,e)=>{let r=new Fb.Sync(t),i=!0,n,s;try{try{n=rt.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=rt.openSync(t.file,"w+");else throw l}let o=rt.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=rt.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new qb(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,wL(t,r,s,n,e)}finally{if(i)try{rt.closeSync(n)}catch{}}},wL=(t,e,r,i,n)=>{let s=new Bb.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),EL(e,n)},SL=(t,e,r)=>{e=Array.from(e);let i=new Fb(t),n=(o,a,l)=>{let c=(g,y)=>{g?rt.close(o,_=>l(g)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return c(g);if(h+=y,h<512&&y)return rt.read(o,f,h,f.length-h,u+h,d);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let _=new qb(f);if(!_.cksumValid)return c(null,u);let x=512*Math.ceil(_.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),h=0,rt.read(o,f,0,512,u,d)};rt.read(o,f,0,512,u,d)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",rt.open(t.file,l,c);if(u)return a(u);rt.fstat(h,(f,d)=>{if(f)return rt.close(h,()=>a(f));n(h,d.size,(g,y)=>{if(g)return a(g);let _=new Bb.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),Ub(i,e)})})};rt.open(t.file,l,c)});return r?s.then(r,r):s},EL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?jb({file:Hb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ub=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return jb({file:Hb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ub(t,e));t.add(r)}t.end()}});var zb=H((GF,Gb)=>{"use strict";var vL=ki(),RL=hh();Gb.exports=(t,e,r)=>{let i=vL(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),xL(i),RL(i,e,r)};var xL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Kb=H((zF,Yb)=>{var{promisify:Wb}=require("util"),xr=require("fs"),AL=t=>{if(!t)t={mode:511,fs:xr};else if(typeof t=="object")t={mode:511,fs:xr,...t};else if(typeof t=="number")t={mode:t,fs:xr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:xr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||xr.mkdir,t.mkdirAsync=Wb(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=Wb(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};Yb.exports=AL});var Zb=H((WF,Vb)=>{var OL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:TL,parse:kL}=require("path"),CL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=TL(t),OL==="win32"){let e=/[*|"<>?:]/,{root:r}=kL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Vb.exports=CL});var tw=H((YF,ew)=>{var{dirname:Xb}=require("path"),Jb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Jb(t,Xb(e),e):void 0),Qb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Qb(t,Xb(e),e):void 0}};ew.exports={findMade:Jb,findMadeSync:Qb}});var dh=H((KF,iw)=>{var{dirname:rw}=require("path"),fh=(t,e,r)=>{e.recursive=!1;let i=rw(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 fh(i,e).then(s=>fh(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})})},ph=(t,e,r)=>{let i=rw(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 ph(t,e,ph(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};iw.exports={mkdirpManual:fh,mkdirpManualSync:ph}});var ow=H((VF,sw)=>{var{dirname:nw}=require("path"),{findMade:LL,findMadeSync:PL}=tw(),{mkdirpManual:IL,mkdirpManualSync:NL}=dh(),DL=(t,e)=>(e.recursive=!0,nw(t)===t?e.mkdirAsync(t,e):LL(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return IL(t,e);throw n}))),ML=(t,e)=>{if(e.recursive=!0,nw(t)===t)return e.mkdirSync(t,e);let i=PL(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return NL(t,e);throw n}};sw.exports={mkdirpNative:DL,mkdirpNativeSync:ML}});var uw=H((ZF,cw)=>{var aw=require("fs"),FL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,mh=FL.replace(/^v/,"").split("."),lw=+mh[0]>10||+mh[0]==10&&+mh[1]>=12,BL=lw?t=>t.mkdir===aw.mkdir:()=>!1,jL=lw?t=>t.mkdirSync===aw.mkdirSync:()=>!1;cw.exports={useNative:BL,useNativeSync:jL}});var yw=H((XF,mw)=>{var Ki=Kb(),Vi=Zb(),{mkdirpNative:hw,mkdirpNativeSync:fw}=ow(),{mkdirpManual:pw,mkdirpManualSync:dw}=dh(),{useNative:HL,useNativeSync:qL}=uw(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),HL(e)?hw(t,e):pw(t,e)),UL=(t,e)=>(t=Vi(t),e=Ki(e),qL(e)?fw(t,e):dw(t,e));Zi.sync=UL;Zi.native=(t,e)=>hw(Vi(t),Ki(e));Zi.manual=(t,e)=>pw(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>fw(Vi(t),Ki(e));Zi.manualSync=(t,e)=>dw(Vi(t),Ki(e));mw.exports=Zi});var vw=H((JF,Ew)=>{"use strict";var ct=require("fs"),Jr=require("path"),$L=ct.lchown?"lchown":"chown",GL=ct.lchownSync?"lchownSync":"chownSync",_w=ct.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),gw=(t,e,r)=>{try{return ct[GL](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},zL=(t,e,r)=>{try{return ct.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},WL=_w?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ct.chown(t,e,r,i)}:(t,e,r,i)=>i,yh=_w?(t,e,r)=>{try{return gw(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;zL(t,e,r)}}:(t,e,r)=>gw(t,e,r),YL=process.version,bw=(t,e,r)=>ct.readdir(t,e,r),KL=(t,e)=>ct.readdirSync(t,e);/^v4\./.test(YL)&&(bw=(t,e,r)=>ct.readdir(t,r));var Vo=(t,e,r,i)=>{ct[$L](t,e,r,WL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},ww=(t,e,r,i,n)=>{if(typeof e=="string")return ct.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,ww(t,o,r,i,n)});if(e.isDirectory())gh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Vo(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Vo(s,r,i,n)}},gh=(t,e,r,i)=>{bw(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 Vo(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Vo(t,e,r,i)}};s.forEach(c=>ww(t,c,e,r,l))})},VL=(t,e,r,i)=>{if(typeof e=="string")try{let n=ct.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&Sw(Jr.resolve(t,e.name),r,i),yh(Jr.resolve(t,e.name),r,i)},Sw=(t,e,r)=>{let i;try{i=KL(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return yh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>VL(t,n,e,r)),yh(t,e,r)};Ew.exports=gh;gh.sync=Sw});var Ow=H((QF,_h)=>{"use strict";var Rw=yw(),ut=require("fs"),Zo=require("path"),xw=vw(),yt=Ni(),Xo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Jo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Qo=(t,e)=>t.get(yt(e)),Un=(t,e,r)=>t.set(yt(e),r),ZL=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Jo(t,r&&r.code||"ENOTDIR")),e(r)})};_h.exports=(t,e,r)=>{t=yt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=yt(e.cwd),d=(_,x)=>{_?r(_):(Un(h,t,!0),x&&l?xw(x,o,a,k=>d(k)):s?ut.chmod(t,n,r):r())};if(h&&Qo(h,t)===!0)return d();if(t===f)return ZL(t,d);if(c)return Rw(t,{mode:n}).then(_=>d(null,_),d);let y=yt(Zo.relative(f,t)).split("/");ea(f,y,n,h,u,f,null,d)};var ea=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=yt(Zo.resolve(t+"/"+l));if(Qo(i,c))return ea(c,e,r,i,n,s,o,a);ut.mkdir(c,r,Aw(c,e,r,i,n,s,o,a))},Aw=(t,e,r,i,n,s,o,a)=>l=>{l?ut.lstat(t,(c,u)=>{if(c)c.path=c.path&&yt(c.path),a(c);else if(u.isDirectory())ea(t,e,r,i,n,s,o,a);else if(n)ut.unlink(t,h=>{if(h)return a(h);ut.mkdir(t,r,Aw(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Xo(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,ea(t,e,r,i,n,s,o,a))},XL=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Jo(t,r)}};_h.exports.sync=(t,e)=>{t=yt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=yt(e.cwd),f=_=>{Un(u,t,!0),_&&a&&xw.sync(_,s,o),n&&ut.chmodSync(t,i)};if(u&&Qo(u,t)===!0)return f();if(t===h)return XL(h),f();if(l)return f(Rw.sync(t,i));let g=yt(Zo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=yt(Zo.resolve(x)),!Qo(u,x))try{ut.mkdirSync(x,i),y=y||x,Un(u,x,!0)}catch{let C=ut.lstatSync(x);if(C.isDirectory()){Un(u,x,!0);continue}else if(c){ut.unlinkSync(x),ut.mkdirSync(x,i),y=y||x,Un(u,x,!0);continue}else if(C.isSymbolicLink())return new Xo(x,x+"/"+g.join("/"))}return f(y)}});var wh=H((eB,Tw)=>{var bh=Object.create(null),{hasOwnProperty:JL}=Object.prototype;Tw.exports=t=>(JL.call(bh,t)||(bh[t]=t.normalize("NFKD")),bh[t])});var Pw=H((tB,Lw)=>{var kw=require("assert"),QL=wh(),eP=Fi(),{join:Cw}=require("path"),tP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,rP=tP==="win32";Lw.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=Cw(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);kw.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);kw(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,u)=>{c=rP?["win32 parallelization disabled"]:c.map(f=>QL(eP(Cw(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 Dw=H((rB,Nw)=>{var iP=process.env.__FAKE_PLATFORM__||process.platform,nP=iP==="win32",sP=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:oP,O_TRUNC:aP,O_WRONLY:lP,UV_FS_O_FILEMAP:Iw=0}=sP.constants,cP=nP&&!!Iw,uP=512*1024,hP=Iw|aP|oP|lP;Nw.exports=cP?t=>t<uP?hP:"w":()=>"w"});var kh=H((iB,Vw)=>{"use strict";var fP=require("assert"),pP=Wo(),ae=require("fs"),dP=Wi(),tr=require("path"),Ww=Ow(),Mw=Tu(),mP=Pw(),yP=ku(),it=Ni(),gP=Fi(),_P=wh(),Fw=Symbol("onEntry"),vh=Symbol("checkFs"),Bw=Symbol("checkFs2"),ia=Symbol("pruneCache"),Rh=Symbol("isReusable"),ht=Symbol("makeFs"),xh=Symbol("file"),Ah=Symbol("directory"),na=Symbol("link"),jw=Symbol("symlink"),Hw=Symbol("hardlink"),qw=Symbol("unsupported"),Uw=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),ta=Symbol("pending"),$w=Symbol("pend"),Xi=Symbol("unpend"),Sh=Symbol("ended"),Eh=Symbol("maybeClose"),Oh=Symbol("skip"),$n=Symbol("doChown"),Gn=Symbol("uid"),zn=Symbol("gid"),Wn=Symbol("checkedCwd"),Yw=require("crypto"),Kw=Dw(),bP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Yn=bP==="win32",wP=(t,e)=>{if(!Yn)return ae.unlink(t,e);let r=t+".DELETE."+Yw.randomBytes(16).toString("hex");ae.rename(t,r,i=>{if(i)return e(i);ae.unlink(r,e)})},SP=t=>{if(!Yn)return ae.unlinkSync(t);let e=t+".DELETE."+Yw.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},Gw=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,zw=t=>_P(gP(it(t))).toLowerCase(),EP=(t,e)=>{e=zw(e);for(let r of t.keys()){let i=zw(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},vP=t=>{for(let e of t.keys())t.delete(e)},Kn=class extends pP{constructor(e){if(e||(e={}),e.ondone=r=>{this[Sh]=!0,this[Eh]()},super(e),this[Wn]=!1,this.reservations=mP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ta]=0,this[Sh]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=it(tr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[Fw](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Eh](){this[Sh]&&this[ta]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Uw](e){if(this.strip){let r=it(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=it(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=it(e.path),i=r.split("/");if(i.includes("..")||Yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=yP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(tr.isAbsolute(e.path)?e.absolute=it(tr.resolve(e.path)):e.absolute=it(tr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:it(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=tr.win32.parse(e.absolute);e.absolute=r+Mw.encode(e.absolute.slice(r.length));let{root:i}=tr.win32.parse(e.path);e.path=i+Mw.encode(e.path.slice(i.length))}return!0}[Fw](e){if(!this[Uw](e))return e.resume();switch(fP.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[vh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[qw](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){Ww(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[$n](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Gn](e){return Gw(this.uid,e.uid,this.processUid)}[zn](e){return Gw(this.gid,e.gid,this.processGid)}[xh](e,r){let i=e.mode&4095||this.fmode,n=new dP.WriteStream(e.absolute,{flags:Kw(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&ae.close(n.fd,()=>{}),n.write=()=>!0,this[Be](l,e),r()});let s=1,o=l=>{if(l){n.fd&&ae.close(n.fd,()=>{}),this[Be](l,e),r();return}--s===0&&ae.close(n.fd,c=>{c?this[Be](c,e):this[Xi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ae.futimes(u,h,f,d=>d?ae.utimes(c,h,f,g=>o(g&&d)):o())}if(this[$n](e)){s++;let h=this[Gn](e),f=this[zn](e);ae.fchown(u,h,f,d=>d?ae.chown(c,h,f,g=>o(g&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Be](l,e),r()}),e.pipe(a)),a.pipe(n)}[Ah](e,r){let i=e.mode&4095||this.dmode;this[Ar](e.absolute,i,n=>{if(n){this[Be](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[$n](e)&&(s++,ae.chown(e.absolute,this[Gn](e),this[zn](e),o)),o()})}[qw](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[jw](e,r){this[na](e,e.linkpath,"symlink",r)}[Hw](e,r){let i=it(tr.resolve(this.cwd,e.linkpath));this[na](e,i,"link",r)}[$w](){this[ta]++}[Xi](){this[ta]--,this[Eh]()}[Oh](e){this[Xi](),e.resume()}[Rh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Yn}[vh](e){this[$w]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[Bw](e,i))}[ia](e){e.type==="SymbolicLink"?vP(this.dirCache):e.type!=="Directory"&&EP(this.dirCache,e.absolute)}[Bw](e,r){this[ia](e);let i=a=>{this[ia](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Be](a,e),i();return}this[Wn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=it(tr.dirname(e.absolute));if(a!==this.cwd)return this[Ar](a,this.dmode,l=>{if(l){this[Be](l,e),i();return}o()})}o()},o=()=>{ae.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[Oh](e),i();return}if(a||this[Rh](e,l))return this[ht](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[ht](h,e,i);return c?ae.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return ae.rmdir(e.absolute,c=>this[ht](c,e,i))}if(e.absolute===this.cwd)return this[ht](null,e,i);wP(e.absolute,c=>this[ht](c,e,i))})};this[Wn]?s():n()}[ht](e,r,i){if(e){this[Be](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[xh](r,i);case"Link":return this[Hw](r,i);case"SymbolicLink":return this[jw](r,i);case"Directory":case"GNUDumpDir":return this[Ah](r,i)}}[na](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},ra=t=>{try{return[null,t()]}catch(e){return[e,null]}},Th=class extends Kn{[ht](e,r){return super[ht](e,r,()=>{})}[vh](e){if(this[ia](e),!this[Wn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Be](s,e);this[Wn]=!0}if(e.absolute!==this.cwd){let s=it(tr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Be](o,e)}}let[r,i]=ra(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Oh](e);if(r||this[Rh](e,i))return this[ht](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ra(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[ht](a,e)}let[s]=ra(()=>ae.rmdirSync(e.absolute));this[ht](s,e)}let[n]=e.absolute===this.cwd?[]:ra(()=>SP(e.absolute));this[ht](n,e)}[xh](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,Kw(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Be](a,e)),e.pipe(o)),o.on("data",a=>{try{ae.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{ae.futimesSync(s,c,u)}catch(h){try{ae.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[$n](e)){let c=this[Gn](e),u=this[zn](e);try{ae.fchownSync(s,c,u)}catch(h){try{ae.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[Ah](e,r){let i=e.mode&4095||this.dmode,n=this[Ar](e.absolute,i);if(n){this[Be](n,e),r();return}if(e.mtime&&!this.noMtime)try{ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[$n](e))try{ae.chownSync(e.absolute,this[Gn](e),this[zn](e))}catch{}r(),e.resume()}[Ar](e,r){try{return Ww.sync(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[na](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Kn.Sync=Th;Vw.exports=Kn});var eS=H((nB,Qw)=>{"use strict";var RP=ki(),sa=kh(),Xw=require("fs"),Jw=Wi(),Zw=require("path"),Ch=Fi();Qw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=RP(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&xP(i,e),i.file&&i.sync?AP(i):i.file?OP(i,r):i.sync?TP(i):kP(i)};var xP=(t,e)=>{let r=new Map(e.map(s=>[Ch(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Zw.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Zw.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Ch(s)):s=>n(Ch(s))},AP=t=>{let e=new sa.Sync(t),r=t.file,i=Xw.statSync(r),n=t.maxReadSize||16*1024*1024;new Jw.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},OP=(t,e)=>{let r=new sa(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Xw.stat(n,(l,c)=>{if(l)a(l);else{let u=new Jw.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},TP=t=>new sa.Sync(t),kP=t=>new sa(t)});var tS=H(xe=>{"use strict";xe.c=xe.create=Mb();xe.r=xe.replace=hh();xe.t=xe.list=Yo();xe.u=xe.update=zb();xe.x=xe.extract=eS();xe.Pack=Po();xe.Unpack=kh();xe.Parse=Wo();xe.ReadEntry=mo();xe.WriteEntry=ju();xe.Header=Mi();xe.Pax=go();xe.types=Su()});var aS=H((cB,oS)=>{function ft(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}oS.exports=ft;ft.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ft.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ft.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};ft.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ft.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ft.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ft.prototype.start=ft.prototype.try;ft.prototype.errors=function(){return this._errors};ft.prototype.attempts=function(){return this._attempts};ft.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var lS=H(Qr=>{var IP=aS();Qr.operation=function(t){var e=Qr.timeouts(t);return new IP(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Qr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Qr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=Qr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var uS=H((hB,cS)=>{cS.exports=lS()});var fS=H((fB,hS)=>{var NP=uS();function DP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=NP.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(d){l(d,u)})}o.attempt(c)}return new Promise(r)}hS.exports=DP});var KP={};Ih(KP,{default:()=>YP,transformer:()=>bS});module.exports=xS(KP);var yS=ne(require("path")),gS=require("fs-extra");var Ge=require("picocolors"),wg=ne(require("ora"),1),Sg=ne(require("gradient-string"),1);var jk=ne(li(),1),eD=require("fs-extra");function Ip(t){return typeof t=="undefined"||t===null}function b0(t){return typeof t=="object"&&t!==null}function w0(t){return Array.isArray(t)?t:Ip(t)?[]:[t]}function S0(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 E0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function v0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var R0=Ip,x0=b0,A0=w0,O0=E0,T0=v0,k0=S0,Re={isNothing:R0,isObject:x0,toArray:A0,repeat:O0,isNegativeZero:T0,extend:k0};function Np(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+=`
8
+ `).reduce(LC,Object.create(null)),LC=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};B_.exports=Mn});var Fi=H((xF,j_)=>{j_.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 _o=H((AF,H_)=>{"use strict";H_.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 Tu=H((TF,q_)=>{"use strict";var bo=["|","<",">","?",":"],Ou=bo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),PC=new Map(bo.map((t,e)=>[t,Ou[e]])),IC=new Map(Ou.map((t,e)=>[t,bo[e]]));q_.exports={encode:t=>bo.reduce((e,r)=>e.split(r).join(PC.get(r)),t),decode:t=>Ou.reduce((e,r)=>e.split(r).join(IC.get(r)),t)}});var ku=H((kF,$_)=>{var{isAbsolute:NC,parse:U_}=require("path").win32;$_.exports=t=>{let e="",r=U_(t);for(;NC(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=U_(t)}return[e,t]}});var z_=H((CF,G_)=>{"use strict";G_.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 ju=H((IF,sb)=>{"use strict";var J_=so(),Q_=go(),eb=Mi(),kt=require("fs"),W_=require("path"),Tt=Ni(),DC=Fi(),tb=(t,e)=>e?(t=Tt(t).replace(/^\.(\/|$)/,""),DC(e)+"/"+t):Tt(t),MC=16*1024*1024,Y_=Symbol("process"),V_=Symbol("file"),K_=Symbol("directory"),Lu=Symbol("symlink"),Z_=Symbol("hardlink"),Fn=Symbol("header"),So=Symbol("read"),Pu=Symbol("lstat"),wo=Symbol("onlstat"),Iu=Symbol("onread"),Nu=Symbol("onreadlink"),Du=Symbol("openfile"),Mu=Symbol("onopenfile"),br=Symbol("close"),Eo=Symbol("mode"),Fu=Symbol("awaitDrain"),Cu=Symbol("ondrain"),Ct=Symbol("prefix"),X_=Symbol("hadError"),rb=_o(),FC=Tu(),ib=ku(),nb=z_(),vo=rb(class extends J_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Tt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||MC,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Tt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Tt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=ib(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=FC.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Tt(r.absolute||W_.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[wo](this.statCache.get(this.absolute)):this[Pu]()}emit(e,...r){return e==="error"&&(this[X_]=!0),super.emit(e,...r)}[Pu](){kt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[wo](r)})}[wo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=jC(e),this.emit("stat",e),this[Y_]()}[Y_](){switch(this.type){case"File":return this[V_]();case"Directory":return this[K_]();case"SymbolicLink":return this[Lu]();default:return this.end()}}[Eo](e){return nb(e,this.type==="Directory",this.portable)}[Ct](e){return tb(e,this.prefix)}[Fn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new eb({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this[Eo](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Q_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[K_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Fn](),this.end()}[Lu](){kt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Nu](r)})}[Nu](e){this.linkpath=Tt(e),this[Fn](),this.end()}[Z_](e){this.type="Link",this.linkpath=Tt(W_.relative(this.cwd,e)),this.stat.size=0,this[Fn](),this.end()}[V_](){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[Z_](r)}this.linkCache.set(e,this.absolute)}if(this[Fn](),this.stat.size===0)return this.end();this[Du]()}[Du](){kt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Mu](r)})}[Mu](e){if(this.fd=e,this[X_])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[So]()}[So](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;kt.read(e,r,i,n,s,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Iu](a)})}[br](e){kt.close(this.fd,e)}[Iu](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[Cu]():this[Fu](()=>this[Cu]())}[Fu](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)}[Cu](){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[So]()}}),Bu=class extends vo{[Pu](){this[wo](kt.lstatSync(this.absolute))}[Lu](){this[Nu](kt.readlinkSync(this.absolute))}[Du](){this[Mu](kt.openSync(this.absolute,"r"))}[So](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=kt.readSync(r,i,n,s,o);this[Iu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Fu](e){e()}[br](e){kt.closeSync(this.fd),e()}},BC=rb(class extends J_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Tt(e.path),this.mode=this[Eo](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Tt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=ib(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new eb({path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Q_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Ct](this.path),linkpath:this.type==="Link"?this[Ct](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Ct](e){return tb(e,this.prefix)}[Eo](e){return nb(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()}});vo.Sync=Bu;vo.Tar=BC;var jC=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";sb.exports=vo});var ab=H((NF,ob)=>{"use strict";ob.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Hu=H((DF,lb)=>{"use strict";lb.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}oe.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};oe.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};oe.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)qC(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)UC(this,arguments[t]);return this.length};oe.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};oe.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};oe.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};oe.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};oe.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};oe.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};oe.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};oe.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};oe.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};oe.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};oe.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new oe;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};oe.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=HC(this,n,r[i]);return s};oe.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function HC(t,e,r){var i=e===t.head?new zr(r,null,e,t):new zr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function qC(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function UC(t,e){t.head=new zr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function zr(t,e,r,i){if(!(this instanceof zr))return new zr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{ab()(oe)}catch{}});var Po=H((FF,mb)=>{"use strict";var Co=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},$C=so(),GC=_u(),zC=mo(),Ku=ju(),WC=Ku.Sync,YC=Ku.Tar,VC=Hu(),cb=Buffer.alloc(1024),Ao=Symbol("onStat"),Ro=Symbol("ended"),Lt=Symbol("queue"),Bi=Symbol("current"),Wr=Symbol("process"),xo=Symbol("processing"),ub=Symbol("processJob"),Pt=Symbol("jobs"),qu=Symbol("jobDone"),Oo=Symbol("addFSEntry"),hb=Symbol("addTarEntry"),zu=Symbol("stat"),Wu=Symbol("readdir"),To=Symbol("onreaddir"),ko=Symbol("pipe"),fb=Symbol("entry"),Uu=Symbol("entryOpt"),Yu=Symbol("writeEntryClass"),db=Symbol("write"),$u=Symbol("ondrain"),Lo=require("fs"),pb=require("path"),KC=_o(),Gu=Ni(),Zu=KC(class extends $C{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Gu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Yu]=Ku,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new GC.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$u]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$u]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Lt]=new VC,this[Pt]=0,this.jobs=+e.jobs||4,this[xo]=!1,this[Ro]=!1}[db](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Ro]=!0,this[Wr](),this}write(e){if(this[Ro])throw new Error("write after end");return e instanceof zC?this[hb](e):this[Oo](e),this.flowing}[hb](e){let r=Gu(pb.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Co(e.path,r,!1);i.entry=new YC(e,this[Uu](i)),i.entry.on("end",n=>this[qu](i)),this[Pt]+=1,this[Lt].push(i)}this[Wr]()}[Oo](e){let r=Gu(pb.resolve(this.cwd,e));this[Lt].push(new Co(e,r)),this[Wr]()}[zu](e){e.pending=!0,this[Pt]+=1;let r=this.follow?"stat":"lstat";Lo[r](e.absolute,(i,n)=>{e.pending=!1,this[Pt]-=1,i?this.emit("error",i):this[Ao](e,n)})}[Ao](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Wu](e){e.pending=!0,this[Pt]+=1,Lo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Pt]-=1,r)return this.emit("error",r);this[To](e,i)})}[To](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[xo]){this[xo]=!0;for(let e=this[Lt].head;e!==null&&this[Pt]<this.jobs;e=e.next)if(this[ub](e.value),e.value.ignore){let r=e.next;this[Lt].removeNode(e),e.next=r}this[xo]=!1,this[Ro]&&!this[Lt].length&&this[Pt]===0&&(this.zip?this.zip.end(cb):(super.write(cb),super.end()))}}get[Bi](){return this[Lt]&&this[Lt].head&&this[Lt].head.value}[qu](e){this[Lt].shift(),this[Pt]-=1,this[Wr]()}[ub](e){if(!e.pending){if(e.entry){e===this[Bi]&&!e.piped&&this[ko](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ao](e,this.statCache.get(e.absolute)):this[zu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[To](e,this.readdirCache.get(e.absolute)):this[Wu](e),!e.readdir))){if(e.entry=this[fb](e),!e.entry){e.ignore=!0;return}e===this[Bi]&&!e.piped&&this[ko](e)}}}[Uu](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}}[fb](e){this[Pt]+=1;try{return new this[Yu](e.path,this[Uu](e)).on("end",()=>this[qu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$u](){this[Bi]&&this[Bi].entry&&this[Bi].entry.resume()}[ko](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Oo](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()}}),Vu=class extends Zu{constructor(e){super(e),this[Yu]=WC}pause(){}resume(){}[zu](e){let r=this.follow?"statSync":"lstatSync";this[Ao](e,Lo[r](e.absolute))}[Wu](e,r){this[To](e,Lo.readdirSync(e.absolute))}[ko](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Oo](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[db](n)})}};Zu.Sync=Vu;mb.exports=Zu});var Wi=H(jn=>{"use strict";var ZC=ru(),XC=require("events").EventEmitter,Ke=require("fs"),Qu=Ke.writev;if(!Qu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Qu=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Gi=Symbol("_autoClose"),mt=Symbol("_close"),Bn=Symbol("_ended"),he=Symbol("_fd"),yb=Symbol("_finished"),wr=Symbol("_flags"),Xu=Symbol("_flush"),eh=Symbol("_handleChunk"),th=Symbol("_makeBuf"),Fo=Symbol("_mode"),Io=Symbol("_needDrain"),Ui=Symbol("_onerror"),zi=Symbol("_onopen"),Ju=Symbol("_onread"),Hi=Symbol("_onwrite"),Er=Symbol("_open"),Jt=Symbol("_path"),Yr=Symbol("_pos"),It=Symbol("_queue"),qi=Symbol("_read"),gb=Symbol("_readSize"),Sr=Symbol("_reading"),No=Symbol("_remain"),_b=Symbol("_size"),Do=Symbol("_write"),ji=Symbol("_writing"),Mo=Symbol("_defaultFlag"),$i=Symbol("_errored"),Bo=class extends ZC{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[gb]=r.readSize||16*1024*1024,this[Sr]=!1,this[_b]=typeof r.size=="number"?r.size:1/0,this[No]=this[_b],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[Er]()}get fd(){return this[he]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Er](){Ke.open(this[Jt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[Ui](e):(this[he]=r,this.emit("open",r),this[qi]())}[th](){return Buffer.allocUnsafe(Math.min(this[gb],this[No]))}[qi](){if(!this[Sr]){this[Sr]=!0;let e=this[th]();if(e.length===0)return process.nextTick(()=>this[Ju](null,0,e));Ke.read(this[he],e,0,e.length,null,(r,i,n)=>this[Ju](r,i,n))}}[Ju](e,r,i){this[Sr]=!1,e?this[Ui](e):this[eh](r,i)&&this[qi]()}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[Sr]=!0,this[mt](),this.emit("error",e)}[eh](e,r){let i=!1;return this[No]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[No]<=0)&&(i=!1,this[mt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[qi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},rh=class extends Bo{[Er](){let e=!0;try{this[zi](null,Ke.openSync(this[Jt],"r")),e=!1}finally{e&&this[mt]()}}[qi](){let e=!0;try{if(!this[Sr]){this[Sr]=!0;do{let r=this[th](),i=r.length===0?0:Ke.readSync(this[he],r,0,r.length,null);if(!this[eh](i,r))break}while(!0);this[Sr]=!1}e=!1}finally{e&&this[mt]()}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ke.closeSync(e),this.emit("close")}}},jo=class extends XC{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[ji]=!1,this[Bn]=!1,this[Io]=!1,this[It]=[],this[Jt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Fo]=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[Mo]=r.flags===void 0,this[wr]=this[Mo]?i:r.flags,this[he]===null&&this[Er]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Jt]}[Ui](e){this[mt](),this[ji]=!0,this.emit("error",e)}[Er](){Ke.open(this[Jt],this[wr],this[Fo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Mo]&&this[wr]==="r+"&&e&&e.code==="ENOENT"?(this[wr]="w",this[Er]()):e?this[Ui](e):(this[he]=r,this.emit("open",r),this[Xu]())}end(e,r){return e&&this.write(e,r),this[Bn]=!0,!this[ji]&&!this[It].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bn]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[It].length?(this[It].push(e),this[Io]=!0,!1):(this[ji]=!0,this[Do](e),!0)}[Do](e){Ke.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[Ui](e):(this[Yr]!==null&&(this[Yr]+=r),this[It].length?this[Xu]():(this[ji]=!1,this[Bn]&&!this[yb]?(this[yb]=!0,this[mt](),this.emit("finish")):this[Io]&&(this[Io]=!1,this.emit("drain"))))}[Xu](){if(this[It].length===0)this[Bn]&&this[Hi](null,0);else if(this[It].length===1)this[Do](this[It].pop());else{let e=this[It];this[It]=[],Qu(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},ih=class extends jo{[Er](){let e;if(this[Mo]&&this[wr]==="r+")try{e=Ke.openSync(this[Jt],this[wr],this[Fo])}catch(r){if(r.code==="ENOENT")return this[wr]="w",this[Er]();throw r}else e=Ke.openSync(this[Jt],this[wr],this[Fo]);this[zi](null,e)}[mt](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,Ke.closeSync(e),this.emit("close")}}[Do](e){let r=!0;try{this[Hi](null,Ke.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[mt]()}catch{}}}};jn.ReadStream=Bo;jn.ReadStreamSync=rh;jn.WriteStream=jo;jn.WriteStreamSync=ih});var Wo=H((HF,Ab)=>{"use strict";var JC=_o(),QC=Mi(),eL=require("events"),tL=Hu(),rL=1024*1024,iL=mo(),bb=go(),nL=_u(),{nextTick:sL}=require("process"),nh=Buffer.from([31,139]),at=Symbol("state"),Vr=Symbol("writeEntry"),Qt=Symbol("readEntry"),sh=Symbol("nextEntry"),Sb=Symbol("processEntry"),lt=Symbol("extendedHeader"),Hn=Symbol("globalExtendedHeader"),vr=Symbol("meta"),wb=Symbol("emitMeta"),de=Symbol("buffer"),er=Symbol("queue"),Kr=Symbol("ended"),Eb=Symbol("emittedEnd"),Zr=Symbol("emit"),Ze=Symbol("unzip"),Ho=Symbol("consumeChunk"),qo=Symbol("consumeChunkSub"),oh=Symbol("consumeBody"),vb=Symbol("consumeMeta"),Rb=Symbol("consumeHeader"),Uo=Symbol("consuming"),ah=Symbol("bufferConcat"),lh=Symbol("maybeEnd"),qn=Symbol("writing"),Rr=Symbol("aborted"),$o=Symbol("onDone"),Xr=Symbol("sawValidEntry"),Go=Symbol("sawNullBlock"),zo=Symbol("sawEOF"),xb=Symbol("closeStream"),oL=t=>!0;Ab.exports=JC(class extends eL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Xr]=null,this.on($o,r=>{(this[at]==="begin"||this[Xr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on($o,e.ondone):this.on($o,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||rL,this.filter=typeof e.filter=="function"?e.filter:oL,this.writable=!0,this.readable=!1,this[er]=new tL,this[de]=null,this[Qt]=null,this[Vr]=null,this[at]="begin",this[vr]="",this[lt]=null,this[Hn]=null,this[Kr]=!1,this[Ze]=null,this[Rr]=!1,this[Go]=!1,this[zo]=!1,this.on("end",()=>this[xb]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Rb](e,r){this[Xr]===null&&(this[Xr]=!1);let i;try{i=new QC(e,r,this[lt],this[Hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Go]?(this[zo]=!0,this[at]==="begin"&&(this[at]="header"),this[Zr]("eof")):(this[Go]=!0,this[Zr]("nullBlock"));else if(this[Go]=!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[Vr]=new iL(i,this[lt],this[Hn]);if(!this[Xr])if(s.remain){let o=()=>{s.invalid||(this[Xr]=!0)};s.on("end",o)}else this[Xr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[at]="ignore",s.resume()):s.size>0&&(this[vr]="",s.on("data",o=>this[vr]+=o),this[at]="meta"):(this[lt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[at]=s.remain?"ignore":"header",s.resume()):(s.remain?this[at]="body":(this[at]="header",s.end()),this[Qt]?this[er].push(s):(this[er].push(s),this[sh]())))}}}[xb](){sL(()=>this.emit("close"))}[Sb](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Qt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[sh]()),r=!1)):(this[Qt]=null,r=!1),r}[sh](){do;while(this[Sb](this[er].shift()));if(!this[er].length){let e=this[Qt];!e||e.flowing||e.size===e.remain?this[qn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[oh](e,r){let i=this[Vr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[at]="header",this[Vr]=null,i.end()),s.length}[vb](e,r){let i=this[Vr],n=this[oh](e,r);return this[Vr]||this[wb](i),n}[Zr](e,r,i){!this[er].length&&!this[Qt]?this.emit(e,r,i):this[er].push([e,r,i])}[wb](e){switch(this[Zr]("meta",this[vr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[lt]=bb.parse(this[vr],this[lt],!1);break;case"GlobalExtendedHeader":this[Hn]=bb.parse(this[vr],this[Hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[lt]=this[lt]||Object.create(null),this[lt].path=this[vr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[lt]=this[lt]||Object.create(null),this[lt].linkpath=this[vr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Rr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Rr])return;if(this[Ze]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<nh.length)return this[de]=e,!0;for(let i=0;this[Ze]===null&&i<nh.length;i++)e[i]!==nh[i]&&(this[Ze]=!1);if(this[Ze]===null){let i=this[Kr];this[Kr]=!1,this[Ze]=new nL.Unzip,this[Ze].on("data",s=>this[Ho](s)),this[Ze].on("error",s=>this.abort(s)),this[Ze].on("end",s=>{this[Kr]=!0,this[Ho]()}),this[qn]=!0;let n=this[Ze][i?"end":"write"](e);return this[qn]=!1,n}}this[qn]=!0,this[Ze]?this[Ze].write(e):this[Ho](e),this[qn]=!1;let r=this[er].length?!1:this[Qt]?this[Qt].flowing:!0;return!r&&!this[er].length&&this[Qt].once("drain",i=>this.emit("drain")),r}[ah](e){e&&!this[Rr]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[lh](){if(this[Kr]&&!this[Eb]&&!this[Rr]&&!this[Uo]){this[Eb]=!0;let e=this[Vr];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]($o)}}[Ho](e){if(this[Uo])this[ah](e);else if(!e&&!this[de])this[lh]();else{if(this[Uo]=!0,this[de]){this[ah](e);let r=this[de];this[de]=null,this[qo](r)}else this[qo](e);for(;this[de]&&this[de].length>=512&&!this[Rr]&&!this[zo];){let r=this[de];this[de]=null,this[qo](r)}this[Uo]=!1}(!this[de]||this[Kr])&&this[lh]()}[qo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Rr]&&!this[zo];)switch(this[at]){case"begin":case"header":this[Rb](e,r),r+=512;break;case"ignore":case"body":r+=this[oh](e,r);break;case"meta":r+=this[vb](e,r);break;default:throw new Error("invalid state: "+this[at])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Rr]||(this[Ze]?this[Ze].end(e):(this[Kr]=!0,this.write(e)))}})});var Yo=H((qF,Cb)=>{"use strict";var aL=ki(),Tb=Wo(),Yi=require("fs"),lL=Wi(),Ob=require("path"),ch=Fi();Cb.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=aL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&uL(i,e),i.noResume||cL(i),i.file&&i.sync?hL(i):i.file?fL(i,r):kb(i)};var cL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},uL=(t,e)=>{let r=new Map(e.map(s=>[ch(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Ob.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Ob.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ch(s)):s=>n(ch(s))},hL=t=>{let e=kb(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");a<s.size;){let c=Yi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},fL=(t,e)=>{let r=new Tb(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Yi.stat(n,(l,c)=>{if(l)a(l);else{let u=new lL.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},kb=t=>new Tb(t)});var Mb=H((UF,Db)=>{"use strict";var pL=ki(),Vo=Po(),Lb=Wi(),Pb=Yo(),Ib=require("path");Db.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=pL(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?dL(i,e):i.file?mL(i,e,r):i.sync?yL(i,e):gL(i,e)};var dL=(t,e)=>{let r=new Vo.Sync(t),i=new Lb.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Nb(r,e)},mL=(t,e,r)=>{let i=new Vo(t),n=new Lb.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 uh(i,e),r?s.then(r,r):s},Nb=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Pb({file:Ib.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 Pb({file:Ib.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},yL=(t,e)=>{let r=new Vo.Sync(t);return Nb(r,e),r},gL=(t,e)=>{let r=new Vo(t);return uh(r,e),r}});var hh=H(($F,$b)=>{"use strict";var _L=ki(),Fb=Po(),rt=require("fs"),Bb=Wi(),jb=Yo(),Hb=require("path"),qb=Mi();$b.exports=(t,e,r)=>{let i=_L(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?bL(i,e):wL(i,e,r)};var bL=(t,e)=>{let r=new Fb.Sync(t),i=!0,n,s;try{try{n=rt.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=rt.openSync(t.file,"w+");else throw l}let o=rt.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=rt.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new qb(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,SL(t,r,s,n,e)}finally{if(i)try{rt.closeSync(n)}catch{}}},SL=(t,e,r,i,n)=>{let s=new Bb.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),EL(e,n)},wL=(t,e,r)=>{e=Array.from(e);let i=new Fb(t),n=(o,a,l)=>{let c=(g,y)=>{g?rt.close(o,_=>l(g)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return c(g);if(h+=y,h<512&&y)return rt.read(o,f,h,f.length-h,u+h,d);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let _=new qb(f);if(!_.cksumValid)return c(null,u);let x=512*Math.ceil(_.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),h=0,rt.read(o,f,0,512,u,d)};rt.read(o,f,0,512,u,d)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",rt.open(t.file,l,c);if(u)return a(u);rt.fstat(h,(f,d)=>{if(f)return rt.close(h,()=>a(f));n(h,d.size,(g,y)=>{if(g)return a(g);let _=new Bb.WriteStream(t.file,{fd:h,start:y});i.pipe(_),_.on("error",a),_.on("close",o),Ub(i,e)})})};rt.open(t.file,l,c)});return r?s.then(r,r):s},EL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?jb({file:Hb.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ub=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return jb({file:Hb.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ub(t,e));t.add(r)}t.end()}});var zb=H((GF,Gb)=>{"use strict";var vL=ki(),RL=hh();Gb.exports=(t,e,r)=>{let i=vL(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),xL(i),RL(i,e,r)};var xL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Vb=H((zF,Yb)=>{var{promisify:Wb}=require("util"),xr=require("fs"),AL=t=>{if(!t)t={mode:511,fs:xr};else if(typeof t=="object")t={mode:511,fs:xr,...t};else if(typeof t=="number")t={mode:t,fs:xr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:xr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||xr.mkdir,t.mkdirAsync=Wb(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=Wb(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};Yb.exports=AL});var Zb=H((WF,Kb)=>{var OL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:TL,parse:kL}=require("path"),CL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=TL(t),OL==="win32"){let e=/[*|"<>?:]/,{root:r}=kL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Kb.exports=CL});var tS=H((YF,eS)=>{var{dirname:Xb}=require("path"),Jb=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Jb(t,Xb(e),e):void 0),Qb=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Qb(t,Xb(e),e):void 0}};eS.exports={findMade:Jb,findMadeSync:Qb}});var dh=H((VF,iS)=>{var{dirname:rS}=require("path"),fh=(t,e,r)=>{e.recursive=!1;let i=rS(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 fh(i,e).then(s=>fh(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})})},ph=(t,e,r)=>{let i=rS(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 ph(t,e,ph(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};iS.exports={mkdirpManual:fh,mkdirpManualSync:ph}});var oS=H((KF,sS)=>{var{dirname:nS}=require("path"),{findMade:LL,findMadeSync:PL}=tS(),{mkdirpManual:IL,mkdirpManualSync:NL}=dh(),DL=(t,e)=>(e.recursive=!0,nS(t)===t?e.mkdirAsync(t,e):LL(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return IL(t,e);throw n}))),ML=(t,e)=>{if(e.recursive=!0,nS(t)===t)return e.mkdirSync(t,e);let i=PL(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return NL(t,e);throw n}};sS.exports={mkdirpNative:DL,mkdirpNativeSync:ML}});var uS=H((ZF,cS)=>{var aS=require("fs"),FL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,mh=FL.replace(/^v/,"").split("."),lS=+mh[0]>10||+mh[0]==10&&+mh[1]>=12,BL=lS?t=>t.mkdir===aS.mkdir:()=>!1,jL=lS?t=>t.mkdirSync===aS.mkdirSync:()=>!1;cS.exports={useNative:BL,useNativeSync:jL}});var yS=H((XF,mS)=>{var Vi=Vb(),Ki=Zb(),{mkdirpNative:hS,mkdirpNativeSync:fS}=oS(),{mkdirpManual:pS,mkdirpManualSync:dS}=dh(),{useNative:HL,useNativeSync:qL}=uS(),Zi=(t,e)=>(t=Ki(t),e=Vi(e),HL(e)?hS(t,e):pS(t,e)),UL=(t,e)=>(t=Ki(t),e=Vi(e),qL(e)?fS(t,e):dS(t,e));Zi.sync=UL;Zi.native=(t,e)=>hS(Ki(t),Vi(e));Zi.manual=(t,e)=>pS(Ki(t),Vi(e));Zi.nativeSync=(t,e)=>fS(Ki(t),Vi(e));Zi.manualSync=(t,e)=>dS(Ki(t),Vi(e));mS.exports=Zi});var vS=H((JF,ES)=>{"use strict";var ct=require("fs"),Jr=require("path"),$L=ct.lchown?"lchown":"chown",GL=ct.lchownSync?"lchownSync":"chownSync",_S=ct.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),gS=(t,e,r)=>{try{return ct[GL](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},zL=(t,e,r)=>{try{return ct.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},WL=_S?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ct.chown(t,e,r,i)}:(t,e,r,i)=>i,yh=_S?(t,e,r)=>{try{return gS(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;zL(t,e,r)}}:(t,e,r)=>gS(t,e,r),YL=process.version,bS=(t,e,r)=>ct.readdir(t,e,r),VL=(t,e)=>ct.readdirSync(t,e);/^v4\./.test(YL)&&(bS=(t,e,r)=>ct.readdir(t,r));var Ko=(t,e,r,i)=>{ct[$L](t,e,r,WL(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},SS=(t,e,r,i,n)=>{if(typeof e=="string")return ct.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,SS(t,o,r,i,n)});if(e.isDirectory())gh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Ko(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Ko(s,r,i,n)}},gh=(t,e,r,i)=>{bS(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Ko(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Ko(t,e,r,i)}};s.forEach(c=>SS(t,c,e,r,l))})},KL=(t,e,r,i)=>{if(typeof e=="string")try{let n=ct.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&wS(Jr.resolve(t,e.name),r,i),yh(Jr.resolve(t,e.name),r,i)},wS=(t,e,r)=>{let i;try{i=VL(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return yh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>KL(t,n,e,r)),yh(t,e,r)};ES.exports=gh;gh.sync=wS});var OS=H((QF,_h)=>{"use strict";var RS=yS(),ut=require("fs"),Zo=require("path"),xS=vS(),yt=Ni(),Xo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Jo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Qo=(t,e)=>t.get(yt(e)),Un=(t,e,r)=>t.set(yt(e),r),ZL=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Jo(t,r&&r.code||"ENOTDIR")),e(r)})};_h.exports=(t,e,r)=>{t=yt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=yt(e.cwd),d=(_,x)=>{_?r(_):(Un(h,t,!0),x&&l?xS(x,o,a,k=>d(k)):s?ut.chmod(t,n,r):r())};if(h&&Qo(h,t)===!0)return d();if(t===f)return ZL(t,d);if(c)return RS(t,{mode:n}).then(_=>d(null,_),d);let y=yt(Zo.relative(f,t)).split("/");ea(f,y,n,h,u,f,null,d)};var ea=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=yt(Zo.resolve(t+"/"+l));if(Qo(i,c))return ea(c,e,r,i,n,s,o,a);ut.mkdir(c,r,AS(c,e,r,i,n,s,o,a))},AS=(t,e,r,i,n,s,o,a)=>l=>{l?ut.lstat(t,(c,u)=>{if(c)c.path=c.path&&yt(c.path),a(c);else if(u.isDirectory())ea(t,e,r,i,n,s,o,a);else if(n)ut.unlink(t,h=>{if(h)return a(h);ut.mkdir(t,r,AS(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Xo(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,ea(t,e,r,i,n,s,o,a))},XL=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Jo(t,r)}};_h.exports.sync=(t,e)=>{t=yt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=yt(e.cwd),f=_=>{Un(u,t,!0),_&&a&&xS.sync(_,s,o),n&&ut.chmodSync(t,i)};if(u&&Qo(u,t)===!0)return f();if(t===h)return XL(h),f();if(l)return f(RS.sync(t,i));let g=yt(Zo.relative(h,t)).split("/"),y=null;for(let _=g.shift(),x=h;_&&(x+="/"+_);_=g.shift())if(x=yt(Zo.resolve(x)),!Qo(u,x))try{ut.mkdirSync(x,i),y=y||x,Un(u,x,!0)}catch{let C=ut.lstatSync(x);if(C.isDirectory()){Un(u,x,!0);continue}else if(c){ut.unlinkSync(x),ut.mkdirSync(x,i),y=y||x,Un(u,x,!0);continue}else if(C.isSymbolicLink())return new Xo(x,x+"/"+g.join("/"))}return f(y)}});var Sh=H((eB,TS)=>{var bh=Object.create(null),{hasOwnProperty:JL}=Object.prototype;TS.exports=t=>(JL.call(bh,t)||(bh[t]=t.normalize("NFKD")),bh[t])});var PS=H((tB,LS)=>{var kS=require("assert"),QL=Sh(),eP=Fi(),{join:CS}=require("path"),tP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,rP=tP==="win32";LS.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=CS(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);kS.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);kS(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,u)=>{c=rP?["win32 parallelization disabled"]:c.map(f=>QL(eP(CS(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 DS=H((rB,NS)=>{var iP=process.env.__FAKE_PLATFORM__||process.platform,nP=iP==="win32",sP=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:oP,O_TRUNC:aP,O_WRONLY:lP,UV_FS_O_FILEMAP:IS=0}=sP.constants,cP=nP&&!!IS,uP=512*1024,hP=IS|aP|oP|lP;NS.exports=cP?t=>t<uP?hP:"w":()=>"w"});var kh=H((iB,KS)=>{"use strict";var fP=require("assert"),pP=Wo(),ae=require("fs"),dP=Wi(),tr=require("path"),WS=OS(),MS=Tu(),mP=PS(),yP=ku(),it=Ni(),gP=Fi(),_P=Sh(),FS=Symbol("onEntry"),vh=Symbol("checkFs"),BS=Symbol("checkFs2"),ia=Symbol("pruneCache"),Rh=Symbol("isReusable"),ht=Symbol("makeFs"),xh=Symbol("file"),Ah=Symbol("directory"),na=Symbol("link"),jS=Symbol("symlink"),HS=Symbol("hardlink"),qS=Symbol("unsupported"),US=Symbol("checkPath"),Ar=Symbol("mkdir"),Be=Symbol("onError"),ta=Symbol("pending"),$S=Symbol("pend"),Xi=Symbol("unpend"),wh=Symbol("ended"),Eh=Symbol("maybeClose"),Oh=Symbol("skip"),$n=Symbol("doChown"),Gn=Symbol("uid"),zn=Symbol("gid"),Wn=Symbol("checkedCwd"),YS=require("crypto"),VS=DS(),bP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Yn=bP==="win32",SP=(t,e)=>{if(!Yn)return ae.unlink(t,e);let r=t+".DELETE."+YS.randomBytes(16).toString("hex");ae.rename(t,r,i=>{if(i)return e(i);ae.unlink(r,e)})},wP=t=>{if(!Yn)return ae.unlinkSync(t);let e=t+".DELETE."+YS.randomBytes(16).toString("hex");ae.renameSync(t,e),ae.unlinkSync(e)},GS=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,zS=t=>_P(gP(it(t))).toLowerCase(),EP=(t,e)=>{e=zS(e);for(let r of t.keys()){let i=zS(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},vP=t=>{for(let e of t.keys())t.delete(e)},Vn=class extends pP{constructor(e){if(e||(e={}),e.ondone=r=>{this[wh]=!0,this[Eh]()},super(e),this[Wn]=!1,this.reservations=mP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ta]=0,this[wh]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=it(tr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[FS](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Eh](){this[wh]&&this[ta]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[US](e){if(this.strip){let r=it(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=it(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=it(e.path),i=r.split("/");if(i.includes("..")||Yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=yP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(tr.isAbsolute(e.path)?e.absolute=it(tr.resolve(e.path)):e.absolute=it(tr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:it(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=tr.win32.parse(e.absolute);e.absolute=r+MS.encode(e.absolute.slice(r.length));let{root:i}=tr.win32.parse(e.path);e.path=i+MS.encode(e.path.slice(i.length))}return!0}[FS](e){if(!this[US](e))return e.resume();switch(fP.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[vh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[qS](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){WS(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[$n](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Gn](e){return GS(this.uid,e.uid,this.processUid)}[zn](e){return GS(this.gid,e.gid,this.processGid)}[xh](e,r){let i=e.mode&4095||this.fmode,n=new dP.WriteStream(e.absolute,{flags:VS(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&ae.close(n.fd,()=>{}),n.write=()=>!0,this[Be](l,e),r()});let s=1,o=l=>{if(l){n.fd&&ae.close(n.fd,()=>{}),this[Be](l,e),r();return}--s===0&&ae.close(n.fd,c=>{c?this[Be](c,e):this[Xi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ae.futimes(u,h,f,d=>d?ae.utimes(c,h,f,g=>o(g&&d)):o())}if(this[$n](e)){s++;let h=this[Gn](e),f=this[zn](e);ae.fchown(u,h,f,d=>d?ae.chown(c,h,f,g=>o(g&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Be](l,e),r()}),e.pipe(a)),a.pipe(n)}[Ah](e,r){let i=e.mode&4095||this.dmode;this[Ar](e.absolute,i,n=>{if(n){this[Be](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[$n](e)&&(s++,ae.chown(e.absolute,this[Gn](e),this[zn](e),o)),o()})}[qS](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[jS](e,r){this[na](e,e.linkpath,"symlink",r)}[HS](e,r){let i=it(tr.resolve(this.cwd,e.linkpath));this[na](e,i,"link",r)}[$S](){this[ta]++}[Xi](){this[ta]--,this[Eh]()}[Oh](e){this[Xi](),e.resume()}[Rh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Yn}[vh](e){this[$S]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[BS](e,i))}[ia](e){e.type==="SymbolicLink"?vP(this.dirCache):e.type!=="Directory"&&EP(this.dirCache,e.absolute)}[BS](e,r){this[ia](e);let i=a=>{this[ia](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Be](a,e),i();return}this[Wn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=it(tr.dirname(e.absolute));if(a!==this.cwd)return this[Ar](a,this.dmode,l=>{if(l){this[Be](l,e),i();return}o()})}o()},o=()=>{ae.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[Oh](e),i();return}if(a||this[Rh](e,l))return this[ht](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[ht](h,e,i);return c?ae.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return ae.rmdir(e.absolute,c=>this[ht](c,e,i))}if(e.absolute===this.cwd)return this[ht](null,e,i);SP(e.absolute,c=>this[ht](c,e,i))})};this[Wn]?s():n()}[ht](e,r,i){if(e){this[Be](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[xh](r,i);case"Link":return this[HS](r,i);case"SymbolicLink":return this[jS](r,i);case"Directory":case"GNUDumpDir":return this[Ah](r,i)}}[na](e,r,i,n){ae[i](r,e.absolute,s=>{s?this[Be](s,e):(this[Xi](),e.resume()),n()})}},ra=t=>{try{return[null,t()]}catch(e){return[e,null]}},Th=class extends Vn{[ht](e,r){return super[ht](e,r,()=>{})}[vh](e){if(this[ia](e),!this[Wn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Be](s,e);this[Wn]=!0}if(e.absolute!==this.cwd){let s=it(tr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Be](o,e)}}let[r,i]=ra(()=>ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Oh](e);if(r||this[Rh](e,i))return this[ht](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ra(()=>{ae.chmodSync(e.absolute,e.mode)}):[];return this[ht](a,e)}let[s]=ra(()=>ae.rmdirSync(e.absolute));this[ht](s,e)}let[n]=e.absolute===this.cwd?[]:ra(()=>wP(e.absolute));this[ht](n,e)}[xh](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,VS(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Be](a,e)),e.pipe(o)),o.on("data",a=>{try{ae.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{ae.futimesSync(s,c,u)}catch(h){try{ae.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[$n](e)){let c=this[Gn](e),u=this[zn](e);try{ae.fchownSync(s,c,u)}catch(h){try{ae.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[Ah](e,r){let i=e.mode&4095||this.dmode,n=this[Ar](e.absolute,i);if(n){this[Be](n,e),r();return}if(e.mtime&&!this.noMtime)try{ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[$n](e))try{ae.chownSync(e.absolute,this[Gn](e),this[zn](e))}catch{}r(),e.resume()}[Ar](e,r){try{return WS.sync(it(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[na](e,r,i,n){try{ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Be](s,e)}}};Vn.Sync=Th;KS.exports=Vn});var ew=H((nB,QS)=>{"use strict";var RP=ki(),sa=kh(),XS=require("fs"),JS=Wi(),ZS=require("path"),Ch=Fi();QS.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=RP(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&xP(i,e),i.file&&i.sync?AP(i):i.file?OP(i,r):i.sync?TP(i):kP(i)};var xP=(t,e)=>{let r=new Map(e.map(s=>[Ch(s),!0])),i=t.filter,n=(s,o)=>{let a=o||ZS.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(ZS.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Ch(s)):s=>n(Ch(s))},AP=t=>{let e=new sa.Sync(t),r=t.file,i=XS.statSync(r),n=t.maxReadSize||16*1024*1024;new JS.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},OP=(t,e)=>{let r=new sa(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),XS.stat(n,(l,c)=>{if(l)a(l);else{let u=new JS.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},TP=t=>new sa.Sync(t),kP=t=>new sa(t)});var tw=H(xe=>{"use strict";xe.c=xe.create=Mb();xe.r=xe.replace=hh();xe.t=xe.list=Yo();xe.u=xe.update=zb();xe.x=xe.extract=ew();xe.Pack=Po();xe.Unpack=kh();xe.Parse=Wo();xe.ReadEntry=mo();xe.WriteEntry=ju();xe.Header=Mi();xe.Pax=go();xe.types=wu()});var aw=H((cB,ow)=>{function ft(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}ow.exports=ft;ft.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ft.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ft.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};ft.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ft.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ft.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ft.prototype.start=ft.prototype.try;ft.prototype.errors=function(){return this._errors};ft.prototype.attempts=function(){return this._attempts};ft.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var lw=H(Qr=>{var IP=aw();Qr.operation=function(t){var e=Qr.timeouts(t);return new IP(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Qr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Qr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=Qr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var uw=H((hB,cw)=>{cw.exports=lw()});var fw=H((fB,hw)=>{var NP=uw();function DP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=NP.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(d){l(d,u)})}o.attempt(c)}return new Promise(r)}hw.exports=DP});var VP={};Ih(VP,{default:()=>YP,transformer:()=>bw});module.exports=xw(VP);var yw=ne(require("path")),gw=require("fs-extra");var Ge=require("picocolors"),Sg=ne(require("ora"),1),wg=ne(require("gradient-string"),1);var jk=ne(li(),1),eD=require("fs-extra");function Ip(t){return typeof t=="undefined"||t===null}function b0(t){return typeof t=="object"&&t!==null}function S0(t){return Array.isArray(t)?t:Ip(t)?[]:[t]}function w0(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function E0(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function v0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var R0=Ip,x0=b0,A0=S0,O0=E0,T0=v0,k0=w0,Re={isNothing:R0,isObject:x0,toArray:A0,repeat:O0,isNegativeZero:T0,extend:k0};function Np(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
10
  `+t.mark.snippet),i+" "+r):i}function cn(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Np(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}cn.prototype=Object.create(Error.prototype);cn.prototype.constructor=cn;cn.prototype.toString=function(e){return this.name+": "+Np(this,e)};var He=cn;function Ta(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 ka(t,e){return Re.repeat(" ",e-t.length)+t}function C0(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=Ta(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=Re.repeat(" ",e.indent)+ka((t.line-l+1).toString(),u)+" | "+c.str+`
11
11
  `+a;for(c=Ta(t.buffer,i[o],n[o],t.position,h),a+=Re.repeat(" ",e.indent)+ka((t.line+1).toString(),u)+" | "+c.str+`
12
12
  `,a+=Re.repeat("-",e.indent+u+3+c.pos)+`^
13
13
  `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Ta(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=Re.repeat(" ",e.indent)+ka((t.line+l+1).toString(),u)+" | "+c.str+`
14
- `;return a.replace(/\n$/,"")}var L0=C0,P0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],I0=["scalar","sequence","mapping"];function N0(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function D0(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(P0.indexOf(r)===-1)throw new He('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=N0(e.styleAliases||null),I0.indexOf(this.kind)===-1)throw new He('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ke=D0;function _p(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 M0(){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 La(t){return this.extend(t)}La.prototype.extend=function(e){var r=[],i=[];if(e instanceof ke)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new He("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new He("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new He("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(La.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=_p(n,"implicit"),n.compiledExplicit=_p(n,"explicit"),n.compiledTypeMap=M0(n.compiledImplicit,n.compiledExplicit),n};var Dp=La,Mp=new ke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Fp=new ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Bp=new ke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),jp=new Dp({explicit:[Mp,Fp,Bp]});function F0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function B0(){return null}function j0(t){return t===null}var Hp=new ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:F0,construct:B0,predicate:j0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function H0(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 q0(t){return t==="true"||t==="True"||t==="TRUE"}function U0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var qp=new ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:H0,construct:q0,predicate:U0,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 $0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function G0(t){return 48<=t&&t<=55}function z0(t){return 48<=t&&t<=57}function W0(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(!$0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!G0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!z0(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Y0(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 K0(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var Up=new ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:W0,construct:Y0,predicate:K0,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"]}}),V0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Z0(t){return!(t===null||!V0.test(t)||t[t.length-1]==="_")}function X0(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 J0=/^[-+]?[0-9]+e/;function Q0(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),J0.test(r)?r.replace("e",".e"):r}function ev(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var $p=new ke("tag:yaml.org,2002:float",{kind:"scalar",resolve:Z0,construct:X0,predicate:ev,represent:Q0,defaultStyle:"lowercase"}),Gp=jp.extend({implicit:[Hp,qp,Up,$p]}),zp=Gp,Wp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Yp=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 tv(t){return t===null?!1:Wp.exec(t)!==null||Yp.exec(t)!==null}function rv(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=Wp.exec(t),e===null&&(e=Yp.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 iv(t){return t.toISOString()}var Kp=new ke("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tv,construct:rv,instanceOf:Date,represent:iv});function nv(t){return t==="<<"||t===null}var Vp=new ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nv}),Ma=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function sv(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Ma;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 ov(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Ma,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 av(t){var e="",r=0,i,n,s=t.length,o=Ma;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 lv(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Zp=new ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sv,construct:ov,predicate:lv,represent:av}),cv=Object.prototype.hasOwnProperty,uv=Object.prototype.toString;function hv(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,uv.call(n)!=="[object Object]")return!1;for(s in n)if(cv.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 fv(t){return t!==null?t:[]}var Xp=new ke("tag:yaml.org,2002:omap",{kind:"sequence",resolve:hv,construct:fv}),pv=Object.prototype.toString;function dv(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],pv.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function mv(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 Jp=new ke("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dv,construct:mv}),yv=Object.prototype.hasOwnProperty;function gv(t){if(t===null)return!0;var e,r=t;for(e in r)if(yv.call(r,e)&&r[e]!==null)return!1;return!0}function _v(t){return t!==null?t:{}}var Qp=new ke("tag:yaml.org,2002:set",{kind:"mapping",resolve:gv,construct:_v}),Fa=zp.extend({implicit:[Kp,Vp],explicit:[Zp,Xp,Jp,Qp]}),ir=Object.prototype.hasOwnProperty,hs=1,ed=2,td=3,fs=4,Ca=1,bv=2,bp=3,wv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sv=/[\x85\u2028\u2029]/,Ev=/[,\[\]\{\}]/,rd=/^(?:!|!!|![a-z\-]+!)$/i,id=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wp(t){return Object.prototype.toString.call(t)}function _t(t){return t===10||t===13}function Lr(t){return t===9||t===32}function Ue(t){return t===9||t===32||t===10||t===13}function ui(t){return t===44||t===91||t===93||t===123||t===125}function vv(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Rv(t){return t===120?2:t===117?4:t===85?8:0}function xv(t){return 48<=t&&t<=57?t-48:-1}function Sp(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 Av(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var nd=new Array(256),sd=new Array(256);for(Cr=0;Cr<256;Cr++)nd[Cr]=Sp(Cr)?1:0,sd[Cr]=Sp(Cr);var Cr;function Ov(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Fa,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 od(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=L0(r),new He(e,r)}function Q(t,e){throw od(t,e)}function ps(t,e){t.onWarning&&t.onWarning.call(null,od(t,e))}var Ep={YAML:function(e,r,i){var n,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),i.length!==1&&Q(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&ps(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],rd.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),ir.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),id.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function rr(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else wv.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function vp(t,e,r,i){var n,s,o,a;for(Re.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],ir.call(e,s)||(e[s]=r[s],i[s]=!0)}function hi(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&wp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&wp(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)vp(t,e,s[c],r);else vp(t,e,s,r);else!t.json&&!ir.call(r,n)&&ir.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,Q(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Ba(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ee(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Lr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(_t(n))for(Ba(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&ps(t,"deficient indentation"),i}function ys(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ue(r)))}function ja(t,e){e===1?t.result+=" ":e>1&&(t.result+=Re.repeat(`
14
+ `;return a.replace(/\n$/,"")}var L0=C0,P0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],I0=["scalar","sequence","mapping"];function N0(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function D0(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(P0.indexOf(r)===-1)throw new He('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=N0(e.styleAliases||null),I0.indexOf(this.kind)===-1)throw new He('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ke=D0;function _p(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 M0(){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 La(t){return this.extend(t)}La.prototype.extend=function(e){var r=[],i=[];if(e instanceof ke)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new He("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new He("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new He("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof ke))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(La.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=_p(n,"implicit"),n.compiledExplicit=_p(n,"explicit"),n.compiledTypeMap=M0(n.compiledImplicit,n.compiledExplicit),n};var Dp=La,Mp=new ke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Fp=new ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Bp=new ke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),jp=new Dp({explicit:[Mp,Fp,Bp]});function F0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function B0(){return null}function j0(t){return t===null}var Hp=new ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:F0,construct:B0,predicate:j0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function H0(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 q0(t){return t==="true"||t==="True"||t==="TRUE"}function U0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var qp=new ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:H0,construct:q0,predicate:U0,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 $0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function G0(t){return 48<=t&&t<=55}function z0(t){return 48<=t&&t<=57}function W0(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(!$0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!G0(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!z0(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Y0(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 V0(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var Up=new ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:W0,construct:Y0,predicate:V0,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"]}}),K0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Z0(t){return!(t===null||!K0.test(t)||t[t.length-1]==="_")}function X0(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 J0=/^[-+]?[0-9]+e/;function Q0(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),J0.test(r)?r.replace("e",".e"):r}function ev(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var $p=new ke("tag:yaml.org,2002:float",{kind:"scalar",resolve:Z0,construct:X0,predicate:ev,represent:Q0,defaultStyle:"lowercase"}),Gp=jp.extend({implicit:[Hp,qp,Up,$p]}),zp=Gp,Wp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Yp=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 tv(t){return t===null?!1:Wp.exec(t)!==null||Yp.exec(t)!==null}function rv(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=Wp.exec(t),e===null&&(e=Yp.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 iv(t){return t.toISOString()}var Vp=new ke("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tv,construct:rv,instanceOf:Date,represent:iv});function nv(t){return t==="<<"||t===null}var Kp=new ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nv}),Ma=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function sv(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Ma;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 ov(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Ma,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 av(t){var e="",r=0,i,n,s=t.length,o=Ma;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 lv(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Zp=new ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sv,construct:ov,predicate:lv,represent:av}),cv=Object.prototype.hasOwnProperty,uv=Object.prototype.toString;function hv(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,uv.call(n)!=="[object Object]")return!1;for(s in n)if(cv.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 fv(t){return t!==null?t:[]}var Xp=new ke("tag:yaml.org,2002:omap",{kind:"sequence",resolve:hv,construct:fv}),pv=Object.prototype.toString;function dv(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],pv.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function mv(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 Jp=new ke("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dv,construct:mv}),yv=Object.prototype.hasOwnProperty;function gv(t){if(t===null)return!0;var e,r=t;for(e in r)if(yv.call(r,e)&&r[e]!==null)return!1;return!0}function _v(t){return t!==null?t:{}}var Qp=new ke("tag:yaml.org,2002:set",{kind:"mapping",resolve:gv,construct:_v}),Fa=zp.extend({implicit:[Vp,Kp],explicit:[Zp,Xp,Jp,Qp]}),ir=Object.prototype.hasOwnProperty,hs=1,ed=2,td=3,fs=4,Ca=1,bv=2,bp=3,Sv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wv=/[\x85\u2028\u2029]/,Ev=/[,\[\]\{\}]/,rd=/^(?:!|!!|![a-z\-]+!)$/i,id=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Sp(t){return Object.prototype.toString.call(t)}function _t(t){return t===10||t===13}function Lr(t){return t===9||t===32}function Ue(t){return t===9||t===32||t===10||t===13}function ui(t){return t===44||t===91||t===93||t===123||t===125}function vv(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Rv(t){return t===120?2:t===117?4:t===85?8:0}function xv(t){return 48<=t&&t<=57?t-48:-1}function wp(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
16
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Av(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var nd=new Array(256),sd=new Array(256);for(Cr=0;Cr<256;Cr++)nd[Cr]=wp(Cr)?1:0,sd[Cr]=wp(Cr);var Cr;function Ov(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Fa,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 od(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=L0(r),new He(e,r)}function Q(t,e){throw od(t,e)}function ps(t,e){t.onWarning&&t.onWarning.call(null,od(t,e))}var Ep={YAML:function(e,r,i){var n,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),i.length!==1&&Q(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&ps(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],rd.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),ir.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),id.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function rr(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else Sv.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function vp(t,e,r,i){var n,s,o,a;for(Re.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],ir.call(e,s)||(e[s]=r[s],i[s]=!0)}function hi(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Sp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Sp(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)vp(t,e,s[c],r);else vp(t,e,s,r);else!t.json&&!ir.call(r,n)&&ir.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,Q(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Ba(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ee(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Lr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(_t(n))for(Ba(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&ps(t,"deficient indentation"),i}function ys(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ue(r)))}function ja(t,e){e===1?t.result+=" ":e>1&&(t.result+=Re.repeat(`
17
17
  `,e-1))}function Tv(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),Ue(d)||ui(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&ui(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&ui(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Ue(i))break}else{if(t.position===t.lineStart&&ys(t)||r&&ui(d))break;if(_t(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,Ee(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(rr(t,s,o,!1),ja(t,t.line-l),s=o=t.position,a=!1),Lr(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return rr(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function kv(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(rr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else _t(r)?(rr(t,i,n,!0),ja(t,Ee(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ys(t)?Q(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Q(t,"unexpected end of the stream within a single quoted scalar")}function Cv(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return rr(t,r,t.position,!0),t.position++,!0;if(a===92){if(rr(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),_t(a))Ee(t,!1,e);else if(a<256&&nd[a])t.result+=sd[a],t.position++;else if((o=Rv(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=vv(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=Av(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else _t(a)?(rr(t,r,i,!0),ja(t,Ee(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ys(t)?Q(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Q(t,"unexpected end of the stream within a double quoted scalar")}function Lv(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,d,g=Object.create(null),y,_,x,k;if(k=t.input.charCodeAt(t.position),k===91)u=93,d=!1,a=[];else if(k===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),k=t.input.charCodeAt(++t.position);k!==0;){if(Ee(t,!0,e),k=t.input.charCodeAt(t.position),k===u)return t.position++,t.tag=o,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;r?k===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),_=y=x=null,h=f=!1,k===63&&(c=t.input.charCodeAt(t.position+1),Ue(c)&&(h=f=!0,t.position++,Ee(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,fi(t,e,hs,!1,!0),_=t.tag,y=t.result,Ee(t,!0,e),k=t.input.charCodeAt(t.position),(f||t.line===i)&&k===58&&(h=!0,k=t.input.charCodeAt(++t.position),Ee(t,!0,e),fi(t,e,hs,!1,!0),x=t.result),d?hi(t,a,g,_,y,x,i,n,s):h?a.push(hi(t,null,g,_,y,x,i,n,s)):a.push(y),Ee(t,!0,e),k=t.input.charCodeAt(t.position),k===44?(r=!0,k=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function Pv(t,e){var r,i,n=Ca,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)Ca===n?n=h===43?bp:bv:Q(t,"repeat of a chomping mode identifier");else if((u=xv(h))>=0)u===0?Q(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Lr(h)){do h=t.input.charCodeAt(++t.position);while(Lr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!_t(h)&&h!==0)}for(;h!==0;){for(Ba(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),_t(h)){l++;continue}if(t.lineIndent<a){n===bp?t.result+=Re.repeat(`
18
18
  `,s?1+l:l):n===Ca&&s&&(t.result+=`
19
19
  `);break}for(i?Lr(h)?(c=!0,t.result+=Re.repeat(`
20
20
  `,s?1+l:l)):c?(c=!1,t.result+=Re.repeat(`
21
21
  `,l+1)):l===0?s&&(t.result+=" "):t.result+=Re.repeat(`
22
22
  `,l):t.result+=Re.repeat(`
23
- `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!_t(h)&&h!==0;)h=t.input.charCodeAt(++t.position);rr(t,r,t.position,!1)}return!0}function Rp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ue(o))));){if(a=!0,t.position++,Ee(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,td,!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 Iv(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,_=!1,x=!1,k;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),k=t.input.charCodeAt(t.position);k!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(k===63||k===58)&&Ue(i))k===63?(_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!0,n=!0):_?(_=!1,n=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,k=i;else{if(o=t.line,a=t.lineStart,l=t.position,!fi(t,r,ed,!1,!0))break;if(t.line===s){for(k=t.input.charCodeAt(t.position);Lr(k);)k=t.input.charCodeAt(++t.position);if(k===58)k=t.input.charCodeAt(++t.position),Ue(k)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!1,n=!1,d=t.tag,g=t.result;else if(x)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),fi(t,e,fs,!0,n)&&(_?g=t.result:y=t.result),_||(hi(t,h,f,d,g,y,o,a,l),d=g=y=null),Ee(t,!0,-1),k=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&k!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&hi(t,h,f,d,g,null,o,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),x}function Nv(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Q(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ue(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),rd.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),Ev.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!id.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:ir.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+n+'"'),!0}function Dv(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ue(r)&&!ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Mv(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ue(i)&&!ui(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ir.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ee(t,!0,-1),!0}function fi(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,d,g,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=fs===r||td===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(;Nv(t)||Dv(t);)Ee(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||fs===r)&&(hs===r||ed===r?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(Rp(t,_)||Iv(t,_,y))||Lv(t,y)?u=!0:(o&&Pv(t,y)||kv(t,y)||Cv(t,y)?u=!0:Mv(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Tv(t,y,hs===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Rp(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(ir.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){g=d[h];break}g||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Fv(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Ee(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;Lr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!_t(o));break}if(_t(o))break;for(r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Ba(t),ir.call(Ep,i)?Ep[i](t,i,n):ps(t,'unknown document directive "'+i+'"')}if(Ee(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ee(t,!0,-1)):s&&Q(t,"directives end mark is expected"),fi(t,t.lineIndent-1,fs,!1,!0),Ee(t,!0,-1),t.checkLineBreaks&&Sv.test(t.input.slice(e,t.position))&&ps(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ys(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ee(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function ad(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 Ov(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;)Fv(r);return r.documents}function Bv(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=ad(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function jv(t,e){var r=ad(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new He("expected a single document in the stream, but found more")}}var Hv=Bv,qv=jv,ld={loadAll:Hv,load:qv},cd=Object.prototype.toString,ud=Object.prototype.hasOwnProperty,Ha=65279,Uv=9,un=10,$v=13,Gv=32,zv=33,Wv=34,Pa=35,Yv=37,Kv=38,Vv=39,Zv=42,hd=44,Xv=45,ds=58,Jv=61,Qv=62,eR=63,tR=64,fd=91,pd=93,rR=96,dd=123,iR=124,md=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 nR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],sR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function oR(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&&ud.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function aR(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new He("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Re.repeat("0",i-e.length)+e}var lR=1,hn=2;function cR(t){this.schema=t.schema||Fa,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=oR(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?hn:lR,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 xp(t,e){for(var r=Re.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
23
+ `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!_t(h)&&h!==0;)h=t.input.charCodeAt(++t.position);rr(t,r,t.position,!1)}return!0}function Rp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ue(o))));){if(a=!0,t.position++,Ee(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,td,!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 Iv(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,_=!1,x=!1,k;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),k=t.input.charCodeAt(t.position);k!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(k===63||k===58)&&Ue(i))k===63?(_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!0,n=!0):_?(_=!1,n=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,k=i;else{if(o=t.line,a=t.lineStart,l=t.position,!fi(t,r,ed,!1,!0))break;if(t.line===s){for(k=t.input.charCodeAt(t.position);Lr(k);)k=t.input.charCodeAt(++t.position);if(k===58)k=t.input.charCodeAt(++t.position),Ue(k)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(hi(t,h,f,d,g,null,o,a,l),d=g=y=null),x=!0,_=!1,n=!1,d=t.tag,g=t.result;else if(x)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),fi(t,e,fs,!0,n)&&(_?g=t.result:y=t.result),_||(hi(t,h,f,d,g,y,o,a,l),d=g=y=null),Ee(t,!0,-1),k=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&k!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&hi(t,h,f,d,g,null,o,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),x}function Nv(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Q(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ue(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),rd.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),Ev.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!id.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:ir.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+n+'"'),!0}function Dv(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ue(r)&&!ui(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Mv(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ue(i)&&!ui(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ir.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ee(t,!0,-1),!0}function fi(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,d,g,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=fs===r||td===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(;Nv(t)||Dv(t);)Ee(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||fs===r)&&(hs===r||ed===r?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(Rp(t,_)||Iv(t,_,y))||Lv(t,y)?u=!0:(o&&Pv(t,y)||kv(t,y)||Cv(t,y)?u=!0:Mv(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Tv(t,y,hs===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Rp(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(ir.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){g=d[h];break}g||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Fv(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Ee(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;Lr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!_t(o));break}if(_t(o))break;for(r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Ba(t),ir.call(Ep,i)?Ep[i](t,i,n):ps(t,'unknown document directive "'+i+'"')}if(Ee(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ee(t,!0,-1)):s&&Q(t,"directives end mark is expected"),fi(t,t.lineIndent-1,fs,!1,!0),Ee(t,!0,-1),t.checkLineBreaks&&wv.test(t.input.slice(e,t.position))&&ps(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ys(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ee(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function ad(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 Ov(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;)Fv(r);return r.documents}function Bv(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=ad(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function jv(t,e){var r=ad(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new He("expected a single document in the stream, but found more")}}var Hv=Bv,qv=jv,ld={loadAll:Hv,load:qv},cd=Object.prototype.toString,ud=Object.prototype.hasOwnProperty,Ha=65279,Uv=9,un=10,$v=13,Gv=32,zv=33,Wv=34,Pa=35,Yv=37,Vv=38,Kv=39,Zv=42,hd=44,Xv=45,ds=58,Jv=61,Qv=62,eR=63,tR=64,fd=91,pd=93,rR=96,dd=123,iR=124,md=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 nR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],sR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function oR(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&&ud.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function aR(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new He("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Re.repeat("0",i-e.length)+e}var lR=1,hn=2;function cR(t){this.schema=t.schema||Fa,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=oR(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?hn:lR,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 xp(t,e){for(var r=Re.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
25
25
  `,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
26
26
  `&&(s+=r),s+=o;return s}function Ia(t,e){return`
27
- `+Re.repeat(" ",t.indent*e)}function uR(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function ms(t){return t===Gv||t===Uv}function fn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ha||65536<=t&&t<=1114111}function Ap(t){return fn(t)&&t!==Ha&&t!==$v&&t!==un}function Op(t,e,r){var i=Ap(t),n=i&&!ms(t);return(r?i:i&&t!==hd&&t!==fd&&t!==pd&&t!==dd&&t!==md)&&t!==Pa&&!(e===ds&&!n)||Ap(e)&&!ms(e)&&t===Pa||e===ds&&n}function hR(t){return fn(t)&&t!==Ha&&!ms(t)&&t!==Xv&&t!==eR&&t!==ds&&t!==hd&&t!==fd&&t!==pd&&t!==dd&&t!==md&&t!==Pa&&t!==Kv&&t!==Zv&&t!==zv&&t!==iR&&t!==Jv&&t!==Qv&&t!==Vv&&t!==Wv&&t!==Yv&&t!==tR&&t!==rR}function fR(t){return!ms(t)&&t!==ds}function ln(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yd(t){var e=/^\n* /;return e.test(t)}var gd=1,Na=2,_d=3,bd=4,ci=5;function pR(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,d=i!==-1,g=-1,y=hR(ln(t,0))&&fR(ln(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),!fn(c))return ci;y=y&&Op(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),c===un)h=!0,d&&(f=f||l-g-1>i&&t[g+1]!==" ",g=l);else if(!fn(c))return ci;y=y&&Op(c,u,a),u=c}f=f||d&&l-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?gd:s===hn?ci:Na:r>9&&yd(t)?ci:o?s===hn?ci:Na:f?bd:_d}function dR(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===hn?'""':"''";if(!t.noCompatMode&&(nR.indexOf(e)!==-1||sR.test(e)))return t.quotingType===hn?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return uR(t,c)}switch(pR(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case gd:return e;case Na:return"'"+e.replace(/'/g,"''")+"'";case _d:return"|"+Tp(e,t.indent)+kp(xp(e,s));case bd:return">"+Tp(e,t.indent)+kp(xp(mR(e,o),s));case ci:return'"'+yR(e)+'"';default:throw new He("impossible error: invalid scalar style")}}()}function Tp(t,e){var r=yd(t)?String(e):"",i=t[t.length-1]===`
27
+ `+Re.repeat(" ",t.indent*e)}function uR(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function ms(t){return t===Gv||t===Uv}function fn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ha||65536<=t&&t<=1114111}function Ap(t){return fn(t)&&t!==Ha&&t!==$v&&t!==un}function Op(t,e,r){var i=Ap(t),n=i&&!ms(t);return(r?i:i&&t!==hd&&t!==fd&&t!==pd&&t!==dd&&t!==md)&&t!==Pa&&!(e===ds&&!n)||Ap(e)&&!ms(e)&&t===Pa||e===ds&&n}function hR(t){return fn(t)&&t!==Ha&&!ms(t)&&t!==Xv&&t!==eR&&t!==ds&&t!==hd&&t!==fd&&t!==pd&&t!==dd&&t!==md&&t!==Pa&&t!==Vv&&t!==Zv&&t!==zv&&t!==iR&&t!==Jv&&t!==Qv&&t!==Kv&&t!==Wv&&t!==Yv&&t!==tR&&t!==rR}function fR(t){return!ms(t)&&t!==ds}function ln(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yd(t){var e=/^\n* /;return e.test(t)}var gd=1,Na=2,_d=3,bd=4,ci=5;function pR(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,d=i!==-1,g=-1,y=hR(ln(t,0))&&fR(ln(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),!fn(c))return ci;y=y&&Op(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=ln(t,l),c===un)h=!0,d&&(f=f||l-g-1>i&&t[g+1]!==" ",g=l);else if(!fn(c))return ci;y=y&&Op(c,u,a),u=c}f=f||d&&l-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?gd:s===hn?ci:Na:r>9&&yd(t)?ci:o?s===hn?ci:Na:f?bd:_d}function dR(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===hn?'""':"''";if(!t.noCompatMode&&(nR.indexOf(e)!==-1||sR.test(e)))return t.quotingType===hn?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return uR(t,c)}switch(pR(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case gd:return e;case Na:return"'"+e.replace(/'/g,"''")+"'";case _d:return"|"+Tp(e,t.indent)+kp(xp(e,s));case bd:return">"+Tp(e,t.indent)+kp(xp(mR(e,o),s));case ci:return'"'+yR(e)+'"';default:throw new He("impossible error: invalid scalar style")}}()}function Tp(t,e){var r=yd(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+`
@@ -35,12 +35,12 @@ ${i.message}`:y,k=[x,e,t].filter(Boolean).join(`
35
35
  `:"")+Cp(l,e),n=s}return i}function Cp(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
36
36
  `+t.slice(n,s),n=s+1),o=a;return l+=`
37
37
  `,t.length-n>e&&o>n?l+=t.slice(n,o)+`
38
- `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function yR(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=ln(t,n),i=Ce[r],!i&&fn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||aR(r);return e}function gR(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Nt(t,e,a,!1,!1)||typeof a=="undefined"&&Nt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Lp(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(Nt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Nt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ia(t,e)),t.dump&&un===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function _R(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Nt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Nt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function bR(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new He("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Ia(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Nt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&un===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Ia(t,e)),Nt(t,e+1,u,!0,h)&&(t.dump&&un===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Pp(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,cd.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(ud.call(a.represent,l))i=a.represent[l](e,l);else throw new He("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function Nt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Pp(t,r,!1)||Pp(t,r,!0);var a=cd.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?(bR(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(_R(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?Lp(t,e-1,t.dump,n):Lp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(gR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&dR(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new He("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function wR(t,e){var r=[],i=[],n,s;for(Da(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Da(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)Da(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Da(t[i[n]],e,r)}function SR(t,e){e=e||{};var r=new cR(e);r.noRefs||wR(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Nt(r,0,i,!0,!0)?r.dump+`
39
- `:""}var ER=SR,vR={dump:ER};function qa(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 RR=ke,xR=Dp,AR=jp,OR=Gp,TR=zp,kR=Fa,CR=ld.load,LR=ld.loadAll,PR=vR.dump,IR=He,NR={binary:Zp,float:$p,map:Bp,null:Hp,pairs:Jp,set:Qp,timestamp:Kp,bool:qp,int:Up,merge:Vp,omap:Xp,seq:Fp,str:Mp},DR=qa("safeLoad","load"),MR=qa("safeLoadAll","loadAll"),FR=qa("safeDump","dump"),BR={Type:RR,Schema:xR,FAILSAFE_SCHEMA:AR,JSON_SCHEMA:OR,CORE_SCHEMA:TR,DEFAULT_SCHEMA:kR,load:CR,loadAll:LR,dump:PR,YAMLException:IR,types:NR,safeLoad:DR,safeLoadAll:MR,safeDump:FR},Ua=BR;var sD=ne(zs(),1),aD=require("fs-extra"),cD=require("fs-extra"),hD=require("picocolors"),Ag=require("stream"),Og=require("util"),mD=require("fs-extra"),bD=require("picocolors"),ED=require("fs-extra"),Fr=ne(require("path"),1),qe=require("fs-extra"),Tg=ne(li(),1),kg=ne(require("path"),1),Cg=require("fs-extra"),Lg=require("picocolors"),jt=ne(require("path"),1),Pg=ne(li(),1),Qe=require("fs-extra"),Ig=ne(zs(),1);var _n=ne(require("path"),1),Rt=require("fs-extra"),xi=ne(require("path"),1),xt=require("fs-extra"),bn=ne(require("path"),1),At=require("fs-extra"),An=require("picocolors"),w1=ne(require("gradient-string"),1),S1=ne(li(),1),E1=ne(require("ora"),1),v1=require("semver"),R1=require("picocolors"),qT=Object.create,Ac=Object.defineProperty,UT=Object.getOwnPropertyDescriptor,$T=Object.getOwnPropertyNames,GT=Object.getPrototypeOf,zT=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')}),WT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),YT=(t,e)=>{for(var r in e)Ac(t,r,{get:e[r],enumerable:!0})},KT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $T(e))!zT.call(t,n)&&n!==r&&Ac(t,n,{get:()=>e[n],enumerable:!(i=UT(e,n))||i.enumerable});return t},Ks=(t,e,r)=>(r=t!=null?qT(GT(t)):{},KT(e||!t||!t.__esModule?Ac(r,"default",{value:t,enumerable:!0}):r,t)),W=WT(()=>{}),VT=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}),ZT=ee((t,e)=>{W();var r=VT().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}),XT=ee((t,e)=>{W();var r=ZT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),JT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),QT=ee((t,e)=>{"use strict";W();var r=JT(),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}),ek=ee((t,e)=>{"use strict";W();var r=QT(),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}),tk=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=ek(),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{}}}),rk=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}}}),ik=ee((t,e)=>{"use strict";W();var r=te("path"),i=tk(),n=rk(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=async f=>{if(typeof o!="function")return i(u,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.sync=(o,a={})=>{let l=r.resolve(a.cwd||""),{root:c}=r.parse(l),u=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(u,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:l});if(f===s)return;if(f)return r.resolve(l,f);if(l===c)return;l=r.dirname(l)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),wn=ee((t,e)=>{"use strict";W();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Oc=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 ag 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 ag||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),nk=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))}),lg=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 cg 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 cg||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),ug=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=nk(),s=lg(),o=r.concat,a=Symbol("_superWrite"),l=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),u=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),g=Symbol("onError"),y=Symbol("sawError"),_=Symbol("level"),x=Symbol("strategy"),k=Symbol("ended"),C=Symbol("_defaultFullFlush"),T=class extends s{constructor(L,j){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[k]=!1,this[c]=L,this[u]=L.flush,this[h]=L.finishFlush;try{this[d]=new i[j](L)}catch(z){throw new l(z)}this[g]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[g](new l(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[u]:L})))}end(L,j,z){return L&&this.write(L,j),this.flush(this[h]),this[k]=!0,super.end(null,null,z)}get ended(){return this[k]}write(L,j,z){if(typeof j=="function"&&(z=j,j="utf8"),typeof L=="string"&&(L=r.from(L,j)),this[y])return;e(this[d],"zlib binding closed");let D=this[d]._handle,p=D.close;D.close=()=>{};let m=this[d].close;this[d].close=()=>{},r.concat=E=>E;let b;try{let E=typeof L[u]=="number"?L[u]:this[u];b=this[d]._processChunk(L,E),r.concat=o}catch(E){r.concat=o,this[g](new l(E))}finally{this[d]&&(this[d]._handle=D,D.close=p,this[d].close=m,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",E=>this[g](new l(E)));let R;if(b)if(Array.isArray(b)&&b.length>0){R=this[a](r.from(b[0]));for(let E=1;E<b.length;E++)R=this[a](b[E])}else R=this[a](r.from(b));return z&&z(),R}[a](L){return super.write(L)}},O=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.Z_NO_FLUSH,L.finishFlush=L.finishFlush||n.Z_FINISH,super(L,j),this[f]=n.Z_FULL_FLUSH,this[_]=L.level,this[x]=L.strategy}params(L,j){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[_]!==L||this[x]!==j){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(D,p)=>{this.flush(D),p()};try{this[d].params(L,j)}finally{this[d].flush=z}this[d]&&(this[_]=L,this[x]=j)}}}},I=class extends O{constructor(L){super(L,"Deflate")}},w=class extends O{constructor(L){super(L,"Inflate")}},v=Symbol("_portable"),F=class extends O{constructor(L){super(L,"Gzip"),this[v]=L&&!!L.portable}[a](L){return this[v]?(this[v]=!1,L[9]=255,super[a](L)):super[a](L)}},q=class extends O{constructor(L){super(L,"Gunzip")}},P=class extends O{constructor(L){super(L,"DeflateRaw")}},$=class extends O{constructor(L){super(L,"InflateRaw")}},K=class extends O{constructor(L){super(L,"Unzip")}},V=class extends T{constructor(L,j){L=L||{},L.flush=L.flush||n.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||n.BROTLI_OPERATION_FINISH,super(L,j),this[f]=n.BROTLI_OPERATION_FLUSH}},N=class extends V{constructor(L){super(L,"BrotliCompress")}},A=class extends V{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=I,t.Inflate=w,t.Gzip=F,t.Gunzip=q,t.DeflateRaw=P,t.InflateRaw=$,t.Unzip=K,typeof i.BrotliCompress=="function"?(t.BrotliCompress=N,t.BrotliDecompress=A):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Sn=ee((t,e)=>{W();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Tc=ee((t,e)=>{"use strict";W();var r=Oc(),i=Sn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,l=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,l-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),hg=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]]))}),sk=ee((t,e)=>{"use strict";W();var r=(u,h)=>{if(Number.isSafeInteger(u))u<0?n(u,h):i(u,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(u,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=u&255,u=Math.floor(u/256)},n=(u,h)=>{h[0]=255;var f=!1;u=u*-1;for(var d=h.length;d>1;d--){var g=u&255;u=Math.floor(u/256),f?h[d-1]=l(g):g===0?h[d-1]=0:(f=!0,h[d-1]=c(g))}},s=u=>{let h=u[0],f=h===128?a(u.slice(1,u.length)):h===255?o(u):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=u=>{for(var h=u.length,f=0,d=!1,g=h-1;g>-1;g--){var y=u[g],_;d?_=l(y):y===0?_=y:(d=!0,_=c(y)),_!==0&&(f-=_*Math.pow(256,h-g-1))}return f},a=u=>{for(var h=u.length,f=0,d=h-1;d>-1;d--){var g=u[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},l=u=>(255^u)&255,c=u=>(255^u)+1&255;e.exports={encode:r,parse:s}}),En=ee((t,e)=>{"use strict";W();var r=hg(),i=te("path").posix,n=sk(),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}),kc=ee((t,e)=>{"use strict";W();var r=En(),i=te("path"),n=class{constructor(l,c){this.atime=l.atime||null,this.charset=l.charset||null,this.comment=l.comment||null,this.ctime=l.ctime||null,this.gid=l.gid||null,this.gname=l.gname||null,this.linkpath=l.linkpath||null,this.mtime=l.mtime||null,this.path=l.path||null,this.size=l.size||null,this.uid=l.uid||null,this.uname=l.uname||null,this.dev=l.dev||null,this.ino=l.ino||null,this.nlink=l.nlink||null,this.global=c||!1}encode(){let l=this.encodeBody();if(l==="")return null;let c=Buffer.byteLength(l),u=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(u);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(l,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(l){if(this[l]===null||this[l]===void 0)return"";let c=this[l]instanceof Date?this[l].getTime()/1e3:this[l],u=" "+(l==="dev"||l==="ino"||l==="nlink"?"SCHILY.":"")+l+"="+c+`
38
+ `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function yR(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=ln(t,n),i=Ce[r],!i&&fn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||aR(r);return e}function gR(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Nt(t,e,a,!1,!1)||typeof a=="undefined"&&Nt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Lp(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(Nt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Nt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ia(t,e)),t.dump&&un===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function _R(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Nt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Nt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function bR(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new He("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Ia(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Nt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&un===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Ia(t,e)),Nt(t,e+1,u,!0,h)&&(t.dump&&un===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Pp(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,cd.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(ud.call(a.represent,l))i=a.represent[l](e,l);else throw new He("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function Nt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Pp(t,r,!1)||Pp(t,r,!0);var a=cd.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?(bR(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(_R(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?Lp(t,e-1,t.dump,n):Lp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(gR(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&dR(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new He("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function SR(t,e){var r=[],i=[],n,s;for(Da(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Da(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)Da(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Da(t[i[n]],e,r)}function wR(t,e){e=e||{};var r=new cR(e);r.noRefs||SR(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Nt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var ER=wR,vR={dump:ER};function qa(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 RR=ke,xR=Dp,AR=jp,OR=Gp,TR=zp,kR=Fa,CR=ld.load,LR=ld.loadAll,PR=vR.dump,IR=He,NR={binary:Zp,float:$p,map:Bp,null:Hp,pairs:Jp,set:Qp,timestamp:Vp,bool:qp,int:Up,merge:Kp,omap:Xp,seq:Fp,str:Mp},DR=qa("safeLoad","load"),MR=qa("safeLoadAll","loadAll"),FR=qa("safeDump","dump"),BR={Type:RR,Schema:xR,FAILSAFE_SCHEMA:AR,JSON_SCHEMA:OR,CORE_SCHEMA:TR,DEFAULT_SCHEMA:kR,load:CR,loadAll:LR,dump:PR,YAMLException:IR,types:NR,safeLoad:DR,safeLoadAll:MR,safeDump:FR},Ua=BR;var sD=ne(zs(),1),aD=require("fs-extra"),cD=require("fs-extra"),hD=require("picocolors"),Ag=require("stream"),Og=require("util"),mD=require("fs-extra"),bD=require("picocolors"),ED=require("fs-extra"),Fr=ne(require("path"),1),qe=require("fs-extra"),Tg=ne(li(),1),kg=ne(require("path"),1),Cg=require("fs-extra"),Lg=require("picocolors"),jt=ne(require("path"),1),Pg=ne(li(),1),Qe=require("fs-extra"),Ig=ne(zs(),1);var _n=ne(require("path"),1),Rt=require("fs-extra"),xi=ne(require("path"),1),xt=require("fs-extra"),bn=ne(require("path"),1),At=require("fs-extra"),An=require("picocolors"),S1=ne(require("gradient-string"),1),w1=ne(li(),1),E1=ne(require("ora"),1),v1=require("semver"),R1=require("picocolors"),qT=Object.create,Ac=Object.defineProperty,UT=Object.getOwnPropertyDescriptor,$T=Object.getOwnPropertyNames,GT=Object.getPrototypeOf,zT=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')}),WT=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),YT=(t,e)=>{for(var r in e)Ac(t,r,{get:e[r],enumerable:!0})},VT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $T(e))!zT.call(t,n)&&n!==r&&Ac(t,n,{get:()=>e[n],enumerable:!(i=UT(e,n))||i.enumerable});return t},Vs=(t,e,r)=>(r=t!=null?qT(GT(t)):{},VT(e||!t||!t.__esModule?Ac(r,"default",{value:t,enumerable:!0}):r,t)),W=WT(()=>{}),KT=ee((t,e)=>{W();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),ZT=ee((t,e)=>{W();var r=KT().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(D,p,m){D[p]=m.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(D,p,m){return Object.defineProperty(D,p,{value:m,enumerable:!0,configurable:!0,writable:!0}),D[p]}try{d({},"")}catch{d=function(D,p,m){return D[p]=m}}function g(D,p,m,b){var R=p&&p.prototype instanceof O?p:O,E=Object.create(R.prototype),M=new j(b||[]);return l(E,"_invoke",{value:K(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 S(){}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=S.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 V(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 K(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=S,l(P,"constructor",{value:S,configurable:!0}),l(S,"constructor",{value:I,configurable:!0}),I.displayName=d(S,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,S):(D.__proto__=S,d(D,f,"GeneratorFunction")),D.prototype=Object.create(P),D},s.awrap=function(D){return{__await:D}},$(V.prototype),d(V.prototype,h,function(){return this}),s.AsyncIterator=V,s.async=function(D,p,m,b,R){R===void 0&&(R=Promise);var E=new V(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}),XT=ee((t,e)=>{W();var r=ZT()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),JT=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),QT=ee((t,e)=>{"use strict";W();var r=JT(),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}),ek=ee((t,e)=>{"use strict";W();var r=QT(),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}),tk=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=ek(),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{}}}),rk=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}}}),ik=ee((t,e)=>{"use strict";W();var r=te("path"),i=tk(),n=rk(),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}),Sn=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)):{}}),Oc=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"),S=Symbol("bufferPush"),v=Symbol("bufferShift"),F=Symbol("objectMode"),q=Symbol("destroyed"),P=Symbol("emitData"),$=Symbol("emitEnd"),V=Symbol("emitEnd2"),K=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 ag 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[K]=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[K]}set async(E){this[K]=this[K]||!!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[K]?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[S](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[S](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]}[S](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[K]?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[K]?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[K]?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[K]?N(()=>this[V]()):this[V]())}[V](){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 ag||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),nk=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))}),lg=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"),S=Symbol("objectMode"),v=Symbol("destroyed"),F=Symbol("emitData"),q=Symbol("emitEnd"),P=Symbol("emitEnd2"),$=Symbol("async"),V=m=>Promise.resolve().then(m),K=global._MP_NO_ITERATOR_SYMBOLS_!=="1",N=K&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A=K&&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 cg extends n{constructor(b){super(),this[x]=!1,this[k]=!1,this.pipes=[],this.buffer=[],this[S]=b&&b.objectMode||!1,this[S]?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[S])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[S]}set objectMode(b){this[S]=this[S]||!!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[$]?V:B=>B();return!this[S]&&!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[S]?(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[S]&&(b=null),this.buffer.length>1&&!this[S]&&(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[S]?this[T]+=1:this[T]+=b.length,this.buffer.push(b)}[I](){return this.buffer.length&&(this[S]?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[$]?V(()=>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[$]?V(()=>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[$]?V(()=>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[$]?V(()=>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[S]||(b.dataLength=0);let R=this.promise();return this.on("data",E=>{b.push(E),this[S]||(b.dataLength+=E.length)}),R.then(()=>b)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(b=>this[S]?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 cg||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),ug=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=nk(),s=lg(),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")}},S=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")}},V=class extends O{constructor(L){super(L,"Unzip")}},K=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 K{constructor(L){super(L,"BrotliCompress")}},A=class extends K{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=I,t.Inflate=S,t.Gzip=F,t.Gunzip=q,t.DeflateRaw=P,t.InflateRaw=$,t.Unzip=V,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,"/")}),Tc=ee((t,e)=>{"use strict";W();var r=Oc(),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])}}}),hg=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]]))}),sk=ee((t,e)=>{"use strict";W();var r=(u,h)=>{if(Number.isSafeInteger(u))u<0?n(u,h):i(u,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(u,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=u&255,u=Math.floor(u/256)},n=(u,h)=>{h[0]=255;var f=!1;u=u*-1;for(var d=h.length;d>1;d--){var g=u&255;u=Math.floor(u/256),f?h[d-1]=l(g):g===0?h[d-1]=0:(f=!0,h[d-1]=c(g))}},s=u=>{let h=u[0],f=h===128?a(u.slice(1,u.length)):h===255?o(u):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=u=>{for(var h=u.length,f=0,d=!1,g=h-1;g>-1;g--){var y=u[g],_;d?_=l(y):y===0?_=y:(d=!0,_=c(y)),_!==0&&(f-=_*Math.pow(256,h-g-1))}return f},a=u=>{for(var h=u.length,f=0,d=h-1;d>-1;d--){var g=u[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},l=u=>(255^u)&255,c=u=>(255^u)+1&255;e.exports={encode:r,parse:s}}),En=ee((t,e)=>{"use strict";W();var r=hg(),i=te("path").posix,n=sk(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,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(S)?this.decode(S,v||0,F,q):S&&this.set(S)}decode(S,v,F,q){if(v||(v=0),!S||!(S.length>=v+512))throw new Error("need 512 bytes for header");if(this.path=c(S,v,100),this.mode=f(S,v+100,8),this.uid=f(S,v+108,8),this.gid=f(S,v+116,8),this.size=f(S,v+124,12),this.mtime=u(S,v+136,12),this.cksum=f(S,v+148,12),this[s](F),this[s](q,!0),this[o]=c(S,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(S,v+157,100),S.slice(v+257,v+265).toString()==="ustar\x0000")if(this.uname=c(S,v+265,32),this.gname=c(S,v+297,32),this.devmaj=f(S,v+329,8),this.devmin=f(S,v+337,8),S[v+475]!==0){let $=c(S,v+345,155);this.path=$+"/"+this.path}else{let $=c(S,v+345,130);$&&(this.path=$+"/"+this.path),this.atime=u(S,v+476,12),this.ctime=u(S,v+488,12)}let P=8*32;for(let $=v;$<v+148;$++)P+=S[$];for(let $=v+156;$<v+512;$++)P+=S[$];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[s](S,v){for(let F in S)S[F]!==null&&S[F]!==void 0&&!(v&&F==="path")&&(this[F]=S[F])}encode(S,v){if(S||(S=this.block=Buffer.alloc(512),v=0),v||(v=0),!(S.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(S,v,100,P)||this.needPax,this.needPax=_(S,v+100,8,this.mode)||this.needPax,this.needPax=_(S,v+108,8,this.uid)||this.needPax,this.needPax=_(S,v+116,8,this.gid)||this.needPax,this.needPax=_(S,v+124,12,this.size)||this.needPax,this.needPax=T(S,v+136,12,this.mtime)||this.needPax,S[v+156]=this[o].charCodeAt(0),this.needPax=I(S,v+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",v+257,8),this.needPax=I(S,v+265,32,this.uname)||this.needPax,this.needPax=I(S,v+297,32,this.gname)||this.needPax,this.needPax=_(S,v+329,8,this.devmaj)||this.needPax,this.needPax=_(S,v+337,8,this.devmin)||this.needPax,this.needPax=I(S,v+345,F,$)||this.needPax,S[v+475]!==0?this.needPax=I(S,v+345,155,$)||this.needPax:(this.needPax=I(S,v+345,130,$)||this.needPax,this.needPax=T(S,v+476,12,this.atime)||this.needPax,this.needPax=T(S,v+488,12,this.ctime)||this.needPax);let V=8*32;for(let K=v;K<v+148;K++)V+=S[K];for(let K=v+156;K<v+512;K++)V+=S[K];return this.cksum=V,_(S,v+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let v in S)S[v]!==null&&S[v]!==void 0&&(this[v]=S[v])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},l=(S,v)=>{let F=S,q="",P,$=i.parse(S).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=[S.slice(0,100-1),"",!0])}return P},c=(S,v,F)=>S.slice(v,v+F).toString("utf8").replace(/\0.*/,""),u=(S,v,F)=>h(f(S,v,F)),h=S=>S===null?null:new Date(S*1e3),f=(S,v,F)=>S[v]&128?n.parse(S.slice(v,v+F)):g(S,v,F),d=S=>isNaN(S)?null:S,g=(S,v,F)=>d(parseInt(S.slice(v,v+F).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},_=(S,v,F,q)=>q===null?!1:q>y[F]||q<0?(n.encode(q,S.slice(v,v+F)),!0):(x(S,v,F,q),!1),x=(S,v,F,q)=>S.write(k(q,F),v,F,"ascii"),k=(S,v)=>C(Math.floor(S).toString(8),v),C=(S,v)=>(S.length===v-1?S:new Array(v-S.length-1).join("0")+S+" ")+"\0",T=(S,v,F,q)=>q===null?!1:_(S,v,F,q.getTime()/1e3),O=new Array(156).join("\0"),I=(S,v,F,q)=>q===null?!1:(S.write(q+O,v,F,"utf8"),q.length!==Buffer.byteLength(q)||q.length>F);e.exports=a}),kc=ee((t,e)=>{"use strict";W();var r=En(),i=te("path"),n=class{constructor(l,c){this.atime=l.atime||null,this.charset=l.charset||null,this.comment=l.comment||null,this.ctime=l.ctime||null,this.gid=l.gid||null,this.gname=l.gname||null,this.linkpath=l.linkpath||null,this.mtime=l.mtime||null,this.path=l.path||null,this.size=l.size||null,this.uid=l.uid||null,this.uname=l.uname||null,this.dev=l.dev||null,this.ino=l.ino||null,this.nlink=l.nlink||null,this.global=c||!1}encode(){let l=this.encodeBody();if(l==="")return null;let c=Buffer.byteLength(l),u=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(u);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(l,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(l){if(this[l]===null||this[l]===void 0)return"";let c=this[l]instanceof Date?this[l].getTime()/1e3:this[l],u=" "+(l==="dev"||l==="ino"||l==="nlink"?"SCHILY.":"")+l+"="+c+`
40
40
  `,h=Buffer.byteLength(u),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+u}};n.parse=(l,c,u)=>new n(s(o(l),c),u);var s=(l,c)=>c?Object.keys(l).reduce((u,h)=>(u[h]=l[h],u),c):l,o=l=>l.replace(/\n$/,"").split(`
41
- `).reduce(a,Object.create(null)),a=(l,c)=>{let u=parseInt(c,10);if(u!==Buffer.byteLength(c)+1)return l;c=c.slice((u+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return l;let d=h.join("=");return l[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,l};e.exports=n}),vn=ee((t,e)=>{W(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),Cc=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))}}}),fg=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)}}),pg=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]}}),ok=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)}),dg=ee((t,e)=>{"use strict";W();var r=Oc(),i=kc(),n=En(),s=te("fs"),o=te("path"),a=Sn(),l=vn(),c=(m,b)=>b?(m=a(m).replace(/^\.(\/|$)/,""),l(b)+"/"+m):a(m),u=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),_=Symbol("header"),x=Symbol("read"),k=Symbol("lstat"),C=Symbol("onlstat"),T=Symbol("onread"),O=Symbol("onreadlink"),I=Symbol("openfile"),w=Symbol("onopenfile"),v=Symbol("close"),F=Symbol("mode"),q=Symbol("awaitDrain"),P=Symbol("ondrain"),$=Symbol("prefix"),K=Symbol("hadError"),V=Cc(),N=fg(),A=pg(),L=ok(),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}),ak=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}}}),mg=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{ak()(r)}catch{}}),Lc=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=Oc(),n=ug(),s=Tc(),o=dg(),a=o.Sync,l=o.Tar,c=mg(),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=Cc(),j=Sn(),z=L(class extends i{constructor(p){super(p),p=p||Object.create(null),this.opt=p,this.file=p.file||"",this.cwd=p.cwd||process.cwd(),this.maxReadSize=p.maxReadSize,this.preservePaths=!!p.preservePaths,this.strict=!!p.strict,this.noPax=!!p.noPax,this.prefix=j(p.prefix||""),this.linkCache=p.linkCache||new Map,this.statCache=p.statCache||new Map,this.readdirCache=p.readdirCache||new Map,this[$]=o,typeof p.onwarn=="function"&&this.on("warn",p.onwarn),this.portable=!!p.portable,this.zip=null,p.gzip?(typeof p.gzip!="object"&&(p.gzip={}),this.portable&&(p.gzip.portable=!0),this.zip=new n.Gzip(p.gzip),this.zip.on("data",m=>super.write(m)),this.zip.on("end",m=>super.end()),this.zip.on("drain",m=>this[V]()),this.on("resume",m=>this.zip.resume())):this.on("drain",this[V]),this.noDirRecurse=!!p.noDirRecurse,this.follow=!!p.follow,this.noMtime=!!p.noMtime,this.mtime=p.mtime||null,this.filter=typeof p.filter=="function"?p.filter:m=>!0,this[d]=new c,this[k]=0,this.jobs=+p.jobs||4,this[_]=!1,this[f]=!1}[K](p){return super.write(p)}add(p){return this.write(p),this}end(p){return p&&this.write(p),this[f]=!0,this[y](),this}write(p){if(this[f])throw new Error("write after end");return p instanceof s?this[O](p):this[T](p),this.flowing}[O](p){let m=j(A.resolve(this.cwd,p.path));if(!this.filter(p.path,p))p.resume();else{let b=new r(p.path,m,!1);b.entry=new l(p,this[P](b)),b.entry.on("end",R=>this[C](b)),this[k]+=1,this[d].push(b)}this[y]()}[T](p){let m=j(A.resolve(this.cwd,p));this[d].push(new r(p,m)),this[y]()}[I](p){p.pending=!0,this[k]+=1;let m=this.follow?"stat":"lstat";N[m](p.absolute,(b,R)=>{p.pending=!1,this[k]-=1,b?this.emit("error",b):this[h](p,R)})}[h](p,m){this.statCache.set(p.absolute,m),p.stat=m,this.filter(p.path,m)||(p.ignore=!0),this[y]()}[w](p){p.pending=!0,this[k]+=1,N.readdir(p.absolute,(m,b)=>{if(p.pending=!1,this[k]-=1,m)return this.emit("error",m);this[v](p,b)})}[v](p,m){this.readdirCache.set(p.absolute,m),p.readdir=m,this[y]()}[y](){if(!this[_]){this[_]=!0;for(let p=this[d].head;p!==null&&this[k]<this.jobs;p=p.next)if(this[x](p.value),p.value.ignore){let m=p.next;this[d].removeNode(p),p.next=m}this[_]=!1,this[f]&&!this[d].length&&this[k]===0&&(this.zip?this.zip.end(u):(super.write(u),super.end()))}}get[g](){return this[d]&&this[d].head&&this[d].head.value}[C](p){this[d].shift(),this[k]-=1,this[y]()}[x](p){if(!p.pending){if(p.entry){p===this[g]&&!p.piped&&this[F](p);return}if(p.stat||(this.statCache.has(p.absolute)?this[h](p,this.statCache.get(p.absolute)):this[I](p)),!!p.stat&&!p.ignore&&!(!this.noDirRecurse&&p.stat.isDirectory()&&!p.readdir&&(this.readdirCache.has(p.absolute)?this[v](p,this.readdirCache.get(p.absolute)):this[w](p),!p.readdir))){if(p.entry=this[q](p),!p.entry){p.ignore=!0;return}p===this[g]&&!p.piped&&this[F](p)}}}[P](p){return{onwarn:(m,b,R)=>this.warn(m,b,R),noPax:this.noPax,cwd:this.cwd,absolute:p.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[q](p){this[k]+=1;try{return new this[$](p.path,this[P](p)).on("end",()=>this[C](p)).on("error",m=>this.emit("error",m))}catch(m){this.emit("error",m)}}[V](){this[g]&&this[g].entry&&this[g].entry.resume()}[F](p){p.piped=!0,p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)});let m=p.entry,b=this.zip;b?m.on("data",R=>{b.write(R)||m.pause()}):m.on("data",R=>{super.write(R)||m.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),D=class extends z{constructor(p){super(p),this[$]=a}pause(){}resume(){}[I](p){let m=this.follow?"statSync":"lstatSync";this[h](p,N[m](p.absolute))}[w](p,m){this[v](p,N.readdirSync(p.absolute))}[F](p){let m=p.entry,b=this.zip;p.readdir&&p.readdir.forEach(R=>{let E=p.path,M=E==="./"?"":E.replace(/\/*$/,"/");this[T](M+R)}),b?m.on("data",R=>{b.write(R)}):m.on("data",R=>{super[K](R)})}};z.Sync=D,e.exports=z}),Rn=ee(t=>{"use strict";W();var e=lg(),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}),Pc=ee((t,e)=>{"use strict";W();var r=Cc(),i=En(),n=te("events"),s=mg(),o=1024*1024,a=Tc(),l=kc(),c=ug(),{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)))}})}),Ic=ee((t,e)=>{"use strict";W();var r=wn(),i=Pc(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&c(_,g),_.noResume||l(_),_.file&&_.sync?u(_):_.file?h(_,y):f(_)};var l=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},c=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},u=d=>{let g=f(d),y=d.file,_=!0,x;try{let k=n.statSync(y),C=d.maxReadSize||16*1024*1024;if(k.size<C)g.end(n.readFileSync(y));else{let T=0,O=Buffer.allocUnsafe(C);for(x=n.openSync(y,"r");T<k.size;){let I=n.readSync(x,O,0,C,T);T+=I,g.write(O.slice(0,I))}g.end()}_=!1}finally{if(_&&x)try{n.closeSync(x)}catch{}}},h=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("end",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},f=d=>new i(d)}),lk=ee((t,e)=>{"use strict";W();var r=wn(),i=Lc(),n=Rn(),s=Ic(),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}}),yg=ee((t,e)=>{"use strict";W();var r=wn(),i=Lc(),n=te("fs"),s=Rn(),o=Ic(),a=te("path"),l=En();e.exports=(g,y,_)=>{let x=r(g);if(!x.file)throw new TypeError("file is required");if(x.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),x.sync?c(x,y):h(x,y,_)};var c=(g,y)=>{let _=new i.Sync(g),x=!0,k,C;try{try{k=n.openSync(g.file,"r+")}catch(I){if(I.code==="ENOENT")k=n.openSync(g.file,"w+");else throw I}let T=n.fstatSync(k),O=Buffer.alloc(512);e:for(C=0;C<T.size;C+=512){for(let v=0,F=0;v<512;v+=F){if(F=n.readSync(k,O,v,O.length-v,C+v),C===0&&O[0]===31&&O[1]===139)throw new Error("cannot append to compressed archives");if(!F)break e}let I=new l(O);if(!I.cksumValid)break;let w=512*Math.ceil(I.size/512);if(C+w+512>T.size)break;C+=w,g.mtimeCache&&g.mtimeCache.set(I.path,I.mtime)}x=!1,u(g,_,C,k,y)}finally{if(x)try{n.closeSync(k)}catch{}}},u=(g,y,_,x,k)=>{let C=new s.WriteStreamSync(g.file,{fd:x,start:_});y.pipe(C),f(y,k)},h=(g,y,_)=>{y=Array.from(y);let x=new i(g),k=(T,O,I)=>{let w=($,K)=>{$?n.close(T,V=>I($)):I(null,K)},v=0;if(O===0)return w(null,0);let F=0,q=Buffer.alloc(512),P=($,K)=>{if($)return w($);if(F+=K,F<512&&K)return n.read(T,q,F,q.length-F,v+F,P);if(v===0&&q[0]===31&&q[1]===139)return w(new Error("cannot append to compressed archives"));if(F<512)return w(null,v);let V=new l(q);if(!V.cksumValid)return w(null,v);let N=512*Math.ceil(V.size/512);if(v+N+512>O||(v+=N+512,v>=O))return w(null,v);g.mtimeCache&&g.mtimeCache.set(V.path,V.mtime),F=0,n.read(T,q,0,512,v,P)};n.read(T,q,0,512,v,P)},C=new Promise((T,O)=>{x.on("error",O);let I="r+",w=(v,F)=>{if(v&&v.code==="ENOENT"&&I==="r+")return I="w+",n.open(g.file,I,w);if(v)return O(v);n.fstat(F,(q,P)=>{if(q)return n.close(F,()=>O(q));k(F,P.size,($,K)=>{if($)return O($);let V=new s.WriteStream(g.file,{fd:F,start:K});x.pipe(V),V.on("error",O),V.on("close",T),d(x,y)})})};n.open(g.file,I,w)});return _?C.then(_,_):C},f=(g,y)=>{y.forEach(_=>{_.charAt(0)==="@"?o({file:a.resolve(g.cwd,_.slice(1)),sync:!0,noResume:!0,onentry:x=>g.add(x)}):g.add(_)}),g.end()},d=(g,y)=>{for(;y.length;){let _=y.shift();if(_.charAt(0)==="@")return o({file:a.resolve(g.cwd,_.slice(1)),noResume:!0,onentry:x=>g.add(x)}).then(x=>d(g,y));g.add(_)}g.end()}}),ck=ee((t,e)=>{"use strict";W();var r=wn(),i=yg();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)}}),uk=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}),hk=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}),fk=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}}),gg=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}}),pk=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=fk(),{mkdirpManual:s,mkdirpManualSync:o}=gg(),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}}),dk=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}}),mk=ee((t,e)=>{W();var r=uk(),i=hk(),{mkdirpNative:n,mkdirpNativeSync:s}=pk(),{mkdirpManual:o,mkdirpManualSync:a}=gg(),{useNative:l,useNativeSync:c}=dk(),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}),yk=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}),gk=ee((t,e)=>{"use strict";W();var r=mk(),i=te("fs"),n=te("path"),s=yk(),o=Sn(),a=class extends Error{constructor(y,_){super("Cannot extract through symbolic link"),this.path=_,this.symlink=y}get name(){return"SylinkError"}},l=class extends Error{constructor(y,_){super(_+": Cannot cd into '"+y+"'"),this.path=y,this.code=_}get name(){return"CwdError"}},c=(y,_)=>y.get(o(_)),u=(y,_,x)=>y.set(o(_),x),h=(y,_)=>{i.stat(y,(x,k)=>{(x||!k.isDirectory())&&(x=new l(y,x&&x.code||"ENOTDIR")),_(x)})};e.exports=(y,_,x)=>{y=o(y);let k=_.umask,C=_.mode|448,T=(C&k)!==0,O=_.uid,I=_.gid,w=typeof O=="number"&&typeof I=="number"&&(O!==_.processUid||I!==_.processGid),v=_.preserve,F=_.unlink,q=_.cache,P=o(_.cwd),$=(V,N)=>{V?x(V):(u(q,y,!0),N&&w?s(N,O,I,A=>$(A)):T?i.chmod(y,C,x):x())};if(q&&c(q,y)===!0)return $();if(y===P)return h(y,$);if(v)return r(y,{mode:C}).then(V=>$(null,V),$);let K=o(n.relative(P,y)).split("/");f(P,K,C,q,F,P,null,$)};var f=(y,_,x,k,C,T,O,I)=>{if(!_.length)return I(null,O);let w=_.shift(),v=o(n.resolve(y+"/"+w));if(c(k,v))return f(v,_,x,k,C,T,O,I);i.mkdir(v,x,d(v,_,x,k,C,T,O,I))},d=(y,_,x,k,C,T,O,I)=>w=>{w?i.lstat(y,(v,F)=>{if(v)v.path=v.path&&o(v.path),I(v);else if(F.isDirectory())f(y,_,x,k,C,T,O,I);else if(C)i.unlink(y,q=>{if(q)return I(q);i.mkdir(y,x,d(y,_,x,k,C,T,O,I))});else{if(F.isSymbolicLink())return I(new a(y,y+"/"+_.join("/")));I(w)}}):(O=O||y,f(y,_,x,k,C,T,O,I))},g=y=>{let _=!1,x="ENOTDIR";try{_=i.statSync(y).isDirectory()}catch(k){x=k.code}finally{if(!_)throw new l(y,x)}};e.exports.sync=(y,_)=>{y=o(y);let x=_.umask,k=_.mode|448,C=(k&x)!==0,T=_.uid,O=_.gid,I=typeof T=="number"&&typeof O=="number"&&(T!==_.processUid||O!==_.processGid),w=_.preserve,v=_.unlink,F=_.cache,q=o(_.cwd),P=V=>{u(F,y,!0),V&&I&&s.sync(V,T,O),C&&i.chmodSync(y,k)};if(F&&c(F,y)===!0)return P();if(y===q)return g(q),P();if(w)return P(r.sync(y,k));let $=o(n.relative(q,y)).split("/"),K=null;for(let V=$.shift(),N=q;V&&(N+="/"+V);V=$.shift())if(N=o(n.resolve(N)),!c(F,N))try{i.mkdirSync(N,k),K=K||N,u(F,N,!0)}catch{let A=i.lstatSync(N);if(A.isDirectory()){u(F,N,!0);continue}else if(v){i.unlinkSync(N),i.mkdirSync(N,k),K=K||N,u(F,N,!0);continue}else if(A.isSymbolicLink())return new a(N,N+"/"+$.join("/"))}return P(K)}}),_g=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])}),_k=ee((t,e)=>{W();var r=te("assert"),i=_g(),n=vn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let l=new Map,c=new Map,u=_=>_.split("/").slice(0,-1).reduce((x,k)=>(x.length&&(k=s(x[x.length-1],k)),x.push(k||"/"),x),[]),h=new Set,f=_=>{let x=c.get(_);if(!x)throw new Error("function does not have any path reservations");return{paths:x.paths.map(k=>l.get(k)),dirs:[...x.dirs].map(k=>l.get(k))}},d=_=>{let{paths:x,dirs:k}=f(_);return x.every(C=>C[0]===_)&&k.every(C=>C[0]instanceof Set&&C[0].has(_))},g=_=>h.has(_)||!d(_)?!1:(h.add(_),_(()=>y(_)),!0),y=_=>{if(!h.has(_))return!1;let{paths:x,dirs:k}=c.get(_),C=new Set;return x.forEach(T=>{let O=l.get(T);r.equal(O[0],_),O.length===1?l.delete(T):(O.shift(),typeof O[0]=="function"?C.add(O[0]):O[0].forEach(I=>C.add(I)))}),k.forEach(T=>{let O=l.get(T);r(O[0]instanceof Set),O[0].size===1&&O.length===1?l.delete(T):O[0].size===1?(O.shift(),C.add(O[0])):O[0].delete(_)}),h.delete(_),C.forEach(T=>g(T)),!0};return{check:d,reserve:(_,x)=>{_=a?["win32 parallelization disabled"]:_.map(C=>i(n(s(C))).toLowerCase());let k=new Set(_.map(C=>u(C)).reduce((C,T)=>C.concat(T)));return c.set(x,{dirs:k,paths:_}),_.forEach(C=>{let T=l.get(C);T?T.push(x):l.set(C,[x])}),k.forEach(C=>{let T=l.get(C);T?T[T.length-1]instanceof Set?T[T.length-1].add(x):T.push(new Set([x])):l.set(C,[new Set([x])])}),g(x)}}}}),bk=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"}),bg=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Pc(),n=te("fs"),s=Rn(),o=te("path"),a=gk(),l=fg(),c=_k(),u=pg(),h=Sn(),f=vn(),d=_g(),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=bk(),E=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,M=E==="win32",B=(S,Y)=>{if(!M)return n.unlink(S,Y);let X=S+".DELETE."+b.randomBytes(16).toString("hex");n.rename(S,X,se=>{if(se)return Y(se);n.unlink(X,Y)})},Z=S=>{if(!M)return n.unlinkSync(S);let Y=S+".DELETE."+b.randomBytes(16).toString("hex");n.renameSync(S,Y),n.unlinkSync(Y)},U=(S,Y,X)=>S===S>>>0?S:Y===Y>>>0?Y:X,J=S=>d(f(h(S))).toLowerCase(),G=(S,Y)=>{Y=J(Y);for(let X of S.keys()){let se=J(X);(se===Y||se.indexOf(Y+"/")===0)&&S.delete(X)}},re=S=>{for(let Y of S.keys())S.delete(Y)},ce=class extends i{constructor(S){if(S||(S={}),S.ondone=Y=>{this[A]=!0,this[L]()},super(S),this[m]=!1,this.reservations=c(),this.transform=typeof S.transform=="function"?S.transform:null,this.writable=!0,this.readable=!1,this[K]=0,this[A]=!1,this.dirCache=S.dirCache||new Map,typeof S.uid=="number"||typeof S.gid=="number"){if(typeof S.uid!="number"||typeof S.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(S.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=S.uid,this.gid=S.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;S.preserveOwner===void 0&&typeof S.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!S.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=S.forceChown===!0,this.win32=!!S.win32||M,this.newer=!!S.newer,this.keep=!!S.keep,this.noMtime=!!S.noMtime,this.preservePaths=!!S.preservePaths,this.unlink=!!S.unlink,this.cwd=h(o.resolve(S.cwd||process.cwd())),this.strip=+S.strip||0,this.processUmask=S.noChmod?0:process.umask(),this.umask=typeof S.umask=="number"?S.umask:this.processUmask,this.dmode=S.dmode||511&~this.umask,this.fmode=S.fmode||438&~this.umask,this.on("entry",Y=>this[g](Y))}warn(S,Y,X={}){return(S==="TAR_BAD_ARCHIVE"||S==="TAR_ABORT")&&(X.recoverable=!1),super.warn(S,Y,X)}[L](){this[A]&&this[K]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](S){if(this.strip){let Y=h(S.path).split("/");if(Y.length<this.strip)return!1;if(S.path=Y.slice(this.strip).join("/"),S.type==="Link"){let X=h(S.linkpath).split("/");if(X.length>=this.strip)S.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(S.path),X=Y.split("/");if(X.includes("..")||M&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:S,path:Y}),!1;let[se,le]=u(Y);se&&(S.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:S,path:Y}))}if(o.isAbsolute(S.path)?S.absolute=h(o.resolve(S.path)):S.absolute=h(o.resolve(this.cwd,S.path)),!this.preservePaths&&S.absolute.indexOf(this.cwd+"/")!==0&&S.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:S,path:h(S.path),resolvedPath:S.absolute,cwd:this.cwd}),!1;if(S.absolute===this.cwd&&S.type!=="Directory"&&S.type!=="GNUDumpDir")return!1;if(this.win32){let{root:Y}=o.win32.parse(S.absolute);S.absolute=Y+l.encode(S.absolute.slice(Y.length));let{root:X}=o.win32.parse(S.path);S.path=X+l.encode(S.path.slice(X.length))}return!0}[g](S){if(!this[q](S))return S.resume();switch(r.equal(typeof S.absolute,"string"),S.type){case"Directory":case"GNUDumpDir":S.mode&&(S.mode=S.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](S);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[F](S)}}[$](S,Y){S.name==="CwdError"?this.emit("error",S):(this.warn("TAR_ENTRY_ERROR",S,{entry:Y}),this[N](),Y.resume())}[P](S,Y,X){a(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y,noChmod:this.noChmod},X)}[z](S){return this.forceChown||this.preserveOwner&&(typeof S.uid=="number"&&S.uid!==this.processUid||typeof S.gid=="number"&&S.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[D](S){return U(this.uid,S.uid,this.processUid)}[p](S){return U(this.gid,S.gid,this.processGid)}[T](S,Y){let X=S.mode&4095||this.fmode,se=new s.WriteStream(S.absolute,{flags:R(S.size),mode:X,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[$](fe,S),Y()});let le=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[$](fe,S),Y();return}--le===0&&n.close(se.fd,ve=>{ve?this[$](ve,S):this[N](),Y()})};se.on("finish",fe=>{let ve=S.absolute,pt=se.fd;if(S.mtime&&!this.noMtime){le++;let dt=S.atime||new Date,en=S.mtime;n.futimes(pt,dt,en,tn=>tn?n.utimes(ve,dt,en,la=>ge(la&&tn)):ge())}if(this[z](S)){le++;let dt=this[D](S),en=this[p](S);n.fchown(pt,dt,en,tn=>tn?n.chown(ve,dt,en,la=>ge(la&&tn)):ge())}ge()});let ue=this.transform&&this.transform(S)||S;ue!==S&&(ue.on("error",fe=>{this[$](fe,S),Y()}),S.pipe(ue)),ue.pipe(se)}[O](S,Y){let X=S.mode&4095||this.dmode;this[P](S.absolute,X,se=>{if(se){this[$](se,S),Y();return}let le=1,ge=ue=>{--le===0&&(Y(),this[N](),S.resume())};S.mtime&&!this.noMtime&&(le++,n.utimes(S.absolute,S.atime||new Date,S.mtime,ge)),this[z](S)&&(le++,n.chown(S.absolute,this[D](S),this[p](S),ge)),ge()})}[F](S){S.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${S.type}`,{entry:S}),S.resume()}[w](S,Y){this[I](S,S.linkpath,"symlink",Y)}[v](S,Y){let X=h(o.resolve(this.cwd,S.linkpath));this[I](S,X,"link",Y)}[V](){this[K]++}[N](){this[K]--,this[L]()}[j](S){this[N](),S.resume()}[k](S,Y){return S.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!M}[y](S){this[V]();let Y=[S.path];S.linkpath&&Y.push(S.linkpath),this.reservations.reserve(Y,X=>this[_](S,X))}[x](S){S.type==="SymbolicLink"?re(this.dirCache):S.type!=="Directory"&&G(this.dirCache,S.absolute)}[_](S,Y){this[x](S);let X=ue=>{this[x](S),Y(ue)},se=()=>{this[P](this.cwd,this.dmode,ue=>{if(ue){this[$](ue,S),X();return}this[m]=!0,le()})},le=()=>{if(S.absolute!==this.cwd){let ue=h(o.dirname(S.absolute));if(ue!==this.cwd)return this[P](ue,this.dmode,fe=>{if(fe){this[$](fe,S),X();return}ge()})}ge()},ge=()=>{n.lstat(S.absolute,(ue,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>S.mtime)){this[j](S),X();return}if(ue||this[k](S,fe))return this[C](null,S,X);if(fe.isDirectory()){if(S.type==="Directory"){let ve=!this.noChmod&&S.mode&&(fe.mode&4095)!==S.mode,pt=dt=>this[C](dt,S,X);return ve?n.chmod(S.absolute,S.mode,pt):pt()}if(S.absolute!==this.cwd)return n.rmdir(S.absolute,ve=>this[C](ve,S,X))}if(S.absolute===this.cwd)return this[C](null,S,X);B(S.absolute,ve=>this[C](ve,S,X))})};this[m]?le():se()}[C](S,Y,X){if(S){this[$](S,Y),X();return}switch(Y.type){case"File":case"OldFile":case"ContiguousFile":return this[T](Y,X);case"Link":return this[v](Y,X);case"SymbolicLink":return this[w](Y,X);case"Directory":case"GNUDumpDir":return this[O](Y,X)}}[I](S,Y,X,se){n[X](Y,S.absolute,le=>{le?this[$](le,S):(this[N](),S.resume()),se()})}},Se=S=>{try{return[null,S()]}catch(Y){return[Y,null]}},_e=class extends ce{[C](S,Y){return super[C](S,Y,()=>{})}[y](S){if(this[x](S),!this[m]){let le=this[P](this.cwd,this.dmode);if(le)return this[$](le,S);this[m]=!0}if(S.absolute!==this.cwd){let le=h(o.dirname(S.absolute));if(le!==this.cwd){let ge=this[P](le,this.dmode);if(ge)return this[$](ge,S)}}let[Y,X]=Se(()=>n.lstatSync(S.absolute));if(X&&(this.keep||this.newer&&X.mtime>S.mtime))return this[j](S);if(Y||this[k](S,X))return this[C](null,S);if(X.isDirectory()){if(S.type==="Directory"){let ge=!this.noChmod&&S.mode&&(X.mode&4095)!==S.mode,[ue]=ge?Se(()=>{n.chmodSync(S.absolute,S.mode)}):[];return this[C](ue,S)}let[le]=Se(()=>n.rmdirSync(S.absolute));this[C](le,S)}let[se]=S.absolute===this.cwd?[]:Se(()=>Z(S.absolute));this[C](se,S)}[T](S,Y){let X=S.mode&4095||this.fmode,se=ue=>{let fe;try{n.closeSync(le)}catch(ve){fe=ve}(ue||fe)&&this[$](ue||fe,S),Y()},le;try{le=n.openSync(S.absolute,R(S.size),X)}catch(ue){return se(ue)}let ge=this.transform&&this.transform(S)||S;ge!==S&&(ge.on("error",ue=>this[$](ue,S)),S.pipe(ge)),ge.on("data",ue=>{try{n.writeSync(le,ue,0,ue.length)}catch(fe){se(fe)}}),ge.on("end",ue=>{let fe=null;if(S.mtime&&!this.noMtime){let ve=S.atime||new Date,pt=S.mtime;try{n.futimesSync(le,ve,pt)}catch(dt){try{n.utimesSync(S.absolute,ve,pt)}catch{fe=dt}}}if(this[z](S)){let ve=this[D](S),pt=this[p](S);try{n.fchownSync(le,ve,pt)}catch(dt){try{n.chownSync(S.absolute,ve,pt)}catch{fe=fe||dt}}}se(fe)})}[O](S,Y){let X=S.mode&4095||this.dmode,se=this[P](S.absolute,X);if(se){this[$](se,S),Y();return}if(S.mtime&&!this.noMtime)try{n.utimesSync(S.absolute,S.atime||new Date,S.mtime)}catch{}if(this[z](S))try{n.chownSync(S.absolute,this[D](S),this[p](S))}catch{}Y(),S.resume()}[P](S,Y){try{return a.sync(h(S),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:Y})}catch(X){return X}}[I](S,Y,X,se){try{n[X+"Sync"](Y,S.absolute),se(),S.resume()}catch(le){return this[$](le,S)}}};ce.Sync=_e,e.exports=ce}),wk=ee((t,e)=>{"use strict";W();var r=wn(),i=bg(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(_,g),_.file&&_.sync?c(_):_.file?u(_,y):_.sync?h(_):f(_)};var l=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},c=d=>{let g=new i.Sync(d),y=d.file,_=n.statSync(y),x=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:x,size:_.size}).pipe(g)},u=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("close",C),n.stat(x,(O,I)=>{if(O)T(O);else{let w=new s.ReadStream(x,{readSize:_,size:I.size});w.on("error",T),w.pipe(y)}})});return g?k.then(g,g):k},h=d=>new i.Sync(d),f=d=>new i(d)}),Sk=ee(t=>{"use strict";W(),t.c=t.create=lk(),t.r=t.replace=yg(),t.t=t.list=Ic(),t.u=t.update=ck(),t.x=t.extract=wk(),t.Pack=Lc(),t.Unpack=bg(),t.Parse=Pc(),t.ReadEntry=Tc(),t.WriteEntry=dg(),t.Header=En(),t.Pax=kc(),t.types=hg()}),Ek=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}}),vk=ee(t=>{W();var e=Ek();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}}}),Rk=ee((t,e)=>{W(),e.exports=vk()}),xk=ee((t,e)=>{W();var r=Rk();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}),Ak={};YT(Ak,{bold:()=>Lk,dimmed:()=>Ik,error:()=>Fk,grey:()=>Nk,info:()=>Ck,item:()=>Dk,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Tk,turboLoader:()=>kk,turboRed:()=>Rg,underline:()=>Pk,warn:()=>Mk,yellow:()=>xg});W();var Eg="#0099F7",vg="#F11712",Ok="#FFFF00",Nc=t=>{let e=Bk(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ge.reset)("")}`},Tk=(0,Sg.default)(Eg,vg),vi=Nc(Eg),Rg=Nc(vg),xg=Nc(Ok),kk=t=>(0,wg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),Ck=(...t)=>{jr(vi((0,Ge.bold)(">>>")),t.join(" "))},Lk=(...t)=>{jr((0,Ge.bold)(t.join(" ")))},Pk=(...t)=>{jr((0,Ge.underline)(t.join(" ")))},Ik=(...t)=>{jr((0,Ge.dim)(t.join(" ")))},Nk=(...t)=>{jr((0,Ge.gray)(t.join(" ")))},Dk=(...t)=>{jr(vi((0,Ge.bold)(" \u2022")),t.join(" "))},jr=(...t)=>{console.log(...t)},Mk=(...t)=>{console.error(xg((0,Ge.bold)(">>>")),t.join(" "))},Fk=(...t)=>{console.error(Rg((0,Ge.bold)(">>>")),t.join(" "))};function Bk(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}W();W();W();W();var JN=Ks(XT());W();W();function Hk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function Rc(t){return Rc=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},Rc(t)}W();function qk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uk(t,e){if(e&&(Rc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qk(t)}W();function Ys(t){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(t)}W();W();function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gn(t,e)}function $k(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}W();W();function Gk(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function zk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ws(t,e,r){return zk()?Ws=Reflect.construct.bind():Ws=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),l=new a;return s&&gn(l,s.prototype),l},Ws.apply(null,arguments)}function xc(t){var e=typeof Map=="function"?new Map:void 0;return xc=function(r){if(r===null||!Gk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ws(r,arguments,Ys(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gn(i,r)},xc(t)}var QN=Ks(ik()),rD=function(t){$k(e,t);function e(r){var i;return Hk(this,e),i=Uk(this,Ys(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(xc(Error));W();W();W();W();W();W();var pD=Ks(Sk()),dD=(0,Og.promisify)(Ag.Stream.pipeline);W();W();var _D=Ks(xk());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 Wk=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ze({workspaceRoot:t}){let e=jt.default.join(t,"package.json");try{return(0,Qe.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ie(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ie(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Vs({workspaceRoot:t}){let{packageManager:e}=ze({workspaceRoot:t});if(e)try{let r=Wk.exec(e);if(r){let[i,n]=r;return n}}catch{}}function xn({workspaceRoot:t}){let e=ze({workspaceRoot:t}),r=jt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function og({workspaceRoot:t}){let e=jt.default.join(t,"pnpm-workspace.yaml");if((0,Qe.existsSync)(e))try{let r=Ua.load((0,Qe.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ie(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Zs({root:t,lockFile:e,workspaceConfig:r}){let i=s=>jt.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Dc({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Xs({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,Ig.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=jt.default.dirname(i),{name:s,description:o}=xn({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:jt.default.join(n,"node_modules")}}})}function Yk({directory:t}){let e=jt.default.resolve(process.cwd(),t);return{exists:(0,Qe.existsSync)(e),absolute:e}}function fr({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Kk({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Bt({project:t,options:e}){e!=null&&e.dry||(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}async function Ng({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Qe.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Pg.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Qe.writeFile)(jt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}}function Vk({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ur({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ze({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=Vk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${(0,Lg.green)(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${kg.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,Cg.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var hr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Dg(t){let e=Fr.default.join(t.workspaceRoot,hr.lock),r=Fr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Vs({workspaceRoot:t.workspaceRoot});return(0,qe.existsSync)(e)||(0,qe.existsSync)(r)||i===hr.name}async function Zk(t){if(!await Dg(t))throw new Ie("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=xn(t);return{name:e,description:r,packageManager:hr.name,paths:Zs({root:t.workspaceRoot,lockFile:hr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:og(t),workspaces:Xs({workspaceGlobs:og(t),...t})}}}async function Xk(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({action:"create",packageManager:hr.name,project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,qe.writeFileSync)(Fr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
41
+ `).reduce(a,Object.create(null)),a=(l,c)=>{let u=parseInt(c,10);if(u!==Buffer.byteLength(c)+1)return l;c=c.slice((u+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return l;let d=h.join("=");return l[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,l};e.exports=n}),vn=ee((t,e)=>{W(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),Cc=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))}}}),fg=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)}}),pg=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]}}),ok=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)}),dg=ee((t,e)=>{"use strict";W();var r=Oc(),i=kc(),n=En(),s=te("fs"),o=te("path"),a=wn(),l=vn(),c=(m,b)=>b?(m=a(m).replace(/^\.(\/|$)/,""),l(b)+"/"+m):a(m),u=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),_=Symbol("header"),x=Symbol("read"),k=Symbol("lstat"),C=Symbol("onlstat"),T=Symbol("onread"),O=Symbol("onreadlink"),I=Symbol("openfile"),S=Symbol("onopenfile"),v=Symbol("close"),F=Symbol("mode"),q=Symbol("awaitDrain"),P=Symbol("ondrain"),$=Symbol("prefix"),V=Symbol("hadError"),K=Cc(),N=fg(),A=pg(),L=ok(),j=K(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[V]=!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[S](b)})}[S](m){if(this.fd=m,this[V])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[S](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=K(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}),ak=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}}}),mg=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{ak()(r)}catch{}}),Lc=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=Oc(),n=ug(),s=Tc(),o=dg(),a=o.Sync,l=o.Tar,c=mg(),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"),S=Symbol("readdir"),v=Symbol("onreaddir"),F=Symbol("pipe"),q=Symbol("entry"),P=Symbol("entryOpt"),$=Symbol("writeEntryClass"),V=Symbol("write"),K=Symbol("ondrain"),N=te("fs"),A=te("path"),L=Cc(),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[K]()),this.on("resume",m=>this.zip.resume())):this.on("drain",this[K]),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}[V](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]()}[S](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[S](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)}}[K](){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))}[S](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[V](R)})}};z.Sync=D,e.exports=z}),Rn=ee(t=>{"use strict";W();var e=lg(),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"),S=Symbol("_queue"),v=Symbol("_read"),F=Symbol("_readSize"),q=Symbol("_reading"),P=Symbol("_remain"),$=Symbol("_size"),V=Symbol("_write"),K=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[K]=!1,this[a]=!1,this[y]=!1,this[S]=[],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[K]=!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[K]&&!this[S].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[K]||this[S].length?(this[S].push(p),this[y]=!0,!1):(this[K]=!0,this[V](p),!0)}[V](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[S].length?this[h]():(this[K]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[C](null,0);else if(this[S].length===1)this[V](this[S].pop());else{let p=this[S];this[S]=[],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")}}[V](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}),Pc=ee((t,e)=>{"use strict";W();var r=Cc(),i=En(),n=te("events"),s=mg(),o=1024*1024,a=Tc(),l=kc(),c=ug(),{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"),S=Symbol("ended"),v=Symbol("emittedEnd"),F=Symbol("emit"),q=Symbol("unzip"),P=Symbol("consumeChunk"),$=Symbol("consumeChunkSub"),V=Symbol("consumeBody"),K=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[S]=!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"))}}[V](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}[K](B,Z){let U=this[d],J=this[V](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[S];this[S]=!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[S]=!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[S]&&!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[S])&&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[V](B,Z);break;case"meta":Z+=this[K](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[S]=!0,this.write(B)))}})}),Ic=ee((t,e)=>{"use strict";W();var r=Sn(),i=Pc(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&c(_,g),_.noResume||l(_),_.file&&_.sync?u(_):_.file?h(_,y):f(_)};var l=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},c=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},u=d=>{let g=f(d),y=d.file,_=!0,x;try{let k=n.statSync(y),C=d.maxReadSize||16*1024*1024;if(k.size<C)g.end(n.readFileSync(y));else{let T=0,O=Buffer.allocUnsafe(C);for(x=n.openSync(y,"r");T<k.size;){let I=n.readSync(x,O,0,C,T);T+=I,g.write(O.slice(0,I))}g.end()}_=!1}finally{if(_&&x)try{n.closeSync(x)}catch{}}},h=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("end",C),n.stat(x,(O,I)=>{if(O)T(O);else{let S=new s.ReadStream(x,{readSize:_,size:I.size});S.on("error",T),S.pipe(y)}})});return g?k.then(g,g):k},f=d=>new i(d)}),lk=ee((t,e)=>{"use strict";W();var r=Sn(),i=Lc(),n=Rn(),s=Ic(),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}}),yg=ee((t,e)=>{"use strict";W();var r=Sn(),i=Lc(),n=te("fs"),s=Rn(),o=Ic(),a=te("path"),l=En();e.exports=(g,y,_)=>{let x=r(g);if(!x.file)throw new TypeError("file is required");if(x.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),x.sync?c(x,y):h(x,y,_)};var c=(g,y)=>{let _=new i.Sync(g),x=!0,k,C;try{try{k=n.openSync(g.file,"r+")}catch(I){if(I.code==="ENOENT")k=n.openSync(g.file,"w+");else throw I}let T=n.fstatSync(k),O=Buffer.alloc(512);e:for(C=0;C<T.size;C+=512){for(let v=0,F=0;v<512;v+=F){if(F=n.readSync(k,O,v,O.length-v,C+v),C===0&&O[0]===31&&O[1]===139)throw new Error("cannot append to compressed archives");if(!F)break e}let I=new l(O);if(!I.cksumValid)break;let S=512*Math.ceil(I.size/512);if(C+S+512>T.size)break;C+=S,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 S=($,V)=>{$?n.close(T,K=>I($)):I(null,V)},v=0;if(O===0)return S(null,0);let F=0,q=Buffer.alloc(512),P=($,V)=>{if($)return S($);if(F+=V,F<512&&V)return n.read(T,q,F,q.length-F,v+F,P);if(v===0&&q[0]===31&&q[1]===139)return S(new Error("cannot append to compressed archives"));if(F<512)return S(null,v);let K=new l(q);if(!K.cksumValid)return S(null,v);let N=512*Math.ceil(K.size/512);if(v+N+512>O||(v+=N+512,v>=O))return S(null,v);g.mtimeCache&&g.mtimeCache.set(K.path,K.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+",S=(v,F)=>{if(v&&v.code==="ENOENT"&&I==="r+")return I="w+",n.open(g.file,I,S);if(v)return O(v);n.fstat(F,(q,P)=>{if(q)return n.close(F,()=>O(q));k(F,P.size,($,V)=>{if($)return O($);let K=new s.WriteStream(g.file,{fd:F,start:V});x.pipe(K),K.on("error",O),K.on("close",T),d(x,y)})})};n.open(g.file,I,S)});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()}}),ck=ee((t,e)=>{"use strict";W();var r=Sn(),i=yg();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)}}),uk=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}),hk=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}),fk=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}}),gg=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}}),pk=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=fk(),{mkdirpManual:s,mkdirpManualSync:o}=gg(),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}}),dk=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}}),mk=ee((t,e)=>{W();var r=uk(),i=hk(),{mkdirpNative:n,mkdirpNativeSync:s}=pk(),{mkdirpManual:o,mkdirpManualSync:a}=gg(),{useNative:l,useNativeSync:c}=dk(),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}),yk=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)=>S=>{!S||S.code!=="EISDIR"?I(S):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,S=>{I(S&&S.code!=="ENOENT"?S:null)}))},y=(C,T,O,I,S)=>{if(typeof T=="string")return r.lstat(i.resolve(C,T),(v,F)=>{if(v)return S(v.code!=="ENOENT"?v:null);F.name=T,y(C,F,O,I,S)});if(T.isDirectory())_(i.resolve(C,T.name),O,I,v=>{if(v)return S(v);let F=i.resolve(C,T.name);g(F,O,I,S)});else{let v=i.resolve(C,T.name);g(v,O,I,S)}},_=(C,T,O,I)=>{f(C,{withFileTypes:!0},(S,v)=>{if(S){if(S.code==="ENOENT")return I();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return I(S)}if(S||!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 S=r.lstatSync(i.resolve(C,T));S.name=T,T=S}catch(S){if(S.code==="ENOENT")return;throw S}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(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return u(C,T,O);throw S}return I&&I.length&&I.forEach(S=>x(C,S,T,O)),u(C,T,O)};e.exports=_,_.sync=k}),gk=ee((t,e)=>{"use strict";W();var r=mk(),i=te("fs"),n=te("path"),s=yk(),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,S=typeof O=="number"&&typeof I=="number"&&(O!==_.processUid||I!==_.processGid),v=_.preserve,F=_.unlink,q=_.cache,P=o(_.cwd),$=(K,N)=>{K?x(K):(u(q,y,!0),N&&S?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(K=>$(null,K),$);let V=o(n.relative(P,y)).split("/");f(P,V,C,q,F,P,null,$)};var f=(y,_,x,k,C,T,O,I)=>{if(!_.length)return I(null,O);let S=_.shift(),v=o(n.resolve(y+"/"+S));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)=>S=>{S?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(S)}}):(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),S=_.preserve,v=_.unlink,F=_.cache,q=o(_.cwd),P=K=>{u(F,y,!0),K&&I&&s.sync(K,T,O),C&&i.chmodSync(y,k)};if(F&&c(F,y)===!0)return P();if(y===q)return g(q),P();if(S)return P(r.sync(y,k));let $=o(n.relative(q,y)).split("/"),V=null;for(let K=$.shift(),N=q;K&&(N+="/"+K);K=$.shift())if(N=o(n.resolve(N)),!c(F,N))try{i.mkdirSync(N,k),V=V||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),V=V||N,u(F,N,!0);continue}else if(A.isSymbolicLink())return new a(N,N+"/"+$.join("/"))}return P(V)}}),_g=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])}),_k=ee((t,e)=>{W();var r=te("assert"),i=_g(),n=vn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let l=new Map,c=new Map,u=_=>_.split("/").slice(0,-1).reduce((x,k)=>(x.length&&(k=s(x[x.length-1],k)),x.push(k||"/"),x),[]),h=new Set,f=_=>{let x=c.get(_);if(!x)throw new Error("function does not have any path reservations");return{paths:x.paths.map(k=>l.get(k)),dirs:[...x.dirs].map(k=>l.get(k))}},d=_=>{let{paths:x,dirs:k}=f(_);return x.every(C=>C[0]===_)&&k.every(C=>C[0]instanceof Set&&C[0].has(_))},g=_=>h.has(_)||!d(_)?!1:(h.add(_),_(()=>y(_)),!0),y=_=>{if(!h.has(_))return!1;let{paths:x,dirs:k}=c.get(_),C=new Set;return x.forEach(T=>{let O=l.get(T);r.equal(O[0],_),O.length===1?l.delete(T):(O.shift(),typeof O[0]=="function"?C.add(O[0]):O[0].forEach(I=>C.add(I)))}),k.forEach(T=>{let O=l.get(T);r(O[0]instanceof Set),O[0].size===1&&O.length===1?l.delete(T):O[0].size===1?(O.shift(),C.add(O[0])):O[0].delete(_)}),h.delete(_),C.forEach(T=>g(T)),!0};return{check:d,reserve:(_,x)=>{_=a?["win32 parallelization disabled"]:_.map(C=>i(n(s(C))).toLowerCase());let k=new Set(_.map(C=>u(C)).reduce((C,T)=>C.concat(T)));return c.set(x,{dirs:k,paths:_}),_.forEach(C=>{let T=l.get(C);T?T.push(x):l.set(C,[x])}),k.forEach(C=>{let T=l.get(C);T?T[T.length-1]instanceof Set?T[T.length-1].add(x):T.push(new Set([x])):l.set(C,[new Set([x])])}),g(x)}}}}),bk=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"}),bg=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Pc(),n=te("fs"),s=Rn(),o=te("path"),a=gk(),l=fg(),c=_k(),u=pg(),h=wn(),f=vn(),d=_g(),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"),S=Symbol("symlink"),v=Symbol("hardlink"),F=Symbol("unsupported"),q=Symbol("checkPath"),P=Symbol("mkdir"),$=Symbol("onError"),V=Symbol("pending"),K=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=bk(),E=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,M=E==="win32",B=(w,Y)=>{if(!M)return n.unlink(w,Y);let X=w+".DELETE."+b.randomBytes(16).toString("hex");n.rename(w,X,se=>{if(se)return Y(se);n.unlink(X,Y)})},Z=w=>{if(!M)return n.unlinkSync(w);let Y=w+".DELETE."+b.randomBytes(16).toString("hex");n.renameSync(w,Y),n.unlinkSync(Y)},U=(w,Y,X)=>w===w>>>0?w:Y===Y>>>0?Y:X,J=w=>d(f(h(w))).toLowerCase(),G=(w,Y)=>{Y=J(Y);for(let X of w.keys()){let se=J(X);(se===Y||se.indexOf(Y+"/")===0)&&w.delete(X)}},re=w=>{for(let Y of w.keys())w.delete(Y)},ce=class extends i{constructor(w){if(w||(w={}),w.ondone=Y=>{this[A]=!0,this[L]()},super(w),this[m]=!1,this.reservations=c(),this.transform=typeof w.transform=="function"?w.transform:null,this.writable=!0,this.readable=!1,this[V]=0,this[A]=!1,this.dirCache=w.dirCache||new Map,typeof w.uid=="number"||typeof w.gid=="number"){if(typeof w.uid!="number"||typeof w.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(w.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=w.uid,this.gid=w.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;w.preserveOwner===void 0&&typeof w.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!w.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=w.forceChown===!0,this.win32=!!w.win32||M,this.newer=!!w.newer,this.keep=!!w.keep,this.noMtime=!!w.noMtime,this.preservePaths=!!w.preservePaths,this.unlink=!!w.unlink,this.cwd=h(o.resolve(w.cwd||process.cwd())),this.strip=+w.strip||0,this.processUmask=w.noChmod?0:process.umask(),this.umask=typeof w.umask=="number"?w.umask:this.processUmask,this.dmode=w.dmode||511&~this.umask,this.fmode=w.fmode||438&~this.umask,this.on("entry",Y=>this[g](Y))}warn(w,Y,X={}){return(w==="TAR_BAD_ARCHIVE"||w==="TAR_ABORT")&&(X.recoverable=!1),super.warn(w,Y,X)}[L](){this[A]&&this[V]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](w){if(this.strip){let Y=h(w.path).split("/");if(Y.length<this.strip)return!1;if(w.path=Y.slice(this.strip).join("/"),w.type==="Link"){let X=h(w.linkpath).split("/");if(X.length>=this.strip)w.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(w.path),X=Y.split("/");if(X.includes("..")||M&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:w,path:Y}),!1;let[se,le]=u(Y);se&&(w.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:w,path:Y}))}if(o.isAbsolute(w.path)?w.absolute=h(o.resolve(w.path)):w.absolute=h(o.resolve(this.cwd,w.path)),!this.preservePaths&&w.absolute.indexOf(this.cwd+"/")!==0&&w.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:w,path:h(w.path),resolvedPath:w.absolute,cwd:this.cwd}),!1;if(w.absolute===this.cwd&&w.type!=="Directory"&&w.type!=="GNUDumpDir")return!1;if(this.win32){let{root:Y}=o.win32.parse(w.absolute);w.absolute=Y+l.encode(w.absolute.slice(Y.length));let{root:X}=o.win32.parse(w.path);w.path=X+l.encode(w.path.slice(X.length))}return!0}[g](w){if(!this[q](w))return w.resume();switch(r.equal(typeof w.absolute,"string"),w.type){case"Directory":case"GNUDumpDir":w.mode&&(w.mode=w.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](w);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[F](w)}}[$](w,Y){w.name==="CwdError"?this.emit("error",w):(this.warn("TAR_ENTRY_ERROR",w,{entry:Y}),this[N](),Y.resume())}[P](w,Y,X){a(h(w),{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](w){return this.forceChown||this.preserveOwner&&(typeof w.uid=="number"&&w.uid!==this.processUid||typeof w.gid=="number"&&w.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[D](w){return U(this.uid,w.uid,this.processUid)}[p](w){return U(this.gid,w.gid,this.processGid)}[T](w,Y){let X=w.mode&4095||this.fmode,se=new s.WriteStream(w.absolute,{flags:R(w.size),mode:X,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[$](fe,w),Y()});let le=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[$](fe,w),Y();return}--le===0&&n.close(se.fd,ve=>{ve?this[$](ve,w):this[N](),Y()})};se.on("finish",fe=>{let ve=w.absolute,pt=se.fd;if(w.mtime&&!this.noMtime){le++;let dt=w.atime||new Date,en=w.mtime;n.futimes(pt,dt,en,tn=>tn?n.utimes(ve,dt,en,la=>ge(la&&tn)):ge())}if(this[z](w)){le++;let dt=this[D](w),en=this[p](w);n.fchown(pt,dt,en,tn=>tn?n.chown(ve,dt,en,la=>ge(la&&tn)):ge())}ge()});let ue=this.transform&&this.transform(w)||w;ue!==w&&(ue.on("error",fe=>{this[$](fe,w),Y()}),w.pipe(ue)),ue.pipe(se)}[O](w,Y){let X=w.mode&4095||this.dmode;this[P](w.absolute,X,se=>{if(se){this[$](se,w),Y();return}let le=1,ge=ue=>{--le===0&&(Y(),this[N](),w.resume())};w.mtime&&!this.noMtime&&(le++,n.utimes(w.absolute,w.atime||new Date,w.mtime,ge)),this[z](w)&&(le++,n.chown(w.absolute,this[D](w),this[p](w),ge)),ge()})}[F](w){w.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${w.type}`,{entry:w}),w.resume()}[S](w,Y){this[I](w,w.linkpath,"symlink",Y)}[v](w,Y){let X=h(o.resolve(this.cwd,w.linkpath));this[I](w,X,"link",Y)}[K](){this[V]++}[N](){this[V]--,this[L]()}[j](w){this[N](),w.resume()}[k](w,Y){return w.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!M}[y](w){this[K]();let Y=[w.path];w.linkpath&&Y.push(w.linkpath),this.reservations.reserve(Y,X=>this[_](w,X))}[x](w){w.type==="SymbolicLink"?re(this.dirCache):w.type!=="Directory"&&G(this.dirCache,w.absolute)}[_](w,Y){this[x](w);let X=ue=>{this[x](w),Y(ue)},se=()=>{this[P](this.cwd,this.dmode,ue=>{if(ue){this[$](ue,w),X();return}this[m]=!0,le()})},le=()=>{if(w.absolute!==this.cwd){let ue=h(o.dirname(w.absolute));if(ue!==this.cwd)return this[P](ue,this.dmode,fe=>{if(fe){this[$](fe,w),X();return}ge()})}ge()},ge=()=>{n.lstat(w.absolute,(ue,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>w.mtime)){this[j](w),X();return}if(ue||this[k](w,fe))return this[C](null,w,X);if(fe.isDirectory()){if(w.type==="Directory"){let ve=!this.noChmod&&w.mode&&(fe.mode&4095)!==w.mode,pt=dt=>this[C](dt,w,X);return ve?n.chmod(w.absolute,w.mode,pt):pt()}if(w.absolute!==this.cwd)return n.rmdir(w.absolute,ve=>this[C](ve,w,X))}if(w.absolute===this.cwd)return this[C](null,w,X);B(w.absolute,ve=>this[C](ve,w,X))})};this[m]?le():se()}[C](w,Y,X){if(w){this[$](w,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[S](Y,X);case"Directory":case"GNUDumpDir":return this[O](Y,X)}}[I](w,Y,X,se){n[X](Y,w.absolute,le=>{le?this[$](le,w):(this[N](),w.resume()),se()})}},we=w=>{try{return[null,w()]}catch(Y){return[Y,null]}},_e=class extends ce{[C](w,Y){return super[C](w,Y,()=>{})}[y](w){if(this[x](w),!this[m]){let le=this[P](this.cwd,this.dmode);if(le)return this[$](le,w);this[m]=!0}if(w.absolute!==this.cwd){let le=h(o.dirname(w.absolute));if(le!==this.cwd){let ge=this[P](le,this.dmode);if(ge)return this[$](ge,w)}}let[Y,X]=we(()=>n.lstatSync(w.absolute));if(X&&(this.keep||this.newer&&X.mtime>w.mtime))return this[j](w);if(Y||this[k](w,X))return this[C](null,w);if(X.isDirectory()){if(w.type==="Directory"){let ge=!this.noChmod&&w.mode&&(X.mode&4095)!==w.mode,[ue]=ge?we(()=>{n.chmodSync(w.absolute,w.mode)}):[];return this[C](ue,w)}let[le]=we(()=>n.rmdirSync(w.absolute));this[C](le,w)}let[se]=w.absolute===this.cwd?[]:we(()=>Z(w.absolute));this[C](se,w)}[T](w,Y){let X=w.mode&4095||this.fmode,se=ue=>{let fe;try{n.closeSync(le)}catch(ve){fe=ve}(ue||fe)&&this[$](ue||fe,w),Y()},le;try{le=n.openSync(w.absolute,R(w.size),X)}catch(ue){return se(ue)}let ge=this.transform&&this.transform(w)||w;ge!==w&&(ge.on("error",ue=>this[$](ue,w)),w.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(w.mtime&&!this.noMtime){let ve=w.atime||new Date,pt=w.mtime;try{n.futimesSync(le,ve,pt)}catch(dt){try{n.utimesSync(w.absolute,ve,pt)}catch{fe=dt}}}if(this[z](w)){let ve=this[D](w),pt=this[p](w);try{n.fchownSync(le,ve,pt)}catch(dt){try{n.chownSync(w.absolute,ve,pt)}catch{fe=fe||dt}}}se(fe)})}[O](w,Y){let X=w.mode&4095||this.dmode,se=this[P](w.absolute,X);if(se){this[$](se,w),Y();return}if(w.mtime&&!this.noMtime)try{n.utimesSync(w.absolute,w.atime||new Date,w.mtime)}catch{}if(this[z](w))try{n.chownSync(w.absolute,this[D](w),this[p](w))}catch{}Y(),w.resume()}[P](w,Y){try{return a.sync(h(w),{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](w,Y,X,se){try{n[X+"Sync"](Y,w.absolute),se(),w.resume()}catch(le){return this[$](le,w)}}};ce.Sync=_e,e.exports=ce}),Sk=ee((t,e)=>{"use strict";W();var r=Sn(),i=bg(),n=te("fs"),s=Rn(),o=te("path"),a=vn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let _=r(d);if(_.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!_.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(_,g),_.file&&_.sync?c(_):_.file?u(_,y):_.sync?h(_):f(_)};var l=(d,g)=>{let y=new Map(g.map(k=>[a(k),!0])),_=d.filter,x=(k,C)=>{let T=C||o.parse(k).root||".",O=k===T?!1:y.has(k)?y.get(k):x(o.dirname(k),T);return y.set(k,O),O};d.filter=_?(k,C)=>_(k,C)&&x(a(k)):k=>x(a(k))},c=d=>{let g=new i.Sync(d),y=d.file,_=n.statSync(y),x=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:x,size:_.size}).pipe(g)},u=(d,g)=>{let y=new i(d),_=d.maxReadSize||16*1024*1024,x=d.file,k=new Promise((C,T)=>{y.on("error",T),y.on("close",C),n.stat(x,(O,I)=>{if(O)T(O);else{let S=new s.ReadStream(x,{readSize:_,size:I.size});S.on("error",T),S.pipe(y)}})});return g?k.then(g,g):k},h=d=>new i.Sync(d),f=d=>new i(d)}),wk=ee(t=>{"use strict";W(),t.c=t.create=lk(),t.r=t.replace=yg(),t.t=t.list=Ic(),t.u=t.update=ck(),t.x=t.extract=Sk(),t.Pack=Lc(),t.Unpack=bg(),t.Parse=Pc(),t.ReadEntry=Tc(),t.WriteEntry=dg(),t.Header=En(),t.Pax=kc(),t.types=hg()}),Ek=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}}),vk=ee(t=>{W();var e=Ek();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}}}),Rk=ee((t,e)=>{W(),e.exports=vk()}),xk=ee((t,e)=>{W();var r=Rk();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}),Ak={};YT(Ak,{bold:()=>Lk,dimmed:()=>Ik,error:()=>Fk,grey:()=>Nk,info:()=>Ck,item:()=>Dk,log:()=>jr,turboBlue:()=>vi,turboGradient:()=>Tk,turboLoader:()=>kk,turboRed:()=>Rg,underline:()=>Pk,warn:()=>Mk,yellow:()=>xg});W();var Eg="#0099F7",vg="#F11712",Ok="#FFFF00",Nc=t=>{let e=Bk(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ge.reset)("")}`},Tk=(0,wg.default)(Eg,vg),vi=Nc(Eg),Rg=Nc(vg),xg=Nc(Ok),kk=t=>(0,Sg.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),Ck=(...t)=>{jr(vi((0,Ge.bold)(">>>")),t.join(" "))},Lk=(...t)=>{jr((0,Ge.bold)(t.join(" ")))},Pk=(...t)=>{jr((0,Ge.underline)(t.join(" ")))},Ik=(...t)=>{jr((0,Ge.dim)(t.join(" ")))},Nk=(...t)=>{jr((0,Ge.gray)(t.join(" ")))},Dk=(...t)=>{jr(vi((0,Ge.bold)(" \u2022")),t.join(" "))},jr=(...t)=>{console.log(...t)},Mk=(...t)=>{console.error(xg((0,Ge.bold)(">>>")),t.join(" "))},Fk=(...t)=>{console.error(Rg((0,Ge.bold)(">>>")),t.join(" "))};function Bk(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}W();W();W();W();var JN=Vs(XT());W();W();function Hk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function Rc(t){return Rc=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},Rc(t)}W();function qk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uk(t,e){if(e&&(Rc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qk(t)}W();function Ys(t){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(t)}W();W();function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gn(t,e)}function $k(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}W();W();function Gk(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function zk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ws(t,e,r){return zk()?Ws=Reflect.construct.bind():Ws=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),l=new a;return s&&gn(l,s.prototype),l},Ws.apply(null,arguments)}function xc(t){var e=typeof Map=="function"?new Map:void 0;return xc=function(r){if(r===null||!Gk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ws(r,arguments,Ys(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gn(i,r)},xc(t)}var QN=Vs(ik()),rD=function(t){$k(e,t);function e(r){var i;return Hk(this,e),i=Uk(this,Ys(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(xc(Error));W();W();W();W();W();W();var pD=Vs(wk()),dD=(0,Og.promisify)(Ag.Stream.pipeline);W();W();var _D=Vs(xk());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 Wk=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ze({workspaceRoot:t}){let e=jt.default.join(t,"package.json");try{return(0,Qe.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ie(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ie(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ks({workspaceRoot:t}){let{packageManager:e}=ze({workspaceRoot:t});if(e)try{let r=Wk.exec(e);if(r){let[i,n]=r;return n}}catch{}}function xn({workspaceRoot:t}){let e=ze({workspaceRoot:t}),r=jt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function og({workspaceRoot:t}){let e=jt.default.join(t,"pnpm-workspace.yaml");if((0,Qe.existsSync)(e))try{let r=Ua.load((0,Qe.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ie(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Zs({root:t,lockFile:e,workspaceConfig:r}){let i=s=>jt.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Dc({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Xs({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,Ig.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=jt.default.dirname(i),{name:s,description:o}=xn({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:jt.default.join(n,"node_modules")}}})}function Yk({directory:t}){let e=jt.default.resolve(process.cwd(),t);return{exists:(0,Qe.existsSync)(e),absolute:e}}function fr({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Vk({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Bt({project:t,options:e}){e!=null&&e.dry||(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}async function Ng({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Qe.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Pg.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Qe.writeFile)(jt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Qe.rmSync)(t.paths.lockfile,{force:!0})}}function Kk({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ur({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ze({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=Kk({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let l=h=>{let f=o[h].length;if(f>0)return`${(0,Lg.green)(f.toString())} ${h}`},c=a.map(l).filter(Boolean),u=`./${kg.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,Cg.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var hr={name:"pnpm",lock:"pnpm-lock.yaml"};async function Dg(t){let e=Fr.default.join(t.workspaceRoot,hr.lock),r=Fr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ks({workspaceRoot:t.workspaceRoot});return(0,qe.existsSync)(e)||(0,qe.existsSync)(r)||i===hr.name}async function Zk(t){if(!await Dg(t))throw new Ie("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=xn(t);return{name:e,description:r,packageManager:hr.name,paths:Zs({root:t.workspaceRoot,lockFile:hr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:og(t),workspaces:Xs({workspaceGlobs:og(t),...t})}}}async function Xk(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({action:"create",packageManager:hr.name,project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,qe.writeFileSync)(Fr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
42
42
  ${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
43
- `)}`))),s&&(ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Jk(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({action:"remove",packageManager:hr.name,project:e}));let s=ze({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Qk(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Fr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,qe.rmSync)(e.paths.lockfile,{force:!0})}async function e1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Fr.default.relative(e.paths.root,e.paths.lockfile)} to ${hr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,qe.existsSync)(e.paths.lockfile))try{await(0,Tg.default)(hr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Bt({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ng({project:e,options:r}),await s(),(0,qe.rmSync)(Fr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var t1={detect:Dg,read:Zk,create:Xk,remove:Jk,clean:Qk,convertLock:e1};W();var Ri={name:"npm",lock:"package-lock.json"};async function Mg(t){let e=_n.default.join(t.workspaceRoot,Ri.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,Rt.existsSync)(e)||r===Ri.name}async function r1(t){if(!await Mg(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ri.name,paths:Zs({root:t.workspaceRoot,lockFile:Ri.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function i1(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(fr({packageManager:Ri.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function n1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ri.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Rt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Rt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function s1(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 o1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":Bt({project:e,options:r});break;case"npm":break;case"yarn":Bt({project:e,options:r});break}}var a1={detect:Mg,read:r1,create:i1,remove:n1,clean:s1,convertLock:o1};W();var Br={name:"yarn",lock:"yarn.lock"};async function Fg(t){let e=xi.default.join(t.workspaceRoot,Br.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,xt.existsSync)(e)||r===Br.name}async function l1(t){if(!await Fg(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Br.name,paths:Zs({root:t.workspaceRoot,lockFile:Br.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function c1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({packageManager:Br.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function u1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Br.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function h1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${xi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xt.rmSync)(e.paths.lockfile,{force:!0})}async function f1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${xi.default.relative(e.paths.root,e.paths.lockfile)} to ${Br.lock}`)};switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":n(),await Ng({project:e,options:r});break;case"npm":Bt({project:e,options:r});break;case"yarn":break}}var p1={detect:Fg,read:l1,create:c1,remove:u1,clean:h1,convertLock:f1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Bg(t){let e=bn.default.join(t.workspaceRoot,Ai.lock),r=Vs({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ai.name}async function d1(t){if(!await Bg(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Zs({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function m1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Kk({project:e}))throw new Ie("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(fr({packageManager:Ai.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function y1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ai.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,At.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function g1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function _1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":break;case"npm":Bt({project:e,options:r});break;case"yarn":Bt({project:e,options:r});break}}var b1={detect:Bg,read:d1,create:m1,remove:y1,clean:g1,convertLock:_1},jg={pnpm:t1,yarn:p1,npm:a1,bun:b1};W();async function Mc({root:t}){let{exists:e,absolute:r}=Yk({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(jg))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 x1=ne(zg());function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function On(t){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(t)}function jc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(t,e){if(e&&(On(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jc(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ut(t,e)}function qc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ut(t,e)}function Uc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $c(){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 $c()?Oi=Reflect.construct.bind():Oi=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&Ut(c,o.prototype),c},Oi.apply(null,arguments)}function Tn(t){var e=typeof Map=="function"?new Map:void 0;return Tn=function(i){if(i===null||!Uc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Oi(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ut(n,i)},Tn(t)}var Wg=ne(require("find-up"));var A1=ne(require("fs-extra")),XM=function(t){qc(e,t);function e(r){var i;return Bc(this,e),i=Hc(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Tn(Error));var C1=ne(require("json5"));var O1=ne(require("fs")),T1=ne(require("path"));var q1=ne(require("fs")),U1=ne(require("path"));var $1=ne(zs()),G1=ne(require("json5"));var ot={};Ih(ot,{bold:()=>N1,dimmed:()=>M1,error:()=>t_,grey:()=>F1,info:()=>I1,item:()=>B1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>P1,turboLoader:()=>Qg,turboRed:()=>Xg,underline:()=>D1,warn:()=>e_,yellow:()=>Jg});var We=require("picocolors"),Yg=ne(require("ora")),Kg=ne(require("gradient-string")),Vg="#0099F7",Zg="#F11712",L1="#FFFF00",Gc=t=>{let e=j1(t);return r=>`\x1B[38;5;${e}m${r}${(0,We.reset)("")}`},P1=(0,Kg.default)(Vg,Zg),Ti=Gc(Vg),Xg=Gc(Zg),Jg=Gc(L1),Qg=t=>(0,Yg.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),I1=(...t)=>{pr(Ti((0,We.bold)(">>>")),t.join(" "))},N1=(...t)=>{pr((0,We.bold)(t.join(" ")))},D1=(...t)=>{pr((0,We.underline)(t.join(" ")))},M1=(...t)=>{pr((0,We.dim)(t.join(" ")))},F1=(...t)=>{pr((0,We.gray)(t.join(" ")))},B1=(...t)=>{pr(Ti((0,We.bold)(" \u2022")),t.join(" "))},pr=(...t)=>{console.log(...t)},e_=(...t)=>{console.error(Jg((0,We.bold)(">>>")),t.join(" "))},t_=(...t)=>{console.error(Xg((0,We.bold)(">>>")),t.join(" "))};function j1(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var r_=ne(require("os")),i_=ne(li());async function Qs(t,e=[],r){let i={cwd:r_.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,i_.default)(t,e,i);return n.trim()}catch{return}}async function zc(){let[t,e,r,i]=await Promise.all([Qs("yarnpkg",["--version"]),Qs("npm",["--version"]),Qs("pnpm",["--version"]),Qs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var z1=ne(require("fs-extra"));var W1=ne(require("path")),Y1=ne(require("fs-extra")),K1=require("picocolors");var rS=require("stream"),iS=require("util"),CP=require("path"),LP=require("os"),nS=require("fs"),PP=ne(tS());var oB=(0,iS.promisify)(rS.Stream.pipeline);var sS=require("fs-extra");var UP=ne(require("path")),$P=ne(fS()),pS=require("picocolors"),Lh=require("fs-extra");var Vn=require("picocolors");var je=require("picocolors"),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log((0,je.green)(" MODIFIED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}unchanged(...e){this._log((0,je.gray)(" UNCHANGED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}skipped(...e){this._log((0,je.yellow)(" SKIPPED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}error(...e){this._log((0,je.red)(" ERROR "),...e,this.dry?(0,je.dim)("(dry run)"):"")}info(...e){this._log((0,je.bold)(" INFO "),...e,this.dry?(0,je.dim)("(dry run)"):"")}};var dS=ne(require("os")),Ph=ne(require("path"));var Qi=require("picocolors"),aa=require("diff"),Or=require("fs-extra"),oa=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{Ph.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,aa.diffJson)(this.before,e.after):this.changes=(0,aa.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Ph.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Or.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Or.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write((0,Qi.green)(r.value)):r.removed?process.stdout.write((0,Qi.red)(r.value)):process.stdout.write((0,Qi.dim)(r.value))}),ot.log(dS.default.EOL)):ot.log(this.after)}};var Zn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new Ji(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new oa({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped((0,Vn.dim)(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified((0,Vn.bold)(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged((0,Vn.dim)(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ot.log(),r.length>0){ot.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ot.log()}}};function mS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Zn(i);return{log:n,runner:s}}var _S="add-package-manager",GP="Set the `packageManager` key in root `package.json` file",zP="1.1.0";async function bS({root:t,options:e}){let{log:r,runner:i}=mS({transformer:_S,rootPath:t,options:e}),n=yS.default.join(t,"package.json"),s=(0,gS.readJsonSync)(n);if("packageManager"in s)return r.info('"packageManager" already set in root "package.json"'),i.finish();r.info('Set "packageManager" key in root "package.json" file...');let o;try{o=await Mc({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let a=await zc(),{packageManager:l}=o,c=a[l];if(!c)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let u=`${l}@${c}`,h=[{name:"package.json",path:t,packageJson:{...s,packageJsonPath:n}}];for(let f of h){let{packageJsonPath:d,...g}=f.packageJson,y={...g,packageManager:u};i.modifyFile({filePath:d,after:y})}return i.finish()}var WP={name:_S,description:GP,introducedIn:zP,transformer:bS},YP=WP;0&&(module.exports={transformer});
43
+ `)}`))),s&&(ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Jk(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({action:"remove",packageManager:hr.name,project:e}));let s=ze({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Qk(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Fr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,qe.rmSync)(e.paths.lockfile,{force:!0})}async function e1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Fr.default.relative(e.paths.root,e.paths.lockfile)} to ${hr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,qe.existsSync)(e.paths.lockfile))try{await(0,Tg.default)(hr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Bt({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ng({project:e,options:r}),await s(),(0,qe.rmSync)(Fr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var t1={detect:Dg,read:Zk,create:Xk,remove:Jk,clean:Qk,convertLock:e1};W();var Ri={name:"npm",lock:"package-lock.json"};async function Mg(t){let e=_n.default.join(t.workspaceRoot,Ri.lock),r=Ks({workspaceRoot:t.workspaceRoot});return(0,Rt.existsSync)(e)||r===Ri.name}async function r1(t){if(!await Mg(t))throw new Ie("Not an npm project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ri.name,paths:Zs({root:t.workspaceRoot,lockFile:Ri.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function i1(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(fr({packageManager:Ri.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${_n.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Rt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function n1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ri.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Rt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Rt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function s1(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 o1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":Bt({project:e,options:r});break;case"npm":break;case"yarn":Bt({project:e,options:r});break}}var a1={detect:Mg,read:r1,create:i1,remove:n1,clean:s1,convertLock:o1};W();var Br={name:"yarn",lock:"yarn.lock"};async function Fg(t){let e=xi.default.join(t.workspaceRoot,Br.lock),r=Ks({workspaceRoot:t.workspaceRoot});return(0,xt.existsSync)(e)||r===Br.name}async function l1(t){if(!await Fg(t))throw new Ie("Not a yarn project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Br.name,paths:Zs({root:t.workspaceRoot,lockFile:Br.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function c1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(fr({packageManager:Br.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${xi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function u1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Br.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function h1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${xi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xt.rmSync)(e.paths.lockfile,{force:!0})}async function f1(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${xi.default.relative(e.paths.root,e.paths.lockfile)} to ${Br.lock}`)};switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":n(),await Ng({project:e,options:r});break;case"npm":Bt({project:e,options:r});break;case"yarn":break}}var p1={detect:Fg,read:l1,create:c1,remove:u1,clean:h1,convertLock:f1};W();var Ai={name:"bun",lock:"bun.lockb"};async function Bg(t){let e=bn.default.join(t.workspaceRoot,Ai.lock),r=Ks({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ai.name}async function d1(t){if(!await Bg(t))throw new Ie("Not a bun project",{type:"package_manager-unexpected"});let e=ze(t),{name:r,description:i}=xn(t),n=Dc({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Zs({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Xs({workspaceGlobs:n,...t})}}}async function m1(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Vk({project:e}))throw new Ie("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(fr({packageManager:Ai.name,action:"create",project:e}));let o=ze({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ur({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ur({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function y1(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(fr({packageManager:Ai.name,action:"remove",project:e}));let s=ze({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,At.rm)(a,{recursive:!0,force:!0})))}catch{throw new Ie("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function g1(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function _1(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Bt({project:e,options:r});break;case"bun":break;case"npm":Bt({project:e,options:r});break;case"yarn":Bt({project:e,options:r});break}}var b1={detect:Bg,read:d1,create:m1,remove:y1,clean:g1,convertLock:_1},jg={pnpm:t1,yarn:p1,npm:a1,bun:b1};W();async function Mc({root:t}){let{exists:e,absolute:r}=Yk({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(jg))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 x1=ne(zg());function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function On(t){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(t)}function jc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(t,e){if(e&&(On(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jc(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ut(t,e)}function qc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ut(t,e)}function Uc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $c(){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 $c()?Oi=Reflect.construct.bind():Oi=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&Ut(c,o.prototype),c},Oi.apply(null,arguments)}function Tn(t){var e=typeof Map=="function"?new Map:void 0;return Tn=function(i){if(i===null||!Uc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Oi(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ut(n,i)},Tn(t)}var Wg=ne(require("find-up"));var A1=ne(require("fs-extra")),XM=function(t){qc(e,t);function e(r){var i;return Bc(this,e),i=Hc(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Tn(Error));var C1=ne(require("json5"));var O1=ne(require("fs")),T1=ne(require("path"));var q1=ne(require("fs")),U1=ne(require("path"));var $1=ne(zs()),G1=ne(require("json5"));var ot={};Ih(ot,{bold:()=>N1,dimmed:()=>M1,error:()=>t_,grey:()=>F1,info:()=>I1,item:()=>B1,log:()=>pr,turboBlue:()=>Ti,turboGradient:()=>P1,turboLoader:()=>Qg,turboRed:()=>Xg,underline:()=>D1,warn:()=>e_,yellow:()=>Jg});var We=require("picocolors"),Yg=ne(require("ora")),Vg=ne(require("gradient-string")),Kg="#0099F7",Zg="#F11712",L1="#FFFF00",Gc=t=>{let e=j1(t);return r=>`\x1B[38;5;${e}m${r}${(0,We.reset)("")}`},P1=(0,Vg.default)(Kg,Zg),Ti=Gc(Kg),Xg=Gc(Zg),Jg=Gc(L1),Qg=t=>(0,Yg.default)({text:t,spinner:{frames:[" ",Ti("> "),Ti(">> "),Ti(">>>")]}}),I1=(...t)=>{pr(Ti((0,We.bold)(">>>")),t.join(" "))},N1=(...t)=>{pr((0,We.bold)(t.join(" ")))},D1=(...t)=>{pr((0,We.underline)(t.join(" ")))},M1=(...t)=>{pr((0,We.dim)(t.join(" ")))},F1=(...t)=>{pr((0,We.gray)(t.join(" ")))},B1=(...t)=>{pr(Ti((0,We.bold)(" \u2022")),t.join(" "))},pr=(...t)=>{console.log(...t)},e_=(...t)=>{console.error(Jg((0,We.bold)(">>>")),t.join(" "))},t_=(...t)=>{console.error(Xg((0,We.bold)(">>>")),t.join(" "))};function j1(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var r_=ne(require("os")),i_=ne(li());async function Qs(t,e=[],r){let i={cwd:r_.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,i_.default)(t,e,i);return n.trim()}catch{return}}async function zc(){let[t,e,r,i]=await Promise.all([Qs("yarnpkg",["--version"]),Qs("npm",["--version"]),Qs("pnpm",["--version"]),Qs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var z1=ne(require("fs-extra"));var W1=ne(require("path")),Y1=ne(require("fs-extra")),V1=require("picocolors");var rw=require("stream"),iw=require("util"),CP=require("path"),LP=require("os"),nw=require("fs"),PP=ne(tw());var oB=(0,iw.promisify)(rw.Stream.pipeline);var sw=require("fs-extra");var UP=ne(require("path")),$P=ne(fw()),pw=require("picocolors"),Lh=require("fs-extra");var Kn=require("picocolors");var je=require("picocolors"),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log((0,je.green)(" MODIFIED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}unchanged(...e){this._log((0,je.gray)(" UNCHANGED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}skipped(...e){this._log((0,je.yellow)(" SKIPPED "),...e,this.dry?(0,je.dim)("(dry run)"):"")}error(...e){this._log((0,je.red)(" ERROR "),...e,this.dry?(0,je.dim)("(dry run)"):"")}info(...e){this._log((0,je.bold)(" INFO "),...e,this.dry?(0,je.dim)("(dry run)"):"")}};var dw=ne(require("os")),Ph=ne(require("path"));var Qi=require("picocolors"),aa=require("diff"),Or=require("fs-extra"),oa=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{Ph.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,aa.diffJson)(this.before,e.after):this.changes=(0,aa.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Ph.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Or.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Or.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write((0,Qi.green)(r.value)):r.removed?process.stdout.write((0,Qi.red)(r.value)):process.stdout.write((0,Qi.dim)(r.value))}),ot.log(dw.default.EOL)):ot.log(this.after)}};var Zn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new Ji(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new oa({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped((0,Kn.dim)(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified((0,Kn.bold)(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged((0,Kn.dim)(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ot.log(),r.length>0){ot.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ot.log()}}};function mw({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Zn(i);return{log:n,runner:s}}var _w="add-package-manager",GP="Set the `packageManager` key in root `package.json` file",zP="1.1.0";async function bw({root:t,options:e}){let{log:r,runner:i}=mw({transformer:_w,rootPath:t,options:e}),n=yw.default.join(t,"package.json"),s=(0,gw.readJsonSync)(n);if("packageManager"in s)return r.info('"packageManager" already set in root "package.json"'),i.finish();r.info('Set "packageManager" key in root "package.json" file...');let o;try{o=await Mc({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let a=await zc(),{packageManager:l}=o,c=a[l];if(!c)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let u=`${l}@${c}`,h=[{name:"package.json",path:t,packageJson:{...s,packageJsonPath:n}}];for(let f of h){let{packageJsonPath:d,...g}=f.packageJson,y={...g,packageManager:u};i.modifyFile({filePath:d,after:y})}return i.finish()}var WP={name:_w,description:GP,introducedIn:zP,transformer:bw},YP=WP;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