@turbo/codemod 1.10.16 → 1.10.17-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,216 +1,47 @@
1
- "use strict";var ny=Object.create;var vi=Object.defineProperty;var iy=Object.getOwnPropertyDescriptor;var sy=Object.getOwnPropertyNames;var oy=Object.getPrototypeOf,ay=Object.prototype.hasOwnProperty;var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),uy=(e,r)=>{for(var t in r)vi(e,t,{get:r[t],enumerable:!0})},Nl=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of sy(r))!ay.call(e,i)&&i!==t&&vi(e,i,{get:()=>r[i],enumerable:!(n=iy(r,i))||n.enumerable});return e};var He=(e,r,t)=>(t=e!=null?ny(oy(e)):{},Nl(r||!e||!e.__esModule?vi(t,"default",{value:e,enumerable:!0}):t,e)),ly=e=>Nl(vi({},"__esModule",{value:!0}),e);var Gl=ve((VL,ql)=>{ql.exports=Hl;Hl.sync=hy;var jl=require("fs");function cy(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function $l(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:cy(r,t)}function Hl(e,r,t){jl.stat(e,function(n,i){t(n,n?!1:$l(i,e,r))})}function hy(e,r){return $l(jl.statSync(e),e,r)}});var Kl=ve((KL,Vl)=>{Vl.exports=zl;zl.sync=fy;var Ul=require("fs");function zl(e,r,t){Ul.stat(e,function(n,i){t(n,n?!1:Wl(i,r))})}function fy(e,r){return Wl(Ul.statSync(e),r)}function Wl(e,r){return e.isFile()&&py(e,r)}function py(e,r){var t=e.mode,n=e.uid,i=e.gid,c=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),o=parseInt("010",8),f=parseInt("001",8),l=s|o,h=t&f||t&o&&i===a||t&s&&n===c||t&l&&c===0;return h}});var Xl=ve((XL,Yl)=>{var YL=require("fs"),_i;process.platform==="win32"||global.TESTING_WINDOWS?_i=Gl():_i=Kl();Yl.exports=no;no.sync=dy;function no(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){no(e,r||{},function(c,a){c?i(c):n(a)})})}_i(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function dy(e,r){try{return _i.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var nc=ve((ZL,rc)=>{var jr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Zl=require("path"),my=jr?";":":",Ql=Xl(),Jl=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),ec=(e,r)=>{let t=r.colon||my,n=e.match(/\//)||jr&&e.match(/\\/)?[""]:[...jr?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=jr?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=jr?i.split(t):[""];return jr&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},tc=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:c}=ec(e,r),a=[],s=f=>new Promise((l,h)=>{if(f===n.length)return r.all&&a.length?l(a):h(Jl(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=Zl.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(o(y,f,0))}),o=(f,l,h)=>new Promise((u,d)=>{if(h===i.length)return u(s(l+1));let p=i[h];Ql(f+p,{pathExt:c},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(o(f,l,h+1))})});return t?s(0).then(f=>t(null,f),t):s(0)},yy=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=ec(e,r),c=[];for(let a=0;a<t.length;a++){let s=t[a],o=/^".*"$/.test(s)?s.slice(1,-1):s,f=Zl.join(o,e),l=!o&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=l+n[h];try{if(Ql.sync(u,{pathExt:i}))if(r.all)c.push(u);else return u}catch{}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw Jl(e)};rc.exports=tc;tc.sync=yy});var so=ve((QL,io)=>{"use strict";var ic=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};io.exports=ic;io.exports.default=ic});var uc=ve((JL,ac)=>{"use strict";var sc=require("path"),gy=nc(),by=so();function oc(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,c=i&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let a;try{a=gy.sync(e.command,{path:t[by({env:t})],pathExt:r?sc.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return a&&(a=sc.resolve(i?e.options.cwd:"",a)),a}function vy(e){return oc(e)||oc(e,!0)}ac.exports=vy});var lc=ve((e9,ao)=>{"use strict";var oo=/([()\][%!^"`<>&|;, *?])/g;function _y(e){return e=e.replace(oo,"^$1"),e}function wy(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(oo,"^$1"),r&&(e=e.replace(oo,"^$1")),e}ao.exports.command=_y;ao.exports.argument=wy});var hc=ve((t9,cc)=>{"use strict";cc.exports=/^#!(.*)/});var pc=ve((r9,fc)=>{"use strict";var Ey=hc();fc.exports=(e="")=>{let r=e.match(Ey);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var mc=ve((n9,dc)=>{"use strict";var uo=require("fs"),Sy=pc();function Ay(e){let t=Buffer.alloc(150),n;try{n=uo.openSync(e,"r"),uo.readSync(n,t,0,150,0),uo.closeSync(n)}catch{}return Sy(t.toString())}dc.exports=Ay});var vc=ve((i9,bc)=>{"use strict";var xy=require("path"),yc=uc(),gc=lc(),ky=mc(),Cy=process.platform==="win32",Dy=/\.(?:com|exe)$/i,Ry=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Oy(e){e.file=yc(e);let r=e.file&&ky(e.file);return r?(e.args.unshift(e.file),e.command=r,yc(e)):e.file}function Ty(e){if(!Cy)return e;let r=Oy(e),t=!Dy.test(r);if(e.options.forceShell||t){let n=Ry.test(r);e.command=xy.normalize(e.command),e.command=gc.command(e.command),e.args=e.args.map(c=>gc.argument(c,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Fy(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:Ty(n)}bc.exports=Fy});var Ec=ve((s9,wc)=>{"use strict";var lo=process.platform==="win32";function co(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function Py(e,r){if(!lo)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let c=_c(i,r,"spawn");if(c)return t.call(e,"error",c)}return t.apply(e,arguments)}}function _c(e,r){return lo&&e===1&&!r.file?co(r.original,"spawn"):null}function By(e,r){return lo&&e===1&&!r.file?co(r.original,"spawnSync"):null}wc.exports={hookChildProcess:Py,verifyENOENT:_c,verifyENOENTSync:By,notFoundError:co}});var xc=ve((o9,$r)=>{"use strict";var Sc=require("child_process"),ho=vc(),fo=Ec();function Ac(e,r,t){let n=ho(e,r,t),i=Sc.spawn(n.command,n.args,n.options);return fo.hookChildProcess(i,n),i}function Ly(e,r,t){let n=ho(e,r,t),i=Sc.spawnSync(n.command,n.args,n.options);return i.error=i.error||fo.verifyENOENTSync(i.status,n),i}$r.exports=Ac;$r.exports.spawn=Ac;$r.exports.sync=Ly;$r.exports._parse=ho;$r.exports._enoent=fo});var Cc=ve((a9,kc)=>{"use strict";kc.exports=e=>{let r=typeof e=="string"?`
1
+ "use strict";var m_=Object.create;var Kn=Object.defineProperty;var y_=Object.getOwnPropertyDescriptor;var g_=Object.getOwnPropertyNames;var E_=Object.getPrototypeOf,D_=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oh=(t,e)=>{for(var r in e)Kn(t,r,{get:e[r],enumerable:!0})},Th=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g_(e))!D_.call(t,n)&&n!==r&&Kn(t,n,{get:()=>e[n],enumerable:!(i=y_(e,n))||i.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?m_(E_(t)):{},Th(e||!t||!t.__esModule?Kn(r,"default",{value:t,enumerable:!0}):r,t)),__=t=>Th(Kn({},"__esModule",{value:!0}),t);var Ih=H((qk,Ph)=>{Ph.exports=Bh;Bh.sync=w_;var kh=require("fs");function b_(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function Lh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:b_(e,r)}function Bh(t,e,r){kh.stat(t,function(i,n){r(i,i?!1:Lh(n,t,e))})}function w_(t,e){return Lh(kh.statSync(t),t,e)}});var qh=H(($k,Hh)=>{Hh.exports=Mh;Mh.sync=S_;var Nh=require("fs");function Mh(t,e,r){Nh.stat(t,function(i,n){r(i,i?!1:jh(n,e))})}function S_(t,e){return jh(Nh.statSync(t),e)}function jh(t,e){return t.isFile()&&A_(t,e)}function A_(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),l=parseInt("001",8),c=u|a,h=r&l||r&a&&n===o||r&u&&i===s||r&c&&s===0;return h}});var Uh=H((Gk,$h)=>{var Uk=require("fs"),Vn;process.platform==="win32"||global.TESTING_WINDOWS?Vn=Ih():Vn=qh();$h.exports=au;au.sync=v_;function au(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){au(t,e||{},function(s,o){s?n(s):i(o)})})}Vn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function v_(t,e){try{return Vn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Zh=H((zk,Vh)=>{var Zr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Gh=require("path"),C_=Zr?";":":",zh=Uh(),Wh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Yh=(t,e)=>{let r=e.colon||C_,i=t.match(/\//)||Zr&&t.match(/\\/)?[""]:[...Zr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Zr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Zr?n.split(r):[""];return Zr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Kh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Yh(t,e),o=[],u=l=>new Promise((c,h)=>{if(l===i.length)return e.all&&o.length?c(o):h(Wh(t));let f=i[l],p=/^".*"$/.test(f)?f.slice(1,-1):f,m=Gh.join(p,t),d=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;c(a(d,l,0))}),a=(l,c,h)=>new Promise((f,p)=>{if(h===n.length)return f(u(c+1));let m=n[h];zh(l+m,{pathExt:s},(d,y)=>{if(!d&&y)if(e.all)o.push(l+m);else return f(l+m);return f(a(l,c,h+1))})});return r?u(0).then(l=>r(null,l),r):u(0)},R_=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Yh(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,l=Gh.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=c+i[h];try{if(zh.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Wh(t)};Vh.exports=Kh;Kh.sync=R_});var cu=H((Wk,lu)=>{"use strict";var Jh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};lu.exports=Jh;lu.exports.default=Jh});var tf=H((Yk,ef)=>{"use strict";var Xh=require("path"),x_=Zh(),F_=cu();function Qh(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=x_.sync(t.command,{path:r[F_({env:r})],pathExt:e?Xh.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Xh.resolve(n?t.options.cwd:"",o)),o}function O_(t){return Qh(t)||Qh(t,!0)}ef.exports=O_});var rf=H((Kk,fu)=>{"use strict";var hu=/([()\][%!^"`<>&|;, *?])/g;function T_(t){return t=t.replace(hu,"^$1"),t}function k_(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hu,"^$1"),e&&(t=t.replace(hu,"^$1")),t}fu.exports.command=T_;fu.exports.argument=k_});var sf=H((Vk,nf)=>{"use strict";nf.exports=/^#!(.*)/});var uf=H((Zk,of)=>{"use strict";var L_=sf();of.exports=(t="")=>{let e=t.match(L_);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var lf=H((Jk,af)=>{"use strict";var pu=require("fs"),B_=uf();function P_(t){let r=Buffer.alloc(150),i;try{i=pu.openSync(t,"r"),pu.readSync(i,r,0,150,0),pu.closeSync(i)}catch{}return B_(r.toString())}af.exports=P_});var pf=H((Xk,ff)=>{"use strict";var I_=require("path"),cf=tf(),hf=rf(),N_=lf(),M_=process.platform==="win32",j_=/\.(?:com|exe)$/i,H_=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function q_(t){t.file=cf(t);let e=t.file&&N_(t.file);return e?(t.args.unshift(t.file),t.command=e,cf(t)):t.file}function $_(t){if(!M_)return t;let e=q_(t),r=!j_.test(e);if(t.options.forceShell||r){let i=H_.test(e);t.command=I_.normalize(t.command),t.command=hf.command(t.command),t.args=t.args.map(s=>hf.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function U_(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:$_(i)}ff.exports=U_});var yf=H((Qk,mf)=>{"use strict";var du=process.platform==="win32";function mu(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function G_(t,e){if(!du)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=df(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function df(t,e){return du&&t===1&&!e.file?mu(e.original,"spawn"):null}function z_(t,e){return du&&t===1&&!e.file?mu(e.original,"spawnSync"):null}mf.exports={hookChildProcess:G_,verifyENOENT:df,verifyENOENTSync:z_,notFoundError:mu}});var Df=H((eL,Jr)=>{"use strict";var gf=require("child_process"),yu=pf(),gu=yf();function Ef(t,e,r){let i=yu(t,e,r),n=gf.spawn(i.command,i.args,i.options);return gu.hookChildProcess(n,i),n}function W_(t,e,r){let i=yu(t,e,r),n=gf.spawnSync(i.command,i.args,i.options);return n.error=n.error||gu.verifyENOENTSync(n.status,i),n}Jr.exports=Ef;Jr.exports.spawn=Ef;Jr.exports.sync=W_;Jr.exports._parse=yu;Jr.exports._enoent=gu});var bf=H((tL,_f)=>{"use strict";_f.exports=t=>{let e=typeof t=="string"?`
2
2
  `:`
3
- `.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var Oc=ve((u9,Tn)=>{"use strict";var On=require("path"),Dc=so(),Rc=e=>{e={cwd:process.cwd(),path:process.env[Dc()],execPath:process.execPath,...e};let r,t=On.resolve(e.cwd),n=[];for(;r!==t;)n.push(On.join(t,"node_modules/.bin")),r=t,t=On.resolve(t,"..");let i=On.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(On.delimiter)};Tn.exports=Rc;Tn.exports.default=Rc;Tn.exports.env=e=>{e={env:process.env,...e};let r={...e.env},t=Dc({env:r});return e.path=r[t],r[t]=Tn.exports(e),r}});var Fc=ve((l9,po)=>{"use strict";var Tc=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};po.exports=Tc;po.exports.default=Tc});var Bc=ve((c9,Ei)=>{"use strict";var Iy=Fc(),wi=new WeakMap,Pc=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,n=0,i=e.displayName||e.name||"<anonymous>",c=function(...a){if(wi.set(c,++n),n===1)t=e.apply(this,a),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t};return Iy(c,e),wi.set(c,n),c};Ei.exports=Pc;Ei.exports.default=Pc;Ei.exports.callCount=e=>{if(!wi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return wi.get(e)}});var Lc=ve(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SIGNALS=void 0;var My=[{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"}];Si.SIGNALS=My});var mo=ve(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.SIGRTMAX=Hr.getRealtimeSignals=void 0;var Ny=function(){let e=Mc-Ic+1;return Array.from({length:e},jy)};Hr.getRealtimeSignals=Ny;var jy=function(e,r){return{name:`SIGRT${r+1}`,number:Ic+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Ic=34,Mc=64;Hr.SIGRTMAX=Mc});var Nc=ve(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getSignals=void 0;var $y=require("os"),Hy=Lc(),qy=mo(),Gy=function(){let e=(0,qy.getRealtimeSignals)();return[...Hy.SIGNALS,...e].map(Uy)};Ai.getSignals=Gy;var Uy=function({name:e,number:r,description:t,action:n,forced:i=!1,standard:c}){let{signals:{[e]:a}}=$y.constants,s=a!==void 0;return{name:e,number:s?a:r,description:t,supported:s,action:n,forced:i,standard:c}}});var $c=ve(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.signalsByNumber=qr.signalsByName=void 0;var zy=require("os"),jc=Nc(),Wy=mo(),Vy=function(){return(0,jc.getSignals)().reduce(Ky,{})},Ky=function(e,{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}){return{...e,[r]:{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}}},Yy=Vy();qr.signalsByName=Yy;var Xy=function(){let e=(0,jc.getSignals)(),r=Wy.SIGRTMAX+1,t=Array.from({length:r},(n,i)=>Zy(i,e));return Object.assign({},...t)},Zy=function(e,r){let t=Qy(e,r);if(t===void 0)return{};let{name:n,description:i,supported:c,action:a,forced:s,standard:o}=t;return{[e]:{name:n,number:e,description:i,supported:c,action:a,forced:s,standard:o}}},Qy=function(e,r){let t=r.find(({name:n})=>zy.constants.signals[n]===e);return t!==void 0?t:r.find(n=>n.number===e)},Jy=Xy();qr.signalsByNumber=Jy});var qc=ve((m9,Hc)=>{"use strict";var{signalsByName:eg}=$c(),tg=({timedOut:e,timeout:r,errorCode:t,signal:n,signalDescription:i,exitCode:c,isCanceled:a})=>e?`timed out after ${r} milliseconds`:a?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${i})`:c!==void 0?`failed with exit code ${c}`:"failed",rg=({stdout:e,stderr:r,all:t,error:n,signal:i,exitCode:c,command:a,escapedCommand:s,timedOut:o,isCanceled:f,killed:l,parsed:{options:{timeout:h}}})=>{c=c===null?void 0:c,i=i===null?void 0:i;let u=i===void 0?void 0:eg[i].description,d=n&&n.code,y=`Command ${tg({timedOut:o,timeout:h,errorCode:d,signal:i,signalDescription:u,exitCode:c,isCanceled:f})}: ${a}`,b=Object.prototype.toString.call(n)==="[object Error]",_=b?`${y}
4
- ${n.message}`:y,g=[_,r,e].filter(Boolean).join(`
5
- `);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=s,n.exitCode=c,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!o,n.isCanceled=f,n.killed=l&&!o,n};Hc.exports=rg});var Uc=ve((y9,yo)=>{"use strict";var xi=["stdin","stdout","stderr"],ng=e=>xi.some(r=>e[r]!==void 0),Gc=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return xi.map(n=>e[n]);if(ng(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${xi.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,xi.length);return Array.from({length:t},(n,i)=>r[i])};yo.exports=Gc;yo.exports.node=e=>{let r=Gc(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var zc=ve((g9,ki)=>{ki.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ki.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ki.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Xc=ve((b9,zr)=>{var je=global.process,wr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};wr(je)?(Wc=require("assert"),Gr=zc(),Vc=/^win/i.test(je.platform),Fn=require("events"),typeof Fn!="function"&&(Fn=Fn.EventEmitter),je.__signal_exit_emitter__?Ye=je.__signal_exit_emitter__:(Ye=je.__signal_exit_emitter__=new Fn,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),zr.exports=function(e,r){if(!wr(global.process))return function(){};Wc.equal(typeof e,"function","a callback must be provided for exit handler"),Ur===!1&&go();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){Ye.removeListener(t,e),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&Ci()};return Ye.on(t,e),n},Ci=function(){!Ur||!wr(global.process)||(Ur=!1,Gr.forEach(function(r){try{je.removeListener(r,Di[r])}catch{}}),je.emit=Ri,je.reallyExit=bo,Ye.count-=1)},zr.exports.unload=Ci,Er=function(r,t,n){Ye.emitted[r]||(Ye.emitted[r]=!0,Ye.emit(r,t,n))},Di={},Gr.forEach(function(e){Di[e]=function(){if(wr(global.process)){var t=je.listeners(e);t.length===Ye.count&&(Ci(),Er("exit",null,e),Er("afterexit",null,e),Vc&&e==="SIGHUP"&&(e="SIGINT"),je.kill(je.pid,e))}}}),zr.exports.signals=function(){return Gr},Ur=!1,go=function(){Ur||!wr(global.process)||(Ur=!0,Ye.count+=1,Gr=Gr.filter(function(r){try{return je.on(r,Di[r]),!0}catch{return!1}}),je.emit=Yc,je.reallyExit=Kc)},zr.exports.load=go,bo=je.reallyExit,Kc=function(r){wr(global.process)&&(je.exitCode=r||0,Er("exit",je.exitCode,null),Er("afterexit",je.exitCode,null),bo.call(je,je.exitCode))},Ri=je.emit,Yc=function(r,t){if(r==="exit"&&wr(global.process)){t!==void 0&&(je.exitCode=t);var n=Ri.apply(this,arguments);return Er("exit",je.exitCode,null),Er("afterexit",je.exitCode,null),n}else return Ri.apply(this,arguments)}):zr.exports=function(){return function(){}};var Wc,Gr,Vc,Fn,Ye,Ci,Er,Di,Ur,go,bo,Kc,Ri,Yc});var Qc=ve((v9,Zc)=>{"use strict";var ig=require("os"),sg=Xc(),og=1e3*5,ag=(e,r="SIGTERM",t={})=>{let n=e(r);return ug(e,r,t,n),n},ug=(e,r,t,n)=>{if(!lg(r,t,n))return;let i=hg(t),c=setTimeout(()=>{e("SIGKILL")},i);c.unref&&c.unref()},lg=(e,{forceKillAfterTimeout:r},t)=>cg(e)&&r!==!1&&t,cg=e=>e===ig.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",hg=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return og;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},fg=(e,r)=>{e.kill()&&(r.isCanceled=!0)},pg=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},dg=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,c=new Promise((s,o)=>{i=setTimeout(()=>{pg(e,t,o)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([c,a])},mg=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},yg=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=sg(()=>{e.kill()});return n.finally(()=>{i()})};Zc.exports={spawnedKill:ag,spawnedCancel:fg,setupTimeout:dg,validateTimeout:mg,setExitHandler:yg}});var eh=ve((_9,Jc)=>{"use strict";var Ct=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ct.writable=e=>Ct(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ct.readable=e=>Ct(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ct.duplex=e=>Ct.writable(e)&&Ct.readable(e);Ct.transform=e=>Ct.duplex(e)&&typeof e._transform=="function";Jc.exports=Ct});var rh=ve((w9,th)=>{"use strict";var{PassThrough:gg}=require("stream");th.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let c=new gg({objectMode:i});t&&c.setEncoding(t);let a=0,s=[];return c.on("data",o=>{s.push(o),i?a=s.length:a+=o.length}),c.getBufferedValue=()=>r?s:n?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}});var nh=ve((E9,Pn)=>{"use strict";var{constants:bg}=require("buffer"),vg=require("stream"),{promisify:_g}=require("util"),wg=rh(),Eg=_g(vg.pipeline),Oi=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function vo(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=wg(r);return await new Promise((i,c)=>{let a=s=>{s&&n.getBufferedLength()<=bg.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),c(s)};(async()=>{try{await Eg(e,n),i()}catch(s){a(s)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Oi)})}),n.getBufferedValue()}Pn.exports=vo;Pn.exports.buffer=(e,r)=>vo(e,{...r,encoding:"buffer"});Pn.exports.array=(e,r)=>vo(e,{...r,array:!0});Pn.exports.MaxBufferError=Oi});var sh=ve((S9,ih)=>{"use strict";var{PassThrough:Sg}=require("stream");ih.exports=function(){var e=[],r=new Sg({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(c){return Array.isArray(c)?(c.forEach(t),this):(e.push(c),c.once("end",i.bind(null,c)),c.once("error",r.emit.bind(r,"error")),c.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(c){e=e.filter(function(a){return a!==c}),!e.length&&r.readable&&r.end()}}});var lh=ve((A9,uh)=>{"use strict";var ah=eh(),oh=nh(),Ag=sh(),xg=(e,r)=>{r===void 0||e.stdin===void 0||(ah(r)?r.pipe(e.stdin):e.stdin.end(r))},kg=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=Ag();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},_o=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},wo=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?oh(e,{encoding:r,maxBuffer:n}):oh.buffer(e,{maxBuffer:n})},Cg=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:c},a)=>{let s=wo(e,{encoding:n,buffer:i,maxBuffer:c}),o=wo(r,{encoding:n,buffer:i,maxBuffer:c}),f=wo(t,{encoding:n,buffer:i,maxBuffer:c*2});try{return await Promise.all([a,s,o,f])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},_o(e,s),_o(r,o),_o(t,f)])}},Dg=({input:e})=>{if(ah(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};uh.exports={handleInput:xg,makeAllStream:kg,getSpawnedResult:Cg,validateInputSync:Dg}});var hh=ve((x9,ch)=>{"use strict";var Rg=(async()=>{})().constructor.prototype,Og=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Rg,e)]),Tg=(e,r)=>{for(let[t,n]of Og){let i=typeof r=="function"?(...c)=>Reflect.apply(n.value,r(),c):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},Fg=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});ch.exports={mergePromise:Tg,getSpawnedPromise:Fg}});var dh=ve((k9,ph)=>{"use strict";var fh=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],Pg=/^[\w.-]+$/,Bg=/"/g,Lg=e=>typeof e!="string"||Pg.test(e)?e:`"${e.replace(Bg,'\\"')}"`,Ig=(e,r)=>fh(e,r).join(" "),Mg=(e,r)=>fh(e,r).map(t=>Lg(t)).join(" "),Ng=/ +/g,jg=e=>{let r=[];for(let t of e.trim().split(Ng)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};ph.exports={joinCommand:Ig,getEscapedCommand:Mg,parseCommand:jg}});var Pi=ve((C9,Wr)=>{"use strict";var $g=require("path"),Eo=require("child_process"),Hg=xc(),qg=Cc(),Gg=Oc(),Ug=Bc(),Ti=qc(),yh=Uc(),{spawnedKill:zg,spawnedCancel:Wg,setupTimeout:Vg,validateTimeout:Kg,setExitHandler:Yg}=Qc(),{handleInput:Xg,getSpawnedResult:Zg,makeAllStream:Qg,validateInputSync:Jg}=lh(),{mergePromise:mh,getSpawnedPromise:e8}=hh(),{joinCommand:gh,parseCommand:bh,getEscapedCommand:vh}=dh(),t8=1e3*1e3*100,r8=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let c=r?{...process.env,...e}:e;return t?Gg.env({env:c,cwd:n,execPath:i}):c},_h=(e,r,t={})=>{let n=Hg._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:t8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=r8(t),t.stdio=yh(t),process.platform==="win32"&&$g.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},Bn=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?qg(r):r,Fi=(e,r,t)=>{let n=_h(e,r,t),i=gh(e,r),c=vh(e,r);Kg(n.options);let a;try{a=Eo.spawn(n.file,n.args,n.options)}catch(d){let p=new Eo.ChildProcess,y=Promise.reject(Ti({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return mh(p,y)}let s=e8(a),o=Vg(a,n.options,s),f=Yg(a,n.options,o),l={isCanceled:!1};a.kill=zg.bind(null,a.kill.bind(a)),a.cancel=Wg.bind(null,a,l);let u=Ug(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await Zg(a,n.options,f),E=Bn(n.options,_),v=Bn(n.options,g),m=Bn(n.options,S);if(d||p!==0||y!==null){let w=Ti({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:c,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:c,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Xg(a,n.options.input),a.all=Qg(a,n.options),mh(a,u)};Wr.exports=Fi;Wr.exports.sync=(e,r,t)=>{let n=_h(e,r,t),i=gh(e,r),c=vh(e,r);Jg(n.options);let a;try{a=Eo.spawnSync(n.file,n.args,n.options)}catch(f){throw Ti({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=Bn(n.options,a.stdout,a.error),o=Bn(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=Ti({stdout:s,stderr:o,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:c,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:c,exitCode:0,stdout:s,stderr:o,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Wr.exports.command=(e,r)=>{let[t,...n]=bh(e);return Fi(t,n,r)};Wr.exports.commandSync=(e,r)=>{let[t,...n]=bh(e);return Fi.sync(t,n,r)};Wr.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=yh.node(t),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:a=i}=t;return Fi(c,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wh=ve(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.splitWhen=Vr.flatten=void 0;function n8(e){return e.reduce((r,t)=>[].concat(r,t),[])}Vr.flatten=n8;function i8(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}Vr.splitWhen=i8});var Eh=ve(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.isEnoentCodeError=void 0;function s8(e){return e.code==="ENOENT"}Bi.isEnoentCodeError=s8});var Sh=ve(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.createDirentFromStats=void 0;var So=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function o8(e,r){return new So(e,r)}Li.createDirentFromStats=o8});var Ah=ve(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.removeLeadingDotSegment=Dt.escape=Dt.makeAbsolute=Dt.unixify=void 0;var a8=require("path"),u8=2,l8=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function c8(e){return e.replace(/\\/g,"/")}Dt.unixify=c8;function h8(e,r){return a8.resolve(e,r)}Dt.makeAbsolute=h8;function f8(e){return e.replace(l8,"\\$2")}Dt.escape=f8;function p8(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(u8)}return e}Dt.removeLeadingDotSegment=p8});var kh=ve((F9,xh)=>{xh.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var Rh=ve((P9,Dh)=>{var d8=kh(),Ch={"{":"}","(":")","[":"]"},m8=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,c=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||c!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(c=e.indexOf(")",r),c>r&&(a=e.indexOf("\\",r),a===-1||a>c))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(c=e.indexOf(")",t),c>t&&(a=e.indexOf("\\",t),a===-1||a>c))))return!0;if(e[r]==="\\"){var s=e[r+1];r+=2;var o=Ch[s];if(o){var f=e.indexOf(o,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},y8=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=Ch[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};Dh.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(d8(r))return!0;var n=m8;return t&&t.strict===!1&&(n=y8),n(r)}});var Th=ve((B9,Oh)=>{"use strict";var g8=Rh(),b8=require("path").posix.dirname,v8=require("os").platform()==="win32",Ao="/",_8=/\\/g,w8=/[\{\[].*[\}\]]$/,E8=/(^|[^\\])([\{\[]|\([^\)]+$)/,S8=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Oh.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&v8&&r.indexOf(Ao)<0&&(r=r.replace(_8,Ao)),w8.test(r)&&(r+=Ao),r+="a";do r=b8(r);while(g8(r)||E8.test(r));return r.replace(S8,"$1")}});var Ii=ve(Et=>{"use strict";Et.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Et.find=(e,r)=>e.nodes.find(t=>t.type===r);Et.exceedsLimit=(e,r,t=1,n)=>n===!1||!Et.isInteger(e)||!Et.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;Et.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Et.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Et.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Et.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Et.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);Et.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let c=n[i];Array.isArray(c)?t(c,r):c!==void 0&&r.push(c)}return r};return t(e),r}});var Mi=ve((I9,Ph)=>{"use strict";var Fh=Ii();Ph.exports=(e,r={})=>{let t=(n,i={})=>{let c=r.escapeInvalid&&Fh.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s="";if(n.value)return(c||a)&&Fh.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)s+=t(o);return s};return t(e)}});var Lh=ve((M9,Bh)=>{"use strict";Bh.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Uh=ve((N9,Gh)=>{"use strict";var Ih=Lh(),Sr=(e,r,t)=>{if(Ih(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(Ih(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),c=String(n.shorthand),a=String(n.capture),s=String(n.wrap),o=e+":"+r+"="+i+c+a+s;if(Sr.cache.hasOwnProperty(o))return Sr.cache[o].result;let f=Math.min(e,r),l=Math.max(e,r);if(Math.abs(f-l)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=qh(e)||qh(r),u={min:e,max:r,a:f,b:l},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=l<0?Math.abs(l):1;p=Mh(y,Math.abs(f),u,n),f=u.a=0}return l>=0&&(d=Mh(f,l,u,n)),u.negatives=p,u.positives=d,u.result=A8(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),Sr.cache[o]=u,u.result};function A8(e,r,t){let n=xo(e,r,"-",!1,t)||[],i=xo(r,e,"",!1,t)||[],c=xo(e,r,"-?",!0,t)||[];return n.concat(c).concat(i).join("|")}function x8(e,r){let t=1,n=1,i=jh(e,t),c=new Set([r]);for(;e<=i&&i<=r;)c.add(i),t+=1,i=jh(e,t);for(i=$h(r+1,n)-1;e<i&&i<=r;)c.add(i),n+=1,i=$h(r+1,n)-1;return c=[...c],c.sort(D8),c}function k8(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=C8(e,r),i=n.length,c="",a=0;for(let s=0;s<i;s++){let[o,f]=n[s];o===f?c+=o:o!=="0"||f!=="9"?c+=R8(o,f,t):a++}return a&&(c+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:c,count:[a],digits:i}}function Mh(e,r,t,n){let i=x8(e,r),c=[],a=e,s;for(let o=0;o<i.length;o++){let f=i[o],l=k8(String(a),String(f),n),h="";if(!t.isPadded&&s&&s.pattern===l.pattern){s.count.length>1&&s.count.pop(),s.count.push(l.count[0]),s.string=s.pattern+Hh(s.count),a=f+1;continue}t.isPadded&&(h=O8(f,t,n)),l.string=h+l.pattern+Hh(l.count),c.push(l),a=f+1,s=l}return c}function xo(e,r,t,n,i){let c=[];for(let a of e){let{string:s}=a;!n&&!Nh(r,"string",s)&&c.push(t+s),n&&Nh(r,"string",s)&&c.push(t+s)}return c}function C8(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function D8(e,r){return e>r?1:r>e?-1:0}function Nh(e,r,t){return e.some(n=>n[r]===t)}function jh(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function $h(e,r){return e-e%Math.pow(10,r)}function Hh(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function R8(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function qh(e){return/^-?(0+)\d/.test(e)}function O8(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Sr.cache={};Sr.clearCache=()=>Sr.cache={};Gh.exports=Sr});var Do=ve((j9,Qh)=>{"use strict";var T8=require("util"),Vh=Uh(),zh=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),F8=e=>r=>e===!0?Number(r):String(r),ko=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ln=e=>Number.isInteger(+e),Co=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},P8=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,B8=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},Wh=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},L8=(e,r)=>{e.negatives.sort((a,s)=>a<s?-1:a>s?1:0),e.positives.sort((a,s)=>a<s?-1:a>s?1:0);let t=r.capture?"":"?:",n="",i="",c;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?c=`${n}|${i}`:c=n||i,r.wrap?`(${t}${c})`:c},Kh=(e,r,t,n)=>{if(t)return Vh(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let c=String.fromCharCode(r);return`[${i}-${c}]`},Yh=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Vh(e,r,t)},Xh=(...e)=>new RangeError("Invalid range arguments: "+T8.inspect(...e)),Zh=(e,r,t)=>{if(t.strictRanges===!0)throw Xh([e,r]);return[]},I8=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},M8=(e,r,t=1,n={})=>{let i=Number(e),c=Number(r);if(!Number.isInteger(i)||!Number.isInteger(c)){if(n.strictRanges===!0)throw Xh([e,r]);return[]}i===0&&(i=0),c===0&&(c=0);let a=i>c,s=String(e),o=String(r),f=String(t);t=Math.max(Math.abs(t),1);let l=Co(s)||Co(o)||Co(f),h=l?Math.max(s.length,o.length,f.length):0,u=l===!1&&P8(e,r,n)===!1,d=n.transform||F8(u);if(n.toRegex&&t===1)return Kh(Wh(e,h),Wh(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=c:i<=c;)n.toRegex===!0&&t>1?y(i):b.push(B8(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?L8(p,n):Yh(b,null,{wrap:!1,...n}):b},N8=(e,r,t=1,n={})=>{if(!Ln(e)&&e.length>1||!Ln(r)&&r.length>1)return Zh(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),c=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),s=c>a,o=Math.min(c,a),f=Math.max(c,a);if(n.toRegex&&t===1)return Kh(o,f,!1,n);let l=[],h=0;for(;s?c>=a:c<=a;)l.push(i(c,h)),c=s?c-t:c+t,h++;return n.toRegex===!0?Yh(l,null,{wrap:!1,options:n}):l},Ni=(e,r,t,n={})=>{if(r==null&&ko(e))return[e];if(!ko(e)||!ko(r))return Zh(e,r,n);if(typeof t=="function")return Ni(e,r,1,{transform:t});if(zh(t))return Ni(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,Ln(t)?Ln(e)&&Ln(r)?M8(e,r,t,i):N8(e,r,Math.max(Math.abs(t),1),i):t!=null&&!zh(t)?I8(t,i):Ni(e,r,1,t)};Qh.exports=Ni});var tf=ve(($9,ef)=>{"use strict";var j8=Do(),Jh=Ii(),$8=(e,r={})=>{let t=(n,i={})=>{let c=Jh.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s=c===!0||a===!0,o=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return s?o+n.value:"(";if(n.type==="close")return s?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Jh.reduce(n.nodes),h=j8(...l,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=t(l,n);return f};return t(e)};ef.exports=$8});var sf=ve((H9,nf)=>{"use strict";var H8=Do(),rf=Mi(),Kr=Ii(),Ar=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?Kr.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let c of i)n.push(Ar(c,r,t));else for(let c of r)t===!0&&typeof c=="string"&&(c=`{${c}}`),n.push(Array.isArray(c)?Ar(i,c,t):i+c);return Kr.flatten(n)},q8=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,c={})=>{i.queue=[];let a=c,s=c.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,s=a.queue;if(i.invalid||i.dollar){s.push(Ar(s.pop(),rf(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(Ar(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Kr.reduce(i.nodes);if(Kr.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=H8(...h,r);u.length===0&&(u=rf(i,r)),s.push(Ar(s.pop(),u)),i.nodes=[];return}let o=Kr.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){s.push(Ar(s.pop(),f,o));continue}if(u.value&&u.type!=="open"){f.push(Ar(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return Kr.flatten(n(e))};nf.exports=q8});var af=ve((q9,of)=>{"use strict";of.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 ff=ve((G9,hf)=>{"use strict";var G8=Mi(),{MAX_LENGTH:uf,CHAR_BACKSLASH:Ro,CHAR_BACKTICK:U8,CHAR_COMMA:z8,CHAR_DOT:W8,CHAR_LEFT_PARENTHESES:V8,CHAR_RIGHT_PARENTHESES:K8,CHAR_LEFT_CURLY_BRACE:Y8,CHAR_RIGHT_CURLY_BRACE:X8,CHAR_LEFT_SQUARE_BRACKET:lf,CHAR_RIGHT_SQUARE_BRACKET:cf,CHAR_DOUBLE_QUOTE:Z8,CHAR_SINGLE_QUOTE:Q8,CHAR_NO_BREAK_SPACE:J8,CHAR_ZERO_WIDTH_NOBREAK_SPACE:e5}=af(),t5=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(uf,t.maxLength):uf;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},c=[i],a=i,s=i,o=0,f=e.length,l=0,h=0,u,d={},p=()=>e[l++],y=b=>{if(b.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&b.type==="text"){s.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=s,s=b,b};for(y({type:"bos"});l<f;)if(a=c[c.length-1],u=p(),!(u===e5||u===J8)){if(u===Ro){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===cf){y({type:"text",value:"\\"+u});continue}if(u===lf){o++;let b=!0,_;for(;l<f&&(_=p());){if(u+=_,_===lf){o++;continue}if(_===Ro){u+=p();continue}if(_===cf&&(o--,o===0))break}y({type:"text",value:u});continue}if(u===V8){a=y({type:"paren",nodes:[]}),c.push(a),y({type:"text",value:u});continue}if(u===K8){if(a.type!=="paren"){y({type:"text",value:u});continue}a=c.pop(),y({type:"text",value:u}),a=c[c.length-1];continue}if(u===Z8||u===Q8||u===U8){let b=u,_;for(r.keepQuotes!==!0&&(u="");l<f&&(_=p());){if(_===Ro){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===Y8){h++;let _={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),c.push(a),y({type:"open",value:u});continue}if(u===X8){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=c.pop(),a.close=!0,y({type:b,value:u}),h--,a=c[c.length-1];continue}if(u===z8&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:G8(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===W8&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(s.type==="dot"){if(a.range=[],s.value+=u,s.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,s.type="text";continue}a.ranges++,a.args=[];continue}if(s.type==="range"){b.pop();let _=b[b.length-1];_.value+=s.value+u,s=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=c.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=c[c.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(c.length>0);return y({type:"eos"}),i};hf.exports=t5});var mf=ve((U9,df)=>{"use strict";var pf=Mi(),r5=tf(),n5=sf(),i5=ff(),mt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=mt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(mt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};mt.parse=(e,r={})=>i5(e,r);mt.stringify=(e,r={})=>pf(typeof e=="string"?mt.parse(e,r):e,r);mt.compile=(e,r={})=>(typeof e=="string"&&(e=mt.parse(e,r)),r5(e,r));mt.expand=(e,r={})=>{typeof e=="string"&&(e=mt.parse(e,r));let t=n5(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};mt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?mt.compile(e,r):mt.expand(e,r);df.exports=mt});var In=ve((z9,_f)=>{"use strict";var s5=require("path"),Rt="\\\\/",yf=`[^${Rt}]`,Gt="\\.",o5="\\+",a5="\\?",ji="\\/",u5="(?=.)",gf="[^/]",Oo=`(?:${ji}|$)`,bf=`(?:^|${ji})`,To=`${Gt}{1,2}${Oo}`,l5=`(?!${Gt})`,c5=`(?!${bf}${To})`,h5=`(?!${Gt}{0,1}${Oo})`,f5=`(?!${To})`,p5=`[^.${ji}]`,d5=`${gf}*?`,vf={DOT_LITERAL:Gt,PLUS_LITERAL:o5,QMARK_LITERAL:a5,SLASH_LITERAL:ji,ONE_CHAR:u5,QMARK:gf,END_ANCHOR:Oo,DOTS_SLASH:To,NO_DOT:l5,NO_DOTS:c5,NO_DOT_SLASH:h5,NO_DOTS_SLASH:f5,QMARK_NO_DOT:p5,STAR:d5,START_ANCHOR:bf},m5={...vf,SLASH_LITERAL:`[${Rt}]`,QMARK:yf,STAR:`${yf}*?`,DOTS_SLASH:`${Gt}{1,2}(?:[${Rt}]|$)`,NO_DOT:`(?!${Gt})`,NO_DOTS:`(?!(?:^|[${Rt}])${Gt}{1,2}(?:[${Rt}]|$))`,NO_DOT_SLASH:`(?!${Gt}{0,1}(?:[${Rt}]|$))`,NO_DOTS_SLASH:`(?!${Gt}{1,2}(?:[${Rt}]|$))`,QMARK_NO_DOT:`[^.${Rt}]`,START_ANCHOR:`(?:^|[${Rt}])`,END_ANCHOR:`(?:[${Rt}]|$)`},y5={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"};_f.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:y5,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:s5.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?m5:vf}}});var Mn=ve(ut=>{"use strict";var g5=require("path"),b5=process.platform==="win32",{REGEX_BACKSLASH:v5,REGEX_REMOVE_BACKSLASH:_5,REGEX_SPECIAL_CHARS:w5,REGEX_SPECIAL_CHARS_GLOBAL:E5}=In();ut.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ut.hasRegexChars=e=>w5.test(e);ut.isRegexChar=e=>e.length===1&&ut.hasRegexChars(e);ut.escapeRegex=e=>e.replace(E5,"\\$1");ut.toPosixSlashes=e=>e.replace(v5,"/");ut.removeBackslashes=e=>e.replace(_5,r=>r==="\\"?"":r);ut.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ut.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:b5===!0||g5.sep==="\\";ut.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?ut.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ut.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};ut.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",c=`${n}(?:${e})${i}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Df=ve((V9,Cf)=>{"use strict";var wf=Mn(),{CHAR_ASTERISK:Fo,CHAR_AT:S5,CHAR_BACKWARD_SLASH:Nn,CHAR_COMMA:A5,CHAR_DOT:Po,CHAR_EXCLAMATION_MARK:Bo,CHAR_FORWARD_SLASH:kf,CHAR_LEFT_CURLY_BRACE:Lo,CHAR_LEFT_PARENTHESES:Io,CHAR_LEFT_SQUARE_BRACKET:x5,CHAR_PLUS:k5,CHAR_QUESTION_MARK:Ef,CHAR_RIGHT_CURLY_BRACE:C5,CHAR_RIGHT_PARENTHESES:Sf,CHAR_RIGHT_SQUARE_BRACKET:D5}=In(),Af=e=>e===kf||e===Nn,xf=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},R5=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,c=[],a=[],s=[],o=e,f=-1,l=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,A,x={value:"",depth:0,isGlob:!1},C=()=>f>=n,F=()=>o.charCodeAt(f+1),T=()=>(w=A,o.charCodeAt(++f));for(;f<n;){A=T();let B;if(A===Nn){g=x.backslashes=!0,A=T(),A===Lo&&(_=!0);continue}if(_===!0||A===Lo){for(m++;C()!==!0&&(A=T());){if(A===Nn){g=x.backslashes=!0,T();continue}if(A===Lo){m++;continue}if(_!==!0&&A===Po&&(A=T())===Po){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&A===A5){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===C5&&(m--,m===0)){_=!1,u=x.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(A===kf){if(c.push(f),a.push(x),x={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===Po&&f===l+1){l+=2;continue}h=f+1;continue}if(t.noext!==!0&&(A===k5||A===S5||A===Fo||A===Ef||A===Bo)===!0&&F()===Io){if(p=x.isGlob=!0,y=x.isExtglob=!0,v=!0,A===Bo&&f===l&&(E=!0),i===!0){for(;C()!==!0&&(A=T());){if(A===Nn){g=x.backslashes=!0,A=T();continue}if(A===Sf){p=x.isGlob=!0,v=!0;break}}continue}break}if(A===Fo){if(w===Fo&&(b=x.isGlobstar=!0),p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===Ef){if(p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===x5){for(;C()!==!0&&(B=T());){if(B===Nn){g=x.backslashes=!0,T();continue}if(B===D5){d=x.isBracket=!0,p=x.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&A===Bo&&f===l){S=x.negated=!0,l++;continue}if(t.noparen!==!0&&A===Io){if(p=x.isGlob=!0,i===!0){for(;C()!==!0&&(A=T());){if(A===Io){g=x.backslashes=!0,A=T();continue}if(A===Sf){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let D=o,O="",P="";l>0&&(O=o.slice(0,l),o=o.slice(l),h-=l),D&&p===!0&&h>0?(D=o.slice(0,h),P=o.slice(h)):p===!0?(D="",P=o):D=o,D&&D!==""&&D!=="/"&&D!==o&&Af(D.charCodeAt(D.length-1))&&(D=D.slice(0,-1)),t.unescape===!0&&(P&&(P=wf.removeBackslashes(P)),D&&g===!0&&(D=wf.removeBackslashes(D)));let I={prefix:O,input:e,start:l,base:D,glob:P,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(I.maxDepth=0,Af(A)||a.push(x),I.tokens=a),t.parts===!0||t.tokens===!0){let B;for(let H=0;H<c.length;H++){let G=B?B+1:l,J=c[H],L=e.slice(G,J);t.tokens&&(H===0&&l!==0?(a[H].isPrefix=!0,a[H].value=O):a[H].value=L,xf(a[H]),I.maxDepth+=a[H].depth),(H!==0||L!=="")&&s.push(L),B=J}if(B&&B+1<e.length){let H=e.slice(B+1);s.push(H),t.tokens&&(a[a.length-1].value=H,xf(a[a.length-1]),I.maxDepth+=a[a.length-1].depth)}I.slashes=c,I.parts=s}return I};Cf.exports=R5});var Tf=ve((K9,Of)=>{"use strict";var $i=In(),yt=Mn(),{MAX_LENGTH:Hi,POSIX_REGEX_SOURCE:O5,REGEX_NON_SPECIAL_CHARS:T5,REGEX_SPECIAL_CHARS_BACKREF:F5,REPLACEMENTS:Rf}=$i,P5=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>yt.escapeRegex(i)).join("..")}return t},Yr=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,Mo=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Rf[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min(Hi,t.maxLength):Hi,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let c={type:"bos",value:"",output:t.prepend||""},a=[c],s=t.capture?"":"?:",o=yt.isWindows(r),f=$i.globChars(o),l=$i.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=ee=>`(${s}(?:(?!${m}${ee.dot?y:h}).)*?)`,A=t.dot?"":b,x=t.dot?S:E,C=t.bash===!0?w(t):v;t.capture&&(C=`(${C})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let F={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=yt.removePrefix(e,F),i=e.length;let T=[],D=[],O=[],P=c,I,B=()=>F.index===i-1,H=F.peek=(ee=1)=>e[F.index+ee],G=F.advance=()=>e[++F.index]||"",J=()=>e.slice(F.index+1),L=(ee="",ae=0)=>{F.consumed+=ee,F.index+=ae},M=ee=>{F.output+=ee.output!=null?ee.output:ee.value,L(ee.value)},R=()=>{let ee=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)G(),F.start++,ee++;return ee%2===0?!1:(F.negated=!0,F.start++,!0)},K=ee=>{F[ee]++,O.push(ee)},q=ee=>{F[ee]--,O.pop()},Z=ee=>{if(P.type==="globstar"){let ae=F.braces>0&&(ee.type==="comma"||ee.type==="brace"),oe=ee.extglob===!0||T.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!ae&&!oe&&(F.output=F.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=C,F.output+=P.output)}if(T.length&&ee.type!=="paren"&&(T[T.length-1].inner+=ee.value),(ee.value||ee.output)&&M(ee),P&&P.type==="text"&&ee.type==="text"){P.value+=ee.value,P.output=(P.output||"")+ee.value;return}ee.prev=P,a.push(ee),P=ee},N=(ee,ae)=>{let oe={...l[ae],conditions:1,inner:""};oe.prev=P,oe.parens=F.parens,oe.output=F.output;let de=(t.capture?"(":"")+oe.open;K("parens"),Z({type:ee,value:ae,output:F.output?"":p}),Z({type:"paren",extglob:!0,value:G(),output:de}),T.push(oe)},W=ee=>{let ae=ee.close+(t.capture?")":""),oe;if(ee.type==="negate"){let de=C;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(de=w(t)),(de!==C||B()||/^\)+$/.test(J()))&&(ae=ee.close=`)$))${de}`),ee.inner.includes("*")&&(oe=J())&&/^\.[^\\/.]+$/.test(oe)){let pe=Mo(oe,{...r,fastpaths:!1}).output;ae=ee.close=`)${pe})${de})`}ee.prev.type==="bos"&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:I,output:ae}),q("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ee=!1,ae=e.replace(F5,(oe,de,pe,j,z,k)=>j==="\\"?(ee=!0,oe):j==="?"?de?de+j+(z?S.repeat(z.length):""):k===0?x+(z?S.repeat(z.length):""):S.repeat(pe.length):j==="."?h.repeat(pe.length):j==="*"?de?de+j+(z?C:""):C:de?oe:`\\${oe}`);return ee===!0&&(t.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),ae===e&&t.contains===!0?(F.output=e,F):(F.output=yt.wrapOutput(ae,F,r),F)}for(;!B();){if(I=G(),I==="\0")continue;if(I==="\\"){let oe=H();if(oe==="/"&&t.bash!==!0||oe==="."||oe===";")continue;if(!oe){I+="\\",Z({type:"text",value:I});continue}let de=/^\\+/.exec(J()),pe=0;if(de&&de[0].length>2&&(pe=de[0].length,F.index+=pe,pe%2!==0&&(I+="\\")),t.unescape===!0?I=G():I+=G(),F.brackets===0){Z({type:"text",value:I});continue}}if(F.brackets>0&&(I!=="]"||P.value==="["||P.value==="[^")){if(t.posix!==!1&&I===":"){let oe=P.value.slice(1);if(oe.includes("[")&&(P.posix=!0,oe.includes(":"))){let de=P.value.lastIndexOf("["),pe=P.value.slice(0,de),j=P.value.slice(de+2),z=O5[j];if(z){P.value=pe+z,F.backtrack=!0,G(),!c.output&&a.indexOf(P)===1&&(c.output=p);continue}}}(I==="["&&H()!==":"||I==="-"&&H()==="]")&&(I=`\\${I}`),I==="]"&&(P.value==="["||P.value==="[^")&&(I=`\\${I}`),t.posix===!0&&I==="!"&&P.value==="["&&(I="^"),P.value+=I,M({value:I});continue}if(F.quotes===1&&I!=='"'){I=yt.escapeRegex(I),P.value+=I,M({value:I});continue}if(I==='"'){F.quotes=F.quotes===1?0:1,t.keepQuotes===!0&&Z({type:"text",value:I});continue}if(I==="("){K("parens"),Z({type:"paren",value:I});continue}if(I===")"){if(F.parens===0&&t.strictBrackets===!0)throw new SyntaxError(Yr("opening","("));let oe=T[T.length-1];if(oe&&F.parens===oe.parens+1){W(T.pop());continue}Z({type:"paren",value:I,output:F.parens?")":"\\)"}),q("parens");continue}if(I==="["){if(t.nobracket===!0||!J().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));I=`\\${I}`}else K("brackets");Z({type:"bracket",value:I});continue}if(I==="]"){if(t.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){Z({type:"text",value:I,output:`\\${I}`});continue}if(F.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(Yr("opening","["));Z({type:"text",value:I,output:`\\${I}`});continue}q("brackets");let oe=P.value.slice(1);if(P.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(I=`/${I}`),P.value+=I,M({value:I}),t.literalBrackets===!1||yt.hasRegexChars(oe))continue;let de=yt.escapeRegex(P.value);if(F.output=F.output.slice(0,-P.value.length),t.literalBrackets===!0){F.output+=de,P.value=de;continue}P.value=`(${s}${de}|${P.value})`,F.output+=P.value;continue}if(I==="{"&&t.nobrace!==!0){K("braces");let oe={type:"brace",value:I,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};D.push(oe),Z(oe);continue}if(I==="}"){let oe=D[D.length-1];if(t.nobrace===!0||!oe){Z({type:"text",value:I,output:I});continue}let de=")";if(oe.dots===!0){let pe=a.slice(),j=[];for(let z=pe.length-1;z>=0&&(a.pop(),pe[z].type!=="brace");z--)pe[z].type!=="dots"&&j.unshift(pe[z].value);de=P5(j,t),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let pe=F.output.slice(0,oe.outputIndex),j=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",I=de="\\}",F.output=pe;for(let z of j)F.output+=z.output||z.value}Z({type:"brace",value:I,output:de}),q("braces"),D.pop();continue}if(I==="|"){T.length>0&&T[T.length-1].conditions++,Z({type:"text",value:I});continue}if(I===","){let oe=I,de=D[D.length-1];de&&O[O.length-1]==="braces"&&(de.comma=!0,oe="|"),Z({type:"comma",value:I,output:oe});continue}if(I==="/"){if(P.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",a.pop(),P=c;continue}Z({type:"slash",value:I,output:d});continue}if(I==="."){if(F.braces>0&&P.type==="dot"){P.value==="."&&(P.output=h);let oe=D[D.length-1];P.type="dots",P.output+=I,P.value+=I,oe.dots=!0;continue}if(F.braces+F.parens===0&&P.type!=="bos"&&P.type!=="slash"){Z({type:"text",value:I,output:h});continue}Z({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(P&&P.value==="(")&&t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("qmark",I);continue}if(P&&P.type==="paren"){let de=H(),pe=I;if(de==="<"&&!yt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(J()))&&(pe=`\\${I}`),Z({type:"text",value:I,output:pe});continue}if(t.dot!==!0&&(P.type==="slash"||P.type==="bos")){Z({type:"qmark",value:I,output:E});continue}Z({type:"qmark",value:I,output:S});continue}if(I==="!"){if(t.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){N("negate",I);continue}if(t.nonegate!==!0&&F.index===0){R();continue}}if(I==="+"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("plus",I);continue}if(P&&P.value==="("||t.regex===!1){Z({type:"plus",value:I,output:u});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||F.parens>0){Z({type:"plus",value:I});continue}Z({type:"plus",value:u});continue}if(I==="@"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){Z({type:"at",extglob:!0,value:I,output:""});continue}Z({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let oe=T5.exec(J());oe&&(I+=oe[0],F.index+=oe[0].length),Z({type:"text",value:I});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=I,P.output=C,F.backtrack=!0,F.globstar=!0,L(I);continue}let ee=J();if(t.noextglob!==!0&&/^\([^?]/.test(ee)){N("star",I);continue}if(P.type==="star"){if(t.noglobstar===!0){L(I);continue}let oe=P.prev,de=oe.prev,pe=oe.type==="slash"||oe.type==="bos",j=de&&(de.type==="star"||de.type==="globstar");if(t.bash===!0&&(!pe||ee[0]&&ee[0]!=="/")){Z({type:"star",value:I,output:""});continue}let z=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),k=T.length&&(oe.type==="pipe"||oe.type==="paren");if(!pe&&oe.type!=="paren"&&!z&&!k){Z({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let U=e[F.index+4];if(U&&U!=="/")break;ee=ee.slice(3),L("/**",3)}if(oe.type==="bos"&&B()){P.type="globstar",P.value+=I,P.output=w(t),F.output=P.output,F.globstar=!0,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!j&&B()){F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=w(t)+(t.strictSlashes?")":"|$)"),P.value+=I,F.globstar=!0,F.output+=oe.output+P.output,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ee[0]==="/"){let U=ee[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=`${w(t)}${d}|${d}${U})`,P.value+=I,F.output+=oe.output+P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ee[0]==="/"){P.type="globstar",P.value+=I,P.output=`(?:^|${d}|${w(t)}${d})`,F.output=P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-P.output.length),P.type="globstar",P.output=w(t),P.value+=I,F.output+=P.output,F.globstar=!0,L(I);continue}let ae={type:"star",value:I,output:C};if(t.bash===!0){ae.output=".*?",(P.type==="bos"||P.type==="slash")&&(ae.output=A+ae.output),Z(ae);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&t.regex===!0){ae.output=I,Z(ae);continue}(F.index===F.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(F.output+=_,P.output+=_):t.dot===!0?(F.output+=g,P.output+=g):(F.output+=A,P.output+=A),H()!=="*"&&(F.output+=p,P.output+=p)),Z(ae)}for(;F.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));F.output=yt.escapeLast(F.output,"["),q("brackets")}for(;F.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(Yr("closing",")"));F.output=yt.escapeLast(F.output,"("),q("parens")}for(;F.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(Yr("closing","}"));F.output=yt.escapeLast(F.output,"{"),q("braces")}if(t.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${d}?`}),F.backtrack===!0){F.output="";for(let ee of F.tokens)F.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(F.output+=ee.suffix)}return F};Mo.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min(Hi,t.maxLength):Hi,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Rf[e]||e;let c=yt.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:o,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=$i.globChars(c),y=t.dot?h:l,b=t.dot?u:l,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=A=>A.noglobstar===!0?S:`(${_}(?:(?!${p}${A.dot?f:a}).)*?)`,v=A=>{switch(A){case"*":return`${y}${o}${S}`;case".*":return`${a}${o}${S}`;case"*.*":return`${y}${S}${a}${o}${S}`;case"*/*":return`${y}${S}${s}${o}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${s})?${b}${o}${S}`;case"**/*.*":return`(?:${y}${E(t)}${s})?${b}${S}${a}${o}${S}`;case"**/.*":return`(?:${y}${E(t)}${s})?${a}${o}${S}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let C=v(x[1]);return C?C+a+x[2]:void 0}}},m=yt.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${s}?`),w};Of.exports=Mo});var Pf=ve((Y9,Ff)=>{"use strict";var B5=require("path"),L5=Df(),No=Tf(),jo=Mn(),I5=In(),M5=e=>e&&typeof e=="object"&&!Array.isArray(e),qe=(e,r,t=!1)=>{if(Array.isArray(e)){let l=e.map(u=>qe(u,r,t));return u=>{for(let d of l){let p=d(u);if(p)return p}return!1}}let n=M5(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},c=jo.isWindows(r),a=n?qe.compileRe(e,r):qe.makeRe(e,r,!1,!0),s=a.state;delete a.state;let o=()=>!1;if(i.ignore){let l={...r,ignore:null,onMatch:null,onResult:null};o=qe(i.ignore,l,t)}let f=(l,h=!1)=>{let{isMatch:u,match:d,output:p}=qe.test(l,a,r,{glob:e,posix:c}),y={glob:e,state:s,regex:a,posix:c,input:l,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):o(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=s),f};qe.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=t||{},a=c.format||(i?jo.toPosixSlashes:null),s=e===n,o=s&&a?a(e):e;return s===!1&&(o=a?a(e):e,s=o===n),(s===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?s=qe.matchBase(e,r,t,i):s=r.exec(o)),{isMatch:!!s,match:s,output:o}};qe.matchBase=(e,r,t,n=jo.isWindows(t))=>(r instanceof RegExp?r:qe.makeRe(r,t)).test(B5.basename(e));qe.isMatch=(e,r,t)=>qe(r,t)(e);qe.parse=(e,r)=>Array.isArray(e)?e.map(t=>qe.parse(t,r)):No(e,{...r,fastpaths:!1});qe.scan=(e,r)=>L5(e,r);qe.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},c=i.contains?"":"^",a=i.contains?"":"$",s=`${c}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let o=qe.toRegex(s,r);return n===!0&&(o.state=e),o};qe.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=No.fastpaths(e,r)),i.output||(i=No(e,r)),qe.compileRe(i,r,t,n)};qe.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};qe.constants=I5;Ff.exports=qe});var Lf=ve((X9,Bf)=>{"use strict";Bf.exports=Pf()});var $f=ve((Z9,jf)=>{"use strict";var Mf=require("util"),Nf=mf(),Ot=Lf(),$o=Mn(),If=e=>e===""||e==="./",$e=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,c=new Set,a=0,s=l=>{c.add(l.output),t&&t.onResult&&t.onResult(l)};for(let l=0;l<r.length;l++){let h=Ot(String(r[l]),{...t,onResult:s},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...c]:[...i]).filter(l=>!n.has(l));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(l=>l.replace(/\\/g,"")):r}return f};$e.match=$e;$e.matcher=(e,r)=>Ot(e,r);$e.isMatch=(e,r,t)=>Ot(r,t)(e);$e.any=$e.isMatch;$e.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],c=s=>{t.onResult&&t.onResult(s),i.push(s.output)},a=new Set($e(e,r,{...t,onResult:c}));for(let s of i)a.has(s)||n.add(s);return[...n]};$e.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Mf.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>$e.contains(e,n,t));if(typeof r=="string"){if(If(e)||If(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return $e.isMatch(e,r,{...t,contains:!0})};$e.matchKeys=(e,r,t)=>{if(!$o.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=$e(Object.keys(e),r,t),i={};for(let c of n)i[c]=e[c];return i};$e.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Ot(String(i),t);if(n.some(a=>c(a)))return!0}return!1};$e.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Ot(String(i),t);if(!n.every(a=>c(a)))return!1}return!0};$e.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Mf.inspect(e)}"`);return[].concat(r).every(n=>Ot(n,t)(e))};$e.capture=(e,r,t)=>{let n=$o.isWindows(t),c=Ot.makeRe(String(e),{...t,capture:!0}).exec(n?$o.toPosixSlashes(r):r);if(c)return c.slice(1).map(a=>a===void 0?"":a)};$e.makeRe=(...e)=>Ot.makeRe(...e);$e.scan=(...e)=>Ot.scan(...e);$e.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of Nf(String(n),r))t.push(Ot.parse(i,r));return t};$e.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:Nf(e,r)};$e.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return $e.braces(e,{...r,expand:!0})};jf.exports=$e});var Kf=ve(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.matchAny=Te.convertPatternsToRe=Te.makeRe=Te.getPatternParts=Te.expandBraceExpansion=Te.expandPatternsWithBraceExpansion=Te.isAffectDepthOfReadingPattern=Te.endsWithSlashGlobStar=Te.hasGlobStar=Te.getBaseDirectory=Te.isPatternRelatedToParentDirectory=Te.getPatternsOutsideCurrentDirectory=Te.getPatternsInsideCurrentDirectory=Te.getPositivePatterns=Te.getNegativePatterns=Te.isPositivePattern=Te.isNegativePattern=Te.convertToNegativePattern=Te.convertToPositivePattern=Te.isDynamicPattern=Te.isStaticPattern=void 0;var N5=require("path"),j5=Th(),Ho=$f(),Hf="**",$5="\\",H5=/[*?]|^!/,q5=/\[[^[]*]/,G5=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,U5=/[!*+?@]\([^(]*\)/,z5=/,|\.\./;function qf(e,r={}){return!Gf(e,r)}Te.isStaticPattern=qf;function Gf(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes($5)||H5.test(e)||q5.test(e)||G5.test(e)||r.extglob!==!1&&U5.test(e)||r.braceExpansion!==!1&&W5(e))}Te.isDynamicPattern=Gf;function W5(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return z5.test(n)}function V5(e){return qi(e)?e.slice(1):e}Te.convertToPositivePattern=V5;function K5(e){return"!"+e}Te.convertToNegativePattern=K5;function qi(e){return e.startsWith("!")&&e[1]!=="("}Te.isNegativePattern=qi;function Uf(e){return!qi(e)}Te.isPositivePattern=Uf;function Y5(e){return e.filter(qi)}Te.getNegativePatterns=Y5;function X5(e){return e.filter(Uf)}Te.getPositivePatterns=X5;function Z5(e){return e.filter(r=>!qo(r))}Te.getPatternsInsideCurrentDirectory=Z5;function Q5(e){return e.filter(qo)}Te.getPatternsOutsideCurrentDirectory=Q5;function qo(e){return e.startsWith("..")||e.startsWith("./..")}Te.isPatternRelatedToParentDirectory=qo;function J5(e){return j5(e,{flipBackslashes:!1})}Te.getBaseDirectory=J5;function eb(e){return e.includes(Hf)}Te.hasGlobStar=eb;function zf(e){return e.endsWith("/"+Hf)}Te.endsWithSlashGlobStar=zf;function tb(e){let r=N5.basename(e);return zf(e)||qf(r)}Te.isAffectDepthOfReadingPattern=tb;function rb(e){return e.reduce((r,t)=>r.concat(Wf(t)),[])}Te.expandPatternsWithBraceExpansion=rb;function Wf(e){return Ho.braces(e,{expand:!0,nodupes:!0})}Te.expandBraceExpansion=Wf;function nb(e,r){let{parts:t}=Ho.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Te.getPatternParts=nb;function Vf(e,r){return Ho.makeRe(e,r)}Te.makeRe=Vf;function ib(e,r){return e.map(t=>Vf(t,r))}Te.convertPatternsToRe=ib;function sb(e,r){return r.some(t=>t.test(e))}Te.matchAny=sb});var Qf=ve((J9,Zf)=>{"use strict";var ob=require("stream"),Yf=ob.PassThrough,ab=Array.prototype.slice;Zf.exports=ub;function ub(){let e=[],r=ab.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,c=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=Yf(n);function s(){for(let l=0,h=arguments.length;l<h;l++)e.push(Xf(arguments[l],n));return o(),this}function o(){if(t)return;t=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function u(){--h>0||(t=!1,o())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),c&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),c&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=s,a.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),r.length&&s.apply(null,r),a}function Xf(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=Xf(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Yf(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ep=ve(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.merge=void 0;var lb=Qf();function cb(e){let r=lb(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>Jf(e)),r.once("end",()=>Jf(e)),r}Gi.merge=cb;function Jf(e){e.forEach(r=>r.emit("close"))}});var tp=ve(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isEmpty=Xr.isString=void 0;function hb(e){return typeof e=="string"}Xr.isString=hb;function fb(e){return e===""}Xr.isEmpty=fb});var Ut=ve(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.string=Qe.stream=Qe.pattern=Qe.path=Qe.fs=Qe.errno=Qe.array=void 0;var pb=wh();Qe.array=pb;var db=Eh();Qe.errno=db;var mb=Sh();Qe.fs=mb;var yb=Ah();Qe.path=yb;var gb=Kf();Qe.pattern=gb;var bb=ep();Qe.stream=bb;var vb=tp();Qe.string=vb});var ip=ve(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.convertPatternGroupToTask=Je.convertPatternGroupsToTasks=Je.groupPatternsByBaseDirectory=Je.getNegativePatternsAsPositive=Je.getPositivePatterns=Je.convertPatternsToTasks=Je.generate=void 0;var zt=Ut();function _b(e,r){let t=rp(e),n=np(e,r.ignore),i=t.filter(o=>zt.pattern.isStaticPattern(o,r)),c=t.filter(o=>zt.pattern.isDynamicPattern(o,r)),a=Go(i,n,!1),s=Go(c,n,!0);return a.concat(s)}Je.generate=_b;function Go(e,r,t){let n=[],i=zt.pattern.getPatternsOutsideCurrentDirectory(e),c=zt.pattern.getPatternsInsideCurrentDirectory(e),a=Uo(i),s=Uo(c);return n.push(...zo(a,r,t)),"."in s?n.push(Wo(".",c,r,t)):n.push(...zo(s,r,t)),n}Je.convertPatternsToTasks=Go;function rp(e){return zt.pattern.getPositivePatterns(e)}Je.getPositivePatterns=rp;function np(e,r){return zt.pattern.getNegativePatterns(e).concat(r).map(zt.pattern.convertToPositivePattern)}Je.getNegativePatternsAsPositive=np;function Uo(e){let r={};return e.reduce((t,n)=>{let i=zt.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}Je.groupPatternsByBaseDirectory=Uo;function zo(e,r,t){return Object.keys(e).map(n=>Wo(n,e[n],r,t))}Je.convertPatternGroupsToTasks=zo;function Wo(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(zt.pattern.convertToNegativePattern))}}Je.convertPatternGroupToTask=Wo});var op=ve(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.removeDuplicateSlashes=Zr.transform=void 0;var wb=/(?!^)\/{2,}/g;function Eb(e){return e.map(r=>sp(r))}Zr.transform=Eb;function sp(e){return e.replace(wb,"/")}Zr.removeDuplicateSlashes=sp});var up=ve(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.read=void 0;function Sb(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){ap(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){Vo(t,i);return}r.fs.stat(e,(c,a)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){ap(t,c);return}Vo(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Vo(t,a)})})}Ui.read=Sb;function ap(e,r){e(r)}function Vo(e,r){e(null,r)}});var lp=ve(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.read=void 0;function Ab(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}zi.read=Ab});var cp=ve(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.createFileSystemAdapter=er.FILE_SYSTEM_ADAPTER=void 0;var Wi=require("fs");er.FILE_SYSTEM_ADAPTER={lstat:Wi.lstat,stat:Wi.stat,lstatSync:Wi.lstatSync,statSync:Wi.statSync};function xb(e){return e===void 0?er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},er.FILE_SYSTEM_ADAPTER),e)}er.createFileSystemAdapter=xb});var hp=ve(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});var kb=cp(),Ko=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=kb.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};Yo.default=Ko});var xr=ve(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.statSync=tr.stat=tr.Settings=void 0;var fp=up(),Cb=lp(),Xo=hp();tr.Settings=Xo.default;function Db(e,r,t){if(typeof r=="function"){fp.read(e,Zo(),r);return}fp.read(e,Zo(r),t)}tr.stat=Db;function Rb(e,r){let t=Zo(r);return Cb.read(e,t)}tr.statSync=Rb;function Zo(e={}){return e instanceof Xo.default?e:new Xo.default(e)}});var mp=ve((cI,dp)=>{var pp;dp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(pp||(pp=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var gp=ve((hI,yp)=>{yp.exports=Tb;var Ob=mp();function Tb(e,r){let t,n,i,c=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(o){function f(){r&&r(o,t),r=null}c?Ob(f):f()}function s(o,f,l){t[o]=l,(--n===0||f)&&a(f)}n?i?i.forEach(function(o){e[o](function(f,l){s(o,f,l)})}):e.forEach(function(o,f){o(function(l,h){s(f,l,h)})}):a(null),c=!1}});var Qo=ve(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Vi=process.versions.node.split(".");if(Vi[0]===void 0||Vi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var bp=Number.parseInt(Vi[0],10),Fb=Number.parseInt(Vi[1],10),vp=10,Pb=10,Bb=bp>vp,Lb=bp===vp&&Fb>=Pb;Ki.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Bb||Lb});var _p=ve(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.createDirentFromStats=void 0;var Jo=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function Ib(e,r){return new Jo(e,r)}Yi.createDirentFromStats=Ib});var ea=ve(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.fs=void 0;var Mb=_p();Xi.fs=Mb});var ta=ve(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.joinPathSegments=void 0;function Nb(e,r,t){return e.endsWith(t)?e+r:e+t+r}Zi.joinPathSegments=Nb});var kp=ve(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.readdir=rr.readdirWithFileTypes=rr.read=void 0;var jb=xr(),wp=gp(),$b=Qo(),Ep=ea(),Sp=ta();function Hb(e,r,t){if(!r.stats&&$b.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ap(e,r,t);return}xp(e,r,t)}rr.read=Hb;function Ap(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Qi(t,n);return}let c=i.map(s=>({dirent:s,name:s.name,path:Sp.joinPathSegments(e,s.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){ra(t,c);return}let a=c.map(s=>qb(s,r));wp(a,(s,o)=>{if(s!==null){Qi(t,s);return}ra(t,o)})})}rr.readdirWithFileTypes=Ap;function qb(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=Ep.fs.createDirentFromStats(e.name,i),t(null,e)})}}function xp(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){Qi(t,n);return}let c=i.map(a=>{let s=Sp.joinPathSegments(e,a,r.pathSegmentSeparator);return o=>{jb.stat(s,r.fsStatSettings,(f,l)=>{if(f!==null){o(f);return}let h={name:a,path:s,dirent:Ep.fs.createDirentFromStats(a,l)};r.stats&&(h.stats=l),o(null,h)})}});wp(c,(a,s)=>{if(a!==null){Qi(t,a);return}ra(t,s)})})}rr.readdir=xp;function Qi(e,r){e(r)}function ra(e,r){e(null,r)}});var Tp=ve(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var Gb=xr(),Ub=Qo(),Cp=ea(),Dp=ta();function zb(e,r){return!r.stats&&Ub.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Rp(e,r):Op(e,r)}nr.read=zb;function Rp(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Dp.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(i.path);i.dirent=Cp.fs.createDirentFromStats(i.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return i})}nr.readdirWithFileTypes=Rp;function Op(e,r){return r.fs.readdirSync(e).map(n=>{let i=Dp.joinPathSegments(e,n,r.pathSegmentSeparator),c=Gb.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:Cp.fs.createDirentFromStats(n,c)};return r.stats&&(a.stats=c),a})}nr.readdir=Op});var Fp=ve(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.createFileSystemAdapter=ir.FILE_SYSTEM_ADAPTER=void 0;var Qr=require("fs");ir.FILE_SYSTEM_ADAPTER={lstat:Qr.lstat,stat:Qr.stat,lstatSync:Qr.lstatSync,statSync:Qr.statSync,readdir:Qr.readdir,readdirSync:Qr.readdirSync};function Wb(e){return e===void 0?ir.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ir.FILE_SYSTEM_ADAPTER),e)}ir.createFileSystemAdapter=Wb});var Pp=ve(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var Vb=require("path"),Kb=xr(),Yb=Fp(),na=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Yb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Vb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Kb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};ia.default=na});var Ji=ve(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.Settings=sr.scandirSync=sr.scandir=void 0;var Bp=kp(),Xb=Tp(),sa=Pp();sr.Settings=sa.default;function Zb(e,r,t){if(typeof r=="function"){Bp.read(e,oa(),r);return}Bp.read(e,oa(r),t)}sr.scandir=Zb;function Qb(e,r){let t=oa(r);return Xb.read(e,t)}sr.scandirSync=Qb;function oa(e={}){return e instanceof sa.default?e:new sa.default(e)}});var Ip=ve((wI,Lp)=>{"use strict";function Jb(e){var r=new e,t=r;function n(){var c=r;return c.next?r=c.next:(r=new e,t=r),c.next=null,c}function i(c){t.next=c,t=c}return{get:n,release:i}}Lp.exports=Jb});var Np=ve((EI,aa)=>{"use strict";var ev=Ip();function Mp(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=ev(tv),i=null,c=null,a=0,s=null,o={push:y,drain:St,saturated:St,pause:l,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:St,kill:g,killAndDrain:S,error:E};return o;function f(){return a}function l(){o.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(o.paused){o.paused=!1;for(var v=0;v<o.concurrency;v++)a++,_()}}function p(){return a===0&&o.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||St,w.errorHandler=s,a===o.concurrency||o.paused?c?(c.next=w,c=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||St,a===o.concurrency||o.paused?i?(w.next=i,i=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?o.paused?a--:(c===i&&(c=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),c===null&&o.empty()):--a===0&&o.drain()}function g(){i=null,c=null,o.drain=St}function S(){i=null,c=null,o.drain(),o.drain=St}function E(v){s=v}}function St(){}function tv(){this.value=null,this.callback=St,this.next=null,this.release=St,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,c=e.errorHandler,a=e.value;e.value=null,e.callback=St,e.errorHandler&&c(t,a),i.call(e.context,t,n),e.release(e)}}function rv(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(l,h){r.call(this,l).then(function(u){h(null,u)},h)}var i=Mp(e,n,t),c=i.push,a=i.unshift;return i.push=s,i.unshift=o,i.drained=f,i;function s(l){var h=new Promise(function(u,d){c(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(St),h}function o(l){var h=new Promise(function(u,d){a(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(St),h}function f(){var l=i.drain,h=new Promise(function(u){i.drain=function(){l(),u()}});return h}}aa.exports=Mp;aa.exports.promise=rv});var es=ve(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.joinPathSegments=Tt.replacePathSegmentSeparator=Tt.isAppliedFilter=Tt.isFatalError=void 0;function nv(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Tt.isFatalError=nv;function iv(e,r){return e===null||e(r)}Tt.isAppliedFilter=iv;function sv(e,r){return e.split(/[/\\]/).join(r)}Tt.replacePathSegmentSeparator=sv;function ov(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Tt.joinPathSegments=ov});var ca=ve(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var av=es(),ua=class{constructor(r,t){this._root=r,this._settings=t,this._root=av.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};la.default=ua});var pa=ve(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var uv=require("events"),lv=Ji(),cv=Np(),ts=es(),hv=ca(),ha=class extends hv.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=lv.scandir,this._emitter=new uv.EventEmitter,this._queue=cv(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(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let c of i)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!ts.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=ts.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),ts.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&ts.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};fa.default=ha});var jp=ve(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var fv=pa(),da=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new fv.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{pv(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{dv(r,this._storage)}),this._reader.read()}};ma.default=da;function pv(e,r){e(r)}function dv(e,r){e(null,r)}});var $p=ve(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var mv=require("stream"),yv=pa(),ya=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new yv.default(this._root,this._settings),this._stream=new mv.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ga.default=ya});var Hp=ve(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var gv=Ji(),rs=es(),bv=ca(),ba=class extends bv.default{constructor(){super(...arguments),this._scandir=gv.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(rs.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=rs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),rs.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&rs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};va.default=ba});var qp=ve(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var vv=Hp(),_a=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new vv.default(this._root,this._settings)}read(){return this._reader.read()}};wa.default=_a});var Gp=ve(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var _v=require("path"),wv=Ji(),Ea=class{constructor(r={}){this._options=r,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,_v.sep),this.fsScandirSettings=new wv.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};Sa.default=Ea});var is=ve(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Settings=Ft.walkStream=Ft.walkSync=Ft.walk=void 0;var Up=jp(),Ev=$p(),Sv=qp(),Aa=Gp();Ft.Settings=Aa.default;function Av(e,r,t){if(typeof r=="function"){new Up.default(e,ns()).read(r);return}new Up.default(e,ns(r)).read(t)}Ft.walk=Av;function xv(e,r){let t=ns(r);return new Sv.default(e,t).read()}Ft.walkSync=xv;function kv(e,r){let t=ns(r);return new Ev.default(e,t).read()}Ft.walkStream=kv;function ns(e={}){return e instanceof Aa.default?e:new Aa.default(e)}});var ss=ve(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Cv=require("path"),Dv=xr(),zp=Ut(),xa=class{constructor(r){this._settings=r,this._fsStatSettings=new Dv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return Cv.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:zp.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!zp.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};ka.default=xa});var Ra=ve(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Rv=require("stream"),Ov=xr(),Tv=is(),Fv=ss(),Ca=class extends Fv.default{constructor(){super(...arguments),this._walkStream=Tv.walkStream,this._stat=Ov.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new Rv.PassThrough({objectMode:!0});i._write=(c,a,s)=>this._getEntry(n[c],r[c],t).then(o=>{o!==null&&t.entryFilter(o)&&i.push(o),c===n.length-1&&i.end(),s()}).catch(s);for(let c=0;c<n.length;c++)i.write(c);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,c)=>i===null?t(c):n(i))})}};Da.default=Ca});var Wp=ve(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Pv=is(),Bv=ss(),Lv=Ra(),Oa=class extends Bv.default{constructor(){super(...arguments),this._walkAsync=Pv.walk,this._readerStream=new Lv.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(c,a)=>{c===null?n(a):i(c)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((c,a)=>{i.once("error",a),i.on("data",s=>n.push(s)),i.once("end",()=>c(n))})}};Ta.default=Oa});var Vp=ve(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Jr=Ut(),Fa=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=Jr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return Jr.pattern.getPatternParts(r,this._micromatchOptions).map(n=>Jr.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Jr.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return Jr.array.splitWhen(r,t=>t.dynamic&&Jr.pattern.hasGlobStar(t.pattern))}};Pa.default=Fa});var Kp=ve(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var Iv=Vp(),Ba=class extends Iv.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(c=>!c.complete||c.segments.length>n);for(let c of i){let a=c.sections[0];if(!c.complete&&n>a.length||t.every((o,f)=>{let l=c.segments[f];return!!(l.dynamic&&l.patternRe.test(o)||!l.dynamic&&l.pattern===o)}))return!0}return!1}};La.default=Ba});var Yp=ve(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var os=Ut(),Mv=Kp(),Ia=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),c=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,c)}_getMatcher(r){return new Mv.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(os.pattern.isAffectDepthOfReadingPattern);return os.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let c=os.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(c,n)?!1:this._isSkippedByNegativePatterns(c,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!os.pattern.matchAny(r,t)}};Ma.default=Ia});var Xp=ve(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var kr=Ut(),Na=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=kr.pattern.convertPatternsToRe(r,this._micromatchOptions),i=kr.pattern.convertPatternsToRe(t,this._micromatchOptions);return c=>this._filter(c,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,c=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,c)&&!this._isMatchToPatterns(r.path,n,c);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=kr.path.makeAbsolute(this._settings.cwd,r);return kr.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=kr.path.removeLeadingDotSegment(r),c=kr.pattern.matchAny(i,t);return!c&&n?kr.pattern.matchAny(i+"/",t):c}};ja.default=Na});var Zp=ve(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Nv=Ut(),$a=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return Nv.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};Ha.default=$a});var Jp=ve(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Qp=Ut(),qa=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=Qp.path.makeAbsolute(this._settings.cwd,t),t=Qp.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};Ga.default=qa});var as=ve(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var jv=require("path"),$v=Yp(),Hv=Xp(),qv=Zp(),Gv=Jp(),Ua=class{constructor(r){this._settings=r,this.errorFilter=new qv.default(this._settings),this.entryFilter=new Hv.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $v.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Gv.default(this._settings)}_getRootDirectory(r){return jv.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.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}}};za.default=Ua});var ed=ve(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var Uv=Wp(),zv=as(),Wa=class extends zv.default{constructor(){super(...arguments),this._reader=new Uv.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(c=>n.transform(c))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Va.default=Wa});var td=ve(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Wv=require("stream"),Vv=Ra(),Kv=as(),Ka=class extends Kv.default{constructor(){super(...arguments),this._reader=new Vv.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),c=new Wv.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>c.emit("error",a)).on("data",a=>c.emit("data",n.transform(a))).once("end",()=>c.emit("end")),c.once("close",()=>i.destroy()),c}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Ya.default=Ka});var rd=ve(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Yv=xr(),Xv=is(),Zv=ss(),Xa=class extends Zv.default{constructor(){super(...arguments),this._walkSync=Xv.walkSync,this._statSync=Yv.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let c=this._getFullEntryPath(i),a=this._getEntry(c,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Za.default=Xa});var nd=ve(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var Qv=rd(),Jv=as(),Qa=class extends Jv.default{constructor(){super(...arguments),this._reader=new Qv.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Ja.default=Qa});var id=ve(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var en=require("fs"),e_=require("os"),t_=Math.max(e_.cpus().length,1);tn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:en.lstat,lstatSync:en.lstatSync,stat:en.stat,statSync:en.statSync,readdir:en.readdir,readdirSync:en.readdirSync};var eu=class{constructor(r={}){this._options=r,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,t_),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(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},tn.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};tn.default=eu});var ud=ve((VI,ad)=>{"use strict";var sd=ip(),od=op(),r_=ed(),n_=td(),i_=nd(),tu=id(),Cr=Ut();async function ru(e,r){rn(e);let t=nu(e,r_.default,r),n=await Promise.all(t);return Cr.array.flatten(n)}(function(e){function r(a,s){rn(a);let o=nu(a,i_.default,s);return Cr.array.flatten(o)}e.sync=r;function t(a,s){rn(a);let o=nu(a,n_.default,s);return Cr.stream.merge(o)}e.stream=t;function n(a,s){rn(a);let o=od.transform([].concat(a)),f=new tu.default(s);return sd.generate(o,f)}e.generateTasks=n;function i(a,s){rn(a);let o=new tu.default(s);return Cr.pattern.isDynamicPattern(a,o)}e.isDynamicPattern=i;function c(a){return rn(a),Cr.path.escape(a)}e.escapePath=c})(ru||(ru={}));function nu(e,r,t){let n=od.transform([].concat(e)),i=new tu.default(t),c=sd.generate(n,i),a=new r(i);return c.map(a.read,a)}function rn(e){if(![].concat(e).every(n=>Cr.string.isString(n)&&!Cr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ad.exports=ru});var zL={};uy(zL,{default:()=>UL,transformer:()=>ry});module.exports=ly(zL);var J1=He(require("path")),ey=require("fs-extra");var q0=require("stream"),G0=require("util"),Fr=He(require("path"),1),at=require("fs-extra"),Zm=He(Pi(),1),Qm=He(require("path"),1),Jm=require("fs-extra"),e2=He(require("chalk"),1),Yt=He(require("path"),1),t2=He(Pi(),1),vt=require("fs-extra"),r2=He(ud(),1);function Ad(e){return typeof e=="undefined"||e===null}function s_(e){return typeof e=="object"&&e!==null}function o_(e){return Array.isArray(e)?e:Ad(e)?[]:[e]}function a_(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function u_(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function l_(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var c_=Ad,h_=s_,f_=o_,p_=u_,d_=l_,m_=a_,We={isNothing:c_,isObject:h_,toArray:f_,repeat:p_,isNegativeZero:d_,extend:m_};function xd(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
7
-
8
- `+e.mark.snippet),n+" "+t):n}function $n(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=xd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}$n.prototype=Object.create(Error.prototype);$n.prototype.constructor=$n;$n.prototype.toString=function(r){return this.name+": "+xd(this,r)};var ot=$n;function iu(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function su(e,r){return We.repeat(" ",r-e.length)+e}function y_(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=iu(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=We.repeat(" ",r.indent)+su((e.line-o+1).toString(),l)+" | "+f.str+`
9
- `+s;for(f=iu(e.buffer,n[a],i[a],e.position,h),s+=We.repeat(" ",r.indent)+su((e.line+1).toString(),l)+" | "+f.str+`
10
- `,s+=We.repeat("-",r.indent+l+3+f.pos)+`^
11
- `,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=iu(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=We.repeat(" ",r.indent)+su((e.line+o+1).toString(),l)+" | "+f.str+`
12
- `;return s.replace(/\n$/,"")}var g_=y_,b_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],v_=["scalar","sequence","mapping"];function __(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function w_(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(b_.indexOf(t)===-1)throw new ot('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=__(r.styleAliases||null),v_.indexOf(this.kind)===-1)throw new ot('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Xe=w_;function ld(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function E_(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function au(e){return this.extend(e)}au.prototype.extend=function(r){var t=[],n=[];if(r instanceof Xe)n.push(r);else if(Array.isArray(r))n=n.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(t=t.concat(r.implicit)),r.explicit&&(n=n.concat(r.explicit));else throw new ot("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(c){if(!(c instanceof Xe))throw new ot("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new ot("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new ot("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(c){if(!(c instanceof Xe))throw new ot("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(au.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=ld(i,"implicit"),i.compiledExplicit=ld(i,"explicit"),i.compiledTypeMap=E_(i.compiledImplicit,i.compiledExplicit),i};var kd=au,Cd=new Xe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Dd=new Xe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Rd=new Xe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Od=new kd({explicit:[Cd,Dd,Rd]});function S_(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function A_(){return null}function x_(e){return e===null}var Td=new Xe("tag:yaml.org,2002:null",{kind:"scalar",resolve:S_,construct:A_,predicate:x_,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function k_(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function C_(e){return e==="true"||e==="True"||e==="TRUE"}function D_(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Fd=new Xe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:k_,construct:C_,predicate:D_,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function R_(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function O_(e){return 48<=e&&e<=55}function T_(e){return 48<=e&&e<=57}function F_(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!R_(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!O_(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!T_(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function P_(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function B_(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!We.isNegativeZero(e)}var Pd=new Xe("tag:yaml.org,2002:int",{kind:"scalar",resolve:F_,construct:P_,predicate:B_,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),L_=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function I_(e){return!(e===null||!L_.test(e)||e[e.length-1]==="_")}function M_(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var N_=/^[-+]?[0-9]+e/;function j_(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(We.isNegativeZero(e))return"-0.0";return t=e.toString(10),N_.test(t)?t.replace("e",".e"):t}function $_(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||We.isNegativeZero(e))}var Bd=new Xe("tag:yaml.org,2002:float",{kind:"scalar",resolve:I_,construct:M_,predicate:$_,represent:j_,defaultStyle:"lowercase"}),Ld=Od.extend({implicit:[Td,Fd,Pd,Bd]}),Id=Ld,Md=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Nd=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 H_(e){return e===null?!1:Md.exec(e)!==null||Nd.exec(e)!==null}function q_(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=Md.exec(e),r===null&&(r=Nd.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function G_(e){return e.toISOString()}var jd=new Xe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:H_,construct:q_,instanceOf:Date,represent:G_});function U_(e){return e==="<<"||e===null}var $d=new Xe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:U_}),fu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
13
- \r`;function z_(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=fu;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function W_(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=fu,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function V_(e){var r="",t=0,n,i,c=e.length,a=fu;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function K_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Hd=new Xe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:z_,construct:W_,predicate:K_,represent:V_}),Y_=Object.prototype.hasOwnProperty,X_=Object.prototype.toString;function Z_(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,X_.call(i)!=="[object Object]")return!1;for(c in i)if(Y_.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Q_(e){return e!==null?e:[]}var qd=new Xe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Z_,construct:Q_}),J_=Object.prototype.toString;function ew(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],J_.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function tw(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var Gd=new Xe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ew,construct:tw}),rw=Object.prototype.hasOwnProperty;function nw(e){if(e===null)return!0;var r,t=e;for(r in t)if(rw.call(t,r)&&t[r]!==null)return!1;return!0}function iw(e){return e!==null?e:{}}var Ud=new Xe("tag:yaml.org,2002:set",{kind:"mapping",resolve:nw,construct:iw}),pu=Id.extend({implicit:[jd,$d],explicit:[Hd,qd,Gd,Ud]}),ar=Object.prototype.hasOwnProperty,us=1,zd=2,Wd=3,ls=4,ou=1,sw=2,cd=3,ow=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,aw=/[\x85\u2028\u2029]/,uw=/[,\[\]\{\}]/,Vd=/^(?:!|!!|![a-z\-]+!)$/i,Kd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hd(e){return Object.prototype.toString.call(e)}function Pt(e){return e===10||e===13}function Rr(e){return e===9||e===32}function lt(e){return e===9||e===32||e===10||e===13}function sn(e){return e===44||e===91||e===93||e===123||e===125}function lw(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function cw(e){return e===120?2:e===117?4:e===85?8:0}function hw(e){return 48<=e&&e<=57?e-48:-1}function fd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
14
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function fw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Yd=new Array(256),Xd=new Array(256);for(Dr=0;Dr<256;Dr++)Yd[Dr]=fd(Dr)?1:0,Xd[Dr]=fd(Dr);var Dr;function pw(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||pu,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Zd(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=g_(t),new ot(r,t)}function De(e,r){throw Zd(e,r)}function cs(e,r){e.onWarning&&e.onWarning.call(null,Zd(e,r))}var pd={YAML:function(r,t,n){var i,c,a;r.version!==null&&De(r,"duplication of %YAML directive"),n.length!==1&&De(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&De(r,"ill-formed argument of the YAML directive"),c=parseInt(i[1],10),a=parseInt(i[2],10),c!==1&&De(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=a<2,a!==1&&a!==2&&cs(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,c;n.length!==2&&De(r,"TAG directive accepts exactly two arguments"),i=n[0],c=n[1],Vd.test(i)||De(r,"ill-formed tag handle (first argument) of the TAG directive"),ar.call(r.tagMap,i)&&De(r,'there is a previously declared suffix for "'+i+'" tag handle'),Kd.test(c)||De(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{De(r,"tag prefix is malformed: "+c)}r.tagMap[i]=c}};function or(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||De(e,"expected valid JSON character");else ow.test(s)&&De(e,"the stream contains non-printable characters");e.result+=s}}function dd(e,r,t,n){var i,c,a,s;for(We.isObject(t)||De(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],ar.call(r,c)||(r[c]=t[c],n[c]=!0)}function on(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&De(e,"nested arrays are not supported inside keys"),typeof i=="object"&&hd(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&hd(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)dd(e,r,c[f],t);else dd(e,r,c,t);else!e.json&&!ar.call(t,i)&&ar.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,De(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function du(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):De(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ge(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Pt(i))for(du(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&cs(e,"deficient indentation"),n}function ps(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||lt(t)))}function mu(e,r){r===1?e.result+=" ":r>1&&(e.result+=We.repeat(`
15
- `,r-1))}function dw(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),lt(d)||sn(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)&&(i=e.input.charCodeAt(e.position+1),lt(i)||t&&sn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),lt(i)||t&&sn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),lt(n))break}else{if(e.position===e.lineStart&&ps(e)||t&&sn(d))break;if(Pt(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,Ge(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(or(e,c,a,!1),mu(e,e.line-o),c=a=e.position,s=!1),Rr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return or(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function mw(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(or(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Pt(t)?(or(e,n,i,!0),mu(e,Ge(e,!1,r)),n=i=e.position):e.position===e.lineStart&&ps(e)?De(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);De(e,"unexpected end of the stream within a single quoted scalar")}function yw(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return or(e,t,e.position,!0),e.position++,!0;if(s===92){if(or(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),Pt(s))Ge(e,!1,r);else if(s<256&&Yd[s])e.result+=Xd[s],e.position++;else if((a=cw(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=lw(s))>=0?c=(c<<4)+a:De(e,"expected hexadecimal character");e.result+=fw(c),e.position++}else De(e,"unknown escape sequence");t=n=e.position}else Pt(s)?(or(e,t,n,!0),mu(e,Ge(e,!1,r)),t=n=e.position):e.position===e.lineStart&&ps(e)?De(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}De(e,"unexpected end of the stream within a double quoted scalar")}function gw(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(Ge(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&De(e,"expected the node content, but found ','"):De(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),lt(f)&&(h=u=!0,e.position++,Ge(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,an(e,r,us,!1,!0),b=e.tag,y=e.result,Ge(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Ge(e,!0,r),an(e,r,us,!1,!0),_=e.result),d?on(e,s,p,b,y,_,n,i,c):h?s.push(on(e,null,p,b,y,_,n,i,c)):s.push(y),Ge(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}De(e,"unexpected end of the stream within a flow collection")}function bw(e,r){var t,n,i=ou,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)ou===i?i=h===43?cd:sw:De(e,"repeat of a chomping mode identifier");else if((l=hw(h))>=0)l===0?De(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?De(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Rr(h)){do h=e.input.charCodeAt(++e.position);while(Rr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Pt(h)&&h!==0)}for(;h!==0;){for(du(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Pt(h)){o++;continue}if(e.lineIndent<s){i===cd?e.result+=We.repeat(`
16
- `,c?1+o:o):i===ou&&c&&(e.result+=`
17
- `);break}for(n?Rr(h)?(f=!0,e.result+=We.repeat(`
18
- `,c?1+o:o)):f?(f=!1,e.result+=We.repeat(`
19
- `,o+1)):o===0?c&&(e.result+=" "):e.result+=We.repeat(`
20
- `,o):e.result+=We.repeat(`
21
- `,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!Pt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);or(e,t,e.position,!1)}return!0}function md(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!lt(a))));){if(s=!0,e.position++,Ge(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,an(e,r,Wd,!1,!0),c.push(e.result),Ge(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)De(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function vw(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&lt(n))g===63?(b&&(on(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):De(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!an(e,t,zd,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Rr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),lt(g)||De(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(on(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)De(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)De(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),an(e,r,ls,!0,i)&&(b?p=e.result:y=e.result),b||(on(e,h,u,d,p,y,a,s,o),d=p=y=null),Ge(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)De(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&on(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function _w(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&De(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):De(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!lt(a);)a===33&&(n?De(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Vd.test(i)||De(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),uw.test(c)&&De(e,"tag suffix cannot contain flow indicator characters")}c&&!Kd.test(c)&&De(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{De(e,"tag name is malformed: "+c)}return t?e.tag=c:ar.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:De(e,'undeclared tag handle "'+i+'"'),!0}function ww(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&De(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!lt(t)&&!sn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Ew(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!lt(n)&&!sn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),ar.call(e.anchorMap,t)||De(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ge(e,!0,-1),!0}function an(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=ls===t||Wd===t,n&&Ge(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;_w(e)||ww(e);)Ge(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||ls===t)&&(us===t||zd===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(md(e,b)||vw(e,b,y))||gw(e,y)?l=!0:(a&&bw(e,y)||mw(e,y)||yw(e,y)?l=!0:Ew(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&De(e,"alias node should not have any properties")):dw(e,y,us===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&md(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&De(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ar.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||De(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&De(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):De(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Sw(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ge(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!lt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&De(e,"directive name must not be less than one character in length");a!==0;){for(;Rr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pt(a));break}if(Pt(a))break;for(t=e.position;a!==0&&!lt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&du(e),ar.call(pd,n)?pd[n](e,n,i):cs(e,'unknown document directive "'+n+'"')}if(Ge(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ge(e,!0,-1)):c&&De(e,"directives end mark is expected"),an(e,e.lineIndent-1,ls,!1,!0),Ge(e,!0,-1),e.checkLineBreaks&&aw.test(e.input.slice(r,e.position))&&cs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ps(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ge(e,!0,-1));return}if(e.position<e.length-1)De(e,"end of the stream or a document separator is expected");else return}function Qd(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
22
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new pw(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,De(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)Sw(t);return t.documents}function Aw(e,r,t){r!==null&&typeof r=="object"&&typeof t=="undefined"&&(t=r,r=null);var n=Qd(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function xw(e,r){var t=Qd(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ot("expected a single document in the stream, but found more")}}var kw=Aw,Cw=xw,Jd={loadAll:kw,load:Cw},e0=Object.prototype.toString,t0=Object.prototype.hasOwnProperty,yu=65279,Dw=9,Hn=10,Rw=13,Ow=32,Tw=33,Fw=34,uu=35,Pw=37,Bw=38,Lw=39,Iw=42,r0=44,Mw=45,hs=58,Nw=61,jw=62,$w=63,Hw=64,n0=91,i0=93,qw=96,s0=123,Gw=124,o0=125,et={};et[0]="\\0";et[7]="\\a";et[8]="\\b";et[9]="\\t";et[10]="\\n";et[11]="\\v";et[12]="\\f";et[13]="\\r";et[27]="\\e";et[34]='\\"';et[92]="\\\\";et[133]="\\N";et[160]="\\_";et[8232]="\\L";et[8233]="\\P";var Uw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],zw=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ww(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&t0.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function Vw(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ot("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+We.repeat("0",n-r.length)+r}var Kw=1,qn=2;function Yw(e){this.schema=e.schema||pu,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=We.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ww(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?qn:Kw,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function yd(e,r){for(var t=We.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
23
- `,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
24
- `&&(c+=t),c+=a;return c}function lu(e,r){return`
25
- `+We.repeat(" ",e.indent*r)}function Xw(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function fs(e){return e===Ow||e===Dw}function Gn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yu||65536<=e&&e<=1114111}function gd(e){return Gn(e)&&e!==yu&&e!==Rw&&e!==Hn}function bd(e,r,t){var n=gd(e),i=n&&!fs(e);return(t?n:n&&e!==r0&&e!==n0&&e!==i0&&e!==s0&&e!==o0)&&e!==uu&&!(r===hs&&!i)||gd(r)&&!fs(r)&&e===uu||r===hs&&i}function Zw(e){return Gn(e)&&e!==yu&&!fs(e)&&e!==Mw&&e!==$w&&e!==hs&&e!==r0&&e!==n0&&e!==i0&&e!==s0&&e!==o0&&e!==uu&&e!==Bw&&e!==Iw&&e!==Tw&&e!==Gw&&e!==Nw&&e!==jw&&e!==Lw&&e!==Fw&&e!==Pw&&e!==Hw&&e!==qw}function Qw(e){return!fs(e)&&e!==hs}function jn(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function a0(e){var r=/^\n* /;return r.test(e)}var u0=1,cu=2,l0=3,c0=4,nn=5;function Jw(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=Zw(jn(e,0))&&Qw(jn(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=jn(e,o),!Gn(f))return nn;y=y&&bd(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=jn(e,o),f===Hn)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Gn(f))return nn;y=y&&bd(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?u0:c===qn?nn:cu:t>9&&a0(e)?nn:a?c===qn?nn:cu:u?c0:l0}function eE(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===qn?'""':"''";if(!e.noCompatMode&&(Uw.indexOf(r)!==-1||zw.test(r)))return e.quotingType===qn?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return Xw(e,f)}switch(Jw(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case u0:return r;case cu:return"'"+r.replace(/'/g,"''")+"'";case l0:return"|"+vd(r,e.indent)+_d(yd(r,c));case c0:return">"+vd(r,e.indent)+_d(yd(tE(r,a),c));case nn:return'"'+rE(r)+'"';default:throw new ot("impossible error: invalid scalar style")}}()}function vd(e,r){var t=a0(e)?String(r):"",n=e[e.length-1]===`
26
- `,i=n&&(e[e.length-2]===`
27
- `||e===`
28
- `),c=i?"+":n?"":"-";return t+c+`
29
- `}function _d(e){return e[e.length-1]===`
30
- `?e.slice(0,-1):e}function tE(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
31
- `);return f=f!==-1?f:e.length,t.lastIndex=f,wd(e.slice(0,f),r)}(),i=e[0]===`
32
- `||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
33
- `:"")+wd(o,r),i=c}return n}function wd(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
34
- `+e.slice(i,c),i=c+1),a=s;return o+=`
35
- `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
36
- `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function rE(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=jn(e,i),n=et[t],!n&&Gn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||Vw(t);return r}function nE(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Wt(e,r,s,!1,!1)||typeof s=="undefined"&&Wt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Ed(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Wt(e,r+1,o,!0,!0,!1,!0)||typeof o=="undefined"&&Wt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=lu(e,r)),e.dump&&Hn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function iE(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Wt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function sE(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ot("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=lu(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Wt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Hn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=lu(e,r)),Wt(e,r+1,l,!0,h)&&(e.dump&&Hn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function Sd(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,e0.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(t0.call(s.represent,o))n=s.represent[o](r,o);else throw new ot("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Wt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,Sd(e,t,!1)||Sd(e,t,!0);var s=e0.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(sE(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(iE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?Ed(e,r-1,e.dump,i):Ed(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(nE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&eE(e,e.dump,r,c,o);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ot("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function oE(e,r){var t=[],n=[],i,c;for(hu(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function hu(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)hu(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)hu(e[n[i]],r,t)}function aE(e,r){r=r||{};var t=new Yw(r);t.noRefs||oE(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Wt(t,0,n,!0,!0)?t.dump+`
37
- `:""}var uE=aE,lE={dump:uE};function gu(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var cE=Xe,hE=kd,fE=Od,pE=Ld,dE=Id,mE=pu,yE=Jd.load,gE=Jd.loadAll,bE=lE.dump,vE=ot,_E={binary:Hd,float:Bd,map:Rd,null:Td,pairs:Gd,set:Ud,timestamp:jd,bool:Fd,int:Pd,merge:$d,omap:qd,seq:Dd,str:Cd},wE=gu("safeLoad","load"),EE=gu("safeLoadAll","loadAll"),SE=gu("safeDump","dump"),AE={Type:cE,Schema:hE,FAILSAFE_SCHEMA:fE,JSON_SCHEMA:pE,CORE_SCHEMA:dE,DEFAULT_SCHEMA:mE,load:yE,loadAll:gE,dump:bE,YAMLException:vE,types:_E,safeLoad:wE,safeLoadAll:EE,safeDump:SE},h0=AE;var Xn=He(require("path"),1),Lt=require("fs-extra"),mn=He(require("path"),1),It=require("fs-extra"),Zn=He(require("path"),1),Mt=require("fs-extra"),mO=He(require("chalk"),1),yO=He(require("gradient-string"),1),gO=He(Pi(),1),bO=He(require("ora"),1),vO=require("semver"),_O=He(require("chalk"),1),un=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),xE=Object.create,Du=Object.defineProperty,kE=Object.getOwnPropertyDescriptor,CE=Object.getOwnPropertyNames,DE=Object.getPrototypeOf,RE=Object.prototype.hasOwnProperty,ce=(e=>typeof un<"u"?un:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof un<"u"?un:r)[t]}):e)(function(e){if(typeof un<"u")return un.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),OE=(e,r)=>()=>(e&&(r=e(e=0)),r),re=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),TE=(e,r)=>{for(var t in r)Du(e,t,{get:r[t],enumerable:!0})},FE=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of CE(r))!RE.call(e,i)&&i!==t&&Du(e,i,{get:()=>r[i],enumerable:!(n=kE(r,i))||n.enumerable});return e},Ze=(e,r,t)=>(t=e!=null?xE(DE(e)):{},FE(r||!e||!e.__esModule?Du(t,"default",{value:e,enumerable:!0}):t,e)),Q=OE(()=>{}),PE=re((e,r)=>{"use strict";Q();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),R0=re((e,r)=>{"use strict";Q();var t=PE(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),BE=re((e,r)=>{Q(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),O0=re((e,r)=>{Q();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=ce("assert"),c=BE(),a=/^win/i.test(t.platform),s=ce("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_}),LE=re((e,r)=>{Q(),r.exports=c,c.sync=a;var t=ce("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),IE=re((e,r)=>{Q(),r.exports=n,n.sync=i;var t=ce("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),ME=re((e,r)=>{Q();var t=ce("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=LE():n=IE(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),NE=re((e,r)=>{Q();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ce("path"),i=t?";":":",c=ME(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,C)=>{if(!x&&C)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),T0=re((e,r)=>{"use strict";Q();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),jE=re((e,r)=>{"use strict";Q();var t=ce("path"),n=NE(),i=T0();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),$E=re((e,r)=>{"use strict";Q();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),HE=re((e,r)=>{"use strict";Q(),r.exports=/^#!(.*)/}),qE=re((e,r)=>{"use strict";Q();var t=HE();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),GE=re((e,r)=>{"use strict";Q();var t=ce("fs"),n=qE();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),UE=re((e,r)=>{"use strict";Q();var t=ce("path"),n=jE(),i=$E(),c=GE(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),zE=re((e,r)=>{"use strict";Q();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),WE=re((e,r)=>{"use strict";Q();var t=ce("child_process"),n=UE(),i=zE();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),VE=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n=typeof t=="string"?`
38
- `:`
39
- `.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),KE=re((e,r)=>{"use strict";Q();var t=ce("path"),n=T0(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),YE=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),F0=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),XE=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=ce("os"),t=YE(),n=F0(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),ZE=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=ce("os"),t=XE(),n=F0(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),QE=re((e,r)=>{"use strict";Q();var{signalsByName:t}=ZE(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
40
- ${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
41
- `);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),JE=re((e,r)=>{"use strict";Q();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),eS=re((e,r)=>{"use strict";Q();var t=ce("os"),n=O0(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),tS=re((e,r)=>{"use strict";Q();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),rS=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),nS=re((e,r)=>{"use strict";Q();var{constants:t}=ce("buffer"),n=ce("stream"),{promisify:i}=ce("util"),c=rS(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),iS=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),sS=re((e,r)=>{"use strict";Q();var t=tS(),n=nS(),i=iS(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),oS=re((e,r)=>{"use strict";Q();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),aS=re((e,r)=>{"use strict";Q();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),uS=re((e,r)=>{"use strict";Q();var t=ce("path"),n=ce("child_process"),i=WE(),c=VE(),a=KE(),s=R0(),o=QE(),f=JE(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=eS(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=sS(),{mergePromise:S,getSpawnedPromise:E}=oS(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=aS(),A=1e3*1e3*100,x=({env:D,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...D}:D;return P?a.env({env:H,cwd:I,execPath:B}):H},C=(D,O,P={})=>{let I=i._parse(D,O,P);return D=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(D,".exe")==="cmd"&&O.unshift("/q"),{file:D,args:O,options:P,parsed:I}},F=(D,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":D.stripFinalNewline?c(O):O,T=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let J=E(G),L=u(G,I.options,J),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:W},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let z=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:W,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return z;throw z}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let J=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:J,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:J,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(D,O)=>{let[P,...I]=m(D);return T(P,I,O)},r.exports.commandSync=(D,O)=>{let[P,...I]=m(D);return T.sync(P,I,O)},r.exports.node=(D,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(J=>!J.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,D,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});Q();var YI=Ze(uS());var lS=re((e,r)=>{"use strict";Q();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),cS=re((e,r)=>{"use strict";Q(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),P0=re((e,r)=>{Q();var t=cS(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),hS=re((e,r)=>{Q();var t=P0();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),fS=re((e,r)=>{Q();var t=P0(),n=hS(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),pS=re((e,r)=>{"use strict";Q();var t=fS(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),dS=re((e,r)=>{"use strict";Q(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),mS=re((e,r)=>{"use strict";Q();var t=ce("os"),n=dS(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),yS=re((e,r)=>{"use strict";Q();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
42
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Ss=re((e,r)=>{"use strict";Q();var t=lS(),n=pS(),i=mS().stdout,c=yS(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports}),gS=re((e,r)=>{"use strict";Q(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),B0=re((e,r)=>{Q();var t=gS(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),bS=re((e,r)=>{Q();var t=B0();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),vS=re((e,r)=>{Q();var t=B0(),n=bS(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),L0=re((e,r)=>{"use strict";Q();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=vS());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),_S=re((e,r)=>{"use strict";Q(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),I0=re((e,r)=>{"use strict";Q();var t=ce("os"),n=ce("tty"),i=_S(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),wS=re((e,r)=>{"use strict";Q();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
43
- `:`
44
- `)+a,o=s+1,s=i.indexOf(`
45
- `,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),ES=re((e,r)=>{"use strict";Q();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
46
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),SS=re((e,r)=>{"use strict";Q();var t=L0(),{stdout:n,stderr:i}=I0(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=wS(),s=["ansi","ansi","ansi256","ansi16m"],o=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},l=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=l,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))o[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};o.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)o[v]={get(){let{level:m}=this;return function(...w){let A=y(t.color[s[m]][v](...w),t.color.close,this._styler);return b(this,A,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);o[m]={get(){let{level:w}=this;return function(...A){let x=y(t.bgColor[s[w]][v](...A),t.bgColor.close,this._styler);return b(this,x,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...o,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let A,x;return w===void 0?(A=v,x=m):(A=w.openAll+v,x=m+w.closeAll),{open:v,close:m,openAll:A,closeAll:x,parent:w}},b=(v,m,w)=>{let A=(...x)=>_(A,x.length===1?""+x[0]:x.join(" "));return A.__proto__=p,A._generator=v,A._styler=m,A._isEmpty=w,A},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:A,closeAll:x}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=c(m,w.close,w.open),w=w.parent;let C=m.indexOf(`
47
- `);return C!==-1&&(m=a(m,x,A,C)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let C=1;C<w.length;C++)x.push(String(A[C-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[C]));return g===void 0&&(g=ES()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),AS=re((e,r)=>{"use strict";Q();var t=R0(),n=O0();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),xS=re(e=>{"use strict";Q();var r=AS(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),kS=re((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),CS=re((e,r)=>{"use strict";Q();var t=Object.assign({},kS()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),DS=re((e,r)=>{"use strict";Q();var t=Ss(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),RS=re((e,r)=>{"use strict";Q(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),OS=re((e,r)=>{"use strict";Q();var t=RS();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),TS=re((e,r)=>{Q();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),FS=re((e,r)=>{Q();var t=TS();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),PS=re((e,r)=>{Q(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),BS=re((e,r)=>{"use strict";Q();var t=FS(),n=PS(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),LS=re((e,r)=>{"use strict";Q(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),IS=re((e,r)=>{Q();var t=ce("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),MS=re((e,r)=>{"use strict";Q();var t=ce("readline"),n=SS(),i=xS(),c=CS(),a=DS(),s=OS(),o=BS(),f=LS(),l=IS(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
48
- `).reduce((E,v)=>E+Math.max(1,Math.ceil(o(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
49
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
50
- `),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),NS=re((e,r)=>{"use strict";Q();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
51
- `:`
52
- `)+a,o=s+1,s=i.indexOf(`
53
- `,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),jS=re((e,r)=>{"use strict";Q();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
54
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),$S=re((e,r)=>{"use strict";Q();var t=L0(),{stdout:n,stderr:i}=I0(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=NS(),{isArray:s}=Array,o=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),l=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let A=n?n.level:0;m.level=w.level===void 0?A:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return l(w,m),w.template=(...A)=>E(w.template,...A),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let A=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:A}),A}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...A){let x=b(t.color[o[w]][m](...A),t.color.close,this._styler);return _(this,x,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:A}=this;return function(...x){let C=b(t.bgColor[o[A]][m](...x),t.bgColor.close,this._styler);return _(this,C,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,A)=>{let x,C;return A===void 0?(x=m,C=w):(x=A.openAll+m,C=w+A.closeAll),{open:m,close:w,openAll:x,closeAll:C,parent:A}},_=(m,w,A)=>{let x=(...C)=>s(C[0])&&s(C[0].raw)?g(x,E(x,...C)):g(x,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(x,y),x._generator=m,x._styler=w,x._isEmpty=A,x},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let A=m._styler;if(A===void 0)return w;let{openAll:x,closeAll:C}=A;if(w.indexOf("\x1B")!==-1)for(;A!==void 0;)w=c(w,A.close,A.open),A=A.parent;let F=w.indexOf(`
55
- `);return F!==-1&&(w=a(w,C,x,F)),x+w+C},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),C=[A.raw[0]];for(let F=1;F<A.length;F++)C.push(String(x[F-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[F]));return S===void 0&&(S=jS()),S(m,C.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),HS=re((e,r)=>{Q(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,z){if(j=j||"",z=z||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,z);var k=h(j);this._originalInput=j,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=z.format||k.format,this._gradientType=z.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=k.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),z,k,U,X,ne,me;return z=j.r/255,k=j.g/255,U=j.b/255,z<=.03928?X=z/12.92:X=t.pow((z+.055)/1.055,2.4),k<=.03928?ne=k/12.92:ne=t.pow((k+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=t.pow((U+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=J(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.v*100);return this._a==1?"hsv("+z+", "+k+"%, "+U+"%)":"hsva("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.l*100);return this._a==1?"hsl("+z+", "+k+"%, "+U+"%)":"hsla("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(L(this._r,255)*100)+"%",g:a(L(this._g,255)*100)+"%",b:a(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%)":"rgba("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var z="#"+S(this._r,this._g,this._b,this._a),k=z,U=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);k="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+U+"startColorstr="+z+",endColorstr="+k+")"},toString:function(j){var z=!!j;j=j||this._format;var k=!1,U=this._a<1&&this._a>=0,X=!z&&U&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(k=this.toRgbString()),j==="prgb"&&(k=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(k=this.toHexString()),j==="hex3"&&(k=this.toHexString(!0)),j==="hex4"&&(k=this.toHex8String(!0)),j==="hex8"&&(k=this.toHex8String()),j==="name"&&(k=this.toName()),j==="hsl"&&(k=this.toHslString()),j==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,z){var k=j.apply(null,[this].concat([].slice.call(z)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(j,z){return j.apply(null,[this].concat([].slice.call(z)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},l.fromRatio=function(j,z){if(typeof j=="object"){var k={};for(var U in j)j.hasOwnProperty(U)&&(U==="a"?k[U]=j[U]:k[U]=N(j[U]));j=k}return l(j,z)};function h(j){var z={r:0,g:0,b:0},k=1,U=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(z=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(U=N(j.s),X=N(j.v),z=b(j.h,U,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(U=N(j.s),ne=N(j.l),z=p(j.h,U,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(k=j.a)),k=J(k),{ok:me,format:j.format||se,r:s(255,o(z.r,0)),g:s(255,o(z.g,0)),b:s(255,o(z.b,0)),a:k}}function u(j,z,k){return{r:L(j,255)*255,g:L(z,255)*255,b:L(k,255)*255}}function d(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=(U+X)/2;if(U==X)ne=me=0;else{var fe=U-X;switch(me=se>.5?fe/(2-U-X):fe/(U+X),U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,z,k){var U,X,ne;j=L(j,360),z=L(z,100),k=L(k,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(z===0)U=X=ne=k;else{var se=k<.5?k*(1+z):k+z-k*z,fe=2*k-se;U=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:U*255,g:X*255,b:ne*255}}function y(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=U,fe=U-X;if(me=U===0?0:fe/U,U==X)ne=0;else{switch(U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,z,k){j=L(j,360)*6,z=L(z,100),k=L(k,100);var U=t.floor(j),X=j-U,ne=k*(1-z),me=k*(1-X*z),se=k*(1-(1-X)*z),fe=U%6,ie=[k,me,ne,ne,se,k][fe],ye=[se,k,k,me,ne,ne][fe],we=[ne,ne,se,k,k,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,z,k,U){var X=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return U&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,z,k,U,X){var ne=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16)),Z(W(U))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,z,k,U){var X=[Z(W(U)),Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return X.join("")}l.equals=function(j,z){return!j||!z?!1:l(j).toRgbString()==l(z).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s-=z/100,k.s=M(k.s),l(k)}function v(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s+=z/100,k.s=M(k.s),l(k)}function m(j){return l(j).desaturate(100)}function w(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l+=z/100,k.l=M(k.l),l(k)}function A(j,z){z=z===0?0:z||10;var k=l(j).toRgb();return k.r=o(0,s(255,k.r-a(255*-(z/100)))),k.g=o(0,s(255,k.g-a(255*-(z/100)))),k.b=o(0,s(255,k.b-a(255*-(z/100)))),l(k)}function x(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l-=z/100,k.l=M(k.l),l(k)}function C(j,z){var k=l(j).toHsl(),U=(k.h+z)%360;return k.h=U<0?360+U:U,l(k)}function F(j){var z=l(j).toHsl();return z.h=(z.h+180)%360,l(z)}function T(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+120)%360,s:z.s,l:z.l}),l({h:(k+240)%360,s:z.s,l:z.l})]}function D(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+90)%360,s:z.s,l:z.l}),l({h:(k+180)%360,s:z.s,l:z.l}),l({h:(k+270)%360,s:z.s,l:z.l})]}function O(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+72)%360,s:z.s,l:z.l}),l({h:(k+216)%360,s:z.s,l:z.l})]}function P(j,z,k){z=z||6,k=k||30;var U=l(j).toHsl(),X=360/k,ne=[l(j)];for(U.h=(U.h-(X*z>>1)+720)%360;--z;)U.h=(U.h+X)%360,ne.push(l(U));return ne}function I(j,z){z=z||6;for(var k=l(j).toHsv(),U=k.h,X=k.s,ne=k.v,me=[],se=1/z;z--;)me.push(l({h:U,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,z,k){k=k===0?0:k||50;var U=l(j).toRgb(),X=l(z).toRgb(),ne=k/100,me={r:(X.r-U.r)*ne+U.r,g:(X.g-U.g)*ne+U.g,b:(X.b-U.b)*ne+U.b,a:(X.a-U.a)*ne+U.a};return l(me)},l.readability=function(j,z){var k=l(j),U=l(z);return(t.max(k.getLuminance(),U.getLuminance())+.05)/(t.min(k.getLuminance(),U.getLuminance())+.05)},l.isReadable=function(j,z,k){var U=l.readability(j,z),X,ne;switch(ne=!1,X=pe(k),X.level+X.size){case"AAsmall":case"AAAlarge":ne=U>=4.5;break;case"AAlarge":ne=U>=3;break;case"AAAsmall":ne=U>=7;break}return ne},l.mostReadable=function(j,z,k){var U=null,X=0,ne,me,se,fe;k=k||{},me=k.includeFallbackColors,se=k.level,fe=k.size;for(var ie=0;ie<z.length;ie++)ne=l.readability(j,z[ie]),ne>X&&(X=ne,U=l(z[ie]));return l.isReadable(j,U,{level:se,size:fe})||!me?U:(k.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],k))};var B=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=G(B);function G(j){var z={};for(var k in j)j.hasOwnProperty(k)&&(z[j[k]]=k);return z}function J(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function L(j,z){K(j)&&(j="100%");var k=q(j);return j=s(z,o(0,parseFloat(j))),k&&(j=parseInt(j*z,10)/100),t.abs(j-z)<1e-6?1:j%z/parseFloat(z)}function M(j){return s(1,o(0,j))}function R(j){return parseInt(j,16)}function K(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function q(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Z(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function ee(j){return R(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",z="[-\\+]?\\d*\\.\\d+%?",k="(?:"+z+")|(?:"+j+")",U="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",X="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var z=!1;if(B[j])j=B[j],z=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=ae.rgb.exec(j))?{r:k[1],g:k[2],b:k[3]}:(k=ae.rgba.exec(j))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=ae.hsl.exec(j))?{h:k[1],s:k[2],l:k[3]}:(k=ae.hsla.exec(j))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=ae.hsv.exec(j))?{h:k[1],s:k[2],v:k[3]}:(k=ae.hsva.exec(j))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=ae.hex8.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),a:ee(k[4]),format:z?"name":"hex8"}:(k=ae.hex6.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),format:z?"name":"hex"}:(k=ae.hex4.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),a:ee(k[4]+""+k[4]),format:z?"name":"hex8"}:(k=ae.hex3.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),format:z?"name":"hex"}:!1}function pe(j){var z,k;return j=j||{level:"AA",size:"small"},z=(j.level||"AA").toUpperCase(),k=(j.size||"small").toLowerCase(),z!=="AA"&&z!=="AAA"&&(z="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:z,size:k}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),qS=re((e,r)=>{Q();var t=HS(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),GS=re((e,r)=>{"use strict";Q();var t=$S(),n=qS(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
56
- `),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
57
- `)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),US={};TE(US,{bold:()=>ZS,dimmed:()=>QS,error:()=>tA,info:()=>XS,item:()=>JS,log:()=>Jn,turboBlue:()=>fn,turboGradient:()=>KS,turboLoader:()=>YS,turboRed:()=>j0,warn:()=>eA,yellow:()=>$0});Q();var Qn=Ze(Ss()),zS=Ze(MS()),WS=Ze(GS()),M0="#0099F7",N0="#F11712",VS="#FFFF00",KS=(0,WS.default)(M0,N0),fn=Qn.default.hex(M0),j0=Qn.default.hex(N0),$0=Qn.default.hex(VS),YS=e=>(0,zS.default)({text:e,spinner:{frames:[" ",fn("> "),fn(">> "),fn(">>>")]}}),XS=(...e)=>{Jn(fn.bold(">>>"),...e)},ZS=(...e)=>{Jn(Qn.default.bold(...e))},QS=(...e)=>{Jn(Qn.default.dim(...e))},JS=(...e)=>{Jn(fn.bold(" \u2022"),...e)},Jn=(...e)=>{console.log(...e)},eA=(...e)=>{console.error($0.bold(">>>"),...e)},tA=(...e)=>{console.error(j0.bold(">>>"),...e)};Q();var rA=re((e,r)=>{Q();var t=ce("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(F,T){F&&F.code==="ENOENT"?g(E,v,x):m(C)})},A),A<100&&(A+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var C;if(x&&typeof x=="function"){var F=0;C=function(T,D,O){if(T&&T.code==="EAGAIN"&&F<10)return F++,g.call(o,E,v,m,w,A,C);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(C){m&&m(x||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),nA=re((e,r)=>{Q();var t=ce("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),iA=re((e,r)=>{"use strict";Q(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),Me=re((e,r)=>{Q();var t=ce("fs"),n=rA(),i=nA(),c=iA(),a=ce("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
58
- GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),ce("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=R,g.createWriteStream=K;var S=g.readFile;g.readFile=E;function E(N,W,ee){return typeof W=="function"&&(ee=W,W=null),ae(N,W,ee);function ae(oe,de,pe,j){return S(oe,de,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([ae,[oe,de,pe],z,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return v(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return w(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=C);function C(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=0),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return x(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var F=g.readdir;g.readdir=D;var T=/^v[0-5]\./;function D(N,W,ee){typeof W=="function"&&(ee=W,W=null);var ae=T.test(process.version)?function(de,pe,j,z){return F(de,oe(de,pe,j,z))}:function(de,pe,j,z){return F(de,pe,oe(de,pe,j,z))};return ae(N,W,ee);function oe(de,pe,j,z){return function(k,U){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([ae,[de,pe,j],k,z||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof j=="function"&&j.call(this,k,U))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);G=O.ReadStream,L=O.WriteStream}var P=g.ReadStream;P&&(G.prototype=Object.create(P.prototype),G.prototype.open=J);var I=g.WriteStream;I&&(L.prototype=Object.create(I.prototype),L.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return L},set:function(N){L=N},enumerable:!0,configurable:!0});var B=G;Object.defineProperty(g,"FileReadStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var H=L;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function G(N,W){return this instanceof G?(P.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function J(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee),N.read())})}function L(N,W){return this instanceof L?(I.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function M(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee))})}function R(N,W){return new g.ReadStream(N,W)}function K(N,W){return new g.WriteStream(N,W)}var q=g.open;g.open=Z;function Z(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return q(de,pe,j,function(U,X){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,C=Math.max(w-m,1),F=Math.min(C*1.2,100);x>=F?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}}),gt=re(e=>{"use strict";Q(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),gn=re(e=>{"use strict";Q();var r=gt().fromCallback,t=Me(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),sA=re((e,r)=>{"use strict";Q();var t=ce("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),oA=re((e,r)=>{"use strict";Q();var t=gn(),{checkPath:n}=sA(),i=c=>typeof c=="number"?c:{mode:511,...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),Nt=re((e,r)=>{"use strict";Q();var t=gt().fromPromise,{makeDir:n,makeDirSync:i}=oA(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Br=re((e,r)=>{"use strict";Q();var t=gt().fromPromise,n=gn();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),H0=re((e,r)=>{"use strict";Q();var t=Me();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),bn=re((e,r)=>{"use strict";Q();var t=gn(),n=ce("path"),i=ce("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),aA=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=Nt().mkdirs,c=Br().pathExists,a=H0().utimesMillis,s=bn();function o(T,D,O,P){typeof O=="function"&&!P?(P=O,O={}):typeof O=="function"&&(O={filter:O}),P=P||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
59
-
60
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(T,D,"copy",O,(I,B)=>{if(I)return P(I);let{srcStat:H,destStat:G}=B;s.checkParentPaths(T,H,D,"copy",J=>{if(J)return P(J);l(T,D,O,(L,M)=>{if(L)return P(L);if(!M)return P();f(G,T,D,O,P)})})})}function f(T,D,O,P,I){let B=n.dirname(O);c(B,(H,G)=>{if(H)return I(H);if(G)return h(T,D,O,P,I);i(B,J=>J?I(J):h(T,D,O,P,I))})}function l(T,D,O,P){if(!O.filter)return P(null,!0);Promise.resolve(O.filter(T,D)).then(I=>P(null,I),I=>P(I))}function h(T,D,O,P,I){(P.dereference?t.stat:t.lstat)(D,(B,H)=>B?I(B):H.isDirectory()?v(H,T,D,O,P,I):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,T,D,O,P,I):H.isSymbolicLink()?C(T,D,O,P,I):H.isSocket()?I(new Error(`Cannot copy a socket file: ${D}`)):H.isFIFO()?I(new Error(`Cannot copy a FIFO pipe: ${D}`)):I(new Error(`Unknown file: ${D}`)))}function u(T,D,O,P,I,B){return D?d(T,O,P,I,B):p(T,O,P,I,B)}function d(T,D,O,P,I){if(P.overwrite)t.unlink(O,B=>B?I(B):p(T,D,O,P,I));else return P.errorOnExist?I(new Error(`'${O}' already exists`)):I()}function p(T,D,O,P,I){t.copyFile(D,O,B=>B?I(B):P.preserveTimestamps?y(T.mode,D,O,I):S(O,T.mode,I))}function y(T,D,O,P){return b(T)?_(O,T,I=>I?P(I):g(T,D,O,P)):g(T,D,O,P)}function b(T){return(T&128)===0}function _(T,D,O){return S(T,D|128,O)}function g(T,D,O,P){E(D,O,I=>I?P(I):S(O,T,P))}function S(T,D,O){return t.chmod(T,D,O)}function E(T,D,O){t.stat(T,(P,I)=>P?O(P):a(D,I.atime,I.mtime,O))}function v(T,D,O,P,I,B){return D?w(O,P,I,B):m(T.mode,O,P,I,B)}function m(T,D,O,P,I){t.mkdir(O,B=>{if(B)return I(B);w(D,O,P,H=>H?I(H):S(O,T,I))})}function w(T,D,O,P){t.readdir(T,(I,B)=>I?P(I):A(B,T,D,O,P))}function A(T,D,O,P,I){let B=T.pop();return B?x(T,B,D,O,P,I):I()}function x(T,D,O,P,I,B){let H=n.join(O,D),G=n.join(P,D);l(H,G,I,(J,L)=>{if(J)return B(J);if(!L)return A(T,O,P,I,B);s.checkPaths(H,G,"copy",I,(M,R)=>{if(M)return B(M);let{destStat:K}=R;h(K,H,G,I,q=>q?B(q):A(T,O,P,I,B))})})}function C(T,D,O,P,I){t.readlink(D,(B,H)=>{if(B)return I(B);if(P.dereference&&(H=n.resolve(process.cwd(),H)),T)t.readlink(O,(G,J)=>G?G.code==="EINVAL"||G.code==="UNKNOWN"?t.symlink(H,O,I):I(G):(P.dereference&&(J=n.resolve(process.cwd(),J)),s.isSrcSubdir(H,J)?I(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${J}'.`)):s.isSrcSubdir(J,H)?I(new Error(`Cannot overwrite '${J}' with '${H}'.`)):F(H,O,I)));else return t.symlink(H,O,I)})}function F(T,D,O){t.unlink(D,P=>P?O(P):t.symlink(T,D,O))}r.exports=o}),uA=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=Nt().mkdirsSync,c=H0().utimesMillisSync,a=bn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
61
-
62
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:C,destStat:F}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,C,A,"copy"),x.filter&&!x.filter(w,A))return;let T=n.dirname(A);return t.existsSync(T)||i(T),o(F,w,A,x)}function o(w,A,x,C){let F=(C.dereference?t.statSync:t.lstatSync)(A);if(F.isDirectory())return _(F,w,A,x,C);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return f(F,w,A,x,C);if(F.isSymbolicLink())return v(w,A,x,C);throw F.isSocket()?new Error(`Cannot copy a socket file: ${A}`):F.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,C,F){return A?l(w,x,C,F):h(w,x,C,F)}function l(w,A,x,C){if(C.overwrite)return t.unlinkSync(x),h(w,A,x,C);if(C.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,C){return t.copyFileSync(A,x),C.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,C,F){return A?S(x,C,F):g(w.mode,x,C,F)}function g(w,A,x,C){return t.mkdirSync(x),S(A,x,C),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(C=>E(C,w,A,x))}function E(w,A,x,C){let F=n.join(A,w),T=n.join(x,w);if(C.filter&&!C.filter(F,T))return;let{destStat:D}=a.checkPathsSync(F,T,"copy",C);return o(D,F,T,C)}function v(w,A,x,C){let F=t.readlinkSync(A);if(C.dereference&&(F=n.resolve(process.cwd(),F)),w){let T;try{T=t.readlinkSync(x)}catch(D){if(D.code==="EINVAL"||D.code==="UNKNOWN")return t.symlinkSync(F,x);throw D}if(C.dereference&&(T=n.resolve(process.cwd(),T)),a.isSrcSubdir(F,T))throw new Error(`Cannot copy '${F}' to a subdirectory of itself, '${T}'.`);if(a.isSrcSubdir(T,F))throw new Error(`Cannot overwrite '${T}' with '${F}'.`);return m(F,x)}else return t.symlinkSync(F,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),Ru=re((e,r)=>{"use strict";Q();var t=gt().fromCallback;r.exports={copy:t(aA()),copySync:uA()}}),As=re((e,r)=>{"use strict";Q();var t=Me(),n=gt().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),lA=re((e,r)=>{"use strict";Q();var t=gt().fromPromise,n=gn(),i=ce("path"),c=Nt(),a=As(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),cA=re((e,r)=>{"use strict";Q();var t=gt().fromCallback,n=ce("path"),i=Me(),c=Nt();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),hA=re((e,r)=>{"use strict";Q();var t=gt().fromCallback,n=ce("path"),i=Me(),c=Nt(),a=Br().pathExists,{areIdentical:s}=bn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),fA=re((e,r)=>{"use strict";Q();var t=ce("path"),n=Me(),i=Br().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),pA=re((e,r)=>{"use strict";Q();var t=Me();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),dA=re((e,r)=>{"use strict";Q();var t=gt().fromCallback,n=ce("path"),i=gn(),c=Nt(),a=c.mkdirs,s=c.mkdirsSync,o=fA(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=pA(),u=h.symlinkType,d=h.symlinkTypeSync,p=Br().pathExists,{areIdentical:y}=bn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,C])=>{if(y(x,C))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,C)=>{if(x)return m(x);let F=n.dirname(E);p(F,(T,D)=>{if(T)return m(T);if(D)return i.symlink(S,E,C,m);a(F,O=>{if(O)return m(O);i.symlink(S,E,C,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),C=i.statSync(E);if(y(x,C))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),mA=re((e,r)=>{"use strict";Q();var{createFile:t,createFileSync:n}=cA(),{createLink:i,createLinkSync:c}=hA(),{createSymlink:a,createSymlinkSync:s}=dA();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),Ou=re((e,r)=>{Q();function t(i,{EOL:c=`
63
- `,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),yA=re((e,r)=>{Q();var t;try{t=Me()}catch{t=ce("fs")}var n=gt(),{stringify:i,stripBom:c}=Ou();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),gA=re((e,r)=>{"use strict";Q();var t=yA();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),Tu=re((e,r)=>{"use strict";Q();var t=gt().fromCallback,n=Me(),i=ce("path"),c=Nt(),a=Br().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),bA=re((e,r)=>{"use strict";Q();var{stringify:t}=Ou(),{outputFile:n}=Tu();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),vA=re((e,r)=>{"use strict";Q();var{stringify:t}=Ou(),{outputFileSync:n}=Tu();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),_A=re((e,r)=>{"use strict";Q();var t=gt().fromPromise,n=gA();n.outputJson=t(bA()),n.outputJsonSync=vA(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),wA=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=Ru().copy,c=As().remove,a=Nt().mkdirp,s=Br().pathExists,o=bn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),EA=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=Ru().copySync,c=As().removeSync,a=Nt().mkdirpSync,s=bn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),SA=re((e,r)=>{"use strict";Q();var t=gt().fromCallback;r.exports={move:t(wA()),moveSync:EA()}}),xs=re((e,r)=>{"use strict";Q(),r.exports={...gn(),...Ru(),...lA(),...mA(),..._A(),...Nt(),...SA(),...Tu(),...Br(),...As()}});Q();var XI=Ze(xs());Q();var ZI=Ze(xs()),QI=Ze(Ss());Q();var ei=re((e,r)=>{"use strict";Q();var t=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"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),Fu=re((e,r)=>{"use strict";Q();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),C=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),D=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",J=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class U0 extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[C]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[C])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let W=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):J(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(q){if(this[C])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[C]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[C]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[C])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[C]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==C&&this[C])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[C])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let W=super.emit(q,Z,...N);return this[s](),W}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[D]()):this[D]())}[D](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(C,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,W=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",ee),Z({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(C,oe),this.once("error",W),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[C]?(q?this.emit("error",q):this.emit(C),this):(this[C]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(C),this)}static isStream(q){return!!q&&(q instanceof U0||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),AA=re((e,r)=>{Q();var t=ce("zlib").constants||{ZLIB_VERNUM:4736};r.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},t))}),z0=re((e,r)=>{"use strict";Q();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),C=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),D=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),J=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends J{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class W0 extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?D:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new J(this,R,K)),this[T]?D(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?D(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?D(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[C]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[C](){this[o]||(this[o]=!0,this.readable=!1,this[T]?D(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",W),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",W),this.pause(),K({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",W),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof W0||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),V0=re(e=>{"use strict";Q();var r=ce("assert"),t=ce("buffer").Buffer,n=ce("zlib"),i=e.constants=AA(),c=z0(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let J=this[d]._handle,L=J.close;J.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=J,J.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){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[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(J,L)=>{this.flush(J),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},C=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},D=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=C,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=D,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),ti=re((e,r)=>{Q();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),Pu=re((e,r)=>{"use strict";Q();var t=Fu(),n=ti(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.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=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),K0=re(e=>{"use strict";Q(),e.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"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),xA=re((e,r)=>{"use strict";Q();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),ri=re((e,r)=>{"use strict";Q();var t=K0(),n=ce("path").posix,i=xA(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,C){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[a]="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,A||0,x,C):w&&this.set(w)}decode(w,A,x,C){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](C,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,C=o(this.path||"",x),F=C[0],T=C[1];this.needPax=C[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let D=8*32;for(let O=A;O<A+148;O++)D+=w[O];for(let O=A+156;O<A+512;O++)D+=w[O];return this.cksum=D,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,C="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,C,!1];else{C=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(C)<=A?F=[x,C,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(C)<=A?F=[x.slice(0,100-1),C,!0]:(x=n.join(n.basename(C),x),C=n.dirname(C));while(C!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,C)=>C===null?!1:C>y[x]||C<0?(i.encode(C,w.slice(A,A+x)),!0):(_(w,A,x,C),!1),_=(w,A,x,C)=>w.write(g(C,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,C)=>C===null?!1:b(w,A,x,C.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,C)=>C===null?!1:(w.write(C+v,A,x,"utf8"),C.length!==Buffer.byteLength(C)||C.length>x);r.exports=s}),Bu=re((e,r)=>{"use strict";Q();var t=ri(),n=ce("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,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(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=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(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
64
- `,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
65
- `).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),ni=re((e,r)=>{Q(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),Lu=re((e,r)=>{"use strict";Q(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),Y0=re((e,r)=>{"use strict";Q();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),X0=re((e,r)=>{Q();var{isAbsolute:t,parse:n}=ce("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),kA=re((e,r)=>{"use strict";Q(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),Z0=re((e,r)=>{"use strict";Q();var t=Fu(),n=Bu(),i=ri(),c=ce("fs"),a=ce("path"),s=ti(),o=ni(),f=(M,R)=>R?(M=s(M).replace(/^\.(\/|$)/,""),o(R)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),C=Symbol("awaitDrain"),F=Symbol("ondrain"),T=Symbol("prefix"),D=Symbol("hadError"),O=Lu(),P=Y0(),I=X0(),B=kA(),H=O(class extends t{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||l,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=s(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?s(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 K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(R.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...R){return M==="error"&&(this[D]=!0),super.emit(M,...R)}[g](){c.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[S](R)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=L(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return B(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[x](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 n({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[T](this.path),linkpath:this.type==="Link"?this[T](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[b](),this.end()}[p](){c.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[y](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[w](R)})}[w](M){if(this.fd=M,this[D])return this[A]();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[_]()}[_](){let{fd:M,buf:R,offset:K,length:q,pos:Z}=this;c.read(M,R,K,q,Z,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let K=new Error("encountered unexpected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M>this.remain){let K=new Error("did not encounter expected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M===this.remain)for(let K=M;K<this.length&&M<this.blockRemain;K++)this.buf[K+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[F]():this[C](()=>this[F]())}[C](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[F](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](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[_]()}}),G=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:R,buf:K,offset:q,length:Z,pos:N}=this,W=c.readSync(R,K,q,Z,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[C](M){M()}[A](M){c.closeSync(this.fd),M()}},J=O(class extends t{constructor(M,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=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=s(M.path),this.mode=this[x](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:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](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}),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({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[T](this.path),linkpath:this.type==="Link"?this[T](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)}[T](M){return f(M,this.prefix)}[x](M){return B(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=G,H.Tar=J;var L=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),CA=re((e,r)=>{"use strict";Q(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),Q0=re((e,r)=>{"use strict";Q(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{CA()(t)}catch{}}),Iu=re((e,r)=>{"use strict";Q();var t=class{constructor(L,M){this.path=L||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=Fu(),i=V0(),c=Pu(),a=Z0(),s=a.Sync,o=a.Tar,f=Q0(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),C=Symbol("entry"),F=Symbol("entryOpt"),T=Symbol("writeEntryClass"),D=Symbol("write"),O=Symbol("ondrain"),P=ce("fs"),I=ce("path"),B=Lu(),H=ti(),G=B(class extends n{constructor(L){super(L),L=L||Object.create(null),this.opt=L,this.file=L.file||"",this.cwd=L.cwd||process.cwd(),this.maxReadSize=L.maxReadSize,this.preservePaths=!!L.preservePaths,this.strict=!!L.strict,this.noPax=!!L.noPax,this.prefix=H(L.prefix||""),this.linkCache=L.linkCache||new Map,this.statCache=L.statCache||new Map,this.readdirCache=L.readdirCache||new Map,this[T]=a,typeof L.onwarn=="function"&&this.on("warn",L.onwarn),this.portable=!!L.portable,this.zip=null,L.gzip?(typeof L.gzip!="object"&&(L.gzip={}),this.portable&&(L.gzip.portable=!0),this.zip=new i.Gzip(L.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[O]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!L.noDirRecurse,this.follow=!!L.follow,this.noMtime=!!L.noMtime,this.mtime=L.mtime||null,this.filter=typeof L.filter=="function"?L.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+L.jobs||4,this[b]=!1,this[u]=!1}[D](L){return super.write(L)}add(L){return this.write(L),this}end(L){return L&&this.write(L),this[u]=!0,this[y](),this}write(L){if(this[u])throw new Error("write after end");return L instanceof c?this[v](L):this[E](L),this.flowing}[v](L){let M=H(I.resolve(this.cwd,L.path));if(!this.filter(L.path,L))L.resume();else{let R=new t(L.path,M,!1);R.entry=new o(L,this[F](R)),R.entry.on("end",K=>this[S](R)),this[g]+=1,this[d].push(R)}this[y]()}[E](L){let M=H(I.resolve(this.cwd,L));this[d].push(new t(L,M)),this[y]()}[m](L){L.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";P[M](L.absolute,(R,K)=>{L.pending=!1,this[g]-=1,R?this.emit("error",R):this[h](L,K)})}[h](L,M){this.statCache.set(L.absolute,M),L.stat=M,this.filter(L.path,M)||(L.ignore=!0),this[y]()}[w](L){L.pending=!0,this[g]+=1,P.readdir(L.absolute,(M,R)=>{if(L.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](L,R)})}[A](L,M){this.readdirCache.set(L.absolute,M),L.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let L=this[d].head;L!==null&&this[g]<this.jobs;L=L.next)if(this[_](L.value),L.value.ignore){let M=L.next;this[d].removeNode(L),L.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](L){this[d].shift(),this[g]-=1,this[y]()}[_](L){if(!L.pending){if(L.entry){L===this[p]&&!L.piped&&this[x](L);return}if(L.stat||(this.statCache.has(L.absolute)?this[h](L,this.statCache.get(L.absolute)):this[m](L)),!!L.stat&&!L.ignore&&!(!this.noDirRecurse&&L.stat.isDirectory()&&!L.readdir&&(this.readdirCache.has(L.absolute)?this[A](L,this.readdirCache.get(L.absolute)):this[w](L),!L.readdir))){if(L.entry=this[C](L),!L.entry){L.ignore=!0;return}L===this[p]&&!L.piped&&this[x](L)}}}[F](L){return{onwarn:(M,R,K)=>this.warn(M,R,K),noPax:this.noPax,cwd:this.cwd,absolute:L.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}}[C](L){this[g]+=1;try{return new this[T](L.path,this[F](L)).on("end",()=>this[S](L)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](L){L.piped=!0,L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)});let M=L.entry,R=this.zip;R?M.on("data",K=>{R.write(K)||M.pause()}):M.on("data",K=>{super.write(K)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J=class extends G{constructor(L){super(L),this[T]=s}pause(){}resume(){}[m](L){let M=this.follow?"statSync":"lstatSync";this[h](L,P[M](L.absolute))}[w](L,M){this[A](L,P.readdirSync(L.absolute))}[x](L){let M=L.entry,R=this.zip;L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)}),R?M.on("data",K=>{R.write(K)}):M.on("data",K=>{super[D](K)})}};G.Sync=J,r.exports=G}),ii=re(e=>{"use strict";Q();var r=z0(),t=ce("events").EventEmitter,n=ce("fs"),i=n.writev;if(!i){let L=process.binding("fs"),M=L.FSReqWrap||L.FSReqCallback;i=(R,K,q,Z)=>{let N=(ee,ae)=>Z(ee,ae,K),W=new M;W.oncomplete=N,L.writeBuffers(R,K,q,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),C=Symbol("_reading"),F=Symbol("_remain"),T=Symbol("_size"),D=Symbol("_write"),O=Symbol("_writing"),P=Symbol("_defaultFlag"),I=Symbol("_errored"),B=class extends r{constructor(L,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof L!="string")throw new TypeError("path must be a string");this[I]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=L,this[x]=M.readSize||16*1024*1024,this[C]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[F]=this[T],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(L,M)=>this[_](L,M))}[_](L,M){L?this[b](L):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[F]))}[A](){if(!this[C]){this[C]=!0;let L=this[d]();if(L.length===0)return process.nextTick(()=>this[g](null,0,L));n.read(this[o],L,0,L.length,null,(M,R,K)=>this[g](M,R,K))}}[g](L,M,R){this[C]=!1,L?this[b](L):this[u](M,R)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}[b](L){this[C]=!0,this[a](),this.emit("error",L)}[u](L,M){let R=!1;return this[F]-=L,L>0&&(R=super.write(L<M.length?M.slice(0,L):M)),(L===0||this[F]<=0)&&(R=!1,this[a](),super.end()),R}emit(L,M){switch(L){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(L,M));default:return super.emit(L,M)}}},H=class extends B{[E](){let L=!0;try{this[_](null,n.openSync(this[v],"r")),L=!1}finally{L&&this[a]()}}[A](){let L=!0;try{if(!this[C]){this[C]=!0;do{let M=this[d](),R=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](R,M))break}while(!0);this[C]=!1}L=!1}finally{L&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}},G=class extends t{constructor(L,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[I]=!1,this[O]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=L,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[P]=M.flags===void 0,this[l]=this[P]?R:M.flags,this[o]===null&&this[E]()}emit(L,M){if(L==="error"){if(this[I])return;this[I]=!0}return super.emit(L,M)}get fd(){return this[o]}get path(){return this[v]}[b](L){this[a](),this[O]=!0,this.emit("error",L)}[E](){n.open(this[v],this[l],this[p],(L,M)=>this[_](L,M))}[_](L,M){this[P]&&this[l]==="r+"&&L&&L.code==="ENOENT"?(this[l]="w",this[E]()):L?this[b](L):(this[o]=M,this.emit("open",M),this[h]())}end(L,M){return L&&this.write(L,M),this[s]=!0,!this[O]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(L,M){return typeof L=="string"&&(L=Buffer.from(L,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[O]||this[w].length?(this[w].push(L),this[y]=!0,!1):(this[O]=!0,this[D](L),!0)}[D](L){n.write(this[o],L,0,L.length,this[m],(M,R)=>this[S](M,R))}[S](L,M){L?this[b](L):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[O]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[D](this[w].pop());else{let L=this[w];this[w]=[],i(this[o],L,this[m],(M,R)=>this[S](M,R))}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}},J=class extends G{[E](){let L;if(this[P]&&this[l]==="r+")try{L=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else L=n.openSync(this[v],this[l],this[p]);this[_](null,L)}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}[D](L){let M=!0;try{this[S](null,n.writeSync(this[o],L,0,L.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=H,e.WriteStream=G,e.WriteStreamSync=J}),Mu=re((e,r)=>{"use strict";Q();var t=Lu(),n=ri(),i=ce("events"),c=Q0(),a=1024*1024,s=Pu(),o=Bu(),f=V0(),{nextTick:l}=ce("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),C=Symbol("unzip"),F=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),D=Symbol("consumeBody"),O=Symbol("consumeMeta"),P=Symbol("consumeHeader"),I=Symbol("consuming"),B=Symbol("bufferConcat"),H=Symbol("maybeEnd"),G=Symbol("writing"),J=Symbol("aborted"),L=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),K=Symbol("sawEOF"),q=Symbol("closeStream"),Z=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(L,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(L,N.ondone):this.on(L,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Z,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[C]=null,this[J]=!1,this[R]=!1,this[K]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[P](N,W){this[M]===null&&(this[M]=!1);let ee;try{ee=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(ee.nullBlock)this[R]?(this[K]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[R]=!0,this[x]("nullBlock"));else if(this[R]=!1,!ee.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:ee});else if(!ee.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:ee});else{let ae=ee.type;if(/^(Symbolic)?Link$/.test(ae)&&!ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:ee});else if(!/^(Symbolic)?Link$/.test(ae)&&ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:ee});else{let oe=this[d]=new s(ee,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",ee=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[G]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[D](N,W){let ee=this[d],ae=ee.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return ee.write(oe),ee.blockRemain||(this[u]="header",this[d]=null,ee.end()),oe.length}[O](N,W){let ee=this[d],ae=this[D](N,W);return this[d]||this[E](ee),ae}[x](N,W,ee){!this[m].length&&!this[p]?this.emit(N,W,ee):this[m].push([N,W,ee])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[J]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[J])return;if(this[C]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let ee=0;this[C]===null&&ee<h.length;ee++)N[ee]!==h[ee]&&(this[C]=!1);if(this[C]===null){let ee=this[w];this[w]=!1,this[C]=new f.Unzip,this[C].on("data",oe=>this[F](oe)),this[C].on("error",oe=>this.abort(oe)),this[C].on("end",oe=>{this[w]=!0,this[F]()}),this[G]=!0;let ae=this[C][ee?"end":"write"](N);return this[G]=!1,ae}}this[G]=!0,this[C]?this[C].write(N):this[F](N),this[G]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",ee=>this.emit("drain")),W}[B](N){N&&!this[J]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[J]&&!this[I]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](L)}}[F](N){if(this[I])this[B](N);else if(!N&&!this[v])this[H]();else{if(this[I]=!0,this[v]){this[B](N);let W=this[v];this[v]=null,this[T](W)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[J]&&!this[K];){let W=this[v];this[v]=null,this[T](W)}this[I]=!1}(!this[v]||this[w])&&this[H]()}[T](N){let W=0,ee=N.length;for(;W+512<=ee&&!this[J]&&!this[K];)switch(this[u]){case"begin":case"header":this[P](N,W),W+=512;break;case"ignore":case"body":W+=this[D](N,W);break;case"meta":W+=this[O](N,W);break;default:throw new Error("invalid state: "+this[u])}W<ee&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[J]||(this[C]?this[C].end(N):(this[w]=!0,this.write(N)))}})}),Nu=re((e,r)=>{"use strict";Q();var t=ei(),n=Mu(),i=ce("fs"),c=ii(),a=ce("path"),s=ni();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),DA=re((e,r)=>{"use strict";Q();var t=ei(),n=Iu(),i=ii(),c=Nu(),a=ce("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),J0=re((e,r)=>{"use strict";Q();var t=ei(),n=Iu(),i=ce("fs"),c=ii(),a=Nu(),s=ce("path"),o=ri();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.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),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(T,D)=>{T?i.close(E,O=>m(T)):m(null,D)},A=0;if(v===0)return w(null,0);let x=0,C=Buffer.alloc(512),F=(T,D)=>{if(T)return w(T);if(x+=D,x<512&&D)return i.read(E,C,x,C.length-x,A+x,F);if(A===0&&C[0]===31&&C[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let O=new o(C);if(!O.cksumValid)return w(null,A);let P=512*Math.ceil(O.size/512);if(A+P+512>v||(A+=P+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),x=0,i.read(E,C,0,512,A,F)};i.read(E,C,0,512,A,F)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(C,F)=>{if(C)return i.close(x,()=>v(C));g(x,F.size,(T,D)=>{if(T)return v(T);let O=new c.WriteStream(p.file,{fd:x,start:D});_.pipe(O),O.on("error",v),O.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),RA=re((e,r)=>{"use strict";Q();var t=ei(),n=J0();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),OA=re((e,r)=>{Q();var{promisify:t}=ce("util"),n=ce("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),TA=re((e,r)=>{Q();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=ce("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),FA=re((e,r)=>{Q();var{dirname:t}=ce("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),em=re((e,r)=>{Q();var{dirname:t}=ce("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),PA=re((e,r)=>{Q();var{dirname:t}=ce("path"),{findMade:n,findMadeSync:i}=FA(),{mkdirpManual:c,mkdirpManualSync:a}=em(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),BA=re((e,r)=>{Q();var t=ce("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),LA=re((e,r)=>{Q();var t=OA(),n=TA(),{mkdirpNative:i,mkdirpNativeSync:c}=PA(),{mkdirpManual:a,mkdirpManualSync:s}=em(),{useNative:o,useNativeSync:f}=BA(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),IA=re((e,r)=>{"use strict";Q();var t=ce("fs"),n=ce("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,C=null,F=T=>{if(!C){if(T)return m(C=T);if(--x===0)return p(S,E,v,m)}};A.forEach(T=>y(S,T,E,v,F))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),MA=re((e,r)=>{"use strict";Q();var t=LA(),n=ce("fs"),i=ce("path"),c=IA(),a=ti(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,C=b.cache,F=a(b.cwd),T=(O,P)=>{O?_(O):(l(C,y,!0),P&&w?c(P,v,m,I=>T(I)):E?n.chmod(y,S,_):_())};if(C&&f(C,y)===!0)return T();if(y===F)return h(y,T);if(A)return t(y,{mode:S}).then(O=>T(null,O),T);let D=a(i.relative(F,y)).split("/");u(F,D,S,C,x,F,null,T)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,C=>{if(C)return m(C);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,C=a(b.cwd),F=O=>{l(x,y,!0),O&&m&&c.sync(O,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return F();if(y===C)return p(C),F();if(w)return F(t.sync(y,g));let T=a(i.relative(C,y)).split("/"),D=null;for(let O=T.shift(),P=C;O&&(P+="/"+O);O=T.shift())if(P=a(i.resolve(P)),!f(x,P))try{n.mkdirSync(P,g),D=D||P,l(x,P,!0)}catch{let I=n.lstatSync(P);if(I.isDirectory()){l(x,P,!0);continue}else if(A){n.unlinkSync(P),n.mkdirSync(P,g),D=D||P,l(x,P,!0);continue}else if(I.isSymbolicLink())return new s(P,P+"/"+T.join("/"))}return F(D)}}),tm=re((e,r)=>{Q();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),NA=re((e,r)=>{Q();var t=ce("assert"),n=tm(),i=ni(),{join:c}=ce("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),jA=re((e,r)=>{Q();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||ce("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),rm=re((e,r)=>{"use strict";Q();var t=ce("assert"),n=Mu(),i=ce("fs"),c=ii(),a=ce("path"),s=MA(),o=Y0(),f=NA(),l=X0(),h=ti(),u=ni(),d=tm(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),C=Symbol("checkPath"),F=Symbol("mkdir"),T=Symbol("onError"),D=Symbol("pending"),O=Symbol("pend"),P=Symbol("unpend"),I=Symbol("ended"),B=Symbol("maybeClose"),H=Symbol("skip"),G=Symbol("doChown"),J=Symbol("uid"),L=Symbol("gid"),M=Symbol("checkedCwd"),R=ce("crypto"),K=jA(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Z=q==="win32",N=(k,U)=>{if(!Z)return i.unlink(k,U);let X=k+".DELETE."+R.randomBytes(16).toString("hex");i.rename(k,X,ne=>{if(ne)return U(ne);i.unlink(X,U)})},W=k=>{if(!Z)return i.unlinkSync(k);let U=k+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(k,U),i.unlinkSync(U)},ee=(k,U,X)=>k===k>>>0?k:U===U>>>0?U:X,ae=k=>d(u(h(k))).toLowerCase(),oe=(k,U)=>{U=ae(U);for(let X of k.keys()){let ne=ae(X);(ne===U||ne.indexOf(U+"/")===0)&&k.delete(X)}},de=k=>{for(let U of k.keys())k.delete(U)},pe=class extends n{constructor(k){if(k||(k={}),k.ondone=U=>{this[I]=!0,this[B]()},super(k),this[M]=!1,this.reservations=f(),this.transform=typeof k.transform=="function"?k.transform:null,this.writable=!0,this.readable=!1,this[D]=0,this[I]=!1,this.dirCache=k.dirCache||new Map,typeof k.uid=="number"||typeof k.gid=="number"){if(typeof k.uid!="number"||typeof k.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(k.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=k.uid,this.gid=k.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;k.preserveOwner===void 0&&typeof k.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!k.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=k.forceChown===!0,this.win32=!!k.win32||Z,this.newer=!!k.newer,this.keep=!!k.keep,this.noMtime=!!k.noMtime,this.preservePaths=!!k.preservePaths,this.unlink=!!k.unlink,this.cwd=h(a.resolve(k.cwd||process.cwd())),this.strip=+k.strip||0,this.processUmask=k.noChmod?0:process.umask(),this.umask=typeof k.umask=="number"?k.umask:this.processUmask,this.dmode=k.dmode||511&~this.umask,this.fmode=k.fmode||438&~this.umask,this.on("entry",U=>this[p](U))}warn(k,U,X={}){return(k==="TAR_BAD_ARCHIVE"||k==="TAR_ABORT")&&(X.recoverable=!1),super.warn(k,U,X)}[B](){this[I]&&this[D]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[C](k){if(this.strip){let U=h(k.path).split("/");if(U.length<this.strip)return!1;if(k.path=U.slice(this.strip).join("/"),k.type==="Link"){let X=h(k.linkpath).split("/");if(X.length>=this.strip)k.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let U=h(k.path),X=U.split("/");if(X.includes("..")||Z&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:k,path:U}),!1;let[ne,me]=l(U);ne&&(k.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:k,path:U}))}if(a.isAbsolute(k.path)?k.absolute=h(a.resolve(k.path)):k.absolute=h(a.resolve(this.cwd,k.path)),!this.preservePaths&&k.absolute.indexOf(this.cwd+"/")!==0&&k.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:k,path:h(k.path),resolvedPath:k.absolute,cwd:this.cwd}),!1;if(k.absolute===this.cwd&&k.type!=="Directory"&&k.type!=="GNUDumpDir")return!1;if(this.win32){let{root:U}=a.win32.parse(k.absolute);k.absolute=U+o.encode(k.absolute.slice(U.length));let{root:X}=a.win32.parse(k.path);k.path=X+o.encode(k.path.slice(X.length))}return!0}[p](k){if(!this[C](k))return k.resume();switch(t.equal(typeof k.absolute,"string"),k.type){case"Directory":case"GNUDumpDir":k.mode&&(k.mode=k.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](k);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](k)}}[T](k,U){k.name==="CwdError"?this.emit("error",k):(this.warn("TAR_ENTRY_ERROR",k,{entry:U}),this[P](),U.resume())}[F](k,U,X){s(h(k),{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:U,noChmod:this.noChmod},X)}[G](k){return this.forceChown||this.preserveOwner&&(typeof k.uid=="number"&&k.uid!==this.processUid||typeof k.gid=="number"&&k.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[J](k){return ee(this.uid,k.uid,this.processUid)}[L](k){return ee(this.gid,k.gid,this.processGid)}[E](k,U){let X=k.mode&4095||this.fmode,ne=new c.WriteStream(k.absolute,{flags:K(k.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[T](ie,k),U()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[T](ie,k),U();return}--me===0&&i.close(ne.fd,ye=>{ye?this[T](ye,k):this[P](),U()})};ne.on("finish",ie=>{let ye=k.absolute,we=ne.fd;if(k.mtime&&!this.noMtime){me++;let xe=k.atime||new Date,V=k.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[G](k)){me++;let xe=this[J](k),V=this[L](k);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(k)||k;fe!==k&&(fe.on("error",ie=>{this[T](ie,k),U()}),k.pipe(fe)),fe.pipe(ne)}[v](k,U){let X=k.mode&4095||this.dmode;this[F](k.absolute,X,ne=>{if(ne){this[T](ne,k),U();return}let me=1,se=fe=>{--me===0&&(U(),this[P](),k.resume())};k.mtime&&!this.noMtime&&(me++,i.utimes(k.absolute,k.atime||new Date,k.mtime,se)),this[G](k)&&(me++,i.chown(k.absolute,this[J](k),this[L](k),se)),se()})}[x](k){k.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${k.type}`,{entry:k}),k.resume()}[w](k,U){this[m](k,k.linkpath,"symlink",U)}[A](k,U){let X=h(a.resolve(this.cwd,k.linkpath));this[m](k,X,"link",U)}[O](){this[D]++}[P](){this[D]--,this[B]()}[H](k){this[P](),k.resume()}[g](k,U){return k.type==="File"&&!this.unlink&&U.isFile()&&U.nlink<=1&&!Z}[y](k){this[O]();let U=[k.path];k.linkpath&&U.push(k.linkpath),this.reservations.reserve(U,X=>this[b](k,X))}[_](k){k.type==="SymbolicLink"?de(this.dirCache):k.type!=="Directory"&&oe(this.dirCache,k.absolute)}[b](k,U){this[_](k);let X=fe=>{this[_](k),U(fe)},ne=()=>{this[F](this.cwd,this.dmode,fe=>{if(fe){this[T](fe,k),X();return}this[M]=!0,me()})},me=()=>{if(k.absolute!==this.cwd){let fe=h(a.dirname(k.absolute));if(fe!==this.cwd)return this[F](fe,this.dmode,ie=>{if(ie){this[T](ie,k),X();return}se()})}se()},se=()=>{i.lstat(k.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>k.mtime)){this[H](k),X();return}if(fe||this[g](k,ie))return this[S](null,k,X);if(ie.isDirectory()){if(k.type==="Directory"){let ye=!this.noChmod&&k.mode&&(ie.mode&4095)!==k.mode,we=xe=>this[S](xe,k,X);return ye?i.chmod(k.absolute,k.mode,we):we()}if(k.absolute!==this.cwd)return i.rmdir(k.absolute,ye=>this[S](ye,k,X))}if(k.absolute===this.cwd)return this[S](null,k,X);N(k.absolute,ye=>this[S](ye,k,X))})};this[M]?me():ne()}[S](k,U,X){if(k){this[T](k,U),X();return}switch(U.type){case"File":case"OldFile":case"ContiguousFile":return this[E](U,X);case"Link":return this[A](U,X);case"SymbolicLink":return this[w](U,X);case"Directory":case"GNUDumpDir":return this[v](U,X)}}[m](k,U,X,ne){i[X](U,k.absolute,me=>{me?this[T](me,k):(this[P](),k.resume()),ne()})}},j=k=>{try{return[null,k()]}catch(U){return[U,null]}},z=class extends pe{[S](k,U){return super[S](k,U,()=>{})}[y](k){if(this[_](k),!this[M]){let me=this[F](this.cwd,this.dmode);if(me)return this[T](me,k);this[M]=!0}if(k.absolute!==this.cwd){let me=h(a.dirname(k.absolute));if(me!==this.cwd){let se=this[F](me,this.dmode);if(se)return this[T](se,k)}}let[U,X]=j(()=>i.lstatSync(k.absolute));if(X&&(this.keep||this.newer&&X.mtime>k.mtime))return this[H](k);if(U||this[g](k,X))return this[S](null,k);if(X.isDirectory()){if(k.type==="Directory"){let se=!this.noChmod&&k.mode&&(X.mode&4095)!==k.mode,[fe]=se?j(()=>{i.chmodSync(k.absolute,k.mode)}):[];return this[S](fe,k)}let[me]=j(()=>i.rmdirSync(k.absolute));this[S](me,k)}let[ne]=k.absolute===this.cwd?[]:j(()=>W(k.absolute));this[S](ne,k)}[E](k,U){let X=k.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[T](fe||ie,k),U()},me;try{me=i.openSync(k.absolute,K(k.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(k)||k;se!==k&&(se.on("error",fe=>this[T](fe,k)),k.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(k.mtime&&!this.noMtime){let ye=k.atime||new Date,we=k.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(k.absolute,ye,we)}catch{ie=xe}}}if(this[G](k)){let ye=this[J](k),we=this[L](k);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(k.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](k,U){let X=k.mode&4095||this.dmode,ne=this[F](k.absolute,X);if(ne){this[T](ne,k),U();return}if(k.mtime&&!this.noMtime)try{i.utimesSync(k.absolute,k.atime||new Date,k.mtime)}catch{}if(this[G](k))try{i.chownSync(k.absolute,this[J](k),this[L](k))}catch{}U(),k.resume()}[F](k,U){try{return s.sync(h(k),{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:U})}catch(X){return X}}[m](k,U,X,ne){try{i[X+"Sync"](U,k.absolute),ne(),k.resume()}catch(me){return this[T](me,k)}}};pe.Sync=z,r.exports=pe}),$A=re((e,r)=>{"use strict";Q();var t=ei(),n=rm(),i=ce("fs"),c=ii(),a=ce("path"),s=ni();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),HA=re(e=>{"use strict";Q(),e.c=e.create=DA(),e.r=e.replace=J0(),e.t=e.list=Nu(),e.u=e.update=RA(),e.x=e.extract=$A(),e.Pack=Iu(),e.Unpack=rm(),e.Parse=Mu(),e.ReadEntry=Pu(),e.WriteEntry=Z0(),e.Header=ri(),e.Pax=Bu(),e.types=K0()}),fr=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,C;return(C=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&C!==void 0?C:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,C;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((C=(x=m)["@@observable"])===null||C===void 0?void 0:C.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:C}=x,F=C?`received values of types ${[...new Set(A.map(T=>`\`${u(T)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${F}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),qA=re((e,r)=>{"use strict";Q();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),GA=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),UA=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var t=GA(),n=ce("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),zA=re((e,r)=>{"use strict";Q();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=ce("dns"),{promisify:s}=ce("util"),o=ce("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let C=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);C.unref&&C.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(D){if(D.code==="ENODATA"||D.code==="ENOTFOUND")return[];throw D}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(T=>v(T))),A=0,x=0,C=0,F=Date.now();for(let T of m)T.family=4,T.expires=F+T.ttl*1e3,A=Math.max(A,T.ttl);for(let T of w)T.family=6,T.expires=F+T.ttl*1e3,x=Math.max(x,T.ttl);return m.length>0?w.length>0?C=Math.min(A,x):C=A:C=x,{entries:[...m,...w],cacheTtl:C}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let C=x[h];w>=C?this._cache.delete(A):C<m&&(m=C)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),WA=re((e,r)=>{"use strict";Q();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),VA=re((e,r)=>{Q(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),nm=re((e,r)=>{Q();var t=VA();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),KA=re((e,r)=>{Q();var t=nm(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),YA=re((e,r)=>{Q();var t=nm(),n=KA(),i=ce("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),XA=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),ZA=re((e,r)=>{"use strict";Q();var{constants:t}=ce("buffer"),n=YA(),i=XA(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),QA=re((e,r)=>{"use strict";Q();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),ju=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),JA=re((e,r)=>{"use strict";Q();var t=ce("stream").Readable,n=ju(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),ex=re((e,r)=>{"use strict";Q();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),tx=re((e,r)=>{"use strict";Q();var t=ce("stream").PassThrough,n=ex(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),rx=re(e=>{Q(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),nx=re((e,r)=>{"use strict";Q();var t=ce("events"),n=rx(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(ce(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),ix=re((e,r)=>{"use strict";Q();var t=ce("events"),n=ce("url"),i=WA(),c=ZA(),a=QA(),s=JA(),o=ju(),f=tx(),l=nx(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),C=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:C})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,C,F=new Promise(D=>{C=()=>{x||(x=!0,D())}}),T=D=>{if(v&&!A.forceRefresh){D.status=D.statusCode;let P=a.fromObject(v.cachePolicy).revalidatedPolicy(A,D);if(!P.modified){let I=P.policy.responseHeaders();D=new s(v.statusCode,I,v.body,v.url),D.cachePolicy=P.policy,D.fromCache=!0}}D.fromCache||(D.cachePolicy=new a(A,D,A),D.fromCache=!1);let O;A.cache&&D.cachePolicy.storable()?(O=f(D),(async()=>{try{let P=c.buffer(D);if(await Promise.race([F,new Promise(G=>D.once("end",G))]),x)return;let I=await P,B={cachePolicy:D.cachePolicy.toObject(),url:D.url,statusCode:D.fromCache?v.statusCode:D.statusCode,body:I},H=A.strictTtl?D.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,B,H)}catch(P){g.emit("error",new h.CacheError(P))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(P){g.emit("error",new h.CacheError(P))}})(),g.emit("response",O||D),typeof b=="function"&&b(O||D)};try{let D=p(A,T);D.once("error",C),D.once("abort",C),g.emit("request",D)}catch(D){g.emit("error",new h.RequestError(D))}};return(async()=>{let A=async C=>{await Promise.resolve();let F=C.cache?await this.cache.get(E):void 0;if(typeof F>"u")return w(C);let T=a.fromObject(F.cachePolicy);if(T.satisfiesWithoutRevalidation(C)&&!C.forceRefresh){let D=T.responseHeaders(),O=new s(F.statusCode,D,F.body,F.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=F,C.headers=T.revalidationHeaders(C),w(C)},x=C=>g.emit("error",new h.CacheError(C));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(C){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(C))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),sx=re((e,r)=>{"use strict";Q();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),ox=re((e,r)=>{"use strict";Q();var{Transform:t,PassThrough:n}=ce("stream"),i=ce("zlib"),c=sx();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),im=re((e,r)=>{"use strict";Q();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),sm=re((e,r)=>{"use strict";Q();var t=ce("events"),n=ce("tls"),i=ce("http2"),c=im(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:F}of E)F(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let F=this.sessions[w],T=-1,D=-1,O;for(let P of F){let I=P.remoteSettings.maxConcurrentStreams;if(I<T)break;if(P[o].includes(A)){let B=P[a];if(B>=I||P[f]||P.destroyed)continue;O||(T=I),B>D&&(O=P,D=B)}}if(O){if(E.length!==1){for(let{reject:P}of E){let I=new Error(`Expected the length of listeners to be 1, got ${E.length}.
66
- Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}E[0].resolve(O);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===C&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},C=()=>{let F=`${A}:${w}`,T=!1;try{let D=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(F),...S});D[a]=0,D[f]=!1;let O=()=>D[a]<D.remoteSettings.maxConcurrentStreams,P=!0;D.socket.once("session",B=>{this.tlsSessionCache.set(F,B)}),D.once("error",B=>{for(let{reject:H}of E)H(B);this.tlsSessionCache.delete(F)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(T){P&&this._freeSessionsCount--,this._sessionsCount--;let B=this.sessions[w];B.splice(B.indexOf(D),1),B.length===0&&delete this.sessions[w]}else{let B=new Error("Session closed without receiving a SETTINGS frame");B.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(B);x()}this._tryToCreateNewSession(w,A)});let I=()=>{if(!(!(w in this.queue)||!O())){for(let B of D[o])if(B in this.queue[w]){let{listeners:H}=this.queue[w][B];for(;H.length!==0&&O();)H.shift().resolve(D);let G=this.queue[w];if(G[B].listeners.length===0&&(delete G[B],Object.keys(G).length===0)){delete this.queue[w];break}if(!O())break}}};D.on("origin",()=>{D[o]=D.originSet,O()&&(I(),d(this.sessions[w],D))}),D.once("remoteSettings",()=>{if(D.ref(),D.unref(),this._sessionsCount++,C.destroyed){let B=new Error("Agent has been destroyed");for(let H of E)H.reject(B);D.destroy();return}D[o]=D.originSet;{let B=this.sessions;if(w in B){let H=B[w];H.splice(h(H,D,u),0,D)}else B[w]=[D]}this._freeSessionsCount+=1,T=!0,this.emit("session",D),I(),x(),D[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&D.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),D.on("remoteSettings",()=>{I(),d(this.sessions[w],D)})}),D[s]=D.request,D.request=(B,H)=>{if(D[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let G=D[s](B,H);return D.ref(),++D[a],D[a]===D.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,G.once("close",()=>{if(P=O(),--D[a],!D.destroyed&&!D.closed&&(p(this.sessions[w],D),O()&&!D.closed)){P||(this._freeSessionsCount++,P=!0);let J=D[a]===0;J&&D.unref(),J&&(this._freeSessionsCount>this.maxFreeSessions||D[f])?D.close():(d(this.sessions[w],D),I())}}),G}}catch(D){for(let O of E)O.reject(D);x()}};C.listeners=E,C.completed=!1,C.destroyed=!1,this.queue[w][A]=C,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),om=re((e,r)=>{"use strict";Q();var{Readable:t}=ce("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),am=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),ax=re((e,r)=>{"use strict";Q(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),ux=re((e,r)=>{"use strict";Q(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),lx=re((e,r)=>{"use strict";Q();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),um=re((e,r)=>{"use strict";Q();var t=ce("http2"),{Writable:n}=ce("stream"),{Agent:i,globalAgent:c}=sm(),a=om(),s=am(),o=ax(),f=ux(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=lx(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),C=/^[\^`\-\w!#$%&*+.|~]+$/,F=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends n{constructor(D,O,P){super({autoDestroy:!1});let I=typeof D=="string"||D instanceof URL;if(I&&(D=s(D instanceof URL?D:new URL(D))),typeof O=="function"||O===void 0?(P=O,O=I?D:{...D}):O={...D,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=c;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new h(O.protocol,"https:");let B=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,H=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:G}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[J,L]of Object.entries(O.headers))this.setHeader(J,L);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[w]=O,B===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${B}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${B}`)),G&&this.setTimeout(G),P&&this.once("response",P),this[A]=!1}get method(){return this[E][_]}set method(D){D&&(this[E][_]=D.toUpperCase())}get path(){return this[E][g]}set path(D){D&&(this[E][g]=D)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(D,O,P){if(this._mustNotHaveABody){P(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let I=()=>this._request.write(D,O,P);this._request?I():this[x].push(I)}_final(D){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){D();return}this._request.end(D)};this._request?O():this[x].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(D,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(D)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let D=this.method===S,O=P=>{if(this._request=P,this.destroyed){P.destroy();return}D||o(P,this,["timeout","continue","close","error"]);let I=H=>(...G)=>{!this.writable&&!this.destroyed?H(...G):this.once("finish",()=>{H(...G)})};P.once("response",I((H,G,J)=>{let L=new a(this.socket,P.readableHighWaterMark);this.res=L,L.req=this,L.statusCode=H[b],L.headers=H,L.rawHeaders=J,L.once("end",()=>{this.aborted?(L.aborted=!0,L.emit("aborted")):(L.complete=!0,L.socket=null,L.connection=null)}),D?(L.upgrade=!0,this.emit("connect",L,P,Buffer.alloc(0))?this.emit("close"):P.destroy()):(P.on("data",M=>{!L._dumped&&!L.push(M)&&P.pause()}),P.once("end",()=>{L.push(null)}),this.emit("response",L)||L._dump())})),P.once("headers",I(H=>this.emit("information",{statusCode:H[b]}))),P.once("trailers",I((H,G,J)=>{let{res:L}=this;L.trailers=H,L.rawTrailers=J}));let{socket:B}=P.session;this.socket=B,this.connection=B;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(P){this.emit("error",P)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[w],this[E]))}catch(P){this.emit("error",P)}}}getHeader(D){if(typeof D!="string")throw new l("name","string",D);return this[E][D.toLowerCase()]}get headersSent(){return this[A]}removeHeader(D){if(typeof D!="string")throw new l("name","string",D);if(this.headersSent)throw new u("remove");delete this[E][D.toLowerCase()]}setHeader(D,O){if(this.headersSent)throw new u("set");if(typeof D!="string"||!C.test(D)&&!f(D))throw new d("Header name",D);if(typeof O>"u")throw new p(O,D);if(F.test(O))throw new y("header content",D);this[E][D.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(D,O){let P=()=>this._request.setTimeout(D,O);return this._request?P():this[x].push(P),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(D){}};r.exports=T}),cx=re((e,r)=>{"use strict";Q();var t=ce("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),hx=re((e,r)=>{"use strict";Q();var t=ce("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),fx=re((e,r)=>{"use strict";Q();var t=ce("http"),n=ce("https"),i=cx(),c=im(),a=um(),s=hx(),o=am(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),px=re((e,r)=>{"use strict";Q();var t=ce("http2"),n=sm(),i=um(),c=om(),a=fx(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),lm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=fr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),dx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("fs"),t=ce("util"),n=fr(),i=lm(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),cm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),mx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),yx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=ce("net"),t=mx(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),gx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=fr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),bx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),vx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),hm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),_x=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),fm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),wx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),Ex=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=fr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),Sx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),ms=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=ce("util"),t=ce("stream"),n=ce("fs"),i=ce("url"),c=ce("http"),a=ce("http"),s=ce("https"),o=UA(),f=zA(),l=ix(),h=ox(),u=px(),d=ju(),p=fr(),y=dx(),b=lm(),_=cm(),g=yx(),S=gx(),E=bx(),v=vx(),m=hm(),w=_x(),A=fm(),x=wx(),C=Ex(),F=Sx(),T,D=Symbol("request"),O=Symbol("response"),P=Symbol("responseSize"),I=Symbol("downloadedSize"),B=Symbol("bodySize"),H=Symbol("uploadedSize"),G=Symbol("serverResponsesPiped"),J=Symbol("unproxyEvents"),L=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),K=Symbol("stopReading"),q=Symbol("triggerRead"),Z=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),ee=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),z=new Set([300,301,302,303,304,307,308]),k=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of k)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var U=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
67
- `).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
68
- `).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
69
- `)}${Ee.reverse().join(`
70
- `)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ie}=this.options;if(!Ie)throw new TypeError("Missing `url` property");if(this.requestUrl=Ie.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[D])===null||Ae===void 0||Ae.destroy();return}for(let Be of this[N])Be();this[N].length=0,this.requestInitialized=!0}catch(Ie){if(Ie instanceof U){this._beforeError(Ie);return}this.destroyed||this.destroy(Ie)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Pe=$.searchParams[Fe];Pe===null?Se.append(Fe,""):Pe!==void 0&&Se.append(Fe,Pe)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Pe)=>{Se.has(Pe)||Se.append(Pe,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Pe=>{let ke=$.url;if(!ke.href.startsWith(Pe))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Pe}: ${ke.href}`);$.url=new i.URL(Pe+ke.href.slice(Se.length)),Se=Pe},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ie}=$;if(Ie){let{setCookie:Se,getCookieString:Fe}=Ie;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Be}=$;if(Be&&(pe.has(Be)||pe.set(Be,new l((Se,Fe)=>{let Pe=Se[D](Se,Fe);return p.default.promise(Pe)&&(Pe.once=(ke,Ce)=>{if(ke==="error")Pe.catch(Ce);else if(ke==="abort")(async()=>{try{(await Pe).once("abort",Ce)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Pe}),Pe},Be))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Ht=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!Ht)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),C.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&z.has(_e)){if(V.resume(),this[D]&&(this[M](),delete this[D],this[J]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Be){return Be.protocol==="unix:"||Be.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ie=Ae.toString();if(decodeURI(Ie),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ie),$.url=Ae;for(let Be of $.hooks.beforeRedirect)await Be($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ie=V.headers[Ee];Ae&&be.setHeader(Ee,Ie)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[J]=_.default(V,this,we),this[D]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let Ce in be)if(p.default.undefined(be[Ce]))delete be[Ce];else if(p.default.null_(be[Ce]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ce}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let Ce=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(Ce)&&(he.headers.cookie=Ce)}for(let Ce of he.hooks.beforeRequest){let qt=await Ce(he);if(!p.default.undefined(qt)){he.request=()=>qt;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ie,url:Be}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Be.hostname==="unix"){let Ce=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Be.pathname}${Be.search}`);if(Ce!=null&&Ce.groups){let{socketPath:qt,path:ro}=Ce.groups;Object.assign(he,{socketPath:qt,path:ro,host:""})}}let Ht=Be.protocol==="https:",Se;he.http2?Se=u.auto:Se=Ht?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Pe=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[Ht?"https":"http"]),he[D]=Fe,delete he.request,delete he.timeout;let ke=he;if(ke.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,ke.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,ke.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(ke.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(ke.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(ke.ca=he.https.certificateAuthority),he.https.certificate&&(ke.cert=he.https.certificate),he.https.key&&(ke.key=he.https.key),he.https.passphrase&&(ke.passphrase=he.https.passphrase),he.https.pfx&&(ke.pfx=he.https.pfx));try{let Ce=await Pe(Be,ke);p.default.undefined(Ce)&&(Ce=Se(Be,ke)),he.request=Ae,he.timeout=Ie,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete ke.rejectUnauthorized,he.https.checkServerIdentity&&delete ke.checkServerIdentity,he.https.certificateAuthority&&delete ke.ca,he.https.certificate&&delete ke.cert,he.https.key&&delete ke.key,he.https.passphrase&&delete ke.passphrase,he.https.pfx&&delete ke.pfx),de(Ce)?this._onRequest(Ce):this.writable?(this.once("finish",()=>{this._onResponse(Ce)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ce)}catch(Ce){throw Ce instanceof l.CacheError?new me(Ce,this):new U(Ce.message,Ce,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[D].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[D].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(D in this)){V();return}if(this[D].destroyed){V();return}this[D].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[D].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),D in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[D].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[D])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[D])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[D])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),ys=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=ms(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(ms(),e)}),Ax=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ys(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),pm=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=ce("events"),i=fr(),c=qA(),a=ys(),s=Ax(),o=ms(),f=cm(),l=hm(),h=fm(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var D;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((D=T.headers["content-encoding"])!==null&&D!==void 0?D:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async J=>{let L=o.default.normalizeArguments(void 0,{...J,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let C=T=>{if(g.isCanceled)return;let{options:D}=x;if(T instanceof a.HTTPError&&!D.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",C);let F=x.options.body;x.once("retry",(T,D)=>{var O,P;if(F===((O=D.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=D.request)===null||P===void 0?void 0:P.options.body)){C(D);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(ys(),e)}),xx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ys();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),kx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=fr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),Cx=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0})}),f0=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=fr(),i=pm(),c=xx(),a=ms(),s=kx(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:C,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=C,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,C=F=>_.handlers[x++](F,x===_.handlers.length?u:C);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(D){F=D}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return C(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,C=0;for(;C<w.requestLimit;){C!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),D=[];for(let P of T)if(w.filter(P,A,D)&&(!w.shouldContinue(P,A,D)||(yield P,w.stackAllItems&&A.push(P),D.push(P),--x<=0)))return;let O=w.paginate(F,A,D);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),C++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(Cx(),e)}),Dx=re((e,r)=>{"use strict";Q();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=ce("url"),c=f0(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(f0(),e),n(pm(),e)});Q();var JI=Ze(HA()),e4=Ze(Dx()),t4=(0,G0.promisify)(q0.Stream.pipeline);Q();var r4=Ze(xs()),Rx=re((e,r)=>{Q();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.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))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),Ox=re(e=>{Q();var r=Rx();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),Tx=re((e,r)=>{Q(),r.exports=Ox()}),Fx=re((e,r)=>{Q();var t=Tx();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});Q();var n4=Ze(Fx()),i4=Ze(Ss()),s4=Ze(xs());Q();var Px=re((e,r)=>{Q();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),Bx=re((e,r)=>{Q();var t=Px().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var J=B&&B.prototype instanceof b?B:b,L=Object.create(J.prototype),M=new D(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(J,L,M,R){var K=p(I[J],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(J,L){function M(){return new B(function(R,K){H(J,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(J,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(J==="throw")throw L;return P()}for(H.method=J,H.arg=L;;){var M=H.delegate;if(M){var R=C(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function C(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,C(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var J=p(G,I.iterator,B.arg);if(J.type==="throw")return B.method="throw",B.arg=J.arg,B.delegate=null,y;var L=J.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function D(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function J(){for(;++H<I.length;)if(a.call(I,H))return J.value=I[H],J.done=!1,J;return J.value=void 0,J.done=!0,J};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,J){J===void 0&&(J=Promise);var L=new A(d(I,B,H,G),J);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function J(){for(;H.length;){var L=H.pop();if(L in B)return J.value=L,J.done=!1,J}return J.done=!0,J}},i.values=O,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G],L=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var M=a.call(J,"catchLoc"),R=a.call(J,"finallyLoc");if(M&&R){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(M){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var J=G;break}}J&&(I==="break"||I==="continue")&&J.tryLoc<=B&&B<=J.finallyLoc&&(J=null);var L=J?J.completion:{};return L.type=I,L.arg=B,J?(this.method="next",this.next=J.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var J=G.arg;T(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),Lx=re((e,r)=>{Q();var t=Bx()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),Ix=re((e,r)=>{"use strict";Q();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),Mx=re((e,r)=>{"use strict";Q();var t=Ix(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),Nx=re((e,r)=>{"use strict";Q();var t=Mx(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),jx=re((e,r)=>{"use strict";Q();var t=ce("path"),n=ce("fs"),{promisify:i}=ce("util"),c=Nx(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),$x=re((e,r)=>{"use strict";Q();var t=ce("fs"),{promisify:n}=ce("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),Hx=re((e,r)=>{"use strict";Q();var t=ce("path"),n=jx(),i=$x(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),bt=re(e=>{"use strict";Q(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),dm=re(e=>{"use strict";Q();var r=bt().fromCallback,t=Me(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),mm=re((e,r)=>{"use strict";Q();var t=ce("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),qx=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=mm().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),Gx=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=mm().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),At=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=t(qx()),i=Gx();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),ym=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("os"),i=ce("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),ks=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:C,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===C.ino&&F.dev===C.dev?w(new Error("Source and destination must not be the same.")):C.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:C,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),C=n.resolve(n.dirname(m));if(C===x||C===n.parse(C).root)return A();h()?t.stat(C,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A)):t.stat(C,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let C;try{h()?C=t.statSync(x,{bigint:!0}):C=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(C.ino&&C.dev&&C.ino===v.ino&&C.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,C)=>A&&w[C]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),Ux=re((e,r)=>{"use strict";Q(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),zx=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=At().mkdirsSync,c=ym().utimesMillisSync,a=ks();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
71
-
72
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=Ux()(65536),C=t.openSync(m,"r"),F=t.openSync(w,"w",v.mode),T=0;for(;T<v.size;){let D=t.readSync(C,x,0,65536,T);t.writeSync(F,x,0,D),T+=D}A.preserveTimestamps&&t.futimesSync(F,v.atime,v.mtime),t.closeSync(C),t.closeSync(F)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),C=n.join(w,v),{destStat:F}=a.checkPathsSync(x,C,"copy");return f(F,x,C,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let C;try{C=t.readlinkSync(w)}catch(F){if(F.code==="EINVAL"||F.code==="UNKNOWN")return t.symlinkSync(x,w);throw F}if(A.dereference&&(C=n.resolve(process.cwd(),C)),a.isSrcSubdir(x,C))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${C}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(C,x))throw new Error(`Cannot overwrite '${C}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),gm=re((e,r)=>{"use strict";Q(),r.exports={copySync:zx()}}),Xt=re((e,r)=>{"use strict";Q();var t=bt().fromPromise,n=dm();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),Wx=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=At().mkdirs,c=Xt().pathExists,a=ym().utimesMillis,s=ks();function o(x,C,F,T){typeof F=="function"&&!T?(T=F,F={}):typeof F=="function"&&(F={filter:F}),T=T||function(){},F=F||{},F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
73
-
74
- see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,C,"copy",(D,O)=>{if(D)return T(D);let{srcStat:P,destStat:I}=O;s.checkParentPaths(x,P,C,"copy",B=>B?T(B):F.filter?l(f,I,x,C,F,T):f(I,x,C,F,T))})}function f(x,C,F,T,D){let O=n.dirname(F);c(O,(P,I)=>{if(P)return D(P);if(I)return h(x,C,F,T,D);i(O,B=>B?D(B):h(x,C,F,T,D))})}function l(x,C,F,T,D,O){Promise.resolve(D.filter(F,T)).then(P=>P?x(C,F,T,D,O):O(),P=>O(P))}function h(x,C,F,T,D){return T.filter?l(u,x,C,F,T,D):u(x,C,F,T,D)}function u(x,C,F,T,D){(T.dereference?t.stat:t.lstat)(C,(O,P)=>{if(O)return D(O);if(P.isDirectory())return g(P,x,C,F,T,D);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return d(P,x,C,F,T,D);if(P.isSymbolicLink())return w(x,C,F,T,D)})}function d(x,C,F,T,D,O){return C?p(x,F,T,D,O):y(x,F,T,D,O)}function p(x,C,F,T,D){if(T.overwrite)t.unlink(F,O=>O?D(O):y(x,C,F,T,D));else return T.errorOnExist?D(new Error(`'${F}' already exists`)):D()}function y(x,C,F,T,D){return typeof t.copyFile=="function"?t.copyFile(C,F,O=>O?D(O):_(x,F,T,D)):b(x,C,F,T,D)}function b(x,C,F,T,D){let O=t.createReadStream(C);O.on("error",P=>D(P)).once("open",()=>{let P=t.createWriteStream(F,{mode:x.mode});P.on("error",I=>D(I)).on("open",()=>O.pipe(P)).once("close",()=>_(x,F,T,D))})}function _(x,C,F,T){t.chmod(C,x.mode,D=>D?T(D):F.preserveTimestamps?a(C,x.atime,x.mtime,T):T())}function g(x,C,F,T,D,O){return C?C&&!C.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${F}'.`)):E(F,T,D,O):S(x,F,T,D,O)}function S(x,C,F,T,D){t.mkdir(F,O=>{if(O)return D(O);E(C,F,T,P=>P?D(P):t.chmod(F,x.mode,D))})}function E(x,C,F,T){t.readdir(x,(D,O)=>D?T(D):v(O,x,C,F,T))}function v(x,C,F,T,D){let O=x.pop();return O?m(x,O,C,F,T,D):D()}function m(x,C,F,T,D,O){let P=n.join(F,C),I=n.join(T,C);s.checkPaths(P,I,"copy",(B,H)=>{if(B)return O(B);let{destStat:G}=H;h(G,P,I,D,J=>J?O(J):v(x,F,T,D,O))})}function w(x,C,F,T,D){t.readlink(C,(O,P)=>{if(O)return D(O);if(T.dereference&&(P=n.resolve(process.cwd(),P)),x)t.readlink(F,(I,B)=>I?I.code==="EINVAL"||I.code==="UNKNOWN"?t.symlink(P,F,D):D(I):(T.dereference&&(B=n.resolve(process.cwd(),B)),s.isSrcSubdir(P,B)?D(new Error(`Cannot copy '${P}' to a subdirectory of itself, '${B}'.`)):x.isDirectory()&&s.isSrcSubdir(B,P)?D(new Error(`Cannot overwrite '${B}' with '${P}'.`)):A(P,F,D)));else return t.symlink(P,F,D)})}function A(x,C,F){t.unlink(C,T=>T?F(T):t.symlink(x,C,F))}r.exports=o}),bm=re((e,r)=>{"use strict";Q();var t=bt().fromCallback;r.exports={copy:t(Wx())}}),Vx=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=ce("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Cs=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=Vx();r.exports={remove:t(n),removeSync:n.sync}}),Kx=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=Me(),i=ce("path"),c=At(),a=Cs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),Yx=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=ce("path"),i=Me(),c=At(),a=Xt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),Xx=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=ce("path"),i=Me(),c=At(),a=Xt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),Zx=re((e,r)=>{"use strict";Q();var t=ce("path"),n=Me(),i=Xt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),Qx=re((e,r)=>{"use strict";Q();var t=Me();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),Jx=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=ce("path"),i=Me(),c=At(),a=c.mkdirs,s=c.mkdirsSync,o=Zx(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=Qx(),u=h.symlinkType,d=h.symlinkTypeSync,p=Xt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,C)=>{if(x)return E(x);let F=n.dirname(g);p(F,(T,D)=>{if(T)return E(T);if(D)return i.symlink(_,g,C,E);a(F,O=>{if(O)return E(O);i.symlink(_,g,C,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),ek=re((e,r)=>{"use strict";Q();var t=Yx(),n=Xx(),i=Jx();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),tk=re((e,r)=>{Q();var t;try{t=Me()}catch{t=ce("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
75
- `;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),$u=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=tk();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),rk=re((e,r)=>{"use strict";Q();var t=ce("path"),n=At(),i=Xt().pathExists,c=$u();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),nk=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=At(),c=$u();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),ik=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=$u();n.outputJson=t(rk()),n.outputJsonSync=nk(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),sk=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=gm().copySync,c=Cs().removeSync,a=At().mkdirpSync,s=ks();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),ok=re((e,r)=>{"use strict";Q(),r.exports={moveSync:sk()}}),ak=re((e,r)=>{"use strict";Q();var t=Me(),n=ce("path"),i=bm().copy,c=Cs().remove,a=At().mkdirp,s=Xt().pathExists,o=ks();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),uk=re((e,r)=>{"use strict";Q();var t=bt().fromCallback;r.exports={move:t(ak())}}),lk=re((e,r)=>{"use strict";Q();var t=bt().fromCallback,n=Me(),i=ce("path"),c=At(),a=Xt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),ck=re((e,r)=>{"use strict";Q(),r.exports=Object.assign({},dm(),gm(),bm(),Kx(),ek(),ik(),At(),ok(),uk(),lk(),Xt(),Cs());var t=ce("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Q();Q();var o4=Ze(Lx());Q();Q();function hk(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Q();Q();function wu(e){return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},wu(e)}Q();function fk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pk(e,r){if(r&&(wu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fk(e)}Q();function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(e)}Q();Q();function zn(e,r){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},zn(e,r)}function dk(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&zn(e,r)}Q();Q();function mk(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Q();Q();function yk(){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 ds(e,r,t){return yk()?ds=Reflect.construct.bind():ds=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&zn(o,c.prototype),o},ds.apply(null,arguments)}function Eu(e){var r=typeof Map=="function"?new Map:void 0;return Eu=function(t){if(t===null||!mk(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return ds(t,arguments,gs(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zn(n,t)},Eu(e)}var a4=Ze(Hx()),u4=Ze(ck()),l4=function(e){dk(r,e);function r(t){var n;return hk(this,r),n=pk(this,gs(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(Eu(Error));Q();var gk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),bk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),vk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),_k=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=ce("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),wk=re((e,r)=>{Q(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),Ek=re((e,r)=>{Q();var t=wk(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),Sk=re((e,r)=>{"use strict";Q();var t=Ek(),n=ce("path").posix.dirname,i=ce("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),Hu=re(e=>{"use strict";Q(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),qu=re((e,r)=>{"use strict";Q();var t=Hu();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),Ak=re((e,r)=>{"use strict";Q(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),xk=re((e,r)=>{"use strict";Q();var t=Ak(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),C=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(C))return n.cache[C].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let D=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(D&&(O.isPadded=D,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[C]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[C,F]=v[x];C===F?w+=C:C!=="0"||F!=="9"?w+=y(C,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let C=0;C<m.length;C++){let F=m[C],T=a(String(A),String(F),v),D="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(D=_(F,E,v)),T.string=D+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),vm=re((e,r)=>{"use strict";Q();var t=ce("util"),n=xk(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",C;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?C=`${A}|${x}`:C=A||x,m.wrap?`(${w}${C})`:C},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let C=String.fromCharCode(m);return`[${x}-${C}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),C=Number(m);if(!Number.isInteger(x)||!Number.isInteger(C)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),C===0&&(C=0);let F=x>C,T=String(v),D=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(D)||o(O),I=P?Math.max(T.length,D.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},J=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=C:x<=C;)A.toRegex===!0&&w>1?J(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),C=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=C>F,D=Math.min(C,F),O=Math.max(C,F);if(A.toRegex&&w===1)return d(D,O,!1,A);let P=[],I=0;for(;T?C>=F:C<=F;)P.push(x(C,I)),C=T?C-w:C+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),kk=re((e,r)=>{"use strict";Q();var t=vm(),n=Hu(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),Ck=re((e,r)=>{"use strict";Q();var t=vm(),n=qu(),i=Hu(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),Dk=re((e,r)=>{"use strict";Q(),r.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:`
76
- `,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"}}),Rk=re((e,r)=>{"use strict";Q();var t=qu(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Dk(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,C=w,F=0,T=S.length,D=0,O=0,P,I={},B=()=>S[D++],H=G=>{if(G.type==="text"&&C.type==="dot"&&(C.type="text"),C&&C.type==="text"&&G.type==="text"){C.value+=G.value;return}return x.nodes.push(G),G.parent=x,G.prev=C,C=G,G};for(H({type:"bos"});D<T;)if(x=A[A.length-1],P=B(),!(P===_||P===b)){if(P===i){H({type:"text",value:(E.keepEscaping?P:"")+B()});continue}if(P===d){H({type:"text",value:"\\"+P});continue}if(P===u){F++;let G=!0,J;for(;D<T&&(J=B());){if(P+=J,J===u){F++;continue}if(J===i){P+=B();continue}if(J===d&&(F--,F===0))break}H({type:"text",value:P});continue}if(P===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:P});continue}if(P===f){if(x.type!=="paren"){H({type:"text",value:P});continue}x=A.pop(),H({type:"text",value:P}),x=A[A.length-1];continue}if(P===p||P===y||P===c){let G=P,J;for(E.keepQuotes!==!0&&(P="");D<T&&(J=B());){if(J===i){P+=J+B();continue}if(J===G){E.keepQuotes===!0&&(P+=J);break}P+=J}H({type:"text",value:P});continue}if(P===l){O++;let G=C.value&&C.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:G,depth:O,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:P});continue}if(P===h){if(x.type!=="brace"){H({type:"text",value:P});continue}let G="close";x=A.pop(),x.close=!0,H({type:G,value:P}),O--,x=A[A.length-1];continue}if(P===a&&O>0){if(x.ranges>0){x.ranges=0;let G=x.nodes.shift();x.nodes=[G,{type:"text",value:t(x)}]}H({type:"comma",value:P}),x.commas++;continue}if(P===s&&O>0&&x.commas===0){let G=x.nodes;if(O===0||G.length===0){H({type:"text",value:P});continue}if(C.type==="dot"){if(x.range=[],C.value+=P,C.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,C.type="text";continue}x.ranges++,x.args=[];continue}if(C.type==="range"){G.pop();let J=G[G.length-1];J.value+=C.value+P,C=J,x.ranges--;continue}H({type:"dot",value:P});continue}H({type:"text",value:P})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let G=A[A.length-1],J=G.nodes.indexOf(x);G.nodes.splice(J,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),Ok=re((e,r)=>{"use strict";Q();var t=qu(),n=kk(),i=Ck(),c=Rk(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Ds=re((e,r)=>{"use strict";Q();var t=ce("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={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"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,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:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),Rs=re(e=>{"use strict";Q();var r=ce("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ds();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),Tk=re((e,r)=>{"use strict";Q();var t=Rs(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Ds(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,C=[],F=[],T=[],D=v,O=-1,P=0,I=0,B=!1,H=!1,G=!1,J=!1,L=!1,M=!1,R=!1,K=!1,q=!1,Z=!1,N=0,W,ee,ae={value:"",depth:0,isGlob:!1},oe=()=>O>=A,de=()=>D.charCodeAt(O+1),pe=()=>(W=ee,D.charCodeAt(++O));for(;O<A;){ee=pe();let X;if(ee===c){R=ae.backslashes=!0,ee=pe(),ee===l&&(M=!0);continue}if(M===!0||ee===l){for(N++;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,pe();continue}if(ee===l){N++;continue}if(M!==!0&&ee===s&&(ee=pe())===s){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(M!==!0&&ee===a){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===y&&(N--,N===0)){M=!1,B=ae.isBrace=!0,Z=!0;break}}if(x===!0)continue;break}if(ee===f){if(C.push(O),F.push(ae),ae={value:"",depth:0,isGlob:!1},Z===!0)continue;if(W===s&&O===P+1){P+=2;continue}I=O+1;continue}if(w.noext!==!0&&(ee===d||ee===i||ee===n||ee===p||ee===o)&&de()===h){if(G=ae.isGlob=!0,J=ae.isExtglob=!0,Z=!0,ee===o&&O===P&&(q=!0),x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){G=ae.isGlob=!0,Z=!0;break}}continue}break}if(ee===n){if(W===n&&(L=ae.isGlobstar=!0),G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===p){if(G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===u){for(;oe()!==!0&&(X=pe());){if(X===c){R=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,G=ae.isGlob=!0,Z=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&ee===o&&O===P){K=ae.negated=!0,P++;continue}if(w.noparen!==!0&&ee===h){if(G=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===h){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){Z=!0;break}}continue}break}if(G===!0){if(Z=!0,x===!0)continue;break}}w.noext===!0&&(J=!1,G=!1);let j=D,z="",k="";P>0&&(z=D.slice(0,P),D=D.slice(P),I-=P),j&&G===!0&&I>0?(j=D.slice(0,I),k=D.slice(I)):G===!0?(j="",k=D):j=D,j&&j!==""&&j!=="/"&&j!==D&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(k&&(k=t.removeBackslashes(k)),j&&R===!0&&(j=t.removeBackslashes(j)));let U={prefix:z,input:v,start:P,base:j,glob:k,isBrace:B,isBracket:H,isGlob:G,isExtglob:J,isGlobstar:L,negated:K,negatedExtglob:q};if(w.tokens===!0&&(U.maxDepth=0,g(ee)||F.push(ae),U.tokens=F),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<C.length;ne++){let me=X?X+1:P,se=C[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&P!==0?(F[ne].isPrefix=!0,F[ne].value=z):F[ne].value=fe,S(F[ne]),U.maxDepth+=F[ne].depth),(ne!==0||fe!=="")&&T.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);T.push(ne),w.tokens&&(F[F.length-1].value=ne,S(F[F.length-1]),U.maxDepth+=F[F.length-1].depth)}U.slashes=C,U.parts=T}return U};r.exports=E}),Fk=re((e,r)=>{"use strict";Q();var t=Ds(),n=Rs(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:T,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:I,STAR:B,START_ANCHOR:H}=v,G=se=>`(${S}(?:(?!${H}${se.dot?F:w}).)*?)`,J=p.dot?"":T,L=p.dot?P:I,M=p.bash===!0?G(p):B;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let R={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,R),b=u.length;let K=[],q=[],Z=[],N=_,W,ee=()=>R.index===b-1,ae=R.peek=(se=1)=>u[R.index+se],oe=R.advance=()=>u[++R.index]||"",de=()=>u.slice(R.index+1),pe=(se="",fe=0)=>{R.consumed+=se,R.index+=fe},j=se=>{R.output+=se.output!=null?se.output:se.value,pe(se.value)},z=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),R.start++,se++;return se%2===0?!1:(R.negated=!0,R.start++,!0)},k=se=>{R[se]++,Z.push(se)},U=se=>{R[se]--,Z.pop()},X=se=>{if(N.type==="globstar"){let fe=R.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||K.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(R.output=R.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,R.output+=N.output)}if(K.length&&se.type!=="paren"&&(K[K.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=R.parens,ie.output=R.output;let ye=(p.capture?"(":"")+ie.open;k("parens"),X({type:se,value:fe,output:R.output?"":C}),X({type:"paren",extglob:!0,value:oe(),output:ye}),K.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=G(p)),(ye!==M||ee()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),U("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?P.repeat(V.length):""):$===0?L+(V?P.repeat(V.length):""):P.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(R.output=u,R):(R.output=n.wrapOutput(fe,R,d),R)}for(;!ee();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,R.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),R.brackets===0){X({type:"text",value:W});continue}}if(R.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,R.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=C);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(R.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){R.quotes=R.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){k("parens"),X({type:"paren",value:W});continue}if(W===")"){if(R.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=K[K.length-1];if(ie&&R.parens===ie.parens+1){me(K.pop());continue}X({type:"paren",value:W,output:R.parens?")":"\\)"}),U("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else k("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(R.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}U("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(R.output=R.output.slice(0,-N.value.length),p.literalBrackets===!0){R.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,R.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){k("braces");let ie={type:"brace",value:W,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};q.push(ie),X(ie);continue}if(W==="}"){let ie=q[q.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),R.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=R.output.slice(0,ie.outputIndex),xe=R.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",R.output=we;for(let V of xe)R.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),U("braces"),q.pop();continue}if(W==="|"){K.length>0&&K[K.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=q[q.length-1];ye&&Z[Z.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(R.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=q[q.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(R.braces+R.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:I});continue}X({type:"qmark",value:W,output:P});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&R.index===0){z();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||R.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],R.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,R.backtrack=!0,R.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=R.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=K.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[R.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&ee()){N.type="globstar",N.value+=W,N.output=G(p),R.output=N.output,R.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&ee()){R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=G(p)+(p.strictSlashes?")":"|$)"),N.value+=W,R.globstar=!0,R.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${G(p)}${x}|${x}${ue})`,N.value+=W,R.output+=ie.output+N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${G(p)}${x})`,R.output=N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-N.output.length),N.type="globstar",N.output=G(p),N.value+=W,R.output+=N.output,R.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=J+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(R.index===R.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(R.output+=D,N.output+=D):p.dot===!0?(R.output+=O,N.output+=O):(R.output+=J,N.output+=J),ae()!=="*"&&(R.output+=C,N.output+=C)),X(fe)}for(;R.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R.output=n.escapeLast(R.output,"["),U("brackets")}for(;R.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));R.output=n.escapeLast(R.output,"("),U("parens")}for(;R.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));R.output=n.escapeLast(R.output,"{"),U("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),R.backtrack===!0){R.output="";for(let se of R.tokens)R.output+=se.output!=null?se.output:se.value,se.suffix&&(R.output+=se.suffix)}return R};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:C}=t.globChars(_),F=p.dot?w:m,T=p.dot?A:m,D=p.capture?"":"?:",O={negated:!1,prefix:""},P=p.bash===!0?".*?":x;p.capture&&(P=`(${P})`);let I=J=>J.noglobstar===!0?P:`(${D}(?:(?!${C}${J.dot?v:g}).)*?)`,B=J=>{switch(J){case"*":return`${F}${E}${P}`;case".*":return`${g}${E}${P}`;case"*.*":return`${F}${P}${g}${E}${P}`;case"*/*":return`${F}${P}${S}${E}${T}${P}`;case"**":return F+I(p);case"**/*":return`(?:${F}${I(p)}${S})?${T}${E}${P}`;case"**/*.*":return`(?:${F}${I(p)}${S})?${T}${P}${g}${E}${P}`;case"**/.*":return`(?:${F}${I(p)}${S})?${g}${E}${P}`;default:{let L=/^(.*?)\.(\w+)$/.exec(J);if(!L)return;let M=B(L[1]);return M?M+g+L[2]:void 0}}},H=n.removePrefix(u,O),G=B(H);return G&&p.strictSlashes!==!0&&(G+=`${S}?`),G},r.exports=h}),Pk=re((e,r)=>{"use strict";Q();var t=ce("path"),n=Tk(),i=Fk(),c=Rs(),a=Ds(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),Bk=re((e,r)=>{"use strict";Q(),r.exports=Pk()}),Lk=re((e,r)=>{"use strict";Q();var t=ce("util"),n=Ok(),i=Bk(),c=Rs(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),Ik=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=ce("path"),t=Sk(),n=Lk(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(B,H={}){return!u(B,H)}e.isStaticPattern=h;function u(B,H={}){return B===""?!1:!!(H.caseSensitiveMatch===!1||B.includes(c)||a.test(B)||s.test(B)||o.test(B)||H.extglob!==!1&&f.test(B)||H.braceExpansion!==!1&&d(B))}e.isDynamicPattern=u;function d(B){let H=B.indexOf("{");if(H===-1)return!1;let G=B.indexOf("}",H+1);if(G===-1)return!1;let J=B.slice(H,G);return l.test(J)}function p(B){return b(B)?B.slice(1):B}e.convertToPositivePattern=p;function y(B){return"!"+B}e.convertToNegativePattern=y;function b(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=b;function _(B){return!b(B)}e.isPositivePattern=_;function g(B){return B.filter(b)}e.getNegativePatterns=g;function S(B){return B.filter(_)}e.getPositivePatterns=S;function E(B){return B.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(B){return B.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(B){return t(B,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(B){return B.includes(i)}e.hasGlobStar=A;function x(B){return B.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function C(B){let H=r.basename(B);return x(B)||h(H)}e.isAffectDepthOfReadingPattern=C;function F(B){return B.reduce((H,G)=>H.concat(T(G)),[])}e.expandPatternsWithBraceExpansion=F;function T(B){return n.braces(B,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function D(B,H){let{parts:G}=n.scan(B,Object.assign(Object.assign({},H),{parts:!0}));return G.length===0&&(G=[B]),G[0].startsWith("/")&&(G[0]=G[0].slice(1),G.unshift("")),G}e.getPatternParts=D;function O(B,H){return n.makeRe(B,H)}e.makeRe=O;function P(B,H){return B.map(G=>O(G,H))}e.convertPatternsToRe=P;function I(B,H){return H.some(G=>G.test(B))}e.matchAny=I}),Mk=re((e,r)=>{"use strict";Q();var t=ce("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),Nk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=Mk();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),jk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),pr=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=gk();e.array=r;var t=bk();e.errno=t;var n=vk();e.fs=n;var i=_k();e.path=i;var c=Ik();e.pattern=c;var a=Nk();e.stream=a;var s=jk();e.string=s}),$k=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=pr();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),Hk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),qk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),Gk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),Uk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),zk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Uk(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),vn=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=qk(),t=Gk(),n=zk();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),Wk=re((e,r)=>{Q();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),Vk=re((e,r)=>{Q(),r.exports=n;var t=Wk();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),_m=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),Kk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),wm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=Kk();e.fs=r}),Em=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),Yk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=vn(),t=Vk(),n=_m(),i=wm(),c=Em();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),Xk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=vn(),t=_m(),n=wm(),i=Em();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),Zk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),Qk=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=vn(),n=Zk(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),Gu=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=Yk(),t=Xk(),n=Qk();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),Jk=re((e,r)=>{"use strict";Q();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),eC=re((e,r)=>{"use strict";Q();var t=Jk();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:C,error:F};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var T=h,D=0;T;)T=T.next,D++;return D}function S(){for(var T=h,D=[];T;)D.push(T.value),T=T.next;return D}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,A()}}function v(){return d===0&&y.length()===0}function m(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,O.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=O,u=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function w(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,d===y.concurrency||y.paused?h?(O.next=h,h=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function A(T){T&&l.release(T);var D=h;D?y.paused?d--:(u===h&&(u=null),h=D.next,D.next=null,o.call(s,D.value,D.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function C(){h=null,u=null,y.drain(),y.drain=i}function F(T){p=T}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Uu=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),Sm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Uu(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),Am=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("events"),t=Gu(),n=eC(),i=Uu(),c=Sm(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(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(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),tC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Am(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),rC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=Am(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),nC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Gu(),t=Uu(),n=Sm(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),iC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=nC(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),sC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=Gu(),n=class{constructor(i={}){this._options=i,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,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),zu=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=tC(),t=rC(),n=iC(),i=sC();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Wu=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=vn(),n=pr(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),xm=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=vn(),n=zu(),i=Wu(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),oC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=zu(),t=Wu(),n=xm(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),aC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=pr(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),uC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=aC(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),lC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=pr(),t=uC(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),cC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=pr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),hC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=pr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),fC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=pr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Vu=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=lC(),n=cC(),i=hC(),c=fC(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.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}}};e.default=a}),pC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=oC(),t=Vu(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),dC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=xm(),n=Vu(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),mC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=vn(),t=zu(),n=Wu(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),yC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=mC(),t=Vu(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),gC=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs"),t=ce("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,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,n),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(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),bC=re((e,r)=>{"use strict";Q();var t=$k(),n=Hk(),i=pC(),c=dC(),a=yC(),s=gC(),o=pr();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Q();Q();function km(e){return typeof e>"u"||e===null}function vC(e){return typeof e=="object"&&e!==null}function _C(e){return Array.isArray(e)?e:km(e)?[]:[e]}function wC(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function EC(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function SC(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var AC=km,xC=vC,kC=_C,CC=EC,DC=SC,RC=wC,Ve={isNothing:AC,isObject:xC,toArray:kC,repeat:CC,isNegativeZero:DC,extend:RC};function Cm(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
77
-
78
- `+e.mark.snippet),n+" "+t):n}function Wn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Cm(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wn.prototype=Object.create(Error.prototype);Wn.prototype.constructor=Wn;Wn.prototype.toString=function(e){return this.name+": "+Cm(this,e)};var ct=Wn;function bu(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function vu(e,r){return Ve.repeat(" ",r-e.length)+e}function OC(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=bu(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ve.repeat(" ",r.indent)+vu((e.line-o+1).toString(),l)+" | "+f.str+`
79
- `+s;for(f=bu(e.buffer,n[a],i[a],e.position,h),s+=Ve.repeat(" ",r.indent)+vu((e.line+1).toString(),l)+" | "+f.str+`
80
- `,s+=Ve.repeat("-",r.indent+l+3+f.pos)+`^
81
- `,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=bu(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ve.repeat(" ",r.indent)+vu((e.line+o+1).toString(),l)+" | "+f.str+`
82
- `;return s.replace(/\n$/,"")}var TC=OC,FC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],PC=["scalar","sequence","mapping"];function BC(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function LC(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(FC.indexOf(t)===-1)throw new ct('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=BC(r.styleAliases||null),PC.indexOf(this.kind)===-1)throw new ct('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var tt=LC;function p0(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function IC(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function Su(e){return this.extend(e)}Su.prototype.extend=function(e){var r=[],t=[];if(e instanceof tt)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new ct("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof tt))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new ct("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new ct("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof tt))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Su.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=p0(n,"implicit"),n.compiledExplicit=p0(n,"explicit"),n.compiledTypeMap=IC(n.compiledImplicit,n.compiledExplicit),n};var MC=Su,NC=new tt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),jC=new tt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),$C=new tt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),HC=new MC({explicit:[NC,jC,$C]});function qC(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function GC(){return null}function UC(e){return e===null}var zC=new tt("tag:yaml.org,2002:null",{kind:"scalar",resolve:qC,construct:GC,predicate:UC,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function WC(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function VC(e){return e==="true"||e==="True"||e==="TRUE"}function KC(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var YC=new tt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:WC,construct:VC,predicate:KC,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function XC(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZC(e){return 48<=e&&e<=55}function QC(e){return 48<=e&&e<=57}function JC(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!XC(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!ZC(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!QC(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function eD(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function tD(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ve.isNegativeZero(e)}var rD=new tt("tag:yaml.org,2002:int",{kind:"scalar",resolve:JC,construct:eD,predicate:tD,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),nD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iD(e){return!(e===null||!nD.test(e)||e[e.length-1]==="_")}function sD(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var oD=/^[-+]?[0-9]+e/;function aD(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ve.isNegativeZero(e))return"-0.0";return t=e.toString(10),oD.test(t)?t.replace("e",".e"):t}function uD(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ve.isNegativeZero(e))}var lD=new tt("tag:yaml.org,2002:float",{kind:"scalar",resolve:iD,construct:sD,predicate:uD,represent:aD,defaultStyle:"lowercase"}),cD=HC.extend({implicit:[zC,YC,rD,lD]}),hD=cD,Dm=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Rm=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 fD(e){return e===null?!1:Dm.exec(e)!==null||Rm.exec(e)!==null}function pD(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=Dm.exec(e),r===null&&(r=Rm.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function dD(e){return e.toISOString()}var mD=new tt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fD,construct:pD,instanceOf:Date,represent:dD});function yD(e){return e==="<<"||e===null}var gD=new tt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yD}),Ku=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
83
- \r`;function bD(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=Ku;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function vD(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=Ku,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function _D(e){var r="",t=0,n,i,c=e.length,a=Ku;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function wD(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ED=new tt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:bD,construct:vD,predicate:wD,represent:_D}),SD=Object.prototype.hasOwnProperty,AD=Object.prototype.toString;function xD(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,AD.call(i)!=="[object Object]")return!1;for(c in i)if(SD.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function kD(e){return e!==null?e:[]}var CD=new tt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xD,construct:kD}),DD=Object.prototype.toString;function RD(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],DD.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function OD(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var TD=new tt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:RD,construct:OD}),FD=Object.prototype.hasOwnProperty;function PD(e){if(e===null)return!0;var r,t=e;for(r in t)if(FD.call(t,r)&&t[r]!==null)return!1;return!0}function BD(e){return e!==null?e:{}}var LD=new tt("tag:yaml.org,2002:set",{kind:"mapping",resolve:PD,construct:BD}),Om=hD.extend({implicit:[mD,gD],explicit:[ED,CD,TD,LD]}),lr=Object.prototype.hasOwnProperty,bs=1,Tm=2,Fm=3,vs=4,_u=1,ID=2,d0=3,MD=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ND=/[\x85\u2028\u2029]/,jD=/[,\[\]\{\}]/,Pm=/^(?:!|!!|![a-z\-]+!)$/i,Bm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function m0(e){return Object.prototype.toString.call(e)}function Bt(e){return e===10||e===13}function Tr(e){return e===9||e===32}function ht(e){return e===9||e===32||e===10||e===13}function cn(e){return e===44||e===91||e===93||e===123||e===125}function $D(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function HD(e){return e===120?2:e===117?4:e===85?8:0}function qD(e){return 48<=e&&e<=57?e-48:-1}function y0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
84
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function GD(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Lm=new Array(256),Im=new Array(256);for(Or=0;Or<256;Or++)Lm[Or]=y0(Or)?1:0,Im[Or]=y0(Or);var Or;function UD(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||Om,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Mm(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=TC(t),new ct(r,t)}function Re(e,r){throw Mm(e,r)}function _s(e,r){e.onWarning&&e.onWarning.call(null,Mm(e,r))}var g0={YAML:function(e,r,t){var n,i,c;e.version!==null&&Re(e,"duplication of %YAML directive"),t.length!==1&&Re(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Re(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&Re(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&_s(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Re(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],Pm.test(n)||Re(e,"ill-formed tag handle (first argument) of the TAG directive"),lr.call(e.tagMap,n)&&Re(e,'there is a previously declared suffix for "'+n+'" tag handle'),Bm.test(i)||Re(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Re(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function ur(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Re(e,"expected valid JSON character");else MD.test(s)&&Re(e,"the stream contains non-printable characters");e.result+=s}}function b0(e,r,t,n){var i,c,a,s;for(Ve.isObject(t)||Re(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],lr.call(r,c)||(r[c]=t[c],n[c]=!0)}function hn(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Re(e,"nested arrays are not supported inside keys"),typeof i=="object"&&m0(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&m0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)b0(e,r,c[f],t);else b0(e,r,c,t);else!e.json&&!lr.call(t,i)&&lr.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Re(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function Yu(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Re(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ue(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Tr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Bt(i))for(Yu(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&_s(e,"deficient indentation"),n}function Os(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||ht(t)))}function Xu(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ve.repeat(`
85
- `,r-1))}function zD(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),ht(d)||cn(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)&&(i=e.input.charCodeAt(e.position+1),ht(i)||t&&cn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ht(i)||t&&cn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ht(n))break}else{if(e.position===e.lineStart&&Os(e)||t&&cn(d))break;if(Bt(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,Ue(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(ur(e,c,a,!1),Xu(e,e.line-o),c=a=e.position,s=!1),Tr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return ur(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function WD(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(ur(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Bt(t)?(ur(e,n,i,!0),Xu(e,Ue(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Os(e)?Re(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Re(e,"unexpected end of the stream within a single quoted scalar")}function VD(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ur(e,t,e.position,!0),e.position++,!0;if(s===92){if(ur(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),Bt(s))Ue(e,!1,r);else if(s<256&&Lm[s])e.result+=Im[s],e.position++;else if((a=HD(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=$D(s))>=0?c=(c<<4)+a:Re(e,"expected hexadecimal character");e.result+=GD(c),e.position++}else Re(e,"unknown escape sequence");t=n=e.position}else Bt(s)?(ur(e,t,n,!0),Xu(e,Ue(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Os(e)?Re(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Re(e,"unexpected end of the stream within a double quoted scalar")}function KD(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(Ue(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Re(e,"expected the node content, but found ','"):Re(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),ht(f)&&(h=u=!0,e.position++,Ue(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,pn(e,r,bs,!1,!0),b=e.tag,y=e.result,Ue(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Ue(e,!0,r),pn(e,r,bs,!1,!0),_=e.result),d?hn(e,s,p,b,y,_,n,i,c):h?s.push(hn(e,null,p,b,y,_,n,i,c)):s.push(y),Ue(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Re(e,"unexpected end of the stream within a flow collection")}function YD(e,r){var t,n,i=_u,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)_u===i?i=h===43?d0:ID:Re(e,"repeat of a chomping mode identifier");else if((l=qD(h))>=0)l===0?Re(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Re(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Tr(h)){do h=e.input.charCodeAt(++e.position);while(Tr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Bt(h)&&h!==0)}for(;h!==0;){for(Yu(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Bt(h)){o++;continue}if(e.lineIndent<s){i===d0?e.result+=Ve.repeat(`
86
- `,c?1+o:o):i===_u&&c&&(e.result+=`
87
- `);break}for(n?Tr(h)?(f=!0,e.result+=Ve.repeat(`
88
- `,c?1+o:o)):f?(f=!1,e.result+=Ve.repeat(`
89
- `,o+1)):o===0?c&&(e.result+=" "):e.result+=Ve.repeat(`
90
- `,o):e.result+=Ve.repeat(`
91
- `,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!Bt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);ur(e,t,e.position,!1)}return!0}function v0(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!ht(a))));){if(s=!0,e.position++,Ue(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,pn(e,r,Fm,!1,!0),c.push(e.result),Ue(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Re(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function XD(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&ht(n))g===63?(b&&(hn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Re(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!pn(e,t,Tm,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Tr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),ht(g)||Re(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(hn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Re(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Re(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),pn(e,r,vs,!0,i)&&(b?p=e.result:y=e.result),b||(hn(e,h,u,d,p,y,a,s,o),d=p=y=null),Ue(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Re(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&hn(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function ZD(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Re(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Re(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ht(a);)a===33&&(n?Re(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Pm.test(i)||Re(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),jD.test(c)&&Re(e,"tag suffix cannot contain flow indicator characters")}c&&!Bm.test(c)&&Re(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Re(e,"tag name is malformed: "+c)}return t?e.tag=c:lr.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Re(e,'undeclared tag handle "'+i+'"'),!0}function QD(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Re(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!ht(t)&&!cn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function JD(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!ht(n)&&!cn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),lr.call(e.anchorMap,t)||Re(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ue(e,!0,-1),!0}function pn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=vs===t||Fm===t,n&&Ue(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;ZD(e)||QD(e);)Ue(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||vs===t)&&(bs===t||Tm===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(v0(e,b)||XD(e,b,y))||KD(e,y)?l=!0:(a&&YD(e,y)||WD(e,y)||VD(e,y)?l=!0:JD(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Re(e,"alias node should not have any properties")):zD(e,y,bs===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&v0(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Re(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(lr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Re(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Re(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Re(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function eR(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ue(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!ht(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Re(e,"directive name must not be less than one character in length");a!==0;){for(;Tr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Bt(a));break}if(Bt(a))break;for(t=e.position;a!==0&&!ht(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Yu(e),lr.call(g0,n)?g0[n](e,n,i):_s(e,'unknown document directive "'+n+'"')}if(Ue(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ue(e,!0,-1)):c&&Re(e,"directives end mark is expected"),pn(e,e.lineIndent-1,vs,!1,!0),Ue(e,!0,-1),e.checkLineBreaks&&ND.test(e.input.slice(r,e.position))&&_s(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Os(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ue(e,!0,-1));return}if(e.position<e.length-1)Re(e,"end of the stream or a document separator is expected");else return}function Nm(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
92
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new UD(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Re(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)eR(t);return t.documents}function tR(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=Nm(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function rR(e,r){var t=Nm(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ct("expected a single document in the stream, but found more")}}var nR=tR,iR=rR,jm={loadAll:nR,load:iR},$m=Object.prototype.toString,Hm=Object.prototype.hasOwnProperty,Zu=65279,sR=9,Vn=10,oR=13,aR=32,uR=33,lR=34,Au=35,cR=37,hR=38,fR=39,pR=42,qm=44,dR=45,ws=58,mR=61,yR=62,gR=63,bR=64,Gm=91,Um=93,vR=96,zm=123,_R=124,Wm=125,nt={};nt[0]="\\0";nt[7]="\\a";nt[8]="\\b";nt[9]="\\t";nt[10]="\\n";nt[11]="\\v";nt[12]="\\f";nt[13]="\\r";nt[27]="\\e";nt[34]='\\"';nt[92]="\\\\";nt[133]="\\N";nt[160]="\\_";nt[8232]="\\L";nt[8233]="\\P";var wR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ER=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function SR(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&Hm.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function AR(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ve.repeat("0",n-r.length)+r}var xR=1,Kn=2;function kR(e){this.schema=e.schema||Om,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ve.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=SR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Kn:xR,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function _0(e,r){for(var t=Ve.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
93
- `,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
94
- `&&(c+=t),c+=a;return c}function xu(e,r){return`
95
- `+Ve.repeat(" ",e.indent*r)}function CR(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Es(e){return e===aR||e===sR}function Yn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Zu||65536<=e&&e<=1114111}function w0(e){return Yn(e)&&e!==Zu&&e!==oR&&e!==Vn}function E0(e,r,t){var n=w0(e),i=n&&!Es(e);return(t?n:n&&e!==qm&&e!==Gm&&e!==Um&&e!==zm&&e!==Wm)&&e!==Au&&!(r===ws&&!i)||w0(r)&&!Es(r)&&e===Au||r===ws&&i}function DR(e){return Yn(e)&&e!==Zu&&!Es(e)&&e!==dR&&e!==gR&&e!==ws&&e!==qm&&e!==Gm&&e!==Um&&e!==zm&&e!==Wm&&e!==Au&&e!==hR&&e!==pR&&e!==uR&&e!==_R&&e!==mR&&e!==yR&&e!==fR&&e!==lR&&e!==cR&&e!==bR&&e!==vR}function RR(e){return!Es(e)&&e!==ws}function Un(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function Vm(e){var r=/^\n* /;return r.test(e)}var Km=1,ku=2,Ym=3,Xm=4,ln=5;function OR(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=DR(Un(e,0))&&RR(Un(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=Un(e,o),!Yn(f))return ln;y=y&&E0(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=Un(e,o),f===Vn)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Yn(f))return ln;y=y&&E0(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?Km:c===Kn?ln:ku:t>9&&Vm(e)?ln:a?c===Kn?ln:ku:u?Xm:Ym}function TR(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===Kn?'""':"''";if(!e.noCompatMode&&(wR.indexOf(r)!==-1||ER.test(r)))return e.quotingType===Kn?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return CR(e,f)}switch(OR(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case Km:return r;case ku:return"'"+r.replace(/'/g,"''")+"'";case Ym:return"|"+S0(r,e.indent)+A0(_0(r,c));case Xm:return">"+S0(r,e.indent)+A0(_0(FR(r,a),c));case ln:return'"'+PR(r)+'"';default:throw new ct("impossible error: invalid scalar style")}}()}function S0(e,r){var t=Vm(e)?String(r):"",n=e[e.length-1]===`
96
- `,i=n&&(e[e.length-2]===`
97
- `||e===`
98
- `),c=i?"+":n?"":"-";return t+c+`
99
- `}function A0(e){return e[e.length-1]===`
100
- `?e.slice(0,-1):e}function FR(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
101
- `);return f=f!==-1?f:e.length,t.lastIndex=f,x0(e.slice(0,f),r)}(),i=e[0]===`
102
- `||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
103
- `:"")+x0(o,r),i=c}return n}function x0(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
104
- `+e.slice(i,c),i=c+1),a=s;return o+=`
105
- `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
106
- `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function PR(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=Un(e,i),n=nt[t],!n&&Yn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||AR(t);return r}function BR(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Kt(e,r,s,!1,!1)||typeof s>"u"&&Kt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function k0(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Kt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Kt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=xu(e,r)),e.dump&&Vn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function LR(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Kt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Kt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function IR(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ct("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=xu(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Kt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=xu(e,r)),Kt(e,r+1,l,!0,h)&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function C0(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,$m.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(Hm.call(s.represent,o))n=s.represent[o](r,o);else throw new ct("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Kt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,C0(e,t,!1)||C0(e,t,!0);var s=$m.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(IR(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(LR(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?k0(e,r-1,e.dump,i):k0(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(BR(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&TR(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new ct("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function MR(e,r){var t=[],n=[],i,c;for(Cu(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Cu(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Cu(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Cu(e[n[i]],r,t)}function NR(e,r){r=r||{};var t=new kR(r);t.noRefs||MR(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Kt(t,0,n,!0,!0)?t.dump+`
107
- `:""}var jR=NR,$R={dump:jR};function Qu(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var c4=jm.load,h4=jm.loadAll,f4=$R.dump,p4=Qu("safeLoad","load"),d4=Qu("safeLoadAll","loadAll"),m4=Qu("safeDump","dump"),y4=Ze(bC());Q();var rt=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,rt)}},HR=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ft({workspaceRoot:e}){let r=Yt.default.join(e,"package.json");try{return(0,vt.readJsonSync)(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new rt(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new rt(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function Ts({workspaceRoot:e}){let{packageManager:r}=ft({workspaceRoot:e});if(r)try{let t=HR.exec(r);if(t){let[n,i]=t;return i}}catch{}}function si({workspaceRoot:e}){let r=ft({workspaceRoot:e}),t=Yt.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function D0({workspaceRoot:e}){let r=Yt.default.join(e,"pnpm-workspace.yaml");if((0,vt.existsSync)(r))try{let t=h0.load((0,vt.readFileSync)(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new rt(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function Fs({root:e,lockFile:r,workspaceConfig:t}){let n=c=>Yt.default.join(e,c),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function Ju({workspaces:e}){var r;return e?Array.isArray(e)?e:"packages"in e?(r=e.packages)!=null?r:[]:[]:[]}function Ps({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=[`${t}/package.json`];return(0,r2.sync)(n,{onlyFiles:!0,absolute:!0,cwd:e,ignore:["**/node_modules/**"]})}).map(t=>{let n=Yt.default.dirname(t),{name:i,description:c}=si({workspaceRoot:n});return{name:i,description:c,paths:{root:n,packageJson:t,nodeModules:Yt.default.join(n,"node_modules")}}}):[]}function qR({directory:e}){let r=Yt.default.resolve(process.cwd(),e);return{exists:(0,vt.existsSync)(r),absolute:r}}function dr({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function GR({project:e}){let r=t=>!(t.includes("*")&&(t.includes("**")||t.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(n=>t.includes(n)));return e.workspaceData.globs.every(r)}function Vt({project:e,options:r}){r!=null&&r.dry||(0,vt.rmSync)(e.paths.lockfile,{force:!0})}async function n2({project:e,options:r}){if(!(r!=null&&r.dry)&&(0,vt.existsSync)(e.paths.lockfile))try{let{stdout:t}=await(0,t2.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:e.paths.root});await(0,vt.writeFile)(Yt.default.join(e.paths.root,"yarn.lock"),t)}catch{}finally{(0,vt.rmSync)(e.paths.lockfile,{force:!0})}}function UR({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:c}=i;if(e[c]){let a=e[c],s=a.startsWith("workspace:")?a.slice(10):a;e[c]=t.name==="pnpm"?`workspace:${s}`:s,n.push(c)}}),{dependencyList:e,updated:n}}function cr({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm","bun"].includes(t.name)&&["yarn","npm","bun"].includes(e.packageManager))return;let c=ft({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];s.forEach(h=>{let u=c[h];if(u){let{updated:d,dependencyList:p}=UR({dependencyList:u,project:e,to:t});c[h]=p,a[h]=d}});let o=h=>{let u=a[h].length;if(u>0)return`${e2.default.green(u.toString())} ${h}`},f=s.map(o).filter(Boolean),l=`./${Qm.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${l}`:d===f.length-1?h+=`and ${u} in ${l}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||(0,Jm.writeJSONSync)(r.paths.packageJson,c,{spaces:2})}var hr={name:"pnpm",lock:"pnpm-lock.yaml"};async function i2(e){let r=Fr.default.join(e.workspaceRoot,hr.lock),t=Fr.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=Ts({workspaceRoot:e.workspaceRoot});return(0,at.existsSync)(r)||(0,at.existsSync)(t)||n===hr.name}async function zR(e){if(!await i2(e))throw new rt("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=si(e);return{name:r,description:t,packageManager:hr.name,paths:Fs({root:e.workspaceRoot,lockFile:hr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:D0(e),workspaces:Ps({workspaceGlobs:D0(e),...e})}}}async function WR(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(dr({action:"create",packageManager:hr.name,project:r}));let a=ft({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||((0,at.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),c&&(n.rootStep('adding "pnpm-workspace.yaml"'),(0,at.writeFileSync)(Fr.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
108
- ${r.workspaceData.globs.map(s=>` - "${s}"`).join(`
109
- `)}`))),c&&(cr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{cr({workspace:s,project:r,to:t,logger:n,options:i})}))}async function VR(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(dr({action:"remove",packageManager:hr.name,project:r}));let c=ft({workspaceRoot:r.paths.root});if(r.paths.workspaceConfig&&i&&(t.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||(0,at.rmSync)(r.paths.workspaceConfig,{force:!0})),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,at.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,at.rm)(s,{recursive:!0,force:!0})))}catch{throw new rt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function KR(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Fr.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,at.rmSync)(r.paths.lockfile,{force:!0})}async function YR(e){let{project:r,options:t,logger:n}=e,i=()=>{n.subStep(`converting ${Fr.default.relative(r.paths.root,r.paths.lockfile)} to ${hr.lock}`)},c=async()=>{if(!(t!=null&&t.dry)&&(0,at.existsSync)(r.paths.lockfile))try{await(0,Zm.default)(hr.name,["import"],{stdio:"ignore",cwd:r.paths.root})}catch{}finally{Vt({project:r,options:t})}};switch(r.packageManager){case"pnpm":break;case"bun":i(),await n2({project:r,options:t}),await c(),(0,at.rmSync)(Fr.default.join(r.paths.root,"yarn.lock"),{force:!0});break;case"npm":i(),await c();break;case"yarn":i(),await c();break}}var XR={detect:i2,read:zR,create:WR,remove:VR,clean:KR,convertLock:YR},dn={name:"npm",lock:"package-lock.json"};async function s2(e){let r=Xn.default.join(e.workspaceRoot,dn.lock),t=Ts({workspaceRoot:e.workspaceRoot});return(0,Lt.existsSync)(r)||t===dn.name}async function ZR(e){if(!await s2(e))throw new rt("Not an npm project",{type:"package_manager-unexpected"});let r=ft(e),{name:t,description:n}=si(e),i=Ju({workspaces:r.workspaces});return{name:t,description:n,packageManager:dn.name,paths:Fs({root:e.workspaceRoot,lockFile:dn.lock}),workspaceData:{globs:i,workspaces:Ps({workspaceGlobs:i,...e})}}}async function QR(e){let{project:r,options:t,to:n,logger:i}=e,c=r.workspaceData.globs.length>0;i.mainStep(dr({packageManager:dn.name,action:"create",project:r}));let a=ft({workspaceRoot:r.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Xn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,c?(i.rootStep(`adding "workspaces" field to ${Xn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,t!=null&&t.dry||(0,Lt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),cr({workspace:{name:"root",paths:r.paths},project:r,to:n,logger:i,options:t}),i.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{cr({workspace:s,project:r,to:n,logger:i,options:t})})):t!=null&&t.dry||(0,Lt.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function JR(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(dr({packageManager:dn.name,action:"remove",project:r}));let c=ft({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,Lt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,Lt.rm)(s,{recursive:!0,force:!0})))}catch{throw new rt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function eO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Xn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,Lt.rmSync)(r.paths.lockfile,{force:!0})}async function tO(e){let{project:r,options:t}=e;switch(r.packageManager){case"pnpm":Vt({project:r,options:t});break;case"bun":Vt({project:r,options:t});break;case"npm":break;case"yarn":Vt({project:r,options:t});break}}var rO={detect:s2,read:ZR,create:QR,remove:JR,clean:eO,convertLock:tO},Pr={name:"yarn",lock:"yarn.lock"};async function o2(e){let r=mn.default.join(e.workspaceRoot,Pr.lock),t=Ts({workspaceRoot:e.workspaceRoot});return(0,It.existsSync)(r)||t===Pr.name}async function nO(e){if(!await o2(e))throw new rt("Not a yarn project",{type:"package_manager-unexpected"});let r=ft(e),{name:t,description:n}=si(e),i=Ju({workspaces:r.workspaces});return{name:t,description:n,packageManager:Pr.name,paths:Fs({root:e.workspaceRoot,lockFile:Pr.lock}),workspaceData:{globs:i,workspaces:Ps({workspaceGlobs:i,...e})}}}async function iO(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(dr({packageManager:Pr.name,action:"create",project:r}));let a=ft({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${mn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${mn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||(0,It.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),cr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{cr({workspace:s,project:r,to:t,logger:n,options:i})})):i!=null&&i.dry||(0,It.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function sO(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(dr({packageManager:Pr.name,action:"remove",project:r}));let c=ft({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,It.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,It.rm)(s,{recursive:!0,force:!0})))}catch{throw new rt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function oO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${mn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,It.rmSync)(r.paths.lockfile,{force:!0})}async function aO(e){let{project:r,options:t,logger:n}=e,i=()=>{n.subStep(`converting ${mn.default.relative(r.paths.root,r.paths.lockfile)} to ${Pr.lock}`)};switch(r.packageManager){case"pnpm":Vt({project:r,options:t});break;case"bun":i(),await n2({project:r,options:t});break;case"npm":Vt({project:r,options:t});break;case"yarn":break}}var uO={detect:o2,read:nO,create:iO,remove:sO,clean:oO,convertLock:aO},yn={name:"bun",lock:"bun.lockb"};async function a2(e){let r=Zn.default.join(e.workspaceRoot,yn.lock),t=Ts({workspaceRoot:e.workspaceRoot});return(0,Mt.existsSync)(r)||t===yn.name}async function lO(e){if(!await a2(e))throw new rt("Not a bun project",{type:"package_manager-unexpected"});let r=ft(e),{name:t,description:n}=si(e),i=Ju({workspaces:r.workspaces});return{name:t,description:n,packageManager:yn.name,paths:Fs({root:e.workspaceRoot,lockFile:yn.lock}),workspaceData:{globs:i,workspaces:Ps({workspaceGlobs:i,...e})}}}async function cO(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;if(!GR({project:r}))throw new rt("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});n.mainStep(dr({packageManager:yn.name,action:"create",project:r}));let a=ft({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Zn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${Zn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||(0,Mt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),cr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{cr({workspace:s,project:r,to:t,logger:n,options:i})})):i!=null&&i.dry||(0,Mt.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function hO(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(dr({packageManager:yn.name,action:"remove",project:r}));let c=ft({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,Mt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,Mt.rm)(s,{recursive:!0,force:!0})))}catch{throw new rt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function fO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Zn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,Mt.rmSync)(r.paths.lockfile,{force:!0})}async function pO(e){let{project:r,options:t}=e;switch(r.packageManager){case"pnpm":Vt({project:r,options:t});break;case"bun":break;case"npm":Vt({project:r,options:t});break;case"yarn":Vt({project:r,options:t});break}}var dO={detect:a2,read:lO,create:cO,remove:hO,clean:fO,convertLock:pO},u2={pnpm:XR,yarn:uO,npm:rO,bun:dO};async function el({root:e}){let{exists:r,absolute:t}=qR({directory:e});if(!r)throw new rt(`Could not find directory at ${t}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(u2))if(await n({workspaceRoot:t}))return i({workspaceRoot:t});throw new rt("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var wO=Object.create,tl=Object.defineProperty,EO=Object.getOwnPropertyDescriptor,SO=Object.getOwnPropertyNames,AO=Object.getPrototypeOf,xO=Object.prototype.hasOwnProperty,le=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),kO=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),l2=(e,r)=>{for(var t in r)tl(e,t,{get:r[t],enumerable:!0})},CO=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of SO(r))!xO.call(e,i)&&i!==t&&tl(e,i,{get:()=>r[i],enumerable:!(n=EO(r,i))||n.enumerable});return e},Ne=(e,r,t)=>(t=e!=null?wO(AO(e)):{},CO(r||!e||!e.__esModule?tl(t,"default",{value:e,enumerable:!0}):t,e)),Y=kO(()=>{});var DO=te((e,r)=>{"use strict";Y();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),Bs=te((e,r)=>{"use strict";Y();var t=DO(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),RO=te((e,r)=>{Y(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Ls=te((e,r)=>{Y();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=le("assert"),c=RO(),a=/^win/i.test(t.platform),s=le("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_});var f2=He(require("os"),1),OO=te((e,r)=>{Y(),r.exports=c,c.sync=a;var t=le("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),TO=te((e,r)=>{Y(),r.exports=n,n.sync=i;var t=le("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),FO=te((e,r)=>{Y();var t=le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=OO():n=TO(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),PO=te((e,r)=>{Y();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=le("path"),i=t?";":":",c=FO(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,C)=>{if(!x&&C)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),c2=te((e,r)=>{"use strict";Y();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),BO=te((e,r)=>{"use strict";Y();var t=le("path"),n=PO(),i=c2();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),LO=te((e,r)=>{"use strict";Y();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),IO=te((e,r)=>{"use strict";Y(),r.exports=/^#!(.*)/}),MO=te((e,r)=>{"use strict";Y();var t=IO();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),NO=te((e,r)=>{"use strict";Y();var t=le("fs"),n=MO();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),jO=te((e,r)=>{"use strict";Y();var t=le("path"),n=BO(),i=LO(),c=NO(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),$O=te((e,r)=>{"use strict";Y();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),HO=te((e,r)=>{"use strict";Y();var t=le("child_process"),n=jO(),i=$O();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),qO=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n=typeof t=="string"?`
110
- `:`
111
- `.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),GO=te((e,r)=>{"use strict";Y();var t=le("path"),n=c2(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),UO=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),h2=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),zO=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=le("os"),t=UO(),n=h2(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),WO=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=le("os"),t=zO(),n=h2(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),VO=te((e,r)=>{"use strict";Y();var{signalsByName:t}=WO(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
112
- ${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
113
- `);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),KO=te((e,r)=>{"use strict";Y();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),YO=te((e,r)=>{"use strict";Y();var t=le("os"),n=Ls(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),XO=te((e,r)=>{"use strict";Y();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),ZO=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),QO=te((e,r)=>{"use strict";Y();var{constants:t}=le("buffer"),n=le("stream"),{promisify:i}=le("util"),c=ZO(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),JO=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),eT=te((e,r)=>{"use strict";Y();var t=XO(),n=QO(),i=JO(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),tT=te((e,r)=>{"use strict";Y();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),rT=te((e,r)=>{"use strict";Y();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),nT=te((e,r)=>{"use strict";Y();var t=le("path"),n=le("child_process"),i=HO(),c=qO(),a=GO(),s=Bs(),o=VO(),f=KO(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=YO(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=eT(),{mergePromise:S,getSpawnedPromise:E}=tT(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=rT(),A=1e3*1e3*100,x=({env:D,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...D}:D;return P?a.env({env:H,cwd:I,execPath:B}):H},C=(D,O,P={})=>{let I=i._parse(D,O,P);return D=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(D,".exe")==="cmd"&&O.unshift("/q"),{file:D,args:O,options:P,parsed:I}},F=(D,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":D.stripFinalNewline?c(O):O,T=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let J=E(G),L=u(G,I.options,J),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:W},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let z=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:W,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return z;throw z}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let J=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:J,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:J,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(D,O)=>{let[P,...I]=m(D);return T(P,I,O)},r.exports.commandSync=(D,O)=>{let[P,...I]=m(D);return T.sync(P,I,O)},r.exports.node=(D,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(J=>!J.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,D,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});Y();var iT=Ne(nT());async function Is(e,r=[],t){let n={cwd:f2.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...t};try{let{stdout:i}=await(0,iT.default)(e,r,n);return i.trim()}catch{return}}async function rl(){let[e,r,t,n]=await Promise.all([Is("yarnpkg",["--version"]),Is("npm",["--version"]),Is("pnpm",["--version"]),Is("bun",["--version"])]);return{yarn:e,pnpm:t,npm:r,bun:n}}Y();var sT=te((e,r)=>{"use strict";Y();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),oT=te((e,r)=>{"use strict";Y(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),p2=te((e,r)=>{Y();var t=oT(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),aT=te((e,r)=>{Y();var t=p2();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),uT=te((e,r)=>{Y();var t=p2(),n=aT(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),lT=te((e,r)=>{"use strict";Y();var t=uT(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),cT=te((e,r)=>{"use strict";Y(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),hT=te((e,r)=>{"use strict";Y();var t=le("os"),n=cT(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),fT=te((e,r)=>{"use strict";Y();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
114
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Lr=te((e,r)=>{"use strict";Y();var t=sT(),n=lT(),i=hT().stdout,c=fT(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var pT=te((e,r)=>{Y();var t=le("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(F,T){F&&F.code==="ENOENT"?g(E,v,x):m(C)})},A),A<100&&(A+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var C;if(x&&typeof x=="function"){var F=0;C=function(T,D,O){if(T&&T.code==="EAGAIN"&&F<10)return F++,g.call(o,E,v,m,w,A,C);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(C){m&&m(x||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),dT=te((e,r)=>{Y();var t=le("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),mT=te((e,r)=>{"use strict";Y(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),Le=te((e,r)=>{Y();var t=le("fs"),n=pT(),i=dT(),c=mT(),a=le("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
115
- GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),le("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=R,g.createWriteStream=K;var S=g.readFile;g.readFile=E;function E(N,W,ee){return typeof W=="function"&&(ee=W,W=null),ae(N,W,ee);function ae(oe,de,pe,j){return S(oe,de,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([ae,[oe,de,pe],z,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return v(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return w(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=C);function C(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=0),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return x(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var F=g.readdir;g.readdir=D;var T=/^v[0-5]\./;function D(N,W,ee){typeof W=="function"&&(ee=W,W=null);var ae=T.test(process.version)?function(de,pe,j,z){return F(de,oe(de,pe,j,z))}:function(de,pe,j,z){return F(de,pe,oe(de,pe,j,z))};return ae(N,W,ee);function oe(de,pe,j,z){return function(k,U){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([ae,[de,pe,j],k,z||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof j=="function"&&j.call(this,k,U))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);G=O.ReadStream,L=O.WriteStream}var P=g.ReadStream;P&&(G.prototype=Object.create(P.prototype),G.prototype.open=J);var I=g.WriteStream;I&&(L.prototype=Object.create(I.prototype),L.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return L},set:function(N){L=N},enumerable:!0,configurable:!0});var B=G;Object.defineProperty(g,"FileReadStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var H=L;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function G(N,W){return this instanceof G?(P.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function J(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee),N.read())})}function L(N,W){return this instanceof L?(I.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function M(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee))})}function R(N,W){return new g.ReadStream(N,W)}function K(N,W){return new g.WriteStream(N,W)}var q=g.open;g.open=Z;function Z(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return q(de,pe,j,function(U,X){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,C=Math.max(w-m,1),F=Math.min(C*1.2,100);x>=F?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var _t=te(e=>{"use strict";Y(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),_n=te(e=>{"use strict";Y();var r=_t().fromCallback,t=Le(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),yT=te((e,r)=>{"use strict";Y();var t=le("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),gT=te((e,r)=>{"use strict";Y();var t=_n(),{checkPath:n}=yT(),i=c=>typeof c=="number"?c:{...{mode:511},...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),jt=te((e,r)=>{"use strict";Y();var t=_t().fromPromise,{makeDir:n,makeDirSync:i}=gT(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Ir=te((e,r)=>{"use strict";Y();var t=_t().fromPromise,n=_n();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),d2=te((e,r)=>{"use strict";Y();var t=Le();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),wn=te((e,r)=>{"use strict";Y();var t=_n(),n=le("path"),i=le("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),bT=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=jt().mkdirs,c=Ir().pathExists,a=d2().utimesMillis,s=wn();function o(T,D,O,P){typeof O=="function"&&!P?(P=O,O={}):typeof O=="function"&&(O={filter:O}),P=P||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
116
-
117
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(T,D,"copy",O,(I,B)=>{if(I)return P(I);let{srcStat:H,destStat:G}=B;s.checkParentPaths(T,H,D,"copy",J=>{if(J)return P(J);l(T,D,O,(L,M)=>{if(L)return P(L);if(!M)return P();f(G,T,D,O,P)})})})}function f(T,D,O,P,I){let B=n.dirname(O);c(B,(H,G)=>{if(H)return I(H);if(G)return h(T,D,O,P,I);i(B,J=>J?I(J):h(T,D,O,P,I))})}function l(T,D,O,P){if(!O.filter)return P(null,!0);Promise.resolve(O.filter(T,D)).then(I=>P(null,I),I=>P(I))}function h(T,D,O,P,I){(P.dereference?t.stat:t.lstat)(D,(B,H)=>B?I(B):H.isDirectory()?v(H,T,D,O,P,I):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,T,D,O,P,I):H.isSymbolicLink()?C(T,D,O,P,I):H.isSocket()?I(new Error(`Cannot copy a socket file: ${D}`)):H.isFIFO()?I(new Error(`Cannot copy a FIFO pipe: ${D}`)):I(new Error(`Unknown file: ${D}`)))}function u(T,D,O,P,I,B){return D?d(T,O,P,I,B):p(T,O,P,I,B)}function d(T,D,O,P,I){if(P.overwrite)t.unlink(O,B=>B?I(B):p(T,D,O,P,I));else return P.errorOnExist?I(new Error(`'${O}' already exists`)):I()}function p(T,D,O,P,I){t.copyFile(D,O,B=>B?I(B):P.preserveTimestamps?y(T.mode,D,O,I):S(O,T.mode,I))}function y(T,D,O,P){return b(T)?_(O,T,I=>I?P(I):g(T,D,O,P)):g(T,D,O,P)}function b(T){return(T&128)===0}function _(T,D,O){return S(T,D|128,O)}function g(T,D,O,P){E(D,O,I=>I?P(I):S(O,T,P))}function S(T,D,O){return t.chmod(T,D,O)}function E(T,D,O){t.stat(T,(P,I)=>P?O(P):a(D,I.atime,I.mtime,O))}function v(T,D,O,P,I,B){return D?w(O,P,I,B):m(T.mode,O,P,I,B)}function m(T,D,O,P,I){t.mkdir(O,B=>{if(B)return I(B);w(D,O,P,H=>H?I(H):S(O,T,I))})}function w(T,D,O,P){t.readdir(T,(I,B)=>I?P(I):A(B,T,D,O,P))}function A(T,D,O,P,I){let B=T.pop();return B?x(T,B,D,O,P,I):I()}function x(T,D,O,P,I,B){let H=n.join(O,D),G=n.join(P,D);l(H,G,I,(J,L)=>{if(J)return B(J);if(!L)return A(T,O,P,I,B);s.checkPaths(H,G,"copy",I,(M,R)=>{if(M)return B(M);let{destStat:K}=R;h(K,H,G,I,q=>q?B(q):A(T,O,P,I,B))})})}function C(T,D,O,P,I){t.readlink(D,(B,H)=>{if(B)return I(B);if(P.dereference&&(H=n.resolve(process.cwd(),H)),T)t.readlink(O,(G,J)=>G?G.code==="EINVAL"||G.code==="UNKNOWN"?t.symlink(H,O,I):I(G):(P.dereference&&(J=n.resolve(process.cwd(),J)),s.isSrcSubdir(H,J)?I(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${J}'.`)):s.isSrcSubdir(J,H)?I(new Error(`Cannot overwrite '${J}' with '${H}'.`)):F(H,O,I)));else return t.symlink(H,O,I)})}function F(T,D,O){t.unlink(D,P=>P?O(P):t.symlink(T,D,O))}r.exports=o}),vT=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=jt().mkdirsSync,c=d2().utimesMillisSync,a=wn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
118
-
119
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:C,destStat:F}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,C,A,"copy"),x.filter&&!x.filter(w,A))return;let T=n.dirname(A);return t.existsSync(T)||i(T),o(F,w,A,x)}function o(w,A,x,C){let F=(C.dereference?t.statSync:t.lstatSync)(A);if(F.isDirectory())return _(F,w,A,x,C);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return f(F,w,A,x,C);if(F.isSymbolicLink())return v(w,A,x,C);throw F.isSocket()?new Error(`Cannot copy a socket file: ${A}`):F.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,C,F){return A?l(w,x,C,F):h(w,x,C,F)}function l(w,A,x,C){if(C.overwrite)return t.unlinkSync(x),h(w,A,x,C);if(C.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,C){return t.copyFileSync(A,x),C.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,C,F){return A?S(x,C,F):g(w.mode,x,C,F)}function g(w,A,x,C){return t.mkdirSync(x),S(A,x,C),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(C=>E(C,w,A,x))}function E(w,A,x,C){let F=n.join(A,w),T=n.join(x,w);if(C.filter&&!C.filter(F,T))return;let{destStat:D}=a.checkPathsSync(F,T,"copy",C);return o(D,F,T,C)}function v(w,A,x,C){let F=t.readlinkSync(A);if(C.dereference&&(F=n.resolve(process.cwd(),F)),w){let T;try{T=t.readlinkSync(x)}catch(D){if(D.code==="EINVAL"||D.code==="UNKNOWN")return t.symlinkSync(F,x);throw D}if(C.dereference&&(T=n.resolve(process.cwd(),T)),a.isSrcSubdir(F,T))throw new Error(`Cannot copy '${F}' to a subdirectory of itself, '${T}'.`);if(a.isSrcSubdir(T,F))throw new Error(`Cannot overwrite '${T}' with '${F}'.`);return m(F,x)}else return t.symlinkSync(F,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),nl=te((e,r)=>{"use strict";Y();var t=_t().fromCallback;r.exports={copy:t(bT()),copySync:vT()}}),Ms=te((e,r)=>{"use strict";Y();var t=Le(),n=_t().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),_T=te((e,r)=>{"use strict";Y();var t=_t().fromPromise,n=_n(),i=le("path"),c=jt(),a=Ms(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),wT=te((e,r)=>{"use strict";Y();var t=_t().fromCallback,n=le("path"),i=Le(),c=jt();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),ET=te((e,r)=>{"use strict";Y();var t=_t().fromCallback,n=le("path"),i=Le(),c=jt(),a=Ir().pathExists,{areIdentical:s}=wn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),ST=te((e,r)=>{"use strict";Y();var t=le("path"),n=Le(),i=Ir().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),AT=te((e,r)=>{"use strict";Y();var t=Le();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),xT=te((e,r)=>{"use strict";Y();var t=_t().fromCallback,n=le("path"),i=_n(),c=jt(),a=c.mkdirs,s=c.mkdirsSync,o=ST(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=AT(),u=h.symlinkType,d=h.symlinkTypeSync,p=Ir().pathExists,{areIdentical:y}=wn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,C])=>{if(y(x,C))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,C)=>{if(x)return m(x);let F=n.dirname(E);p(F,(T,D)=>{if(T)return m(T);if(D)return i.symlink(S,E,C,m);a(F,O=>{if(O)return m(O);i.symlink(S,E,C,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),C=i.statSync(E);if(y(x,C))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),kT=te((e,r)=>{"use strict";Y();var{createFile:t,createFileSync:n}=wT(),{createLink:i,createLinkSync:c}=ET(),{createSymlink:a,createSymlinkSync:s}=xT();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),il=te((e,r)=>{Y();function t(i,{EOL:c=`
120
- `,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),CT=te((e,r)=>{Y();var t;try{t=Le()}catch{t=le("fs")}var n=_t(),{stringify:i,stripBom:c}=il();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),DT=te((e,r)=>{"use strict";Y();var t=CT();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),sl=te((e,r)=>{"use strict";Y();var t=_t().fromCallback,n=Le(),i=le("path"),c=jt(),a=Ir().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),RT=te((e,r)=>{"use strict";Y();var{stringify:t}=il(),{outputFile:n}=sl();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),OT=te((e,r)=>{"use strict";Y();var{stringify:t}=il(),{outputFileSync:n}=sl();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),TT=te((e,r)=>{"use strict";Y();var t=_t().fromPromise,n=DT();n.outputJson=t(RT()),n.outputJsonSync=OT(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),FT=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=nl().copy,c=Ms().remove,a=jt().mkdirp,s=Ir().pathExists,o=wn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),PT=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=nl().copySync,c=Ms().removeSync,a=jt().mkdirpSync,s=wn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),BT=te((e,r)=>{"use strict";Y();var t=_t().fromCallback;r.exports={move:t(FT()),moveSync:PT()}}),mr=te((e,r)=>{"use strict";Y(),r.exports={..._n(),...nl(),..._T(),...kT(),...TT(),...jt(),...BT(),...sl(),...Ir(),...Ms()}});Y();var BN=Ne(mr());Y();var $N=Ne(mr()),HN=Ne(Lr());Y();var H2=require("stream"),q2=require("util");var oi=te((e,r)=>{"use strict";Y();var t=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"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),ol=te((e,r)=>{"use strict";Y();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),C=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),D=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",J=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class g2 extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[C]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[C])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let W=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):J(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(q){if(this[C])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[C]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[C]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[C])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[C]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==C&&this[C])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[C])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let W=super.emit(q,Z,...N);return this[s](),W}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[D]()):this[D]())}[D](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(C,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,W=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",ee),Z({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(C,oe),this.once("error",W),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[C]?(q?this.emit("error",q):this.emit(C),this):(this[C]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(C),this)}static isStream(q){return!!q&&(q instanceof g2||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),LT=te((e,r)=>{Y();var t=le("zlib").constants||{ZLIB_VERNUM:4736};r.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},t))}),b2=te((e,r)=>{"use strict";Y();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),C=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),D=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),J=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends J{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class v2 extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?D:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new J(this,R,K)),this[T]?D(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?D(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?D(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[C]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[C](){this[o]||(this[o]=!0,this.readable=!1,this[T]?D(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",W),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",W),this.pause(),K({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",W),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof v2||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),_2=te(e=>{"use strict";Y();var r=le("assert"),t=le("buffer").Buffer,n=le("zlib"),i=e.constants=LT(),c=b2(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let J=this[d]._handle,L=J.close;J.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=J,J.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){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[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(J,L)=>{this.flush(J),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},C=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},D=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=C,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=D,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),ai=te((e,r)=>{Y();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),al=te((e,r)=>{"use strict";Y();var t=ol(),n=ai(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.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=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),w2=te(e=>{"use strict";Y(),e.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"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),IT=te((e,r)=>{"use strict";Y();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),ui=te((e,r)=>{"use strict";Y();var t=w2(),n=le("path").posix,i=IT(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,C){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[a]="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,A||0,x,C):w&&this.set(w)}decode(w,A,x,C){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](C,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,C=o(this.path||"",x),F=C[0],T=C[1];this.needPax=C[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let D=8*32;for(let O=A;O<A+148;O++)D+=w[O];for(let O=A+156;O<A+512;O++)D+=w[O];return this.cksum=D,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,C="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,C,!1];else{C=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(C)<=A?F=[x,C,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(C)<=A?F=[x.slice(0,100-1),C,!0]:(x=n.join(n.basename(C),x),C=n.dirname(C));while(C!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,C)=>C===null?!1:C>y[x]||C<0?(i.encode(C,w.slice(A,A+x)),!0):(_(w,A,x,C),!1),_=(w,A,x,C)=>w.write(g(C,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,C)=>C===null?!1:b(w,A,x,C.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,C)=>C===null?!1:(w.write(C+v,A,x,"utf8"),C.length!==Buffer.byteLength(C)||C.length>x);r.exports=s}),ul=te((e,r)=>{"use strict";Y();var t=ui(),n=le("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,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(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=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(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
121
- `,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
122
- `).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),li=te((e,r)=>{Y(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),ll=te((e,r)=>{"use strict";Y(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),E2=te((e,r)=>{"use strict";Y();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),S2=te((e,r)=>{Y();var{isAbsolute:t,parse:n}=le("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),MT=te((e,r)=>{"use strict";Y(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),A2=te((e,r)=>{"use strict";Y();var t=ol(),n=ul(),i=ui(),c=le("fs"),a=le("path"),s=ai(),o=li(),f=(M,R)=>R?(M=s(M).replace(/^\.(\/|$)/,""),o(R)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),C=Symbol("awaitDrain"),F=Symbol("ondrain"),T=Symbol("prefix"),D=Symbol("hadError"),O=ll(),P=E2(),I=S2(),B=MT(),H=O(class extends t{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||l,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=s(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?s(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 K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(R.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...R){return M==="error"&&(this[D]=!0),super.emit(M,...R)}[g](){c.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[S](R)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=L(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return B(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[x](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 n({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[T](this.path),linkpath:this.type==="Link"?this[T](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[b](),this.end()}[p](){c.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[y](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[w](R)})}[w](M){if(this.fd=M,this[D])return this[A]();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[_]()}[_](){let{fd:M,buf:R,offset:K,length:q,pos:Z}=this;c.read(M,R,K,q,Z,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let K=new Error("encountered unexpected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M>this.remain){let K=new Error("did not encounter expected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M===this.remain)for(let K=M;K<this.length&&M<this.blockRemain;K++)this.buf[K+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[F]():this[C](()=>this[F]())}[C](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[F](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](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[_]()}}),G=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:R,buf:K,offset:q,length:Z,pos:N}=this,W=c.readSync(R,K,q,Z,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[C](M){M()}[A](M){c.closeSync(this.fd),M()}},J=O(class extends t{constructor(M,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=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=s(M.path),this.mode=this[x](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:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](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}),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({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[T](this.path),linkpath:this.type==="Link"?this[T](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)}[T](M){return f(M,this.prefix)}[x](M){return B(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=G,H.Tar=J;var L=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),NT=te((e,r)=>{"use strict";Y(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),x2=te((e,r)=>{"use strict";Y(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{NT()(t)}catch{}}),cl=te((e,r)=>{"use strict";Y();var t=class{constructor(L,M){this.path=L||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=ol(),i=_2(),c=al(),a=A2(),s=a.Sync,o=a.Tar,f=x2(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),C=Symbol("entry"),F=Symbol("entryOpt"),T=Symbol("writeEntryClass"),D=Symbol("write"),O=Symbol("ondrain"),P=le("fs"),I=le("path"),B=ll(),H=ai(),G=B(class extends n{constructor(L){super(L),L=L||Object.create(null),this.opt=L,this.file=L.file||"",this.cwd=L.cwd||process.cwd(),this.maxReadSize=L.maxReadSize,this.preservePaths=!!L.preservePaths,this.strict=!!L.strict,this.noPax=!!L.noPax,this.prefix=H(L.prefix||""),this.linkCache=L.linkCache||new Map,this.statCache=L.statCache||new Map,this.readdirCache=L.readdirCache||new Map,this[T]=a,typeof L.onwarn=="function"&&this.on("warn",L.onwarn),this.portable=!!L.portable,this.zip=null,L.gzip?(typeof L.gzip!="object"&&(L.gzip={}),this.portable&&(L.gzip.portable=!0),this.zip=new i.Gzip(L.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[O]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!L.noDirRecurse,this.follow=!!L.follow,this.noMtime=!!L.noMtime,this.mtime=L.mtime||null,this.filter=typeof L.filter=="function"?L.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+L.jobs||4,this[b]=!1,this[u]=!1}[D](L){return super.write(L)}add(L){return this.write(L),this}end(L){return L&&this.write(L),this[u]=!0,this[y](),this}write(L){if(this[u])throw new Error("write after end");return L instanceof c?this[v](L):this[E](L),this.flowing}[v](L){let M=H(I.resolve(this.cwd,L.path));if(!this.filter(L.path,L))L.resume();else{let R=new t(L.path,M,!1);R.entry=new o(L,this[F](R)),R.entry.on("end",K=>this[S](R)),this[g]+=1,this[d].push(R)}this[y]()}[E](L){let M=H(I.resolve(this.cwd,L));this[d].push(new t(L,M)),this[y]()}[m](L){L.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";P[M](L.absolute,(R,K)=>{L.pending=!1,this[g]-=1,R?this.emit("error",R):this[h](L,K)})}[h](L,M){this.statCache.set(L.absolute,M),L.stat=M,this.filter(L.path,M)||(L.ignore=!0),this[y]()}[w](L){L.pending=!0,this[g]+=1,P.readdir(L.absolute,(M,R)=>{if(L.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](L,R)})}[A](L,M){this.readdirCache.set(L.absolute,M),L.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let L=this[d].head;L!==null&&this[g]<this.jobs;L=L.next)if(this[_](L.value),L.value.ignore){let M=L.next;this[d].removeNode(L),L.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](L){this[d].shift(),this[g]-=1,this[y]()}[_](L){if(!L.pending){if(L.entry){L===this[p]&&!L.piped&&this[x](L);return}if(L.stat||(this.statCache.has(L.absolute)?this[h](L,this.statCache.get(L.absolute)):this[m](L)),!!L.stat&&!L.ignore&&!(!this.noDirRecurse&&L.stat.isDirectory()&&!L.readdir&&(this.readdirCache.has(L.absolute)?this[A](L,this.readdirCache.get(L.absolute)):this[w](L),!L.readdir))){if(L.entry=this[C](L),!L.entry){L.ignore=!0;return}L===this[p]&&!L.piped&&this[x](L)}}}[F](L){return{onwarn:(M,R,K)=>this.warn(M,R,K),noPax:this.noPax,cwd:this.cwd,absolute:L.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}}[C](L){this[g]+=1;try{return new this[T](L.path,this[F](L)).on("end",()=>this[S](L)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](L){L.piped=!0,L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)});let M=L.entry,R=this.zip;R?M.on("data",K=>{R.write(K)||M.pause()}):M.on("data",K=>{super.write(K)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J=class extends G{constructor(L){super(L),this[T]=s}pause(){}resume(){}[m](L){let M=this.follow?"statSync":"lstatSync";this[h](L,P[M](L.absolute))}[w](L,M){this[A](L,P.readdirSync(L.absolute))}[x](L){let M=L.entry,R=this.zip;L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)}),R?M.on("data",K=>{R.write(K)}):M.on("data",K=>{super[D](K)})}};G.Sync=J,r.exports=G}),ci=te(e=>{"use strict";Y();var r=b2(),t=le("events").EventEmitter,n=le("fs"),i=n.writev;if(!i){let L=process.binding("fs"),M=L.FSReqWrap||L.FSReqCallback;i=(R,K,q,Z)=>{let N=(ee,ae)=>Z(ee,ae,K),W=new M;W.oncomplete=N,L.writeBuffers(R,K,q,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),C=Symbol("_reading"),F=Symbol("_remain"),T=Symbol("_size"),D=Symbol("_write"),O=Symbol("_writing"),P=Symbol("_defaultFlag"),I=Symbol("_errored"),B=class extends r{constructor(L,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof L!="string")throw new TypeError("path must be a string");this[I]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=L,this[x]=M.readSize||16*1024*1024,this[C]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[F]=this[T],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(L,M)=>this[_](L,M))}[_](L,M){L?this[b](L):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[F]))}[A](){if(!this[C]){this[C]=!0;let L=this[d]();if(L.length===0)return process.nextTick(()=>this[g](null,0,L));n.read(this[o],L,0,L.length,null,(M,R,K)=>this[g](M,R,K))}}[g](L,M,R){this[C]=!1,L?this[b](L):this[u](M,R)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}[b](L){this[C]=!0,this[a](),this.emit("error",L)}[u](L,M){let R=!1;return this[F]-=L,L>0&&(R=super.write(L<M.length?M.slice(0,L):M)),(L===0||this[F]<=0)&&(R=!1,this[a](),super.end()),R}emit(L,M){switch(L){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(L,M));default:return super.emit(L,M)}}},H=class extends B{[E](){let L=!0;try{this[_](null,n.openSync(this[v],"r")),L=!1}finally{L&&this[a]()}}[A](){let L=!0;try{if(!this[C]){this[C]=!0;do{let M=this[d](),R=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](R,M))break}while(!0);this[C]=!1}L=!1}finally{L&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}},G=class extends t{constructor(L,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[I]=!1,this[O]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=L,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[P]=M.flags===void 0,this[l]=this[P]?R:M.flags,this[o]===null&&this[E]()}emit(L,M){if(L==="error"){if(this[I])return;this[I]=!0}return super.emit(L,M)}get fd(){return this[o]}get path(){return this[v]}[b](L){this[a](),this[O]=!0,this.emit("error",L)}[E](){n.open(this[v],this[l],this[p],(L,M)=>this[_](L,M))}[_](L,M){this[P]&&this[l]==="r+"&&L&&L.code==="ENOENT"?(this[l]="w",this[E]()):L?this[b](L):(this[o]=M,this.emit("open",M),this[h]())}end(L,M){return L&&this.write(L,M),this[s]=!0,!this[O]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(L,M){return typeof L=="string"&&(L=Buffer.from(L,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[O]||this[w].length?(this[w].push(L),this[y]=!0,!1):(this[O]=!0,this[D](L),!0)}[D](L){n.write(this[o],L,0,L.length,this[m],(M,R)=>this[S](M,R))}[S](L,M){L?this[b](L):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[O]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[D](this[w].pop());else{let L=this[w];this[w]=[],i(this[o],L,this[m],(M,R)=>this[S](M,R))}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}},J=class extends G{[E](){let L;if(this[P]&&this[l]==="r+")try{L=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else L=n.openSync(this[v],this[l],this[p]);this[_](null,L)}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}[D](L){let M=!0;try{this[S](null,n.writeSync(this[o],L,0,L.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=H,e.WriteStream=G,e.WriteStreamSync=J}),hl=te((e,r)=>{"use strict";Y();var t=ll(),n=ui(),i=le("events"),c=x2(),a=1024*1024,s=al(),o=ul(),f=_2(),{nextTick:l}=le("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),C=Symbol("unzip"),F=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),D=Symbol("consumeBody"),O=Symbol("consumeMeta"),P=Symbol("consumeHeader"),I=Symbol("consuming"),B=Symbol("bufferConcat"),H=Symbol("maybeEnd"),G=Symbol("writing"),J=Symbol("aborted"),L=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),K=Symbol("sawEOF"),q=Symbol("closeStream"),Z=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(L,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(L,N.ondone):this.on(L,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Z,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[C]=null,this[J]=!1,this[R]=!1,this[K]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[P](N,W){this[M]===null&&(this[M]=!1);let ee;try{ee=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(ee.nullBlock)this[R]?(this[K]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[R]=!0,this[x]("nullBlock"));else if(this[R]=!1,!ee.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:ee});else if(!ee.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:ee});else{let ae=ee.type;if(/^(Symbolic)?Link$/.test(ae)&&!ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:ee});else if(!/^(Symbolic)?Link$/.test(ae)&&ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:ee});else{let oe=this[d]=new s(ee,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",ee=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[G]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[D](N,W){let ee=this[d],ae=ee.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return ee.write(oe),ee.blockRemain||(this[u]="header",this[d]=null,ee.end()),oe.length}[O](N,W){let ee=this[d],ae=this[D](N,W);return this[d]||this[E](ee),ae}[x](N,W,ee){!this[m].length&&!this[p]?this.emit(N,W,ee):this[m].push([N,W,ee])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[J]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[J])return;if(this[C]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let ee=0;this[C]===null&&ee<h.length;ee++)N[ee]!==h[ee]&&(this[C]=!1);if(this[C]===null){let ee=this[w];this[w]=!1,this[C]=new f.Unzip,this[C].on("data",oe=>this[F](oe)),this[C].on("error",oe=>this.abort(oe)),this[C].on("end",oe=>{this[w]=!0,this[F]()}),this[G]=!0;let ae=this[C][ee?"end":"write"](N);return this[G]=!1,ae}}this[G]=!0,this[C]?this[C].write(N):this[F](N),this[G]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",ee=>this.emit("drain")),W}[B](N){N&&!this[J]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[J]&&!this[I]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](L)}}[F](N){if(this[I])this[B](N);else if(!N&&!this[v])this[H]();else{if(this[I]=!0,this[v]){this[B](N);let W=this[v];this[v]=null,this[T](W)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[J]&&!this[K];){let W=this[v];this[v]=null,this[T](W)}this[I]=!1}(!this[v]||this[w])&&this[H]()}[T](N){let W=0,ee=N.length;for(;W+512<=ee&&!this[J]&&!this[K];)switch(this[u]){case"begin":case"header":this[P](N,W),W+=512;break;case"ignore":case"body":W+=this[D](N,W);break;case"meta":W+=this[O](N,W);break;default:throw new Error("invalid state: "+this[u])}W<ee&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[J]||(this[C]?this[C].end(N):(this[w]=!0,this.write(N)))}})}),fl=te((e,r)=>{"use strict";Y();var t=oi(),n=hl(),i=le("fs"),c=ci(),a=le("path"),s=li();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),jT=te((e,r)=>{"use strict";Y();var t=oi(),n=cl(),i=ci(),c=fl(),a=le("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),k2=te((e,r)=>{"use strict";Y();var t=oi(),n=cl(),i=le("fs"),c=ci(),a=fl(),s=le("path"),o=ui();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.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),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(T,D)=>{T?i.close(E,O=>m(T)):m(null,D)},A=0;if(v===0)return w(null,0);let x=0,C=Buffer.alloc(512),F=(T,D)=>{if(T)return w(T);if(x+=D,x<512&&D)return i.read(E,C,x,C.length-x,A+x,F);if(A===0&&C[0]===31&&C[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let O=new o(C);if(!O.cksumValid)return w(null,A);let P=512*Math.ceil(O.size/512);if(A+P+512>v||(A+=P+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),x=0,i.read(E,C,0,512,A,F)};i.read(E,C,0,512,A,F)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(C,F)=>{if(C)return i.close(x,()=>v(C));g(x,F.size,(T,D)=>{if(T)return v(T);let O=new c.WriteStream(p.file,{fd:x,start:D});_.pipe(O),O.on("error",v),O.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),$T=te((e,r)=>{"use strict";Y();var t=oi(),n=k2();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),HT=te((e,r)=>{Y();var{promisify:t}=le("util"),n=le("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),qT=te((e,r)=>{Y();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=le("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),GT=te((e,r)=>{Y();var{dirname:t}=le("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),C2=te((e,r)=>{Y();var{dirname:t}=le("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),UT=te((e,r)=>{Y();var{dirname:t}=le("path"),{findMade:n,findMadeSync:i}=GT(),{mkdirpManual:c,mkdirpManualSync:a}=C2(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),zT=te((e,r)=>{Y();var t=le("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),WT=te((e,r)=>{Y();var t=HT(),n=qT(),{mkdirpNative:i,mkdirpNativeSync:c}=UT(),{mkdirpManual:a,mkdirpManualSync:s}=C2(),{useNative:o,useNativeSync:f}=zT(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),VT=te((e,r)=>{"use strict";Y();var t=le("fs"),n=le("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,C=null,F=T=>{if(!C){if(T)return m(C=T);if(--x===0)return p(S,E,v,m)}};A.forEach(T=>y(S,T,E,v,F))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),KT=te((e,r)=>{"use strict";Y();var t=WT(),n=le("fs"),i=le("path"),c=VT(),a=ai(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,C=b.cache,F=a(b.cwd),T=(O,P)=>{O?_(O):(l(C,y,!0),P&&w?c(P,v,m,I=>T(I)):E?n.chmod(y,S,_):_())};if(C&&f(C,y)===!0)return T();if(y===F)return h(y,T);if(A)return t(y,{mode:S}).then(O=>T(null,O),T);let D=a(i.relative(F,y)).split("/");u(F,D,S,C,x,F,null,T)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,C=>{if(C)return m(C);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,C=a(b.cwd),F=O=>{l(x,y,!0),O&&m&&c.sync(O,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return F();if(y===C)return p(C),F();if(w)return F(t.sync(y,g));let T=a(i.relative(C,y)).split("/"),D=null;for(let O=T.shift(),P=C;O&&(P+="/"+O);O=T.shift())if(P=a(i.resolve(P)),!f(x,P))try{n.mkdirSync(P,g),D=D||P,l(x,P,!0)}catch{let I=n.lstatSync(P);if(I.isDirectory()){l(x,P,!0);continue}else if(A){n.unlinkSync(P),n.mkdirSync(P,g),D=D||P,l(x,P,!0);continue}else if(I.isSymbolicLink())return new s(P,P+"/"+T.join("/"))}return F(D)}}),D2=te((e,r)=>{Y();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),YT=te((e,r)=>{Y();var t=le("assert"),n=D2(),i=li(),{join:c}=le("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),XT=te((e,r)=>{Y();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||le("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),R2=te((e,r)=>{"use strict";Y();var t=le("assert"),n=hl(),i=le("fs"),c=ci(),a=le("path"),s=KT(),o=E2(),f=YT(),l=S2(),h=ai(),u=li(),d=D2(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),C=Symbol("checkPath"),F=Symbol("mkdir"),T=Symbol("onError"),D=Symbol("pending"),O=Symbol("pend"),P=Symbol("unpend"),I=Symbol("ended"),B=Symbol("maybeClose"),H=Symbol("skip"),G=Symbol("doChown"),J=Symbol("uid"),L=Symbol("gid"),M=Symbol("checkedCwd"),R=le("crypto"),K=XT(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Z=q==="win32",N=(k,U)=>{if(!Z)return i.unlink(k,U);let X=k+".DELETE."+R.randomBytes(16).toString("hex");i.rename(k,X,ne=>{if(ne)return U(ne);i.unlink(X,U)})},W=k=>{if(!Z)return i.unlinkSync(k);let U=k+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(k,U),i.unlinkSync(U)},ee=(k,U,X)=>k===k>>>0?k:U===U>>>0?U:X,ae=k=>d(u(h(k))).toLowerCase(),oe=(k,U)=>{U=ae(U);for(let X of k.keys()){let ne=ae(X);(ne===U||ne.indexOf(U+"/")===0)&&k.delete(X)}},de=k=>{for(let U of k.keys())k.delete(U)},pe=class extends n{constructor(k){if(k||(k={}),k.ondone=U=>{this[I]=!0,this[B]()},super(k),this[M]=!1,this.reservations=f(),this.transform=typeof k.transform=="function"?k.transform:null,this.writable=!0,this.readable=!1,this[D]=0,this[I]=!1,this.dirCache=k.dirCache||new Map,typeof k.uid=="number"||typeof k.gid=="number"){if(typeof k.uid!="number"||typeof k.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(k.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=k.uid,this.gid=k.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;k.preserveOwner===void 0&&typeof k.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!k.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=k.forceChown===!0,this.win32=!!k.win32||Z,this.newer=!!k.newer,this.keep=!!k.keep,this.noMtime=!!k.noMtime,this.preservePaths=!!k.preservePaths,this.unlink=!!k.unlink,this.cwd=h(a.resolve(k.cwd||process.cwd())),this.strip=+k.strip||0,this.processUmask=k.noChmod?0:process.umask(),this.umask=typeof k.umask=="number"?k.umask:this.processUmask,this.dmode=k.dmode||511&~this.umask,this.fmode=k.fmode||438&~this.umask,this.on("entry",U=>this[p](U))}warn(k,U,X={}){return(k==="TAR_BAD_ARCHIVE"||k==="TAR_ABORT")&&(X.recoverable=!1),super.warn(k,U,X)}[B](){this[I]&&this[D]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[C](k){if(this.strip){let U=h(k.path).split("/");if(U.length<this.strip)return!1;if(k.path=U.slice(this.strip).join("/"),k.type==="Link"){let X=h(k.linkpath).split("/");if(X.length>=this.strip)k.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let U=h(k.path),X=U.split("/");if(X.includes("..")||Z&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:k,path:U}),!1;let[ne,me]=l(U);ne&&(k.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:k,path:U}))}if(a.isAbsolute(k.path)?k.absolute=h(a.resolve(k.path)):k.absolute=h(a.resolve(this.cwd,k.path)),!this.preservePaths&&k.absolute.indexOf(this.cwd+"/")!==0&&k.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:k,path:h(k.path),resolvedPath:k.absolute,cwd:this.cwd}),!1;if(k.absolute===this.cwd&&k.type!=="Directory"&&k.type!=="GNUDumpDir")return!1;if(this.win32){let{root:U}=a.win32.parse(k.absolute);k.absolute=U+o.encode(k.absolute.slice(U.length));let{root:X}=a.win32.parse(k.path);k.path=X+o.encode(k.path.slice(X.length))}return!0}[p](k){if(!this[C](k))return k.resume();switch(t.equal(typeof k.absolute,"string"),k.type){case"Directory":case"GNUDumpDir":k.mode&&(k.mode=k.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](k);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](k)}}[T](k,U){k.name==="CwdError"?this.emit("error",k):(this.warn("TAR_ENTRY_ERROR",k,{entry:U}),this[P](),U.resume())}[F](k,U,X){s(h(k),{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:U,noChmod:this.noChmod},X)}[G](k){return this.forceChown||this.preserveOwner&&(typeof k.uid=="number"&&k.uid!==this.processUid||typeof k.gid=="number"&&k.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[J](k){return ee(this.uid,k.uid,this.processUid)}[L](k){return ee(this.gid,k.gid,this.processGid)}[E](k,U){let X=k.mode&4095||this.fmode,ne=new c.WriteStream(k.absolute,{flags:K(k.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[T](ie,k),U()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[T](ie,k),U();return}--me===0&&i.close(ne.fd,ye=>{ye?this[T](ye,k):this[P](),U()})};ne.on("finish",ie=>{let ye=k.absolute,we=ne.fd;if(k.mtime&&!this.noMtime){me++;let xe=k.atime||new Date,V=k.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[G](k)){me++;let xe=this[J](k),V=this[L](k);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(k)||k;fe!==k&&(fe.on("error",ie=>{this[T](ie,k),U()}),k.pipe(fe)),fe.pipe(ne)}[v](k,U){let X=k.mode&4095||this.dmode;this[F](k.absolute,X,ne=>{if(ne){this[T](ne,k),U();return}let me=1,se=fe=>{--me===0&&(U(),this[P](),k.resume())};k.mtime&&!this.noMtime&&(me++,i.utimes(k.absolute,k.atime||new Date,k.mtime,se)),this[G](k)&&(me++,i.chown(k.absolute,this[J](k),this[L](k),se)),se()})}[x](k){k.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${k.type}`,{entry:k}),k.resume()}[w](k,U){this[m](k,k.linkpath,"symlink",U)}[A](k,U){let X=h(a.resolve(this.cwd,k.linkpath));this[m](k,X,"link",U)}[O](){this[D]++}[P](){this[D]--,this[B]()}[H](k){this[P](),k.resume()}[g](k,U){return k.type==="File"&&!this.unlink&&U.isFile()&&U.nlink<=1&&!Z}[y](k){this[O]();let U=[k.path];k.linkpath&&U.push(k.linkpath),this.reservations.reserve(U,X=>this[b](k,X))}[_](k){k.type==="SymbolicLink"?de(this.dirCache):k.type!=="Directory"&&oe(this.dirCache,k.absolute)}[b](k,U){this[_](k);let X=fe=>{this[_](k),U(fe)},ne=()=>{this[F](this.cwd,this.dmode,fe=>{if(fe){this[T](fe,k),X();return}this[M]=!0,me()})},me=()=>{if(k.absolute!==this.cwd){let fe=h(a.dirname(k.absolute));if(fe!==this.cwd)return this[F](fe,this.dmode,ie=>{if(ie){this[T](ie,k),X();return}se()})}se()},se=()=>{i.lstat(k.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>k.mtime)){this[H](k),X();return}if(fe||this[g](k,ie))return this[S](null,k,X);if(ie.isDirectory()){if(k.type==="Directory"){let ye=!this.noChmod&&k.mode&&(ie.mode&4095)!==k.mode,we=xe=>this[S](xe,k,X);return ye?i.chmod(k.absolute,k.mode,we):we()}if(k.absolute!==this.cwd)return i.rmdir(k.absolute,ye=>this[S](ye,k,X))}if(k.absolute===this.cwd)return this[S](null,k,X);N(k.absolute,ye=>this[S](ye,k,X))})};this[M]?me():ne()}[S](k,U,X){if(k){this[T](k,U),X();return}switch(U.type){case"File":case"OldFile":case"ContiguousFile":return this[E](U,X);case"Link":return this[A](U,X);case"SymbolicLink":return this[w](U,X);case"Directory":case"GNUDumpDir":return this[v](U,X)}}[m](k,U,X,ne){i[X](U,k.absolute,me=>{me?this[T](me,k):(this[P](),k.resume()),ne()})}},j=k=>{try{return[null,k()]}catch(U){return[U,null]}},z=class extends pe{[S](k,U){return super[S](k,U,()=>{})}[y](k){if(this[_](k),!this[M]){let me=this[F](this.cwd,this.dmode);if(me)return this[T](me,k);this[M]=!0}if(k.absolute!==this.cwd){let me=h(a.dirname(k.absolute));if(me!==this.cwd){let se=this[F](me,this.dmode);if(se)return this[T](se,k)}}let[U,X]=j(()=>i.lstatSync(k.absolute));if(X&&(this.keep||this.newer&&X.mtime>k.mtime))return this[H](k);if(U||this[g](k,X))return this[S](null,k);if(X.isDirectory()){if(k.type==="Directory"){let se=!this.noChmod&&k.mode&&(X.mode&4095)!==k.mode,[fe]=se?j(()=>{i.chmodSync(k.absolute,k.mode)}):[];return this[S](fe,k)}let[me]=j(()=>i.rmdirSync(k.absolute));this[S](me,k)}let[ne]=k.absolute===this.cwd?[]:j(()=>W(k.absolute));this[S](ne,k)}[E](k,U){let X=k.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[T](fe||ie,k),U()},me;try{me=i.openSync(k.absolute,K(k.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(k)||k;se!==k&&(se.on("error",fe=>this[T](fe,k)),k.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(k.mtime&&!this.noMtime){let ye=k.atime||new Date,we=k.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(k.absolute,ye,we)}catch{ie=xe}}}if(this[G](k)){let ye=this[J](k),we=this[L](k);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(k.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](k,U){let X=k.mode&4095||this.dmode,ne=this[F](k.absolute,X);if(ne){this[T](ne,k),U();return}if(k.mtime&&!this.noMtime)try{i.utimesSync(k.absolute,k.atime||new Date,k.mtime)}catch{}if(this[G](k))try{i.chownSync(k.absolute,this[J](k),this[L](k))}catch{}U(),k.resume()}[F](k,U){try{return s.sync(h(k),{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:U})}catch(X){return X}}[m](k,U,X,ne){try{i[X+"Sync"](U,k.absolute),ne(),k.resume()}catch(me){return this[T](me,k)}}};pe.Sync=z,r.exports=pe}),ZT=te((e,r)=>{"use strict";Y();var t=oi(),n=R2(),i=le("fs"),c=ci(),a=le("path"),s=li();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),QT=te(e=>{"use strict";Y(),e.c=e.create=jT(),e.r=e.replace=k2(),e.t=e.list=fl(),e.u=e.update=$T(),e.x=e.extract=ZT(),e.Pack=cl(),e.Unpack=R2(),e.Parse=hl(),e.ReadEntry=al(),e.WriteEntry=A2(),e.Header=ui(),e.Pax=ul(),e.types=w2()}),yr=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,C;return(C=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&C!==void 0?C:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,C;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((C=(x=m)["@@observable"])===null||C===void 0?void 0:C.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:C}=x,F=C?`received values of types ${[...new Set(A.map(T=>`\`${u(T)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${F}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),JT=te((e,r)=>{"use strict";Y();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),e3=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),t3=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var t=e3(),n=le("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),r3=te((e,r)=>{"use strict";Y();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=le("dns"),{promisify:s}=le("util"),o=le("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let C=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);C.unref&&C.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(D){if(D.code==="ENODATA"||D.code==="ENOTFOUND")return[];throw D}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(T=>v(T))),A=0,x=0,C=0,F=Date.now();for(let T of m)T.family=4,T.expires=F+T.ttl*1e3,A=Math.max(A,T.ttl);for(let T of w)T.family=6,T.expires=F+T.ttl*1e3,x=Math.max(x,T.ttl);return m.length>0?w.length>0?C=Math.min(A,x):C=A:C=x,{entries:[...m,...w],cacheTtl:C}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let C=x[h];w>=C?this._cache.delete(A):C<m&&(m=C)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),n3=te((e,r)=>{"use strict";Y();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),i3=te((e,r)=>{Y(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),O2=te((e,r)=>{Y();var t=i3();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),s3=te((e,r)=>{Y();var t=O2(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),o3=te((e,r)=>{Y();var t=O2(),n=s3(),i=le("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),a3=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),u3=te((e,r)=>{"use strict";Y();var{constants:t}=le("buffer"),n=o3(),i=a3(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),l3=te((e,r)=>{"use strict";Y();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),pl=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),c3=te((e,r)=>{"use strict";Y();var t=le("stream").Readable,n=pl(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),h3=te((e,r)=>{"use strict";Y();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),f3=te((e,r)=>{"use strict";Y();var t=le("stream").PassThrough,n=h3(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),p3=te(e=>{Y(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),d3=te((e,r)=>{"use strict";Y();var t=le("events"),n=p3(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(le(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),m3=te((e,r)=>{"use strict";Y();var t=le("events"),n=le("url"),i=n3(),c=u3(),a=l3(),s=c3(),o=pl(),f=f3(),l=d3(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),C=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:C})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,C,F=new Promise(D=>{C=()=>{x||(x=!0,D())}}),T=D=>{if(v&&!A.forceRefresh){D.status=D.statusCode;let P=a.fromObject(v.cachePolicy).revalidatedPolicy(A,D);if(!P.modified){let I=P.policy.responseHeaders();D=new s(v.statusCode,I,v.body,v.url),D.cachePolicy=P.policy,D.fromCache=!0}}D.fromCache||(D.cachePolicy=new a(A,D,A),D.fromCache=!1);let O;A.cache&&D.cachePolicy.storable()?(O=f(D),(async()=>{try{let P=c.buffer(D);if(await Promise.race([F,new Promise(G=>D.once("end",G))]),x)return;let I=await P,B={cachePolicy:D.cachePolicy.toObject(),url:D.url,statusCode:D.fromCache?v.statusCode:D.statusCode,body:I},H=A.strictTtl?D.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,B,H)}catch(P){g.emit("error",new h.CacheError(P))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(P){g.emit("error",new h.CacheError(P))}})(),g.emit("response",O||D),typeof b=="function"&&b(O||D)};try{let D=p(A,T);D.once("error",C),D.once("abort",C),g.emit("request",D)}catch(D){g.emit("error",new h.RequestError(D))}};return(async()=>{let A=async C=>{await Promise.resolve();let F=C.cache?await this.cache.get(E):void 0;if(typeof F>"u")return w(C);let T=a.fromObject(F.cachePolicy);if(T.satisfiesWithoutRevalidation(C)&&!C.forceRefresh){let D=T.responseHeaders(),O=new s(F.statusCode,D,F.body,F.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=F,C.headers=T.revalidationHeaders(C),w(C)},x=C=>g.emit("error",new h.CacheError(C));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(C){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(C))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),y3=te((e,r)=>{"use strict";Y();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),g3=te((e,r)=>{"use strict";Y();var{Transform:t,PassThrough:n}=le("stream"),i=le("zlib"),c=y3();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),T2=te((e,r)=>{"use strict";Y();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),F2=te((e,r)=>{"use strict";Y();var t=le("events"),n=le("tls"),i=le("http2"),c=T2(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:F}of E)F(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let F=this.sessions[w],T=-1,D=-1,O;for(let P of F){let I=P.remoteSettings.maxConcurrentStreams;if(I<T)break;if(P[o].includes(A)){let B=P[a];if(B>=I||P[f]||P.destroyed)continue;O||(T=I),B>D&&(O=P,D=B)}}if(O){if(E.length!==1){for(let{reject:P}of E){let I=new Error(`Expected the length of listeners to be 1, got ${E.length}.
123
- Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}E[0].resolve(O);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===C&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},C=()=>{let F=`${A}:${w}`,T=!1;try{let D=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(F),...S});D[a]=0,D[f]=!1;let O=()=>D[a]<D.remoteSettings.maxConcurrentStreams,P=!0;D.socket.once("session",B=>{this.tlsSessionCache.set(F,B)}),D.once("error",B=>{for(let{reject:H}of E)H(B);this.tlsSessionCache.delete(F)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(T){P&&this._freeSessionsCount--,this._sessionsCount--;let B=this.sessions[w];B.splice(B.indexOf(D),1),B.length===0&&delete this.sessions[w]}else{let B=new Error("Session closed without receiving a SETTINGS frame");B.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(B);x()}this._tryToCreateNewSession(w,A)});let I=()=>{if(!(!(w in this.queue)||!O())){for(let B of D[o])if(B in this.queue[w]){let{listeners:H}=this.queue[w][B];for(;H.length!==0&&O();)H.shift().resolve(D);let G=this.queue[w];if(G[B].listeners.length===0&&(delete G[B],Object.keys(G).length===0)){delete this.queue[w];break}if(!O())break}}};D.on("origin",()=>{D[o]=D.originSet,O()&&(I(),d(this.sessions[w],D))}),D.once("remoteSettings",()=>{if(D.ref(),D.unref(),this._sessionsCount++,C.destroyed){let B=new Error("Agent has been destroyed");for(let H of E)H.reject(B);D.destroy();return}D[o]=D.originSet;{let B=this.sessions;if(w in B){let H=B[w];H.splice(h(H,D,u),0,D)}else B[w]=[D]}this._freeSessionsCount+=1,T=!0,this.emit("session",D),I(),x(),D[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&D.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),D.on("remoteSettings",()=>{I(),d(this.sessions[w],D)})}),D[s]=D.request,D.request=(B,H)=>{if(D[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let G=D[s](B,H);return D.ref(),++D[a],D[a]===D.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,G.once("close",()=>{if(P=O(),--D[a],!D.destroyed&&!D.closed&&(p(this.sessions[w],D),O()&&!D.closed)){P||(this._freeSessionsCount++,P=!0);let J=D[a]===0;J&&D.unref(),J&&(this._freeSessionsCount>this.maxFreeSessions||D[f])?D.close():(d(this.sessions[w],D),I())}}),G}}catch(D){for(let O of E)O.reject(D);x()}};C.listeners=E,C.completed=!1,C.destroyed=!1,this.queue[w][A]=C,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),P2=te((e,r)=>{"use strict";Y();var{Readable:t}=le("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),B2=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),b3=te((e,r)=>{"use strict";Y(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),v3=te((e,r)=>{"use strict";Y(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),_3=te((e,r)=>{"use strict";Y();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),L2=te((e,r)=>{"use strict";Y();var t=le("http2"),{Writable:n}=le("stream"),{Agent:i,globalAgent:c}=F2(),a=P2(),s=B2(),o=b3(),f=v3(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=_3(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),C=/^[\^`\-\w!#$%&*+.|~]+$/,F=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends n{constructor(D,O,P){super({autoDestroy:!1});let I=typeof D=="string"||D instanceof URL;if(I&&(D=s(D instanceof URL?D:new URL(D))),typeof O=="function"||O===void 0?(P=O,O=I?D:{...D}):O={...D,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=c;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new h(O.protocol,"https:");let B=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,H=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:G}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[J,L]of Object.entries(O.headers))this.setHeader(J,L);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[w]=O,B===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${B}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${B}`)),G&&this.setTimeout(G),P&&this.once("response",P),this[A]=!1}get method(){return this[E][_]}set method(D){D&&(this[E][_]=D.toUpperCase())}get path(){return this[E][g]}set path(D){D&&(this[E][g]=D)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(D,O,P){if(this._mustNotHaveABody){P(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let I=()=>this._request.write(D,O,P);this._request?I():this[x].push(I)}_final(D){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){D();return}this._request.end(D)};this._request?O():this[x].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(D,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(D)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let D=this.method===S,O=P=>{if(this._request=P,this.destroyed){P.destroy();return}D||o(P,this,["timeout","continue","close","error"]);let I=H=>(...G)=>{!this.writable&&!this.destroyed?H(...G):this.once("finish",()=>{H(...G)})};P.once("response",I((H,G,J)=>{let L=new a(this.socket,P.readableHighWaterMark);this.res=L,L.req=this,L.statusCode=H[b],L.headers=H,L.rawHeaders=J,L.once("end",()=>{this.aborted?(L.aborted=!0,L.emit("aborted")):(L.complete=!0,L.socket=null,L.connection=null)}),D?(L.upgrade=!0,this.emit("connect",L,P,Buffer.alloc(0))?this.emit("close"):P.destroy()):(P.on("data",M=>{!L._dumped&&!L.push(M)&&P.pause()}),P.once("end",()=>{L.push(null)}),this.emit("response",L)||L._dump())})),P.once("headers",I(H=>this.emit("information",{statusCode:H[b]}))),P.once("trailers",I((H,G,J)=>{let{res:L}=this;L.trailers=H,L.rawTrailers=J}));let{socket:B}=P.session;this.socket=B,this.connection=B;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(P){this.emit("error",P)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[w],this[E]))}catch(P){this.emit("error",P)}}}getHeader(D){if(typeof D!="string")throw new l("name","string",D);return this[E][D.toLowerCase()]}get headersSent(){return this[A]}removeHeader(D){if(typeof D!="string")throw new l("name","string",D);if(this.headersSent)throw new u("remove");delete this[E][D.toLowerCase()]}setHeader(D,O){if(this.headersSent)throw new u("set");if(typeof D!="string"||!C.test(D)&&!f(D))throw new d("Header name",D);if(typeof O>"u")throw new p(O,D);if(F.test(O))throw new y("header content",D);this[E][D.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(D,O){let P=()=>this._request.setTimeout(D,O);return this._request?P():this[x].push(P),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(D){}};r.exports=T}),w3=te((e,r)=>{"use strict";Y();var t=le("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),E3=te((e,r)=>{"use strict";Y();var t=le("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),S3=te((e,r)=>{"use strict";Y();var t=le("http"),n=le("https"),i=w3(),c=T2(),a=L2(),s=E3(),o=B2(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),A3=te((e,r)=>{"use strict";Y();var t=le("http2"),n=F2(),i=L2(),c=P2(),a=S3(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),I2=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),x3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("fs"),t=le("util"),n=yr(),i=I2(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),M2=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),k3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),C3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=le("net"),t=k3(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),D3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),R3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),O3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),N2=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),T3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),j2=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),F3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),P3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),B3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),Ns=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=le("util"),t=le("stream"),n=le("fs"),i=le("url"),c=le("http"),a=le("http"),s=le("https"),o=t3(),f=r3(),l=m3(),h=g3(),u=A3(),d=pl(),p=yr(),y=x3(),b=I2(),_=M2(),g=C3(),S=D3(),E=R3(),v=O3(),m=N2(),w=T3(),A=j2(),x=F3(),C=P3(),F=B3(),T,D=Symbol("request"),O=Symbol("response"),P=Symbol("responseSize"),I=Symbol("downloadedSize"),B=Symbol("bodySize"),H=Symbol("uploadedSize"),G=Symbol("serverResponsesPiped"),J=Symbol("unproxyEvents"),L=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),K=Symbol("stopReading"),q=Symbol("triggerRead"),Z=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),ee=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),z=new Set([300,301,302,303,304,307,308]),k=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of k)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var U=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
124
- `).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
125
- `).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
126
- `)}${Ee.reverse().join(`
127
- `)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ie}=this.options;if(!Ie)throw new TypeError("Missing `url` property");if(this.requestUrl=Ie.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[D])===null||Ae===void 0||Ae.destroy();return}for(let Be of this[N])Be();this[N].length=0,this.requestInitialized=!0}catch(Ie){if(Ie instanceof U){this._beforeError(Ie);return}this.destroyed||this.destroy(Ie)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Pe=$.searchParams[Fe];Pe===null?Se.append(Fe,""):Pe!==void 0&&Se.append(Fe,Pe)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Pe)=>{Se.has(Pe)||Se.append(Pe,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Pe=>{let ke=$.url;if(!ke.href.startsWith(Pe))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Pe}: ${ke.href}`);$.url=new i.URL(Pe+ke.href.slice(Se.length)),Se=Pe},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ie}=$;if(Ie){let{setCookie:Se,getCookieString:Fe}=Ie;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Be}=$;if(Be&&(pe.has(Be)||pe.set(Be,new l((Se,Fe)=>{let Pe=Se[D](Se,Fe);return p.default.promise(Pe)&&(Pe.once=(ke,Ce)=>{if(ke==="error")Pe.catch(Ce);else if(ke==="abort")(async()=>{try{(await Pe).once("abort",Ce)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Pe}),Pe},Be))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Ht=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!Ht)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),C.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&z.has(_e)){if(V.resume(),this[D]&&(this[M](),delete this[D],this[J]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Be){return Be.protocol==="unix:"||Be.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ie=Ae.toString();if(decodeURI(Ie),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ie),$.url=Ae;for(let Be of $.hooks.beforeRedirect)await Be($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ie=V.headers[Ee];Ae&&be.setHeader(Ee,Ie)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[J]=_.default(V,this,we),this[D]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let Ce in be)if(p.default.undefined(be[Ce]))delete be[Ce];else if(p.default.null_(be[Ce]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ce}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let Ce=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(Ce)&&(he.headers.cookie=Ce)}for(let Ce of he.hooks.beforeRequest){let qt=await Ce(he);if(!p.default.undefined(qt)){he.request=()=>qt;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ie,url:Be}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Be.hostname==="unix"){let Ce=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Be.pathname}${Be.search}`);if(Ce!=null&&Ce.groups){let{socketPath:qt,path:ro}=Ce.groups;Object.assign(he,{socketPath:qt,path:ro,host:""})}}let Ht=Be.protocol==="https:",Se;he.http2?Se=u.auto:Se=Ht?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Pe=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[Ht?"https":"http"]),he[D]=Fe,delete he.request,delete he.timeout;let ke=he;if(ke.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,ke.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,ke.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(ke.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(ke.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(ke.ca=he.https.certificateAuthority),he.https.certificate&&(ke.cert=he.https.certificate),he.https.key&&(ke.key=he.https.key),he.https.passphrase&&(ke.passphrase=he.https.passphrase),he.https.pfx&&(ke.pfx=he.https.pfx));try{let Ce=await Pe(Be,ke);p.default.undefined(Ce)&&(Ce=Se(Be,ke)),he.request=Ae,he.timeout=Ie,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete ke.rejectUnauthorized,he.https.checkServerIdentity&&delete ke.checkServerIdentity,he.https.certificateAuthority&&delete ke.ca,he.https.certificate&&delete ke.cert,he.https.key&&delete ke.key,he.https.passphrase&&delete ke.passphrase,he.https.pfx&&delete ke.pfx),de(Ce)?this._onRequest(Ce):this.writable?(this.once("finish",()=>{this._onResponse(Ce)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ce)}catch(Ce){throw Ce instanceof l.CacheError?new me(Ce,this):new U(Ce.message,Ce,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[D].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[D].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(D in this)){V();return}if(this[D].destroyed){V();return}this[D].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[D].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),D in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[D].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[D])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[D])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[D])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),js=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Ns(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(Ns(),e)}),L3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=js(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),$2=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=le("events"),i=yr(),c=JT(),a=js(),s=L3(),o=Ns(),f=M2(),l=N2(),h=j2(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var D;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((D=T.headers["content-encoding"])!==null&&D!==void 0?D:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async J=>{let L=o.default.normalizeArguments(void 0,{...J,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let C=T=>{if(g.isCanceled)return;let{options:D}=x;if(T instanceof a.HTTPError&&!D.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",C);let F=x.options.body;x.once("retry",(T,D)=>{var O,P;if(F===((O=D.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=D.request)===null||P===void 0?void 0:P.options.body)){C(D);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(js(),e)}),I3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=js();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),M3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),N3=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0})}),y2=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=yr(),i=$2(),c=I3(),a=Ns(),s=M3(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:C,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=C,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,C=F=>_.handlers[x++](F,x===_.handlers.length?u:C);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(D){F=D}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return C(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,C=0;for(;C<w.requestLimit;){C!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),D=[];for(let P of T)if(w.filter(P,A,D)&&(!w.shouldContinue(P,A,D)||(yield P,w.stackAllItems&&A.push(P),D.push(P),--x<=0)))return;let O=w.paginate(F,A,D);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),C++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(N3(),e)}),j3=te((e,r)=>{"use strict";Y();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=le("url"),c=y2(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(y2(),e),n($2(),e)});Y();var WN=Ne(QT()),VN=Ne(j3()),KN=(0,q2.promisify)(H2.Stream.pipeline);var $3=te((e,r)=>{"use strict";Y(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),G2=te((e,r)=>{Y();var t=$3(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),H3=te((e,r)=>{Y();var t=G2();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),q3=te((e,r)=>{Y();var t=G2(),n=H3(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),U2=te((e,r)=>{"use strict";Y();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=q3());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),G3=te((e,r)=>{"use strict";Y(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),z2=te((e,r)=>{"use strict";Y();var t=le("os"),n=le("tty"),i=G3(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),U3=te((e,r)=>{"use strict";Y();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
128
- `:`
129
- `)+a,o=s+1,s=i.indexOf(`
130
- `,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),z3=te((e,r)=>{"use strict";Y();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
131
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),W3=te((e,r)=>{"use strict";Y();var t=U2(),{stdout:n,stderr:i}=z2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=U3(),s=["ansi","ansi","ansi256","ansi16m"],o=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},l=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=l,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))o[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};o.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)o[v]={get(){let{level:m}=this;return function(...w){let A=y(t.color[s[m]][v](...w),t.color.close,this._styler);return b(this,A,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);o[m]={get(){let{level:w}=this;return function(...A){let x=y(t.bgColor[s[w]][v](...A),t.bgColor.close,this._styler);return b(this,x,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...o,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let A,x;return w===void 0?(A=v,x=m):(A=w.openAll+v,x=m+w.closeAll),{open:v,close:m,openAll:A,closeAll:x,parent:w}},b=(v,m,w)=>{let A=(...x)=>_(A,x.length===1?""+x[0]:x.join(" "));return A.__proto__=p,A._generator=v,A._styler=m,A._isEmpty=w,A},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:A,closeAll:x}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=c(m,w.close,w.open),w=w.parent;let C=m.indexOf(`
132
- `);return C!==-1&&(m=a(m,x,A,C)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let C=1;C<w.length;C++)x.push(String(A[C-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[C]));return g===void 0&&(g=z3()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),V3=te((e,r)=>{"use strict";Y();var t=Bs(),n=Ls();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),K3=te(e=>{"use strict";Y();var r=V3(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),Y3=te((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),X3=te((e,r)=>{"use strict";Y();var t=Object.assign({},Y3()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),Z3=te((e,r)=>{"use strict";Y();var t=Lr(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),Q3=te((e,r)=>{"use strict";Y(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),J3=te((e,r)=>{"use strict";Y();var t=Q3();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),eF=te((e,r)=>{Y();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),tF=te((e,r)=>{Y();var t=eF();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),rF=te((e,r)=>{Y(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),nF=te((e,r)=>{"use strict";Y();var t=tF(),n=rF(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),iF=te((e,r)=>{"use strict";Y(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),sF=te((e,r)=>{Y();var t=le("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),oF=te((e,r)=>{"use strict";Y();var t=le("readline"),n=W3(),i=K3(),c=X3(),a=Z3(),s=J3(),o=nF(),f=iF(),l=sF(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
133
- `).reduce((E,v)=>E+Math.max(1,Math.ceil(o(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
134
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
135
- `),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),aF=te((e,r)=>{"use strict";Y();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
136
- `:`
137
- `)+a,o=s+1,s=i.indexOf(`
138
- `,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),uF=te((e,r)=>{"use strict";Y();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
139
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),lF=te((e,r)=>{"use strict";Y();var t=U2(),{stdout:n,stderr:i}=z2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=aF(),{isArray:s}=Array,o=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),l=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let A=n?n.level:0;m.level=w.level===void 0?A:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return l(w,m),w.template=(...A)=>E(w.template,...A),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let A=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:A}),A}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...A){let x=b(t.color[o[w]][m](...A),t.color.close,this._styler);return _(this,x,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:A}=this;return function(...x){let C=b(t.bgColor[o[A]][m](...x),t.bgColor.close,this._styler);return _(this,C,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,A)=>{let x,C;return A===void 0?(x=m,C=w):(x=A.openAll+m,C=w+A.closeAll),{open:m,close:w,openAll:x,closeAll:C,parent:A}},_=(m,w,A)=>{let x=(...C)=>s(C[0])&&s(C[0].raw)?g(x,E(x,...C)):g(x,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(x,y),x._generator=m,x._styler=w,x._isEmpty=A,x},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let A=m._styler;if(A===void 0)return w;let{openAll:x,closeAll:C}=A;if(w.indexOf("\x1B")!==-1)for(;A!==void 0;)w=c(w,A.close,A.open),A=A.parent;let F=w.indexOf(`
140
- `);return F!==-1&&(w=a(w,C,x,F)),x+w+C},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),C=[A.raw[0]];for(let F=1;F<A.length;F++)C.push(String(x[F-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[F]));return S===void 0&&(S=uF()),S(m,C.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),cF=te((e,r)=>{Y(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,z){if(j=j||"",z=z||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,z);var k=h(j);this._originalInput=j,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=z.format||k.format,this._gradientType=z.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=k.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),z,k,U,X,ne,me;return z=j.r/255,k=j.g/255,U=j.b/255,z<=.03928?X=z/12.92:X=t.pow((z+.055)/1.055,2.4),k<=.03928?ne=k/12.92:ne=t.pow((k+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=t.pow((U+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=J(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.v*100);return this._a==1?"hsv("+z+", "+k+"%, "+U+"%)":"hsva("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.l*100);return this._a==1?"hsl("+z+", "+k+"%, "+U+"%)":"hsla("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(L(this._r,255)*100)+"%",g:a(L(this._g,255)*100)+"%",b:a(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%)":"rgba("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var z="#"+S(this._r,this._g,this._b,this._a),k=z,U=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);k="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+U+"startColorstr="+z+",endColorstr="+k+")"},toString:function(j){var z=!!j;j=j||this._format;var k=!1,U=this._a<1&&this._a>=0,X=!z&&U&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(k=this.toRgbString()),j==="prgb"&&(k=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(k=this.toHexString()),j==="hex3"&&(k=this.toHexString(!0)),j==="hex4"&&(k=this.toHex8String(!0)),j==="hex8"&&(k=this.toHex8String()),j==="name"&&(k=this.toName()),j==="hsl"&&(k=this.toHslString()),j==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,z){var k=j.apply(null,[this].concat([].slice.call(z)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(j,z){return j.apply(null,[this].concat([].slice.call(z)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},l.fromRatio=function(j,z){if(typeof j=="object"){var k={};for(var U in j)j.hasOwnProperty(U)&&(U==="a"?k[U]=j[U]:k[U]=N(j[U]));j=k}return l(j,z)};function h(j){var z={r:0,g:0,b:0},k=1,U=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(z=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(U=N(j.s),X=N(j.v),z=b(j.h,U,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(U=N(j.s),ne=N(j.l),z=p(j.h,U,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(k=j.a)),k=J(k),{ok:me,format:j.format||se,r:s(255,o(z.r,0)),g:s(255,o(z.g,0)),b:s(255,o(z.b,0)),a:k}}function u(j,z,k){return{r:L(j,255)*255,g:L(z,255)*255,b:L(k,255)*255}}function d(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=(U+X)/2;if(U==X)ne=me=0;else{var fe=U-X;switch(me=se>.5?fe/(2-U-X):fe/(U+X),U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,z,k){var U,X,ne;j=L(j,360),z=L(z,100),k=L(k,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(z===0)U=X=ne=k;else{var se=k<.5?k*(1+z):k+z-k*z,fe=2*k-se;U=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:U*255,g:X*255,b:ne*255}}function y(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=U,fe=U-X;if(me=U===0?0:fe/U,U==X)ne=0;else{switch(U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,z,k){j=L(j,360)*6,z=L(z,100),k=L(k,100);var U=t.floor(j),X=j-U,ne=k*(1-z),me=k*(1-X*z),se=k*(1-(1-X)*z),fe=U%6,ie=[k,me,ne,ne,se,k][fe],ye=[se,k,k,me,ne,ne][fe],we=[ne,ne,se,k,k,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,z,k,U){var X=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return U&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,z,k,U,X){var ne=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16)),Z(W(U))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,z,k,U){var X=[Z(W(U)),Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return X.join("")}l.equals=function(j,z){return!j||!z?!1:l(j).toRgbString()==l(z).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s-=z/100,k.s=M(k.s),l(k)}function v(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s+=z/100,k.s=M(k.s),l(k)}function m(j){return l(j).desaturate(100)}function w(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l+=z/100,k.l=M(k.l),l(k)}function A(j,z){z=z===0?0:z||10;var k=l(j).toRgb();return k.r=o(0,s(255,k.r-a(255*-(z/100)))),k.g=o(0,s(255,k.g-a(255*-(z/100)))),k.b=o(0,s(255,k.b-a(255*-(z/100)))),l(k)}function x(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l-=z/100,k.l=M(k.l),l(k)}function C(j,z){var k=l(j).toHsl(),U=(k.h+z)%360;return k.h=U<0?360+U:U,l(k)}function F(j){var z=l(j).toHsl();return z.h=(z.h+180)%360,l(z)}function T(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+120)%360,s:z.s,l:z.l}),l({h:(k+240)%360,s:z.s,l:z.l})]}function D(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+90)%360,s:z.s,l:z.l}),l({h:(k+180)%360,s:z.s,l:z.l}),l({h:(k+270)%360,s:z.s,l:z.l})]}function O(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+72)%360,s:z.s,l:z.l}),l({h:(k+216)%360,s:z.s,l:z.l})]}function P(j,z,k){z=z||6,k=k||30;var U=l(j).toHsl(),X=360/k,ne=[l(j)];for(U.h=(U.h-(X*z>>1)+720)%360;--z;)U.h=(U.h+X)%360,ne.push(l(U));return ne}function I(j,z){z=z||6;for(var k=l(j).toHsv(),U=k.h,X=k.s,ne=k.v,me=[],se=1/z;z--;)me.push(l({h:U,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,z,k){k=k===0?0:k||50;var U=l(j).toRgb(),X=l(z).toRgb(),ne=k/100,me={r:(X.r-U.r)*ne+U.r,g:(X.g-U.g)*ne+U.g,b:(X.b-U.b)*ne+U.b,a:(X.a-U.a)*ne+U.a};return l(me)},l.readability=function(j,z){var k=l(j),U=l(z);return(t.max(k.getLuminance(),U.getLuminance())+.05)/(t.min(k.getLuminance(),U.getLuminance())+.05)},l.isReadable=function(j,z,k){var U=l.readability(j,z),X,ne;switch(ne=!1,X=pe(k),X.level+X.size){case"AAsmall":case"AAAlarge":ne=U>=4.5;break;case"AAlarge":ne=U>=3;break;case"AAAsmall":ne=U>=7;break}return ne},l.mostReadable=function(j,z,k){var U=null,X=0,ne,me,se,fe;k=k||{},me=k.includeFallbackColors,se=k.level,fe=k.size;for(var ie=0;ie<z.length;ie++)ne=l.readability(j,z[ie]),ne>X&&(X=ne,U=l(z[ie]));return l.isReadable(j,U,{level:se,size:fe})||!me?U:(k.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],k))};var B=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=G(B);function G(j){var z={};for(var k in j)j.hasOwnProperty(k)&&(z[j[k]]=k);return z}function J(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function L(j,z){K(j)&&(j="100%");var k=q(j);return j=s(z,o(0,parseFloat(j))),k&&(j=parseInt(j*z,10)/100),t.abs(j-z)<1e-6?1:j%z/parseFloat(z)}function M(j){return s(1,o(0,j))}function R(j){return parseInt(j,16)}function K(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function q(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Z(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function ee(j){return R(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",z="[-\\+]?\\d*\\.\\d+%?",k="(?:"+z+")|(?:"+j+")",U="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",X="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var z=!1;if(B[j])j=B[j],z=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=ae.rgb.exec(j))?{r:k[1],g:k[2],b:k[3]}:(k=ae.rgba.exec(j))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=ae.hsl.exec(j))?{h:k[1],s:k[2],l:k[3]}:(k=ae.hsla.exec(j))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=ae.hsv.exec(j))?{h:k[1],s:k[2],v:k[3]}:(k=ae.hsva.exec(j))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=ae.hex8.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),a:ee(k[4]),format:z?"name":"hex8"}:(k=ae.hex6.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),format:z?"name":"hex"}:(k=ae.hex4.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),a:ee(k[4]+""+k[4]),format:z?"name":"hex8"}:(k=ae.hex3.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),format:z?"name":"hex"}:!1}function pe(j){var z,k;return j=j||{level:"AA",size:"small"},z=(j.level||"AA").toUpperCase(),k=(j.size||"small").toLowerCase(),z!=="AA"&&z!=="AAA"&&(z="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:z,size:k}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),hF=te((e,r)=>{Y();var t=cF(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),fF=te((e,r)=>{"use strict";Y();var t=lF(),n=hF(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
141
- `),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
142
- `)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),Zt={};l2(Zt,{bold:()=>bF,dimmed:()=>vF,error:()=>Q2,info:()=>gF,item:()=>_F,log:()=>Sn,turboBlue:()=>En,turboGradient:()=>yF,turboLoader:()=>X2,turboRed:()=>K2,warn:()=>Z2,yellow:()=>Y2});Y();var hi=Ne(Lr()),pF=Ne(oF()),dF=Ne(fF()),W2="#0099F7",V2="#F11712",mF="#FFFF00",yF=(0,dF.default)(W2,V2),En=hi.default.hex(W2),K2=hi.default.hex(V2),Y2=hi.default.hex(mF),X2=e=>(0,pF.default)({text:e,spinner:{frames:[" ",En("> "),En(">> "),En(">>>")]}}),gF=(...e)=>{Sn(En.bold(">>>"),...e)},bF=(...e)=>{Sn(hi.default.bold(...e))},vF=(...e)=>{Sn(hi.default.dim(...e))},_F=(...e)=>{Sn(En.bold(" \u2022"),...e)},Sn=(...e)=>{console.log(...e)},Z2=(...e)=>{console.error(Y2.bold(">>>"),...e)},Q2=(...e)=>{console.error(K2.bold(">>>"),...e)};Y();var b7=Ne(mr());var CF=te((e,r)=>{Y();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.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))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),DF=te(e=>{Y();var r=CF();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),RF=te((e,r)=>{Y(),r.exports=DF()}),OF=te((e,r)=>{Y();var t=RF();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});Y();var C7=Ne(OF()),D7=Ne(Lr()),R7=Ne(mr());Y();var FF=te((e,r)=>{Y();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),PF=te((e,r)=>{Y();var t=FF().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var J=B&&B.prototype instanceof b?B:b,L=Object.create(J.prototype),M=new D(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(J,L,M,R){var K=p(I[J],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(J,L){function M(){return new B(function(R,K){H(J,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(J,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(J==="throw")throw L;return P()}for(H.method=J,H.arg=L;;){var M=H.delegate;if(M){var R=C(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function C(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,C(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var J=p(G,I.iterator,B.arg);if(J.type==="throw")return B.method="throw",B.arg=J.arg,B.delegate=null,y;var L=J.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function D(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function J(){for(;++H<I.length;)if(a.call(I,H))return J.value=I[H],J.done=!1,J;return J.value=void 0,J.done=!0,J};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,J){J===void 0&&(J=Promise);var L=new A(d(I,B,H,G),J);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function J(){for(;H.length;){var L=H.pop();if(L in B)return J.value=L,J.done=!1,J}return J.done=!0,J}},i.values=O,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G],L=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var M=a.call(J,"catchLoc"),R=a.call(J,"finallyLoc");if(M&&R){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(M){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var J=G;break}}J&&(I==="break"||I==="continue")&&J.tryLoc<=B&&B<=J.finallyLoc&&(J=null);var L=J?J.completion:{};return L.type=I,L.arg=B,J?(this.method="next",this.next=J.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var J=G.arg;T(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),BF=te((e,r)=>{Y();var t=PF()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),LF=te((e,r)=>{"use strict";Y();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),IF=te((e,r)=>{"use strict";Y();var t=LF(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),MF=te((e,r)=>{"use strict";Y();var t=IF(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),NF=te((e,r)=>{"use strict";Y();var t=le("path"),n=le("fs"),{promisify:i}=le("util"),c=MF(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),jF=te((e,r)=>{"use strict";Y();var t=le("fs"),{promisify:n}=le("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),$F=te((e,r)=>{"use strict";Y();var t=le("path"),n=NF(),i=jF(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),wt=te(e=>{"use strict";Y(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),J2=te(e=>{"use strict";Y();var r=wt().fromCallback,t=Le(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),e1=te((e,r)=>{"use strict";Y();var t=le("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),HF=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=e1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),qF=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=e1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),xt=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=t(HF()),i=qF();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),t1=te((e,r)=>{"use strict";Y();var t=Le(),n=le("os"),i=le("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),qs=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:C,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===C.ino&&F.dev===C.dev?w(new Error("Source and destination must not be the same.")):C.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:C,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),C=n.resolve(n.dirname(m));if(C===x||C===n.parse(C).root)return A();h()?t.stat(C,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A)):t.stat(C,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let C;try{h()?C=t.statSync(x,{bigint:!0}):C=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(C.ino&&C.dev&&C.ino===v.ino&&C.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,C)=>A&&w[C]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),GF=te((e,r)=>{"use strict";Y(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),UF=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=xt().mkdirsSync,c=t1().utimesMillisSync,a=qs();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
143
-
144
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=GF()(65536),C=t.openSync(m,"r"),F=t.openSync(w,"w",v.mode),T=0;for(;T<v.size;){let D=t.readSync(C,x,0,65536,T);t.writeSync(F,x,0,D),T+=D}A.preserveTimestamps&&t.futimesSync(F,v.atime,v.mtime),t.closeSync(C),t.closeSync(F)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),C=n.join(w,v),{destStat:F}=a.checkPathsSync(x,C,"copy");return f(F,x,C,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let C;try{C=t.readlinkSync(w)}catch(F){if(F.code==="EINVAL"||F.code==="UNKNOWN")return t.symlinkSync(x,w);throw F}if(A.dereference&&(C=n.resolve(process.cwd(),C)),a.isSrcSubdir(x,C))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${C}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(C,x))throw new Error(`Cannot overwrite '${C}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),r1=te((e,r)=>{"use strict";Y(),r.exports={copySync:UF()}}),Qt=te((e,r)=>{"use strict";Y();var t=wt().fromPromise,n=J2();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),zF=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=xt().mkdirs,c=Qt().pathExists,a=t1().utimesMillis,s=qs();function o(x,C,F,T){typeof F=="function"&&!T?(T=F,F={}):typeof F=="function"&&(F={filter:F}),T=T||function(){},F=F||{},F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
145
-
146
- see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,C,"copy",(D,O)=>{if(D)return T(D);let{srcStat:P,destStat:I}=O;s.checkParentPaths(x,P,C,"copy",B=>B?T(B):F.filter?l(f,I,x,C,F,T):f(I,x,C,F,T))})}function f(x,C,F,T,D){let O=n.dirname(F);c(O,(P,I)=>{if(P)return D(P);if(I)return h(x,C,F,T,D);i(O,B=>B?D(B):h(x,C,F,T,D))})}function l(x,C,F,T,D,O){Promise.resolve(D.filter(F,T)).then(P=>P?x(C,F,T,D,O):O(),P=>O(P))}function h(x,C,F,T,D){return T.filter?l(u,x,C,F,T,D):u(x,C,F,T,D)}function u(x,C,F,T,D){(T.dereference?t.stat:t.lstat)(C,(O,P)=>{if(O)return D(O);if(P.isDirectory())return g(P,x,C,F,T,D);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return d(P,x,C,F,T,D);if(P.isSymbolicLink())return w(x,C,F,T,D)})}function d(x,C,F,T,D,O){return C?p(x,F,T,D,O):y(x,F,T,D,O)}function p(x,C,F,T,D){if(T.overwrite)t.unlink(F,O=>O?D(O):y(x,C,F,T,D));else return T.errorOnExist?D(new Error(`'${F}' already exists`)):D()}function y(x,C,F,T,D){return typeof t.copyFile=="function"?t.copyFile(C,F,O=>O?D(O):_(x,F,T,D)):b(x,C,F,T,D)}function b(x,C,F,T,D){let O=t.createReadStream(C);O.on("error",P=>D(P)).once("open",()=>{let P=t.createWriteStream(F,{mode:x.mode});P.on("error",I=>D(I)).on("open",()=>O.pipe(P)).once("close",()=>_(x,F,T,D))})}function _(x,C,F,T){t.chmod(C,x.mode,D=>D?T(D):F.preserveTimestamps?a(C,x.atime,x.mtime,T):T())}function g(x,C,F,T,D,O){return C?C&&!C.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${F}'.`)):E(F,T,D,O):S(x,F,T,D,O)}function S(x,C,F,T,D){t.mkdir(F,O=>{if(O)return D(O);E(C,F,T,P=>P?D(P):t.chmod(F,x.mode,D))})}function E(x,C,F,T){t.readdir(x,(D,O)=>D?T(D):v(O,x,C,F,T))}function v(x,C,F,T,D){let O=x.pop();return O?m(x,O,C,F,T,D):D()}function m(x,C,F,T,D,O){let P=n.join(F,C),I=n.join(T,C);s.checkPaths(P,I,"copy",(B,H)=>{if(B)return O(B);let{destStat:G}=H;h(G,P,I,D,J=>J?O(J):v(x,F,T,D,O))})}function w(x,C,F,T,D){t.readlink(C,(O,P)=>{if(O)return D(O);if(T.dereference&&(P=n.resolve(process.cwd(),P)),x)t.readlink(F,(I,B)=>I?I.code==="EINVAL"||I.code==="UNKNOWN"?t.symlink(P,F,D):D(I):(T.dereference&&(B=n.resolve(process.cwd(),B)),s.isSrcSubdir(P,B)?D(new Error(`Cannot copy '${P}' to a subdirectory of itself, '${B}'.`)):x.isDirectory()&&s.isSrcSubdir(B,P)?D(new Error(`Cannot overwrite '${B}' with '${P}'.`)):A(P,F,D)));else return t.symlink(P,F,D)})}function A(x,C,F){t.unlink(C,T=>T?F(T):t.symlink(x,C,F))}r.exports=o}),n1=te((e,r)=>{"use strict";Y();var t=wt().fromCallback;r.exports={copy:t(zF())}}),WF=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=le("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Gs=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=WF();r.exports={remove:t(n),removeSync:n.sync}}),VF=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=Le(),i=le("path"),c=xt(),a=Gs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),KF=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=le("path"),i=Le(),c=xt(),a=Qt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),YF=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=le("path"),i=Le(),c=xt(),a=Qt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),XF=te((e,r)=>{"use strict";Y();var t=le("path"),n=Le(),i=Qt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),ZF=te((e,r)=>{"use strict";Y();var t=Le();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),QF=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=le("path"),i=Le(),c=xt(),a=c.mkdirs,s=c.mkdirsSync,o=XF(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=ZF(),u=h.symlinkType,d=h.symlinkTypeSync,p=Qt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,C)=>{if(x)return E(x);let F=n.dirname(g);p(F,(T,D)=>{if(T)return E(T);if(D)return i.symlink(_,g,C,E);a(F,O=>{if(O)return E(O);i.symlink(_,g,C,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),JF=te((e,r)=>{"use strict";Y();var t=KF(),n=YF(),i=QF();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),eP=te((e,r)=>{Y();var t;try{t=Le()}catch{t=le("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
147
- `;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),yl=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=eP();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),tP=te((e,r)=>{"use strict";Y();var t=le("path"),n=xt(),i=Qt().pathExists,c=yl();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),rP=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=xt(),c=yl();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),nP=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=yl();n.outputJson=t(tP()),n.outputJsonSync=rP(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),iP=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=r1().copySync,c=Gs().removeSync,a=xt().mkdirpSync,s=qs();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),sP=te((e,r)=>{"use strict";Y(),r.exports={moveSync:iP()}}),oP=te((e,r)=>{"use strict";Y();var t=Le(),n=le("path"),i=n1().copy,c=Gs().remove,a=xt().mkdirp,s=Qt().pathExists,o=qs();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),aP=te((e,r)=>{"use strict";Y();var t=wt().fromCallback;r.exports={move:t(oP())}}),uP=te((e,r)=>{"use strict";Y();var t=wt().fromCallback,n=Le(),i=le("path"),c=xt(),a=Qt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),lP=te((e,r)=>{"use strict";Y(),r.exports=Object.assign({},J2(),r1(),n1(),VF(),JF(),nP(),xt(),sP(),aP(),uP(),Qt(),Gs());var t=le("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Y();Y();var I7=Ne(BF());Y();Y();function cP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Y();Y();function dl(e){return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dl(e)}Y();function hP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fP(e,r){if(r&&(dl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hP(e)}Y();function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hs(e)}Y();Y();function fi(e,r){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},fi(e,r)}function pP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&fi(e,r)}Y();Y();function dP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Y();Y();function mP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $s(e,r,t){return mP()?$s=Reflect.construct.bind():$s=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&fi(o,c.prototype),o},$s.apply(null,arguments)}function ml(e){var r=typeof Map=="function"?new Map:void 0;return ml=function(t){if(t===null||!dP(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return $s(t,arguments,Hs(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),fi(n,t)},ml(e)}var M7=Ne($F()),N7=Ne(lP()),j7=function(e){pP(r,e);function r(t){var n;return cP(this,r),n=fP(this,Hs(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(ml(Error));Y();var gP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),bP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),vP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),_P=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=le("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),wP=te((e,r)=>{Y(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),EP=te((e,r)=>{Y();var t=wP(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),SP=te((e,r)=>{"use strict";Y();var t=EP(),n=le("path").posix.dirname,i=le("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),xl=te(e=>{"use strict";Y(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),kl=te((e,r)=>{"use strict";Y();var t=xl();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),AP=te((e,r)=>{"use strict";Y(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),xP=te((e,r)=>{"use strict";Y();var t=AP(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),C=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(C))return n.cache[C].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let D=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(D&&(O.isPadded=D,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[C]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[C,F]=v[x];C===F?w+=C:C!=="0"||F!=="9"?w+=y(C,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let C=0;C<m.length;C++){let F=m[C],T=a(String(A),String(F),v),D="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(D=_(F,E,v)),T.string=D+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),v1=te((e,r)=>{"use strict";Y();var t=le("util"),n=xP(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",C;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?C=`${A}|${x}`:C=A||x,m.wrap?`(${w}${C})`:C},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let C=String.fromCharCode(m);return`[${x}-${C}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),C=Number(m);if(!Number.isInteger(x)||!Number.isInteger(C)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),C===0&&(C=0);let F=x>C,T=String(v),D=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(D)||o(O),I=P?Math.max(T.length,D.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},J=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=C:x<=C;)A.toRegex===!0&&w>1?J(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),C=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=C>F,D=Math.min(C,F),O=Math.max(C,F);if(A.toRegex&&w===1)return d(D,O,!1,A);let P=[],I=0;for(;T?C>=F:C<=F;)P.push(x(C,I)),C=T?C-w:C+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),kP=te((e,r)=>{"use strict";Y();var t=v1(),n=xl(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),CP=te((e,r)=>{"use strict";Y();var t=v1(),n=kl(),i=xl(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),DP=te((e,r)=>{"use strict";Y(),r.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:`
148
- `,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"}}),RP=te((e,r)=>{"use strict";Y();var t=kl(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=DP(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,C=w,F=0,T=S.length,D=0,O=0,P,I={},B=()=>S[D++],H=G=>{if(G.type==="text"&&C.type==="dot"&&(C.type="text"),C&&C.type==="text"&&G.type==="text"){C.value+=G.value;return}return x.nodes.push(G),G.parent=x,G.prev=C,C=G,G};for(H({type:"bos"});D<T;)if(x=A[A.length-1],P=B(),!(P===_||P===b)){if(P===i){H({type:"text",value:(E.keepEscaping?P:"")+B()});continue}if(P===d){H({type:"text",value:"\\"+P});continue}if(P===u){F++;let G=!0,J;for(;D<T&&(J=B());){if(P+=J,J===u){F++;continue}if(J===i){P+=B();continue}if(J===d&&(F--,F===0))break}H({type:"text",value:P});continue}if(P===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:P});continue}if(P===f){if(x.type!=="paren"){H({type:"text",value:P});continue}x=A.pop(),H({type:"text",value:P}),x=A[A.length-1];continue}if(P===p||P===y||P===c){let G=P,J;for(E.keepQuotes!==!0&&(P="");D<T&&(J=B());){if(J===i){P+=J+B();continue}if(J===G){E.keepQuotes===!0&&(P+=J);break}P+=J}H({type:"text",value:P});continue}if(P===l){O++;let G=C.value&&C.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:G,depth:O,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:P});continue}if(P===h){if(x.type!=="brace"){H({type:"text",value:P});continue}let G="close";x=A.pop(),x.close=!0,H({type:G,value:P}),O--,x=A[A.length-1];continue}if(P===a&&O>0){if(x.ranges>0){x.ranges=0;let G=x.nodes.shift();x.nodes=[G,{type:"text",value:t(x)}]}H({type:"comma",value:P}),x.commas++;continue}if(P===s&&O>0&&x.commas===0){let G=x.nodes;if(O===0||G.length===0){H({type:"text",value:P});continue}if(C.type==="dot"){if(x.range=[],C.value+=P,C.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,C.type="text";continue}x.ranges++,x.args=[];continue}if(C.type==="range"){G.pop();let J=G[G.length-1];J.value+=C.value+P,C=J,x.ranges--;continue}H({type:"dot",value:P});continue}H({type:"text",value:P})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let G=A[A.length-1],J=G.nodes.indexOf(x);G.nodes.splice(J,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),OP=te((e,r)=>{"use strict";Y();var t=kl(),n=kP(),i=CP(),c=RP(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Ys=te((e,r)=>{"use strict";Y();var t=le("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={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"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,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:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),Xs=te(e=>{"use strict";Y();var r=le("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ys();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),TP=te((e,r)=>{"use strict";Y();var t=Xs(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Ys(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,C=[],F=[],T=[],D=v,O=-1,P=0,I=0,B=!1,H=!1,G=!1,J=!1,L=!1,M=!1,R=!1,K=!1,q=!1,Z=!1,N=0,W,ee,ae={value:"",depth:0,isGlob:!1},oe=()=>O>=A,de=()=>D.charCodeAt(O+1),pe=()=>(W=ee,D.charCodeAt(++O));for(;O<A;){ee=pe();let X;if(ee===c){R=ae.backslashes=!0,ee=pe(),ee===l&&(M=!0);continue}if(M===!0||ee===l){for(N++;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,pe();continue}if(ee===l){N++;continue}if(M!==!0&&ee===s&&(ee=pe())===s){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(M!==!0&&ee===a){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===y&&(N--,N===0)){M=!1,B=ae.isBrace=!0,Z=!0;break}}if(x===!0)continue;break}if(ee===f){if(C.push(O),F.push(ae),ae={value:"",depth:0,isGlob:!1},Z===!0)continue;if(W===s&&O===P+1){P+=2;continue}I=O+1;continue}if(w.noext!==!0&&(ee===d||ee===i||ee===n||ee===p||ee===o)&&de()===h){if(G=ae.isGlob=!0,J=ae.isExtglob=!0,Z=!0,ee===o&&O===P&&(q=!0),x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){G=ae.isGlob=!0,Z=!0;break}}continue}break}if(ee===n){if(W===n&&(L=ae.isGlobstar=!0),G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===p){if(G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===u){for(;oe()!==!0&&(X=pe());){if(X===c){R=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,G=ae.isGlob=!0,Z=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&ee===o&&O===P){K=ae.negated=!0,P++;continue}if(w.noparen!==!0&&ee===h){if(G=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===h){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){Z=!0;break}}continue}break}if(G===!0){if(Z=!0,x===!0)continue;break}}w.noext===!0&&(J=!1,G=!1);let j=D,z="",k="";P>0&&(z=D.slice(0,P),D=D.slice(P),I-=P),j&&G===!0&&I>0?(j=D.slice(0,I),k=D.slice(I)):G===!0?(j="",k=D):j=D,j&&j!==""&&j!=="/"&&j!==D&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(k&&(k=t.removeBackslashes(k)),j&&R===!0&&(j=t.removeBackslashes(j)));let U={prefix:z,input:v,start:P,base:j,glob:k,isBrace:B,isBracket:H,isGlob:G,isExtglob:J,isGlobstar:L,negated:K,negatedExtglob:q};if(w.tokens===!0&&(U.maxDepth=0,g(ee)||F.push(ae),U.tokens=F),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<C.length;ne++){let me=X?X+1:P,se=C[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&P!==0?(F[ne].isPrefix=!0,F[ne].value=z):F[ne].value=fe,S(F[ne]),U.maxDepth+=F[ne].depth),(ne!==0||fe!=="")&&T.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);T.push(ne),w.tokens&&(F[F.length-1].value=ne,S(F[F.length-1]),U.maxDepth+=F[F.length-1].depth)}U.slashes=C,U.parts=T}return U};r.exports=E}),FP=te((e,r)=>{"use strict";Y();var t=Ys(),n=Xs(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:T,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:I,STAR:B,START_ANCHOR:H}=v,G=se=>`(${S}(?:(?!${H}${se.dot?F:w}).)*?)`,J=p.dot?"":T,L=p.dot?P:I,M=p.bash===!0?G(p):B;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let R={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,R),b=u.length;let K=[],q=[],Z=[],N=_,W,ee=()=>R.index===b-1,ae=R.peek=(se=1)=>u[R.index+se],oe=R.advance=()=>u[++R.index]||"",de=()=>u.slice(R.index+1),pe=(se="",fe=0)=>{R.consumed+=se,R.index+=fe},j=se=>{R.output+=se.output!=null?se.output:se.value,pe(se.value)},z=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),R.start++,se++;return se%2===0?!1:(R.negated=!0,R.start++,!0)},k=se=>{R[se]++,Z.push(se)},U=se=>{R[se]--,Z.pop()},X=se=>{if(N.type==="globstar"){let fe=R.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||K.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(R.output=R.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,R.output+=N.output)}if(K.length&&se.type!=="paren"&&(K[K.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=R.parens,ie.output=R.output;let ye=(p.capture?"(":"")+ie.open;k("parens"),X({type:se,value:fe,output:R.output?"":C}),X({type:"paren",extglob:!0,value:oe(),output:ye}),K.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=G(p)),(ye!==M||ee()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),U("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?P.repeat(V.length):""):$===0?L+(V?P.repeat(V.length):""):P.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(R.output=u,R):(R.output=n.wrapOutput(fe,R,d),R)}for(;!ee();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,R.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),R.brackets===0){X({type:"text",value:W});continue}}if(R.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,R.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=C);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(R.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){R.quotes=R.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){k("parens"),X({type:"paren",value:W});continue}if(W===")"){if(R.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=K[K.length-1];if(ie&&R.parens===ie.parens+1){me(K.pop());continue}X({type:"paren",value:W,output:R.parens?")":"\\)"}),U("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else k("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(R.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}U("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(R.output=R.output.slice(0,-N.value.length),p.literalBrackets===!0){R.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,R.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){k("braces");let ie={type:"brace",value:W,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};q.push(ie),X(ie);continue}if(W==="}"){let ie=q[q.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),R.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=R.output.slice(0,ie.outputIndex),xe=R.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",R.output=we;for(let V of xe)R.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),U("braces"),q.pop();continue}if(W==="|"){K.length>0&&K[K.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=q[q.length-1];ye&&Z[Z.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(R.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=q[q.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(R.braces+R.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:I});continue}X({type:"qmark",value:W,output:P});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&R.index===0){z();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||R.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],R.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,R.backtrack=!0,R.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=R.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=K.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[R.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&ee()){N.type="globstar",N.value+=W,N.output=G(p),R.output=N.output,R.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&ee()){R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=G(p)+(p.strictSlashes?")":"|$)"),N.value+=W,R.globstar=!0,R.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${G(p)}${x}|${x}${ue})`,N.value+=W,R.output+=ie.output+N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${G(p)}${x})`,R.output=N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-N.output.length),N.type="globstar",N.output=G(p),N.value+=W,R.output+=N.output,R.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=J+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(R.index===R.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(R.output+=D,N.output+=D):p.dot===!0?(R.output+=O,N.output+=O):(R.output+=J,N.output+=J),ae()!=="*"&&(R.output+=C,N.output+=C)),X(fe)}for(;R.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R.output=n.escapeLast(R.output,"["),U("brackets")}for(;R.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));R.output=n.escapeLast(R.output,"("),U("parens")}for(;R.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));R.output=n.escapeLast(R.output,"{"),U("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),R.backtrack===!0){R.output="";for(let se of R.tokens)R.output+=se.output!=null?se.output:se.value,se.suffix&&(R.output+=se.suffix)}return R};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:C}=t.globChars(_),F=p.dot?w:m,T=p.dot?A:m,D=p.capture?"":"?:",O={negated:!1,prefix:""},P=p.bash===!0?".*?":x;p.capture&&(P=`(${P})`);let I=J=>J.noglobstar===!0?P:`(${D}(?:(?!${C}${J.dot?v:g}).)*?)`,B=J=>{switch(J){case"*":return`${F}${E}${P}`;case".*":return`${g}${E}${P}`;case"*.*":return`${F}${P}${g}${E}${P}`;case"*/*":return`${F}${P}${S}${E}${T}${P}`;case"**":return F+I(p);case"**/*":return`(?:${F}${I(p)}${S})?${T}${E}${P}`;case"**/*.*":return`(?:${F}${I(p)}${S})?${T}${P}${g}${E}${P}`;case"**/.*":return`(?:${F}${I(p)}${S})?${g}${E}${P}`;default:{let L=/^(.*?)\.(\w+)$/.exec(J);if(!L)return;let M=B(L[1]);return M?M+g+L[2]:void 0}}},H=n.removePrefix(u,O),G=B(H);return G&&p.strictSlashes!==!0&&(G+=`${S}?`),G},r.exports=h}),PP=te((e,r)=>{"use strict";Y();var t=le("path"),n=TP(),i=FP(),c=Xs(),a=Ys(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),BP=te((e,r)=>{"use strict";Y(),r.exports=PP()}),LP=te((e,r)=>{"use strict";Y();var t=le("util"),n=OP(),i=BP(),c=Xs(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),IP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=le("path"),t=SP(),n=LP(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(B,H={}){return!u(B,H)}e.isStaticPattern=h;function u(B,H={}){return B===""?!1:!!(H.caseSensitiveMatch===!1||B.includes(c)||a.test(B)||s.test(B)||o.test(B)||H.extglob!==!1&&f.test(B)||H.braceExpansion!==!1&&d(B))}e.isDynamicPattern=u;function d(B){let H=B.indexOf("{");if(H===-1)return!1;let G=B.indexOf("}",H+1);if(G===-1)return!1;let J=B.slice(H,G);return l.test(J)}function p(B){return b(B)?B.slice(1):B}e.convertToPositivePattern=p;function y(B){return"!"+B}e.convertToNegativePattern=y;function b(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=b;function _(B){return!b(B)}e.isPositivePattern=_;function g(B){return B.filter(b)}e.getNegativePatterns=g;function S(B){return B.filter(_)}e.getPositivePatterns=S;function E(B){return B.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(B){return B.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(B){return t(B,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(B){return B.includes(i)}e.hasGlobStar=A;function x(B){return B.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function C(B){let H=r.basename(B);return x(B)||h(H)}e.isAffectDepthOfReadingPattern=C;function F(B){return B.reduce((H,G)=>H.concat(T(G)),[])}e.expandPatternsWithBraceExpansion=F;function T(B){return n.braces(B,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function D(B,H){let{parts:G}=n.scan(B,Object.assign(Object.assign({},H),{parts:!0}));return G.length===0&&(G=[B]),G[0].startsWith("/")&&(G[0]=G[0].slice(1),G.unshift("")),G}e.getPatternParts=D;function O(B,H){return n.makeRe(B,H)}e.makeRe=O;function P(B,H){return B.map(G=>O(G,H))}e.convertPatternsToRe=P;function I(B,H){return H.some(G=>G.test(B))}e.matchAny=I}),MP=te((e,r)=>{"use strict";Y();var t=le("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),NP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=MP();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),jP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),vr=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=gP();e.array=r;var t=bP();e.errno=t;var n=vP();e.fs=n;var i=_P();e.path=i;var c=IP();e.pattern=c;var a=NP();e.stream=a;var s=jP();e.string=s}),$P=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=vr();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),HP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),qP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),GP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),UP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),zP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=UP(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),Dn=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=qP(),t=GP(),n=zP();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),WP=te((e,r)=>{Y();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),VP=te((e,r)=>{Y(),r.exports=n;var t=WP();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),_1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),KP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),w1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=KP();e.fs=r}),E1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),YP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Dn(),t=VP(),n=_1(),i=w1(),c=E1();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),XP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Dn(),t=_1(),n=w1(),i=E1();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),ZP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),QP=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Dn(),n=ZP(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),Cl=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=YP(),t=XP(),n=QP();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),JP=te((e,r)=>{"use strict";Y();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),eB=te((e,r)=>{"use strict";Y();var t=JP();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:C,error:F};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var T=h,D=0;T;)T=T.next,D++;return D}function S(){for(var T=h,D=[];T;)D.push(T.value),T=T.next;return D}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,A()}}function v(){return d===0&&y.length()===0}function m(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,O.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=O,u=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function w(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,d===y.concurrency||y.paused?h?(O.next=h,h=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function A(T){T&&l.release(T);var D=h;D?y.paused?d--:(u===h&&(u=null),h=D.next,D.next=null,o.call(s,D.value,D.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function C(){h=null,u=null,y.drain(),y.drain=i}function F(T){p=T}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Dl=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),S1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Dl(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),A1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("events"),t=Cl(),n=eB(),i=Dl(),c=S1(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(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(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),tB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=A1(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),rB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=A1(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),nB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Cl(),t=Dl(),n=S1(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),iB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=nB(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),sB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Cl(),n=class{constructor(i={}){this._options=i,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,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Rl=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=tB(),t=rB(),n=iB(),i=sB();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Ol=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Dn(),n=vr(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),x1=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=Dn(),n=Rl(),i=Ol(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),oB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rl(),t=Ol(),n=x1(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),aB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vr(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),uB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=aB(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),lB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vr(),t=uB(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),cB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),hB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),fB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Tl=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=lB(),n=cB(),i=hB(),c=fB(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.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}}};e.default=a}),pB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=oB(),t=Tl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),dB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=x1(),n=Tl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),mB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Dn(),t=Rl(),n=Ol(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),yB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=mB(),t=Tl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),gB=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=le("fs"),t=le("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,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,n),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(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),bB=te((e,r)=>{"use strict";Y();var t=$P(),n=HP(),i=pB(),c=dB(),a=yB(),s=gB(),o=vr();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Y();Y();function k1(e){return typeof e>"u"||e===null}function vB(e){return typeof e=="object"&&e!==null}function _B(e){return Array.isArray(e)?e:k1(e)?[]:[e]}function wB(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function EB(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function SB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var AB=k1,xB=vB,kB=_B,CB=EB,DB=SB,RB=wB,Ke={isNothing:AB,isObject:xB,toArray:kB,repeat:CB,isNegativeZero:DB,extend:RB};function C1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
149
-
150
- `+e.mark.snippet),n+" "+t):n}function di(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=C1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}di.prototype=Object.create(Error.prototype);di.prototype.constructor=di;di.prototype.toString=function(e){return this.name+": "+C1(this,e)};var pt=di;function gl(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function bl(e,r){return Ke.repeat(" ",r-e.length)+e}function OB(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=gl(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ke.repeat(" ",r.indent)+bl((e.line-o+1).toString(),l)+" | "+f.str+`
151
- `+s;for(f=gl(e.buffer,n[a],i[a],e.position,h),s+=Ke.repeat(" ",r.indent)+bl((e.line+1).toString(),l)+" | "+f.str+`
152
- `,s+=Ke.repeat("-",r.indent+l+3+f.pos)+`^
153
- `,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=gl(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ke.repeat(" ",r.indent)+bl((e.line+o+1).toString(),l)+" | "+f.str+`
154
- `;return s.replace(/\n$/,"")}var TB=OB,FB=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],PB=["scalar","sequence","mapping"];function BB(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function LB(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(FB.indexOf(t)===-1)throw new pt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=BB(r.styleAliases||null),PB.indexOf(this.kind)===-1)throw new pt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var it=LB;function i1(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function IB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function _l(e){return this.extend(e)}_l.prototype.extend=function(e){var r=[],t=[];if(e instanceof it)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new pt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof it))throw new pt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new pt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new pt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof it))throw new pt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(_l.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=i1(n,"implicit"),n.compiledExplicit=i1(n,"explicit"),n.compiledTypeMap=IB(n.compiledImplicit,n.compiledExplicit),n};var MB=_l,NB=new it("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),jB=new it("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),$B=new it("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),HB=new MB({explicit:[NB,jB,$B]});function qB(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function GB(){return null}function UB(e){return e===null}var zB=new it("tag:yaml.org,2002:null",{kind:"scalar",resolve:qB,construct:GB,predicate:UB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function WB(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function VB(e){return e==="true"||e==="True"||e==="TRUE"}function KB(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var YB=new it("tag:yaml.org,2002:bool",{kind:"scalar",resolve:WB,construct:VB,predicate:KB,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function XB(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZB(e){return 48<=e&&e<=55}function QB(e){return 48<=e&&e<=57}function JB(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!XB(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!ZB(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!QB(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function e6(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function t6(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ke.isNegativeZero(e)}var r6=new it("tag:yaml.org,2002:int",{kind:"scalar",resolve:JB,construct:e6,predicate:t6,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),n6=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i6(e){return!(e===null||!n6.test(e)||e[e.length-1]==="_")}function s6(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var o6=/^[-+]?[0-9]+e/;function a6(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ke.isNegativeZero(e))return"-0.0";return t=e.toString(10),o6.test(t)?t.replace("e",".e"):t}function u6(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ke.isNegativeZero(e))}var l6=new it("tag:yaml.org,2002:float",{kind:"scalar",resolve:i6,construct:s6,predicate:u6,represent:a6,defaultStyle:"lowercase"}),c6=HB.extend({implicit:[zB,YB,r6,l6]}),h6=c6,D1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),R1=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 f6(e){return e===null?!1:D1.exec(e)!==null||R1.exec(e)!==null}function p6(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=D1.exec(e),r===null&&(r=R1.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function d6(e){return e.toISOString()}var m6=new it("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:f6,construct:p6,instanceOf:Date,represent:d6});function y6(e){return e==="<<"||e===null}var g6=new it("tag:yaml.org,2002:merge",{kind:"scalar",resolve:y6}),Fl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
155
- \r`;function b6(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=Fl;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function v6(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=Fl,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function _6(e){var r="",t=0,n,i,c=e.length,a=Fl;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function w6(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var E6=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b6,construct:v6,predicate:w6,represent:_6}),S6=Object.prototype.hasOwnProperty,A6=Object.prototype.toString;function x6(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,A6.call(i)!=="[object Object]")return!1;for(c in i)if(S6.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function k6(e){return e!==null?e:[]}var C6=new it("tag:yaml.org,2002:omap",{kind:"sequence",resolve:x6,construct:k6}),D6=Object.prototype.toString;function R6(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],D6.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function O6(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var T6=new it("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:R6,construct:O6}),F6=Object.prototype.hasOwnProperty;function P6(e){if(e===null)return!0;var r,t=e;for(r in t)if(F6.call(t,r)&&t[r]!==null)return!1;return!0}function B6(e){return e!==null?e:{}}var L6=new it("tag:yaml.org,2002:set",{kind:"mapping",resolve:P6,construct:B6}),O1=h6.extend({implicit:[m6,g6],explicit:[E6,C6,T6,L6]}),br=Object.prototype.hasOwnProperty,Us=1,T1=2,F1=3,zs=4,vl=1,I6=2,s1=3,M6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,N6=/[\x85\u2028\u2029]/,j6=/[,\[\]\{\}]/,P1=/^(?:!|!!|![a-z\-]+!)$/i,B1=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o1(e){return Object.prototype.toString.call(e)}function $t(e){return e===10||e===13}function Nr(e){return e===9||e===32}function dt(e){return e===9||e===32||e===10||e===13}function xn(e){return e===44||e===91||e===93||e===123||e===125}function $6(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function H6(e){return e===120?2:e===117?4:e===85?8:0}function q6(e){return 48<=e&&e<=57?e-48:-1}function a1(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
156
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function G6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var L1=new Array(256),I1=new Array(256);for(Mr=0;Mr<256;Mr++)L1[Mr]=a1(Mr)?1:0,I1[Mr]=a1(Mr);var Mr;function U6(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||O1,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M1(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=TB(t),new pt(r,t)}function Oe(e,r){throw M1(e,r)}function Ws(e,r){e.onWarning&&e.onWarning.call(null,M1(e,r))}var u1={YAML:function(e,r,t){var n,i,c;e.version!==null&&Oe(e,"duplication of %YAML directive"),t.length!==1&&Oe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Oe(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&Oe(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&Ws(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Oe(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],P1.test(n)||Oe(e,"ill-formed tag handle (first argument) of the TAG directive"),br.call(e.tagMap,n)&&Oe(e,'there is a previously declared suffix for "'+n+'" tag handle'),B1.test(i)||Oe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Oe(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function gr(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Oe(e,"expected valid JSON character");else M6.test(s)&&Oe(e,"the stream contains non-printable characters");e.result+=s}}function l1(e,r,t,n){var i,c,a,s;for(Ke.isObject(t)||Oe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],br.call(r,c)||(r[c]=t[c],n[c]=!0)}function kn(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Oe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&o1(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&o1(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)l1(e,r,c[f],t);else l1(e,r,c,t);else!e.json&&!br.call(t,i)&&br.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Oe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function Pl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ze(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Nr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if($t(i))for(Pl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&Ws(e,"deficient indentation"),n}function Zs(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||dt(t)))}function Bl(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ke.repeat(`
157
- `,r-1))}function z6(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),dt(d)||xn(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)&&(i=e.input.charCodeAt(e.position+1),dt(i)||t&&xn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),dt(i)||t&&xn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),dt(n))break}else{if(e.position===e.lineStart&&Zs(e)||t&&xn(d))break;if($t(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,ze(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(gr(e,c,a,!1),Bl(e,e.line-o),c=a=e.position,s=!1),Nr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return gr(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function W6(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(gr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else $t(t)?(gr(e,n,i,!0),Bl(e,ze(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Zs(e)?Oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Oe(e,"unexpected end of the stream within a single quoted scalar")}function V6(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return gr(e,t,e.position,!0),e.position++,!0;if(s===92){if(gr(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),$t(s))ze(e,!1,r);else if(s<256&&L1[s])e.result+=I1[s],e.position++;else if((a=H6(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=$6(s))>=0?c=(c<<4)+a:Oe(e,"expected hexadecimal character");e.result+=G6(c),e.position++}else Oe(e,"unknown escape sequence");t=n=e.position}else $t(s)?(gr(e,t,n,!0),Bl(e,ze(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Zs(e)?Oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Oe(e,"unexpected end of the stream within a double quoted scalar")}function K6(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(ze(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Oe(e,"expected the node content, but found ','"):Oe(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),dt(f)&&(h=u=!0,e.position++,ze(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,Cn(e,r,Us,!1,!0),b=e.tag,y=e.result,ze(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),ze(e,!0,r),Cn(e,r,Us,!1,!0),_=e.result),d?kn(e,s,p,b,y,_,n,i,c):h?s.push(kn(e,null,p,b,y,_,n,i,c)):s.push(y),ze(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Oe(e,"unexpected end of the stream within a flow collection")}function Y6(e,r){var t,n,i=vl,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)vl===i?i=h===43?s1:I6:Oe(e,"repeat of a chomping mode identifier");else if((l=q6(h))>=0)l===0?Oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Oe(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Nr(h)){do h=e.input.charCodeAt(++e.position);while(Nr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!$t(h)&&h!==0)}for(;h!==0;){for(Pl(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),$t(h)){o++;continue}if(e.lineIndent<s){i===s1?e.result+=Ke.repeat(`
158
- `,c?1+o:o):i===vl&&c&&(e.result+=`
159
- `);break}for(n?Nr(h)?(f=!0,e.result+=Ke.repeat(`
160
- `,c?1+o:o)):f?(f=!1,e.result+=Ke.repeat(`
161
- `,o+1)):o===0?c&&(e.result+=" "):e.result+=Ke.repeat(`
162
- `,o):e.result+=Ke.repeat(`
163
- `,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!$t(h)&&h!==0;)h=e.input.charCodeAt(++e.position);gr(e,t,e.position,!1)}return!0}function c1(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!dt(a))));){if(s=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,Cn(e,r,F1,!1,!0),c.push(e.result),ze(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function X6(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&dt(n))g===63?(b&&(kn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!Cn(e,t,T1,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Nr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),dt(g)||Oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(kn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),Cn(e,r,zs,!0,i)&&(b?p=e.result:y=e.result),b||(kn(e,h,u,d,p,y,a,s,o),d=p=y=null),ze(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&kn(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function Z6(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!dt(a);)a===33&&(n?Oe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),P1.test(i)||Oe(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),j6.test(c)&&Oe(e,"tag suffix cannot contain flow indicator characters")}c&&!B1.test(c)&&Oe(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Oe(e,"tag name is malformed: "+c)}return t?e.tag=c:br.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Oe(e,'undeclared tag handle "'+i+'"'),!0}function Q6(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Oe(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!dt(t)&&!xn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function J6(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!dt(n)&&!xn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),br.call(e.anchorMap,t)||Oe(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],ze(e,!0,-1),!0}function Cn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=zs===t||F1===t,n&&ze(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;Z6(e)||Q6(e);)ze(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||zs===t)&&(Us===t||T1===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(c1(e,b)||X6(e,b,y))||K6(e,y)?l=!0:(a&&Y6(e,y)||W6(e,y)||V6(e,y)?l=!0:J6(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Oe(e,"alias node should not have any properties")):z6(e,y,Us===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&c1(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(br.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Oe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function eL(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!dt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Oe(e,"directive name must not be less than one character in length");a!==0;){for(;Nr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!$t(a));break}if($t(a))break;for(t=e.position;a!==0&&!dt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Pl(e),br.call(u1,n)?u1[n](e,n,i):Ws(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):c&&Oe(e,"directives end mark is expected"),Cn(e,e.lineIndent-1,zs,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&N6.test(e.input.slice(r,e.position))&&Ws(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Zs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)Oe(e,"end of the stream or a document separator is expected");else return}function N1(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
164
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new U6(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Oe(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)eL(t);return t.documents}function tL(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=N1(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function rL(e,r){var t=N1(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new pt("expected a single document in the stream, but found more")}}var nL=tL,iL=rL,j1={loadAll:nL,load:iL},$1=Object.prototype.toString,H1=Object.prototype.hasOwnProperty,Ll=65279,sL=9,mi=10,oL=13,aL=32,uL=33,lL=34,wl=35,cL=37,hL=38,fL=39,pL=42,q1=44,dL=45,Vs=58,mL=61,yL=62,gL=63,bL=64,G1=91,U1=93,vL=96,z1=123,_L=124,W1=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var wL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],EL=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function SL(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&H1.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function AL(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new pt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ke.repeat("0",n-r.length)+r}var xL=1,yi=2;function kL(e){this.schema=e.schema||O1,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ke.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=SL(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?yi:xL,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h1(e,r){for(var t=Ke.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
165
- `,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
166
- `&&(c+=t),c+=a;return c}function El(e,r){return`
167
- `+Ke.repeat(" ",e.indent*r)}function CL(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Ks(e){return e===aL||e===sL}function gi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ll||65536<=e&&e<=1114111}function f1(e){return gi(e)&&e!==Ll&&e!==oL&&e!==mi}function p1(e,r,t){var n=f1(e),i=n&&!Ks(e);return(t?n:n&&e!==q1&&e!==G1&&e!==U1&&e!==z1&&e!==W1)&&e!==wl&&!(r===Vs&&!i)||f1(r)&&!Ks(r)&&e===wl||r===Vs&&i}function DL(e){return gi(e)&&e!==Ll&&!Ks(e)&&e!==dL&&e!==gL&&e!==Vs&&e!==q1&&e!==G1&&e!==U1&&e!==z1&&e!==W1&&e!==wl&&e!==hL&&e!==pL&&e!==uL&&e!==_L&&e!==mL&&e!==yL&&e!==fL&&e!==lL&&e!==cL&&e!==bL&&e!==vL}function RL(e){return!Ks(e)&&e!==Vs}function pi(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function V1(e){var r=/^\n* /;return r.test(e)}var K1=1,Sl=2,Y1=3,X1=4,An=5;function OL(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=DL(pi(e,0))&&RL(pi(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=pi(e,o),!gi(f))return An;y=y&&p1(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=pi(e,o),f===mi)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!gi(f))return An;y=y&&p1(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?K1:c===yi?An:Sl:t>9&&V1(e)?An:a?c===yi?An:Sl:u?X1:Y1}function TL(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===yi?'""':"''";if(!e.noCompatMode&&(wL.indexOf(r)!==-1||EL.test(r)))return e.quotingType===yi?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return CL(e,f)}switch(OL(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case K1:return r;case Sl:return"'"+r.replace(/'/g,"''")+"'";case Y1:return"|"+d1(r,e.indent)+m1(h1(r,c));case X1:return">"+d1(r,e.indent)+m1(h1(FL(r,a),c));case An:return'"'+PL(r)+'"';default:throw new pt("impossible error: invalid scalar style")}}()}function d1(e,r){var t=V1(e)?String(r):"",n=e[e.length-1]===`
168
- `,i=n&&(e[e.length-2]===`
169
- `||e===`
170
- `),c=i?"+":n?"":"-";return t+c+`
171
- `}function m1(e){return e[e.length-1]===`
172
- `?e.slice(0,-1):e}function FL(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
173
- `);return f=f!==-1?f:e.length,t.lastIndex=f,y1(e.slice(0,f),r)}(),i=e[0]===`
174
- `||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
175
- `:"")+y1(o,r),i=c}return n}function y1(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
176
- `+e.slice(i,c),i=c+1),a=s;return o+=`
177
- `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
178
- `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function PL(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=pi(e,i),n=st[t],!n&&gi(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||AL(t);return r}function BL(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Jt(e,r,s,!1,!1)||typeof s>"u"&&Jt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function g1(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Jt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Jt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=El(e,r)),e.dump&&mi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function LL(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Jt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Jt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function IL(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new pt("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=El(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Jt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&mi===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=El(e,r)),Jt(e,r+1,l,!0,h)&&(e.dump&&mi===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function b1(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,$1.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(H1.call(s.represent,o))n=s.represent[o](r,o);else throw new pt("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Jt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,b1(e,t,!1)||b1(e,t,!0);var s=$1.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(IL(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(LL(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?g1(e,r-1,e.dump,i):g1(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(BL(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&TL(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new pt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function ML(e,r){var t=[],n=[],i,c;for(Al(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Al(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Al(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Al(e[n[i]],r,t)}function NL(e,r){r=r||{};var t=new kL(r);t.noRefs||ML(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Jt(t,0,n,!0,!0)?t.dump+`
179
- `:""}var jL=NL,$L={dump:jL};function Il(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var W7=j1.load,V7=j1.loadAll,K7=$L.dump;var Y7=Il("safeLoad","load"),X7=Il("safeLoadAll","loadAll"),Z7=Il("safeDump","dump");var Q7=Ne(bB());Y();var to=He(require("chalk"));var kt=He(require("chalk")),Rn=class{constructor(r){this.transform=r.transformer,this.dry=r.dry}_log(...r){console.log(...r)}modified(...r){this._log(kt.default.green(" MODIFIED "),...r,this.dry?kt.default.dim("(dry run)"):"")}unchanged(...r){this._log(kt.default.gray(" UNCHANGED "),...r,this.dry?kt.default.dim("(dry run)"):"")}skipped(...r){this._log(kt.default.yellow(" SKIPPED "),...r,this.dry?kt.default.dim("(dry run)"):"")}error(...r){this._log(kt.default.red(" ERROR "),...r,this.dry?kt.default.dim("(dry run)"):"")}info(...r){this._log(kt.default.bold(" INFO "),...r,this.dry?kt.default.dim("(dry run)"):"")}};var Z1=He(require("os")),Ml=He(require("path"));var Qs=He(require("chalk")),eo=require("diff"),_r=require("fs-extra"),Js=class{constructor(r){this.changes=[];if(this.filePath=r.filePath,this.rootPath=r.rootPath,this.after=r.after,this.error=r.error,r.before===void 0)try{Ml.default.extname(r.filePath)===".json"?this.before=(0,_r.readJsonSync)(r.filePath):this.before=(0,_r.readFileSync)(r.filePath)}catch{this.before=""}else r.before===null?this.before="":this.before=r.before;r.after?typeof this.before=="object"||typeof r.after=="object"?this.changes=(0,eo.diffJson)(this.before,r.after):this.changes=(0,eo.diffLines)(this.before,r.after):this.changes=[]}fileName(){return Ml.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,_r.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,_r.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(r=>r.added).length}deletions(){return this.changes.filter(r=>r.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(r){r.diff?(this.changes.forEach(t=>{t.added?process.stdout.write(Qs.default.green(t.value)):t.removed?process.stdout.write(Qs.default.red(t.value)):process.stdout.write(Qs.default.dim(t.value))}),Zt.log(Z1.default.EOL)):Zt.log(this.after)}};var bi=class{constructor(r){this.modifications={};this.transform=r.transformer,this.rootPath=r.rootPath,this.dry=r.dry,this.print=r.print,this.logger=new Rn(r)}abortTransform(r){return this.logger.error(r.reason),{fatalError:new Error(r.reason),changes:r.changes||{}}}modifyFile(r){this.modifications[r.filePath]=new Js({rootPath:this.rootPath,...r})}finish(){let r={changes:{}};return Object.keys(this.modifications).forEach(n=>{let i=this.modifications[n],c={action:"unchanged",additions:i.additions(),deletions:i.deletions()};if(i.hasChanges()){if(this.dry)c.action="skipped",this.logger.skipped(to.default.dim(i.fileName()));else try{i.write(),c.action="modified",this.logger.modified(to.default.bold(i.fileName()))}catch(a){let s="Unknown error";a instanceof Error&&(s=a.message),c.error=new Error(s),c.action="error",this.logger.error(i.fileName(),s)}this.print&&i.log({diff:!0})}else this.logger.unchanged(to.default.dim(i.fileName()));r.changes[i.fileName()]=c}),Object.keys(r.changes).some(n=>r.changes[n].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:r.changes}):r}static logResults(r){let t=Object.keys(r.changes);if(Zt.log(),t.length>0){Zt.bold("Results:");let n={};t.forEach(i=>{var a;let c=r.changes[i];n[i]={action:c.action,additions:c.additions,deletions:c.deletions,error:((a=c.error)==null?void 0:a.message)||"None"}}),console.table(n),Zt.log()}}};function Q1({transformer:e,rootPath:r,options:t}){let n={transformer:e,rootPath:r,...t},i=new Rn(n),c=new bi(n);return{log:i,runner:c}}var ty="add-package-manager",HL="Set the `packageManager` key in root `package.json` file",qL="1.1.0";async function ry({root:e,options:r}){let{log:t,runner:n}=Q1({transformer:ty,rootPath:e,options:r});t.info('Set "packageManager" key in root "package.json" file...');let i;try{i=await el({root:e})}catch{return n.abortTransform({reason:`Unable to determine package manager for ${e}`})}let c=await rl(),{packageManager:a}=i,s=c[a];if(!s)return n.abortTransform({reason:`Unable to determine package manager version for ${e}`});let o=`${a}@${s}`,f=J1.default.join(e,"package.json"),l=(0,ey.readJsonSync)(f),h=[{name:"package.json",path:e,packageJson:{...l,packageJsonPath:f}}];for(let u of h){let{packageJsonPath:d,...p}=u.packageJson,y={...p,packageManager:o};n.modifyFile({filePath:d,after:y})}return n.finish()}var GL={name:ty,description:HL,introducedIn:qL,transformer:ry},UL=GL;0&&(module.exports={transformer});
180
- /*!
181
- * fill-range <https://github.com/jonschlinkert/fill-range>
182
- *
183
- * Copyright (c) 2014-present, Jon Schlinkert.
184
- * Licensed under the MIT License.
185
- */
186
- /*!
187
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
188
- *
189
- * Copyright (c) 2014-2016, Jon Schlinkert.
190
- * Licensed under the MIT License.
191
- */
192
- /*!
193
- * is-glob <https://github.com/jonschlinkert/is-glob>
194
- *
195
- * Copyright (c) 2014-2017, Jon Schlinkert.
196
- * Released under the MIT License.
197
- */
198
- /*!
199
- * is-number <https://github.com/jonschlinkert/is-number>
200
- *
201
- * Copyright (c) 2014-present, Jon Schlinkert.
202
- * Released under the MIT License.
203
- */
204
- /*!
205
- * to-regex-range <https://github.com/micromatch/to-regex-range>
206
- *
207
- * Copyright (c) 2015-present, Jon Schlinkert.
208
- * Released under the MIT License.
209
- */
210
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
211
- /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
3
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Af=H((rL,tn)=>{"use strict";var en=require("path"),wf=cu(),Sf=t=>{t={cwd:process.cwd(),path:process.env[wf()],execPath:process.execPath,...t};let e,r=en.resolve(t.cwd),i=[];for(;e!==r;)i.push(en.join(r,"node_modules/.bin")),e=r,r=en.resolve(r,"..");let n=en.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(en.delimiter)};tn.exports=Sf;tn.exports.default=Sf;tn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=wf({env:e});return t.path=e[r],e[r]=tn.exports(t),e}});var Cf=H((iL,Eu)=>{"use strict";var vf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Eu.exports=vf;Eu.exports.default=vf});var xf=H((nL,Jn)=>{"use strict";var Y_=Cf(),Zn=new WeakMap,Rf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Zn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Y_(s,t),Zn.set(s,i),s};Jn.exports=Rf;Jn.exports.default=Rf;Jn.exports.callCount=t=>{if(!Zn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zn.get(t)}});var Ff=H(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SIGNALS=void 0;var K_=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Xn.SIGNALS=K_});var Du=H(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.SIGRTMAX=Xr.getRealtimeSignals=void 0;var V_=function(){let t=Tf-Of+1;return Array.from({length:t},Z_)};Xr.getRealtimeSignals=V_;var Z_=function(t,e){return{name:`SIGRT${e+1}`,number:Of+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Of=34,Tf=64;Xr.SIGRTMAX=Tf});var kf=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getSignals=void 0;var J_=require("os"),X_=Ff(),Q_=Du(),eb=function(){let t=(0,Q_.getRealtimeSignals)();return[...X_.SIGNALS,...t].map(tb)};Qn.getSignals=eb;var tb=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=J_.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var Bf=H(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.signalsByNumber=Qr.signalsByName=void 0;var rb=require("os"),Lf=kf(),ib=Du(),nb=function(){return(0,Lf.getSignals)().reduce(sb,{})},sb=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},ob=nb();Qr.signalsByName=ob;var ub=function(){let t=(0,Lf.getSignals)(),e=ib.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>ab(n,t));return Object.assign({},...r)},ab=function(t,e){let r=lb(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},lb=function(t,e){let r=e.find(({name:i})=>rb.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},cb=ub();Qr.signalsByNumber=cb});var If=H((lL,Pf)=>{"use strict";var{signalsByName:hb}=Bf(),fb=({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",pb=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:l,killed:c,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:hb[n].description,p=i&&i.code,d=`Command ${fb({timedOut:a,timeout:h,errorCode:p,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,y=Object.prototype.toString.call(i)==="[object Error]",v=y?`${d}
4
+ ${i.message}`:d,F=[v,e,t].filter(Boolean).join(`
5
+ `);return y?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=v,i.command=o,i.escapedCommand=u,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=l,i.killed=c&&!a,i};Pf.exports=pb});var Mf=H((cL,_u)=>{"use strict";var es=["stdin","stdout","stderr"],db=t=>es.some(e=>t[e]!==void 0),Nf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(db(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,es.length);return Array.from({length:r},(i,n)=>e[n])};_u.exports=Nf;_u.exports.node=t=>{let e=Nf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var jf=H((hL,ts)=>{ts.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ts.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ts.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Gf=H((fL,ri)=>{var me=global.process,vr=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"};vr(me)?(Hf=require("assert"),ei=jf(),qf=/^win/i.test(me.platform),rn=require("events"),typeof rn!="function"&&(rn=rn.EventEmitter),me.__signal_exit_emitter__?Ce=me.__signal_exit_emitter__:(Ce=me.__signal_exit_emitter__=new rn,Ce.count=0,Ce.emitted={}),Ce.infinite||(Ce.setMaxListeners(1/0),Ce.infinite=!0),ri.exports=function(t,e){if(!vr(global.process))return function(){};Hf.equal(typeof t,"function","a callback must be provided for exit handler"),ti===!1&&bu();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ce.removeListener(r,t),Ce.listeners("exit").length===0&&Ce.listeners("afterexit").length===0&&rs()};return Ce.on(r,t),i},rs=function(){!ti||!vr(global.process)||(ti=!1,ei.forEach(function(e){try{me.removeListener(e,is[e])}catch{}}),me.emit=ns,me.reallyExit=wu,Ce.count-=1)},ri.exports.unload=rs,Cr=function(e,r,i){Ce.emitted[e]||(Ce.emitted[e]=!0,Ce.emit(e,r,i))},is={},ei.forEach(function(t){is[t]=function(){if(vr(global.process)){var r=me.listeners(t);r.length===Ce.count&&(rs(),Cr("exit",null,t),Cr("afterexit",null,t),qf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),ri.exports.signals=function(){return ei},ti=!1,bu=function(){ti||!vr(global.process)||(ti=!0,Ce.count+=1,ei=ei.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=Uf,me.reallyExit=$f)},ri.exports.load=bu,wu=me.reallyExit,$f=function(e){vr(global.process)&&(me.exitCode=e||0,Cr("exit",me.exitCode,null),Cr("afterexit",me.exitCode,null),wu.call(me,me.exitCode))},ns=me.emit,Uf=function(e,r){if(e==="exit"&&vr(global.process)){r!==void 0&&(me.exitCode=r);var i=ns.apply(this,arguments);return Cr("exit",me.exitCode,null),Cr("afterexit",me.exitCode,null),i}else return ns.apply(this,arguments)}):ri.exports=function(){return function(){}};var Hf,ei,qf,rn,Ce,rs,Cr,is,ti,bu,wu,$f,ns,Uf});var Wf=H((pL,zf)=>{"use strict";var mb=require("os"),yb=Gf(),gb=1e3*5,Eb=(t,e="SIGTERM",r={})=>{let i=t(e);return Db(t,e,r,i),i},Db=(t,e,r,i)=>{if(!_b(e,r,i))return;let n=wb(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},_b=(t,{forceKillAfterTimeout:e},r)=>bb(t)&&e!==!1&&r,bb=t=>t===mb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",wb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return gb;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},Sb=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Ab=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},vb=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{Ab(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},Cb=({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})`)},Rb=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=yb(()=>{t.kill()});return i.finally(()=>{n()})};zf.exports={spawnedKill:Eb,spawnedCancel:Sb,setupTimeout:vb,validateTimeout:Cb,setExitHandler:Rb}});var Kf=H((dL,Yf)=>{"use strict";var mt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mt.writable=t=>mt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";mt.readable=t=>mt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";mt.duplex=t=>mt.writable(t)&&mt.readable(t);mt.transform=t=>mt.duplex(t)&&typeof t._transform=="function";Yf.exports=mt});var Zf=H((mL,Vf)=>{"use strict";var{PassThrough:xb}=require("stream");Vf.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new xb({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Jf=H((yL,nn)=>{"use strict";var{constants:Fb}=require("buffer"),Ob=require("stream"),{promisify:Tb}=require("util"),kb=Zf(),Lb=Tb(Ob.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Su(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=kb(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=Fb.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await Lb(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}nn.exports=Su;nn.exports.buffer=(t,e)=>Su(t,{...e,encoding:"buffer"});nn.exports.array=(t,e)=>Su(t,{...e,array:!0});nn.exports.MaxBufferError=ss});var Qf=H((gL,Xf)=>{"use strict";var{PassThrough:Bb}=require("stream");Xf.exports=function(){var t=[],e=new Bb({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var ip=H((EL,rp)=>{"use strict";var tp=Kf(),ep=Jf(),Pb=Qf(),Ib=(t,e)=>{e===void 0||t.stdin===void 0||(tp(e)?e.pipe(t.stdin):t.stdin.end(e))},Nb=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Pb();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Au=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},vu=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ep(t,{encoding:e,maxBuffer:i}):ep.buffer(t,{maxBuffer:i})},Mb=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=vu(t,{encoding:i,buffer:n,maxBuffer:s}),a=vu(e,{encoding:i,buffer:n,maxBuffer:s}),l=vu(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Au(t,u),Au(e,a),Au(r,l)])}},jb=({input:t})=>{if(tp(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};rp.exports={handleInput:Ib,makeAllStream:Nb,getSpawnedResult:Mb,validateInputSync:jb}});var sp=H((DL,np)=>{"use strict";var Hb=(async()=>{})().constructor.prototype,qb=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Hb,t)]),$b=(t,e)=>{for(let[r,i]of qb){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},Ub=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});np.exports={mergePromise:$b,getSpawnedPromise:Ub}});var ap=H((_L,up)=>{"use strict";var op=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Gb=/^[\w.-]+$/,zb=/"/g,Wb=t=>typeof t!="string"||Gb.test(t)?t:`"${t.replace(zb,'\\"')}"`,Yb=(t,e)=>op(t,e).join(" "),Kb=(t,e)=>op(t,e).map(r=>Wb(r)).join(" "),Vb=/ +/g,Zb=t=>{let e=[];for(let r of t.trim().split(Vb)){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:Yb,getEscapedCommand:Kb,parseCommand:Zb}});var ni=H((bL,ii)=>{"use strict";var Jb=require("path"),Cu=require("child_process"),Xb=Df(),Qb=bf(),ew=Af(),tw=xf(),os=If(),cp=Mf(),{spawnedKill:rw,spawnedCancel:iw,setupTimeout:nw,validateTimeout:sw,setExitHandler:ow}=Wf(),{handleInput:uw,getSpawnedResult:aw,makeAllStream:lw,validateInputSync:cw}=ip(),{mergePromise:lp,getSpawnedPromise:hw}=sp(),{joinCommand:hp,parseCommand:fp,getEscapedCommand:pp}=ap(),fw=1e3*1e3*100,pw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ew.env({env:s,cwd:i,execPath:n}):s},dp=(t,e,r={})=>{let i=Xb._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:fw,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=pw(r),r.stdio=cp(r),process.platform==="win32"&&Jb.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},sn=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Qb(e):e,us=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);sw(i.options);let o;try{o=Cu.spawn(i.file,i.args,i.options)}catch(p){let m=new Cu.ChildProcess,d=Promise.reject(os({error:p,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return lp(m,d)}let u=hw(o),a=nw(o,i.options,u),l=ow(o,i.options,a),c={isCanceled:!1};o.kill=rw.bind(null,o.kill.bind(o)),o.cancel=iw.bind(null,o,c);let f=tw(async()=>{let[{error:p,exitCode:m,signal:d,timedOut:y},v,F,T]=await aw(o,i.options,l),O=sn(i.options,v),x=sn(i.options,F),B=sn(i.options,T);if(p||m!==0||d!==null){let b=os({error:p,exitCode:m,signal:d,stdout:O,stderr:x,all:B,command:n,escapedCommand:s,parsed:i,timedOut:y,isCanceled:c.isCanceled,killed:o.killed});if(!i.options.reject)return b;throw b}return{command:n,escapedCommand:s,exitCode:0,stdout:O,stderr:x,all:B,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return uw(o,i.options.input),o.all=lw(o,i.options),lp(o,f)};ii.exports=us;ii.exports.sync=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);cw(i.options);let o;try{o=Cu.spawnSync(i.file,i.args,i.options)}catch(l){throw os({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=sn(i.options,o.stdout,o.error),a=sn(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=os({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ii.exports.command=(t,e)=>{let[r,...i]=fp(t);return us(r,i,e)};ii.exports.commandSync=(t,e)=>{let[r,...i]=fp(t);return us.sync(r,i,e)};ii.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=cp.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var gd=H(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.splitWhen=li.flatten=void 0;function BA(t){return t.reduce((e,r)=>[].concat(e,r),[])}li.flatten=BA;function PA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}li.splitWhen=PA});var Ed=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function IA(t){return t.code==="ENOENT"}ds.isEnoentCodeError=IA});var Dd=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var $u=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function NA(t,e){return new $u(t,e)}ms.createDirentFromStats=NA});var _d=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var MA=require("path"),jA=2,HA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function qA(t){return t.replace(/\\/g,"/")}gt.unixify=qA;function $A(t,e){return MA.resolve(t,e)}gt.makeAbsolute=$A;function UA(t){return t.replace(HA,"\\$2")}gt.escape=UA;function GA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(jA)}return t}gt.removeLeadingDotSegment=GA});var wd=H((RL,bd)=>{bd.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var vd=H((xL,Ad)=>{var zA=wd(),Sd={"{":"}","(":")","[":"]"},WA=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var a=Sd[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},YA=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Sd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(zA(e))return!0;var i=WA;return r&&r.strict===!1&&(i=YA),i(e)}});var Rd=H((FL,Cd)=>{"use strict";var KA=vd(),VA=require("path").posix.dirname,ZA=require("os").platform()==="win32",Uu="/",JA=/\\/g,XA=/[\{\[].*[\}\]]$/,QA=/(^|[^\\])([\{\[]|\([^\)]+$)/,ev=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Cd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&ZA&&e.indexOf(Uu)<0&&(e=e.replace(JA,Uu)),XA.test(e)&&(e+=Uu),e+="a";do e=VA(e);while(KA(e)||QA.test(e));return e.replace(ev,"$1")}});var ys=H(tt=>{"use strict";tt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tt.find=(t,e)=>t.nodes.find(r=>r.type===e);tt.exceedsLimit=(t,e,r=1,i)=>i===!1||!tt.isInteger(t)||!tt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;tt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};tt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);tt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;tt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var gs=H((TL,Fd)=>{"use strict";var xd=ys();Fd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&xd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Td=H((kL,Od)=>{"use strict";Od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Hd=H((LL,jd)=>{"use strict";var kd=Td(),Fr=(t,e,r)=>{if(kd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(kd(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(Fr.cache.hasOwnProperty(a))return Fr.cache[a].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let d=t+"|"+e;return i.capture?`(${d})`:i.wrap===!1?d:`(?:${d})`}let h=Md(t)||Md(e),f={min:t,max:e,a:l,b:c},p=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let d=c<0?Math.abs(c):1;m=Ld(d,Math.abs(l),f,i),l=f.a=0}return c>=0&&(p=Ld(l,c,f,i)),f.negatives=m,f.positives=p,f.result=tv(m,p,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&p.length+m.length>1&&(f.result=`(?:${f.result})`),Fr.cache[a]=f,f.result};function tv(t,e,r){let i=Gu(t,e,"-",!1,r)||[],n=Gu(e,t,"",!1,r)||[],s=Gu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function rv(t,e){let r=1,i=1,n=Pd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Pd(t,r);for(n=Id(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Id(e+1,i)-1;return s=[...s],s.sort(sv),s}function iv(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=nv(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,l]=i[u];a===l?s+=a:a!=="0"||l!=="9"?s+=ov(a,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ld(t,e,r,i){let n=rv(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let l=n[a],c=iv(String(o),String(l),i),h="";if(!r.isPadded&&u&&u.pattern===c.pattern){u.count.length>1&&u.count.pop(),u.count.push(c.count[0]),u.string=u.pattern+Nd(u.count),o=l+1;continue}r.isPadded&&(h=uv(l,r,i)),c.string=h+c.pattern+Nd(c.count),s.push(c),o=l+1,u=c}return s}function Gu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Bd(e,"string",u)&&s.push(r+u),i&&Bd(e,"string",u)&&s.push(r+u)}return s}function nv(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function sv(t,e){return t>e?1:e>t?-1:0}function Bd(t,e,r){return t.some(i=>i[e]===r)}function Pd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Id(t,e){return t-t%Math.pow(10,e)}function Nd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function ov(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Md(t){return/^-?(0+)\d/.test(t)}function uv(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}}`}}Fr.cache={};Fr.clearCache=()=>Fr.cache={};jd.exports=Fr});var Yu=H((BL,Kd)=>{"use strict";var av=require("util"),Ud=Hd(),qd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),lv=t=>e=>t===!0?Number(e):String(e),zu=t=>typeof t=="number"||typeof t=="string"&&t!=="",hn=t=>Number.isInteger(+t),Wu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},cv=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,hv=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},$d=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},fv=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Gd=(t,e,r,i)=>{if(r)return Ud(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},zd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ud(t,e,r)},Wd=(...t)=>new RangeError("Invalid range arguments: "+av.inspect(...t)),Yd=(t,e,r)=>{if(r.strictRanges===!0)throw Wd([t,e]);return[]},pv=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},dv=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Wd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Wu(u)||Wu(a)||Wu(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&cv(t,e,i)===!1,p=i.transform||lv(f);if(i.toRegex&&r===1)return Gd($d(t,h),$d(e,h),!0,i);let m={negatives:[],positives:[]},d=F=>m[F<0?"negatives":"positives"].push(Math.abs(F)),y=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?d(n):y.push(hv(p(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?fv(m,i):zd(y,null,{wrap:!1,...i}):y},mv=(t,e,r=1,i={})=>{if(!hn(t)&&t.length>1||!hn(e)&&e.length>1)return Yd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Gd(a,l,!1,i);let c=[],h=0;for(;u?s>=o:s<=o;)c.push(n(s,h)),s=u?s-r:s+r,h++;return i.toRegex===!0?zd(c,null,{wrap:!1,options:i}):c},Es=(t,e,r,i={})=>{if(e==null&&zu(t))return[t];if(!zu(t)||!zu(e))return Yd(t,e,i);if(typeof r=="function")return Es(t,e,1,{transform:r});if(qd(r))return Es(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,hn(r)?hn(t)&&hn(e)?dv(t,e,r,n):mv(t,e,Math.max(Math.abs(r),1),n):r!=null&&!qd(r)?pv(r,n):Es(t,e,1,r)};Kd.exports=Es});var Jd=H((PL,Zd)=>{"use strict";var yv=Yu(),Vd=ys(),gv=(t,e={})=>{let r=(i,n={})=>{let s=Vd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=Vd.reduce(i.nodes),h=yv(...c,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};Zd.exports=gv});var em=H((IL,Qd)=>{"use strict";var Ev=Yu(),Xd=gs(),ci=ys(),Or=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?ci.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Or(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Or(n,s,r):n+s);return ci.flatten(i)},Dv=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(Or(u.pop(),Xd(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Or(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=ci.reduce(n.nodes);if(ci.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=Ev(...h,e);f.length===0&&(f=Xd(n,e)),u.push(Or(u.pop(),f)),n.nodes=[];return}let a=ci.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){u.push(Or(u.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(Or(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return ci.flatten(i(t))};Qd.exports=Dv});var rm=H((NL,tm)=>{"use strict";tm.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
6
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var um=H((ML,om)=>{"use strict";var _v=gs(),{MAX_LENGTH:im,CHAR_BACKSLASH:Ku,CHAR_BACKTICK:bv,CHAR_COMMA:wv,CHAR_DOT:Sv,CHAR_LEFT_PARENTHESES:Av,CHAR_RIGHT_PARENTHESES:vv,CHAR_LEFT_CURLY_BRACE:Cv,CHAR_RIGHT_CURLY_BRACE:Rv,CHAR_LEFT_SQUARE_BRACKET:nm,CHAR_RIGHT_SQUARE_BRACKET:sm,CHAR_DOUBLE_QUOTE:xv,CHAR_SINGLE_QUOTE:Fv,CHAR_NO_BREAK_SPACE:Ov,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Tv}=rm(),kv=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(im,r.maxLength):im;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,u=n,a=0,l=t.length,c=0,h=0,f,p={},m=()=>t[c++],d=y=>{if(y.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&y.type==="text"){u.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=u,u=y,y};for(d({type:"bos"});c<l;)if(o=s[s.length-1],f=m(),!(f===Tv||f===Ov)){if(f===Ku){d({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===sm){d({type:"text",value:"\\"+f});continue}if(f===nm){a++;let y=!0,v;for(;c<l&&(v=m());){if(f+=v,v===nm){a++;continue}if(v===Ku){f+=m();continue}if(v===sm&&(a--,a===0))break}d({type:"text",value:f});continue}if(f===Av){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===vv){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===xv||f===Fv||f===bv){let y=f,v;for(e.keepQuotes!==!0&&(f="");c<l&&(v=m());){if(v===Ku){f+=v+m();continue}if(v===y){e.keepQuotes===!0&&(f+=v);break}f+=v}d({type:"text",value:f});continue}if(f===Cv){h++;let v={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=d(v),s.push(o),d({type:"open",value:f});continue}if(f===Rv){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===wv&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:_v(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===Sv&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({type:"text",value:f});continue}if(u.type==="dot"){if(o.range=[],u.value+=f,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){y.pop();let v=y[y.length-1];v.value+=u.value+f,u=v,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let y=s[s.length-1],v=y.nodes.indexOf(o);y.nodes.splice(v,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};om.exports=kv});var cm=H((jL,lm)=>{"use strict";var am=gs(),Lv=Jd(),Bv=em(),Pv=um(),Ke=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ke.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ke.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.parse=(t,e={})=>Pv(t,e);Ke.stringify=(t,e={})=>am(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),Lv(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Bv(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ke.compile(t,e):Ke.expand(t,e);lm.exports=Ke});var fn=H((HL,mm)=>{"use strict";var Iv=require("path"),Et="\\\\/",hm=`[^${Et}]`,Lt="\\.",Nv="\\+",Mv="\\?",Ds="\\/",jv="(?=.)",fm="[^/]",Vu=`(?:${Ds}|$)`,pm=`(?:^|${Ds})`,Zu=`${Lt}{1,2}${Vu}`,Hv=`(?!${Lt})`,qv=`(?!${pm}${Zu})`,$v=`(?!${Lt}{0,1}${Vu})`,Uv=`(?!${Zu})`,Gv=`[^.${Ds}]`,zv=`${fm}*?`,dm={DOT_LITERAL:Lt,PLUS_LITERAL:Nv,QMARK_LITERAL:Mv,SLASH_LITERAL:Ds,ONE_CHAR:jv,QMARK:fm,END_ANCHOR:Vu,DOTS_SLASH:Zu,NO_DOT:Hv,NO_DOTS:qv,NO_DOT_SLASH:$v,NO_DOTS_SLASH:Uv,QMARK_NO_DOT:Gv,STAR:zv,START_ANCHOR:pm},Wv={...dm,SLASH_LITERAL:`[${Et}]`,QMARK:hm,STAR:`${hm}*?`,DOTS_SLASH:`${Lt}{1,2}(?:[${Et}]|$)`,NO_DOT:`(?!${Lt})`,NO_DOTS:`(?!(?:^|[${Et}])${Lt}{1,2}(?:[${Et}]|$))`,NO_DOT_SLASH:`(?!${Lt}{0,1}(?:[${Et}]|$))`,NO_DOTS_SLASH:`(?!${Lt}{1,2}(?:[${Et}]|$))`,QMARK_NO_DOT:`[^.${Et}]`,START_ANCHOR:`(?:^|[${Et}])`,END_ANCHOR:`(?:[${Et}]|$)`},Yv={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};mm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Yv,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:Iv.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?Wv:dm}}});var pn=H($e=>{"use strict";var Kv=require("path"),Vv=process.platform==="win32",{REGEX_BACKSLASH:Zv,REGEX_REMOVE_BACKSLASH:Jv,REGEX_SPECIAL_CHARS:Xv,REGEX_SPECIAL_CHARS_GLOBAL:Qv}=fn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>Xv.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(Qv,"\\$1");$e.toPosixSlashes=t=>t.replace(Zv,"/");$e.removeBackslashes=t=>t.replace(Jv,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:Vv===!0||Kv.sep==="\\";$e.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?$e.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};$e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};$e.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Sm=H(($L,wm)=>{"use strict";var ym=pn(),{CHAR_ASTERISK:Ju,CHAR_AT:e1,CHAR_BACKWARD_SLASH:dn,CHAR_COMMA:t1,CHAR_DOT:Xu,CHAR_EXCLAMATION_MARK:Qu,CHAR_FORWARD_SLASH:bm,CHAR_LEFT_CURLY_BRACE:ea,CHAR_LEFT_PARENTHESES:ta,CHAR_LEFT_SQUARE_BRACKET:r1,CHAR_PLUS:i1,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:n1,CHAR_RIGHT_PARENTHESES:Em,CHAR_RIGHT_SQUARE_BRACKET:s1}=fn(),Dm=t=>t===bm||t===dn,_m=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},o1=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,l=-1,c=0,h=0,f=!1,p=!1,m=!1,d=!1,y=!1,v=!1,F=!1,T=!1,O=!1,x=!1,B=0,b,S,M={value:"",depth:0,isGlob:!1},U=()=>l>=i,L=()=>a.charCodeAt(l+1),k=()=>(b=S,a.charCodeAt(++l));for(;l<i;){S=k();let A;if(S===dn){F=M.backslashes=!0,S=k(),S===ea&&(v=!0);continue}if(v===!0||S===ea){for(B++;U()!==!0&&(S=k());){if(S===dn){F=M.backslashes=!0,k();continue}if(S===ea){B++;continue}if(v!==!0&&S===Xu&&(S=k())===Xu){if(f=M.isBrace=!0,m=M.isGlob=!0,x=!0,n===!0)continue;break}if(v!==!0&&S===t1){if(f=M.isBrace=!0,m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===n1&&(B--,B===0)){v=!1,f=M.isBrace=!0,x=!0;break}}if(n===!0)continue;break}if(S===bm){if(s.push(l),o.push(M),M={value:"",depth:0,isGlob:!1},x===!0)continue;if(b===Xu&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(S===i1||S===e1||S===Ju||S===gm||S===Qu)===!0&&L()===ta){if(m=M.isGlob=!0,d=M.isExtglob=!0,x=!0,S===Qu&&l===c&&(O=!0),n===!0){for(;U()!==!0&&(S=k());){if(S===dn){F=M.backslashes=!0,S=k();continue}if(S===Em){m=M.isGlob=!0,x=!0;break}}continue}break}if(S===Ju){if(b===Ju&&(y=M.isGlobstar=!0),m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===gm){if(m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===r1){for(;U()!==!0&&(A=k());){if(A===dn){F=M.backslashes=!0,k();continue}if(A===s1){p=M.isBracket=!0,m=M.isGlob=!0,x=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===Qu&&l===c){T=M.negated=!0,c++;continue}if(r.noparen!==!0&&S===ta){if(m=M.isGlob=!0,n===!0){for(;U()!==!0&&(S=k());){if(S===ta){F=M.backslashes=!0,S=k();continue}if(S===Em){x=!0;break}}continue}break}if(m===!0){if(x=!0,n===!0)continue;break}}r.noext===!0&&(d=!1,m=!1);let I=a,j="",R="";c>0&&(j=a.slice(0,c),a=a.slice(c),h-=c),I&&m===!0&&h>0?(I=a.slice(0,h),R=a.slice(h)):m===!0?(I="",R=a):I=a,I&&I!==""&&I!=="/"&&I!==a&&Dm(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&(R&&(R=ym.removeBackslashes(R)),I&&F===!0&&(I=ym.removeBackslashes(I)));let D={prefix:j,input:t,start:c,base:I,glob:R,isBrace:f,isBracket:p,isGlob:m,isExtglob:d,isGlobstar:y,negated:T,negatedExtglob:O};if(r.tokens===!0&&(D.maxDepth=0,Dm(S)||o.push(M),D.tokens=o),r.parts===!0||r.tokens===!0){let A;for(let N=0;N<s.length;N++){let Y=A?A+1:c,W=s[N],E=t.slice(Y,W);r.tokens&&(N===0&&c!==0?(o[N].isPrefix=!0,o[N].value=j):o[N].value=E,_m(o[N]),D.maxDepth+=o[N].depth),(N!==0||E!=="")&&u.push(E),A=W}if(A&&A+1<t.length){let N=t.slice(A+1);u.push(N),r.tokens&&(o[o.length-1].value=N,_m(o[o.length-1]),D.maxDepth+=o[o.length-1].depth)}D.slashes=s,D.parts=u}return D};wm.exports=o1});var Cm=H((UL,vm)=>{"use strict";var _s=fn(),Ve=pn(),{MAX_LENGTH:bs,POSIX_REGEX_SOURCE:u1,REGEX_NON_SPECIAL_CHARS:a1,REGEX_SPECIAL_CHARS_BACKREF:l1,REPLACEMENTS:Am}=_s,c1=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Ve.escapeRegex(n)).join("..")}return r},hi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ra=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",a=Ve.isWindows(e),l=_s.globChars(a),c=_s.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:d,NO_DOT:y,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:T,QMARK_NO_DOT:O,STAR:x,START_ANCHOR:B}=l,b=G=>`(${u}(?:(?!${B}${G.dot?d:h}).)*?)`,S=r.dot?"":y,M=r.dot?T:O,U=r.bash===!0?b(r):x;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let L={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ve.removePrefix(t,L),n=t.length;let k=[],I=[],j=[],R=s,D,A=()=>L.index===n-1,N=L.peek=(G=1)=>t[L.index+G],Y=L.advance=()=>t[++L.index]||"",W=()=>t.slice(L.index+1),E=(G="",ee=0)=>{L.consumed+=G,L.index+=ee},g=G=>{L.output+=G.output!=null?G.output:G.value,E(G.value)},_=()=>{let G=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Y(),L.start++,G++;return G%2===0?!1:(L.negated=!0,L.start++,!0)},P=G=>{L[G]++,j.push(G)},C=G=>{L[G]--,j.pop()},$=G=>{if(R.type==="globstar"){let ee=L.braces>0&&(G.type==="comma"||G.type==="brace"),z=G.extglob===!0||k.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!ee&&!z&&(L.output=L.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=U,L.output+=R.output)}if(k.length&&G.type!=="paren"&&(k[k.length-1].inner+=G.value),(G.value||G.output)&&g(G),R&&R.type==="text"&&G.type==="text"){R.value+=G.value,R.output=(R.output||"")+G.value;return}G.prev=R,o.push(G),R=G},q=(G,ee)=>{let z={...c[ee],conditions:1,inner:""};z.prev=R,z.parens=L.parens,z.output=L.output;let re=(r.capture?"(":"")+z.open;P("parens"),$({type:G,value:ee,output:L.output?"":m}),$({type:"paren",extglob:!0,value:Y(),output:re}),k.push(z)},Z=G=>{let ee=G.close+(r.capture?")":""),z;if(G.type==="negate"){let re=U;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(re=b(r)),(re!==U||A()||/^\)+$/.test(W()))&&(ee=G.close=`)$))${re}`),G.inner.includes("*")&&(z=W())&&/^\.[^\\/.]+$/.test(z)){let le=ra(z,{...e,fastpaths:!1}).output;ee=G.close=`)${le})${re})`}G.prev.type==="bos"&&(L.negatedExtglob=!0)}$({type:"paren",extglob:!0,value:D,output:ee}),C("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let G=!1,ee=t.replace(l1,(z,re,le,be,Ee,w)=>be==="\\"?(G=!0,z):be==="?"?re?re+be+(Ee?T.repeat(Ee.length):""):w===0?M+(Ee?T.repeat(Ee.length):""):T.repeat(le.length):be==="."?h.repeat(le.length):be==="*"?re?re+be+(Ee?U:""):U:re?z:`\\${z}`);return G===!0&&(r.unescape===!0?ee=ee.replace(/\\/g,""):ee=ee.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),ee===t&&r.contains===!0?(L.output=t,L):(L.output=Ve.wrapOutput(ee,L,e),L)}for(;!A();){if(D=Y(),D==="\0")continue;if(D==="\\"){let z=N();if(z==="/"&&r.bash!==!0||z==="."||z===";")continue;if(!z){D+="\\",$({type:"text",value:D});continue}let re=/^\\+/.exec(W()),le=0;if(re&&re[0].length>2&&(le=re[0].length,L.index+=le,le%2!==0&&(D+="\\")),r.unescape===!0?D=Y():D+=Y(),L.brackets===0){$({type:"text",value:D});continue}}if(L.brackets>0&&(D!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&D===":"){let z=R.value.slice(1);if(z.includes("[")&&(R.posix=!0,z.includes(":"))){let re=R.value.lastIndexOf("["),le=R.value.slice(0,re),be=R.value.slice(re+2),Ee=u1[be];if(Ee){R.value=le+Ee,L.backtrack=!0,Y(),!s.output&&o.indexOf(R)===1&&(s.output=m);continue}}}(D==="["&&N()!==":"||D==="-"&&N()==="]")&&(D=`\\${D}`),D==="]"&&(R.value==="["||R.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&R.value==="["&&(D="^"),R.value+=D,g({value:D});continue}if(L.quotes===1&&D!=='"'){D=Ve.escapeRegex(D),R.value+=D,g({value:D});continue}if(D==='"'){L.quotes=L.quotes===1?0:1,r.keepQuotes===!0&&$({type:"text",value:D});continue}if(D==="("){P("parens"),$({type:"paren",value:D});continue}if(D===")"){if(L.parens===0&&r.strictBrackets===!0)throw new SyntaxError(hi("opening","("));let z=k[k.length-1];if(z&&L.parens===z.parens+1){Z(k.pop());continue}$({type:"paren",value:D,output:L.parens?")":"\\)"}),C("parens");continue}if(D==="["){if(r.nobracket===!0||!W().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));D=`\\${D}`}else P("brackets");$({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){$({type:"text",value:D,output:`\\${D}`});continue}if(L.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(hi("opening","["));$({type:"text",value:D,output:`\\${D}`});continue}C("brackets");let z=R.value.slice(1);if(R.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(D=`/${D}`),R.value+=D,g({value:D}),r.literalBrackets===!1||Ve.hasRegexChars(z))continue;let re=Ve.escapeRegex(R.value);if(L.output=L.output.slice(0,-R.value.length),r.literalBrackets===!0){L.output+=re,R.value=re;continue}R.value=`(${u}${re}|${R.value})`,L.output+=R.value;continue}if(D==="{"&&r.nobrace!==!0){P("braces");let z={type:"brace",value:D,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};I.push(z),$(z);continue}if(D==="}"){let z=I[I.length-1];if(r.nobrace===!0||!z){$({type:"text",value:D,output:D});continue}let re=")";if(z.dots===!0){let le=o.slice(),be=[];for(let Ee=le.length-1;Ee>=0&&(o.pop(),le[Ee].type!=="brace");Ee--)le[Ee].type!=="dots"&&be.unshift(le[Ee].value);re=c1(be,r),L.backtrack=!0}if(z.comma!==!0&&z.dots!==!0){let le=L.output.slice(0,z.outputIndex),be=L.tokens.slice(z.tokensIndex);z.value=z.output="\\{",D=re="\\}",L.output=le;for(let Ee of be)L.output+=Ee.output||Ee.value}$({type:"brace",value:D,output:re}),C("braces"),I.pop();continue}if(D==="|"){k.length>0&&k[k.length-1].conditions++,$({type:"text",value:D});continue}if(D===","){let z=D,re=I[I.length-1];re&&j[j.length-1]==="braces"&&(re.comma=!0,z="|"),$({type:"comma",value:D,output:z});continue}if(D==="/"){if(R.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),R=s;continue}$({type:"slash",value:D,output:p});continue}if(D==="."){if(L.braces>0&&R.type==="dot"){R.value==="."&&(R.output=h);let z=I[I.length-1];R.type="dots",R.output+=D,R.value+=D,z.dots=!0;continue}if(L.braces+L.parens===0&&R.type!=="bos"&&R.type!=="slash"){$({type:"text",value:D,output:h});continue}$({type:"dot",value:D,output:h});continue}if(D==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q("qmark",D);continue}if(R&&R.type==="paren"){let re=N(),le=D;if(re==="<"&&!Ve.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(W()))&&(le=`\\${D}`),$({type:"text",value:D,output:le});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){$({type:"qmark",value:D,output:O});continue}$({type:"qmark",value:D,output:T});continue}if(D==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){q("negate",D);continue}if(r.nonegate!==!0&&L.index===0){_();continue}}if(D==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q("plus",D);continue}if(R&&R.value==="("||r.regex===!1){$({type:"plus",value:D,output:f});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||L.parens>0){$({type:"plus",value:D});continue}$({type:"plus",value:f});continue}if(D==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){$({type:"at",extglob:!0,value:D,output:""});continue}$({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let z=a1.exec(W());z&&(D+=z[0],L.index+=z[0].length),$({type:"text",value:D});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=D,R.output=U,L.backtrack=!0,L.globstar=!0,E(D);continue}let G=W();if(r.noextglob!==!0&&/^\([^?]/.test(G)){q("star",D);continue}if(R.type==="star"){if(r.noglobstar===!0){E(D);continue}let z=R.prev,re=z.prev,le=z.type==="slash"||z.type==="bos",be=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!le||G[0]&&G[0]!=="/")){$({type:"star",value:D,output:""});continue}let Ee=L.braces>0&&(z.type==="comma"||z.type==="brace"),w=k.length&&(z.type==="pipe"||z.type==="paren");if(!le&&z.type!=="paren"&&!Ee&&!w){$({type:"star",value:D,output:""});continue}for(;G.slice(0,3)==="/**";){let V=t[L.index+4];if(V&&V!=="/")break;G=G.slice(3),E("/**",3)}if(z.type==="bos"&&A()){R.type="globstar",R.value+=D,R.output=b(r),L.output=R.output,L.globstar=!0,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!be&&A()){L.output=L.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=b(r)+(r.strictSlashes?")":"|$)"),R.value+=D,L.globstar=!0,L.output+=z.output+R.output,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&G[0]==="/"){let V=G[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=`${b(r)}${p}|${p}${V})`,R.value+=D,L.output+=z.output+R.output,L.globstar=!0,E(D+Y()),$({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&G[0]==="/"){R.type="globstar",R.value+=D,R.output=`(?:^|${p}|${b(r)}${p})`,L.output=R.output,L.globstar=!0,E(D+Y()),$({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-R.output.length),R.type="globstar",R.output=b(r),R.value+=D,L.output+=R.output,L.globstar=!0,E(D);continue}let ee={type:"star",value:D,output:U};if(r.bash===!0){ee.output=".*?",(R.type==="bos"||R.type==="slash")&&(ee.output=S+ee.output),$(ee);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){ee.output=D,$(ee);continue}(L.index===L.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(L.output+=v,R.output+=v):r.dot===!0?(L.output+=F,R.output+=F):(L.output+=S,R.output+=S),N()!=="*"&&(L.output+=m,R.output+=m)),$(ee)}for(;L.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));L.output=Ve.escapeLast(L.output,"["),C("brackets")}for(;L.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));L.output=Ve.escapeLast(L.output,"("),C("parens")}for(;L.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));L.output=Ve.escapeLast(L.output,"{"),C("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&$({type:"maybe_slash",value:"",output:`${p}?`}),L.backtrack===!0){L.output="";for(let G of L.tokens)L.output+=G.output!=null?G.output:G.value,G.suffix&&(L.output+=G.suffix)}return L};ra.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Am[t]||t;let s=Ve.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:p,START_ANCHOR:m}=_s.globChars(s),d=r.dot?h:c,y=r.dot?f:c,v=r.capture?"":"?:",F={negated:!1,prefix:""},T=r.bash===!0?".*?":p;r.capture&&(T=`(${T})`);let O=S=>S.noglobstar===!0?T:`(${v}(?:(?!${m}${S.dot?l:o}).)*?)`,x=S=>{switch(S){case"*":return`${d}${a}${T}`;case".*":return`${o}${a}${T}`;case"*.*":return`${d}${T}${o}${a}${T}`;case"*/*":return`${d}${T}${u}${a}${y}${T}`;case"**":return d+O(r);case"**/*":return`(?:${d}${O(r)}${u})?${y}${a}${T}`;case"**/*.*":return`(?:${d}${O(r)}${u})?${y}${T}${o}${a}${T}`;case"**/.*":return`(?:${d}${O(r)}${u})?${o}${a}${T}`;default:{let M=/^(.*?)\.(\w+)$/.exec(S);if(!M)return;let U=x(M[1]);return U?U+o+M[2]:void 0}}},B=Ve.removePrefix(t,F),b=x(B);return b&&r.strictSlashes!==!0&&(b+=`${u}?`),b};vm.exports=ra});var xm=H((GL,Rm)=>{"use strict";var h1=require("path"),f1=Sm(),ia=Cm(),na=pn(),p1=fn(),d1=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>De(f,e,r));return f=>{for(let p of c){let m=p(f);if(m)return m}return!1}}let i=d1(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=na.isWindows(e),o=i?De.compileRe(t,e):De.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:p,output:m}=De.test(c,o,e,{glob:t,posix:s}),d={glob:t,state:u,regex:o,posix:s,input:c,output:m,match:p,isMatch:f};return typeof n.onResult=="function"&&n.onResult(d),f===!1?(d.isMatch=!1,h?d:!1):a(c)?(typeof n.onIgnore=="function"&&n.onIgnore(d),d.isMatch=!1,h?d:!1):(typeof n.onMatch=="function"&&n.onMatch(d),h?d:!0)};return r&&(l.state=u),l};De.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?na.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=De.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};De.matchBase=(t,e,r,i=na.isWindows(r))=>(e instanceof RegExp?e:De.makeRe(e,r)).test(h1.basename(t));De.isMatch=(t,e,r)=>De(e,r)(t);De.parse=(t,e)=>Array.isArray(t)?t.map(r=>De.parse(r,e)):ia(t,{...e,fastpaths:!1});De.scan=(t,e)=>f1(t,e);De.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=De.toRegex(u,e);return i===!0&&(a.state=t),a};De.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ia.fastpaths(t,e)),n.output||(n=ia(t,e)),De.compileRe(n,e,r,i)};De.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};De.constants=p1;Rm.exports=De});var Om=H((zL,Fm)=>{"use strict";Fm.exports=xm()});var Pm=H((WL,Bm)=>{"use strict";var km=require("util"),Lm=cm(),Dt=Om(),sa=pn(),Tm=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Dt(String(e[c]),{...r,onResult:u},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let p of t){let m=h(p,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let l=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(c=>c.replace(/\\/g,"")):e}return l};ye.match=ye;ye.matcher=(t,e)=>Dt(t,e);ye.isMatch=(t,e,r)=>Dt(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Tm(t)||Tm(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sa.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);return[].concat(e).every(i=>Dt(i,r)(t))};ye.capture=(t,e,r)=>{let i=sa.isWindows(r),s=Dt.makeRe(String(t),{...r,capture:!0}).exec(i?sa.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>Dt.makeRe(...t);ye.scan=(...t)=>Dt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Lm(String(i),e))r.push(Dt.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Lm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Bm.exports=ye});var Um=H(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var m1=require("path"),y1=Rd(),oa=Pm(),Im="**",g1="\\",E1=/[*?]|^!/,D1=/\[[^[]*]/,_1=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,b1=/[!*+?@]\([^(]*\)/,w1=/,|\.\./;function Nm(t,e={}){return!Mm(t,e)}ne.isStaticPattern=Nm;function Mm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(g1)||E1.test(t)||D1.test(t)||_1.test(t)||e.extglob!==!1&&b1.test(t)||e.braceExpansion!==!1&&S1(t))}ne.isDynamicPattern=Mm;function S1(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 w1.test(i)}function A1(t){return ws(t)?t.slice(1):t}ne.convertToPositivePattern=A1;function v1(t){return"!"+t}ne.convertToNegativePattern=v1;function ws(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ws;function jm(t){return!ws(t)}ne.isPositivePattern=jm;function C1(t){return t.filter(ws)}ne.getNegativePatterns=C1;function R1(t){return t.filter(jm)}ne.getPositivePatterns=R1;function x1(t){return t.filter(e=>!ua(e))}ne.getPatternsInsideCurrentDirectory=x1;function F1(t){return t.filter(ua)}ne.getPatternsOutsideCurrentDirectory=F1;function ua(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=ua;function O1(t){return y1(t,{flipBackslashes:!1})}ne.getBaseDirectory=O1;function T1(t){return t.includes(Im)}ne.hasGlobStar=T1;function Hm(t){return t.endsWith("/"+Im)}ne.endsWithSlashGlobStar=Hm;function k1(t){let e=m1.basename(t);return Hm(t)||Nm(e)}ne.isAffectDepthOfReadingPattern=k1;function L1(t){return t.reduce((e,r)=>e.concat(qm(r)),[])}ne.expandPatternsWithBraceExpansion=L1;function qm(t){return oa.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=qm;function B1(t,e){let{parts:r}=oa.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ne.getPatternParts=B1;function $m(t,e){return oa.makeRe(t,e)}ne.makeRe=$m;function P1(t,e){return t.map(r=>$m(r,e))}ne.convertPatternsToRe=P1;function I1(t,e){return e.some(r=>r.test(t))}ne.matchAny=I1});var Ym=H((KL,Wm)=>{"use strict";var N1=require("stream"),Gm=N1.PassThrough,M1=Array.prototype.slice;Wm.exports=j1;function j1(){let t=[],e=M1.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Gm(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(zm(arguments[c],i));return a(),this}function a(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,a())}function p(m){function d(){m.removeListener("merge2UnpipeEnd",d),m.removeListener("end",d),s&&m.removeListener("error",y),f()}function y(v){o.emit("error",v)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",d),m.on("end",d),s&&m.on("error",y),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<c.length;m++)p(c[m]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function zm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=zm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vm=H(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.merge=void 0;var H1=Ym();function q1(t){let e=H1(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Km(t)),e.once("end",()=>Km(t)),e}Ss.merge=q1;function Km(t){t.forEach(e=>e.emit("close"))}});var Zm=H(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.isEmpty=fi.isString=void 0;function $1(t){return typeof t=="string"}fi.isString=$1;function U1(t){return t===""}fi.isEmpty=U1});var Bt=H(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.string=Te.stream=Te.pattern=Te.path=Te.fs=Te.errno=Te.array=void 0;var G1=gd();Te.array=G1;var z1=Ed();Te.errno=z1;var W1=Dd();Te.fs=W1;var Y1=_d();Te.path=Y1;var K1=Um();Te.pattern=K1;var V1=Vm();Te.stream=V1;var Z1=Zm();Te.string=Z1});var Qm=H(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPatternGroupToTask=ke.convertPatternGroupsToTasks=ke.groupPatternsByBaseDirectory=ke.getNegativePatternsAsPositive=ke.getPositivePatterns=ke.convertPatternsToTasks=ke.generate=void 0;var Pt=Bt();function J1(t,e){let r=Jm(t),i=Xm(t,e.ignore),n=r.filter(a=>Pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Pt.pattern.isDynamicPattern(a,e)),o=aa(n,i,!1),u=aa(s,i,!0);return o.concat(u)}ke.generate=J1;function aa(t,e,r){let i=[],n=Pt.pattern.getPatternsOutsideCurrentDirectory(t),s=Pt.pattern.getPatternsInsideCurrentDirectory(t),o=la(n),u=la(s);return i.push(...ca(o,e,r)),"."in u?i.push(ha(".",s,e,r)):i.push(...ca(u,e,r)),i}ke.convertPatternsToTasks=aa;function Jm(t){return Pt.pattern.getPositivePatterns(t)}ke.getPositivePatterns=Jm;function Xm(t,e){return Pt.pattern.getNegativePatterns(t).concat(e).map(Pt.pattern.convertToPositivePattern)}ke.getNegativePatternsAsPositive=Xm;function la(t){let e={};return t.reduce((r,i)=>{let n=Pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ke.groupPatternsByBaseDirectory=la;function ca(t,e,r){return Object.keys(t).map(i=>ha(i,t[i],e,r))}ke.convertPatternGroupsToTasks=ca;function ha(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pt.pattern.convertToNegativePattern))}}ke.convertPatternGroupToTask=ha});var t0=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.removeDuplicateSlashes=pi.transform=void 0;var X1=/(?!^)\/{2,}/g;function Q1(t){return t.map(e=>e0(e))}pi.transform=Q1;function e0(t){return t.replace(X1,"/")}pi.removeDuplicateSlashes=e0});var i0=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.read=void 0;function eC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){r0(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fa(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r0(r,s);return}fa(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fa(r,o)})})}As.read=eC;function r0(t,e){t(e)}function fa(t,e){t(null,e)}});var n0=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.read=void 0;function tC(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}vs.read=tC});var s0=H(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.createFileSystemAdapter=rr.FILE_SYSTEM_ADAPTER=void 0;var Cs=require("fs");rr.FILE_SYSTEM_ADAPTER={lstat:Cs.lstat,stat:Cs.stat,lstatSync:Cs.lstatSync,statSync:Cs.statSync};function rC(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=rC});var o0=H(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var iC=s0(),pa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=iC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};da.default=pa});var Tr=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var u0=i0(),nC=n0(),ma=o0();ir.Settings=ma.default;function sC(t,e,r){if(typeof e=="function"){u0.read(t,ya(),e);return}u0.read(t,ya(e),r)}ir.stat=sC;function oC(t,e){let r=ya(e);return nC.read(t,r)}ir.statSync=oC;function ya(t={}){return t instanceof ma.default?t:new ma.default(t)}});var c0=H((sB,l0)=>{var a0;l0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(a0||(a0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var f0=H((oB,h0)=>{h0.exports=aC;var uC=c0();function aC(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(a){function l(){e&&e(a,r),e=null}s?uC(l):l()}function u(a,l,c){r[a]=c,(--i===0||l)&&o(l)}i?n?n.forEach(function(a){t[a](function(l,c){u(a,l,c)})}):t.forEach(function(a,l){a(function(c,h){u(l,c,h)})}):o(null),s=!1}});var ga=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rs=process.versions.node.split(".");if(Rs[0]===void 0||Rs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var p0=Number.parseInt(Rs[0],10),lC=Number.parseInt(Rs[1],10),d0=10,cC=10,hC=p0>d0,fC=p0===d0&&lC>=cC;xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hC||fC});var m0=H(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var Ea=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function pC(t,e){return new Ea(t,e)}Fs.createDirentFromStats=pC});var Da=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.fs=void 0;var dC=m0();Os.fs=dC});var _a=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.joinPathSegments=void 0;function mC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ts.joinPathSegments=mC});var b0=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var yC=Tr(),y0=f0(),gC=ga(),g0=Da(),E0=_a();function EC(t,e,r){if(!e.stats&&gC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){D0(t,e,r);return}_0(t,e,r)}nr.read=EC;function D0(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:E0.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ba(r,s);return}let o=s.map(u=>DC(u,e));y0(o,(u,a)=>{if(u!==null){ks(r,u);return}ba(r,a)})})}nr.readdirWithFileTypes=D0;function DC(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=g0.fs.createDirentFromStats(t.name,n),r(null,t)})}}function _0(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(o=>{let u=E0.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{yC.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:g0.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});y0(s,(o,u)=>{if(o!==null){ks(r,o);return}ba(r,u)})})}nr.readdir=_0;function ks(t,e){t(e)}function ba(t,e){t(null,e)}});var C0=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var _C=Tr(),bC=ga(),w0=Da(),S0=_a();function wC(t,e){return!e.stats&&bC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?A0(t,e):v0(t,e)}sr.read=wC;function A0(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:S0.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=w0.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=A0;function v0(t,e){return e.fs.readdirSync(t).map(i=>{let n=S0.joinPathSegments(t,i,e.pathSegmentSeparator),s=_C.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:w0.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=v0});var R0=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createFileSystemAdapter=or.FILE_SYSTEM_ADAPTER=void 0;var di=require("fs");or.FILE_SYSTEM_ADAPTER={lstat:di.lstat,stat:di.stat,lstatSync:di.lstatSync,statSync:di.statSync,readdir:di.readdir,readdirSync:di.readdirSync};function SC(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=SC});var x0=H(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var AC=require("path"),vC=Tr(),CC=R0(),wa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=CC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,AC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new vC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Sa.default=wa});var Ls=H(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Settings=ur.scandirSync=ur.scandir=void 0;var F0=b0(),RC=C0(),Aa=x0();ur.Settings=Aa.default;function xC(t,e,r){if(typeof e=="function"){F0.read(t,va(),e);return}F0.read(t,va(e),r)}ur.scandir=xC;function FC(t,e){let r=va(e);return RC.read(t,r)}ur.scandirSync=FC;function va(t={}){return t instanceof Aa.default?t:new Aa.default(t)}});var T0=H((yB,O0)=>{"use strict";function OC(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}O0.exports=OC});var L0=H((gB,Ca)=>{"use strict";var TC=T0();function k0(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=TC(kC),n=null,s=null,o=0,u=null,a={push:d,drain:rt,saturated:rt,pause:c,paused:!1,concurrency:r,running:l,resume:p,idle:m,length:h,getQueue:f,unshift:y,empty:rt,kill:F,killAndDrain:T,error:O};return a;function l(){return o}function c(){a.paused=!0}function h(){for(var x=n,B=0;x;)x=x.next,B++;return B}function f(){for(var x=n,B=[];x;)B.push(x.value),x=x.next;return B}function p(){if(a.paused){a.paused=!1;for(var x=0;x<a.concurrency;x++)o++,v()}}function m(){return o===0&&a.length()===0}function d(x,B){var b=i.get();b.context=t,b.release=v,b.value=x,b.callback=B||rt,b.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=b,s=b):(n=b,s=b,a.saturated()):(o++,e.call(t,b.value,b.worked))}function y(x,B){var b=i.get();b.context=t,b.release=v,b.value=x,b.callback=B||rt,o===a.concurrency||a.paused?n?(b.next=n,n=b):(n=b,s=b,a.saturated()):(o++,e.call(t,b.value,b.worked))}function v(x){x&&i.release(x);var B=n;B?a.paused?o--:(s===n&&(s=null),n=B.next,B.next=null,e.call(t,B.value,B.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=rt}function T(){n=null,s=null,a.drain(),a.drain=rt}function O(x){u=x}}function rt(){}function kC(){this.value=null,this.callback=rt,this.next=null,this.release=rt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=rt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function LC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var n=k0(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=l,n;function u(c){var h=new Promise(function(f,p){s(c,function(m,d){if(m){p(m);return}f(d)})});return h.catch(rt),h}function a(c){var h=new Promise(function(f,p){o(c,function(m,d){if(m){p(m);return}f(d)})});return h.catch(rt),h}function l(){var c=n.drain,h=new Promise(function(f){n.drain=function(){c(),f()}});return h}}Ca.exports=k0;Ca.exports.promise=LC});var Bs=H(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.joinPathSegments=_t.replacePathSegmentSeparator=_t.isAppliedFilter=_t.isFatalError=void 0;function BC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}_t.isFatalError=BC;function PC(t,e){return t===null||t(e)}_t.isAppliedFilter=PC;function IC(t,e){return t.split(/[/\\]/).join(e)}_t.replacePathSegmentSeparator=IC;function NC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}_t.joinPathSegments=NC});var Fa=H(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var MC=Bs(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=MC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};xa.default=Ra});var ka=H(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var jC=require("events"),HC=Ls(),qC=L0(),Ps=Bs(),$C=Fa(),Oa=class extends $C.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=HC.scandir,this._emitter=new jC.EventEmitter,this._queue=qC(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Ps.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Ps.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ps.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ps.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ta.default=Oa});var B0=H(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var UC=ka(),La=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new UC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{GC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{zC(e,this._storage)}),this._reader.read()}};Ba.default=La;function GC(t,e){t(e)}function zC(t,e){t(null,e)}});var P0=H(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var WC=require("stream"),YC=ka(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new YC.default(this._root,this._settings),this._stream=new WC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ia.default=Pa});var I0=H(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var KC=Ls(),Is=Bs(),VC=Fa(),Na=class extends VC.default{constructor(){super(...arguments),this._scandir=KC.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Is.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Is.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Is.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Is.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ma.default=Na});var N0=H(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var ZC=I0(),ja=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ZC.default(this._root,this._settings)}read(){return this._reader.read()}};Ha.default=ja});var M0=H($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var JC=require("path"),XC=Ls(),qa=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,JC.sep),this.fsScandirSettings=new XC.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};$a.default=qa});var Ms=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Settings=bt.walkStream=bt.walkSync=bt.walk=void 0;var j0=B0(),QC=P0(),eR=N0(),Ua=M0();bt.Settings=Ua.default;function tR(t,e,r){if(typeof e=="function"){new j0.default(t,Ns()).read(e);return}new j0.default(t,Ns(e)).read(r)}bt.walk=tR;function rR(t,e){let r=Ns(e);return new eR.default(t,r).read()}bt.walkSync=rR;function iR(t,e){let r=Ns(e);return new QC.default(t,r).read()}bt.walkStream=iR;function Ns(t={}){return t instanceof Ua.default?t:new Ua.default(t)}});var js=H(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var nR=require("path"),sR=Tr(),H0=Bt(),Ga=class{constructor(e){this._settings=e,this._fsStatSettings=new sR.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return nR.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:H0.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!H0.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};za.default=Ga});var Ka=H(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var oR=require("stream"),uR=Tr(),aR=Ms(),lR=js(),Wa=class extends lR.default{constructor(){super(...arguments),this._walkStream=aR.walkStream,this._stat=uR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new oR.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Ya.default=Wa});var q0=H(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var cR=Ms(),hR=js(),fR=Ka(),Va=class extends hR.default{constructor(){super(...arguments),this._walkAsync=cR.walk,this._readerStream=new fR.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",u=>i.push(u)),n.once("end",()=>s(i))})}};Za.default=Va});var $0=H(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var mi=Bt(),Ja=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=mi.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 mi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>mi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:mi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return mi.array.splitWhen(e,r=>r.dynamic&&mi.pattern.hasGlobStar(r.pattern))}};Xa.default=Ja});var U0=H(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var pR=$0(),Qa=class extends pR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((a,l)=>{let c=s.segments[l];return!!(c.dynamic&&c.patternRe.test(a)||!c.dynamic&&c.pattern===a)}))return!0}return!1}};el.default=Qa});var G0=H(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Hs=Bt(),dR=U0(),tl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new dR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Hs.pattern.isAffectDepthOfReadingPattern);return Hs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hs.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Hs.pattern.matchAny(e,r)}};rl.default=tl});var z0=H(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var kr=Bt(),il=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=kr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=kr.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=kr.path.makeAbsolute(this._settings.cwd,e);return kr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=kr.path.removeLeadingDotSegment(e),s=kr.pattern.matchAny(n,r);return!s&&i?kr.pattern.matchAny(n+"/",r):s}};nl.default=il});var W0=H(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var mR=Bt(),sl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return mR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ol.default=sl});var K0=H(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Y0=Bt(),ul=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Y0.path.makeAbsolute(this._settings.cwd,r),r=Y0.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};al.default=ul});var qs=H(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var yR=require("path"),gR=G0(),ER=z0(),DR=W0(),_R=K0(),ll=class{constructor(e){this._settings=e,this.errorFilter=new DR.default(this._settings),this.entryFilter=new ER.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new gR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new _R.default(this._settings)}_getRootDirectory(e){return yR.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};cl.default=ll});var V0=H(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var bR=q0(),wR=qs(),hl=class extends wR.default{constructor(){super(...arguments),this._reader=new bR.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};fl.default=hl});var Z0=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var SR=require("stream"),AR=Ka(),vR=qs(),pl=class extends vR.default{constructor(){super(...arguments),this._reader=new AR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new SR.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};dl.default=pl});var J0=H(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var CR=Tr(),RR=Ms(),xR=js(),ml=class extends xR.default{constructor(){super(...arguments),this._walkSync=RR.walkSync,this._statSync=CR.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};yl.default=ml});var X0=H(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var FR=J0(),OR=qs(),gl=class extends OR.default{constructor(){super(...arguments),this._reader=new FR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};El.default=gl});var Q0=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yi=require("fs"),TR=require("os"),kR=Math.max(TR.cpus().length,1);gi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yi.lstat,lstatSync:yi.lstatSync,stat:yi.stat,statSync:yi.statSync,readdir:yi.readdir,readdirSync:yi.readdirSync};var Dl=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,kR),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({},gi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};gi.default=Dl});var $s=H(($B,ry)=>{"use strict";var ey=Qm(),ty=t0(),LR=V0(),BR=Z0(),PR=X0(),_l=Q0(),Lr=Bt();async function bl(t,e){Ei(t);let r=wl(t,LR.default,e),i=await Promise.all(r);return Lr.array.flatten(i)}(function(t){function e(o,u){Ei(o);let a=wl(o,PR.default,u);return Lr.array.flatten(a)}t.sync=e;function r(o,u){Ei(o);let a=wl(o,BR.default,u);return Lr.stream.merge(a)}t.stream=r;function i(o,u){Ei(o);let a=ty.transform([].concat(o)),l=new _l.default(u);return ey.generate(a,l)}t.generateTasks=i;function n(o,u){Ei(o);let a=new _l.default(u);return Lr.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return Ei(o),Lr.path.escape(o)}t.escapePath=s})(bl||(bl={}));function wl(t,e,r){let i=ty.transform([].concat(t)),n=new _l.default(r),s=ey.generate(i,n),o=new e(n);return s.map(o.read,o)}function Ei(t){if(![].concat(t).every(i=>Lr.string.isString(i)&&!Lr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ry.exports=bl});var Ny=H((cP,Mt)=>{function Pl(t){return Mt.exports=Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports,Pl(t)}Mt.exports=Pl,Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports});var jy=H((hP,jt)=>{var EF=Ny().default;function My(){"use strict";jt.exports=My=function(){return t},jt.exports.__esModule=!0,jt.exports.default=jt.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(k,I,j){k[I]=j.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function a(k,I,j){return Object.defineProperty(k,I,{value:j,enumerable:!0,configurable:!0,writable:!0}),k[I]}try{a({},"")}catch{a=function(j,R,D){return j[R]=D}}function l(k,I,j,R){var D=I&&I.prototype instanceof f?I:f,A=Object.create(D.prototype),N=new M(R||[]);return i(A,"_invoke",{value:x(k,j,N)}),A}function c(k,I,j){try{return{type:"normal",arg:k.call(I,j)}}catch(R){return{type:"throw",arg:R}}}t.wrap=l;var h={};function f(){}function p(){}function m(){}var d={};a(d,s,function(){return this});var y=Object.getPrototypeOf,v=y&&y(y(U([])));v&&v!==e&&r.call(v,s)&&(d=v);var F=m.prototype=f.prototype=Object.create(d);function T(k){["next","throw","return"].forEach(function(I){a(k,I,function(j){return this._invoke(I,j)})})}function O(k,I){function j(D,A,N,Y){var W=c(k[D],k,A);if(W.type!=="throw"){var E=W.arg,g=E.value;return g&&EF(g)=="object"&&r.call(g,"__await")?I.resolve(g.__await).then(function(_){j("next",_,N,Y)},function(_){j("throw",_,N,Y)}):I.resolve(g).then(function(_){E.value=_,N(E)},function(_){return j("throw",_,N,Y)})}Y(W.arg)}var R;i(this,"_invoke",{value:function(A,N){function Y(){return new I(function(W,E){j(A,N,W,E)})}return R=R?R.then(Y,Y):Y()}})}function x(k,I,j){var R="suspendedStart";return function(D,A){if(R==="executing")throw new Error("Generator is already running");if(R==="completed"){if(D==="throw")throw A;return L()}for(j.method=D,j.arg=A;;){var N=j.delegate;if(N){var Y=B(N,j);if(Y){if(Y===h)continue;return Y}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(R==="suspendedStart")throw R="completed",j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);R="executing";var W=c(k,I,j);if(W.type==="normal"){if(R=j.done?"completed":"suspendedYield",W.arg===h)continue;return{value:W.arg,done:j.done}}W.type==="throw"&&(R="completed",j.method="throw",j.arg=W.arg)}}}function B(k,I){var j=I.method,R=k.iterator[j];if(R===void 0)return I.delegate=null,j==="throw"&&k.iterator.return&&(I.method="return",I.arg=void 0,B(k,I),I.method==="throw")||j!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+j+"' method")),h;var D=c(R,k.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,h;var A=D.arg;return A?A.done?(I[k.resultName]=A.value,I.next=k.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,h):A:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,h)}function b(k){var I={tryLoc:k[0]};1 in k&&(I.catchLoc=k[1]),2 in k&&(I.finallyLoc=k[2],I.afterLoc=k[3]),this.tryEntries.push(I)}function S(k){var I=k.completion||{};I.type="normal",delete I.arg,k.completion=I}function M(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(b,this),this.reset(!0)}function U(k){if(k){var I=k[s];if(I)return I.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var j=-1,R=function D(){for(;++j<k.length;)if(r.call(k,j))return D.value=k[j],D.done=!1,D;return D.value=void 0,D.done=!0,D};return R.next=R}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=m,i(F,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:p,configurable:!0}),p.displayName=a(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(k){var I=typeof k=="function"&&k.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,m):(k.__proto__=m,a(k,u,"GeneratorFunction")),k.prototype=Object.create(F),k},t.awrap=function(k){return{__await:k}},T(O.prototype),a(O.prototype,o,function(){return this}),t.AsyncIterator=O,t.async=function(k,I,j,R,D){D===void 0&&(D=Promise);var A=new O(l(k,I,j,R),D);return t.isGeneratorFunction(I)?A:A.next().then(function(N){return N.done?N.value:A.next()})},T(F),a(F,u,"Generator"),a(F,s,function(){return this}),a(F,"toString",function(){return"[object Generator]"}),t.keys=function(k){var I=Object(k),j=[];for(var R in I)j.push(R);return j.reverse(),function D(){for(;j.length;){var A=j.pop();if(A in I)return D.value=A,D.done=!1,D}return D.done=!0,D}},t.values=U,M.prototype={constructor:M,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!I)for(var j in this)j.charAt(0)==="t"&&r.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var j=this;function R(E,g){return N.type="throw",N.arg=I,j.next=E,g&&(j.method="next",j.arg=void 0),!!g}for(var D=this.tryEntries.length-1;D>=0;--D){var A=this.tryEntries[D],N=A.completion;if(A.tryLoc==="root")return R("end");if(A.tryLoc<=this.prev){var Y=r.call(A,"catchLoc"),W=r.call(A,"finallyLoc");if(Y&&W){if(this.prev<A.catchLoc)return R(A.catchLoc,!0);if(this.prev<A.finallyLoc)return R(A.finallyLoc)}else if(Y){if(this.prev<A.catchLoc)return R(A.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return R(A.finallyLoc)}}}},abrupt:function(I,j){for(var R=this.tryEntries.length-1;R>=0;--R){var D=this.tryEntries[R];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var A=D;break}}A&&(I==="break"||I==="continue")&&A.tryLoc<=j&&j<=A.finallyLoc&&(A=null);var N=A?A.completion:{};return N.type=I,N.arg=j,A?(this.method="next",this.next=A.finallyLoc,h):this.complete(N)},complete:function(I,j){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&j&&(this.next=j),h},finish:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var R=this.tryEntries[j];if(R.finallyLoc===I)return this.complete(R.completion,R.afterLoc),S(R),h}},catch:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var R=this.tryEntries[j];if(R.tryLoc===I){var D=R.completion;if(D.type==="throw"){var A=D.arg;S(R)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(I,j,R){return this.delegate={iterator:U(I),resultName:j,nextLoc:R},this.method==="next"&&(this.arg=void 0),h}},t}jt.exports=My,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var qy=H((fP,Hy)=>{var Vs=jy()();Hy.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var xi=H((nI,rg)=>{"use strict";var tg=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"]]);rg.exports=t=>t?Object.keys(t).map(e=>[tg.has(e)?tg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=H((sI,hg)=>{"use strict";var ig=typeof process=="object"&&process?process:{stdout:null,stderr:null},jF=require("events"),ng=require("stream"),sg=require("string_decoder").StringDecoder,qt=Symbol("EOF"),$t=Symbol("maybeEmitEnd"),hr=Symbol("emittedEnd"),Js=Symbol("emittingEnd"),Rn=Symbol("emittedError"),Xs=Symbol("closed"),og=Symbol("read"),Qs=Symbol("flush"),ug=Symbol("flushChunk"),Ge=Symbol("encoding"),Ut=Symbol("decoder"),eo=Symbol("flowing"),xn=Symbol("paused"),Fi=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),Ul=Symbol("bufferPush"),Gl=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),zl=Symbol("emitData"),ag=Symbol("emitEnd"),Wl=Symbol("emitEnd2"),Gt=Symbol("async"),Fn=t=>Promise.resolve().then(t),lg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",HF=lg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),qF=lg&&Symbol.iterator||Symbol("iterator not implemented"),$F=t=>t==="end"||t==="finish"||t==="prefinish",UF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,GF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),to=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Fi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Yl=class extends to{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};hg.exports=class cg extends ng{constructor(e){super(),this[eo]=!1,this[xn]=!1,this[vt]=[],this[_e]=[],this[Be]=e&&e.objectMode||!1,this[Be]?this[Ge]=null:this[Ge]=e&&e.encoding||null,this[Ge]==="buffer"&&(this[Ge]=null),this[Gt]=e&&!!e.async||!1,this[Ut]=this[Ge]?new sg(this[Ge]):null,this[qt]=!1,this[hr]=!1,this[Js]=!1,this[Xs]=!1,this[Rn]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[Pe]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_e]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[vt]})}get bufferLength(){return this[Re]}get encoding(){return this[Ge]}set encoding(e){if(this[Be])throw new Error("cannot set encoding in objectMode");if(this[Ge]&&e!==this[Ge]&&(this[Ut]&&this[Ut].lastNeed||this[Re]))throw new Error("cannot change encoding");this[Ge]!==e&&(this[Ut]=e?new sg(e):null,this[_e].length&&(this[_e]=this[_e].map(r=>this[Ut].write(r)))),this[Ge]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Be]}set objectMode(e){this[Be]=this[Be]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}write(e,r,i){if(this[qt])throw new Error("write after end");if(this[Pe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Gt]?Fn:s=>s();return!this[Be]&&!Buffer.isBuffer(e)&&(GF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):UF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Be]?(this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ge]&&!this[Ut].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ge]&&(e=this[Ut].write(e)),this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Pe])return null;if(this[Re]===0||e===0||e>this[Re])return this[$t](),null;this[Be]&&(e=null),this[_e].length>1&&!this[Be]&&(this.encoding?this[_e]=[this[_e].join("")]:this[_e]=[Buffer.concat(this[_e],this[Re])]);let r=this[og](e||null,this[_e][0]);return this[$t](),r}[og](e,r){return e===r.length||e===null?this[Gl]():(this[_e][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[_e].length&&!this[qt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[qt]=!0,this.writable=!1,(this.flowing||!this[xn])&&this[$t](),this}[Fi](){this[Pe]||(this[xn]=!1,this[eo]=!0,this.emit("resume"),this[_e].length?this[Qs]():this[qt]?this[$t]():this.emit("drain"))}resume(){return this[Fi]()}pause(){this[eo]=!1,this[xn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[eo]}get paused(){return this[xn]}[Ul](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[Gl](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Qs](e){do;while(this[ug](this[Gl]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[ug](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Pe])return;let i=this[hr];return r=r||{},e===ig.stdout||e===ig.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new Yl(this,e,r):new to(this,e,r)),this[Gt]?Fn(()=>this[Fi]()):this[Fi]()),e}unpipe(e){let r=this[vt].find(i=>i.dest===e);r&&(this[vt].splice(this[vt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[vt].length&&!this.flowing?this[Fi]():e==="readable"&&this[Re]!==0?super.emit("readable"):$F(e)&&this[hr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rn]&&(this[Gt]?Fn(()=>r.call(this,this[Rn])):r.call(this,this[Rn])),i}get emittedEnd(){return this[hr]}[$t](){!this[Js]&&!this[hr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Js]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Js]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[Gt]?Fn(()=>this[zl](r)):this[zl](r):!1;if(e==="end")return this[ag]();if(e==="close"){if(this[Xs]=!0,!this[hr]&&!this[Pe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rn]=r;let s=super.emit("error",r);return this[$t](),s}else if(e==="resume"){let s=super.emit("resume");return this[$t](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[$t](),n}[zl](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$t](),r}[ag](){this[hr]||(this[hr]=!0,this.readable=!1,this[Gt]?Fn(()=>this[Wl]()):this[Wl]())}[Wl](){if(this[Ut]){let r=this[Ut].end();if(r){for(let i of this[vt])i.dest.write(r);super.emit("data",r)}}for(let r of this[vt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ge]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Pe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[HF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[qt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Pe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[qF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Pe]?(e?this.emit("error",e):this.emit(Pe),this):(this[Pe]=!0,this[_e].length=0,this[Re]=0,typeof this.close=="function"&&!this[Xs]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof cg||e instanceof ng||e instanceof jF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var pg=H((oI,fg)=>{var zF=require("zlib").constants||{ZLIB_VERNUM:4736};fg.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},zF))});var Ql=H((uI,wg)=>{"use strict";var dg=typeof process=="object"&&process?process:{stdout:null,stderr:null},WF=require("events"),mg=require("stream"),yg=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),fr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),On=Symbol("emittedError"),no=Symbol("closed"),gg=Symbol("read"),so=Symbol("flush"),Eg=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),oo=Symbol("flowing"),Tn=Symbol("paused"),Oi=Symbol("resume"),xe=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Vl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Zl=Symbol("emitData"),Dg=Symbol("emitEnd"),Jl=Symbol("emitEnd2"),Kt=Symbol("async"),kn=t=>Promise.resolve().then(t),_g=global._MP_NO_ITERATOR_SYMBOLS_!=="1",YF=_g&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),KF=_g&&Symbol.iterator||Symbol("iterator not implemented"),VF=t=>t==="end"||t==="finish"||t==="prefinish",ZF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,JF=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[Oi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Xl=class extends uo{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};wg.exports=class bg extends mg{constructor(e){super(),this[oo]=!1,this[Tn]=!1,this.pipes=[],this.buffer=[],this[Ie]=e&&e.objectMode||!1,this[Ie]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[Kt]=e&&!!e.async||!1,this[Yt]=this[ze]?new yg(this[ze]):null,this[zt]=!1,this[fr]=!1,this[io]=!1,this[no]=!1,this[On]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[Ne]=!1}get bufferLength(){return this[xe]}get encoding(){return this[ze]}set encoding(e){if(this[Ie])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Yt]&&this[Yt].lastNeed||this[xe]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Yt]=e?new yg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ie]}set objectMode(e){this[Ie]=this[Ie]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[zt])throw new Error("write after end");if(this[Ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Kt]?kn:s=>s();return!this[Ie]&&!Buffer.isBuffer(e)&&(JF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):ZF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ie]?(this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Yt].write(e)),this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Wt](),null;this[Ie]&&(e=null),this.buffer.length>1&&!this[Ie]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[xe])]);let r=this[gg](e||null,this.buffer[0]);return this[Wt](),r}[gg](e,r){return e===r.length||e===null?this[Vl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[xe]-=e),this.emit("data",r),!this.buffer.length&&!this[zt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[zt]=!0,this.writable=!1,(this.flowing||!this[Tn])&&this[Wt](),this}[Oi](){this[Ne]||(this[Tn]=!1,this[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[oo]=!1,this[Tn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[oo]}get paused(){return this[Tn]}[Kl](e){this[Ie]?this[xe]+=1:this[xe]+=e.length,this.buffer.push(e)}[Vl](){return this.buffer.length&&(this[Ie]?this[xe]-=1:this[xe]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[Eg](this[Vl]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[Eg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ne])return;let i=this[fr];return r=r||{},e===dg.stdout||e===dg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Xl(this,e,r):new uo(this,e,r)),this[Kt]?kn(()=>this[Oi]()):this[Oi]()),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[Oi]():e==="readable"&&this[xe]!==0?super.emit("readable"):VF(e)&&this[fr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[On]&&(this[Kt]?kn(()=>r.call(this,this[On])):r.call(this,this[On])),i}get emittedEnd(){return this[fr]}[Wt](){!this[io]&&!this[fr]&&!this[Ne]&&this.buffer.length===0&&this[zt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?kn(()=>this[Zl](r)):this[Zl](r):!1;if(e==="end")return this[Dg]();if(e==="close"){if(this[no]=!0,!this[fr]&&!this[Ne])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[On]=r;let s=super.emit("error",r);return this[Wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Wt](),n}[Zl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[Dg](){this[fr]||(this[fr]=!0,this.readable=!1,this[Kt]?kn(()=>this[Jl]()):this[Jl]())}[Jl](){if(this[Yt]){let r=this[Yt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ie]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ie]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this[ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ne,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[YF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[zt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Ne,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[KF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ne]?(e?this.emit("error",e):this.emit(Ne),this):(this[Ne]=!0,this.buffer.length=0,this[xe]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof bg||e instanceof mg||e instanceof WF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=H(Je=>{"use strict";var nc=require("assert"),pr=require("buffer").Buffer,vg=require("zlib"),Nr=Je.constants=pg(),XF=Ql(),Sg=pr.concat,Mr=Symbol("_superWrite"),ki=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"}},QF=Symbol("opts"),Ln=Symbol("flushFlag"),Ag=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),pe=Symbol("handle"),ao=Symbol("onError"),Ti=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),aI=Symbol("_defaultFullFlush"),lo=class extends XF{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ti]=!1,this[rc]=!1,this[QF]=e,this[Ln]=e.flush,this[Ag]=e.finishFlush;try{this[pe]=new vg[r](e)}catch(i){throw new ki(i)}this[ao]=i=>{this[Ti]||(this[Ti]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ao](new ki(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Ti])return nc(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(pr.alloc(0),{[Ln]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Ag]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=pr.from(e,r)),this[Ti])return;nc(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},pr.concat=l=>l;let u;try{let l=typeof e[Ln]=="number"?e[Ln]:this[Ln];u=this[pe]._processChunk(e,l),pr.concat=Sg}catch(l){pr.concat=Sg,this[ao](new ki(l))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",l=>this[ao](new ki(l)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[Mr](pr.from(u[0]));for(let l=1;l<u.length;l++)a=this[Mr](u[l])}else a=this[Mr](pr.from(u));return i&&i(),a}[Mr](e){return super.write(e)}},Vt=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||Nr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Nr.Z_FINISH,super(e,r),this[dc]=Nr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=e.strategy}params(e,r){if(!this[Ti]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[ec]!==e||this[tc]!==r){this.flush(Nr.Z_SYNC_FLUSH),nc(this[pe],"zlib binding closed");let i=this[pe].flush;this[pe].flush=(n,s)=>{this.flush(n),s()};try{this[pe].params(e,r)}finally{this[pe].flush=i}this[pe]&&(this[ec]=e,this[tc]=r)}}}},sc=class extends Vt{constructor(e){super(e,"Deflate")}},oc=class extends Vt{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),uc=class extends Vt{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[Mr](e){return this[ic]?(this[ic]=!1,e[9]=255,super[Mr](e)):super[Mr](e)}},ac=class extends Vt{constructor(e){super(e,"Gunzip")}},lc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},cc=class extends Vt{constructor(e){super(e,"InflateRaw")}},hc=class extends Vt{constructor(e){super(e,"Unzip")}},co=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||Nr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Nr.BROTLI_OPERATION_FINISH,super(e,r),this[dc]=Nr.BROTLI_OPERATION_FLUSH}},fc=class extends co{constructor(e){super(e,"BrotliCompress")}},pc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Je.Deflate=sc;Je.Inflate=oc;Je.Gzip=uc;Je.Gunzip=ac;Je.DeflateRaw=lc;Je.InflateRaw=cc;Je.Unzip=hc;typeof vg.BrotliCompress=="function"?(Je.BrotliCompress=fc,Je.BrotliDecompress=pc):Je.BrotliCompress=Je.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Li=H((hI,Cg)=>{var eO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Cg.exports=eO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=H((pI,Rg)=>{"use strict";var tO=ro(),yc=Li(),gc=Symbol("slurp");Rg.exports=class extends tO{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=yc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=yc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[gc](r),i&&this[gc](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[gc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yc(e[i]):e[i])}}});var Ec=H(fo=>{"use strict";fo.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var Tg=H((mI,Og)=>{"use strict";var rO=(t,e)=>{if(Number.isSafeInteger(t))t<0?nO(t,e):iO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},iO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},nO=(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]=xg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Fg(n))}},sO=t=>{let e=t[0],r=e===128?uO(t.slice(1,t.length)):e===255?oO(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},oO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=xg(s):s===0?o=s:(i=!0,o=Fg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},uO=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},xg=t=>(255^t)&255,Fg=t=>(255^t)+1&255;Og.exports={encode:rO,parse:sO}});var Pi=H((yI,Lg)=>{"use strict";var Dc=Ec(),Bi=require("path").posix,kg=Tg(),_c=Symbol("slurp"),Xe=Symbol("type"),Sc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Xe]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=jr(e,r,100),this.mode=dr(e,r+100,8),this.uid=dr(e,r+108,8),this.gid=dr(e,r+116,8),this.size=dr(e,r+124,12),this.mtime=bc(e,r+136,12),this.cksum=dr(e,r+148,12),this[_c](i),this[_c](n,!0),this[Xe]=jr(e,r+156,1),this[Xe]===""&&(this[Xe]="0"),this[Xe]==="0"&&this.path.slice(-1)==="/"&&(this[Xe]="5"),this[Xe]==="5"&&(this.size=0),this.linkpath=jr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=jr(e,r+265,32),this.gname=jr(e,r+297,32),this.devmaj=dr(e,r+329,8),this.devmin=dr(e,r+337,8),e[r+475]!==0){let o=jr(e,r+345,155);this.path=o+"/"+this.path}else{let o=jr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=bc(e,r+476,12),this.ctime=bc(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[_c](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=aO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Hr(e,r,100,s)||this.needPax,this.needPax=mr(e,r+100,8,this.mode)||this.needPax,this.needPax=mr(e,r+108,8,this.uid)||this.needPax,this.needPax=mr(e,r+116,8,this.gid)||this.needPax,this.needPax=mr(e,r+124,12,this.size)||this.needPax,this.needPax=wc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Xe].charCodeAt(0),this.needPax=Hr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Hr(e,r+265,32,this.uname)||this.needPax,this.needPax=Hr(e,r+297,32,this.gname)||this.needPax,this.needPax=mr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=mr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Hr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Hr(e,r+345,155,o)||this.needPax:(this.needPax=Hr(e,r+345,130,o)||this.needPax,this.needPax=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,mr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Dc.name.get(this[Xe])||this[Xe]}get typeKey(){return this[Xe]}set type(e){Dc.code.has(e)?this[Xe]=Dc.code.get(e):this[Xe]=e}},aO=(t,e)=>{let i=t,n="",s,o=Bi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Bi.dirname(i),i=Bi.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=Bi.join(Bi.basename(n),i),n=Bi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},jr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),bc=(t,e,r)=>lO(dr(t,e,r)),lO=t=>t===null?null:new Date(t*1e3),dr=(t,e,r)=>t[e]&128?kg.parse(t.slice(e,e+r)):hO(t,e,r),cO=t=>isNaN(t)?null:t,hO=(t,e,r)=>cO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),fO={12:8589934591,8:2097151},mr=(t,e,r,i)=>i===null?!1:i>fO[r]||i<0?(kg.encode(i,t.slice(e,e+r)),!0):(pO(t,e,r,i),!1),pO=(t,e,r,i)=>t.write(dO(i,r),e,r,"ascii"),dO=(t,e)=>mO(Math.floor(t).toString(8),e),mO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wc=(t,e,r,i)=>i===null?!1:mr(t,e,r,i.getTime()/1e3),yO=new Array(156).join("\0"),Hr=(t,e,r,i)=>i===null?!1:(t.write(i+yO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Lg.exports=Sc});var po=H((gI,Bg)=>{"use strict";var gO=Pi(),EO=require("path"),Bn=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new gO({path:("PaxHeader/"+EO.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
+ `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Bn.parse=(t,e,r)=>new Bn(DO(_O(t),e),r);var DO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,_O=t=>t.replace(/\n$/,"").split(`
8
+ `).reduce(bO,Object.create(null)),bO=(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};Bg.exports=Bn});var Ii=H((EI,Pg)=>{Pg.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var mo=H((DI,Ig)=>{"use strict";Ig.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var vc=H((bI,Ng)=>{"use strict";var yo=["|","<",">","?",":"],Ac=yo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),wO=new Map(yo.map((t,e)=>[t,Ac[e]])),SO=new Map(Ac.map((t,e)=>[t,yo[e]]));Ng.exports={encode:t=>yo.reduce((e,r)=>e.split(r).join(wO.get(r)),t),decode:t=>Ac.reduce((e,r)=>e.split(r).join(SO.get(r)),t)}});var Cc=H((wI,jg)=>{var{isAbsolute:AO,parse:Mg}=require("path").win32;jg.exports=t=>{let e="",r=Mg(t);for(;AO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Mg(t)}return[e,t]}});var qg=H((SI,Hg)=>{"use strict";Hg.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Ic=H((CI,tE)=>{"use strict";var Kg=ro(),Vg=po(),Zg=Pi(),Rt=require("fs"),$g=require("path"),Ct=Li(),vO=Ii(),Jg=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),vO(e)+"/"+t):Ct(t),CO=16*1024*1024,Ug=Symbol("process"),Gg=Symbol("file"),zg=Symbol("directory"),xc=Symbol("symlink"),Wg=Symbol("hardlink"),Pn=Symbol("header"),go=Symbol("read"),Fc=Symbol("lstat"),Eo=Symbol("onlstat"),Oc=Symbol("onread"),Tc=Symbol("onreadlink"),kc=Symbol("openfile"),Lc=Symbol("onopenfile"),yr=Symbol("close"),Do=Symbol("mode"),Bc=Symbol("awaitDrain"),Rc=Symbol("ondrain"),xt=Symbol("prefix"),Yg=Symbol("hadError"),Xg=mo(),RO=vc(),Qg=Cc(),eE=qg(),_o=Xg(class extends Kg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ct(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||CO,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ct(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ct(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Qg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=RO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ct(r.absolute||$g.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Eo](this.statCache.get(this.absolute)):this[Fc]()}emit(e,...r){return e==="error"&&(this[Yg]=!0),super.emit(e,...r)}[Fc](){Rt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Eo](r)})}[Eo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=FO(e),this.emit("stat",e),this[Ug]()}[Ug](){switch(this.type){case"File":return this[Gg]();case"Directory":return this[zg]();case"SymbolicLink":return this[xc]();default:return this.end()}}[Do](e){return eE(e,this.type==="Directory",this.portable)}[xt](e){return Jg(e,this.prefix)}[Pn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Zg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this[Do](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Vg({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[zg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pn](),this.end()}[xc](){Rt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Tc](r)})}[Tc](e){this.linkpath=Ct(e),this[Pn](),this.end()}[Wg](e){this.type="Link",this.linkpath=Ct($g.relative(this.cwd,e)),this.stat.size=0,this[Pn](),this.end()}[Gg](){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[Wg](r)}this.linkCache.set(e,this.absolute)}if(this[Pn](),this.stat.size===0)return this.end();this[kc]()}[kc](){Rt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Lc](r)})}[Lc](e){if(this.fd=e,this[Yg])return this[yr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[go]()}[go](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Rt.read(e,r,i,n,s,(o,u)=>{if(o)return this[yr](()=>this.emit("error",o));this[Oc](u)})}[yr](e){Rt.close(this.fd,e)}[Oc](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[yr](()=>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[yr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Rc]():this[Bc](()=>this[Rc]())}[Bc](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Rc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[yr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[go]()}}),Pc=class extends _o{[Fc](){this[Eo](Rt.lstatSync(this.absolute))}[xc](){this[Tc](Rt.readlinkSync(this.absolute))}[kc](){this[Lc](Rt.openSync(this.absolute,"r"))}[go](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=Rt.readSync(r,i,n,s,o);this[Oc](u),e=!1}finally{if(e)try{this[yr](()=>{})}catch{}}}[Bc](e){e()}[yr](e){Rt.closeSync(this.fd),e()}},xO=Xg(class extends Kg{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ct(e.path),this.mode=this[Do](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ct(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Qg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Zg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Vg({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[xt](e){return Jg(e,this.prefix)}[Do](e){return eE(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});_o.Sync=Pc;_o.Tar=xO;var FO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";tE.exports=_o});var iE=H((RI,rE)=>{"use strict";rE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Nc=H((xI,nE)=>{"use strict";nE.exports=oe;oe.Node=qr;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++)TO(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)kO(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=OO(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 OO(t,e,r){var i=e===t.head?new qr(r,null,e,t):new qr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function TO(t,e){t.tail=new qr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function kO(t,e){t.head=new qr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function qr(t,e,r,i){if(!(this instanceof qr))return new qr(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{iE()(oe)}catch{}});var Fo=H((OI,hE)=>{"use strict";var Ro=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},LO=ro(),BO=mc(),PO=ho(),Wc=Ic(),IO=Wc.Sync,NO=Wc.Tar,MO=Nc(),sE=Buffer.alloc(1024),So=Symbol("onStat"),bo=Symbol("ended"),Ft=Symbol("queue"),Ni=Symbol("current"),$r=Symbol("process"),wo=Symbol("processing"),oE=Symbol("processJob"),Ot=Symbol("jobs"),Mc=Symbol("jobDone"),Ao=Symbol("addFSEntry"),uE=Symbol("addTarEntry"),$c=Symbol("stat"),Uc=Symbol("readdir"),vo=Symbol("onreaddir"),Co=Symbol("pipe"),aE=Symbol("entry"),jc=Symbol("entryOpt"),Gc=Symbol("writeEntryClass"),cE=Symbol("write"),Hc=Symbol("ondrain"),xo=require("fs"),lE=require("path"),jO=mo(),qc=Li(),Yc=jO(class extends LO{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=qc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gc]=Wc,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new BO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Ft]=new MO,this[Ot]=0,this.jobs=+e.jobs||4,this[wo]=!1,this[bo]=!1}[cE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[bo]=!0,this[$r](),this}write(e){if(this[bo])throw new Error("write after end");return e instanceof PO?this[uE](e):this[Ao](e),this.flowing}[uE](e){let r=qc(lE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ro(e.path,r,!1);i.entry=new NO(e,this[jc](i)),i.entry.on("end",n=>this[Mc](i)),this[Ot]+=1,this[Ft].push(i)}this[$r]()}[Ao](e){let r=qc(lE.resolve(this.cwd,e));this[Ft].push(new Ro(e,r)),this[$r]()}[$c](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";xo[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[So](e,n)})}[So](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[$r]()}[Uc](e){e.pending=!0,this[Ot]+=1,xo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[vo](e,i)})}[vo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[$r]()}[$r](){if(!this[wo]){this[wo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[oE](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[wo]=!1,this[bo]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(sE):(super.write(sE),super.end()))}}get[Ni](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Mc](e){this[Ft].shift(),this[Ot]-=1,this[$r]()}[oE](e){if(!e.pending){if(e.entry){e===this[Ni]&&!e.piped&&this[Co](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[So](e,this.statCache.get(e.absolute)):this[$c](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vo](e,this.readdirCache.get(e.absolute)):this[Uc](e),!e.readdir))){if(e.entry=this[aE](e),!e.entry){e.ignore=!0;return}e===this[Ni]&&!e.piped&&this[Co](e)}}}[jc](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[aE](e){this[Ot]+=1;try{return new this[Gc](e.path,this[jc](e)).on("end",()=>this[Mc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[Ni]&&this[Ni].entry&&this[Ni].entry.resume()}[Co](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),zc=class extends Yc{constructor(e){super(e),this[Gc]=IO}pause(){}resume(){}[$c](e){let r=this.follow?"statSync":"lstatSync";this[So](e,xo[r](e.absolute))}[Uc](e,r){this[vo](e,xo.readdirSync(e.absolute))}[Co](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[cE](n)})}};Yc.Sync=zc;hE.exports=Yc});var zi=H(Nn=>{"use strict";var HO=Ql(),qO=require("events").EventEmitter,We=require("fs"),Zc=We.writev;if(!Zc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zc=(r,i,n,s)=>{let o=(a,l)=>s(a,l,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var Ui=Symbol("_autoClose"),ft=Symbol("_close"),In=Symbol("_ended"),he=Symbol("_fd"),fE=Symbol("_finished"),Er=Symbol("_flags"),Kc=Symbol("_flush"),Jc=Symbol("_handleChunk"),Xc=Symbol("_makeBuf"),Bo=Symbol("_mode"),Oo=Symbol("_needDrain"),qi=Symbol("_onerror"),Gi=Symbol("_onopen"),Vc=Symbol("_onread"),ji=Symbol("_onwrite"),Dr=Symbol("_open"),Zt=Symbol("_path"),Ur=Symbol("_pos"),Tt=Symbol("_queue"),Hi=Symbol("_read"),pE=Symbol("_readSize"),gr=Symbol("_reading"),To=Symbol("_remain"),dE=Symbol("_size"),ko=Symbol("_write"),Mi=Symbol("_writing"),Lo=Symbol("_defaultFlag"),$i=Symbol("_errored"),Po=class extends HO{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Zt]=e,this[pE]=r.readSize||16*1024*1024,this[gr]=!1,this[dE]=typeof r.size=="number"?r.size:1/0,this[To]=this[dE],this[Ui]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[Hi]():this[Dr]()}get fd(){return this[he]}get path(){return this[Zt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Dr](){We.open(this[Zt],"r",(e,r)=>this[Gi](e,r))}[Gi](e,r){e?this[qi](e):(this[he]=r,this.emit("open",r),this[Hi]())}[Xc](){return Buffer.allocUnsafe(Math.min(this[pE],this[To]))}[Hi](){if(!this[gr]){this[gr]=!0;let e=this[Xc]();if(e.length===0)return process.nextTick(()=>this[Vc](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Vc](r,i,n))}}[Vc](e,r,i){this[gr]=!1,e?this[qi](e):this[Jc](r,i)&&this[Hi]()}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[qi](e){this[gr]=!0,this[ft](),this.emit("error",e)}[Jc](e,r){let i=!1;return this[To]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[To]<=0)&&(i=!1,this[ft](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[Hi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Qc=class extends Po{[Dr](){let e=!0;try{this[Gi](null,We.openSync(this[Zt],"r")),e=!1}finally{e&&this[ft]()}}[Hi](){let e=!0;try{if(!this[gr]){this[gr]=!0;do{let r=this[Xc](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Jc](i,r))break}while(!0);this[gr]=!1}e=!1}finally{e&&this[ft]()}}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}},Io=class extends qO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[Mi]=!1,this[In]=!1,this[Oo]=!1,this[Tt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Bo]=r.mode===void 0?438:r.mode,this[Ur]=typeof r.start=="number"?r.start:null,this[Ui]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Ur]!==null?"r+":"w";this[Lo]=r.flags===void 0,this[Er]=this[Lo]?i:r.flags,this[he]===null&&this[Dr]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Zt]}[qi](e){this[ft](),this[Mi]=!0,this.emit("error",e)}[Dr](){We.open(this[Zt],this[Er],this[Bo],(e,r)=>this[Gi](e,r))}[Gi](e,r){this[Lo]&&this[Er]==="r+"&&e&&e.code==="ENOENT"?(this[Er]="w",this[Dr]()):e?this[qi](e):(this[he]=r,this.emit("open",r),this[Kc]())}end(e,r){return e&&this.write(e,r),this[In]=!0,!this[Mi]&&!this[Tt].length&&typeof this[he]=="number"&&this[ji](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[In]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[Mi]||this[Tt].length?(this[Tt].push(e),this[Oo]=!0,!1):(this[Mi]=!0,this[ko](e),!0)}[ko](e){We.write(this[he],e,0,e.length,this[Ur],(r,i)=>this[ji](r,i))}[ji](e,r){e?this[qi](e):(this[Ur]!==null&&(this[Ur]+=r),this[Tt].length?this[Kc]():(this[Mi]=!1,this[In]&&!this[fE]?(this[fE]=!0,this[ft](),this.emit("finish")):this[Oo]&&(this[Oo]=!1,this.emit("drain"))))}[Kc](){if(this[Tt].length===0)this[In]&&this[ji](null,0);else if(this[Tt].length===1)this[ko](this[Tt].pop());else{let e=this[Tt];this[Tt]=[],Zc(this[he],e,this[Ur],(r,i)=>this[ji](r,i))}}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},eh=class extends Io{[Dr](){let e;if(this[Lo]&&this[Er]==="r+")try{e=We.openSync(this[Zt],this[Er],this[Bo])}catch(r){if(r.code==="ENOENT")return this[Er]="w",this[Dr]();throw r}else e=We.openSync(this[Zt],this[Er],this[Bo]);this[Gi](null,e)}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}[ko](e){let r=!0;try{this[ji](null,We.writeSync(this[he],e,0,e.length,this[Ur])),r=!1}finally{if(r)try{this[ft]()}catch{}}}};Nn.ReadStream=Po;Nn.ReadStreamSync=Qc;Nn.WriteStream=Io;Nn.WriteStreamSync=eh});var Uo=H((LI,wE)=>{"use strict";var $O=mo(),UO=Pi(),GO=require("events"),zO=Nc(),WO=1024*1024,YO=ho(),mE=po(),KO=mc(),{nextTick:VO}=require("process"),th=Buffer.from([31,139]),nt=Symbol("state"),Gr=Symbol("writeEntry"),Jt=Symbol("readEntry"),rh=Symbol("nextEntry"),yE=Symbol("processEntry"),st=Symbol("extendedHeader"),Mn=Symbol("globalExtendedHeader"),_r=Symbol("meta"),gE=Symbol("emitMeta"),de=Symbol("buffer"),Xt=Symbol("queue"),zr=Symbol("ended"),EE=Symbol("emittedEnd"),Wr=Symbol("emit"),Ye=Symbol("unzip"),No=Symbol("consumeChunk"),Mo=Symbol("consumeChunkSub"),ih=Symbol("consumeBody"),DE=Symbol("consumeMeta"),_E=Symbol("consumeHeader"),jo=Symbol("consuming"),nh=Symbol("bufferConcat"),sh=Symbol("maybeEnd"),jn=Symbol("writing"),br=Symbol("aborted"),Ho=Symbol("onDone"),Yr=Symbol("sawValidEntry"),qo=Symbol("sawNullBlock"),$o=Symbol("sawEOF"),bE=Symbol("closeStream"),ZO=t=>!0;wE.exports=$O(class extends GO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Yr]=null,this.on(Ho,r=>{(this[nt]==="begin"||this[Yr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ho,e.ondone):this.on(Ho,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||WO,this.filter=typeof e.filter=="function"?e.filter:ZO,this.writable=!0,this.readable=!1,this[Xt]=new zO,this[de]=null,this[Jt]=null,this[Gr]=null,this[nt]="begin",this[_r]="",this[st]=null,this[Mn]=null,this[zr]=!1,this[Ye]=null,this[br]=!1,this[qo]=!1,this[$o]=!1,this.on("end",()=>this[bE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[_E](e,r){this[Yr]===null&&(this[Yr]=!1);let i;try{i=new UO(e,r,this[st],this[Mn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[qo]?(this[$o]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Wr]("eof")):(this[qo]=!0,this[Wr]("nullBlock"));else if(this[qo]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Gr]=new YO(i,this[st],this[Mn]);if(!this[Yr])if(s.remain){let o=()=>{s.invalid||(this[Yr]=!0)};s.on("end",o)}else this[Yr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Wr]("ignoredEntry",s),this[nt]="ignore",s.resume()):s.size>0&&(this[_r]="",s.on("data",o=>this[_r]+=o),this[nt]="meta"):(this[st]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Wr]("ignoredEntry",s),this[nt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[nt]="body":(this[nt]="header",s.end()),this[Jt]?this[Xt].push(s):(this[Xt].push(s),this[rh]())))}}}[bE](){VO(()=>this.emit("close"))}[yE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Jt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[rh]()),r=!1)):(this[Jt]=null,r=!1),r}[rh](){do;while(this[yE](this[Xt].shift()));if(!this[Xt].length){let e=this[Jt];!e||e.flowing||e.size===e.remain?this[jn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[ih](e,r){let i=this[Gr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[nt]="header",this[Gr]=null,i.end()),s.length}[DE](e,r){let i=this[Gr],n=this[ih](e,r);return this[Gr]||this[gE](i),n}[Wr](e,r,i){!this[Xt].length&&!this[Jt]?this.emit(e,r,i):this[Xt].push([e,r,i])}[gE](e){switch(this[Wr]("meta",this[_r]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=mE.parse(this[_r],this[st],!1);break;case"GlobalExtendedHeader":this[Mn]=mE.parse(this[_r],this[Mn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[st]=this[st]||Object.create(null),this[st].path=this[_r].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[st]=this[st]||Object.create(null),this[st].linkpath=this[_r].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[br]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[br])return;if(this[Ye]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<th.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<th.length;i++)e[i]!==th[i]&&(this[Ye]=!1);if(this[Ye]===null){let i=this[zr];this[zr]=!1,this[Ye]=new KO.Unzip,this[Ye].on("data",s=>this[No](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[zr]=!0,this[No]()}),this[jn]=!0;let n=this[Ye][i?"end":"write"](e);return this[jn]=!1,n}}this[jn]=!0,this[Ye]?this[Ye].write(e):this[No](e),this[jn]=!1;let r=this[Xt].length?!1:this[Jt]?this[Jt].flowing:!0;return!r&&!this[Xt].length&&this[Jt].once("drain",i=>this.emit("drain")),r}[nh](e){e&&!this[br]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[sh](){if(this[zr]&&!this[EE]&&!this[br]&&!this[jo]){this[EE]=!0;let e=this[Gr];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[Wr](Ho)}}[No](e){if(this[jo])this[nh](e);else if(!e&&!this[de])this[sh]();else{if(this[jo]=!0,this[de]){this[nh](e);let r=this[de];this[de]=null,this[Mo](r)}else this[Mo](e);for(;this[de]&&this[de].length>=512&&!this[br]&&!this[$o];){let r=this[de];this[de]=null,this[Mo](r)}this[jo]=!1}(!this[de]||this[zr])&&this[sh]()}[Mo](e){let r=0,i=e.length;for(;r+512<=i&&!this[br]&&!this[$o];)switch(this[nt]){case"begin":case"header":this[_E](e,r),r+=512;break;case"ignore":case"body":r+=this[ih](e,r);break;case"meta":r+=this[DE](e,r);break;default:throw new Error("invalid state: "+this[nt])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[br]||(this[Ye]?this[Ye].end(e):(this[zr]=!0,this.write(e)))}})});var Go=H((BI,CE)=>{"use strict";var JO=xi(),AE=Uo(),Wi=require("fs"),XO=zi(),SE=require("path"),oh=Ii();CE.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=JO(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&&eT(i,e),i.noResume||QO(i),i.file&&i.sync?tT(i):i.file?rT(i,r):vE(i)};var QO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},eT=(t,e)=>{let r=new Map(e.map(s=>[oh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||SE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(SE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(oh(s)):s=>n(oh(s))},tT=t=>{let e=vE(t),r=t.file,i=!0,n;try{let s=Wi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Wi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=Wi.openSync(r,"r");u<s.size;){let l=Wi.readSync(n,a,0,o,u);u+=l,e.write(a.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{Wi.closeSync(n)}catch{}}},rT=(t,e)=>{let r=new AE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Wi.stat(n,(a,l)=>{if(a)u(a);else{let c=new XO.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},vE=t=>new AE(t)});var kE=H((PI,TE)=>{"use strict";var iT=xi(),zo=Fo(),RE=zi(),xE=Go(),FE=require("path");TE.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=iT(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?nT(i,e):i.file?sT(i,e,r):i.sync?oT(i,e):uT(i,e)};var nT=(t,e)=>{let r=new zo.Sync(t),i=new RE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),OE(r,e)},sT=(t,e,r)=>{let i=new zo(t),n=new RE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return uh(i,e),r?s.then(r,r):s},OE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?xE({file:FE.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 xE({file:FE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},oT=(t,e)=>{let r=new zo.Sync(t);return OE(r,e),r},uT=(t,e)=>{let r=new zo(t);return uh(r,e),r}});var ah=H((II,jE)=>{"use strict";var aT=xi(),LE=Fo(),Qe=require("fs"),BE=zi(),PE=Go(),IE=require("path"),NE=Pi();jE.exports=(t,e,r)=>{let i=aT(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?lT(i,e):hT(i,e,r)};var lT=(t,e)=>{let r=new LE.Sync(t),i=!0,n,s;try{try{n=Qe.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Qe.openSync(t.file,"w+");else throw a}let o=Qe.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let c=0,h=0;c<512;c+=h){if(h=Qe.readSync(n,u,c,u.length-c,s+c),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let a=new NE(u);if(!a.cksumValid)break;let l=512*Math.ceil(a.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,cT(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},cT=(t,e,r,i,n)=>{let s=new BE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),fT(e,n)},hT=(t,e,r)=>{e=Array.from(e);let i=new LE(t),n=(o,u,a)=>{let l=(m,d)=>{m?Qe.close(o,y=>a(m)):a(null,d)},c=0;if(u===0)return l(null,0);let h=0,f=Buffer.alloc(512),p=(m,d)=>{if(m)return l(m);if(h+=d,h<512&&d)return Qe.read(o,f,h,f.length-h,c+h,p);if(c===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,c);let y=new NE(f);if(!y.cksumValid)return l(null,c);let v=512*Math.ceil(y.size/512);if(c+v+512>u||(c+=v+512,c>=u))return l(null,c);t.mtimeCache&&t.mtimeCache.set(y.path,y.mtime),h=0,Qe.read(o,f,0,512,c,p)};Qe.read(o,f,0,512,c,p)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",l=(c,h)=>{if(c&&c.code==="ENOENT"&&a==="r+")return a="w+",Qe.open(t.file,a,l);if(c)return u(c);Qe.fstat(h,(f,p)=>{if(f)return Qe.close(h,()=>u(f));n(h,p.size,(m,d)=>{if(m)return u(m);let y=new BE.WriteStream(t.file,{fd:h,start:d});i.pipe(y),y.on("error",u),y.on("close",o),ME(i,e)})})};Qe.open(t.file,a,l)});return r?s.then(r,r):s},fT=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?PE({file:IE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},ME=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return PE({file:IE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>ME(t,e));t.add(r)}t.end()}});var qE=H((NI,HE)=>{"use strict";var pT=xi(),dT=ah();HE.exports=(t,e,r)=>{let i=pT(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),mT(i),dT(i,e,r)};var mT=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 GE=H((MI,UE)=>{var{promisify:$E}=require("util"),wr=require("fs"),yT=t=>{if(!t)t={mode:511,fs:wr};else if(typeof t=="object")t={mode:511,fs:wr,...t};else if(typeof t=="number")t={mode:t,fs:wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||wr.mkdir,t.mkdirAsync=$E(t.mkdir),t.stat=t.stat||t.fs.stat||wr.stat,t.statAsync=$E(t.stat),t.statSync=t.statSync||t.fs.statSync||wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||wr.mkdirSync,t};UE.exports=yT});var WE=H((jI,zE)=>{var gT=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:ET,parse:DT}=require("path"),_T=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=ET(t),gT==="win32"){let e=/[*|"<>?:]/,{root:r}=DT(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};zE.exports=_T});var JE=H((HI,ZE)=>{var{dirname:YE}=require("path"),KE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?KE(t,YE(e),e):void 0),VE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?VE(t,YE(e),e):void 0}};ZE.exports={findMade:KE,findMadeSync:VE}});var hh=H((qI,QE)=>{var{dirname:XE}=require("path"),lh=(t,e,r)=>{e.recursive=!1;let i=XE(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return lh(i,e).then(s=>lh(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},ch=(t,e,r)=>{let i=XE(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return ch(t,e,ch(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};QE.exports={mkdirpManual:lh,mkdirpManualSync:ch}});var rD=H(($I,tD)=>{var{dirname:eD}=require("path"),{findMade:bT,findMadeSync:wT}=JE(),{mkdirpManual:ST,mkdirpManualSync:AT}=hh(),vT=(t,e)=>(e.recursive=!0,eD(t)===t?e.mkdirAsync(t,e):bT(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return ST(t,e);throw n}))),CT=(t,e)=>{if(e.recursive=!0,eD(t)===t)return e.mkdirSync(t,e);let i=wT(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return AT(t,e);throw n}};tD.exports={mkdirpNative:vT,mkdirpNativeSync:CT}});var oD=H((UI,sD)=>{var iD=require("fs"),RT=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fh=RT.replace(/^v/,"").split("."),nD=+fh[0]>10||+fh[0]==10&&+fh[1]>=12,xT=nD?t=>t.mkdir===iD.mkdir:()=>!1,FT=nD?t=>t.mkdirSync===iD.mkdirSync:()=>!1;sD.exports={useNative:xT,useNativeSync:FT}});var fD=H((GI,hD)=>{var Yi=GE(),Ki=WE(),{mkdirpNative:uD,mkdirpNativeSync:aD}=rD(),{mkdirpManual:lD,mkdirpManualSync:cD}=hh(),{useNative:OT,useNativeSync:TT}=oD(),Vi=(t,e)=>(t=Ki(t),e=Yi(e),OT(e)?uD(t,e):lD(t,e)),kT=(t,e)=>(t=Ki(t),e=Yi(e),TT(e)?aD(t,e):cD(t,e));Vi.sync=kT;Vi.native=(t,e)=>uD(Ki(t),Yi(e));Vi.manual=(t,e)=>lD(Ki(t),Yi(e));Vi.nativeSync=(t,e)=>aD(Ki(t),Yi(e));Vi.manualSync=(t,e)=>cD(Ki(t),Yi(e));hD.exports=Vi});var DD=H((zI,ED)=>{"use strict";var ot=require("fs"),Kr=require("path"),LT=ot.lchown?"lchown":"chown",BT=ot.lchownSync?"lchownSync":"chownSync",dD=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),pD=(t,e,r)=>{try{return ot[BT](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},PT=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IT=dD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,ph=dD?(t,e,r)=>{try{return pD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;PT(t,e,r)}}:(t,e,r)=>pD(t,e,r),NT=process.version,mD=(t,e,r)=>ot.readdir(t,e,r),MT=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(NT)&&(mD=(t,e,r)=>ot.readdir(t,r));var Wo=(t,e,r,i)=>{ot[LT](t,e,r,IT(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},yD=(t,e,r,i,n)=>{if(typeof e=="string")return ot.lstat(Kr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,yD(t,o,r,i,n)});if(e.isDirectory())dh(Kr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Kr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Kr.resolve(t,e.name);Wo(s,r,i,n)}},dh=(t,e,r,i)=>{mD(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Wo(t,e,r,i);let o=s.length,u=null,a=l=>{if(!u){if(l)return i(u=l);if(--o===0)return Wo(t,e,r,i)}};s.forEach(l=>yD(t,l,e,r,a))})},jT=(t,e,r,i)=>{if(typeof e=="string")try{let n=ot.lstatSync(Kr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&gD(Kr.resolve(t,e.name),r,i),ph(Kr.resolve(t,e.name),r,i)},gD=(t,e,r)=>{let i;try{i=MT(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return ph(t,e,r);throw n}return i&&i.length&&i.forEach(n=>jT(t,n,e,r)),ph(t,e,r)};ED.exports=dh;dh.sync=gD});var SD=H((WI,mh)=>{"use strict";var _D=fD(),ut=require("fs"),Yo=require("path"),bD=DD(),pt=Li(),Ko=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(t,e)=>t.get(pt(e)),Hn=(t,e,r)=>t.set(pt(e),r),HT=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vo(t,r&&r.code||"ENOTDIR")),e(r)})};mh.exports=(t,e,r)=>{t=pt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),l=e.preserve,c=e.unlink,h=e.cache,f=pt(e.cwd),p=(y,v)=>{y?r(y):(Hn(h,t,!0),v&&a?bD(v,o,u,F=>p(F)):s?ut.chmod(t,n,r):r())};if(h&&Zo(h,t)===!0)return p();if(t===f)return HT(t,p);if(l)return _D(t,{mode:n}).then(y=>p(null,y),p);let d=pt(Yo.relative(f,t)).split("/");Jo(f,d,n,h,c,f,null,p)};var Jo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),l=pt(Yo.resolve(t+"/"+a));if(Zo(i,l))return Jo(l,e,r,i,n,s,o,u);ut.mkdir(l,r,wD(l,e,r,i,n,s,o,u))},wD=(t,e,r,i,n,s,o,u)=>a=>{a?ut.lstat(t,(l,c)=>{if(l)l.path=l.path&&pt(l.path),u(l);else if(c.isDirectory())Jo(t,e,r,i,n,s,o,u);else if(n)ut.unlink(t,h=>{if(h)return u(h);ut.mkdir(t,r,wD(t,e,r,i,n,s,o,u))});else{if(c.isSymbolicLink())return u(new Ko(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Jo(t,e,r,i,n,s,o,u))},qT=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vo(t,r)}};mh.exports.sync=(t,e)=>{t=pt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,l=e.unlink,c=e.cache,h=pt(e.cwd),f=y=>{Hn(c,t,!0),y&&u&&bD.sync(y,s,o),n&&ut.chmodSync(t,i)};if(c&&Zo(c,t)===!0)return f();if(t===h)return qT(h),f();if(a)return f(_D.sync(t,i));let m=pt(Yo.relative(h,t)).split("/"),d=null;for(let y=m.shift(),v=h;y&&(v+="/"+y);y=m.shift())if(v=pt(Yo.resolve(v)),!Zo(c,v))try{ut.mkdirSync(v,i),d=d||v,Hn(c,v,!0)}catch{let T=ut.lstatSync(v);if(T.isDirectory()){Hn(c,v,!0);continue}else if(l){ut.unlinkSync(v),ut.mkdirSync(v,i),d=d||v,Hn(c,v,!0);continue}else if(T.isSymbolicLink())return new Ko(v,v+"/"+m.join("/"))}return f(d)}});var gh=H((YI,AD)=>{var yh=Object.create(null),{hasOwnProperty:$T}=Object.prototype;AD.exports=t=>($T.call(yh,t)||(yh[t]=t.normalize("NFKD")),yh[t])});var xD=H((KI,RD)=>{var vD=require("assert"),UT=gh(),GT=Ii(),{join:CD}=require("path"),zT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,WT=zT==="win32";RD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=CD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let c=e.get(l);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>t.get(h)),dirs:[...c.dirs].map(h=>t.get(h))}},s=l=>{let{paths:c,dirs:h}=n(l);return c.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>u(l)),!0),u=l=>{if(!i.has(l))return!1;let{paths:c,dirs:h}=e.get(l),f=new Set;return c.forEach(p=>{let m=t.get(p);vD.equal(m[0],l),m.length===1?t.delete(p):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(d=>f.add(d)))}),h.forEach(p=>{let m=t.get(p);vD(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(p):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(l)}),i.delete(l),f.forEach(p=>o(p)),!0};return{check:s,reserve:(l,c)=>{l=WT?["win32 parallelization disabled"]:l.map(f=>UT(GT(CD(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,p)=>f.concat(p)));return e.set(c,{dirs:h,paths:l}),l.forEach(f=>{let p=t.get(f);p?p.push(c):t.set(f,[c])}),h.forEach(f=>{let p=t.get(f);p?p[p.length-1]instanceof Set?p[p.length-1].add(c):p.push(new Set([c])):t.set(f,[new Set([c])])}),o(c)}}}});var TD=H((VI,OD)=>{var YT=process.env.__FAKE_PLATFORM__||process.platform,KT=YT==="win32",VT=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:ZT,O_TRUNC:JT,O_WRONLY:XT,UV_FS_O_FILEMAP:FD=0}=VT.constants,QT=KT&&!!FD,ek=512*1024,tk=FD|JT|ZT|XT;OD.exports=QT?t=>t<ek?tk:"w":()=>"w"});var Ch=H((ZI,zD)=>{"use strict";var rk=require("assert"),ik=Uo(),ue=require("fs"),nk=zi(),Qt=require("path"),$D=SD(),kD=vc(),sk=xD(),ok=Cc(),et=Li(),uk=Ii(),ak=gh(),LD=Symbol("onEntry"),_h=Symbol("checkFs"),BD=Symbol("checkFs2"),eu=Symbol("pruneCache"),bh=Symbol("isReusable"),at=Symbol("makeFs"),wh=Symbol("file"),Sh=Symbol("directory"),tu=Symbol("link"),PD=Symbol("symlink"),ID=Symbol("hardlink"),ND=Symbol("unsupported"),MD=Symbol("checkPath"),Sr=Symbol("mkdir"),Me=Symbol("onError"),Xo=Symbol("pending"),jD=Symbol("pend"),Zi=Symbol("unpend"),Eh=Symbol("ended"),Dh=Symbol("maybeClose"),Ah=Symbol("skip"),qn=Symbol("doChown"),$n=Symbol("uid"),Un=Symbol("gid"),Gn=Symbol("checkedCwd"),UD=require("crypto"),GD=TD(),lk=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zn=lk==="win32",ck=(t,e)=>{if(!zn)return ue.unlink(t,e);let r=t+".DELETE."+UD.randomBytes(16).toString("hex");ue.rename(t,r,i=>{if(i)return e(i);ue.unlink(r,e)})},hk=t=>{if(!zn)return ue.unlinkSync(t);let e=t+".DELETE."+UD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},HD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,qD=t=>ak(uk(et(t))).toLowerCase(),fk=(t,e)=>{e=qD(e);for(let r of t.keys()){let i=qD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},pk=t=>{for(let e of t.keys())t.delete(e)},Wn=class extends ik{constructor(e){if(e||(e={}),e.ondone=r=>{this[Eh]=!0,this[Dh]()},super(e),this[Gn]=!1,this.reservations=sk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[Eh]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||zn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Qt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[LD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Dh](){this[Eh]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[MD](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=et(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),i=r.split("/");if(i.includes("..")||zn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=ok(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Qt.isAbsolute(e.path)?e.absolute=et(Qt.resolve(e.path)):e.absolute=et(Qt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:et(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Qt.win32.parse(e.absolute);e.absolute=r+kD.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+kD.encode(e.path.slice(i.length))}return!0}[LD](e){if(!this[MD](e))return e.resume();switch(rk.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[_h](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[ND](e)}}[Me](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Zi](),r.resume())}[Sr](e,r,i){$D(et(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[qn](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[$n](e){return HD(this.uid,e.uid,this.processUid)}[Un](e){return HD(this.gid,e.gid,this.processGid)}[wh](e,r){let i=e.mode&4095||this.fmode,n=new nk.WriteStream(e.absolute,{flags:GD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&ue.close(n.fd,()=>{}),n.write=()=>!0,this[Me](a,e),r()});let s=1,o=a=>{if(a){n.fd&&ue.close(n.fd,()=>{}),this[Me](a,e),r();return}--s===0&&ue.close(n.fd,l=>{l?this[Me](l,e):this[Zi](),r()})};n.on("finish",a=>{let l=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ue.futimes(c,h,f,p=>p?ue.utimes(l,h,f,m=>o(m&&p)):o())}if(this[qn](e)){s++;let h=this[$n](e),f=this[Un](e);ue.fchown(c,h,f,p=>p?ue.chown(l,h,f,m=>o(m&&p)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[Me](a,e),r()}),e.pipe(u)),u.pipe(n)}[Sh](e,r){let i=e.mode&4095||this.dmode;this[Sr](e.absolute,i,n=>{if(n){this[Me](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Zi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ue.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[qn](e)&&(s++,ue.chown(e.absolute,this[$n](e),this[Un](e),o)),o()})}[ND](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[PD](e,r){this[tu](e,e.linkpath,"symlink",r)}[ID](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[tu](e,i,"link",r)}[jD](){this[Xo]++}[Zi](){this[Xo]--,this[Dh]()}[Ah](e){this[Zi](),e.resume()}[bh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[_h](e){this[jD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[BD](e,i))}[eu](e){e.type==="SymbolicLink"?pk(this.dirCache):e.type!=="Directory"&&fk(this.dirCache,e.absolute)}[BD](e,r){this[eu](e);let i=u=>{this[eu](e),r(u)},n=()=>{this[Sr](this.cwd,this.dmode,u=>{if(u){this[Me](u,e),i();return}this[Gn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=et(Qt.dirname(e.absolute));if(u!==this.cwd)return this[Sr](u,this.dmode,a=>{if(a){this[Me](a,e),i();return}o()})}o()},o=()=>{ue.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Ah](e),i();return}if(u||this[bh](e,a))return this[at](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,c=h=>this[at](h,e,i);return l?ue.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ue.rmdir(e.absolute,l=>this[at](l,e,i))}if(e.absolute===this.cwd)return this[at](null,e,i);ck(e.absolute,l=>this[at](l,e,i))})};this[Gn]?s():n()}[at](e,r,i){if(e){this[Me](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wh](r,i);case"Link":return this[ID](r,i);case"SymbolicLink":return this[PD](r,i);case"Directory":case"GNUDumpDir":return this[Sh](r,i)}}[tu](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Zi](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},vh=class extends Wn{[at](e,r){return super[at](e,r,()=>{})}[_h](e){if(this[eu](e),!this[Gn]){let s=this[Sr](this.cwd,this.dmode);if(s)return this[Me](s,e);this[Gn]=!0}if(e.absolute!==this.cwd){let s=et(Qt.dirname(e.absolute));if(s!==this.cwd){let o=this[Sr](s,this.dmode);if(o)return this[Me](o,e)}}let[r,i]=Qo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ah](e);if(r||this[bh](e,i))return this[at](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[at](u,e)}let[s]=Qo(()=>ue.rmdirSync(e.absolute));this[at](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>hk(e.absolute));this[at](n,e)}[wh](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{ue.closeSync(s)}catch(l){a=l}(u||a)&&this[Me](u||a,e),r()},s;try{s=ue.openSync(e.absolute,GD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[Me](u,e)),e.pipe(o)),o.on("data",u=>{try{ue.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,c=e.mtime;try{ue.futimesSync(s,l,c)}catch(h){try{ue.utimesSync(e.absolute,l,c)}catch{a=h}}}if(this[qn](e)){let l=this[$n](e),c=this[Un](e);try{ue.fchownSync(s,l,c)}catch(h){try{ue.chownSync(e.absolute,l,c)}catch{a=a||h}}}n(a)})}[Sh](e,r){let i=e.mode&4095||this.dmode,n=this[Sr](e.absolute,i);if(n){this[Me](n,e),r();return}if(e.mtime&&!this.noMtime)try{ue.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[qn](e))try{ue.chownSync(e.absolute,this[$n](e),this[Un](e))}catch{}r(),e.resume()}[Sr](e,r){try{return $D.sync(et(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[tu](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Wn.Sync=vh;zD.exports=Wn});var ZD=H((JI,VD)=>{"use strict";var dk=xi(),ru=Ch(),YD=require("fs"),KD=zi(),WD=require("path"),Rh=Ii();VD.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=dk(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&&mk(i,e),i.file&&i.sync?yk(i):i.file?gk(i,r):i.sync?Ek(i):Dk(i)};var mk=(t,e)=>{let r=new Map(e.map(s=>[Rh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||WD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(WD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Rh(s)):s=>n(Rh(s))},yk=t=>{let e=new ru.Sync(t),r=t.file,i=YD.statSync(r),n=t.maxReadSize||16*1024*1024;new KD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},gk=(t,e)=>{let r=new ru(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),YD.stat(n,(a,l)=>{if(a)u(a);else{let c=new KD.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},Ek=t=>new ru.Sync(t),Dk=t=>new ru(t)});var JD=H(ve=>{"use strict";ve.c=ve.create=kE();ve.r=ve.replace=ah();ve.t=ve.list=Go();ve.u=ve.update=qE();ve.x=ve.extract=ZD();ve.Pack=Fo();ve.Unpack=Ch();ve.Parse=Uo();ve.ReadEntry=ho();ve.WriteEntry=Ic();ve.Header=Pi();ve.Pax=po();ve.types=Ec()});var i_=H((rN,r_)=>{function lt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r_.exports=lt;lt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};lt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};lt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};lt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};lt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};lt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};lt.prototype.start=lt.prototype.try;lt.prototype.errors=function(){return this._errors};lt.prototype.attempts=function(){return this._attempts};lt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var n_=H(Vr=>{var Sk=i_();Vr.operation=function(t){var e=Vr.timeouts(t);return new Sk(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Vr.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};Vr.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};Vr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(a){var l=Vr.operation(e),c=Array.prototype.slice.call(arguments,1),h=c.pop();c.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){a.apply(t,c)})}.bind(t,o),t[s].options=e}}});var o_=H((nN,s_)=>{s_.exports=n_()});var a_=H((sN,u_)=>{var Ak=o_();function vk(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Ak.operation(s);function u(c){n(c||new Error("Aborted"))}function a(c,h){if(c.bail){u(c);return}o.retry(c)?s.onRetry&&s.onRetry(c,h):n(o.mainError())}function l(c){var h;try{h=t(u,c)}catch(f){a(f,c);return}Promise.resolve(h).then(i).catch(function(p){a(p,c)})}o.attempt(l)}return new Promise(r)}u_.exports=vk});var jk={};Oh(jk,{default:()=>Mk,transformer:()=>d_});module.exports=__(jk);var h_=ie(require("path")),f_=require("fs-extra");var Si=ie(require("chalk"),1),gy=ie(require("ora"),1),Ey=ie(require("gradient-string"),1);var Tx=ie(ni(),1),zB=require("fs-extra");function Op(t){return typeof t=="undefined"||t===null}function dw(t){return typeof t=="object"&&t!==null}function mw(t){return Array.isArray(t)?t:Op(t)?[]:[t]}function yw(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 gw(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Ew(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Dw=Op,_w=dw,bw=mw,ww=gw,Sw=Ew,Aw=yw,Ae={isNothing:Dw,isObject:_w,toArray:bw,repeat:ww,isNegativeZero:Sw,extend:Aw};function Tp(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
9
+
10
+ `+t.mark.snippet),i+" "+r):i}function un(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Tp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}un.prototype=Object.create(Error.prototype);un.prototype.constructor=un;un.prototype.toString=function(e){return this.name+": "+Tp(this,e)};var je=un;function Ru(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function xu(t,e){return Ae.repeat(" ",e-t.length)+t}function vw(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var u="",a,l,c=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)l=Ru(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),h),u=Ae.repeat(" ",e.indent)+xu((t.line-a+1).toString(),c)+" | "+l.str+`
11
+ `+u;for(l=Ru(t.buffer,i[o],n[o],t.position,h),u+=Ae.repeat(" ",e.indent)+xu((t.line+1).toString(),c)+" | "+l.str+`
12
+ `,u+=Ae.repeat("-",e.indent+c+3+l.pos)+`^
13
+ `,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)l=Ru(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),h),u+=Ae.repeat(" ",e.indent)+xu((t.line+a+1).toString(),c)+" | "+l.str+`
14
+ `;return u.replace(/\n$/,"")}var Cw=vw,Rw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xw=["scalar","sequence","mapping"];function Fw(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Ow(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Rw.indexOf(r)===-1)throw new je('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Fw(e.styleAliases||null),xw.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Fe=Ow;function mp(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function Tw(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Ou(t){return this.extend(t)}Ou.prototype.extend=function(e){var r=[],i=[];if(e instanceof Fe)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new je("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Fe))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new je("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new je("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Fe))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ou.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=mp(n,"implicit"),n.compiledExplicit=mp(n,"explicit"),n.compiledTypeMap=Tw(n.compiledImplicit,n.compiledExplicit),n};var kp=Ou,Lp=new Fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Bp=new Fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Pp=new Fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ip=new kp({explicit:[Lp,Bp,Pp]});function kw(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Lw(){return null}function Bw(t){return t===null}var Np=new Fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:kw,construct:Lw,predicate:Bw,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Pw(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 Iw(t){return t==="true"||t==="True"||t==="TRUE"}function Nw(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Mp=new Fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pw,construct:Iw,predicate:Nw,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 Mw(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function jw(t){return 48<=t&&t<=55}function Hw(t){return 48<=t&&t<=57}function qw(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(!Mw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!jw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Hw(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function $w(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 Uw(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ae.isNegativeZero(t)}var jp=new Fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:qw,construct:$w,predicate:Uw,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"]}}),Gw=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zw(t){return!(t===null||!Gw.test(t)||t[t.length-1]==="_")}function Ww(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 Yw=/^[-+]?[0-9]+e/;function Kw(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ae.isNegativeZero(t))return"-0.0";return r=t.toString(10),Yw.test(r)?r.replace("e",".e"):r}function Vw(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ae.isNegativeZero(t))}var Hp=new Fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:zw,construct:Ww,predicate:Vw,represent:Kw,defaultStyle:"lowercase"}),qp=Ip.extend({implicit:[Np,Mp,jp,Hp]}),$p=qp,Up=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Zw(t){return t===null?!1:Up.exec(t)!==null||Gp.exec(t)!==null}function Jw(t){var e,r,i,n,s,o,u,a=0,l=null,c,h,f;if(e=Up.exec(t),e===null&&(e=Gp.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(c=+e[10],h=+(e[11]||0),l=(c*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,u,a)),l&&f.setTime(f.getTime()-l),f}function Xw(t){return t.toISOString()}var zp=new Fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zw,construct:Jw,instanceOf:Date,represent:Xw});function Qw(t){return t==="<<"||t===null}var Wp=new Fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Qw}),Pu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function eS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Pu;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function tS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Pu,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function rS(t){var e="",r=0,i,n,s=t.length,o=Pu;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function iS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Yp=new Fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eS,construct:tS,predicate:iS,represent:rS}),nS=Object.prototype.hasOwnProperty,sS=Object.prototype.toString;function oS(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,sS.call(n)!=="[object Object]")return!1;for(s in n)if(nS.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 uS(t){return t!==null?t:[]}var Kp=new Fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oS,construct:uS}),aS=Object.prototype.toString;function lS(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],aS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function cS(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Vp=new Fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lS,construct:cS}),hS=Object.prototype.hasOwnProperty;function fS(t){if(t===null)return!0;var e,r=t;for(e in r)if(hS.call(r,e)&&r[e]!==null)return!1;return!0}function pS(t){return t!==null?t:{}}var Zp=new Fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:fS,construct:pS}),Iu=$p.extend({implicit:[zp,Wp],explicit:[Yp,Kp,Vp,Zp]}),tr=Object.prototype.hasOwnProperty,as=1,Jp=2,Xp=3,ls=4,Fu=1,dS=2,yp=3,mS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yS=/[\x85\u2028\u2029]/,gS=/[,\[\]\{\}]/,Qp=/^(?:!|!!|![a-z\-]+!)$/i,ed=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gp(t){return Object.prototype.toString.call(t)}function yt(t){return t===10||t===13}function xr(t){return t===9||t===32}function qe(t){return t===9||t===32||t===10||t===13}function oi(t){return t===44||t===91||t===93||t===123||t===125}function ES(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function DS(t){return t===120?2:t===117?4:t===85?8:0}function _S(t){return 48<=t&&t<=57?t-48:-1}function Ep(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
16
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function bS(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var td=new Array(256),rd=new Array(256);for(Rr=0;Rr<256;Rr++)td[Rr]=Ep(Rr)?1:0,rd[Rr]=Ep(Rr);var Rr;function wS(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Iu,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function id(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Cw(r),new je(e,r)}function X(t,e){throw id(t,e)}function cs(t,e){t.onWarning&&t.onWarning.call(null,id(t,e))}var Dp={YAML:function(e,r,i){var n,s,o;e.version!==null&&X(e,"duplication of %YAML directive"),i.length!==1&&X(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&X(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&X(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&cs(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&X(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Qp.test(n)||X(e,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(e.tagMap,n)&&X(e,'there is a previously declared suffix for "'+n+'" tag handle'),ed.test(s)||X(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{X(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function er(t,e,r,i){var n,s,o,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||X(t,"expected valid JSON character");else mS.test(u)&&X(t,"the stream contains non-printable characters");t.result+=u}}function _p(t,e,r,i){var n,s,o,u;for(Ae.isObject(r)||X(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;o+=1)s=n[o],tr.call(e,s)||(e[s]=r[s],i[s]=!0)}function ui(t,e,r,i,n,s,o,u,a){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&X(t,"nested arrays are not supported inside keys"),typeof n=="object"&&gp(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&gp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)_p(t,e,s[l],r);else _p(t,e,s,r);else!t.json&&!tr.call(r,n)&&tr.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,X(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Nu(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):X(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function we(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;xr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(yt(n))for(Nu(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&cs(t,"deficient indentation"),i}function ps(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||qe(r)))}function Mu(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ae.repeat(`
17
+ `,e-1))}function SS(t,e,r){var i,n,s,o,u,a,l,c,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),qe(p)||oi(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),qe(n)||r&&oi(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),qe(n)||r&&oi(n))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),qe(i))break}else{if(t.position===t.lineStart&&ps(t)||r&&oi(p))break;if(yt(p))if(a=t.line,l=t.lineStart,c=t.lineIndent,we(t,!1,-1),t.lineIndent>=e){u=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=l,t.lineIndent=c;break}}u&&(er(t,s,o,!1),Mu(t,t.line-a),s=o=t.position,u=!1),xr(p)||(o=t.position+1),p=t.input.charCodeAt(++t.position)}return er(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function AS(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(er(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else yt(r)?(er(t,i,n,!0),Mu(t,we(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ps(t)?X(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);X(t,"unexpected end of the stream within a single quoted scalar")}function vS(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return er(t,r,t.position,!0),t.position++,!0;if(u===92){if(er(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),yt(u))we(t,!1,e);else if(u<256&&td[u])t.result+=rd[u],t.position++;else if((o=DS(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=ES(u))>=0?s=(s<<4)+o:X(t,"expected hexadecimal character");t.result+=bS(s),t.position++}else X(t,"unknown escape sequence");r=i=t.position}else yt(u)?(er(t,r,i,!0),Mu(t,we(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ps(t)?X(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}X(t,"unexpected end of the stream within a double quoted scalar")}function CS(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,l,c,h,f,p,m=Object.create(null),d,y,v,F;if(F=t.input.charCodeAt(t.position),F===91)c=93,p=!1,u=[];else if(F===123)c=125,p=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),F=t.input.charCodeAt(++t.position);F!==0;){if(we(t,!0,e),F=t.input.charCodeAt(t.position),F===c)return t.position++,t.tag=o,t.anchor=a,t.kind=p?"mapping":"sequence",t.result=u,!0;r?F===44&&X(t,"expected the node content, but found ','"):X(t,"missed comma between flow collection entries"),y=d=v=null,h=f=!1,F===63&&(l=t.input.charCodeAt(t.position+1),qe(l)&&(h=f=!0,t.position++,we(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,ai(t,e,as,!1,!0),y=t.tag,d=t.result,we(t,!0,e),F=t.input.charCodeAt(t.position),(f||t.line===i)&&F===58&&(h=!0,F=t.input.charCodeAt(++t.position),we(t,!0,e),ai(t,e,as,!1,!0),v=t.result),p?ui(t,u,m,y,d,v,i,n,s):h?u.push(ui(t,null,m,y,d,v,i,n,s)):u.push(d),we(t,!0,e),F=t.input.charCodeAt(t.position),F===44?(r=!0,F=t.input.charCodeAt(++t.position)):r=!1}X(t,"unexpected end of the stream within a flow collection")}function RS(t,e){var r,i,n=Fu,s=!1,o=!1,u=e,a=0,l=!1,c,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Fu===n?n=h===43?yp:dS:X(t,"repeat of a chomping mode identifier");else if((c=_S(h))>=0)c===0?X(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?X(t,"repeat of an indentation width identifier"):(u=e+c-1,o=!0);else break;if(xr(h)){do h=t.input.charCodeAt(++t.position);while(xr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!yt(h)&&h!==0)}for(;h!==0;){for(Nu(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),yt(h)){a++;continue}if(t.lineIndent<u){n===yp?t.result+=Ae.repeat(`
18
+ `,s?1+a:a):n===Fu&&s&&(t.result+=`
19
+ `);break}for(i?xr(h)?(l=!0,t.result+=Ae.repeat(`
20
+ `,s?1+a:a)):l?(l=!1,t.result+=Ae.repeat(`
21
+ `,a+1)):a===0?s&&(t.result+=" "):t.result+=Ae.repeat(`
22
+ `,a):t.result+=Ae.repeat(`
23
+ `,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!yt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);er(t,r,t.position,!1)}return!0}function bp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,X(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!qe(o))));){if(u=!0,t.position++,we(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,ai(t,e,Xp,!1,!0),s.push(t.result),we(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)X(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function xS(t,e,r){var i,n,s,o,u,a,l=t.tag,c=t.anchor,h={},f=Object.create(null),p=null,m=null,d=null,y=!1,v=!1,F;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),F=t.input.charCodeAt(t.position);F!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,X(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(F===63||F===58)&&qe(i))F===63?(y&&(ui(t,h,f,p,m,null,o,u,a),p=m=d=null),v=!0,y=!0,n=!0):y?(y=!1,n=!0):X(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,F=i;else{if(o=t.line,u=t.lineStart,a=t.position,!ai(t,r,Jp,!1,!0))break;if(t.line===s){for(F=t.input.charCodeAt(t.position);xr(F);)F=t.input.charCodeAt(++t.position);if(F===58)F=t.input.charCodeAt(++t.position),qe(F)||X(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ui(t,h,f,p,m,null,o,u,a),p=m=d=null),v=!0,y=!1,n=!1,p=t.tag,m=t.result;else if(v)X(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(v)X(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,u=t.lineStart,a=t.position),ai(t,e,ls,!0,n)&&(y?m=t.result:d=t.result),y||(ui(t,h,f,p,m,d,o,u,a),p=m=d=null),we(t,!0,-1),F=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&F!==0)X(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&ui(t,h,f,p,m,null,o,u,a),v&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=h),v}function FS(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&&X(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)):X(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qe(o);)o===33&&(i?X(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Qp.test(n)||X(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),gS.test(s)&&X(t,"tag suffix cannot contain flow indicator characters")}s&&!ed.test(s)&&X(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{X(t,"tag name is malformed: "+s)}return r?t.tag=s:tr.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:X(t,'undeclared tag handle "'+n+'"'),!0}function OS(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&X(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!qe(r)&&!oi(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&X(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function TS(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!qe(i)&&!oi(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&X(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tr.call(t.anchorMap,r)||X(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],we(t,!0,-1),!0}function ai(t,e,r,i,n){var s,o,u,a=1,l=!1,c=!1,h,f,p,m,d,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=ls===r||Xp===r,i&&we(t,!0,-1)&&(l=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;FS(t)||OS(t);)we(t,!0,-1)?(l=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=l||n),(a===1||ls===r)&&(as===r||Jp===r?d=e:d=e+1,y=t.position-t.lineStart,a===1?u&&(bp(t,y)||xS(t,y,d))||CS(t,d)?c=!0:(o&&RS(t,d)||AS(t,d)||vS(t,d)?c=!0:TS(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&X(t,"alias node should not have any properties")):SS(t,d,as===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(c=u&&bp(t,y))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&X(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(tr.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,p=t.typeMap.multi[t.kind||"fallback"],h=0,f=p.length;h<f;h+=1)if(t.tag.slice(0,p[h].tag.length)===p[h].tag){m=p[h];break}m||X(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&X(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):X(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function kS(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(we(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!qe(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&X(t,"directive name must not be less than one character in length");o!==0;){for(;xr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!yt(o));break}if(yt(o))break;for(r=t.position;o!==0&&!qe(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Nu(t),tr.call(Dp,i)?Dp[i](t,i,n):cs(t,'unknown document directive "'+i+'"')}if(we(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,we(t,!0,-1)):s&&X(t,"directives end mark is expected"),ai(t,t.lineIndent-1,ls,!1,!0),we(t,!0,-1),t.checkLineBreaks&&yS.test(t.input.slice(e,t.position))&&cs(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ps(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,we(t,!0,-1));return}if(t.position<t.length-1)X(t,"end of the stream or a document separator is expected");else return}function nd(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
24
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new wS(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,X(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;)kS(r);return r.documents}function LS(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=nd(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function BS(t,e){var r=nd(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new je("expected a single document in the stream, but found more")}}var PS=LS,IS=BS,sd={loadAll:PS,load:IS},od=Object.prototype.toString,ud=Object.prototype.hasOwnProperty,ju=65279,NS=9,an=10,MS=13,jS=32,HS=33,qS=34,Tu=35,$S=37,US=38,GS=39,zS=42,ad=44,WS=45,hs=58,YS=61,KS=62,VS=63,ZS=64,ld=91,cd=93,JS=96,hd=123,XS=124,fd=125,Oe={};Oe[0]="\\0";Oe[7]="\\a";Oe[8]="\\b";Oe[9]="\\t";Oe[10]="\\n";Oe[11]="\\v";Oe[12]="\\f";Oe[13]="\\r";Oe[27]="\\e";Oe[34]='\\"';Oe[92]="\\\\";Oe[133]="\\N";Oe[160]="\\_";Oe[8232]="\\L";Oe[8233]="\\P";var QS=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],eA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tA(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&ud.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function rA(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new je("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ae.repeat("0",i-e.length)+e}var iA=1,ln=2;function nA(t){this.schema=t.schema||Iu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ae.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=tA(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==='"'?ln:iA,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function wp(t,e){for(var r=Ae.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
25
+ `,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
26
+ `&&(s+=r),s+=o;return s}function ku(t,e){return`
27
+ `+Ae.repeat(" ",t.indent*e)}function sA(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function fs(t){return t===jS||t===NS}function cn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ju||65536<=t&&t<=1114111}function Sp(t){return cn(t)&&t!==ju&&t!==MS&&t!==an}function Ap(t,e,r){var i=Sp(t),n=i&&!fs(t);return(r?i:i&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd)&&t!==Tu&&!(e===hs&&!n)||Sp(e)&&!fs(e)&&t===Tu||e===hs&&n}function oA(t){return cn(t)&&t!==ju&&!fs(t)&&t!==WS&&t!==VS&&t!==hs&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd&&t!==Tu&&t!==US&&t!==zS&&t!==HS&&t!==XS&&t!==YS&&t!==KS&&t!==GS&&t!==qS&&t!==$S&&t!==ZS&&t!==JS}function uA(t){return!fs(t)&&t!==hs}function on(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function pd(t){var e=/^\n* /;return e.test(t)}var dd=1,Lu=2,md=3,yd=4,si=5;function aA(t,e,r,i,n,s,o,u){var a,l=0,c=null,h=!1,f=!1,p=i!==-1,m=-1,d=oA(on(t,0))&&uA(on(t,t.length-1));if(e||o)for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=on(t,a),!cn(l))return si;d=d&&Ap(l,c,u),c=l}else{for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=on(t,a),l===an)h=!0,p&&(f=f||a-m-1>i&&t[m+1]!==" ",m=a);else if(!cn(l))return si;d=d&&Ap(l,c,u),c=l}f=f||p&&a-m-1>i&&t[m+1]!==" "}return!h&&!f?d&&!o&&!n(t)?dd:s===ln?si:Lu:r>9&&pd(t)?si:o?s===ln?si:Lu:f?yd:md}function lA(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===ln?'""':"''";if(!t.noCompatMode&&(QS.indexOf(e)!==-1||eA.test(e)))return t.quotingType===ln?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(l){return sA(t,l)}switch(aA(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case dd:return e;case Lu:return"'"+e.replace(/'/g,"''")+"'";case md:return"|"+vp(e,t.indent)+Cp(wp(e,s));case yd:return">"+vp(e,t.indent)+Cp(wp(cA(e,o),s));case si:return'"'+hA(e)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function vp(t,e){var r=pd(t)?String(e):"",i=t[t.length-1]===`
28
+ `,n=i&&(t[t.length-2]===`
29
+ `||t===`
30
+ `),s=n?"+":i?"":"-";return r+s+`
31
+ `}function Cp(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function cA(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
33
+ `);return l=l!==-1?l:t.length,r.lastIndex=l,Rp(t.slice(0,l),e)}(),n=t[0]===`
34
+ `||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
35
+ `:"")+Rp(a,e),n=s}return i}function Rp(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
36
+ `+t.slice(n,s),n=s+1),o=u;return a+=`
37
+ `,t.length-n>e&&o>n?a+=t.slice(n,o)+`
38
+ `+t.slice(o+1):a+=t.slice(n),a.slice(1)}function hA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=on(t,n),i=Oe[r],!i&&cn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||rA(r);return e}function fA(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(kt(t,e,u,!1,!1)||typeof u=="undefined"&&kt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function xp(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(kt(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&kt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ku(t,e)),t.dump&&an===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function pA(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,l,c;for(o=0,u=s.length;o<u;o+=1)c="",i!==""&&(c+=", "),t.condenseFlow&&(c+='"'),a=s[o],l=r[a],t.replacer&&(l=t.replacer.call(r,a,l)),kt(t,e,a,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),kt(t,e,l,!1,!1)&&(c+=t.dump,i+=c));t.tag=n,t.dump="{"+i+"}"}function dA(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,l,c,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new je("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)f="",(!i||n!=="")&&(f+=ku(t,e)),l=o[u],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),kt(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&an===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=ku(t,e)),kt(t,e+1,c,!0,h)&&(t.dump&&an===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Fp(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,od.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(ud.call(u.represent,a))i=u.represent[a](e,a);else throw new je("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function kt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Fp(t,r,!1)||Fp(t,r,!0);var u=od.call(t.dump),a=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var c=u==="[object Object]"||u==="[object Array]",h,f;if(c&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(c&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(dA(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(pA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?xp(t,e-1,t.dump,n):xp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(fA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&lA(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new je("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function mA(t,e){var r=[],i=[],n,s;for(Bu(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Bu(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Bu(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Bu(t[i[n]],e,r)}function yA(t,e){e=e||{};var r=new nA(e);r.noRefs||mA(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),kt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var gA=yA,EA={dump:gA};function Hu(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var DA=Fe,_A=kp,bA=Ip,wA=qp,SA=$p,AA=Iu,vA=sd.load,CA=sd.loadAll,RA=EA.dump,xA=je,FA={binary:Yp,float:Hp,map:Pp,null:Np,pairs:Vp,set:Zp,timestamp:zp,bool:Mp,int:jp,merge:Wp,omap:Kp,seq:Bp,str:Lp},OA=Hu("safeLoad","load"),TA=Hu("safeLoadAll","loadAll"),kA=Hu("safeDump","dump"),LA={Type:DA,Schema:_A,FAILSAFE_SCHEMA:bA,JSON_SCHEMA:wA,CORE_SCHEMA:SA,DEFAULT_SCHEMA:AA,load:vA,loadAll:CA,dump:RA,YAMLException:xA,types:FA,safeLoad:OA,safeLoadAll:TA,safeDump:kA},qu=LA;var ZB=ie($s(),1),XB=require("fs-extra"),e2=require("fs-extra"),r2=require("chalk"),Sy=require("stream"),Ay=require("util"),o2=require("fs-extra"),c2=require("chalk"),f2=require("fs-extra"),Br=ie(require("path"),1),He=require("fs-extra"),vy=ie(ni(),1),Cy=ie(require("path"),1),Ry=require("fs-extra"),xy=ie(require("chalk"),1),Nt=ie(require("path"),1),Fy=ie(ni(),1),Ze=require("fs-extra"),Oy=ie($s(),1);var yn=ie(require("path"),1),wt=require("fs-extra"),bi=ie(require("path"),1),St=require("fs-extra"),gn=ie(require("path"),1),At=require("fs-extra"),fF=ie(require("chalk"),1),pF=ie(require("gradient-string"),1),dF=ie(ni(),1),mF=ie(require("ora"),1),yF=require("semver"),gF=ie(require("chalk"),1),IR=Object.create,vl=Object.defineProperty,NR=Object.getOwnPropertyDescriptor,MR=Object.getOwnPropertyNames,jR=Object.getPrototypeOf,HR=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')}),qR=(t,e)=>()=>(t&&(e=t(t=0)),e),Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$R=(t,e)=>{for(var r in e)vl(t,r,{get:e[r],enumerable:!0})},UR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of MR(e))!HR.call(t,n)&&n!==r&&vl(t,n,{get:()=>e[n],enumerable:!(i=NR(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?IR(jR(t)):{},UR(e||!t||!t.__esModule?vl(r,"default",{value:t,enumerable:!0}):r,t)),K=qR(()=>{}),GR=Q((t,e)=>{K();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}),zR=Q((t,e)=>{K();var r=GR().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},s=Object.prototype,o=s.hasOwnProperty,u=Object.defineProperty||function(D,A,N){D[A]=N.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function f(D,A,N){return Object.defineProperty(D,A,{value:N,enumerable:!0,configurable:!0,writable:!0}),D[A]}try{f({},"")}catch{f=function(D,A,N){return D[A]=N}}function p(D,A,N,Y){var W=A&&A.prototype instanceof y?A:y,E=Object.create(W.prototype),g=new I(Y||[]);return u(E,"_invoke",{value:M(D,N,g)}),E}function m(D,A,N){try{return{type:"normal",arg:D.call(A,N)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=p;var d={};function y(){}function v(){}function F(){}var T={};f(T,l,function(){return this});var O=Object.getPrototypeOf,x=O&&O(O(j([])));x&&x!==s&&o.call(x,l)&&(T=x);var B=F.prototype=y.prototype=Object.create(T);function b(D){["next","throw","return"].forEach(function(A){f(D,A,function(N){return this._invoke(A,N)})})}function S(D,A){function N(W,E,g,_){var P=m(D[W],D,E);if(P.type!=="throw"){var C=P.arg,$=C.value;return $&&r($)=="object"&&o.call($,"__await")?A.resolve($.__await).then(function(q){N("next",q,g,_)},function(q){N("throw",q,g,_)}):A.resolve($).then(function(q){C.value=q,g(C)},function(q){return N("throw",q,g,_)})}_(P.arg)}var Y;u(this,"_invoke",{value:function(W,E){function g(){return new A(function(_,P){N(W,E,_,P)})}return Y=Y?Y.then(g,g):g()}})}function M(D,A,N){var Y="suspendedStart";return function(W,E){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(W==="throw")throw E;return R()}for(N.method=W,N.arg=E;;){var g=N.delegate;if(g){var _=U(g,N);if(_){if(_===d)continue;return _}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(Y==="suspendedStart")throw Y="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);Y="executing";var P=m(D,A,N);if(P.type==="normal"){if(Y=N.done?"completed":"suspendedYield",P.arg===d)continue;return{value:P.arg,done:N.done}}P.type==="throw"&&(Y="completed",N.method="throw",N.arg=P.arg)}}}function U(D,A){var N=A.method,Y=D.iterator[N];if(Y===void 0)return A.delegate=null,N==="throw"&&D.iterator.return&&(A.method="return",A.arg=void 0,U(D,A),A.method==="throw")||N!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+N+"' method")),d;var W=m(Y,D.iterator,A.arg);if(W.type==="throw")return A.method="throw",A.arg=W.arg,A.delegate=null,d;var E=W.arg;return E?E.done?(A[D.resultName]=E.value,A.next=D.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,d):E:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,d)}function L(D){var A={tryLoc:D[0]};1 in D&&(A.catchLoc=D[1]),2 in D&&(A.finallyLoc=D[2],A.afterLoc=D[3]),this.tryEntries.push(A)}function k(D){var A=D.completion||{};A.type="normal",delete A.arg,D.completion=A}function I(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(L,this),this.reset(!0)}function j(D){if(D){var A=D[l];if(A)return A.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var N=-1,Y=function W(){for(;++N<D.length;)if(o.call(D,N))return W.value=D[N],W.done=!1,W;return W.value=void 0,W.done=!0,W};return Y.next=Y}}return{next:R}}function R(){return{value:void 0,done:!0}}return v.prototype=F,u(B,"constructor",{value:F,configurable:!0}),u(F,"constructor",{value:v,configurable:!0}),v.displayName=f(F,h,"GeneratorFunction"),n.isGeneratorFunction=function(D){var A=typeof D=="function"&&D.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},n.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,f(D,h,"GeneratorFunction")),D.prototype=Object.create(B),D},n.awrap=function(D){return{__await:D}},b(S.prototype),f(S.prototype,c,function(){return this}),n.AsyncIterator=S,n.async=function(D,A,N,Y,W){W===void 0&&(W=Promise);var E=new S(p(D,A,N,Y),W);return n.isGeneratorFunction(A)?E:E.next().then(function(g){return g.done?g.value:E.next()})},b(B),f(B,h,"Generator"),f(B,l,function(){return this}),f(B,"toString",function(){return"[object Generator]"}),n.keys=function(D){var A=Object(D),N=[];for(var Y in A)N.push(Y);return N.reverse(),function W(){for(;N.length;){var E=N.pop();if(E in A)return W.value=E,W.done=!1,W}return W.done=!0,W}},n.values=j,I.prototype={constructor:I,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!D)for(var A in this)A.charAt(0)==="t"&&o.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},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 A=this;function N(P,C){return E.type="throw",E.arg=D,A.next=P,C&&(A.method="next",A.arg=void 0),!!C}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var W=this.tryEntries[Y],E=W.completion;if(W.tryLoc==="root")return N("end");if(W.tryLoc<=this.prev){var g=o.call(W,"catchLoc"),_=o.call(W,"finallyLoc");if(g&&_){if(this.prev<W.catchLoc)return N(W.catchLoc,!0);if(this.prev<W.finallyLoc)return N(W.finallyLoc)}else if(g){if(this.prev<W.catchLoc)return N(W.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return N(W.finallyLoc)}}}},abrupt:function(D,A){for(var N=this.tryEntries.length-1;N>=0;--N){var Y=this.tryEntries[N];if(Y.tryLoc<=this.prev&&o.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var W=Y;break}}W&&(D==="break"||D==="continue")&&W.tryLoc<=A&&A<=W.finallyLoc&&(W=null);var E=W?W.completion:{};return E.type=D,E.arg=A,W?(this.method="next",this.next=W.finallyLoc,d):this.complete(E)},complete:function(D,A){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"&&A&&(this.next=A),d},finish:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===D)return this.complete(N.completion,N.afterLoc),k(N),d}},catch:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===D){var Y=N.completion;if(Y.type==="throw"){var W=Y.arg;k(N)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(D,A,N){return this.delegate={iterator:j(D),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=void 0),d}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),WR=Q((t,e)=>{K();var r=zR()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),YR=Q((t,e)=>{"use strict";K();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),KR=Q((t,e)=>{"use strict";K();var r=YR(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,u=()=>{o--,s.length>0&&s.shift()()},a=(h,f,...p)=>{o++;let m=r(h,...p);f(m),m.then(u,u)},l=(h,f,...p)=>{o<n?a(h,f,...p):s.push(a.bind(null,h,f,...p))},c=(h,...f)=>new Promise(p=>l(h,p,...f));return Object.defineProperties(c,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),c};e.exports=i,e.exports.default=i}),VR=Q((t,e)=>{"use strict";K();var r=KR(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,a)=>a(await u),s=async u=>{let a=await Promise.all(u);if(a[1]===!0)throw new i(a[0]);return!1},o=async(u,a,l)=>{l={concurrency:1/0,preserveOrder:!0,...l};let c=r(l.concurrency),h=[...u].map(p=>[p,c(n,p,a)]),f=r(l.preserveOrder?1:1/0);try{await Promise.all(h.map(p=>f(s,p)))}catch(p){if(p instanceof i)return p.value;throw p}};e.exports=o,e.exports.default=o}),ZR=Q((t,e)=>{"use strict";K();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=VR(),o=n(i.stat),u=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function l({type:h}){if(!(h in a))throw new Error(`Invalid type specified: ${h}`)}var c=(h,f)=>h===void 0||f[a[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},l(f);let p=f.allowSymlinks?o:u;return s(h,async m=>{try{let d=await p(r.resolve(f.cwd,m));return c(f.type,d)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},l(f);let p=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let d=p(r.resolve(f.cwd,m));if(c(f.type,d))return m}catch{}}}),JR=Q((t,e)=>{"use strict";K();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}}}),XR=Q((t,e)=>{"use strict";K();var r=te("path"),i=ZR(),n=JR(),s=Symbol("findUp.stop");e.exports=async(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=async f=>{if(typeof o!="function")return i(c,f);let p=await o(f.cwd);return typeof p=="string"?i([p],f):p};for(;;){let f=await h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.sync=(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(c,f);let p=o(f.cwd);return typeof p=="string"?i.sync([p],f):p};for(;;){let f=h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),En=Q((t,e)=>{"use strict";K();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Cl=Q((t,e)=>{"use strict";K();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),p=Symbol("flush"),m=Symbol("flushChunk"),d=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),T=Symbol("resume"),O=Symbol("buffer"),x=Symbol("pipes"),B=Symbol("bufferLength"),b=Symbol("bufferPush"),S=Symbol("bufferShift"),M=Symbol("objectMode"),U=Symbol("destroyed"),L=Symbol("emitData"),k=Symbol("emitEnd"),I=Symbol("emitEnd2"),j=Symbol("async"),R=P=>Promise.resolve().then(P),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",A=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),N=D&&Symbol.iterator||Symbol("iterator not implemented"),Y=P=>P==="end"||P==="finish"||P==="prefinish",W=P=>P instanceof ArrayBuffer||typeof P=="object"&&P.constructor&&P.constructor.name==="ArrayBuffer"&&P.byteLength>=0,E=P=>!Buffer.isBuffer(P)&&ArrayBuffer.isView(P),g=class{constructor(P,C,$){this.src=P,this.dest=C,this.opts=$,this.ondrain=()=>P[T](),C.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},_=class extends g{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(P,C,$){super(P,C,$),this.proxyErrors=q=>C.emit("error",q),P.on("error",this.proxyErrors)}};e.exports=class ny extends n{constructor(C){super(),this[v]=!1,this[F]=!1,this[x]=[],this[O]=[],this[M]=C&&C.objectMode||!1,this[M]?this[d]=null:this[d]=C&&C.encoding||null,this[d]==="buffer"&&(this[d]=null),this[j]=C&&!!C.async||!1,this[y]=this[d]?new s(this[d]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[B]=0,this[U]=!1,C&&C.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[O]}),C&&C.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[x]})}get bufferLength(){return this[B]}get encoding(){return this[d]}set encoding(C){if(this[M])throw new Error("cannot set encoding in objectMode");if(this[d]&&C!==this[d]&&(this[y]&&this[y].lastNeed||this[B]))throw new Error("cannot change encoding");this[d]!==C&&(this[y]=C?new s(C):null,this[O].length&&(this[O]=this[O].map($=>this[y].write($)))),this[d]=C}setEncoding(C){this.encoding=C}get objectMode(){return this[M]}set objectMode(C){this[M]=this[M]||!!C}get async(){return this[j]}set async(C){this[j]=this[j]||!!C}write(C,$,q){if(this[o])throw new Error("write after end");if(this[U])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof $=="function"&&(q=$,$="utf8"),$||($="utf8");let Z=this[j]?R:G=>G();return!this[M]&&!Buffer.isBuffer(C)&&(E(C)?C=Buffer.from(C.buffer,C.byteOffset,C.byteLength):W(C)?C=Buffer.from(C):typeof C!="string"&&(this.objectMode=!0)),this[M]?(this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[b](C),this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing):C.length?(typeof C=="string"&&!($===this[d]&&!this[y].lastNeed)&&(C=Buffer.from(C,$)),Buffer.isBuffer(C)&&this[d]&&(C=this[y].write(C)),this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[b](C),this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(C){if(this[U])return null;if(this[B]===0||C===0||C>this[B])return this[u](),null;this[M]&&(C=null),this[O].length>1&&!this[M]&&(this.encoding?this[O]=[this[O].join("")]:this[O]=[Buffer.concat(this[O],this[B])]);let $=this[f](C||null,this[O][0]);return this[u](),$}[f](C,$){return C===$.length||C===null?this[S]():(this[O][0]=$.slice(C),$=$.slice(0,C),this[B]-=C),this.emit("data",$),!this[O].length&&!this[o]&&this.emit("drain"),$}end(C,$,q){return typeof C=="function"&&(q=C,C=null),typeof $=="function"&&(q=$,$="utf8"),C&&this.write(C,$),q&&this.once("end",q),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[T](){this[U]||(this[F]=!1,this[v]=!0,this.emit("resume"),this[O].length?this[p]():this[o]?this[u]():this.emit("drain"))}resume(){return this[T]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[U]}get flowing(){return this[v]}get paused(){return this[F]}[b](C){this[M]?this[B]+=1:this[B]+=C.length,this[O].push(C)}[S](){return this[O].length&&(this[M]?this[B]-=1:this[B]-=this[O][0].length),this[O].shift()}[p](C){do;while(this[m](this[S]()));!C&&!this[O].length&&!this[o]&&this.emit("drain")}[m](C){return C?(this.emit("data",C),this.flowing):!1}pipe(C,$){if(this[U])return;let q=this[a];return $=$||{},C===r.stdout||C===r.stderr?$.end=!1:$.end=$.end!==!1,$.proxyErrors=!!$.proxyErrors,q?$.end&&C.end():(this[x].push($.proxyErrors?new _(this,C,$):new g(this,C,$)),this[j]?R(()=>this[T]()):this[T]()),C}unpipe(C){let $=this[x].find(q=>q.dest===C);$&&(this[x].splice(this[x].indexOf($),1),$.unpipe())}addListener(C,$){return this.on(C,$)}on(C,$){let q=super.on(C,$);return C==="data"&&!this[x].length&&!this.flowing?this[T]():C==="readable"&&this[B]!==0?super.emit("readable"):Y(C)&&this[a]?(super.emit(C),this.removeAllListeners(C)):C==="error"&&this[c]&&(this[j]?R(()=>$.call(this,this[c])):$.call(this,this[c])),q}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[U]&&this[O].length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(C,$,...q){if(C!=="error"&&C!=="close"&&C!==U&&this[U])return;if(C==="data")return $?this[j]?R(()=>this[L]($)):this[L]($):!1;if(C==="end")return this[k]();if(C==="close"){if(this[h]=!0,!this[a]&&!this[U])return;let G=super.emit("close");return this.removeAllListeners("close"),G}else if(C==="error"){this[c]=$;let G=super.emit("error",$);return this[u](),G}else if(C==="resume"){let G=super.emit("resume");return this[u](),G}else if(C==="finish"||C==="prefinish"){let G=super.emit(C);return this.removeAllListeners(C),G}let Z=super.emit(C,$,...q);return this[u](),Z}[L](C){for(let q of this[x])q.dest.write(C)===!1&&this.pause();let $=super.emit("data",C);return this[u](),$}[k](){this[a]||(this[a]=!0,this.readable=!1,this[j]?R(()=>this[I]()):this[I]())}[I](){if(this[y]){let $=this[y].end();if($){for(let q of this[x])q.dest.write($);super.emit("data",$)}}for(let $ of this[x])$.end();let C=super.emit("end");return this.removeAllListeners("end"),C}collect(){let C=[];this[M]||(C.dataLength=0);let $=this.promise();return this.on("data",q=>{C.push(q),this[M]||(C.dataLength+=q.length)}),$.then(()=>C)}concat(){return this[M]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(C=>this[M]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?C.join(""):Buffer.concat(C,C.dataLength))}promise(){return new Promise((C,$)=>{this.on(U,()=>$(new Error("stream destroyed"))),this.on("error",q=>$(q)),this.on("end",()=>C())})}[A](){return{next:()=>{let C=this.read();if(C!==null)return Promise.resolve({done:!1,value:C});if(this[o])return Promise.resolve({done:!0});let $=null,q=null,Z=re=>{this.removeListener("data",G),this.removeListener("end",ee),q(re)},G=re=>{this.removeListener("error",Z),this.removeListener("end",ee),this.pause(),$({value:re,done:!!this[o]})},ee=()=>{this.removeListener("error",Z),this.removeListener("data",G),$({done:!0})},z=()=>Z(new Error("stream destroyed"));return new Promise((re,le)=>{q=le,$=re,this.once(U,z),this.once("error",Z),this.once("end",ee),this.once("data",G)})}}}[N](){return{next:()=>{let C=this.read();return{value:C,done:C===null}}}}destroy(C){return this[U]?(C?this.emit("error",C):this.emit(U),this):(this[U]=!0,this[O].length=0,this[B]=0,typeof this.close=="function"&&!this[h]&&this.close(),C?this.emit("error",C):this.emit(U),this)}static isStream(C){return!!C&&(C instanceof ny||C instanceof n||C instanceof i&&(typeof C.pipe=="function"||typeof C.write=="function"&&typeof C.end=="function"))}}}),QR=Q((t,e)=>{K();var r=te("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),sy=Q((t,e)=>{"use strict";K();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),p=Symbol("flush"),m=Symbol("flushChunk"),d=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),T=Symbol("resume"),O=Symbol("bufferLength"),x=Symbol("bufferPush"),B=Symbol("bufferShift"),b=Symbol("objectMode"),S=Symbol("destroyed"),M=Symbol("emitData"),U=Symbol("emitEnd"),L=Symbol("emitEnd2"),k=Symbol("async"),I=g=>Promise.resolve().then(g),j=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=j&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),D=j&&Symbol.iterator||Symbol("iterator not implemented"),A=g=>g==="end"||g==="finish"||g==="prefinish",N=g=>g instanceof ArrayBuffer||typeof g=="object"&&g.constructor&&g.constructor.name==="ArrayBuffer"&&g.byteLength>=0,Y=g=>!Buffer.isBuffer(g)&&ArrayBuffer.isView(g),W=class{constructor(g,_,P){this.src=g,this.dest=_,this.opts=P,this.ondrain=()=>g[T](),_.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends W{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(g,_,P){super(g,_,P),this.proxyErrors=C=>_.emit("error",C),g.on("error",this.proxyErrors)}};e.exports=class oy extends n{constructor(_){super(),this[v]=!1,this[F]=!1,this.pipes=[],this.buffer=[],this[b]=_&&_.objectMode||!1,this[b]?this[d]=null:this[d]=_&&_.encoding||null,this[d]==="buffer"&&(this[d]=null),this[k]=_&&!!_.async||!1,this[y]=this[d]?new s(this[d]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[O]=0,this[S]=!1}get bufferLength(){return this[O]}get encoding(){return this[d]}set encoding(_){if(this[b])throw new Error("cannot set encoding in objectMode");if(this[d]&&_!==this[d]&&(this[y]&&this[y].lastNeed||this[O]))throw new Error("cannot change encoding");this[d]!==_&&(this[y]=_?new s(_):null,this.buffer.length&&(this.buffer=this.buffer.map(P=>this[y].write(P)))),this[d]=_}setEncoding(_){this.encoding=_}get objectMode(){return this[b]}set objectMode(_){this[b]=this[b]||!!_}get async(){return this[k]}set async(_){this[k]=this[k]||!!_}write(_,P,C){if(this[o])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof P=="function"&&(C=P,P="utf8"),P||(P="utf8");let $=this[k]?I:q=>q();return!this[b]&&!Buffer.isBuffer(_)&&(Y(_)?_=Buffer.from(_.buffer,_.byteOffset,_.byteLength):N(_)?_=Buffer.from(_):typeof _!="string"&&(this.objectMode=!0)),this[b]?(this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",_):this[x](_),this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing):_.length?(typeof _=="string"&&!(P===this[d]&&!this[y].lastNeed)&&(_=Buffer.from(_,P)),Buffer.isBuffer(_)&&this[d]&&(_=this[y].write(_)),this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",_):this[x](_),this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing):(this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing)}read(_){if(this[S])return null;if(this[O]===0||_===0||_>this[O])return this[u](),null;this[b]&&(_=null),this.buffer.length>1&&!this[b]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[O])]);let P=this[f](_||null,this.buffer[0]);return this[u](),P}[f](_,P){return _===P.length||_===null?this[B]():(this.buffer[0]=P.slice(_),P=P.slice(0,_),this[O]-=_),this.emit("data",P),!this.buffer.length&&!this[o]&&this.emit("drain"),P}end(_,P,C){return typeof _=="function"&&(C=_,_=null),typeof P=="function"&&(C=P,P="utf8"),_&&this.write(_,P),C&&this.once("end",C),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[T](){this[S]||(this[F]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[p]():this[o]?this[u]():this.emit("drain"))}resume(){return this[T]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[S]}get flowing(){return this[v]}get paused(){return this[F]}[x](_){this[b]?this[O]+=1:this[O]+=_.length,this.buffer.push(_)}[B](){return this.buffer.length&&(this[b]?this[O]-=1:this[O]-=this.buffer[0].length),this.buffer.shift()}[p](_){do;while(this[m](this[B]()));!_&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](_){return _?(this.emit("data",_),this.flowing):!1}pipe(_,P){if(this[S])return;let C=this[a];return P=P||{},_===r.stdout||_===r.stderr?P.end=!1:P.end=P.end!==!1,P.proxyErrors=!!P.proxyErrors,C?P.end&&_.end():(this.pipes.push(P.proxyErrors?new E(this,_,P):new W(this,_,P)),this[k]?I(()=>this[T]()):this[T]()),_}unpipe(_){let P=this.pipes.find(C=>C.dest===_);P&&(this.pipes.splice(this.pipes.indexOf(P),1),P.unpipe())}addListener(_,P){return this.on(_,P)}on(_,P){let C=super.on(_,P);return _==="data"&&!this.pipes.length&&!this.flowing?this[T]():_==="readable"&&this[O]!==0?super.emit("readable"):A(_)&&this[a]?(super.emit(_),this.removeAllListeners(_)):_==="error"&&this[c]&&(this[k]?I(()=>P.call(this,this[c])):P.call(this,this[c])),C}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[S]&&this.buffer.length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(_,P,...C){if(_!=="error"&&_!=="close"&&_!==S&&this[S])return;if(_==="data")return P?this[k]?I(()=>this[M](P)):this[M](P):!1;if(_==="end")return this[U]();if(_==="close"){if(this[h]=!0,!this[a]&&!this[S])return;let q=super.emit("close");return this.removeAllListeners("close"),q}else if(_==="error"){this[c]=P;let q=super.emit("error",P);return this[u](),q}else if(_==="resume"){let q=super.emit("resume");return this[u](),q}else if(_==="finish"||_==="prefinish"){let q=super.emit(_);return this.removeAllListeners(_),q}let $=super.emit(_,P,...C);return this[u](),$}[M](_){for(let C of this.pipes)C.dest.write(_)===!1&&this.pause();let P=super.emit("data",_);return this[u](),P}[U](){this[a]||(this[a]=!0,this.readable=!1,this[k]?I(()=>this[L]()):this[L]())}[L](){if(this[y]){let P=this[y].end();if(P){for(let C of this.pipes)C.dest.write(P);super.emit("data",P)}}for(let P of this.pipes)P.end();let _=super.emit("end");return this.removeAllListeners("end"),_}collect(){let _=[];this[b]||(_.dataLength=0);let P=this.promise();return this.on("data",C=>{_.push(C),this[b]||(_.dataLength+=C.length)}),P.then(()=>_)}concat(){return this[b]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(_=>this[b]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?_.join(""):Buffer.concat(_,_.dataLength))}promise(){return new Promise((_,P)=>{this.on(S,()=>P(new Error("stream destroyed"))),this.on("error",C=>P(C)),this.on("end",()=>_())})}[R](){return{next:()=>{let _=this.read();if(_!==null)return Promise.resolve({done:!1,value:_});if(this[o])return Promise.resolve({done:!0});let P=null,C=null,$=ee=>{this.removeListener("data",q),this.removeListener("end",Z),C(ee)},q=ee=>{this.removeListener("error",$),this.removeListener("end",Z),this.pause(),P({value:ee,done:!!this[o]})},Z=()=>{this.removeListener("error",$),this.removeListener("data",q),P({done:!0})},G=()=>$(new Error("stream destroyed"));return new Promise((ee,z)=>{C=z,P=ee,this.once(S,G),this.once("error",$),this.once("end",Z),this.once("data",q)})}}}[D](){return{next:()=>{let _=this.read();return{value:_,done:_===null}}}}destroy(_){return this[S]?(_?this.emit("error",_):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[O]=0,typeof this.close=="function"&&!this[h]&&this.close(),_?this.emit("error",_):this.emit(S),this)}static isStream(_){return!!_&&(_ instanceof oy||_ instanceof n||_ instanceof i&&(typeof _.pipe=="function"||typeof _.write=="function"&&typeof _.end=="function"))}}}),uy=Q(t=>{"use strict";K();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=QR(),s=sy(),o=r.concat,u=Symbol("_superWrite"),a=class extends Error{constructor(A){super("zlib: "+A.message),this.code=A.code,this.errno=A.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+A.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},l=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),p=Symbol("handle"),m=Symbol("onError"),d=Symbol("sawError"),y=Symbol("level"),v=Symbol("strategy"),F=Symbol("ended"),T=Symbol("_defaultFullFlush"),O=class extends s{constructor(A,N){if(!A||typeof A!="object")throw new TypeError("invalid options for ZlibBase constructor");super(A),this[d]=!1,this[F]=!1,this[l]=A,this[c]=A.flush,this[h]=A.finishFlush;try{this[p]=new i[N](A)}catch(Y){throw new a(Y)}this[m]=Y=>{this[d]||(this[d]=!0,this.close(),this.emit("error",Y))},this[p].on("error",Y=>this[m](new a(Y))),this.once("end",()=>this.close)}close(){this[p]&&(this[p].close(),this[p]=null,this.emit("close"))}reset(){if(!this[d])return e(this[p],"zlib binding closed"),this[p].reset()}flush(A){this.ended||(typeof A!="number"&&(A=this[f]),this.write(Object.assign(r.alloc(0),{[c]:A})))}end(A,N,Y){return A&&this.write(A,N),this.flush(this[h]),this[F]=!0,super.end(null,null,Y)}get ended(){return this[F]}write(A,N,Y){if(typeof N=="function"&&(Y=N,N="utf8"),typeof A=="string"&&(A=r.from(A,N)),this[d])return;e(this[p],"zlib binding closed");let W=this[p]._handle,E=W.close;W.close=()=>{};let g=this[p].close;this[p].close=()=>{},r.concat=C=>C;let _;try{let C=typeof A[c]=="number"?A[c]:this[c];_=this[p]._processChunk(A,C),r.concat=o}catch(C){r.concat=o,this[m](new a(C))}finally{this[p]&&(this[p]._handle=W,W.close=E,this[p].close=g,this[p].removeAllListeners("error"))}this[p]&&this[p].on("error",C=>this[m](new a(C)));let P;if(_)if(Array.isArray(_)&&_.length>0){P=this[u](r.from(_[0]));for(let C=1;C<_.length;C++)P=this[u](_[C])}else P=this[u](r.from(_));return Y&&Y(),P}[u](A){return super.write(A)}},x=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.Z_NO_FLUSH,A.finishFlush=A.finishFlush||n.Z_FINISH,super(A,N),this[f]=n.Z_FULL_FLUSH,this[y]=A.level,this[v]=A.strategy}params(A,N){if(!this[d]){if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[y]!==A||this[v]!==N){this.flush(n.Z_SYNC_FLUSH),e(this[p],"zlib binding closed");let Y=this[p].flush;this[p].flush=(W,E)=>{this.flush(W),E()};try{this[p].params(A,N)}finally{this[p].flush=Y}this[p]&&(this[y]=A,this[v]=N)}}}},B=class extends x{constructor(A){super(A,"Deflate")}},b=class extends x{constructor(A){super(A,"Inflate")}},S=Symbol("_portable"),M=class extends x{constructor(A){super(A,"Gzip"),this[S]=A&&!!A.portable}[u](A){return this[S]?(this[S]=!1,A[9]=255,super[u](A)):super[u](A)}},U=class extends x{constructor(A){super(A,"Gunzip")}},L=class extends x{constructor(A){super(A,"DeflateRaw")}},k=class extends x{constructor(A){super(A,"InflateRaw")}},I=class extends x{constructor(A){super(A,"Unzip")}},j=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.BROTLI_OPERATION_PROCESS,A.finishFlush=A.finishFlush||n.BROTLI_OPERATION_FINISH,super(A,N),this[f]=n.BROTLI_OPERATION_FLUSH}},R=class extends j{constructor(A){super(A,"BrotliCompress")}},D=class extends j{constructor(A){super(A,"BrotliDecompress")}};t.Deflate=B,t.Inflate=b,t.Gzip=M,t.Gunzip=U,t.DeflateRaw=L,t.InflateRaw=k,t.Unzip=I,typeof i.BrotliCompress=="function"?(t.BrotliCompress=R,t.BrotliDecompress=D):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Dn=Q((t,e)=>{K();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Rl=Q((t,e)=>{"use strict";K();var r=Cl(),i=Dn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,u){switch(super(),this.pause(),this.extended=o,this.globalExtended=u,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),u&&this[n](u,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let u=this.remain,a=this.blockRemain;return this.remain=Math.max(0,u-o),this.blockRemain=Math.max(0,a-o),this.ignore?!0:u>=o?super.write(s):super.write(s.slice(0,u))}[n](s,o){for(let u in s)s[u]!==null&&s[u]!==void 0&&!(o&&u==="path")&&(this[u]=u==="path"||u==="linkpath"?i(s[u]):s[u])}}}),ay=Q(t=>{"use strict";K(),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]]))}),ex=Q((t,e)=>{"use strict";K();var r=(c,h)=>{if(Number.isSafeInteger(c))c<0?n(c,h):i(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(c,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=c&255,c=Math.floor(c/256)},n=(c,h)=>{h[0]=255;var f=!1;c=c*-1;for(var p=h.length;p>1;p--){var m=c&255;c=Math.floor(c/256),f?h[p-1]=a(m):m===0?h[p-1]=0:(f=!0,h[p-1]=l(m))}},s=c=>{let h=c[0],f=h===128?u(c.slice(1,c.length)):h===255?o(c):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=c=>{for(var h=c.length,f=0,p=!1,m=h-1;m>-1;m--){var d=c[m],y;p?y=a(d):d===0?y=d:(p=!0,y=l(d)),y!==0&&(f-=y*Math.pow(256,h-m-1))}return f},u=c=>{for(var h=c.length,f=0,p=h-1;p>-1;p--){var m=c[p];m!==0&&(f+=m*Math.pow(256,h-p-1))}return f},a=c=>(255^c)&255,l=c=>(255^c)+1&255;e.exports={encode:r,parse:s}}),_n=Q((t,e)=>{"use strict";K();var r=ay(),i=te("path").posix,n=ex(),s=Symbol("slurp"),o=Symbol("type"),u=class{constructor(b,S,M,U){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(b)?this.decode(b,S||0,M,U):b&&this.set(b)}decode(b,S,M,U){if(S||(S=0),!b||!(b.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=l(b,S,100),this.mode=f(b,S+100,8),this.uid=f(b,S+108,8),this.gid=f(b,S+116,8),this.size=f(b,S+124,12),this.mtime=c(b,S+136,12),this.cksum=f(b,S+148,12),this[s](M),this[s](U,!0),this[o]=l(b,S+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=l(b,S+157,100),b.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=l(b,S+265,32),this.gname=l(b,S+297,32),this.devmaj=f(b,S+329,8),this.devmin=f(b,S+337,8),b[S+475]!==0){let k=l(b,S+345,155);this.path=k+"/"+this.path}else{let k=l(b,S+345,130);k&&(this.path=k+"/"+this.path),this.atime=c(b,S+476,12),this.ctime=c(b,S+488,12)}let L=8*32;for(let k=S;k<S+148;k++)L+=b[k];for(let k=S+156;k<S+512;k++)L+=b[k];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[s](b,S){for(let M in b)b[M]!==null&&b[M]!==void 0&&!(S&&M==="path")&&(this[M]=b[M])}encode(b,S){if(b||(b=this.block=Buffer.alloc(512),S=0),S||(S=0),!(b.length>=S+512))throw new Error("need 512 bytes for header");let M=this.ctime||this.atime?130:155,U=a(this.path||"",M),L=U[0],k=U[1];this.needPax=U[2],this.needPax=B(b,S,100,L)||this.needPax,this.needPax=y(b,S+100,8,this.mode)||this.needPax,this.needPax=y(b,S+108,8,this.uid)||this.needPax,this.needPax=y(b,S+116,8,this.gid)||this.needPax,this.needPax=y(b,S+124,12,this.size)||this.needPax,this.needPax=O(b,S+136,12,this.mtime)||this.needPax,b[S+156]=this[o].charCodeAt(0),this.needPax=B(b,S+157,100,this.linkpath)||this.needPax,b.write("ustar\x0000",S+257,8),this.needPax=B(b,S+265,32,this.uname)||this.needPax,this.needPax=B(b,S+297,32,this.gname)||this.needPax,this.needPax=y(b,S+329,8,this.devmaj)||this.needPax,this.needPax=y(b,S+337,8,this.devmin)||this.needPax,this.needPax=B(b,S+345,M,k)||this.needPax,b[S+475]!==0?this.needPax=B(b,S+345,155,k)||this.needPax:(this.needPax=B(b,S+345,130,k)||this.needPax,this.needPax=O(b,S+476,12,this.atime)||this.needPax,this.needPax=O(b,S+488,12,this.ctime)||this.needPax);let I=8*32;for(let j=S;j<S+148;j++)I+=b[j];for(let j=S+156;j<S+512;j++)I+=b[j];return this.cksum=I,y(b,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(b){for(let S in b)b[S]!==null&&b[S]!==void 0&&(this[S]=b[S])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(b){r.code.has(b)?this[o]=r.code.get(b):this[o]=b}},a=(b,S)=>{let M=b,U="",L,k=i.parse(b).root||".";if(Buffer.byteLength(M)<100)L=[M,U,!1];else{U=i.dirname(M),M=i.basename(M);do Buffer.byteLength(M)<=100&&Buffer.byteLength(U)<=S?L=[M,U,!1]:Buffer.byteLength(M)>100&&Buffer.byteLength(U)<=S?L=[M.slice(0,100-1),U,!0]:(M=i.join(i.basename(U),M),U=i.dirname(U));while(U!==k&&!L);L||(L=[b.slice(0,100-1),"",!0])}return L},l=(b,S,M)=>b.slice(S,S+M).toString("utf8").replace(/\0.*/,""),c=(b,S,M)=>h(f(b,S,M)),h=b=>b===null?null:new Date(b*1e3),f=(b,S,M)=>b[S]&128?n.parse(b.slice(S,S+M)):m(b,S,M),p=b=>isNaN(b)?null:b,m=(b,S,M)=>p(parseInt(b.slice(S,S+M).toString("utf8").replace(/\0.*$/,"").trim(),8)),d={12:8589934591,8:2097151},y=(b,S,M,U)=>U===null?!1:U>d[M]||U<0?(n.encode(U,b.slice(S,S+M)),!0):(v(b,S,M,U),!1),v=(b,S,M,U)=>b.write(F(U,M),S,M,"ascii"),F=(b,S)=>T(Math.floor(b).toString(8),S),T=(b,S)=>(b.length===S-1?b:new Array(S-b.length-1).join("0")+b+" ")+"\0",O=(b,S,M,U)=>U===null?!1:y(b,S,M,U.getTime()/1e3),x=new Array(156).join("\0"),B=(b,S,M,U)=>U===null?!1:(b.write(U+x,S,M,"utf8"),U.length!==Buffer.byteLength(U)||U.length>M);e.exports=u}),xl=Q((t,e)=>{"use strict";K();var r=_n(),i=te("path"),n=class{constructor(a,l){this.atime=a.atime||null,this.charset=a.charset||null,this.comment=a.comment||null,this.ctime=a.ctime||null,this.gid=a.gid||null,this.gname=a.gname||null,this.linkpath=a.linkpath||null,this.mtime=a.mtime||null,this.path=a.path||null,this.size=a.size||null,this.uid=a.uid||null,this.uname=a.uname||null,this.dev=a.dev||null,this.ino=a.ino||null,this.nlink=a.nlink||null,this.global=l||!1}encode(){let a=this.encodeBody();if(a==="")return null;let l=Buffer.byteLength(a),c=512*Math.ceil(1+l/512),h=Buffer.allocUnsafe(c);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:l,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(a,512,l,"utf8");for(let f=l+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(a){if(this[a]===null||this[a]===void 0)return"";let l=this[a]instanceof Date?this[a].getTime()/1e3:this[a],c=" "+(a==="dev"||a==="ino"||a==="nlink"?"SCHILY.":"")+a+"="+l+`
40
+ `,h=Buffer.byteLength(c),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+c}};n.parse=(a,l,c)=>new n(s(o(a),l),c);var s=(a,l)=>l?Object.keys(a).reduce((c,h)=>(c[h]=a[h],c),l):a,o=a=>a.replace(/\n$/,"").split(`
41
+ `).reduce(u,Object.create(null)),u=(a,l)=>{let c=parseInt(l,10);if(c!==Buffer.byteLength(l)+1)return a;l=l.slice((c+" ").length);let h=l.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return a;let p=h.join("=");return a[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(p*1e3):/^[0-9]+$/.test(p)?+p:p,a};e.exports=n}),bn=Q((t,e)=>{K(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),Fl=Q((t,e)=>{"use strict";K(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),ly=Q((t,e)=>{"use strict";K();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,u)=>[o,i[u]])),s=new Map(i.map((o,u)=>[o,r[u]]));e.exports={encode:o=>r.reduce((u,a)=>u.split(a).join(n.get(a)),o),decode:o=>i.reduce((u,a)=>u.split(a).join(s.get(a)),o)}}),cy=Q((t,e)=>{K();var{isAbsolute:r,parse:i}=te("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let u=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(u.length),s+=u,o=i(n)}return[s,n]}}),tx=Q((t,e)=>{"use strict";K(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),hy=Q((t,e)=>{"use strict";K();var r=Cl(),i=xl(),n=_n(),s=te("fs"),o=te("path"),u=Dn(),a=bn(),l=(g,_)=>_?(g=u(g).replace(/^\.(\/|$)/,""),a(_)+"/"+g):u(g),c=16*1024*1024,h=Symbol("process"),f=Symbol("file"),p=Symbol("directory"),m=Symbol("symlink"),d=Symbol("hardlink"),y=Symbol("header"),v=Symbol("read"),F=Symbol("lstat"),T=Symbol("onlstat"),O=Symbol("onread"),x=Symbol("onreadlink"),B=Symbol("openfile"),b=Symbol("onopenfile"),S=Symbol("close"),M=Symbol("mode"),U=Symbol("awaitDrain"),L=Symbol("ondrain"),k=Symbol("prefix"),I=Symbol("hadError"),j=Fl(),R=ly(),D=cy(),A=tx(),N=j(class extends r{constructor(g,_){if(_=_||{},super(_),typeof g!="string")throw new TypeError("path is required");this.path=u(g),this.portable=!!_.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=_.maxReadSize||c,this.linkCache=_.linkCache||new Map,this.statCache=_.statCache||new Map,this.preservePaths=!!_.preservePaths,this.cwd=u(_.cwd||process.cwd()),this.strict=!!_.strict,this.noPax=!!_.noPax,this.noMtime=!!_.noMtime,this.mtime=_.mtime||null,this.prefix=_.prefix?u(_.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 _.onwarn=="function"&&this.on("warn",_.onwarn);let P=!1;if(!this.preservePaths){let[C,$]=D(this.path);C&&(this.path=$,P=C)}this.win32=!!_.win32||process.platform==="win32",this.win32&&(this.path=R.decode(this.path.replace(/\\/g,"/")),g=g.replace(/\\/g,"/")),this.absolute=u(_.absolute||o.resolve(this.cwd,g)),this.path===""&&(this.path="./"),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+this.path}),this.statCache.has(this.absolute)?this[T](this.statCache.get(this.absolute)):this[F]()}emit(g,..._){return g==="error"&&(this[I]=!0),super.emit(g,..._)}[F](){s.lstat(this.absolute,(g,_)=>{if(g)return this.emit("error",g);this[T](_)})}[T](g){this.statCache.set(this.absolute,g),this.stat=g,g.isFile()||(g.size=0),this.type=E(g),this.emit("stat",g),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[m]();default:return this.end()}}[M](g){return A(g,this.type==="Directory",this.portable)}[k](g){return l(g,this.prefix)}[y](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[k](this.path),linkpath:this.type==="Link"?this[k](this.linkpath):this.linkpath,mode:this[M](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[k](this.path),linkpath:this.type==="Link"?this[k](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)}[p](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[y](),this.end()}[m](){s.readlink(this.absolute,(g,_)=>{if(g)return this.emit("error",g);this[x](_)})}[x](g){this.linkpath=u(g),this[y](),this.end()}[d](g){this.type="Link",this.linkpath=u(o.relative(this.cwd,g)),this.stat.size=0,this[y](),this.end()}[f](){if(this.stat.nlink>1){let g=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(g)){let _=this.linkCache.get(g);if(_.indexOf(this.cwd)===0)return this[d](_)}this.linkCache.set(g,this.absolute)}if(this[y](),this.stat.size===0)return this.end();this[B]()}[B](){s.open(this.absolute,"r",(g,_)=>{if(g)return this.emit("error",g);this[b](_)})}[b](g){if(this.fd=g,this[I])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let _=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(_),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:g,buf:_,offset:P,length:C,pos:$}=this;s.read(g,_,P,C,$,(q,Z)=>{if(q)return this[S](()=>this.emit("error",q));this[O](Z)})}[S](g){s.close(this.fd,g)}[O](g){if(g<=0&&this.remain>0){let P=new Error("encountered unexpected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(g>this.remain){let P=new Error("did not encounter expected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(g===this.remain)for(let P=g;P<this.length&&g<this.blockRemain;P++)this.buf[P+this.offset]=0,g++,this.remain++;let _=this.offset===0&&g===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+g);this.write(_)?this[L]():this[U](()=>this[L]())}[U](g){this.once("drain",g)}write(g){if(this.blockRemain<g.length){let _=new Error("writing more data than expected");return _.path=this.absolute,this.emit("error",_)}return this.remain-=g.length,this.blockRemain-=g.length,this.pos+=g.length,this.offset+=g.length,super.write(g)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](g=>g?this.emit("error",g):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[v]()}}),Y=class extends N{[F](){this[T](s.lstatSync(this.absolute))}[m](){this[x](s.readlinkSync(this.absolute))}[B](){this[b](s.openSync(this.absolute,"r"))}[v](){let g=!0;try{let{fd:_,buf:P,offset:C,length:$,pos:q}=this,Z=s.readSync(_,P,C,$,q);this[O](Z),g=!1}finally{if(g)try{this[S](()=>{})}catch{}}}[U](g){g()}[S](g){s.closeSync(this.fd),g()}},W=j(class extends r{constructor(g,_){_=_||{},super(_),this.preservePaths=!!_.preservePaths,this.portable=!!_.portable,this.strict=!!_.strict,this.noPax=!!_.noPax,this.noMtime=!!_.noMtime,this.readEntry=g,this.type=g.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=_.prefix||null,this.path=u(g.path),this.mode=this[M](g.mode),this.uid=this.portable?null:g.uid,this.gid=this.portable?null:g.gid,this.uname=this.portable?null:g.uname,this.gname=this.portable?null:g.gname,this.size=g.size,this.mtime=this.noMtime?null:_.mtime||g.mtime,this.atime=this.portable?null:g.atime,this.ctime=this.portable?null:g.ctime,this.linkpath=u(g.linkpath),typeof _.onwarn=="function"&&this.on("warn",_.onwarn);let P=!1;if(!this.preservePaths){let[C,$]=D(this.path);C&&(this.path=$,P=C)}this.remain=g.size,this.blockRemain=g.startBlockSize,this.header=new n({path:this[k](this.path),linkpath:this.type==="Link"?this[k](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}),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+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[k](this.path),linkpath:this.type==="Link"?this[k](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),g.pipe(this)}[k](g){return l(g,this.prefix)}[M](g){return A(g,this.type==="Directory",this.portable)}write(g){let _=g.length;if(_>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=_,super.write(g)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});N.Sync=Y,N.Tar=W;var E=g=>g.isFile()?"File":g.isDirectory()?"Directory":g.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=N}),rx=Q((t,e)=>{"use strict";K(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),fy=Q((t,e)=>{"use strict";K(),e.exports=r,r.Node=o,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(h){a.push(h)});else if(arguments.length>0)for(var l=0,c=arguments.length;l<c;l++)a.push(arguments[l]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,l=u.prev;return a&&(a.prev=l),l&&(l.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=l),u.list.length--,u.next=null,u.prev=null,u.list=null,a},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)s(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var l=this.head,c=0;l!==null;c++)u.call(a,l.value,c,this),l=l.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var l=this.tail,c=this.length-1;l!==null;c--)u.call(a,l.value,c,this),l=l.prev},r.prototype.get=function(u){for(var a=0,l=this.head;l!==null&&a<u;a++)l=l.next;if(a===u&&l!==null)return l.value},r.prototype.getReverse=function(u){for(var a=0,l=this.tail;l!==null&&a<u;a++)l=l.prev;if(a===u&&l!==null)return l.value},r.prototype.map=function(u,a){a=a||this;for(var l=new r,c=this.head;c!==null;)l.push(u.call(a,c.value,this)),c=c.next;return l},r.prototype.mapReverse=function(u,a){a=a||this;for(var l=new r,c=this.tail;c!==null;)l.push(u.call(a,c.value,this)),c=c.prev;return l},r.prototype.reduce=function(u,a){var l,c=this.head;if(arguments.length>1)l=a;else if(this.head)c=this.head.next,l=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)l=u(l,c.value,h),c=c.next;return l},r.prototype.reduceReverse=function(u,a){var l,c=this.tail;if(arguments.length>1)l=a;else if(this.tail)c=this.tail.prev,l=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)l=u(l,c.value,h),c=c.prev;return l},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,l=this.head;l!==null;a++)u[a]=l.value,l=l.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,l=this.tail;l!==null;a++)u[a]=l.value,l=l.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(;h!==null&&c<a;c++,h=h.next)l.push(h.value);return l},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,h=this.tail;h!==null&&c>a;c--)h=h.prev;for(;h!==null&&c>u;c--,h=h.prev)l.push(h.value);return l},r.prototype.splice=function(u,a,...l){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(var f=[],c=0;h&&c<a;c++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<l.length;c++)h=i(this,h,l[c]);return f},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,l=u;l!==null;l=l.prev){var c=l.prev;l.prev=l.next,l.next=c}return this.head=a,this.tail=u,this};function i(u,a,l){var c=a===u.head?new o(l,null,a,u):new o(l,a,a.next,u);return c.next===null&&(u.tail=c),c.prev===null&&(u.head=c),u.length++,c}function n(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function s(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,l,c){if(!(this instanceof o))return new o(u,a,l,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,l?(l.prev=this,this.next=l):this.next=null}try{rx()(r)}catch{}}),Ol=Q((t,e)=>{"use strict";K();var r=class{constructor(E,g){this.path=E||"./",this.absolute=g,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Cl(),n=uy(),s=Rl(),o=hy(),u=o.Sync,a=o.Tar,l=fy(),c=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),p=Symbol("queue"),m=Symbol("current"),d=Symbol("process"),y=Symbol("processing"),v=Symbol("processJob"),F=Symbol("jobs"),T=Symbol("jobDone"),O=Symbol("addFSEntry"),x=Symbol("addTarEntry"),B=Symbol("stat"),b=Symbol("readdir"),S=Symbol("onreaddir"),M=Symbol("pipe"),U=Symbol("entry"),L=Symbol("entryOpt"),k=Symbol("writeEntryClass"),I=Symbol("write"),j=Symbol("ondrain"),R=te("fs"),D=te("path"),A=Fl(),N=Dn(),Y=A(class extends i{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=N(E.prefix||""),this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.readdirCache=E.readdirCache||new Map,this[k]=o,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 n.Gzip(E.gzip),this.zip.on("data",g=>super.write(g)),this.zip.on("end",g=>super.end()),this.zip.on("drain",g=>this[j]()),this.on("resume",g=>this.zip.resume())):this.on("drain",this[j]),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:g=>!0,this[p]=new l,this[F]=0,this.jobs=+E.jobs||4,this[y]=!1,this[f]=!1}[I](E){return super.write(E)}add(E){return this.write(E),this}end(E){return E&&this.write(E),this[f]=!0,this[d](),this}write(E){if(this[f])throw new Error("write after end");return E instanceof s?this[x](E):this[O](E),this.flowing}[x](E){let g=N(D.resolve(this.cwd,E.path));if(!this.filter(E.path,E))E.resume();else{let _=new r(E.path,g,!1);_.entry=new a(E,this[L](_)),_.entry.on("end",P=>this[T](_)),this[F]+=1,this[p].push(_)}this[d]()}[O](E){let g=N(D.resolve(this.cwd,E));this[p].push(new r(E,g)),this[d]()}[B](E){E.pending=!0,this[F]+=1;let g=this.follow?"stat":"lstat";R[g](E.absolute,(_,P)=>{E.pending=!1,this[F]-=1,_?this.emit("error",_):this[h](E,P)})}[h](E,g){this.statCache.set(E.absolute,g),E.stat=g,this.filter(E.path,g)||(E.ignore=!0),this[d]()}[b](E){E.pending=!0,this[F]+=1,R.readdir(E.absolute,(g,_)=>{if(E.pending=!1,this[F]-=1,g)return this.emit("error",g);this[S](E,_)})}[S](E,g){this.readdirCache.set(E.absolute,g),E.readdir=g,this[d]()}[d](){if(!this[y]){this[y]=!0;for(let E=this[p].head;E!==null&&this[F]<this.jobs;E=E.next)if(this[v](E.value),E.value.ignore){let g=E.next;this[p].removeNode(E),E.next=g}this[y]=!1,this[f]&&!this[p].length&&this[F]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[m](){return this[p]&&this[p].head&&this[p].head.value}[T](E){this[p].shift(),this[F]-=1,this[d]()}[v](E){if(!E.pending){if(E.entry){E===this[m]&&!E.piped&&this[M](E);return}if(E.stat||(this.statCache.has(E.absolute)?this[h](E,this.statCache.get(E.absolute)):this[B](E)),!!E.stat&&!E.ignore&&!(!this.noDirRecurse&&E.stat.isDirectory()&&!E.readdir&&(this.readdirCache.has(E.absolute)?this[S](E,this.readdirCache.get(E.absolute)):this[b](E),!E.readdir))){if(E.entry=this[U](E),!E.entry){E.ignore=!0;return}E===this[m]&&!E.piped&&this[M](E)}}}[L](E){return{onwarn:(g,_,P)=>this.warn(g,_,P),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}}[U](E){this[F]+=1;try{return new this[k](E.path,this[L](E)).on("end",()=>this[T](E)).on("error",g=>this.emit("error",g))}catch(g){this.emit("error",g)}}[j](){this[m]&&this[m].entry&&this[m].entry.resume()}[M](E){E.piped=!0,E.readdir&&E.readdir.forEach(P=>{let C=E.path,$=C==="./"?"":C.replace(/\/*$/,"/");this[O]($+P)});let g=E.entry,_=this.zip;_?g.on("data",P=>{_.write(P)||g.pause()}):g.on("data",P=>{super.write(P)||g.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),W=class extends Y{constructor(E){super(E),this[k]=u}pause(){}resume(){}[B](E){let g=this.follow?"statSync":"lstatSync";this[h](E,R[g](E.absolute))}[b](E,g){this[S](E,R.readdirSync(E.absolute))}[M](E){let g=E.entry,_=this.zip;E.readdir&&E.readdir.forEach(P=>{let C=E.path,$=C==="./"?"":C.replace(/\/*$/,"/");this[O]($+P)}),_?g.on("data",P=>{_.write(P)}):g.on("data",P=>{super[I](P)})}};Y.Sync=W,e.exports=Y}),wn=Q(t=>{"use strict";K();var e=sy(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let E=process.binding("fs"),g=E.FSReqWrap||E.FSReqCallback;n=(_,P,C,$)=>{let q=(G,ee)=>$(G,ee,P),Z=new g;Z.oncomplete=q,E.writeBuffers(_,P,C,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),u=Symbol("_ended"),a=Symbol("_fd"),l=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),p=Symbol("_makeBuf"),m=Symbol("_mode"),d=Symbol("_needDrain"),y=Symbol("_onerror"),v=Symbol("_onopen"),F=Symbol("_onread"),T=Symbol("_onwrite"),O=Symbol("_open"),x=Symbol("_path"),B=Symbol("_pos"),b=Symbol("_queue"),S=Symbol("_read"),M=Symbol("_readSize"),U=Symbol("_reading"),L=Symbol("_remain"),k=Symbol("_size"),I=Symbol("_write"),j=Symbol("_writing"),R=Symbol("_defaultFlag"),D=Symbol("_errored"),A=class extends e{constructor(E,g){if(g=g||{},super(g),this.readable=!0,this.writable=!1,typeof E!="string")throw new TypeError("path must be a string");this[D]=!1,this[a]=typeof g.fd=="number"?g.fd:null,this[x]=E,this[M]=g.readSize||16*1024*1024,this[U]=!1,this[k]=typeof g.size=="number"?g.size:1/0,this[L]=this[k],this[s]=typeof g.autoClose=="boolean"?g.autoClose:!0,typeof this[a]=="number"?this[S]():this[O]()}get fd(){return this[a]}get path(){return this[x]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[O](){i.open(this[x],"r",(E,g)=>this[v](E,g))}[v](E,g){E?this[y](E):(this[a]=g,this.emit("open",g),this[S]())}[p](){return Buffer.allocUnsafe(Math.min(this[M],this[L]))}[S](){if(!this[U]){this[U]=!0;let E=this[p]();if(E.length===0)return process.nextTick(()=>this[F](null,0,E));i.read(this[a],E,0,E.length,null,(g,_,P)=>this[F](g,_,P))}}[F](E,g,_){this[U]=!1,E?this[y](E):this[f](g,_)&&this[S]()}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.close(E,g=>g?this.emit("error",g):this.emit("close"))}}[y](E){this[U]=!0,this[o](),this.emit("error",E)}[f](E,g){let _=!1;return this[L]-=E,E>0&&(_=super.write(E<g.length?g.slice(0,E):g)),(E===0||this[L]<=0)&&(_=!1,this[o](),super.end()),_}emit(E,g){switch(E){case"prefinish":case"finish":break;case"drain":typeof this[a]=="number"&&this[S]();break;case"error":return this[D]?void 0:(this[D]=!0,super.emit(E,g));default:return super.emit(E,g)}}},N=class extends A{[O](){let E=!0;try{this[v](null,i.openSync(this[x],"r")),E=!1}finally{E&&this[o]()}}[S](){let E=!0;try{if(!this[U]){this[U]=!0;do{let g=this[p](),_=g.length===0?0:i.readSync(this[a],g,0,g.length,null);if(!this[f](_,g))break}while(!0);this[U]=!1}E=!1}finally{E&&this[o]()}}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.closeSync(E),this.emit("close")}}},Y=class extends r{constructor(E,g){g=g||{},super(g),this.readable=!1,this.writable=!0,this[D]=!1,this[j]=!1,this[u]=!1,this[d]=!1,this[b]=[],this[x]=E,this[a]=typeof g.fd=="number"?g.fd:null,this[m]=g.mode===void 0?438:g.mode,this[B]=typeof g.start=="number"?g.start:null,this[s]=typeof g.autoClose=="boolean"?g.autoClose:!0;let _=this[B]!==null?"r+":"w";this[R]=g.flags===void 0,this[c]=this[R]?_:g.flags,this[a]===null&&this[O]()}emit(E,g){if(E==="error"){if(this[D])return;this[D]=!0}return super.emit(E,g)}get fd(){return this[a]}get path(){return this[x]}[y](E){this[o](),this[j]=!0,this.emit("error",E)}[O](){i.open(this[x],this[c],this[m],(E,g)=>this[v](E,g))}[v](E,g){this[R]&&this[c]==="r+"&&E&&E.code==="ENOENT"?(this[c]="w",this[O]()):E?this[y](E):(this[a]=g,this.emit("open",g),this[h]())}end(E,g){return E&&this.write(E,g),this[u]=!0,!this[j]&&!this[b].length&&typeof this[a]=="number"&&this[T](null,0),this}write(E,g){return typeof E=="string"&&(E=Buffer.from(E,g)),this[u]?(this.emit("error",new Error("write() after end()")),!1):this[a]===null||this[j]||this[b].length?(this[b].push(E),this[d]=!0,!1):(this[j]=!0,this[I](E),!0)}[I](E){i.write(this[a],E,0,E.length,this[B],(g,_)=>this[T](g,_))}[T](E,g){E?this[y](E):(this[B]!==null&&(this[B]+=g),this[b].length?this[h]():(this[j]=!1,this[u]&&!this[l]?(this[l]=!0,this[o](),this.emit("finish")):this[d]&&(this[d]=!1,this.emit("drain"))))}[h](){if(this[b].length===0)this[u]&&this[T](null,0);else if(this[b].length===1)this[I](this[b].pop());else{let E=this[b];this[b]=[],n(this[a],E,this[B],(g,_)=>this[T](g,_))}}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.close(E,g=>g?this.emit("error",g):this.emit("close"))}}},W=class extends Y{[O](){let E;if(this[R]&&this[c]==="r+")try{E=i.openSync(this[x],this[c],this[m])}catch(g){if(g.code==="ENOENT")return this[c]="w",this[O]();throw g}else E=i.openSync(this[x],this[c],this[m]);this[v](null,E)}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.closeSync(E),this.emit("close")}}[I](E){let g=!0;try{this[T](null,i.writeSync(this[a],E,0,E.length,this[B])),g=!1}finally{if(g)try{this[o]()}catch{}}}};t.ReadStream=A,t.ReadStreamSync=N,t.WriteStream=Y,t.WriteStreamSync=W}),Tl=Q((t,e)=>{"use strict";K();var r=Fl(),i=_n(),n=te("events"),s=fy(),o=1024*1024,u=Rl(),a=xl(),l=uy(),{nextTick:c}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),p=Symbol("writeEntry"),m=Symbol("readEntry"),d=Symbol("nextEntry"),y=Symbol("processEntry"),v=Symbol("extendedHeader"),F=Symbol("globalExtendedHeader"),T=Symbol("meta"),O=Symbol("emitMeta"),x=Symbol("buffer"),B=Symbol("queue"),b=Symbol("ended"),S=Symbol("emittedEnd"),M=Symbol("emit"),U=Symbol("unzip"),L=Symbol("consumeChunk"),k=Symbol("consumeChunkSub"),I=Symbol("consumeBody"),j=Symbol("consumeMeta"),R=Symbol("consumeHeader"),D=Symbol("consuming"),A=Symbol("bufferConcat"),N=Symbol("maybeEnd"),Y=Symbol("writing"),W=Symbol("aborted"),E=Symbol("onDone"),g=Symbol("sawValidEntry"),_=Symbol("sawNullBlock"),P=Symbol("sawEOF"),C=Symbol("closeStream"),$=q=>!0;e.exports=r(class extends n{constructor(q){q=q||{},super(q),this.file=q.file||"",this[g]=null,this.on(E,Z=>{(this[f]==="begin"||this[g]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),q.ondone?this.on(E,q.ondone):this.on(E,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!q.strict,this.maxMetaEntrySize=q.maxMetaEntrySize||o,this.filter=typeof q.filter=="function"?q.filter:$,this.writable=!0,this.readable=!1,this[B]=new s,this[x]=null,this[m]=null,this[p]=null,this[f]="begin",this[T]="",this[v]=null,this[F]=null,this[b]=!1,this[U]=null,this[W]=!1,this[_]=!1,this[P]=!1,this.on("end",()=>this[C]()),typeof q.onwarn=="function"&&this.on("warn",q.onwarn),typeof q.onentry=="function"&&this.on("entry",q.onentry)}[R](q,Z){this[g]===null&&(this[g]=!1);let G;try{G=new i(q,Z,this[v],this[F])}catch(ee){return this.warn("TAR_ENTRY_INVALID",ee)}if(G.nullBlock)this[_]?(this[P]=!0,this[f]==="begin"&&(this[f]="header"),this[M]("eof")):(this[_]=!0,this[M]("nullBlock"));else if(this[_]=!1,!G.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:G});else if(!G.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:G});else{let ee=G.type;if(/^(Symbolic)?Link$/.test(ee)&&!G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:G});else if(!/^(Symbolic)?Link$/.test(ee)&&G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:G});else{let z=this[p]=new u(G,this[v],this[F]);if(!this[g])if(z.remain){let re=()=>{z.invalid||(this[g]=!0)};z.on("end",re)}else this[g]=!0;z.meta?z.size>this.maxMetaEntrySize?(z.ignore=!0,this[M]("ignoredEntry",z),this[f]="ignore",z.resume()):z.size>0&&(this[T]="",z.on("data",re=>this[T]+=re),this[f]="meta"):(this[v]=null,z.ignore=z.ignore||!this.filter(z.path,z),z.ignore?(this[M]("ignoredEntry",z),this[f]=z.remain?"ignore":"header",z.resume()):(z.remain?this[f]="body":(this[f]="header",z.end()),this[m]?this[B].push(z):(this[B].push(z),this[d]())))}}}[C](){c(()=>this.emit("close"))}[y](q){let Z=!0;return q?Array.isArray(q)?this.emit.apply(this,q):(this[m]=q,this.emit("entry",q),q.emittedEnd||(q.on("end",G=>this[d]()),Z=!1)):(this[m]=null,Z=!1),Z}[d](){do;while(this[y](this[B].shift()));if(!this[B].length){let q=this[m];!q||q.flowing||q.size===q.remain?this[Y]||this.emit("drain"):q.once("drain",Z=>this.emit("drain"))}}[I](q,Z){let G=this[p],ee=G.blockRemain,z=ee>=q.length&&Z===0?q:q.slice(Z,Z+ee);return G.write(z),G.blockRemain||(this[f]="header",this[p]=null,G.end()),z.length}[j](q,Z){let G=this[p],ee=this[I](q,Z);return this[p]||this[O](G),ee}[M](q,Z,G){!this[B].length&&!this[m]?this.emit(q,Z,G):this[B].push([q,Z,G])}[O](q){switch(this[M]("meta",this[T]),q.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=a.parse(this[T],this[v],!1);break;case"GlobalExtendedHeader":this[F]=a.parse(this[T],this[F],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[T].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[T].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+q.type)}}abort(q){this[W]=!0,this.emit("abort",q),this.warn("TAR_ABORT",q,{recoverable:!1})}write(q){if(this[W])return;if(this[U]===null&&q){if(this[x]&&(q=Buffer.concat([this[x],q]),this[x]=null),q.length<h.length)return this[x]=q,!0;for(let G=0;this[U]===null&&G<h.length;G++)q[G]!==h[G]&&(this[U]=!1);if(this[U]===null){let G=this[b];this[b]=!1,this[U]=new l.Unzip,this[U].on("data",z=>this[L](z)),this[U].on("error",z=>this.abort(z)),this[U].on("end",z=>{this[b]=!0,this[L]()}),this[Y]=!0;let ee=this[U][G?"end":"write"](q);return this[Y]=!1,ee}}this[Y]=!0,this[U]?this[U].write(q):this[L](q),this[Y]=!1;let Z=this[B].length?!1:this[m]?this[m].flowing:!0;return!Z&&!this[B].length&&this[m].once("drain",G=>this.emit("drain")),Z}[A](q){q&&!this[W]&&(this[x]=this[x]?Buffer.concat([this[x],q]):q)}[N](){if(this[b]&&!this[S]&&!this[W]&&!this[D]){this[S]=!0;let q=this[p];if(q&&q.blockRemain){let Z=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${q.blockRemain} more bytes, only ${Z} available)`,{entry:q}),this[x]&&q.write(this[x]),q.end()}this[M](E)}}[L](q){if(this[D])this[A](q);else if(!q&&!this[x])this[N]();else{if(this[D]=!0,this[x]){this[A](q);let Z=this[x];this[x]=null,this[k](Z)}else this[k](q);for(;this[x]&&this[x].length>=512&&!this[W]&&!this[P];){let Z=this[x];this[x]=null,this[k](Z)}this[D]=!1}(!this[x]||this[b])&&this[N]()}[k](q){let Z=0,G=q.length;for(;Z+512<=G&&!this[W]&&!this[P];)switch(this[f]){case"begin":case"header":this[R](q,Z),Z+=512;break;case"ignore":case"body":Z+=this[I](q,Z);break;case"meta":Z+=this[j](q,Z);break;default:throw new Error("invalid state: "+this[f])}Z<G&&(this[x]?this[x]=Buffer.concat([q.slice(Z),this[x]]):this[x]=q.slice(Z))}end(q){this[W]||(this[U]?this[U].end(q):(this[b]=!0,this.write(q)))}})}),kl=Q((t,e)=>{"use strict";K();var r=En(),i=Tl(),n=te("fs"),s=wn(),o=te("path"),u=bn();e.exports=(p,m,d)=>{typeof p=="function"?(d=p,m=null,p={}):Array.isArray(p)&&(m=p,p={}),typeof m=="function"&&(d=m,m=null),m?m=Array.from(m):m=[];let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return m.length&&l(y,m),y.noResume||a(y),y.file&&y.sync?c(y):y.file?h(y,d):f(y)};var a=p=>{let m=p.onentry;p.onentry=m?d=>{m(d),d.resume()}:d=>d.resume()},l=(p,m)=>{let d=new Map(m.map(F=>[u(F),!0])),y=p.filter,v=(F,T)=>{let O=T||o.parse(F).root||".",x=F===O?!1:d.has(F)?d.get(F):v(o.dirname(F),O);return d.set(F,x),x};p.filter=y?(F,T)=>y(F,T)&&v(u(F)):F=>v(u(F))},c=p=>{let m=f(p),d=p.file,y=!0,v;try{let F=n.statSync(d),T=p.maxReadSize||16*1024*1024;if(F.size<T)m.end(n.readFileSync(d));else{let O=0,x=Buffer.allocUnsafe(T);for(v=n.openSync(d,"r");O<F.size;){let B=n.readSync(v,x,0,T,O);O+=B,m.write(x.slice(0,B))}m.end()}y=!1}finally{if(y&&v)try{n.closeSync(v)}catch{}}},h=(p,m)=>{let d=new i(p),y=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((T,O)=>{d.on("error",O),d.on("end",T),n.stat(v,(x,B)=>{if(x)O(x);else{let b=new s.ReadStream(v,{readSize:y,size:B.size});b.on("error",O),b.pipe(d)}})});return m?F.then(m,m):F},f=p=>new i(p)}),ix=Q((t,e)=>{"use strict";K();var r=En(),i=Ol(),n=wn(),s=kl(),o=te("path");e.exports=(p,m,d)=>{if(typeof m=="function"&&(d=m),Array.isArray(p)&&(m=p,p={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return y.file&&y.sync?u(y,m):y.file?a(y,m,d):y.sync?h(y,m):f(y,m)};var u=(p,m)=>{let d=new i.Sync(p),y=new n.WriteStreamSync(p.file,{mode:p.mode||438});d.pipe(y),l(d,m)},a=(p,m,d)=>{let y=new i(p),v=new n.WriteStream(p.file,{mode:p.mode||438});y.pipe(v);let F=new Promise((T,O)=>{v.on("error",O),v.on("close",T),y.on("error",O)});return c(y,m),d?F.then(d,d):F},l=(p,m)=>{m.forEach(d=>{d.charAt(0)==="@"?s({file:o.resolve(p.cwd,d.slice(1)),sync:!0,noResume:!0,onentry:y=>p.add(y)}):p.add(d)}),p.end()},c=(p,m)=>{for(;m.length;){let d=m.shift();if(d.charAt(0)==="@")return s({file:o.resolve(p.cwd,d.slice(1)),noResume:!0,onentry:y=>p.add(y)}).then(y=>c(p,m));p.add(d)}p.end()},h=(p,m)=>{let d=new i.Sync(p);return l(d,m),d},f=(p,m)=>{let d=new i(p);return c(d,m),d}}),py=Q((t,e)=>{"use strict";K();var r=En(),i=Ol(),n=te("fs"),s=wn(),o=kl(),u=te("path"),a=_n();e.exports=(m,d,y)=>{let v=r(m);if(!v.file)throw new TypeError("file is required");if(v.gzip)throw new TypeError("cannot append to compressed archives");if(!d||!Array.isArray(d)||!d.length)throw new TypeError("no files or directories specified");return d=Array.from(d),v.sync?l(v,d):h(v,d,y)};var l=(m,d)=>{let y=new i.Sync(m),v=!0,F,T;try{try{F=n.openSync(m.file,"r+")}catch(B){if(B.code==="ENOENT")F=n.openSync(m.file,"w+");else throw B}let O=n.fstatSync(F),x=Buffer.alloc(512);e:for(T=0;T<O.size;T+=512){for(let S=0,M=0;S<512;S+=M){if(M=n.readSync(F,x,S,x.length-S,T+S),T===0&&x[0]===31&&x[1]===139)throw new Error("cannot append to compressed archives");if(!M)break e}let B=new a(x);if(!B.cksumValid)break;let b=512*Math.ceil(B.size/512);if(T+b+512>O.size)break;T+=b,m.mtimeCache&&m.mtimeCache.set(B.path,B.mtime)}v=!1,c(m,y,T,F,d)}finally{if(v)try{n.closeSync(F)}catch{}}},c=(m,d,y,v,F)=>{let T=new s.WriteStreamSync(m.file,{fd:v,start:y});d.pipe(T),f(d,F)},h=(m,d,y)=>{d=Array.from(d);let v=new i(m),F=(O,x,B)=>{let b=(k,I)=>{k?n.close(O,j=>B(k)):B(null,I)},S=0;if(x===0)return b(null,0);let M=0,U=Buffer.alloc(512),L=(k,I)=>{if(k)return b(k);if(M+=I,M<512&&I)return n.read(O,U,M,U.length-M,S+M,L);if(S===0&&U[0]===31&&U[1]===139)return b(new Error("cannot append to compressed archives"));if(M<512)return b(null,S);let j=new a(U);if(!j.cksumValid)return b(null,S);let R=512*Math.ceil(j.size/512);if(S+R+512>x||(S+=R+512,S>=x))return b(null,S);m.mtimeCache&&m.mtimeCache.set(j.path,j.mtime),M=0,n.read(O,U,0,512,S,L)};n.read(O,U,0,512,S,L)},T=new Promise((O,x)=>{v.on("error",x);let B="r+",b=(S,M)=>{if(S&&S.code==="ENOENT"&&B==="r+")return B="w+",n.open(m.file,B,b);if(S)return x(S);n.fstat(M,(U,L)=>{if(U)return n.close(M,()=>x(U));F(M,L.size,(k,I)=>{if(k)return x(k);let j=new s.WriteStream(m.file,{fd:M,start:I});v.pipe(j),j.on("error",x),j.on("close",O),p(v,d)})})};n.open(m.file,B,b)});return y?T.then(y,y):T},f=(m,d)=>{d.forEach(y=>{y.charAt(0)==="@"?o({file:u.resolve(m.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:v=>m.add(v)}):m.add(y)}),m.end()},p=(m,d)=>{for(;d.length;){let y=d.shift();if(y.charAt(0)==="@")return o({file:u.resolve(m.cwd,y.slice(1)),noResume:!0,onentry:v=>m.add(v)}).then(v=>p(m,d));m.add(y)}m.end()}}),nx=Q((t,e)=>{"use strict";K();var r=En(),i=py();e.exports=(s,o,u)=>{let a=r(s);if(!a.file)throw new TypeError("file is required");if(a.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(a),i(a,o,u)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(u,a)=>o(u,a)&&!(s.mtimeCache.get(u)>a.mtime):(u,a)=>!(s.mtimeCache.get(u)>a.mtime)}}),sx=Q((t,e)=>{K();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}),ox=Q((t,e)=>{K();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=te("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let u=/[*|"<>?:]/,{root:a}=n(o);if(u.test(o.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),ux=Q((t,e)=>{K();var{dirname:r}=te("path"),i=(s,o,u=void 0)=>u===o?Promise.resolve():s.statAsync(o).then(a=>a.isDirectory()?u:void 0,a=>a.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,u=void 0)=>{if(u!==o)try{return s.statSync(o).isDirectory()?u:void 0}catch(a){return a.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),dy=Q((t,e)=>{K();var{dirname:r}=te("path"),i=(s,o,u)=>{o.recursive=!1;let a=r(s);return a===s?o.mkdirAsync(s,o).catch(l=>{if(l.code!=="EISDIR")throw l}):o.mkdirAsync(s,o).then(()=>u||s,l=>{if(l.code==="ENOENT")return i(a,o).then(c=>i(s,o,c));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;return o.statAsync(s).then(c=>{if(c.isDirectory())return u;throw l},()=>{throw l})})},n=(s,o,u)=>{let a=r(s);if(o.recursive=!1,a===s)try{return o.mkdirSync(s,o)}catch(l){if(l.code!=="EISDIR")throw l;return}try{return o.mkdirSync(s,o),u||s}catch(l){if(l.code==="ENOENT")return n(s,o,n(a,o,u));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;try{if(!o.statSync(s).isDirectory())throw l}catch{throw l}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),ax=Q((t,e)=>{K();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ux(),{mkdirpManual:s,mkdirpManualSync:o}=dy(),u=(l,c)=>(c.recursive=!0,r(l)===l?c.mkdirAsync(l,c):i(c,l).then(h=>c.mkdirAsync(l,c).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(l,c);throw f}))),a=(l,c)=>{if(c.recursive=!0,r(l)===l)return c.mkdirSync(l,c);let h=n(c,l);try{return c.mkdirSync(l,c),h}catch(f){if(f.code==="ENOENT")return o(l,c);throw f}};e.exports={mkdirpNative:u,mkdirpNativeSync:a}}),lx=Q((t,e)=>{K();var r=te("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?a=>a.mkdir===r.mkdir:()=>!1,u=s?a=>a.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:u}}),cx=Q((t,e)=>{K();var r=sx(),i=ox(),{mkdirpNative:n,mkdirpNativeSync:s}=ax(),{mkdirpManual:o,mkdirpManualSync:u}=dy(),{useNative:a,useNativeSync:l}=lx(),c=(f,p)=>(f=i(f),p=r(p),a(p)?n(f,p):o(f,p)),h=(f,p)=>(f=i(f),p=r(p),l(p)?s(f,p):u(f,p));c.sync=h,c.native=(f,p)=>n(i(f),r(p)),c.manual=(f,p)=>o(i(f),r(p)),c.nativeSync=(f,p)=>s(i(f),r(p)),c.manualSync=(f,p)=>u(i(f),r(p)),e.exports=c}),hx=Q((t,e)=>{"use strict";K();var r=te("fs"),i=te("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),u=(T,O,x)=>{try{return r[s](T,O,x)}catch(B){if(B.code!=="ENOENT")throw B}},a=(T,O,x)=>{try{return r.chownSync(T,O,x)}catch(B){if(B.code!=="ENOENT")throw B}},l=o?(T,O,x,B)=>b=>{!b||b.code!=="EISDIR"?B(b):r.chown(T,O,x,B)}:(T,O,x,B)=>B,c=o?(T,O,x)=>{try{return u(T,O,x)}catch(B){if(B.code!=="EISDIR")throw B;a(T,O,x)}}:(T,O,x)=>u(T,O,x),h=process.version,f=(T,O,x)=>r.readdir(T,O,x),p=(T,O)=>r.readdirSync(T,O);/^v4\./.test(h)&&(f=(T,O,x)=>r.readdir(T,x));var m=(T,O,x,B)=>{r[n](T,O,x,l(T,O,x,b=>{B(b&&b.code!=="ENOENT"?b:null)}))},d=(T,O,x,B,b)=>{if(typeof O=="string")return r.lstat(i.resolve(T,O),(S,M)=>{if(S)return b(S.code!=="ENOENT"?S:null);M.name=O,d(T,M,x,B,b)});if(O.isDirectory())y(i.resolve(T,O.name),x,B,S=>{if(S)return b(S);let M=i.resolve(T,O.name);m(M,x,B,b)});else{let S=i.resolve(T,O.name);m(S,x,B,b)}},y=(T,O,x,B)=>{f(T,{withFileTypes:!0},(b,S)=>{if(b){if(b.code==="ENOENT")return B();if(b.code!=="ENOTDIR"&&b.code!=="ENOTSUP")return B(b)}if(b||!S.length)return m(T,O,x,B);let M=S.length,U=null,L=k=>{if(!U){if(k)return B(U=k);if(--M===0)return m(T,O,x,B)}};S.forEach(k=>d(T,k,O,x,L))})},v=(T,O,x,B)=>{if(typeof O=="string")try{let b=r.lstatSync(i.resolve(T,O));b.name=O,O=b}catch(b){if(b.code==="ENOENT")return;throw b}O.isDirectory()&&F(i.resolve(T,O.name),x,B),c(i.resolve(T,O.name),x,B)},F=(T,O,x)=>{let B;try{B=p(T,{withFileTypes:!0})}catch(b){if(b.code==="ENOENT")return;if(b.code==="ENOTDIR"||b.code==="ENOTSUP")return c(T,O,x);throw b}return B&&B.length&&B.forEach(b=>v(T,b,O,x)),c(T,O,x)};e.exports=y,y.sync=F}),fx=Q((t,e)=>{"use strict";K();var r=cx(),i=te("fs"),n=te("path"),s=hx(),o=Dn(),u=class extends Error{constructor(d,y){super("Cannot extract through symbolic link"),this.path=y,this.symlink=d}get name(){return"SylinkError"}},a=class extends Error{constructor(d,y){super(y+": Cannot cd into '"+d+"'"),this.path=d,this.code=y}get name(){return"CwdError"}},l=(d,y)=>d.get(o(y)),c=(d,y,v)=>d.set(o(y),v),h=(d,y)=>{i.stat(d,(v,F)=>{(v||!F.isDirectory())&&(v=new a(d,v&&v.code||"ENOTDIR")),y(v)})};e.exports=(d,y,v)=>{d=o(d);let F=y.umask,T=y.mode|448,O=(T&F)!==0,x=y.uid,B=y.gid,b=typeof x=="number"&&typeof B=="number"&&(x!==y.processUid||B!==y.processGid),S=y.preserve,M=y.unlink,U=y.cache,L=o(y.cwd),k=(j,R)=>{j?v(j):(c(U,d,!0),R&&b?s(R,x,B,D=>k(D)):O?i.chmod(d,T,v):v())};if(U&&l(U,d)===!0)return k();if(d===L)return h(d,k);if(S)return r(d,{mode:T}).then(j=>k(null,j),k);let I=o(n.relative(L,d)).split("/");f(L,I,T,U,M,L,null,k)};var f=(d,y,v,F,T,O,x,B)=>{if(!y.length)return B(null,x);let b=y.shift(),S=o(n.resolve(d+"/"+b));if(l(F,S))return f(S,y,v,F,T,O,x,B);i.mkdir(S,v,p(S,y,v,F,T,O,x,B))},p=(d,y,v,F,T,O,x,B)=>b=>{b?i.lstat(d,(S,M)=>{if(S)S.path=S.path&&o(S.path),B(S);else if(M.isDirectory())f(d,y,v,F,T,O,x,B);else if(T)i.unlink(d,U=>{if(U)return B(U);i.mkdir(d,v,p(d,y,v,F,T,O,x,B))});else{if(M.isSymbolicLink())return B(new u(d,d+"/"+y.join("/")));B(b)}}):(x=x||d,f(d,y,v,F,T,O,x,B))},m=d=>{let y=!1,v="ENOTDIR";try{y=i.statSync(d).isDirectory()}catch(F){v=F.code}finally{if(!y)throw new a(d,v)}};e.exports.sync=(d,y)=>{d=o(d);let v=y.umask,F=y.mode|448,T=(F&v)!==0,O=y.uid,x=y.gid,B=typeof O=="number"&&typeof x=="number"&&(O!==y.processUid||x!==y.processGid),b=y.preserve,S=y.unlink,M=y.cache,U=o(y.cwd),L=j=>{c(M,d,!0),j&&B&&s.sync(j,O,x),T&&i.chmodSync(d,F)};if(M&&l(M,d)===!0)return L();if(d===U)return m(U),L();if(b)return L(r.sync(d,F));let k=o(n.relative(U,d)).split("/"),I=null;for(let j=k.shift(),R=U;j&&(R+="/"+j);j=k.shift())if(R=o(n.resolve(R)),!l(M,R))try{i.mkdirSync(R,F),I=I||R,c(M,R,!0)}catch{let D=i.lstatSync(R);if(D.isDirectory()){c(M,R,!0);continue}else if(S){i.unlinkSync(R),i.mkdirSync(R,F),I=I||R,c(M,R,!0);continue}else if(D.isSymbolicLink())return new u(R,R+"/"+k.join("/"))}return L(I)}}),my=Q((t,e)=>{K();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),px=Q((t,e)=>{K();var r=te("assert"),i=my(),n=bn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,u=o==="win32";e.exports=()=>{let a=new Map,l=new Map,c=y=>y.split("/").slice(0,-1).reduce((v,F)=>(v.length&&(F=s(v[v.length-1],F)),v.push(F||"/"),v),[]),h=new Set,f=y=>{let v=l.get(y);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(F=>a.get(F)),dirs:[...v.dirs].map(F=>a.get(F))}},p=y=>{let{paths:v,dirs:F}=f(y);return v.every(T=>T[0]===y)&&F.every(T=>T[0]instanceof Set&&T[0].has(y))},m=y=>h.has(y)||!p(y)?!1:(h.add(y),y(()=>d(y)),!0),d=y=>{if(!h.has(y))return!1;let{paths:v,dirs:F}=l.get(y),T=new Set;return v.forEach(O=>{let x=a.get(O);r.equal(x[0],y),x.length===1?a.delete(O):(x.shift(),typeof x[0]=="function"?T.add(x[0]):x[0].forEach(B=>T.add(B)))}),F.forEach(O=>{let x=a.get(O);r(x[0]instanceof Set),x[0].size===1&&x.length===1?a.delete(O):x[0].size===1?(x.shift(),T.add(x[0])):x[0].delete(y)}),h.delete(y),T.forEach(O=>m(O)),!0};return{check:p,reserve:(y,v)=>{y=u?["win32 parallelization disabled"]:y.map(T=>i(n(s(T))).toLowerCase());let F=new Set(y.map(T=>c(T)).reduce((T,O)=>T.concat(O)));return l.set(v,{dirs:F,paths:y}),y.forEach(T=>{let O=a.get(T);O?O.push(v):a.set(T,[v])}),F.forEach(T=>{let O=a.get(T);O?O[O.length-1]instanceof Set?O[O.length-1].add(v):O.push(new Set([v])):a.set(T,[new Set([v])])}),m(v)}}}}),dx=Q((t,e)=>{K();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||te("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:u,UV_FS_O_FILEMAP:a=0}=n.constants,l=i&&!!a,c=512*1024,h=a|o|s|u;e.exports=l?f=>f<c?h:"w":()=>"w"}),yy=Q((t,e)=>{"use strict";K();var r=te("assert"),i=Tl(),n=te("fs"),s=wn(),o=te("path"),u=fx(),a=ly(),l=px(),c=cy(),h=Dn(),f=bn(),p=my(),m=Symbol("onEntry"),d=Symbol("checkFs"),y=Symbol("checkFs2"),v=Symbol("pruneCache"),F=Symbol("isReusable"),T=Symbol("makeFs"),O=Symbol("file"),x=Symbol("directory"),B=Symbol("link"),b=Symbol("symlink"),S=Symbol("hardlink"),M=Symbol("unsupported"),U=Symbol("checkPath"),L=Symbol("mkdir"),k=Symbol("onError"),I=Symbol("pending"),j=Symbol("pend"),R=Symbol("unpend"),D=Symbol("ended"),A=Symbol("maybeClose"),N=Symbol("skip"),Y=Symbol("doChown"),W=Symbol("uid"),E=Symbol("gid"),g=Symbol("checkedCwd"),_=te("crypto"),P=dx(),C=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$=C==="win32",q=(w,V)=>{if(!$)return n.unlink(w,V);let J=w+".DELETE."+_.randomBytes(16).toString("hex");n.rename(w,J,se=>{if(se)return V(se);n.unlink(J,V)})},Z=w=>{if(!$)return n.unlinkSync(w);let V=w+".DELETE."+_.randomBytes(16).toString("hex");n.renameSync(w,V),n.unlinkSync(V)},G=(w,V,J)=>w===w>>>0?w:V===V>>>0?V:J,ee=w=>p(f(h(w))).toLowerCase(),z=(w,V)=>{V=ee(V);for(let J of w.keys()){let se=ee(J);(se===V||se.indexOf(V+"/")===0)&&w.delete(J)}},re=w=>{for(let V of w.keys())w.delete(V)},le=class extends i{constructor(w){if(w||(w={}),w.ondone=V=>{this[D]=!0,this[A]()},super(w),this[g]=!1,this.reservations=l(),this.transform=typeof w.transform=="function"?w.transform:null,this.writable=!0,this.readable=!1,this[I]=0,this[D]=!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||$,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",V=>this[m](V))}warn(w,V,J={}){return(w==="TAR_BAD_ARCHIVE"||w==="TAR_ABORT")&&(J.recoverable=!1),super.warn(w,V,J)}[A](){this[D]&&this[I]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[U](w){if(this.strip){let V=h(w.path).split("/");if(V.length<this.strip)return!1;if(w.path=V.slice(this.strip).join("/"),w.type==="Link"){let J=h(w.linkpath).split("/");if(J.length>=this.strip)w.linkpath=J.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let V=h(w.path),J=V.split("/");if(J.includes("..")||$&&/^[a-z]:\.\.$/i.test(J[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:w,path:V}),!1;let[se,ae]=c(V);se&&(w.path=ae,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:w,path:V}))}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:V}=o.win32.parse(w.absolute);w.absolute=V+a.encode(w.absolute.slice(V.length));let{root:J}=o.win32.parse(w.path);w.path=J+a.encode(w.path.slice(J.length))}return!0}[m](w){if(!this[U](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[d](w);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[M](w)}}[k](w,V){w.name==="CwdError"?this.emit("error",w):(this.warn("TAR_ENTRY_ERROR",w,{entry:V}),this[R](),V.resume())}[L](w,V,J){u(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:V,noChmod:this.noChmod},J)}[Y](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}[W](w){return G(this.uid,w.uid,this.processUid)}[E](w){return G(this.gid,w.gid,this.processGid)}[O](w,V){let J=w.mode&4095||this.fmode,se=new s.WriteStream(w.absolute,{flags:P(w.size),mode:J,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[k](fe,w),V()});let ae=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[k](fe,w),V();return}--ae===0&&n.close(se.fd,Se=>{Se?this[k](Se,w):this[R](),V()})};se.on("finish",fe=>{let Se=w.absolute,ct=se.fd;if(w.mtime&&!this.noMtime){ae++;let ht=w.atime||new Date,Xi=w.mtime;n.futimes(ct,ht,Xi,Qi=>Qi?n.utimes(Se,ht,Xi,uu=>ge(uu&&Qi)):ge())}if(this[Y](w)){ae++;let ht=this[W](w),Xi=this[E](w);n.fchown(ct,ht,Xi,Qi=>Qi?n.chown(Se,ht,Xi,uu=>ge(uu&&Qi)):ge())}ge()});let ce=this.transform&&this.transform(w)||w;ce!==w&&(ce.on("error",fe=>{this[k](fe,w),V()}),w.pipe(ce)),ce.pipe(se)}[x](w,V){let J=w.mode&4095||this.dmode;this[L](w.absolute,J,se=>{if(se){this[k](se,w),V();return}let ae=1,ge=ce=>{--ae===0&&(V(),this[R](),w.resume())};w.mtime&&!this.noMtime&&(ae++,n.utimes(w.absolute,w.atime||new Date,w.mtime,ge)),this[Y](w)&&(ae++,n.chown(w.absolute,this[W](w),this[E](w),ge)),ge()})}[M](w){w.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${w.type}`,{entry:w}),w.resume()}[b](w,V){this[B](w,w.linkpath,"symlink",V)}[S](w,V){let J=h(o.resolve(this.cwd,w.linkpath));this[B](w,J,"link",V)}[j](){this[I]++}[R](){this[I]--,this[A]()}[N](w){this[R](),w.resume()}[F](w,V){return w.type==="File"&&!this.unlink&&V.isFile()&&V.nlink<=1&&!$}[d](w){this[j]();let V=[w.path];w.linkpath&&V.push(w.linkpath),this.reservations.reserve(V,J=>this[y](w,J))}[v](w){w.type==="SymbolicLink"?re(this.dirCache):w.type!=="Directory"&&z(this.dirCache,w.absolute)}[y](w,V){this[v](w);let J=ce=>{this[v](w),V(ce)},se=()=>{this[L](this.cwd,this.dmode,ce=>{if(ce){this[k](ce,w),J();return}this[g]=!0,ae()})},ae=()=>{if(w.absolute!==this.cwd){let ce=h(o.dirname(w.absolute));if(ce!==this.cwd)return this[L](ce,this.dmode,fe=>{if(fe){this[k](fe,w),J();return}ge()})}ge()},ge=()=>{n.lstat(w.absolute,(ce,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>w.mtime)){this[N](w),J();return}if(ce||this[F](w,fe))return this[T](null,w,J);if(fe.isDirectory()){if(w.type==="Directory"){let Se=!this.noChmod&&w.mode&&(fe.mode&4095)!==w.mode,ct=ht=>this[T](ht,w,J);return Se?n.chmod(w.absolute,w.mode,ct):ct()}if(w.absolute!==this.cwd)return n.rmdir(w.absolute,Se=>this[T](Se,w,J))}if(w.absolute===this.cwd)return this[T](null,w,J);q(w.absolute,Se=>this[T](Se,w,J))})};this[g]?ae():se()}[T](w,V,J){if(w){this[k](w,V),J();return}switch(V.type){case"File":case"OldFile":case"ContiguousFile":return this[O](V,J);case"Link":return this[S](V,J);case"SymbolicLink":return this[b](V,J);case"Directory":case"GNUDumpDir":return this[x](V,J)}}[B](w,V,J,se){n[J](V,w.absolute,ae=>{ae?this[k](ae,w):(this[R](),w.resume()),se()})}},be=w=>{try{return[null,w()]}catch(V){return[V,null]}},Ee=class extends le{[T](w,V){return super[T](w,V,()=>{})}[d](w){if(this[v](w),!this[g]){let ae=this[L](this.cwd,this.dmode);if(ae)return this[k](ae,w);this[g]=!0}if(w.absolute!==this.cwd){let ae=h(o.dirname(w.absolute));if(ae!==this.cwd){let ge=this[L](ae,this.dmode);if(ge)return this[k](ge,w)}}let[V,J]=be(()=>n.lstatSync(w.absolute));if(J&&(this.keep||this.newer&&J.mtime>w.mtime))return this[N](w);if(V||this[F](w,J))return this[T](null,w);if(J.isDirectory()){if(w.type==="Directory"){let ge=!this.noChmod&&w.mode&&(J.mode&4095)!==w.mode,[ce]=ge?be(()=>{n.chmodSync(w.absolute,w.mode)}):[];return this[T](ce,w)}let[ae]=be(()=>n.rmdirSync(w.absolute));this[T](ae,w)}let[se]=w.absolute===this.cwd?[]:be(()=>Z(w.absolute));this[T](se,w)}[O](w,V){let J=w.mode&4095||this.fmode,se=ce=>{let fe;try{n.closeSync(ae)}catch(Se){fe=Se}(ce||fe)&&this[k](ce||fe,w),V()},ae;try{ae=n.openSync(w.absolute,P(w.size),J)}catch(ce){return se(ce)}let ge=this.transform&&this.transform(w)||w;ge!==w&&(ge.on("error",ce=>this[k](ce,w)),w.pipe(ge)),ge.on("data",ce=>{try{n.writeSync(ae,ce,0,ce.length)}catch(fe){se(fe)}}),ge.on("end",ce=>{let fe=null;if(w.mtime&&!this.noMtime){let Se=w.atime||new Date,ct=w.mtime;try{n.futimesSync(ae,Se,ct)}catch(ht){try{n.utimesSync(w.absolute,Se,ct)}catch{fe=ht}}}if(this[Y](w)){let Se=this[W](w),ct=this[E](w);try{n.fchownSync(ae,Se,ct)}catch(ht){try{n.chownSync(w.absolute,Se,ct)}catch{fe=fe||ht}}}se(fe)})}[x](w,V){let J=w.mode&4095||this.dmode,se=this[L](w.absolute,J);if(se){this[k](se,w),V();return}if(w.mtime&&!this.noMtime)try{n.utimesSync(w.absolute,w.atime||new Date,w.mtime)}catch{}if(this[Y](w))try{n.chownSync(w.absolute,this[W](w),this[E](w))}catch{}V(),w.resume()}[L](w,V){try{return u.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:V})}catch(J){return J}}[B](w,V,J,se){try{n[J+"Sync"](V,w.absolute),se(),w.resume()}catch(ae){return this[k](ae,w)}}};le.Sync=Ee,e.exports=le}),mx=Q((t,e)=>{"use strict";K();var r=En(),i=yy(),n=te("fs"),s=wn(),o=te("path"),u=bn();e.exports=(p,m,d)=>{typeof p=="function"?(d=p,m=null,p={}):Array.isArray(p)&&(m=p,p={}),typeof m=="function"&&(d=m,m=null),m?m=Array.from(m):m=[];let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return m.length&&a(y,m),y.file&&y.sync?l(y):y.file?c(y,d):y.sync?h(y):f(y)};var a=(p,m)=>{let d=new Map(m.map(F=>[u(F),!0])),y=p.filter,v=(F,T)=>{let O=T||o.parse(F).root||".",x=F===O?!1:d.has(F)?d.get(F):v(o.dirname(F),O);return d.set(F,x),x};p.filter=y?(F,T)=>y(F,T)&&v(u(F)):F=>v(u(F))},l=p=>{let m=new i.Sync(p),d=p.file,y=n.statSync(d),v=p.maxReadSize||16*1024*1024;new s.ReadStreamSync(d,{readSize:v,size:y.size}).pipe(m)},c=(p,m)=>{let d=new i(p),y=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((T,O)=>{d.on("error",O),d.on("close",T),n.stat(v,(x,B)=>{if(x)O(x);else{let b=new s.ReadStream(v,{readSize:y,size:B.size});b.on("error",O),b.pipe(d)}})});return m?F.then(m,m):F},h=p=>new i.Sync(p),f=p=>new i(p)}),yx=Q(t=>{"use strict";K(),t.c=t.create=ix(),t.r=t.replace=py(),t.t=t.list=kl(),t.u=t.update=nx(),t.x=t.extract=mx(),t.Pack=Ol(),t.Unpack=yy(),t.Parse=Tl(),t.ReadEntry=Rl(),t.WriteEntry=hy(),t.Header=_n(),t.Pax=xl(),t.types=ay()}),gx=Q((t,e)=>{K();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var u=this._errors[o],a=u.message,l=(i[a]||0)+1;i[a]=l,l>=s&&(n=u,s=l)}return n}}),Ex=Q(t=>{K();var e=gx();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(u,a){return u-a}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var u=n[o],a=r[u];r[u]=function(l){var c=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){l.apply(r,h)})}.bind(r,a),r[u].options=i}}}),Dx=Q((t,e)=>{K(),e.exports=Ex()}),_x=Q((t,e)=>{K();var r=Dx();function i(n,s){function o(u,a){var l=s||{},c;"randomize"in l||(l.randomize=!0),c=r.operation(l);function h(m){a(m||new Error("Aborted"))}function f(m,d){if(m.bail){h(m);return}c.retry(m)?l.onRetry&&l.onRetry(m,d):a(c.mainError())}function p(m){var d;try{d=n(h,m)}catch(y){f(y,m);return}Promise.resolve(d).then(u).catch(function(y){f(y,m)})}c.attempt(p)}return new Promise(o)}e.exports=i}),bx={};$R(bx,{bold:()=>Cx,dimmed:()=>Rx,error:()=>Ox,info:()=>vx,item:()=>xx,log:()=>Sn,turboBlue:()=>Di,turboGradient:()=>Sx,turboLoader:()=>Ax,turboRed:()=>by,warn:()=>Fx,yellow:()=>wy});K();var Dy="#0099F7",_y="#F11712",wx="#FFFF00",Sx=(0,Ey.default)(Dy,_y),Di=Si.default.hex(Dy),by=Si.default.hex(_y),wy=Si.default.hex(wx),Ax=t=>(0,gy.default)({text:t,spinner:{frames:[" ",Di("> "),Di(">> "),Di(">>>")]}}),vx=(...t)=>{Sn(Di.bold(">>>"),...t)},Cx=(...t)=>{Sn(Si.default.bold(...t))},Rx=(...t)=>{Sn(Si.default.dim(...t))},xx=(...t)=>{Sn(Di.bold(" \u2022"),...t)},Sn=(...t)=>{console.log(...t)},Fx=(...t)=>{console.error(wy.bold(">>>"),...t)},Ox=(...t)=>{console.error(by.bold(">>>"),...t)};K();K();K();K();var UB=zs(WR());K();K();function kx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}K();K();function Sl(t){return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sl(t)}K();function Lx(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bx(t,e){if(e&&(Sl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lx(t)}K();function Gs(t){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(t)}K();K();function mn(t,e){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mn(t,e)}function Px(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&&mn(t,e)}K();K();function Ix(t){return Function.toString.call(t).indexOf("[native code]")!==-1}K();K();function Nx(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Us(t,e,r){return Nx()?Us=Reflect.construct.bind():Us=function(i,n,s){var o=[null];o.push.apply(o,n);var u=Function.bind.apply(i,o),a=new u;return s&&mn(a,s.prototype),a},Us.apply(null,arguments)}function Al(t){var e=typeof Map=="function"?new Map:void 0;return Al=function(r){if(r===null||!Ix(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Us(r,arguments,Gs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),mn(i,r)},Al(t)}var GB=zs(XR()),YB=function(t){Px(e,t);function e(r){var i;return kx(this,e),i=Bx(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Al(Error));K();K();K();K();K();K();var n2=zs(yx()),s2=(0,Ay.promisify)(Sy.Stream.pipeline);K();K();var l2=zs(_x());K();K();K();var Le=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,Le)}};K();K();K();K();var Mx=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Ue({workspaceRoot:t}){let e=Nt.default.join(t,"package.json");try{return(0,Ze.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Le(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Le(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ws({workspaceRoot:t}){let{packageManager:e}=Ue({workspaceRoot:t});if(e)try{let r=Mx.exec(e);if(r){let[i,n]=r;return n}}catch{}}function An({workspaceRoot:t}){let e=Ue({workspaceRoot:t}),r=Nt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function iy({workspaceRoot:t}){let e=Nt.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=qu.load((0,Ze.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Le(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Ys({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Nt.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Ll({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Ks({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,Oy.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Nt.default.dirname(r),{name:n,description:s}=An({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Nt.default.join(i,"node_modules")}}}):[]}function jx({directory:t}){let e=Nt.default.resolve(process.cwd(),t);return{exists:(0,Ze.existsSync)(e),absolute:e}}function cr({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 Hx({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function It({project:t,options:e}){e!=null&&e.dry||(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}async function Ty({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Fy.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Ze.writeFile)(Nt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}}function qx({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],u=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${u}`:u,i.push(s)}}),{dependencyList:t,updated:i}}function ar({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=Ue({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},u=["dependencies","devDependencies","peerDependencies","optionalDependencies"];u.forEach(h=>{let f=s[h];if(f){let{updated:p,dependencyList:m}=qx({dependencyList:f,project:t,to:r});s[h]=m,o[h]=p}});let a=h=>{let f=o[h].length;if(f>0)return`${xy.default.green(f.toString())} ${h}`},l=u.map(a).filter(Boolean),c=`./${Cy.default.relative(t.paths.root,e.paths.packageJson)}`;if(l.length>=1){let h="updating";l.forEach((f,p)=>{l.length===1?h+=` ${f} in ${c}`:p===l.length-1?h+=`and ${f} in ${c}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${c}`);n!=null&&n.dry||(0,Ry.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var lr={name:"pnpm",lock:"pnpm-lock.yaml"};async function ky(t){let e=Br.default.join(t.workspaceRoot,lr.lock),r=Br.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ws({workspaceRoot:t.workspaceRoot});return(0,He.existsSync)(e)||(0,He.existsSync)(r)||i===lr.name}async function $x(t){if(!await ky(t))throw new Le("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=An(t);return{name:e,description:r,packageManager:lr.name,paths:Ys({root:t.workspaceRoot,lockFile:lr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:iy(t),workspaces:Ks({workspaceGlobs:iy(t),...t})}}}async function Ux(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(cr({action:"create",packageManager:lr.name,project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,He.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,He.writeFileSync)(Br.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
42
+ ${e.workspaceData.globs.map(u=>` - "${u}"`).join(`
43
+ `)}`))),s&&(ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})}))}async function Gx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({action:"remove",packageManager:lr.name,project:e}));let s=Ue({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,He.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,He.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,He.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function zx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Br.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,He.rmSync)(e.paths.lockfile,{force:!0})}async function Wx(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Br.default.relative(e.paths.root,e.paths.lockfile)} to ${lr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,He.existsSync)(e.paths.lockfile))try{await(0,vy.default)(lr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{It({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ty({project:e,options:r}),await s(),(0,He.rmSync)(Br.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Yx={detect:ky,read:$x,create:Ux,remove:Gx,clean:zx,convertLock:Wx};K();var _i={name:"npm",lock:"package-lock.json"};async function Ly(t){let e=yn.default.join(t.workspaceRoot,_i.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,wt.existsSync)(e)||r===_i.name}async function Kx(t){if(!await Ly(t))throw new Le("Not an npm project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:_i.name,paths:Ys({root:t.workspaceRoot,lockFile:_i.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function Vx(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(cr({packageManager:_i.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Zx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:_i.name,action:"remove",project:e}));let s=Ue({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,wt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,wt.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Jx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${yn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,wt.rmSync)(e.paths.lockfile,{force:!0})}async function Xx(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":It({project:e,options:r});break;case"npm":break;case"yarn":It({project:e,options:r});break}}var Qx={detect:Ly,read:Kx,create:Vx,remove:Zx,clean:Jx,convertLock:Xx};K();var Pr={name:"yarn",lock:"yarn.lock"};async function By(t){let e=bi.default.join(t.workspaceRoot,Pr.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,St.existsSync)(e)||r===Pr.name}async function eF(t){if(!await By(t))throw new Le("Not a yarn project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:Pr.name,paths:Ys({root:t.workspaceRoot,lockFile:Pr.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function tF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(cr({packageManager:Pr.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function rF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:Pr.name,action:"remove",project:e}));let s=Ue({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,St.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,St.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function iF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,St.rmSync)(e.paths.lockfile,{force:!0})}async function nF(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${bi.default.relative(e.paths.root,e.paths.lockfile)} to ${Pr.lock}`)};switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":n(),await Ty({project:e,options:r});break;case"npm":It({project:e,options:r});break;case"yarn":break}}var sF={detect:By,read:eF,create:tF,remove:rF,clean:iF,convertLock:nF};K();var wi={name:"bun",lock:"bun.lockb"};async function Py(t){let e=gn.default.join(t.workspaceRoot,wi.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===wi.name}async function oF(t){if(!await Py(t))throw new Le("Not a bun project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:wi.name,paths:Ys({root:t.workspaceRoot,lockFile:wi.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function uF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Hx({project:e}))throw new Le("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(cr({packageManager:wi.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function aF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:wi.name,action:"remove",project:e}));let s=Ue({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,At.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function lF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${gn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function cF(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":break;case"npm":It({project:e,options:r});break;case"yarn":It({project:e,options:r});break}}var hF={detect:Py,read:oF,create:uF,remove:aF,clean:lF,convertLock:cF},Iy={pnpm:Yx,yarn:sF,npm:Qx,bun:hF};K();async function Bl({root:t}){let{exists:e,absolute:r}=jx({directory:t});if(!e)throw new Le(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Iy))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Le("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}K();K();K();K();var DF=ie(qy());function Il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t){return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(t)}function Nl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ml(t,e){if(e&&(vn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nl(t)}function Ir(t){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ir(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ht(t,e)}function jl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ht(t,e)}function Hl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ql(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ai(t,e,r){return ql()?Ai=Reflect.construct.bind():Ai=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),l=new a;return o&&Ht(l,o.prototype),l},Ai.apply(null,arguments)}function Cn(t){var e=typeof Map=="function"?new Map:void 0;return Cn=function(i){if(i===null||!Hl(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Ai(i,arguments,Ir(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,i)},Cn(t)}var $y=ie(require("find-up"));var _F=ie(require("fs-extra")),qP=function(t){jl(e,t);function e(r){var i;return Il(this,e),i=Ml(this,Ir(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Cn(Error));var bF=ie(require("fs")),wF=ie(require("path"));var kF=ie(require("fs")),LF=ie(require("path"));var BF=ie($s());var it={};Oh(it,{bold:()=>xF,dimmed:()=>FF,error:()=>Jy,info:()=>RF,item:()=>OF,log:()=>Ri,turboBlue:()=>vi,turboGradient:()=>CF,turboLoader:()=>Vy,turboRed:()=>Yy,warn:()=>Zy,yellow:()=>Ky});var Ci=ie(require("chalk")),Uy=ie(require("ora")),Gy=ie(require("gradient-string")),zy="#0099F7",Wy="#F11712",vF="#FFFF00",CF=(0,Gy.default)(zy,Wy),vi=Ci.default.hex(zy),Yy=Ci.default.hex(Wy),Ky=Ci.default.hex(vF),Vy=t=>(0,Uy.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),RF=(...t)=>{Ri(vi.bold(">>>"),...t)},xF=(...t)=>{Ri(Ci.default.bold(...t))},FF=(...t)=>{Ri(Ci.default.dim(...t))},OF=(...t)=>{Ri(vi.bold(" \u2022"),...t)},Ri=(...t)=>{console.log(...t)},Zy=(...t)=>{console.error(Ky.bold(">>>"),...t)},Jy=(...t)=>{console.error(Yy.bold(">>>"),...t)};var Xy=ie(require("os")),Qy=ie(ni());async function Zs(t,e=[],r){let i={cwd:Xy.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,Qy.default)(t,e,i);return n.trim()}catch{return}}async function $l(){let[t,e,r,i]=await Promise.all([Zs("yarnpkg",["--version"]),Zs("npm",["--version"]),Zs("pnpm",["--version"]),Zs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var PF=ie(require("fs-extra"));var IF=ie(require("path")),NF=ie(require("fs-extra")),MF=ie(require("chalk"));var XD=require("stream"),QD=require("util"),_k=require("path"),bk=require("os"),e_=require("fs"),wk=ie(JD());var QI=(0,QD.promisify)(XD.Stream.pipeline);var t_=require("fs-extra");var kk=ie(require("path")),Lk=ie(a_()),Bk=ie(require("chalk")),xh=require("fs-extra");var ou=ie(require("chalk"));var dt=ie(require("chalk")),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(dt.default.green(" MODIFIED "),...e,this.dry?dt.default.dim("(dry run)"):"")}unchanged(...e){this._log(dt.default.gray(" UNCHANGED "),...e,this.dry?dt.default.dim("(dry run)"):"")}skipped(...e){this._log(dt.default.yellow(" SKIPPED "),...e,this.dry?dt.default.dim("(dry run)"):"")}error(...e){this._log(dt.default.red(" ERROR "),...e,this.dry?dt.default.dim("(dry run)"):"")}info(...e){this._log(dt.default.bold(" INFO "),...e,this.dry?dt.default.dim("(dry run)"):"")}};var l_=ie(require("os")),Fh=ie(require("path"));var iu=ie(require("chalk")),su=require("diff"),Ar=require("fs-extra"),nu=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Fh.default.extname(e.filePath)===".json"?this.before=(0,Ar.readJsonSync)(e.filePath):this.before=(0,Ar.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,su.diffJson)(this.before,e.after):this.changes=(0,su.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Fh.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Ar.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Ar.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(iu.default.green(r.value)):r.removed?process.stdout.write(iu.default.red(r.value)):process.stdout.write(iu.default.dim(r.value))}),it.log(l_.default.EOL)):it.log(this.after)}};var Yn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new 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 nu({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(ou.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ou.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(ou.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(it.log(),r.length>0){it.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),it.log()}}};function c_({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Yn(i);return{log:n,runner:s}}var p_="add-package-manager",Pk="Set the `packageManager` key in root `package.json` file",Ik="1.1.0";async function d_({root:t,options:e}){let{log:r,runner:i}=c_({transformer:p_,rootPath:t,options:e});r.info('Set "packageManager" key in root "package.json" file...');let n;try{n=await Bl({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=await $l(),{packageManager:o}=n,u=s[o];if(!u)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let a=`${o}@${u}`,l=h_.default.join(t,"package.json"),c=(0,f_.readJsonSync)(l),h=[{name:"package.json",path:t,packageJson:{...c,packageJsonPath:l}}];for(let f of h){let{packageJsonPath:p,...m}=f.packageJson,d={...m,packageManager:a};i.modifyFile({filePath:p,after:d})}return i.finish()}var Nk={name:p_,description:Pk,introducedIn:Ik,transformer:d_},Mk=Nk;0&&(module.exports={transformer});
212
44
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
213
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
214
45
  /*! Bundled license information:
215
46
 
216
47
  is-extglob/index.js:
@@ -259,6 +90,9 @@ queue-microtask/index.js:
259
90
  run-parallel/index.js:
260
91
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
261
92
 
93
+ @babel/runtime/helpers/regeneratorRuntime.js:
94
+ (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
95
+
262
96
  js-yaml/dist/js-yaml.mjs:
263
97
  (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
264
98
  */