@turbo/workspaces 1.10.13-canary.2 → 1.10.13
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.
- package/dist/{chunk-DULP2C7Y.mjs → chunk-IL3BSLIU.mjs} +25 -25
- package/dist/cli.js +3 -3
- package/dist/cli.mjs +1 -1
- package/dist/index.js +29 -29
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
var nt=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(l,n)=>(typeof require!="undefined"?require:l)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Hi=Object.create,ur=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Gi=Object.getOwnPropertyNames,qi=Object.getPrototypeOf,zi=Object.prototype.hasOwnProperty,Z=(e=>typeof nt<"u"?nt:typeof Proxy<"u"?new Proxy(e,{get:(l,n)=>(typeof nt<"u"?nt:l)[n]}):e)(function(e){if(typeof nt<"u")return nt.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Wi=(e,l)=>()=>(e&&(l=e(e=0)),l),M=(e,l)=>()=>(l||e((l={exports:{}}).exports,l),l.exports),Wr=(e,l)=>{for(var n in l)ur(e,n,{get:l[n],enumerable:!0})},Vi=(e,l,n,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let s of Gi(l))!zi.call(e,s)&&s!==n&&ur(e,s,{get:()=>l[s],enumerable:!(i=Ui(l,s))||i.enumerable});return e},ke=(e,l,n)=>(n=e!=null?Hi(qi(e)):{},Vi(l||!e||!e.__esModule?ur(n,"default",{value:e,enumerable:!0}):n,e)),B=Wi(()=>{});var Ki=M((e,l)=>{"use strict";B();var n=(i,s)=>{for(let f of Reflect.ownKeys(s))Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(s,f));return i};l.exports=n,l.exports.default=n}),Nt=M((e,l)=>{"use strict";B();var n=Ki(),i=new WeakMap,s=(f,a={})=>{if(typeof f!="function")throw new TypeError("Expected a function");let r,t=0,h=f.displayName||f.name||"<anonymous>",u=function(...c){if(i.set(u,++t),t===1)r=f.apply(this,c),f=null;else if(a.throw===!0)throw new Error(`Function \`${h}\` can only be called once`);return r};return n(u,f),i.set(u,t),u};l.exports=s,l.exports.default=s,l.exports.callCount=f=>{if(!i.has(f))throw new Error(`The given function \`${f.name}\` is not wrapped by the \`onetime\` package`);return i.get(f)}}),Yi=M((e,l)=>{B(),l.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&l.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&l.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),$t=M((e,l)=>{B();var n=global.process,i=function(y){return y&&typeof y=="object"&&typeof y.removeListener=="function"&&typeof y.emit=="function"&&typeof y.reallyExit=="function"&&typeof y.listeners=="function"&&typeof y.kill=="function"&&typeof y.pid=="number"&&typeof y.on=="function"};i(n)?(s=Z("assert"),f=Yi(),a=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?t=n.__signal_exit_emitter__:(t=n.__signal_exit_emitter__=new r,t.count=0,t.emitted={}),t.infinite||(t.setMaxListeners(1/0),t.infinite=!0),l.exports=function(y,D){if(!i(global.process))return function(){};s.equal(typeof y,"function","a callback must be provided for exit handler"),o===!1&&d();var w="exit";D&&D.alwaysLast&&(w="afterexit");var v=function(){t.removeListener(w,y),t.listeners("exit").length===0&&t.listeners("afterexit").length===0&&h()};return t.on(w,y),v},h=function(){!o||!i(global.process)||(o=!1,f.forEach(function(y){try{n.removeListener(y,c[y])}catch{}}),n.emit=b,n.reallyExit=p,t.count-=1)},l.exports.unload=h,u=function(y,D,w){t.emitted[y]||(t.emitted[y]=!0,t.emit(y,D,w))},c={},f.forEach(function(y){c[y]=function(){if(i(global.process)){var D=n.listeners(y);D.length===t.count&&(h(),u("exit",null,y),u("afterexit",null,y),a&&y==="SIGHUP"&&(y="SIGINT"),n.kill(n.pid,y))}}}),l.exports.signals=function(){return f},o=!1,d=function(){o||!i(global.process)||(o=!0,t.count+=1,f=f.filter(function(y){try{return n.on(y,c[y]),!0}catch{return!1}}),n.emit=_,n.reallyExit=g)},l.exports.load=d,p=n.reallyExit,g=function(y){!i(global.process)||(n.exitCode=y||0,u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),p.call(n,n.exitCode))},b=n.emit,_=function(y,D){if(y==="exit"&&i(global.process)){D!==void 0&&(n.exitCode=D);var w=b.apply(this,arguments);return u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),w}else return b.apply(this,arguments)}):l.exports=function(){return function(){}};var s,f,a,r,t,h,u,c,o,d,p,g,b,_});import As from"os";var Ji=M((e,l)=>{B(),l.exports=f,f.sync=a;var n=Z("fs");function i(r,t){var h=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!h||(h=h.split(";"),h.indexOf("")!==-1))return!0;for(var u=0;u<h.length;u++){var c=h[u].toLowerCase();if(c&&r.substr(-c.length).toLowerCase()===c)return!0}return!1}function s(r,t,h){return!r.isSymbolicLink()&&!r.isFile()?!1:i(t,h)}function f(r,t,h){n.stat(r,function(u,c){h(u,u?!1:s(c,r,t))})}function a(r,t){return s(n.statSync(r),r,t)}}),Zi=M((e,l)=>{B(),l.exports=i,i.sync=s;var n=Z("fs");function i(r,t,h){n.stat(r,function(u,c){h(u,u?!1:f(c,t))})}function s(r,t){return f(n.statSync(r),t)}function f(r,t){return r.isFile()&&a(r,t)}function a(r,t){var h=r.mode,u=r.uid,c=r.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),d=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),p=parseInt("100",8),g=parseInt("010",8),b=parseInt("001",8),_=p|g,y=h&b||h&g&&c===d||h&p&&u===o||h&_&&o===0;return y}}),Xi=M((e,l)=>{B();var n=Z("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Ji():i=Zi(),l.exports=s,s.sync=f;function s(a,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(h,u){s(a,r||{},function(c,o){c?u(c):h(o)})})}i(a,r||{},function(h,u){h&&(h.code==="EACCES"||r&&r.ignoreErrors)&&(h=null,u=!1),t(h,u)})}function f(a,r){try{return i.sync(a,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}}),Qi=M((e,l)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=Z("path"),s=n?";":":",f=Xi(),a=u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"}),r=(u,c)=>{let o=c.colon||s,d=u.match(/\//)||n&&u.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(o)],p=n?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=n?p.split(o):[""];return n&&u.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:p}},t=(u,c,o)=>{typeof c=="function"&&(o=c,c={}),c||(c={});let{pathEnv:d,pathExt:p,pathExtExe:g}=r(u,c),b=[],_=D=>new Promise((w,v)=>{if(D===d.length)return c.all&&b.length?w(b):v(a(u));let m=d[D],E=/^".*"$/.test(m)?m.slice(1,-1):m,S=i.join(E,u),A=!E&&/^\.[\\\/]/.test(u)?u.slice(0,2)+S:S;w(y(A,D,0))}),y=(D,w,v)=>new Promise((m,E)=>{if(v===p.length)return m(_(w+1));let S=p[v];f(D+S,{pathExt:g},(A,x)=>{if(!A&&x)if(c.all)b.push(D+S);else return m(D+S);return m(y(D,w,v+1))})});return o?_(0).then(D=>o(null,D),o):_(0)},h=(u,c)=>{c=c||{};let{pathEnv:o,pathExt:d,pathExtExe:p}=r(u,c),g=[];for(let b=0;b<o.length;b++){let _=o[b],y=/^".*"$/.test(_)?_.slice(1,-1):_,D=i.join(y,u),w=!y&&/^\.[\\\/]/.test(u)?u.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=w+d[v];try{if(f.sync(m,{pathExt:p}))if(c.all)g.push(m);else return m}catch{}}}if(c.all&&g.length)return g;if(c.nothrow)return null;throw a(u)};l.exports=t,t.sync=h}),Vr=M((e,l)=>{"use strict";B();var n=(i={})=>{let s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).reverse().find(f=>f.toUpperCase()==="PATH")||"Path"};l.exports=n,l.exports.default=n}),es=M((e,l)=>{"use strict";B();var n=Z("path"),i=Qi(),s=Vr();function f(r,t){let h=r.options.env||process.env,u=process.cwd(),c=r.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(r.options.cwd)}catch{}let d;try{d=i.sync(r.command,{path:h[s({env:h})],pathExt:t?n.delimiter:void 0})}catch{}finally{o&&process.chdir(u)}return d&&(d=n.resolve(c?r.options.cwd:"",d)),d}function a(r){return f(r)||f(r,!0)}l.exports=a}),ts=M((e,l)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function i(f){return f=f.replace(n,"^$1"),f}function s(f,a){return f=`${f}`,f=f.replace(/(\\*)"/g,'$1$1\\"'),f=f.replace(/(\\*)$/,"$1$1"),f=`"${f}"`,f=f.replace(n,"^$1"),a&&(f=f.replace(n,"^$1")),f}l.exports.command=i,l.exports.argument=s}),rs=M((e,l)=>{"use strict";B(),l.exports=/^#!(.*)/}),ns=M((e,l)=>{"use strict";B();var n=rs();l.exports=(i="")=>{let s=i.match(n);if(!s)return null;let[f,a]=s[0].replace(/#! ?/,"").split(" "),r=f.split("/").pop();return r==="env"?a:a?`${r} ${a}`:r}}),is=M((e,l)=>{"use strict";B();var n=Z("fs"),i=ns();function s(f){let a=Buffer.alloc(150),r;try{r=n.openSync(f,"r"),n.readSync(r,a,0,150,0),n.closeSync(r)}catch{}return i(a.toString())}l.exports=s}),ss=M((e,l)=>{"use strict";B();var n=Z("path"),i=es(),s=ts(),f=is(),a=process.platform==="win32",r=/\.(?:com|exe)$/i,t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function h(o){o.file=i(o);let d=o.file&&f(o.file);return d?(o.args.unshift(o.file),o.command=d,i(o)):o.file}function u(o){if(!a)return o;let d=h(o),p=!r.test(d);if(o.options.forceShell||p){let g=t.test(d);o.command=n.normalize(o.command),o.command=s.command(o.command),o.args=o.args.map(_=>s.argument(_,g));let b=[o.command].concat(o.args).join(" ");o.args=["/d","/s","/c",`"${b}"`],o.command=process.env.comspec||"cmd.exe",o.options.windowsVerbatimArguments=!0}return o}function c(o,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let g={command:o,args:d,options:p,file:void 0,original:{command:o,args:d}};return p.shell?g:u(g)}l.exports=c}),os=M((e,l)=>{"use strict";B();var n=process.platform==="win32";function i(r,t){return Object.assign(new Error(`${t} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${r.command}`,path:r.command,spawnargs:r.args})}function s(r,t){if(!n)return;let h=r.emit;r.emit=function(u,c){if(u==="exit"){let o=f(c,t,"spawn");if(o)return h.call(r,"error",o)}return h.apply(r,arguments)}}function f(r,t){return n&&r===1&&!t.file?i(t.original,"spawn"):null}function a(r,t){return n&&r===1&&!t.file?i(t.original,"spawnSync"):null}l.exports={hookChildProcess:s,verifyENOENT:f,verifyENOENTSync:a,notFoundError:i}}),as=M((e,l)=>{"use strict";B();var n=Z("child_process"),i=ss(),s=os();function f(r,t,h){let u=i(r,t,h),c=n.spawn(u.command,u.args,u.options);return s.hookChildProcess(c,u),c}function a(r,t,h){let u=i(r,t,h),c=n.spawnSync(u.command,u.args,u.options);return c.error=c.error||s.verifyENOENTSync(c.status,u),c}l.exports=f,l.exports.spawn=f,l.exports.sync=a,l.exports._parse=i,l.exports._enoent=s}),us=M((e,l)=>{"use strict";B(),l.exports=n=>{let i=typeof n=="string"?`
|
|
1
|
+
var nt=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(l,n)=>(typeof require!="undefined"?require:l)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Hi=Object.create,ur=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Gi=Object.getOwnPropertyNames,qi=Object.getPrototypeOf,zi=Object.prototype.hasOwnProperty,Z=(e=>typeof nt<"u"?nt:typeof Proxy<"u"?new Proxy(e,{get:(l,n)=>(typeof nt<"u"?nt:l)[n]}):e)(function(e){if(typeof nt<"u")return nt.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Wi=(e,l)=>()=>(e&&(l=e(e=0)),l),M=(e,l)=>()=>(l||e((l={exports:{}}).exports,l),l.exports),Wr=(e,l)=>{for(var n in l)ur(e,n,{get:l[n],enumerable:!0})},Vi=(e,l,n,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let s of Gi(l))!zi.call(e,s)&&s!==n&&ur(e,s,{get:()=>l[s],enumerable:!(i=Ui(l,s))||i.enumerable});return e},xe=(e,l,n)=>(n=e!=null?Hi(qi(e)):{},Vi(l||!e||!e.__esModule?ur(n,"default",{value:e,enumerable:!0}):n,e)),B=Wi(()=>{});var Ki=M((e,l)=>{"use strict";B();var n=(i,s)=>{for(let f of Reflect.ownKeys(s))Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(s,f));return i};l.exports=n,l.exports.default=n}),Nt=M((e,l)=>{"use strict";B();var n=Ki(),i=new WeakMap,s=(f,a={})=>{if(typeof f!="function")throw new TypeError("Expected a function");let r,t=0,h=f.displayName||f.name||"<anonymous>",u=function(...c){if(i.set(u,++t),t===1)r=f.apply(this,c),f=null;else if(a.throw===!0)throw new Error(`Function \`${h}\` can only be called once`);return r};return n(u,f),i.set(u,t),u};l.exports=s,l.exports.default=s,l.exports.callCount=f=>{if(!i.has(f))throw new Error(`The given function \`${f.name}\` is not wrapped by the \`onetime\` package`);return i.get(f)}}),Yi=M((e,l)=>{B(),l.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&l.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&l.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),$t=M((e,l)=>{B();var n=global.process,i=function(y){return y&&typeof y=="object"&&typeof y.removeListener=="function"&&typeof y.emit=="function"&&typeof y.reallyExit=="function"&&typeof y.listeners=="function"&&typeof y.kill=="function"&&typeof y.pid=="number"&&typeof y.on=="function"};i(n)?(s=Z("assert"),f=Yi(),a=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?t=n.__signal_exit_emitter__:(t=n.__signal_exit_emitter__=new r,t.count=0,t.emitted={}),t.infinite||(t.setMaxListeners(1/0),t.infinite=!0),l.exports=function(y,D){if(!i(global.process))return function(){};s.equal(typeof y,"function","a callback must be provided for exit handler"),o===!1&&d();var w="exit";D&&D.alwaysLast&&(w="afterexit");var v=function(){t.removeListener(w,y),t.listeners("exit").length===0&&t.listeners("afterexit").length===0&&h()};return t.on(w,y),v},h=function(){!o||!i(global.process)||(o=!1,f.forEach(function(y){try{n.removeListener(y,c[y])}catch{}}),n.emit=b,n.reallyExit=p,t.count-=1)},l.exports.unload=h,u=function(y,D,w){t.emitted[y]||(t.emitted[y]=!0,t.emit(y,D,w))},c={},f.forEach(function(y){c[y]=function(){if(i(global.process)){var D=n.listeners(y);D.length===t.count&&(h(),u("exit",null,y),u("afterexit",null,y),a&&y==="SIGHUP"&&(y="SIGINT"),n.kill(n.pid,y))}}}),l.exports.signals=function(){return f},o=!1,d=function(){o||!i(global.process)||(o=!0,t.count+=1,f=f.filter(function(y){try{return n.on(y,c[y]),!0}catch{return!1}}),n.emit=_,n.reallyExit=g)},l.exports.load=d,p=n.reallyExit,g=function(y){!i(global.process)||(n.exitCode=y||0,u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),p.call(n,n.exitCode))},b=n.emit,_=function(y,D){if(y==="exit"&&i(global.process)){D!==void 0&&(n.exitCode=D);var w=b.apply(this,arguments);return u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),w}else return b.apply(this,arguments)}):l.exports=function(){return function(){}};var s,f,a,r,t,h,u,c,o,d,p,g,b,_});import As from"os";var Ji=M((e,l)=>{B(),l.exports=f,f.sync=a;var n=Z("fs");function i(r,t){var h=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!h||(h=h.split(";"),h.indexOf("")!==-1))return!0;for(var u=0;u<h.length;u++){var c=h[u].toLowerCase();if(c&&r.substr(-c.length).toLowerCase()===c)return!0}return!1}function s(r,t,h){return!r.isSymbolicLink()&&!r.isFile()?!1:i(t,h)}function f(r,t,h){n.stat(r,function(u,c){h(u,u?!1:s(c,r,t))})}function a(r,t){return s(n.statSync(r),r,t)}}),Zi=M((e,l)=>{B(),l.exports=i,i.sync=s;var n=Z("fs");function i(r,t,h){n.stat(r,function(u,c){h(u,u?!1:f(c,t))})}function s(r,t){return f(n.statSync(r),t)}function f(r,t){return r.isFile()&&a(r,t)}function a(r,t){var h=r.mode,u=r.uid,c=r.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),d=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),p=parseInt("100",8),g=parseInt("010",8),b=parseInt("001",8),_=p|g,y=h&b||h&g&&c===d||h&p&&u===o||h&_&&o===0;return y}}),Xi=M((e,l)=>{B();var n=Z("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Ji():i=Zi(),l.exports=s,s.sync=f;function s(a,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(h,u){s(a,r||{},function(c,o){c?u(c):h(o)})})}i(a,r||{},function(h,u){h&&(h.code==="EACCES"||r&&r.ignoreErrors)&&(h=null,u=!1),t(h,u)})}function f(a,r){try{return i.sync(a,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}}),Qi=M((e,l)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=Z("path"),s=n?";":":",f=Xi(),a=u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"}),r=(u,c)=>{let o=c.colon||s,d=u.match(/\//)||n&&u.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(o)],p=n?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=n?p.split(o):[""];return n&&u.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:p}},t=(u,c,o)=>{typeof c=="function"&&(o=c,c={}),c||(c={});let{pathEnv:d,pathExt:p,pathExtExe:g}=r(u,c),b=[],_=D=>new Promise((w,v)=>{if(D===d.length)return c.all&&b.length?w(b):v(a(u));let m=d[D],E=/^".*"$/.test(m)?m.slice(1,-1):m,S=i.join(E,u),A=!E&&/^\.[\\\/]/.test(u)?u.slice(0,2)+S:S;w(y(A,D,0))}),y=(D,w,v)=>new Promise((m,E)=>{if(v===p.length)return m(_(w+1));let S=p[v];f(D+S,{pathExt:g},(A,k)=>{if(!A&&k)if(c.all)b.push(D+S);else return m(D+S);return m(y(D,w,v+1))})});return o?_(0).then(D=>o(null,D),o):_(0)},h=(u,c)=>{c=c||{};let{pathEnv:o,pathExt:d,pathExtExe:p}=r(u,c),g=[];for(let b=0;b<o.length;b++){let _=o[b],y=/^".*"$/.test(_)?_.slice(1,-1):_,D=i.join(y,u),w=!y&&/^\.[\\\/]/.test(u)?u.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=w+d[v];try{if(f.sync(m,{pathExt:p}))if(c.all)g.push(m);else return m}catch{}}}if(c.all&&g.length)return g;if(c.nothrow)return null;throw a(u)};l.exports=t,t.sync=h}),Vr=M((e,l)=>{"use strict";B();var n=(i={})=>{let s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).reverse().find(f=>f.toUpperCase()==="PATH")||"Path"};l.exports=n,l.exports.default=n}),es=M((e,l)=>{"use strict";B();var n=Z("path"),i=Qi(),s=Vr();function f(r,t){let h=r.options.env||process.env,u=process.cwd(),c=r.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(r.options.cwd)}catch{}let d;try{d=i.sync(r.command,{path:h[s({env:h})],pathExt:t?n.delimiter:void 0})}catch{}finally{o&&process.chdir(u)}return d&&(d=n.resolve(c?r.options.cwd:"",d)),d}function a(r){return f(r)||f(r,!0)}l.exports=a}),ts=M((e,l)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function i(f){return f=f.replace(n,"^$1"),f}function s(f,a){return f=`${f}`,f=f.replace(/(\\*)"/g,'$1$1\\"'),f=f.replace(/(\\*)$/,"$1$1"),f=`"${f}"`,f=f.replace(n,"^$1"),a&&(f=f.replace(n,"^$1")),f}l.exports.command=i,l.exports.argument=s}),rs=M((e,l)=>{"use strict";B(),l.exports=/^#!(.*)/}),ns=M((e,l)=>{"use strict";B();var n=rs();l.exports=(i="")=>{let s=i.match(n);if(!s)return null;let[f,a]=s[0].replace(/#! ?/,"").split(" "),r=f.split("/").pop();return r==="env"?a:a?`${r} ${a}`:r}}),is=M((e,l)=>{"use strict";B();var n=Z("fs"),i=ns();function s(f){let a=Buffer.alloc(150),r;try{r=n.openSync(f,"r"),n.readSync(r,a,0,150,0),n.closeSync(r)}catch{}return i(a.toString())}l.exports=s}),ss=M((e,l)=>{"use strict";B();var n=Z("path"),i=es(),s=ts(),f=is(),a=process.platform==="win32",r=/\.(?:com|exe)$/i,t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function h(o){o.file=i(o);let d=o.file&&f(o.file);return d?(o.args.unshift(o.file),o.command=d,i(o)):o.file}function u(o){if(!a)return o;let d=h(o),p=!r.test(d);if(o.options.forceShell||p){let g=t.test(d);o.command=n.normalize(o.command),o.command=s.command(o.command),o.args=o.args.map(_=>s.argument(_,g));let b=[o.command].concat(o.args).join(" ");o.args=["/d","/s","/c",`"${b}"`],o.command=process.env.comspec||"cmd.exe",o.options.windowsVerbatimArguments=!0}return o}function c(o,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let g={command:o,args:d,options:p,file:void 0,original:{command:o,args:d}};return p.shell?g:u(g)}l.exports=c}),os=M((e,l)=>{"use strict";B();var n=process.platform==="win32";function i(r,t){return Object.assign(new Error(`${t} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${r.command}`,path:r.command,spawnargs:r.args})}function s(r,t){if(!n)return;let h=r.emit;r.emit=function(u,c){if(u==="exit"){let o=f(c,t,"spawn");if(o)return h.call(r,"error",o)}return h.apply(r,arguments)}}function f(r,t){return n&&r===1&&!t.file?i(t.original,"spawn"):null}function a(r,t){return n&&r===1&&!t.file?i(t.original,"spawnSync"):null}l.exports={hookChildProcess:s,verifyENOENT:f,verifyENOENTSync:a,notFoundError:i}}),as=M((e,l)=>{"use strict";B();var n=Z("child_process"),i=ss(),s=os();function f(r,t,h){let u=i(r,t,h),c=n.spawn(u.command,u.args,u.options);return s.hookChildProcess(c,u),c}function a(r,t,h){let u=i(r,t,h),c=n.spawnSync(u.command,u.args,u.options);return c.error=c.error||s.verifyENOENTSync(c.status,u),c}l.exports=f,l.exports.spawn=f,l.exports.sync=a,l.exports._parse=i,l.exports._enoent=s}),us=M((e,l)=>{"use strict";B(),l.exports=n=>{let i=typeof n=="string"?`
|
|
2
2
|
`:`
|
|
3
3
|
`.charCodeAt(),s=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n}}),ls=M((e,l)=>{"use strict";B();var n=Z("path"),i=Vr(),s=f=>{f={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...f};let a,r=n.resolve(f.cwd),t=[];for(;a!==r;)t.push(n.join(r,"node_modules/.bin")),a=r,r=n.resolve(r,"..");let h=n.resolve(f.cwd,f.execPath,"..");return t.push(h),t.concat(f.path).join(n.delimiter)};l.exports=s,l.exports.default=s,l.exports.env=f=>{f={env:process.env,...f};let a={...f.env},r=i({env:a});return f.path=a[r],a[r]=l.exports(f),a}}),cs=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var l=[{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=l}),Kr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var l=function(){let f=s-i+1;return Array.from({length:f},n)};e.getRealtimeSignals=l;var n=function(f,a){return{name:`SIGRT${a+1}`,number:i+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,s=64;e.SIGRTMAX=s}),hs=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var l=Z("os"),n=cs(),i=Kr(),s=function(){let a=(0,i.getRealtimeSignals)();return[...n.SIGNALS,...a].map(f)};e.getSignals=s;var f=function({name:a,number:r,description:t,action:h,forced:u=!1,standard:c}){let{signals:{[a]:o}}=l.constants,d=o!==void 0;return{name:a,number:d?o:r,description:t,supported:d,action:h,forced:u,standard:c}}}),ps=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var l=Z("os"),n=hs(),i=Kr(),s=function(){return(0,n.getSignals)().reduce(f,{})},f=function(c,{name:o,number:d,description:p,supported:g,action:b,forced:_,standard:y}){return{...c,[o]:{name:o,number:d,description:p,supported:g,action:b,forced:_,standard:y}}},a=s();e.signalsByName=a;var r=function(){let c=(0,n.getSignals)(),o=i.SIGRTMAX+1,d=Array.from({length:o},(p,g)=>t(g,c));return Object.assign({},...d)},t=function(c,o){let d=h(c,o);if(d===void 0)return{};let{name:p,description:g,supported:b,action:_,forced:y,standard:D}=d;return{[c]:{name:p,number:c,description:g,supported:b,action:_,forced:y,standard:D}}},h=function(c,o){let d=o.find(({name:p})=>l.constants.signals[p]===c);return d!==void 0?d:o.find(p=>p.number===c)},u=r();e.signalsByNumber=u}),fs=M((e,l)=>{"use strict";B();var{signalsByName:n}=ps(),i=({timedOut:f,timeout:a,errorCode:r,signal:t,signalDescription:h,exitCode:u,isCanceled:c})=>f?`timed out after ${a} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:t!==void 0?`was killed with ${t} (${h})`:u!==void 0?`failed with exit code ${u}`:"failed",s=({stdout:f,stderr:a,all:r,error:t,signal:h,exitCode:u,command:c,escapedCommand:o,timedOut:d,isCanceled:p,killed:g,parsed:{options:{timeout:b}}})=>{u=u===null?void 0:u,h=h===null?void 0:h;let _=h===void 0?void 0:n[h].description,y=t&&t.code,D=`Command ${i({timedOut:d,timeout:b,errorCode:y,signal:h,signalDescription:_,exitCode:u,isCanceled:p})}: ${c}`,w=Object.prototype.toString.call(t)==="[object Error]",v=w?`${D}
|
|
4
4
|
${t.message}`:D,m=[v,a,f].filter(Boolean).join(`
|
|
5
|
-
`);return w?(t.originalMessage=t.message,t.message=m):t=new Error(m),t.shortMessage=v,t.command=c,t.escapedCommand=o,t.exitCode=u,t.signal=h,t.signalDescription=_,t.stdout=f,t.stderr=a,r!==void 0&&(t.all=r),"bufferedData"in t&&delete t.bufferedData,t.failed=!0,t.timedOut=Boolean(d),t.isCanceled=p,t.killed=g&&!d,t};l.exports=s}),ds=M((e,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],i=f=>n.some(a=>f[a]!==void 0),s=f=>{if(!f)return;let{stdio:a}=f;if(a===void 0)return n.map(t=>f[t]);if(i(f))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(t=>`\`${t}\``).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 r=Math.max(a.length,n.length);return Array.from({length:r},(t,h)=>a[h])};l.exports=s,l.exports.node=f=>{let a=s(f);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),ms=M((e,l)=>{"use strict";B();var n=Z("os"),i=$t(),s=1e3*5,f=(g,b="SIGTERM",_={})=>{let y=g(b);return a(g,b,_,y),y},a=(g,b,_,y)=>{if(!r(b,_,y))return;let D=h(_),w=setTimeout(()=>{g("SIGKILL")},D);w.unref&&w.unref()},r=(g,{forceKillAfterTimeout:b},_)=>t(g)&&b!==!1&&_,t=g=>g===n.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",h=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return s;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},u=(g,b)=>{g.kill()&&(b.isCanceled=!0)},c=(g,b,_)=>{g.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(g,{timeout:b,killSignal:_="SIGTERM"},y)=>{if(b===0||b===void 0)return y;let D,w=new Promise((m,E)=>{D=setTimeout(()=>{c(g,_,E)},b)}),v=y.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},p=async(g,{cleanup:b,detached:_},y)=>{if(!b||_)return y;let D=i(()=>{g.kill()});return y.finally(()=>{D()})};l.exports={spawnedKill:f,spawnedCancel:u,setupTimeout:o,validateTimeout:d,setExitHandler:p}}),ys=M((e,l)=>{"use strict";B();var n=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";n.writable=i=>n(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",n.readable=i=>n(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",n.duplex=i=>n.writable(i)&&n.readable(i),n.transform=i=>n.duplex(i)&&typeof i._transform=="function",l.exports=n}),gs=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=i=>{i={...i};let{array:s}=i,{encoding:f}=i,a=f==="buffer",r=!1;s?r=!(f||a):f=f||"utf8",a&&(f=null);let t=new n({objectMode:r});f&&t.setEncoding(f);let h=0,u=[];return t.on("data",c=>{u.push(c),r?h=u.length:h+=c.length}),t.getBufferedValue=()=>s?u:a?Buffer.concat(u,h):u.join(""),t.getBufferedLength=()=>h,t}}),bs=M((e,l)=>{"use strict";B();var{constants:n}=Z("buffer"),i=Z("stream"),{promisify:s}=Z("util"),f=gs(),a=s(i.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function t(h,u){if(!h)throw new Error("Expected a stream");u={maxBuffer:1/0,...u};let{maxBuffer:c}=u,o=f(u);return await new Promise((d,p)=>{let g=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),p(b)};(async()=>{try{await a(h,o),d()}catch(b){g(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&g(new r)})}),o.getBufferedValue()}l.exports=t,l.exports.buffer=(h,u)=>t(h,{...u,encoding:"buffer"}),l.exports.array=(h,u)=>t(h,{...u,array:!0}),l.exports.MaxBufferError=r}),vs=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var i=[],s=new n({objectMode:!0});return s.setMaxListeners(0),s.add=f,s.isEmpty=a,s.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(f),s;function f(t){return Array.isArray(t)?(t.forEach(f),this):(i.push(t),t.once("end",r.bind(null,t)),t.once("error",s.emit.bind(s,"error")),t.pipe(s,{end:!1}),this)}function a(){return i.length==0}function r(t){i=i.filter(function(h){return h!==t}),!i.length&&s.readable&&s.end()}}}),_s=M((e,l)=>{"use strict";B();var n=ys(),i=bs(),s=vs(),f=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},a=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=s();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},t=(c,{encoding:o,buffer:d,maxBuffer:p})=>{if(!(!c||!d))return o?i(c,{encoding:o,maxBuffer:p}):i.buffer(c,{maxBuffer:p})},h=async({stdout:c,stderr:o,all:d},{encoding:p,buffer:g,maxBuffer:b},_)=>{let y=t(c,{encoding:p,buffer:g,maxBuffer:b}),D=t(o,{encoding:p,buffer:g,maxBuffer:b}),w=t(d,{encoding:p,buffer:g,maxBuffer:b*2});try{return await Promise.all([_,y,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,y),r(o,D),r(d,w)])}},u=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:f,makeAllStream:a,getSpawnedResult:h,validateInputSync:u}}),Es=M((e,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(n,a)]),s=(a,r)=>{for(let[t,h]of i){let u=typeof r=="function"?(...c)=>Reflect.apply(h.value,r(),c):h.value.bind(r);Reflect.defineProperty(a,t,{...h,value:u})}return a},f=a=>new Promise((r,t)=>{a.on("exit",(h,u)=>{r({exitCode:h,signal:u})}),a.on("error",h=>{t(h)}),a.stdin&&a.stdin.on("error",h=>{t(h)})});l.exports={mergePromise:s,getSpawnedPromise:f}}),ws=M((e,l)=>{"use strict";B();var n=(u,c=[])=>Array.isArray(c)?[u,...c]:[u],i=/^[\w.-]+$/,s=/"/g,f=u=>typeof u!="string"||i.test(u)?u:`"${u.replace(s,'\\"')}"`,a=(u,c)=>n(u,c).join(" "),r=(u,c)=>n(u,c).map(o=>f(o)).join(" "),t=/ +/g,h=u=>{let c=[];for(let o of u.trim().split(t)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:a,getEscapedCommand:r,parseCommand:h}}),Ds=M((e,l)=>{"use strict";B();var n=Z("path"),i=Z("child_process"),s=as(),f=us(),a=ls(),r=Nt(),t=fs(),h=ds(),{spawnedKill:u,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:p}=ms(),{handleInput:g,getSpawnedResult:b,makeAllStream:_,validateInputSync:y}=_s(),{mergePromise:D,getSpawnedPromise:w}=Es(),{joinCommand:v,parseCommand:m,getEscapedCommand:E}=ws(),S=1e3*1e3*100,A=({env:k,extendEnv:O,preferLocal:I,localDir:$,execPath:R})=>{let G=O?{...process.env,...k}:k;return I?a.env({env:G,cwd:$,execPath:R}):G},x=(k,O,I={})=>{let $=s._parse(k,O,I);return k=$.command,O=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=h(I),process.platform==="win32"&&n.basename(k,".exe")==="cmd"&&O.unshift("/q"),{file:k,args:O,options:I,parsed:$}},L=(k,O,I)=>typeof O!="string"&&!Buffer.isBuffer(O)?I===void 0?void 0:"":k.stripFinalNewline?f(O):O,T=(k,O,I)=>{let $=x(k,O,I),R=v(k,O),G=E(k,O);d($.options);let W;try{W=i.spawn($.file,$.args,$.options)}catch(q){let ee=new i.ChildProcess,N=Promise.reject(t({error:q,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(ee,N)}let Q=w(W),P=o(W,$.options,Q),j=p(W,$.options,P),F={isCanceled:!1};W.kill=u.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,F);let J=r(async()=>{let[{error:q,exitCode:ee,signal:N,timedOut:K},te,se,le]=await b(W,$.options,j),ye=L($.options,te),de=L($.options,se),H=L($.options,le);if(q||ee!==0||N!==null){let V=t({error:q,exitCode:ee,signal:N,stdout:ye,stderr:de,all:H,command:R,escapedCommand:G,parsed:$,timedOut:K,isCanceled:F.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:R,escapedCommand:G,exitCode:0,stdout:ye,stderr:de,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(W,$.options.input),W.all=_(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(k,O,I)=>{let $=x(k,O,I),R=v(k,O),G=E(k,O);y($.options);let W;try{W=i.spawnSync($.file,$.args,$.options)}catch(j){throw t({error:j,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=t({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:R,escapedCommand:G,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:R,escapedCommand:G,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(k,O)=>{let[I,...$]=m(k);return T(I,$,O)},l.exports.commandSync=(k,O)=>{let[I,...$]=m(k);return T.sync(I,$,O)},l.exports.node=(k,O,I={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(I=O,O=[]);let $=h.node(I),R=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:G=process.execPath,nodeOptions:W=R}=I;return T(G,[...W,k,...Array.isArray(O)?O:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var Ss=ke(Ds());async function lr(e,l=[],n){let i={cwd:As.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...n};try{let{stdout:s}=await(0,Ss.default)(e,l,i);return s.trim()}catch{return}}async function Cs(){let[e,l,n]=await Promise.all([lr("yarnpkg",["--version"]),lr("npm",["--version"]),lr("pnpm",["--version"])]);return{yarn:e,pnpm:n,npm:l}}var xs=M((e,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(n,"\\$&")}}),ks=M((e,l)=>{"use strict";B(),l.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]}}),Yr=M((e,l)=>{B();var n=ks(),i={};for(s in n)n.hasOwnProperty(s)&&(i[n[s]]=s);var s,f=l.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(t in f)if(f.hasOwnProperty(t)){if(!("channels"in f[t]))throw new Error("missing channels property: "+t);if(!("labels"in f[t]))throw new Error("missing channel labels property: "+t);if(f[t].labels.length!==f[t].channels)throw new Error("channel and label counts mismatch: "+t);a=f[t].channels,r=f[t].labels,delete f[t].channels,delete f[t].labels,Object.defineProperty(f[t],"channels",{value:a}),Object.defineProperty(f[t],"labels",{value:r})}var a,r,t;f.rgb.hsl=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p=Math.min(c,o,d),g=Math.max(c,o,d),b=g-p,_,y,D;return g===p?_=0:c===g?_=(o-d)/b:o===g?_=2+(d-c)/b:d===g&&(_=4+(c-o)/b),_=Math.min(_*60,360),_<0&&(_+=360),D=(p+g)/2,g===p?y=0:D<=.5?y=b/(g+p):y=b/(2-g-p),[_,y*100,D*100]},f.rgb.hsv=function(u){var c,o,d,p,g,b=u[0]/255,_=u[1]/255,y=u[2]/255,D=Math.max(b,_,y),w=D-Math.min(b,_,y),v=function(m){return(D-m)/6/w+1/2};return w===0?p=g=0:(g=w/D,c=v(b),o=v(_),d=v(y),b===D?p=d-o:_===D?p=1/3+c-d:y===D&&(p=2/3+o-c),p<0?p+=1:p>1&&(p-=1)),[p*360,g*100,D*100]},f.rgb.hwb=function(u){var c=u[0],o=u[1],d=u[2],p=f.rgb.hsl(u)[0],g=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[p,g*100,d*100]},f.rgb.cmyk=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p,g,b,_;return _=Math.min(1-c,1-o,1-d),p=(1-c-_)/(1-_)||0,g=(1-o-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,g*100,b*100,_*100]};function h(u,c){return Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)+Math.pow(u[2]-c[2],2)}f.rgb.keyword=function(u){var c=i[u];if(c)return c;var o=1/0,d;for(var p in n)if(n.hasOwnProperty(p)){var g=n[p],b=h(u,g);b<o&&(o=b,d=p)}return d},f.keyword.rgb=function(u){return n[u]},f.rgb.xyz=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=c*.4124+o*.3576+d*.1805,g=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[p*100,g*100,b*100]},f.rgb.lab=function(u){var c=f.rgb.xyz(u),o=c[0],d=c[1],p=c[2],g,b,_;return o/=95.047,d/=100,p/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+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,g=116*d-16,b=500*(o-d),_=200*(d-p),[g,b,_]},f.hsl.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100,p,g,b,_,y;if(o===0)return y=d*255,[y,y,y];d<.5?g=d*(1+o):g=d+o-d*o,p=2*d-g,_=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?y=p+(g-p)*6*b:2*b<1?y=g:3*b<2?y=p+(g-p)*(2/3-b)*6:y=p,_[D]=y*255;return _},f.hsl.hsv=function(u){var c=u[0],o=u[1]/100,d=u[2]/100,p=o,g=Math.max(d,.01),b,_;return d*=2,o*=d<=1?d:2-d,p*=g<=1?g:2-g,_=(d+o)/2,b=d===0?2*p/(g+p):2*o/(d+o),[c,b*100,_*100]},f.hsv.rgb=function(u){var c=u[0]/60,o=u[1]/100,d=u[2]/100,p=Math.floor(c)%6,g=c-Math.floor(c),b=255*d*(1-o),_=255*d*(1-o*g),y=255*d*(1-o*(1-g));switch(d*=255,p){case 0:return[d,y,b];case 1:return[_,d,b];case 2:return[b,d,y];case 3:return[b,_,d];case 4:return[y,b,d];case 5:return[d,b,_]}},f.hsv.hsl=function(u){var c=u[0],o=u[1]/100,d=u[2]/100,p=Math.max(d,.01),g,b,_;return _=(2-o)*d,g=(2-o)*p,b=o*p,b/=g<=1?g:2-g,b=b||0,_/=2,[c,b*100,_*100]},f.hwb.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100,p=o+d,g,b,_,y;p>1&&(o/=p,d/=p),g=Math.floor(6*c),b=1-d,_=6*c-g,(g&1)!==0&&(_=1-_),y=o+_*(b-o);var D,w,v;switch(g){default:case 6:case 0:D=b,w=y,v=o;break;case 1:D=y,w=b,v=o;break;case 2:D=o,w=b,v=y;break;case 3:D=o,w=y,v=b;break;case 4:D=y,w=o,v=b;break;case 5:D=b,w=o,v=y;break}return[D*255,w*255,v*255]},f.cmyk.rgb=function(u){var c=u[0]/100,o=u[1]/100,d=u[2]/100,p=u[3]/100,g,b,_;return g=1-Math.min(1,c*(1-p)+p),b=1-Math.min(1,o*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[g*255,b*255,_*255]},f.xyz.rgb=function(u){var c=u[0]/100,o=u[1]/100,d=u[2]/100,p,g,b;return p=c*3.2406+o*-1.5372+d*-.4986,g=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*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),g=Math.min(Math.max(0,g),1),b=Math.min(Math.max(0,b),1),[p*255,g*255,b*255]},f.xyz.lab=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*o-16,g=500*(c-o),b=200*(o-d),[p,g,b]},f.lab.xyz=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;g=(c+16)/116,p=o/500+g,b=g-d/200;var _=Math.pow(g,3),y=Math.pow(p,3),D=Math.pow(b,3);return g=_>.008856?_:(g-16/116)/7.787,p=y>.008856?y:(p-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,p*=95.047,g*=100,b*=108.883,[p,g,b]},f.lab.lch=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return p=Math.atan2(d,o),g=p*360/2/Math.PI,g<0&&(g+=360),b=Math.sqrt(o*o+d*d),[c,b,g]},f.lch.lab=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return b=d/360*2*Math.PI,p=o*Math.cos(b),g=o*Math.sin(b),[c,p,g]},f.rgb.ansi16=function(u){var c=u[0],o=u[1],d=u[2],p=1 in arguments?arguments[1]:f.rgb.hsv(u)[2];if(p=Math.round(p/50),p===0)return 30;var g=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return p===2&&(g+=60),g},f.hsv.ansi16=function(u){return f.rgb.ansi16(f.hsv.rgb(u),u[2])},f.rgb.ansi256=function(u){var c=u[0],o=u[1],d=u[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var p=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return p},f.ansi16.rgb=function(u){var c=u%10;if(c===0||c===7)return u>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(u>50)+1)*.5,d=(c&1)*o*255,p=(c>>1&1)*o*255,g=(c>>2&1)*o*255;return[d,p,g]},f.ansi256.rgb=function(u){if(u>=232){var c=(u-232)*10+8;return[c,c,c]}u-=16;var o,d=Math.floor(u/36)/5*255,p=Math.floor((o=u%36)/6)/5*255,g=o%6/5*255;return[d,p,g]},f.rgb.hex=function(u){var c=((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},f.hex.rgb=function(u){var c=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(_){return _+_}).join(""));var d=parseInt(o,16),p=d>>16&255,g=d>>8&255,b=d&255;return[p,g,b]},f.rgb.hcg=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p=Math.max(Math.max(c,o),d),g=Math.min(Math.min(c,o),d),b=p-g,_,y;return b<1?_=g/(1-b):_=0,b<=0?y=0:p===c?y=(o-d)/b%6:p===o?y=2+(d-c)/b:y=4+(c-o)/b+4,y/=6,y%=1,[y*360,b*100,_*100]},f.hsl.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=1,p=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(p=(o-.5*d)/(1-d)),[u[0],d*100,p*100]},f.hsv.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=c*o,p=0;return d<1&&(p=(o-d)/(1-d)),[u[0],d*100,p*100]},f.hcg.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100;if(o===0)return[d*255,d*255,d*255];var p=[0,0,0],g=c%1*6,b=g%1,_=1-b,y=0;switch(Math.floor(g)){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 y=(1-o)*d,[(o*p[0]+y)*255,(o*p[1]+y)*255,(o*p[2]+y)*255]},f.hcg.hsv=function(u){var c=u[1]/100,o=u[2]/100,d=c+o*(1-c),p=0;return d>0&&(p=c/d),[u[0],p*100,d*100]},f.hcg.hsl=function(u){var c=u[1]/100,o=u[2]/100,d=o*(1-c)+.5*c,p=0;return d>0&&d<.5?p=c/(2*d):d>=.5&&d<1&&(p=c/(2*(1-d))),[u[0],p*100,d*100]},f.hcg.hwb=function(u){var c=u[1]/100,o=u[2]/100,d=c+o*(1-c);return[u[0],(d-c)*100,(1-d)*100]},f.hwb.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=1-o,p=d-c,g=0;return p<1&&(g=(d-p)/(1-p)),[u[0],p*100,g*100]},f.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},f.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},f.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},f.gray.hsl=f.gray.hsv=function(u){return[0,0,u[0]]},f.gray.hwb=function(u){return[0,100,u[0]]},f.gray.cmyk=function(u){return[0,0,0,u[0]]},f.gray.lab=function(u){return[u[0],0,0]},f.gray.hex=function(u){var c=Math.round(u[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},f.rgb.gray=function(u){var c=(u[0]+u[1]+u[2])/3;return[c/255*100]}}),Fs=M((e,l)=>{B();var n=Yr();function i(){for(var r={},t=Object.keys(n),h=t.length,u=0;u<h;u++)r[t[u]]={distance:-1,parent:null};return r}function s(r){var t=i(),h=[r];for(t[r].distance=0;h.length;)for(var u=h.pop(),c=Object.keys(n[u]),o=c.length,d=0;d<o;d++){var p=c[d],g=t[p];g.distance===-1&&(g.distance=t[u].distance+1,g.parent=u,h.unshift(p))}return t}function f(r,t){return function(h){return t(r(h))}}function a(r,t){for(var h=[t[r].parent,r],u=n[t[r].parent][r],c=t[r].parent;t[c].parent;)h.unshift(t[c].parent),u=f(n[t[c].parent][c],u),c=t[c].parent;return u.conversion=h,u}l.exports=function(r){for(var t=s(r),h={},u=Object.keys(t),c=u.length,o=0;o<c;o++){var d=u[o],p=t[d];p.parent!==null&&(h[d]=a(d,t))}return h}}),Os=M((e,l)=>{B();var n=Yr(),i=Fs(),s={},f=Object.keys(n);function a(t){var h=function(u){return u==null?u:(arguments.length>1&&(u=Array.prototype.slice.call(arguments)),t(u))};return"conversion"in t&&(h.conversion=t.conversion),h}function r(t){var h=function(u){if(u==null)return u;arguments.length>1&&(u=Array.prototype.slice.call(arguments));var c=t(u);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in t&&(h.conversion=t.conversion),h}f.forEach(function(t){s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});var h=i(t),u=Object.keys(h);u.forEach(function(c){var o=h[c];s[t][c]=r(o),s[t][c].raw=a(o)})}),l.exports=s}),Rs=M((e,l)=>{"use strict";B();var n=Os(),i=(r,t)=>function(){return`\x1B[${r.apply(n,arguments)+t}m`},s=(r,t)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+t};5;${h}m`},f=(r,t)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+t};2;${h[0]};${h[1]};${h[2]}m`};function a(){let r=new Map,t={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]}};t.color.grey=t.color.gray;for(let c of Object.keys(t)){let o=t[c];for(let d of Object.keys(o)){let p=o[d];t[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},o[d]=t[d],r.set(p[0],p[1])}Object.defineProperty(t,c,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:r,enumerable:!1})}let h=c=>c,u=(c,o,d)=>[c,o,d];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:i(h,0)},t.color.ansi256={ansi256:s(h,0)},t.color.ansi16m={rgb:f(u,0)},t.bgColor.ansi={ansi:i(h,10)},t.bgColor.ansi256={ansi256:s(h,10)},t.bgColor.ansi16m={rgb:f(u,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(t.color.ansi[c]=i(o.ansi16,0),t.bgColor.ansi[c]=i(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[c]=s(o.ansi256,0),t.bgColor.ansi256[c]=s(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[c]=f(o.rgb,0),t.bgColor.ansi16m[c]=f(o.rgb,10))}return t}Object.defineProperty(l,"exports",{enumerable:!0,get:a})}),Ts=M((e,l)=>{"use strict";B(),l.exports=(n,i)=>{i=i||process.argv;let s=n.startsWith("-")?"":n.length===1?"-":"--",f=i.indexOf(s+n),a=i.indexOf("--");return f!==-1&&(a===-1?!0:f<a)}}),Bs=M((e,l)=>{"use strict";B();var n=Z("os"),i=Ts(),s=process.env,f;i("no-color")||i("no-colors")||i("color=false")?f=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(f=!0),"FORCE_COLOR"in s&&(f=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0);function a(h){return h===0?!1:{level:h,hasBasic:!0,has256:h>=2,has16m:h>=3}}function r(h){if(f===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(h&&!h.isTTY&&f!==!0)return 0;let u=f?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in s)||s.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if(s.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in s){let c=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,u)}function t(h){let u=r(h);return a(u)}l.exports={supportsColor:t,stdout:t(process.stdout),stderr:t(process.stderr)}}),Ps=M((e,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,f=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
6
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(g=b.match(s))d.push(g[2].replace(f,(_,y,D)=>y?r(y):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let g of Object.keys(d))if(Array.isArray(d[g])){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);d[g].length>0?p=p[g].apply(p,d[g]):p=p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),it=M((e,l)=>{"use strict";B();var n=xs(),i=Rs(),s=Bs().stdout,f=Ps(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],t=new Set(["gray"]),h=Object.create(null);function u(b,_){_=_||{};let y=s?s.level:0;b.level=_.level===void 0?y:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let _={};return u(_,b),_.template=function(){let y=[].slice.call(arguments);return g.apply(null,[_.template].concat(y))},Object.setPrototypeOf(_,c.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=c,_.template}u(this,b)}a&&(i.blue.open="\x1B[94m");for(let b of Object.keys(i))i[b].closeRe=new RegExp(n(i[b].close),"g"),h[b]={get(){let _=i[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};h.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(n(i.color.close),"g");for(let b of Object.keys(i.color.ansi))t.has(b)||(h[b]={get(){let _=this.level;return function(){let y={open:i.color[r[_]][b].apply(null,arguments),close:i.color.close,closeRe:i.color.closeRe};return d.call(this,this._styles?this._styles.concat(y):[y],this._empty,b)}}});i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(let b of Object.keys(i.bgColor.ansi)){if(t.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);h[_]={get(){let y=this.level;return function(){let D={open:i.bgColor[r[y]][b].apply(null,arguments),close:i.bgColor.close,closeRe:i.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},h);function d(b,_,y){let D=function(){return p.apply(D,arguments)};D._styles=b,D._empty=_;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||y==="gray"||y==="grey",D.__proto__=o,D}function p(){let b=arguments,_=b.length,y=String(arguments[0]);if(_===0)return"";if(_>1)for(let w=1;w<_;w++)y+=" "+b[w];if(!this.enabled||this.level<=0||!y)return this._empty?"":y;let D=i.dim.open;a&&this.hasGrey&&(i.dim.open="");for(let w of this._styles.slice().reverse())y=w.open+y.replace(w.closeRe,w.open)+w.close,y=y.replace(/\r?\n/g,`${w.close}$&${w.open}`);return i.dim.open=D,y}function g(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let y=[].slice.call(arguments,2),D=[_.raw[0]];for(let w=1;w<_.length;w++)D.push(String(y[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(_.raw[w]));return f(b,D.join(""))}Object.defineProperties(c.prototype,h),l.exports=c(),l.exports.supportsColor=s,l.exports.default=l.exports});var Ls=M((e,l)=>{"use strict";B(),l.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]}}),Jr=M((e,l)=>{B();var n=Ls(),i={};for(let a of Object.keys(n))i[n[a]]=a;var s={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"]}};l.exports=s;for(let a of Object.keys(s)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:r,labels:t}=s[a];delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:r}),Object.defineProperty(s[a],"labels",{value:t})}s.rgb.hsl=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.min(r,t,h),c=Math.max(r,t,h),o=c-u,d,p;c===u?d=0:r===c?d=(t-h)/o:t===c?d=2+(h-r)/o:h===c&&(d=4+(r-t)/o),d=Math.min(d*60,360),d<0&&(d+=360);let g=(u+c)/2;return c===u?p=0:g<=.5?p=o/(c+u):p=o/(2-c-u),[d,p*100,g*100]},s.rgb.hsv=function(a){let r,t,h,u,c,o=a[0]/255,d=a[1]/255,p=a[2]/255,g=Math.max(o,d,p),b=g-Math.min(o,d,p),_=function(y){return(g-y)/6/b+1/2};return b===0?(u=0,c=0):(c=b/g,r=_(o),t=_(d),h=_(p),o===g?u=h-t:d===g?u=1/3+r-h:p===g&&(u=2/3+t-r),u<0?u+=1:u>1&&(u-=1)),[u*360,c*100,g*100]},s.rgb.hwb=function(a){let r=a[0],t=a[1],h=a[2],u=s.rgb.hsl(a)[0],c=1/255*Math.min(r,Math.min(t,h));return h=1-1/255*Math.max(r,Math.max(t,h)),[u,c*100,h*100]},s.rgb.cmyk=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.min(1-r,1-t,1-h),c=(1-r-u)/(1-u)||0,o=(1-t-u)/(1-u)||0,d=(1-h-u)/(1-u)||0;return[c*100,o*100,d*100,u*100]};function f(a,r){return(a[0]-r[0])**2+(a[1]-r[1])**2+(a[2]-r[2])**2}s.rgb.keyword=function(a){let r=i[a];if(r)return r;let t=1/0,h;for(let u of Object.keys(n)){let c=n[u],o=f(a,c);o<t&&(t=o,h=u)}return h},s.keyword.rgb=function(a){return n[a]},s.rgb.xyz=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,h=h>.04045?((h+.055)/1.055)**2.4:h/12.92;let u=r*.4124+t*.3576+h*.1805,c=r*.2126+t*.7152+h*.0722,o=r*.0193+t*.1192+h*.9505;return[u*100,c*100,o*100]},s.rgb.lab=function(a){let r=s.rgb.xyz(a),t=r[0],h=r[1],u=r[2];t/=95.047,h/=100,u/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,h=h>.008856?h**(1/3):7.787*h+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let c=116*h-16,o=500*(t-h),d=200*(h-u);return[c,o,d]},s.hsl.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100,u,c,o;if(t===0)return o=h*255,[o,o,o];h<.5?u=h*(1+t):u=h+t-h*t;let d=2*h-u,p=[0,0,0];for(let g=0;g<3;g++)c=r+1/3*-(g-1),c<0&&c++,c>1&&c--,6*c<1?o=d+(u-d)*6*c:2*c<1?o=u:3*c<2?o=d+(u-d)*(2/3-c)*6:o=d,p[g]=o*255;return p},s.hsl.hsv=function(a){let r=a[0],t=a[1]/100,h=a[2]/100,u=t,c=Math.max(h,.01);h*=2,t*=h<=1?h:2-h,u*=c<=1?c:2-c;let o=(h+t)/2,d=h===0?2*u/(c+u):2*t/(h+t);return[r,d*100,o*100]},s.hsv.rgb=function(a){let r=a[0]/60,t=a[1]/100,h=a[2]/100,u=Math.floor(r)%6,c=r-Math.floor(r),o=255*h*(1-t),d=255*h*(1-t*c),p=255*h*(1-t*(1-c));switch(h*=255,u){case 0:return[h,p,o];case 1:return[d,h,o];case 2:return[o,h,p];case 3:return[o,d,h];case 4:return[p,o,h];case 5:return[h,o,d]}},s.hsv.hsl=function(a){let r=a[0],t=a[1]/100,h=a[2]/100,u=Math.max(h,.01),c,o;o=(2-t)*h;let d=(2-t)*u;return c=t*u,c/=d<=1?d:2-d,c=c||0,o/=2,[r,c*100,o*100]},s.hwb.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100,u=t+h,c;u>1&&(t/=u,h/=u);let o=Math.floor(6*r),d=1-h;c=6*r-o,(o&1)!==0&&(c=1-c);let p=t+c*(d-t),g,b,_;switch(o){default:case 6:case 0:g=d,b=p,_=t;break;case 1:g=p,b=d,_=t;break;case 2:g=t,b=d,_=p;break;case 3:g=t,b=p,_=d;break;case 4:g=p,b=t,_=d;break;case 5:g=d,b=t,_=p;break}return[g*255,b*255,_*255]},s.cmyk.rgb=function(a){let r=a[0]/100,t=a[1]/100,h=a[2]/100,u=a[3]/100,c=1-Math.min(1,r*(1-u)+u),o=1-Math.min(1,t*(1-u)+u),d=1-Math.min(1,h*(1-u)+u);return[c*255,o*255,d*255]},s.xyz.rgb=function(a){let r=a[0]/100,t=a[1]/100,h=a[2]/100,u,c,o;return u=r*3.2406+t*-1.5372+h*-.4986,c=r*-.9689+t*1.8758+h*.0415,o=r*.0557+t*-.204+h*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),[u*255,c*255,o*255]},s.xyz.lab=function(a){let r=a[0],t=a[1],h=a[2];r/=95.047,t/=100,h/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,h=h>.008856?h**(1/3):7.787*h+16/116;let u=116*t-16,c=500*(r-t),o=200*(t-h);return[u,c,o]},s.lab.xyz=function(a){let r=a[0],t=a[1],h=a[2],u,c,o;c=(r+16)/116,u=t/500+c,o=c-h/200;let d=c**3,p=u**3,g=o**3;return c=d>.008856?d:(c-16/116)/7.787,u=p>.008856?p:(u-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,u*=95.047,c*=100,o*=108.883,[u,c,o]},s.lab.lch=function(a){let r=a[0],t=a[1],h=a[2],u;u=Math.atan2(h,t)*360/2/Math.PI,u<0&&(u+=360);let c=Math.sqrt(t*t+h*h);return[r,c,u]},s.lch.lab=function(a){let r=a[0],t=a[1],h=a[2]/360*2*Math.PI,u=t*Math.cos(h),c=t*Math.sin(h);return[r,u,c]},s.rgb.ansi16=function(a,r=null){let[t,h,u]=a,c=r===null?s.rgb.hsv(a)[2]:r;if(c=Math.round(c/50),c===0)return 30;let o=30+(Math.round(u/255)<<2|Math.round(h/255)<<1|Math.round(t/255));return c===2&&(o+=60),o},s.hsv.ansi16=function(a){return s.rgb.ansi16(s.hsv.rgb(a),a[2])},s.rgb.ansi256=function(a){let r=a[0],t=a[1],h=a[2];return r===t&&t===h?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(h/255*5)},s.ansi16.rgb=function(a){let r=a%10;if(r===0||r===7)return a>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let t=(~~(a>50)+1)*.5,h=(r&1)*t*255,u=(r>>1&1)*t*255,c=(r>>2&1)*t*255;return[h,u,c]},s.ansi256.rgb=function(a){if(a>=232){let c=(a-232)*10+8;return[c,c,c]}a-=16;let r,t=Math.floor(a/36)/5*255,h=Math.floor((r=a%36)/6)/5*255,u=r%6/5*255;return[t,h,u]},s.rgb.hex=function(a){let r=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.hex.rgb=function(a){let r=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];r[0].length===3&&(t=t.split("").map(d=>d+d).join(""));let h=parseInt(t,16),u=h>>16&255,c=h>>8&255,o=h&255;return[u,c,o]},s.rgb.hcg=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.max(Math.max(r,t),h),c=Math.min(Math.min(r,t),h),o=u-c,d,p;return o<1?d=c/(1-o):d=0,o<=0?p=0:u===r?p=(t-h)/o%6:u===t?p=2+(h-r)/o:p=4+(r-t)/o,p/=6,p%=1,[p*360,o*100,d*100]},s.hsl.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=t<.5?2*r*t:2*r*(1-t),u=0;return h<1&&(u=(t-.5*h)/(1-h)),[a[0],h*100,u*100]},s.hsv.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=r*t,u=0;return h<1&&(u=(t-h)/(1-h)),[a[0],h*100,u*100]},s.hcg.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100;if(t===0)return[h*255,h*255,h*255];let u=[0,0,0],c=r%1*6,o=c%1,d=1-o,p=0;switch(Math.floor(c)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=d,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=d,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=d}return p=(1-t)*h,[(t*u[0]+p)*255,(t*u[1]+p)*255,(t*u[2]+p)*255]},s.hcg.hsv=function(a){let r=a[1]/100,t=a[2]/100,h=r+t*(1-r),u=0;return h>0&&(u=r/h),[a[0],u*100,h*100]},s.hcg.hsl=function(a){let r=a[1]/100,t=a[2]/100*(1-r)+.5*r,h=0;return t>0&&t<.5?h=r/(2*t):t>=.5&&t<1&&(h=r/(2*(1-t))),[a[0],h*100,t*100]},s.hcg.hwb=function(a){let r=a[1]/100,t=a[2]/100,h=r+t*(1-r);return[a[0],(h-r)*100,(1-h)*100]},s.hwb.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=1-t,u=h-r,c=0;return u<1&&(c=(h-u)/(1-u)),[a[0],u*100,c*100]},s.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},s.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},s.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},s.gray.hsl=function(a){return[0,0,a[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(a){return[0,100,a[0]]},s.gray.cmyk=function(a){return[0,0,0,a[0]]},s.gray.lab=function(a){return[a[0],0,0]},s.gray.hex=function(a){let r=Math.round(a[0]/100*255)&255,t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),Is=M((e,l)=>{B();var n=Jr();function i(){let r={},t=Object.keys(n);for(let h=t.length,u=0;u<h;u++)r[t[u]]={distance:-1,parent:null};return r}function s(r){let t=i(),h=[r];for(t[r].distance=0;h.length;){let u=h.pop(),c=Object.keys(n[u]);for(let o=c.length,d=0;d<o;d++){let p=c[d],g=t[p];g.distance===-1&&(g.distance=t[u].distance+1,g.parent=u,h.unshift(p))}}return t}function f(r,t){return function(h){return t(r(h))}}function a(r,t){let h=[t[r].parent,r],u=n[t[r].parent][r],c=t[r].parent;for(;t[c].parent;)h.unshift(t[c].parent),u=f(n[t[c].parent][c],u),c=t[c].parent;return u.conversion=h,u}l.exports=function(r){let t=s(r),h={},u=Object.keys(t);for(let c=u.length,o=0;o<c;o++){let d=u[o];t[d].parent!==null&&(h[d]=a(d,t))}return h}}),Ms=M((e,l)=>{B();var n=Jr(),i=Is(),s={},f=Object.keys(n);function a(t){let h=function(...u){let c=u[0];return c==null?c:(c.length>1&&(u=c),t(u))};return"conversion"in t&&(h.conversion=t.conversion),h}function r(t){let h=function(...u){let c=u[0];if(c==null)return c;c.length>1&&(u=c);let o=t(u);if(typeof o=="object")for(let d=o.length,p=0;p<d;p++)o[p]=Math.round(o[p]);return o};return"conversion"in t&&(h.conversion=t.conversion),h}f.forEach(t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});let h=i(t);Object.keys(h).forEach(u=>{let c=h[u];s[t][u]=r(c),s[t][u].raw=a(c)})}),l.exports=s}),Zr=M((e,l)=>{"use strict";B();var n=(c,o)=>(...d)=>`\x1B[${c(...d)+o}m`,i=(c,o)=>(...d)=>{let p=c(...d);return`\x1B[${38+o};5;${p}m`},s=(c,o)=>(...d)=>{let p=c(...d);return`\x1B[${38+o};2;${p[0]};${p[1]};${p[2]}m`},f=c=>c,a=(c,o,d)=>[c,o,d],r=(c,o,d)=>{Object.defineProperty(c,o,{get:()=>{let p=d();return Object.defineProperty(c,o,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},t,h=(c,o,d,p)=>{t===void 0&&(t=Ms());let g=p?10:0,b={};for(let[_,y]of Object.entries(t)){let D=_==="ansi16"?"ansi":_;_===o?b[D]=c(d,g):typeof y=="object"&&(b[D]=c(y[o],g))}return b};function u(){let c=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],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]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[d,p]of Object.entries(o)){for(let[g,b]of Object.entries(p))o[g]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[g]=o[g],c.set(b[0],b[1]);Object.defineProperty(o,d,{value:p,enumerable:!1})}return Object.defineProperty(o,"codes",{value:c,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",r(o.color,"ansi",()=>h(n,"ansi16",f,!1)),r(o.color,"ansi256",()=>h(i,"ansi256",f,!1)),r(o.color,"ansi16m",()=>h(s,"rgb",a,!1)),r(o.bgColor,"ansi",()=>h(n,"ansi16",f,!0)),r(o.bgColor,"ansi256",()=>h(i,"ansi256",f,!0)),r(o.bgColor,"ansi16m",()=>h(s,"rgb",a,!0)),o}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),js=M((e,l)=>{"use strict";B(),l.exports=(n,i=process.argv)=>{let s=n.startsWith("-")?"":n.length===1?"-":"--",f=i.indexOf(s+n),a=i.indexOf("--");return f!==-1&&(a===-1||f<a)}}),Xr=M((e,l)=>{"use strict";B();var n=Z("os"),i=Z("tty"),s=js(),{env:f}=process,a;s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in f&&(f.FORCE_COLOR==="true"?a=1:f.FORCE_COLOR==="false"?a=0:a=f.FORCE_COLOR.length===0?1:Math.min(parseInt(f.FORCE_COLOR,10),3));function r(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function t(u,c){if(a===0)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(u&&!c&&a===void 0)return 0;let o=a||0;if(f.TERM==="dumb")return o;if(process.platform==="win32"){let d=n.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in f)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in f)||f.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in f)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION)?1:0;if(f.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in f){let d=parseInt((f.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(f.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||"COLORTERM"in f?1:o}function h(u){let c=t(u,u&&u.isTTY);return r(c)}l.exports={supportsColor:h,stdout:r(t(!0,i.isatty(1))),stderr:r(t(!0,i.isatty(2)))}}),Ns=M((e,l)=>{"use strict";B();var n=(s,f,a)=>{let r=s.indexOf(f);if(r===-1)return s;let t=f.length,h=0,u="";do u+=s.substr(h,r-h)+f+a,h=r+t,r=s.indexOf(f,h);while(r!==-1);return u+=s.substr(h),u},i=(s,f,a,r)=>{let t=0,h="";do{let u=s[r-1]==="\r";h+=s.substr(t,(u?r-1:r)-t)+f+(u?`\r
|
|
5
|
+
`);return w?(t.originalMessage=t.message,t.message=m):t=new Error(m),t.shortMessage=v,t.command=c,t.escapedCommand=o,t.exitCode=u,t.signal=h,t.signalDescription=_,t.stdout=f,t.stderr=a,r!==void 0&&(t.all=r),"bufferedData"in t&&delete t.bufferedData,t.failed=!0,t.timedOut=Boolean(d),t.isCanceled=p,t.killed=g&&!d,t};l.exports=s}),ds=M((e,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],i=f=>n.some(a=>f[a]!==void 0),s=f=>{if(!f)return;let{stdio:a}=f;if(a===void 0)return n.map(t=>f[t]);if(i(f))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(t=>`\`${t}\``).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 r=Math.max(a.length,n.length);return Array.from({length:r},(t,h)=>a[h])};l.exports=s,l.exports.node=f=>{let a=s(f);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),ms=M((e,l)=>{"use strict";B();var n=Z("os"),i=$t(),s=1e3*5,f=(g,b="SIGTERM",_={})=>{let y=g(b);return a(g,b,_,y),y},a=(g,b,_,y)=>{if(!r(b,_,y))return;let D=h(_),w=setTimeout(()=>{g("SIGKILL")},D);w.unref&&w.unref()},r=(g,{forceKillAfterTimeout:b},_)=>t(g)&&b!==!1&&_,t=g=>g===n.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",h=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return s;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},u=(g,b)=>{g.kill()&&(b.isCanceled=!0)},c=(g,b,_)=>{g.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(g,{timeout:b,killSignal:_="SIGTERM"},y)=>{if(b===0||b===void 0)return y;let D,w=new Promise((m,E)=>{D=setTimeout(()=>{c(g,_,E)},b)}),v=y.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},p=async(g,{cleanup:b,detached:_},y)=>{if(!b||_)return y;let D=i(()=>{g.kill()});return y.finally(()=>{D()})};l.exports={spawnedKill:f,spawnedCancel:u,setupTimeout:o,validateTimeout:d,setExitHandler:p}}),ys=M((e,l)=>{"use strict";B();var n=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";n.writable=i=>n(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",n.readable=i=>n(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",n.duplex=i=>n.writable(i)&&n.readable(i),n.transform=i=>n.duplex(i)&&typeof i._transform=="function",l.exports=n}),gs=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=i=>{i={...i};let{array:s}=i,{encoding:f}=i,a=f==="buffer",r=!1;s?r=!(f||a):f=f||"utf8",a&&(f=null);let t=new n({objectMode:r});f&&t.setEncoding(f);let h=0,u=[];return t.on("data",c=>{u.push(c),r?h=u.length:h+=c.length}),t.getBufferedValue=()=>s?u:a?Buffer.concat(u,h):u.join(""),t.getBufferedLength=()=>h,t}}),bs=M((e,l)=>{"use strict";B();var{constants:n}=Z("buffer"),i=Z("stream"),{promisify:s}=Z("util"),f=gs(),a=s(i.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function t(h,u){if(!h)throw new Error("Expected a stream");u={maxBuffer:1/0,...u};let{maxBuffer:c}=u,o=f(u);return await new Promise((d,p)=>{let g=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),p(b)};(async()=>{try{await a(h,o),d()}catch(b){g(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&g(new r)})}),o.getBufferedValue()}l.exports=t,l.exports.buffer=(h,u)=>t(h,{...u,encoding:"buffer"}),l.exports.array=(h,u)=>t(h,{...u,array:!0}),l.exports.MaxBufferError=r}),vs=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var i=[],s=new n({objectMode:!0});return s.setMaxListeners(0),s.add=f,s.isEmpty=a,s.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(f),s;function f(t){return Array.isArray(t)?(t.forEach(f),this):(i.push(t),t.once("end",r.bind(null,t)),t.once("error",s.emit.bind(s,"error")),t.pipe(s,{end:!1}),this)}function a(){return i.length==0}function r(t){i=i.filter(function(h){return h!==t}),!i.length&&s.readable&&s.end()}}}),_s=M((e,l)=>{"use strict";B();var n=ys(),i=bs(),s=vs(),f=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},a=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=s();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},t=(c,{encoding:o,buffer:d,maxBuffer:p})=>{if(!(!c||!d))return o?i(c,{encoding:o,maxBuffer:p}):i.buffer(c,{maxBuffer:p})},h=async({stdout:c,stderr:o,all:d},{encoding:p,buffer:g,maxBuffer:b},_)=>{let y=t(c,{encoding:p,buffer:g,maxBuffer:b}),D=t(o,{encoding:p,buffer:g,maxBuffer:b}),w=t(d,{encoding:p,buffer:g,maxBuffer:b*2});try{return await Promise.all([_,y,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,y),r(o,D),r(d,w)])}},u=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:f,makeAllStream:a,getSpawnedResult:h,validateInputSync:u}}),Es=M((e,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(n,a)]),s=(a,r)=>{for(let[t,h]of i){let u=typeof r=="function"?(...c)=>Reflect.apply(h.value,r(),c):h.value.bind(r);Reflect.defineProperty(a,t,{...h,value:u})}return a},f=a=>new Promise((r,t)=>{a.on("exit",(h,u)=>{r({exitCode:h,signal:u})}),a.on("error",h=>{t(h)}),a.stdin&&a.stdin.on("error",h=>{t(h)})});l.exports={mergePromise:s,getSpawnedPromise:f}}),ws=M((e,l)=>{"use strict";B();var n=(u,c=[])=>Array.isArray(c)?[u,...c]:[u],i=/^[\w.-]+$/,s=/"/g,f=u=>typeof u!="string"||i.test(u)?u:`"${u.replace(s,'\\"')}"`,a=(u,c)=>n(u,c).join(" "),r=(u,c)=>n(u,c).map(o=>f(o)).join(" "),t=/ +/g,h=u=>{let c=[];for(let o of u.trim().split(t)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:a,getEscapedCommand:r,parseCommand:h}}),Ds=M((e,l)=>{"use strict";B();var n=Z("path"),i=Z("child_process"),s=as(),f=us(),a=ls(),r=Nt(),t=fs(),h=ds(),{spawnedKill:u,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:p}=ms(),{handleInput:g,getSpawnedResult:b,makeAllStream:_,validateInputSync:y}=_s(),{mergePromise:D,getSpawnedPromise:w}=Es(),{joinCommand:v,parseCommand:m,getEscapedCommand:E}=ws(),S=1e3*1e3*100,A=({env:x,extendEnv:O,preferLocal:I,localDir:$,execPath:R})=>{let G=O?{...process.env,...x}:x;return I?a.env({env:G,cwd:$,execPath:R}):G},k=(x,O,I={})=>{let $=s._parse(x,O,I);return x=$.command,O=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=h(I),process.platform==="win32"&&n.basename(x,".exe")==="cmd"&&O.unshift("/q"),{file:x,args:O,options:I,parsed:$}},L=(x,O,I)=>typeof O!="string"&&!Buffer.isBuffer(O)?I===void 0?void 0:"":x.stripFinalNewline?f(O):O,T=(x,O,I)=>{let $=k(x,O,I),R=v(x,O),G=E(x,O);d($.options);let W;try{W=i.spawn($.file,$.args,$.options)}catch(q){let ee=new i.ChildProcess,N=Promise.reject(t({error:q,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(ee,N)}let Q=w(W),P=o(W,$.options,Q),j=p(W,$.options,P),F={isCanceled:!1};W.kill=u.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,F);let J=r(async()=>{let[{error:q,exitCode:ee,signal:N,timedOut:K},te,se,le]=await b(W,$.options,j),ye=L($.options,te),de=L($.options,se),H=L($.options,le);if(q||ee!==0||N!==null){let V=t({error:q,exitCode:ee,signal:N,stdout:ye,stderr:de,all:H,command:R,escapedCommand:G,parsed:$,timedOut:K,isCanceled:F.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:R,escapedCommand:G,exitCode:0,stdout:ye,stderr:de,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(W,$.options.input),W.all=_(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(x,O,I)=>{let $=k(x,O,I),R=v(x,O),G=E(x,O);y($.options);let W;try{W=i.spawnSync($.file,$.args,$.options)}catch(j){throw t({error:j,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=t({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:R,escapedCommand:G,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:R,escapedCommand:G,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(x,O)=>{let[I,...$]=m(x);return T(I,$,O)},l.exports.commandSync=(x,O)=>{let[I,...$]=m(x);return T.sync(I,$,O)},l.exports.node=(x,O,I={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(I=O,O=[]);let $=h.node(I),R=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:G=process.execPath,nodeOptions:W=R}=I;return T(G,[...W,x,...Array.isArray(O)?O:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var Ss=xe(Ds());async function lr(e,l=[],n){let i={cwd:As.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...n};try{let{stdout:s}=await(0,Ss.default)(e,l,i);return s.trim()}catch{return}}async function Cs(){let[e,l,n]=await Promise.all([lr("yarnpkg",["--version"]),lr("npm",["--version"]),lr("pnpm",["--version"])]);return{yarn:e,pnpm:n,npm:l}}var ks=M((e,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(n,"\\$&")}}),xs=M((e,l)=>{"use strict";B(),l.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]}}),Yr=M((e,l)=>{B();var n=xs(),i={};for(s in n)n.hasOwnProperty(s)&&(i[n[s]]=s);var s,f=l.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(t in f)if(f.hasOwnProperty(t)){if(!("channels"in f[t]))throw new Error("missing channels property: "+t);if(!("labels"in f[t]))throw new Error("missing channel labels property: "+t);if(f[t].labels.length!==f[t].channels)throw new Error("channel and label counts mismatch: "+t);a=f[t].channels,r=f[t].labels,delete f[t].channels,delete f[t].labels,Object.defineProperty(f[t],"channels",{value:a}),Object.defineProperty(f[t],"labels",{value:r})}var a,r,t;f.rgb.hsl=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p=Math.min(c,o,d),g=Math.max(c,o,d),b=g-p,_,y,D;return g===p?_=0:c===g?_=(o-d)/b:o===g?_=2+(d-c)/b:d===g&&(_=4+(c-o)/b),_=Math.min(_*60,360),_<0&&(_+=360),D=(p+g)/2,g===p?y=0:D<=.5?y=b/(g+p):y=b/(2-g-p),[_,y*100,D*100]},f.rgb.hsv=function(u){var c,o,d,p,g,b=u[0]/255,_=u[1]/255,y=u[2]/255,D=Math.max(b,_,y),w=D-Math.min(b,_,y),v=function(m){return(D-m)/6/w+1/2};return w===0?p=g=0:(g=w/D,c=v(b),o=v(_),d=v(y),b===D?p=d-o:_===D?p=1/3+c-d:y===D&&(p=2/3+o-c),p<0?p+=1:p>1&&(p-=1)),[p*360,g*100,D*100]},f.rgb.hwb=function(u){var c=u[0],o=u[1],d=u[2],p=f.rgb.hsl(u)[0],g=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[p,g*100,d*100]},f.rgb.cmyk=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p,g,b,_;return _=Math.min(1-c,1-o,1-d),p=(1-c-_)/(1-_)||0,g=(1-o-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,g*100,b*100,_*100]};function h(u,c){return Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)+Math.pow(u[2]-c[2],2)}f.rgb.keyword=function(u){var c=i[u];if(c)return c;var o=1/0,d;for(var p in n)if(n.hasOwnProperty(p)){var g=n[p],b=h(u,g);b<o&&(o=b,d=p)}return d},f.keyword.rgb=function(u){return n[u]},f.rgb.xyz=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=c*.4124+o*.3576+d*.1805,g=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[p*100,g*100,b*100]},f.rgb.lab=function(u){var c=f.rgb.xyz(u),o=c[0],d=c[1],p=c[2],g,b,_;return o/=95.047,d/=100,p/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+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,g=116*d-16,b=500*(o-d),_=200*(d-p),[g,b,_]},f.hsl.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100,p,g,b,_,y;if(o===0)return y=d*255,[y,y,y];d<.5?g=d*(1+o):g=d+o-d*o,p=2*d-g,_=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?y=p+(g-p)*6*b:2*b<1?y=g:3*b<2?y=p+(g-p)*(2/3-b)*6:y=p,_[D]=y*255;return _},f.hsl.hsv=function(u){var c=u[0],o=u[1]/100,d=u[2]/100,p=o,g=Math.max(d,.01),b,_;return d*=2,o*=d<=1?d:2-d,p*=g<=1?g:2-g,_=(d+o)/2,b=d===0?2*p/(g+p):2*o/(d+o),[c,b*100,_*100]},f.hsv.rgb=function(u){var c=u[0]/60,o=u[1]/100,d=u[2]/100,p=Math.floor(c)%6,g=c-Math.floor(c),b=255*d*(1-o),_=255*d*(1-o*g),y=255*d*(1-o*(1-g));switch(d*=255,p){case 0:return[d,y,b];case 1:return[_,d,b];case 2:return[b,d,y];case 3:return[b,_,d];case 4:return[y,b,d];case 5:return[d,b,_]}},f.hsv.hsl=function(u){var c=u[0],o=u[1]/100,d=u[2]/100,p=Math.max(d,.01),g,b,_;return _=(2-o)*d,g=(2-o)*p,b=o*p,b/=g<=1?g:2-g,b=b||0,_/=2,[c,b*100,_*100]},f.hwb.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100,p=o+d,g,b,_,y;p>1&&(o/=p,d/=p),g=Math.floor(6*c),b=1-d,_=6*c-g,(g&1)!==0&&(_=1-_),y=o+_*(b-o);var D,w,v;switch(g){default:case 6:case 0:D=b,w=y,v=o;break;case 1:D=y,w=b,v=o;break;case 2:D=o,w=b,v=y;break;case 3:D=o,w=y,v=b;break;case 4:D=y,w=o,v=b;break;case 5:D=b,w=o,v=y;break}return[D*255,w*255,v*255]},f.cmyk.rgb=function(u){var c=u[0]/100,o=u[1]/100,d=u[2]/100,p=u[3]/100,g,b,_;return g=1-Math.min(1,c*(1-p)+p),b=1-Math.min(1,o*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[g*255,b*255,_*255]},f.xyz.rgb=function(u){var c=u[0]/100,o=u[1]/100,d=u[2]/100,p,g,b;return p=c*3.2406+o*-1.5372+d*-.4986,g=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*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),g=Math.min(Math.max(0,g),1),b=Math.min(Math.max(0,b),1),[p*255,g*255,b*255]},f.xyz.lab=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*o-16,g=500*(c-o),b=200*(o-d),[p,g,b]},f.lab.xyz=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;g=(c+16)/116,p=o/500+g,b=g-d/200;var _=Math.pow(g,3),y=Math.pow(p,3),D=Math.pow(b,3);return g=_>.008856?_:(g-16/116)/7.787,p=y>.008856?y:(p-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,p*=95.047,g*=100,b*=108.883,[p,g,b]},f.lab.lch=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return p=Math.atan2(d,o),g=p*360/2/Math.PI,g<0&&(g+=360),b=Math.sqrt(o*o+d*d),[c,b,g]},f.lch.lab=function(u){var c=u[0],o=u[1],d=u[2],p,g,b;return b=d/360*2*Math.PI,p=o*Math.cos(b),g=o*Math.sin(b),[c,p,g]},f.rgb.ansi16=function(u){var c=u[0],o=u[1],d=u[2],p=1 in arguments?arguments[1]:f.rgb.hsv(u)[2];if(p=Math.round(p/50),p===0)return 30;var g=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return p===2&&(g+=60),g},f.hsv.ansi16=function(u){return f.rgb.ansi16(f.hsv.rgb(u),u[2])},f.rgb.ansi256=function(u){var c=u[0],o=u[1],d=u[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var p=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return p},f.ansi16.rgb=function(u){var c=u%10;if(c===0||c===7)return u>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(u>50)+1)*.5,d=(c&1)*o*255,p=(c>>1&1)*o*255,g=(c>>2&1)*o*255;return[d,p,g]},f.ansi256.rgb=function(u){if(u>=232){var c=(u-232)*10+8;return[c,c,c]}u-=16;var o,d=Math.floor(u/36)/5*255,p=Math.floor((o=u%36)/6)/5*255,g=o%6/5*255;return[d,p,g]},f.rgb.hex=function(u){var c=((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},f.hex.rgb=function(u){var c=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(_){return _+_}).join(""));var d=parseInt(o,16),p=d>>16&255,g=d>>8&255,b=d&255;return[p,g,b]},f.rgb.hcg=function(u){var c=u[0]/255,o=u[1]/255,d=u[2]/255,p=Math.max(Math.max(c,o),d),g=Math.min(Math.min(c,o),d),b=p-g,_,y;return b<1?_=g/(1-b):_=0,b<=0?y=0:p===c?y=(o-d)/b%6:p===o?y=2+(d-c)/b:y=4+(c-o)/b+4,y/=6,y%=1,[y*360,b*100,_*100]},f.hsl.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=1,p=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(p=(o-.5*d)/(1-d)),[u[0],d*100,p*100]},f.hsv.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=c*o,p=0;return d<1&&(p=(o-d)/(1-d)),[u[0],d*100,p*100]},f.hcg.rgb=function(u){var c=u[0]/360,o=u[1]/100,d=u[2]/100;if(o===0)return[d*255,d*255,d*255];var p=[0,0,0],g=c%1*6,b=g%1,_=1-b,y=0;switch(Math.floor(g)){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 y=(1-o)*d,[(o*p[0]+y)*255,(o*p[1]+y)*255,(o*p[2]+y)*255]},f.hcg.hsv=function(u){var c=u[1]/100,o=u[2]/100,d=c+o*(1-c),p=0;return d>0&&(p=c/d),[u[0],p*100,d*100]},f.hcg.hsl=function(u){var c=u[1]/100,o=u[2]/100,d=o*(1-c)+.5*c,p=0;return d>0&&d<.5?p=c/(2*d):d>=.5&&d<1&&(p=c/(2*(1-d))),[u[0],p*100,d*100]},f.hcg.hwb=function(u){var c=u[1]/100,o=u[2]/100,d=c+o*(1-c);return[u[0],(d-c)*100,(1-d)*100]},f.hwb.hcg=function(u){var c=u[1]/100,o=u[2]/100,d=1-o,p=d-c,g=0;return p<1&&(g=(d-p)/(1-p)),[u[0],p*100,g*100]},f.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},f.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},f.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},f.gray.hsl=f.gray.hsv=function(u){return[0,0,u[0]]},f.gray.hwb=function(u){return[0,100,u[0]]},f.gray.cmyk=function(u){return[0,0,0,u[0]]},f.gray.lab=function(u){return[u[0],0,0]},f.gray.hex=function(u){var c=Math.round(u[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},f.rgb.gray=function(u){var c=(u[0]+u[1]+u[2])/3;return[c/255*100]}}),Fs=M((e,l)=>{B();var n=Yr();function i(){for(var r={},t=Object.keys(n),h=t.length,u=0;u<h;u++)r[t[u]]={distance:-1,parent:null};return r}function s(r){var t=i(),h=[r];for(t[r].distance=0;h.length;)for(var u=h.pop(),c=Object.keys(n[u]),o=c.length,d=0;d<o;d++){var p=c[d],g=t[p];g.distance===-1&&(g.distance=t[u].distance+1,g.parent=u,h.unshift(p))}return t}function f(r,t){return function(h){return t(r(h))}}function a(r,t){for(var h=[t[r].parent,r],u=n[t[r].parent][r],c=t[r].parent;t[c].parent;)h.unshift(t[c].parent),u=f(n[t[c].parent][c],u),c=t[c].parent;return u.conversion=h,u}l.exports=function(r){for(var t=s(r),h={},u=Object.keys(t),c=u.length,o=0;o<c;o++){var d=u[o],p=t[d];p.parent!==null&&(h[d]=a(d,t))}return h}}),Os=M((e,l)=>{B();var n=Yr(),i=Fs(),s={},f=Object.keys(n);function a(t){var h=function(u){return u==null?u:(arguments.length>1&&(u=Array.prototype.slice.call(arguments)),t(u))};return"conversion"in t&&(h.conversion=t.conversion),h}function r(t){var h=function(u){if(u==null)return u;arguments.length>1&&(u=Array.prototype.slice.call(arguments));var c=t(u);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in t&&(h.conversion=t.conversion),h}f.forEach(function(t){s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});var h=i(t),u=Object.keys(h);u.forEach(function(c){var o=h[c];s[t][c]=r(o),s[t][c].raw=a(o)})}),l.exports=s}),Rs=M((e,l)=>{"use strict";B();var n=Os(),i=(r,t)=>function(){return`\x1B[${r.apply(n,arguments)+t}m`},s=(r,t)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+t};5;${h}m`},f=(r,t)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+t};2;${h[0]};${h[1]};${h[2]}m`};function a(){let r=new Map,t={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]}};t.color.grey=t.color.gray;for(let c of Object.keys(t)){let o=t[c];for(let d of Object.keys(o)){let p=o[d];t[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},o[d]=t[d],r.set(p[0],p[1])}Object.defineProperty(t,c,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:r,enumerable:!1})}let h=c=>c,u=(c,o,d)=>[c,o,d];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:i(h,0)},t.color.ansi256={ansi256:s(h,0)},t.color.ansi16m={rgb:f(u,0)},t.bgColor.ansi={ansi:i(h,10)},t.bgColor.ansi256={ansi256:s(h,10)},t.bgColor.ansi16m={rgb:f(u,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(t.color.ansi[c]=i(o.ansi16,0),t.bgColor.ansi[c]=i(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[c]=s(o.ansi256,0),t.bgColor.ansi256[c]=s(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[c]=f(o.rgb,0),t.bgColor.ansi16m[c]=f(o.rgb,10))}return t}Object.defineProperty(l,"exports",{enumerable:!0,get:a})}),Ts=M((e,l)=>{"use strict";B(),l.exports=(n,i)=>{i=i||process.argv;let s=n.startsWith("-")?"":n.length===1?"-":"--",f=i.indexOf(s+n),a=i.indexOf("--");return f!==-1&&(a===-1?!0:f<a)}}),Bs=M((e,l)=>{"use strict";B();var n=Z("os"),i=Ts(),s=process.env,f;i("no-color")||i("no-colors")||i("color=false")?f=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(f=!0),"FORCE_COLOR"in s&&(f=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0);function a(h){return h===0?!1:{level:h,hasBasic:!0,has256:h>=2,has16m:h>=3}}function r(h){if(f===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(h&&!h.isTTY&&f!==!0)return 0;let u=f?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in s)||s.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if(s.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in s){let c=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,u)}function t(h){let u=r(h);return a(u)}l.exports={supportsColor:t,stdout:t(process.stdout),stderr:t(process.stderr)}}),Ps=M((e,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,f=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
6
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(g=b.match(s))d.push(g[2].replace(f,(_,y,D)=>y?r(y):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let g of Object.keys(d))if(Array.isArray(d[g])){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);d[g].length>0?p=p[g].apply(p,d[g]):p=p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),it=M((e,l)=>{"use strict";B();var n=ks(),i=Rs(),s=Bs().stdout,f=Ps(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],t=new Set(["gray"]),h=Object.create(null);function u(b,_){_=_||{};let y=s?s.level:0;b.level=_.level===void 0?y:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let _={};return u(_,b),_.template=function(){let y=[].slice.call(arguments);return g.apply(null,[_.template].concat(y))},Object.setPrototypeOf(_,c.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=c,_.template}u(this,b)}a&&(i.blue.open="\x1B[94m");for(let b of Object.keys(i))i[b].closeRe=new RegExp(n(i[b].close),"g"),h[b]={get(){let _=i[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};h.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(n(i.color.close),"g");for(let b of Object.keys(i.color.ansi))t.has(b)||(h[b]={get(){let _=this.level;return function(){let y={open:i.color[r[_]][b].apply(null,arguments),close:i.color.close,closeRe:i.color.closeRe};return d.call(this,this._styles?this._styles.concat(y):[y],this._empty,b)}}});i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(let b of Object.keys(i.bgColor.ansi)){if(t.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);h[_]={get(){let y=this.level;return function(){let D={open:i.bgColor[r[y]][b].apply(null,arguments),close:i.bgColor.close,closeRe:i.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},h);function d(b,_,y){let D=function(){return p.apply(D,arguments)};D._styles=b,D._empty=_;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||y==="gray"||y==="grey",D.__proto__=o,D}function p(){let b=arguments,_=b.length,y=String(arguments[0]);if(_===0)return"";if(_>1)for(let w=1;w<_;w++)y+=" "+b[w];if(!this.enabled||this.level<=0||!y)return this._empty?"":y;let D=i.dim.open;a&&this.hasGrey&&(i.dim.open="");for(let w of this._styles.slice().reverse())y=w.open+y.replace(w.closeRe,w.open)+w.close,y=y.replace(/\r?\n/g,`${w.close}$&${w.open}`);return i.dim.open=D,y}function g(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let y=[].slice.call(arguments,2),D=[_.raw[0]];for(let w=1;w<_.length;w++)D.push(String(y[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(_.raw[w]));return f(b,D.join(""))}Object.defineProperties(c.prototype,h),l.exports=c(),l.exports.supportsColor=s,l.exports.default=l.exports});var Ls=M((e,l)=>{"use strict";B(),l.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]}}),Jr=M((e,l)=>{B();var n=Ls(),i={};for(let a of Object.keys(n))i[n[a]]=a;var s={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"]}};l.exports=s;for(let a of Object.keys(s)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:r,labels:t}=s[a];delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:r}),Object.defineProperty(s[a],"labels",{value:t})}s.rgb.hsl=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.min(r,t,h),c=Math.max(r,t,h),o=c-u,d,p;c===u?d=0:r===c?d=(t-h)/o:t===c?d=2+(h-r)/o:h===c&&(d=4+(r-t)/o),d=Math.min(d*60,360),d<0&&(d+=360);let g=(u+c)/2;return c===u?p=0:g<=.5?p=o/(c+u):p=o/(2-c-u),[d,p*100,g*100]},s.rgb.hsv=function(a){let r,t,h,u,c,o=a[0]/255,d=a[1]/255,p=a[2]/255,g=Math.max(o,d,p),b=g-Math.min(o,d,p),_=function(y){return(g-y)/6/b+1/2};return b===0?(u=0,c=0):(c=b/g,r=_(o),t=_(d),h=_(p),o===g?u=h-t:d===g?u=1/3+r-h:p===g&&(u=2/3+t-r),u<0?u+=1:u>1&&(u-=1)),[u*360,c*100,g*100]},s.rgb.hwb=function(a){let r=a[0],t=a[1],h=a[2],u=s.rgb.hsl(a)[0],c=1/255*Math.min(r,Math.min(t,h));return h=1-1/255*Math.max(r,Math.max(t,h)),[u,c*100,h*100]},s.rgb.cmyk=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.min(1-r,1-t,1-h),c=(1-r-u)/(1-u)||0,o=(1-t-u)/(1-u)||0,d=(1-h-u)/(1-u)||0;return[c*100,o*100,d*100,u*100]};function f(a,r){return(a[0]-r[0])**2+(a[1]-r[1])**2+(a[2]-r[2])**2}s.rgb.keyword=function(a){let r=i[a];if(r)return r;let t=1/0,h;for(let u of Object.keys(n)){let c=n[u],o=f(a,c);o<t&&(t=o,h=u)}return h},s.keyword.rgb=function(a){return n[a]},s.rgb.xyz=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,h=h>.04045?((h+.055)/1.055)**2.4:h/12.92;let u=r*.4124+t*.3576+h*.1805,c=r*.2126+t*.7152+h*.0722,o=r*.0193+t*.1192+h*.9505;return[u*100,c*100,o*100]},s.rgb.lab=function(a){let r=s.rgb.xyz(a),t=r[0],h=r[1],u=r[2];t/=95.047,h/=100,u/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,h=h>.008856?h**(1/3):7.787*h+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let c=116*h-16,o=500*(t-h),d=200*(h-u);return[c,o,d]},s.hsl.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100,u,c,o;if(t===0)return o=h*255,[o,o,o];h<.5?u=h*(1+t):u=h+t-h*t;let d=2*h-u,p=[0,0,0];for(let g=0;g<3;g++)c=r+1/3*-(g-1),c<0&&c++,c>1&&c--,6*c<1?o=d+(u-d)*6*c:2*c<1?o=u:3*c<2?o=d+(u-d)*(2/3-c)*6:o=d,p[g]=o*255;return p},s.hsl.hsv=function(a){let r=a[0],t=a[1]/100,h=a[2]/100,u=t,c=Math.max(h,.01);h*=2,t*=h<=1?h:2-h,u*=c<=1?c:2-c;let o=(h+t)/2,d=h===0?2*u/(c+u):2*t/(h+t);return[r,d*100,o*100]},s.hsv.rgb=function(a){let r=a[0]/60,t=a[1]/100,h=a[2]/100,u=Math.floor(r)%6,c=r-Math.floor(r),o=255*h*(1-t),d=255*h*(1-t*c),p=255*h*(1-t*(1-c));switch(h*=255,u){case 0:return[h,p,o];case 1:return[d,h,o];case 2:return[o,h,p];case 3:return[o,d,h];case 4:return[p,o,h];case 5:return[h,o,d]}},s.hsv.hsl=function(a){let r=a[0],t=a[1]/100,h=a[2]/100,u=Math.max(h,.01),c,o;o=(2-t)*h;let d=(2-t)*u;return c=t*u,c/=d<=1?d:2-d,c=c||0,o/=2,[r,c*100,o*100]},s.hwb.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100,u=t+h,c;u>1&&(t/=u,h/=u);let o=Math.floor(6*r),d=1-h;c=6*r-o,(o&1)!==0&&(c=1-c);let p=t+c*(d-t),g,b,_;switch(o){default:case 6:case 0:g=d,b=p,_=t;break;case 1:g=p,b=d,_=t;break;case 2:g=t,b=d,_=p;break;case 3:g=t,b=p,_=d;break;case 4:g=p,b=t,_=d;break;case 5:g=d,b=t,_=p;break}return[g*255,b*255,_*255]},s.cmyk.rgb=function(a){let r=a[0]/100,t=a[1]/100,h=a[2]/100,u=a[3]/100,c=1-Math.min(1,r*(1-u)+u),o=1-Math.min(1,t*(1-u)+u),d=1-Math.min(1,h*(1-u)+u);return[c*255,o*255,d*255]},s.xyz.rgb=function(a){let r=a[0]/100,t=a[1]/100,h=a[2]/100,u,c,o;return u=r*3.2406+t*-1.5372+h*-.4986,c=r*-.9689+t*1.8758+h*.0415,o=r*.0557+t*-.204+h*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),[u*255,c*255,o*255]},s.xyz.lab=function(a){let r=a[0],t=a[1],h=a[2];r/=95.047,t/=100,h/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,h=h>.008856?h**(1/3):7.787*h+16/116;let u=116*t-16,c=500*(r-t),o=200*(t-h);return[u,c,o]},s.lab.xyz=function(a){let r=a[0],t=a[1],h=a[2],u,c,o;c=(r+16)/116,u=t/500+c,o=c-h/200;let d=c**3,p=u**3,g=o**3;return c=d>.008856?d:(c-16/116)/7.787,u=p>.008856?p:(u-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,u*=95.047,c*=100,o*=108.883,[u,c,o]},s.lab.lch=function(a){let r=a[0],t=a[1],h=a[2],u;u=Math.atan2(h,t)*360/2/Math.PI,u<0&&(u+=360);let c=Math.sqrt(t*t+h*h);return[r,c,u]},s.lch.lab=function(a){let r=a[0],t=a[1],h=a[2]/360*2*Math.PI,u=t*Math.cos(h),c=t*Math.sin(h);return[r,u,c]},s.rgb.ansi16=function(a,r=null){let[t,h,u]=a,c=r===null?s.rgb.hsv(a)[2]:r;if(c=Math.round(c/50),c===0)return 30;let o=30+(Math.round(u/255)<<2|Math.round(h/255)<<1|Math.round(t/255));return c===2&&(o+=60),o},s.hsv.ansi16=function(a){return s.rgb.ansi16(s.hsv.rgb(a),a[2])},s.rgb.ansi256=function(a){let r=a[0],t=a[1],h=a[2];return r===t&&t===h?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(h/255*5)},s.ansi16.rgb=function(a){let r=a%10;if(r===0||r===7)return a>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let t=(~~(a>50)+1)*.5,h=(r&1)*t*255,u=(r>>1&1)*t*255,c=(r>>2&1)*t*255;return[h,u,c]},s.ansi256.rgb=function(a){if(a>=232){let c=(a-232)*10+8;return[c,c,c]}a-=16;let r,t=Math.floor(a/36)/5*255,h=Math.floor((r=a%36)/6)/5*255,u=r%6/5*255;return[t,h,u]},s.rgb.hex=function(a){let r=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.hex.rgb=function(a){let r=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];r[0].length===3&&(t=t.split("").map(d=>d+d).join(""));let h=parseInt(t,16),u=h>>16&255,c=h>>8&255,o=h&255;return[u,c,o]},s.rgb.hcg=function(a){let r=a[0]/255,t=a[1]/255,h=a[2]/255,u=Math.max(Math.max(r,t),h),c=Math.min(Math.min(r,t),h),o=u-c,d,p;return o<1?d=c/(1-o):d=0,o<=0?p=0:u===r?p=(t-h)/o%6:u===t?p=2+(h-r)/o:p=4+(r-t)/o,p/=6,p%=1,[p*360,o*100,d*100]},s.hsl.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=t<.5?2*r*t:2*r*(1-t),u=0;return h<1&&(u=(t-.5*h)/(1-h)),[a[0],h*100,u*100]},s.hsv.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=r*t,u=0;return h<1&&(u=(t-h)/(1-h)),[a[0],h*100,u*100]},s.hcg.rgb=function(a){let r=a[0]/360,t=a[1]/100,h=a[2]/100;if(t===0)return[h*255,h*255,h*255];let u=[0,0,0],c=r%1*6,o=c%1,d=1-o,p=0;switch(Math.floor(c)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=d,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=d,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=d}return p=(1-t)*h,[(t*u[0]+p)*255,(t*u[1]+p)*255,(t*u[2]+p)*255]},s.hcg.hsv=function(a){let r=a[1]/100,t=a[2]/100,h=r+t*(1-r),u=0;return h>0&&(u=r/h),[a[0],u*100,h*100]},s.hcg.hsl=function(a){let r=a[1]/100,t=a[2]/100*(1-r)+.5*r,h=0;return t>0&&t<.5?h=r/(2*t):t>=.5&&t<1&&(h=r/(2*(1-t))),[a[0],h*100,t*100]},s.hcg.hwb=function(a){let r=a[1]/100,t=a[2]/100,h=r+t*(1-r);return[a[0],(h-r)*100,(1-h)*100]},s.hwb.hcg=function(a){let r=a[1]/100,t=a[2]/100,h=1-t,u=h-r,c=0;return u<1&&(c=(h-u)/(1-u)),[a[0],u*100,c*100]},s.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},s.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},s.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},s.gray.hsl=function(a){return[0,0,a[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(a){return[0,100,a[0]]},s.gray.cmyk=function(a){return[0,0,0,a[0]]},s.gray.lab=function(a){return[a[0],0,0]},s.gray.hex=function(a){let r=Math.round(a[0]/100*255)&255,t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),Is=M((e,l)=>{B();var n=Jr();function i(){let r={},t=Object.keys(n);for(let h=t.length,u=0;u<h;u++)r[t[u]]={distance:-1,parent:null};return r}function s(r){let t=i(),h=[r];for(t[r].distance=0;h.length;){let u=h.pop(),c=Object.keys(n[u]);for(let o=c.length,d=0;d<o;d++){let p=c[d],g=t[p];g.distance===-1&&(g.distance=t[u].distance+1,g.parent=u,h.unshift(p))}}return t}function f(r,t){return function(h){return t(r(h))}}function a(r,t){let h=[t[r].parent,r],u=n[t[r].parent][r],c=t[r].parent;for(;t[c].parent;)h.unshift(t[c].parent),u=f(n[t[c].parent][c],u),c=t[c].parent;return u.conversion=h,u}l.exports=function(r){let t=s(r),h={},u=Object.keys(t);for(let c=u.length,o=0;o<c;o++){let d=u[o];t[d].parent!==null&&(h[d]=a(d,t))}return h}}),Ms=M((e,l)=>{B();var n=Jr(),i=Is(),s={},f=Object.keys(n);function a(t){let h=function(...u){let c=u[0];return c==null?c:(c.length>1&&(u=c),t(u))};return"conversion"in t&&(h.conversion=t.conversion),h}function r(t){let h=function(...u){let c=u[0];if(c==null)return c;c.length>1&&(u=c);let o=t(u);if(typeof o=="object")for(let d=o.length,p=0;p<d;p++)o[p]=Math.round(o[p]);return o};return"conversion"in t&&(h.conversion=t.conversion),h}f.forEach(t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});let h=i(t);Object.keys(h).forEach(u=>{let c=h[u];s[t][u]=r(c),s[t][u].raw=a(c)})}),l.exports=s}),Zr=M((e,l)=>{"use strict";B();var n=(c,o)=>(...d)=>`\x1B[${c(...d)+o}m`,i=(c,o)=>(...d)=>{let p=c(...d);return`\x1B[${38+o};5;${p}m`},s=(c,o)=>(...d)=>{let p=c(...d);return`\x1B[${38+o};2;${p[0]};${p[1]};${p[2]}m`},f=c=>c,a=(c,o,d)=>[c,o,d],r=(c,o,d)=>{Object.defineProperty(c,o,{get:()=>{let p=d();return Object.defineProperty(c,o,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},t,h=(c,o,d,p)=>{t===void 0&&(t=Ms());let g=p?10:0,b={};for(let[_,y]of Object.entries(t)){let D=_==="ansi16"?"ansi":_;_===o?b[D]=c(d,g):typeof y=="object"&&(b[D]=c(y[o],g))}return b};function u(){let c=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],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]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[d,p]of Object.entries(o)){for(let[g,b]of Object.entries(p))o[g]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[g]=o[g],c.set(b[0],b[1]);Object.defineProperty(o,d,{value:p,enumerable:!1})}return Object.defineProperty(o,"codes",{value:c,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",r(o.color,"ansi",()=>h(n,"ansi16",f,!1)),r(o.color,"ansi256",()=>h(i,"ansi256",f,!1)),r(o.color,"ansi16m",()=>h(s,"rgb",a,!1)),r(o.bgColor,"ansi",()=>h(n,"ansi16",f,!0)),r(o.bgColor,"ansi256",()=>h(i,"ansi256",f,!0)),r(o.bgColor,"ansi16m",()=>h(s,"rgb",a,!0)),o}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),js=M((e,l)=>{"use strict";B(),l.exports=(n,i=process.argv)=>{let s=n.startsWith("-")?"":n.length===1?"-":"--",f=i.indexOf(s+n),a=i.indexOf("--");return f!==-1&&(a===-1||f<a)}}),Xr=M((e,l)=>{"use strict";B();var n=Z("os"),i=Z("tty"),s=js(),{env:f}=process,a;s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in f&&(f.FORCE_COLOR==="true"?a=1:f.FORCE_COLOR==="false"?a=0:a=f.FORCE_COLOR.length===0?1:Math.min(parseInt(f.FORCE_COLOR,10),3));function r(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function t(u,c){if(a===0)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(u&&!c&&a===void 0)return 0;let o=a||0;if(f.TERM==="dumb")return o;if(process.platform==="win32"){let d=n.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in f)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in f)||f.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in f)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION)?1:0;if(f.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in f){let d=parseInt((f.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(f.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||"COLORTERM"in f?1:o}function h(u){let c=t(u,u&&u.isTTY);return r(c)}l.exports={supportsColor:h,stdout:r(t(!0,i.isatty(1))),stderr:r(t(!0,i.isatty(2)))}}),Ns=M((e,l)=>{"use strict";B();var n=(s,f,a)=>{let r=s.indexOf(f);if(r===-1)return s;let t=f.length,h=0,u="";do u+=s.substr(h,r-h)+f+a,h=r+t,r=s.indexOf(f,h);while(r!==-1);return u+=s.substr(h),u},i=(s,f,a,r)=>{let t=0,h="";do{let u=s[r-1]==="\r";h+=s.substr(t,(u?r-1:r)-t)+f+(u?`\r
|
|
7
7
|
`:`
|
|
8
8
|
`)+a,t=r+1,r=s.indexOf(`
|
|
9
9
|
`,t)}while(r!==-1);return h+=s.substr(t),h};l.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:i}}),$s=M((e,l)=>{"use strict";B();var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,f=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
10
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(s))d.push(g[2].replace(f,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);p=b.length>0?p[g](...b):p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),Hs=M((e,l)=>{"use strict";B();var n=Zr(),{stdout:i,stderr:s}=Xr(),{stringReplaceAll:f,stringEncaseCRLFWithFirstIndex:a}=Ns(),r=["ansi","ansi","ansi256","ansi16m"],t=Object.create(null),h=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let E=i?i.level:0;v.level=m.level===void 0?E:m.level},u=class{constructor(v){return c(v)}},c=v=>{let m={};return h(m,v),m.template=(...E)=>D(m.template,...E),Object.setPrototypeOf(m,o.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=u,m.template};function o(v){return c(v)}for(let[v,m]of Object.entries(n))t[v]={get(){let E=b(this,g(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:E}),E}};t.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)t[v]={get(){let{level:m}=this;return function(...E){let S=g(n.color[r[m]][v](...E),n.color.close,this._styler);return b(this,S,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);t[m]={get(){let{level:E}=this;return function(...S){let A=g(n.bgColor[r[E]][v](...S),n.bgColor.close,this._styler);return b(this,A,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...t,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),g=(v,m,E)=>{let S,A;return E===void 0?(S=v,A=m):(S=E.openAll+v,A=m+E.closeAll),{open:v,close:m,openAll:S,closeAll:A,parent:E}},b=(v,m,E)=>{let S=(...A)=>_(S,A.length===1?""+A[0]:A.join(" "));return S.__proto__=p,S._generator=v,S._styler=m,S._isEmpty=E,S},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let E=v._styler;if(E===void 0)return m;let{openAll:S,closeAll:A}=E;if(m.indexOf("\x1B")!==-1)for(;E!==void 0;)m=f(m,E.close,E.open),E=E.parent;let
|
|
11
|
-
`);return x!==-1&&(m=a(m,A,S,x)),S+m+A},y,D=(v,...m)=>{let[E]=m;if(!Array.isArray(E))return m.join(" ");let S=m.slice(1),A=[E.raw[0]];for(let x=1;x<E.length;x++)A.push(String(S[x-1]).replace(/[{}\\]/g,"\\$&"),String(E.raw[x]));return y===void 0&&(y=$s()),y(v,A.join(""))};Object.defineProperties(o.prototype,t);var w=o();w.supportsColor=i,w.stderr=o({level:s?s.level:0}),w.stderr.supportsColor=s,w.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},l.exports=w}),Us=M((e,l)=>{"use strict";B();var n=Nt(),i=$t();l.exports=n(()=>{i(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),Gs=M(e=>{"use strict";B();var l=Us(),n=!1;e.show=(i=process.stderr)=>{!i.isTTY||(n=!1,i.write("\x1B[?25h"))},e.hide=(i=process.stderr)=>{!i.isTTY||(l(),n=!0,i.write("\x1B[?25l"))},e.toggle=(i,s)=>{i!==void 0&&(n=i),n?e.show(s):e.hide(s)}}),qs=M((e,l)=>{l.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"]}}}),zs=M((e,l)=>{"use strict";B();var n=Object.assign({},qs()),i=Object.keys(n);Object.defineProperty(n,"random",{get(){let s=Math.floor(Math.random()*i.length),f=i[s];return n[f]}}),l.exports=n}),Ws=M((e,l)=>{"use strict";B();var n=it(),i=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",s={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},f={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};l.exports=i?s:f}),Vs=M((e,l)=>{"use strict";B(),l.exports=({onlyFirst:n=!1}={})=>{let i=["[\\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(i,n?void 0:"g")}}),Ks=M((e,l)=>{"use strict";B();var n=Vs();l.exports=i=>typeof i=="string"?i.replace(n(),""):i}),Ys=M((e,l)=>{B();var n=function(){"use strict";function i(h,u,c,o){var d;typeof u=="object"&&(c=u.depth,o=u.prototype,d=u.filter,u=u.circular);var p=[],g=[],b=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof c>"u"&&(c=1/0);function _(y,D){if(y===null)return null;if(D==0)return y;var w,v;if(typeof y!="object")return y;if(i.__isArray(y))w=[];else if(i.__isRegExp(y))w=new RegExp(y.source,t(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(i.__isDate(y))w=new Date(y.getTime());else{if(b&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof o>"u"?(v=Object.getPrototypeOf(y),w=Object.create(v)):(w=Object.create(o),v=o)}if(u){var m=p.indexOf(y);if(m!=-1)return g[m];p.push(y),g.push(w)}for(var E in y){var S;v&&(S=Object.getOwnPropertyDescriptor(v,E)),!(S&&S.set==null)&&(w[E]=_(y[E],D-1))}return w}return _(h,c)}i.clonePrototype=function(h){if(h===null)return null;var u=function(){};return u.prototype=h,new u};function s(h){return Object.prototype.toString.call(h)}i.__objToStr=s;function f(h){return typeof h=="object"&&s(h)==="[object Date]"}i.__isDate=f;function a(h){return typeof h=="object"&&s(h)==="[object Array]"}i.__isArray=a;function r(h){return typeof h=="object"&&s(h)==="[object RegExp]"}i.__isRegExp=r;function t(h){var u="";return h.global&&(u+="g"),h.ignoreCase&&(u+="i"),h.multiline&&(u+="m"),u}return i.__getRegExpFlags=t,i}();typeof l=="object"&&l.exports&&(l.exports=n)}),Js=M((e,l)=>{B();var n=Ys();l.exports=function(i,s){return i=i||{},Object.keys(s).forEach(function(f){typeof i[f]>"u"&&(i[f]=n(s[f]))}),i}}),Zs=M((e,l)=>{B(),l.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]]}),Xs=M((e,l)=>{"use strict";B();var n=Js(),i=Zs(),s={nul:0,control:0};l.exports=function(t){return f(t,s)},l.exports.config=function(t){return t=n(t||{},s),function(h){return f(h,t)}};function f(t,h){if(typeof t!="string")return a(t,h);for(var u=0,c=0;c<t.length;c++){var o=a(t.charCodeAt(c),h);if(o<0)return-1;u+=o}return u}function a(t,h){return t===0?h.nul:t<32||t>=127&&t<160?h.control:r(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function r(t){var h=0,u=i.length-1,c;if(t<i[0][0]||t>i[u][1])return!1;for(;u>=h;)if(c=Math.floor((h+u)/2),t>i[c][1])h=c+1;else if(t<i[c][0])u=c-1;else return!0;return!1}}),Qs=M((e,l)=>{"use strict";B(),l.exports=({stream:n=process.stdout}={})=>Boolean(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),eo=M((e,l)=>{B();var n=Z("stream");l.exports=i;function i(t){n.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}i.prototype=Object.create(n.prototype),Object.defineProperty(i.prototype,"constructor",{value:i,enumerable:!1}),i.prototype.mute=function(){this.muted=!0},i.prototype.unmute=function(){this.muted=!1},Object.defineProperty(i.prototype,"_onpipe",{value:s,enumerable:!1,writable:!0,configurable:!0});function s(t){this._src=t}Object.defineProperty(i.prototype,"isTTY",{get:f,set:a,enumerable:!0,configurable:!0});function f(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(i.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),i.prototype.pipe=function(t,h){return this._dest=t,n.prototype.pipe.call(this,t,h)},i.prototype.pause=function(){if(this._src)return this._src.pause()},i.prototype.resume=function(){if(this._src)return this._src.resume()},i.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)},i.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function r(t){return function(){var h=this._dest,u=this._src;h&&h[t]&&h[t].apply(h,arguments),u&&u[t]&&u[t].apply(u,arguments)}}i.prototype.destroy=r("destroy"),i.prototype.destroySoon=r("destroySoon"),i.prototype.close=r("close")}),to=M((e,l)=>{"use strict";B();var n=Z("readline"),i=Hs(),s=Gs(),f=zs(),a=Ws(),r=Ks(),t=Xs(),h=Qs(),u=eo(),c=Symbol("text"),o=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new u,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let y=this;this.ourEmit=function(D,w,...v){let{stdin:m}=process;if(y.requests>0||m.emit===y.ourEmit){if(D==="keypress")return;D==="data"&&w.includes(d)&&process.emit("SIGINT"),Reflect.apply(y.oldEmit,this,[D,w,...v])}else Reflect.apply(process.stdin.emit,this,[D,w,...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=n.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)}},g,b=class{constructor(y){g||(g=new p),typeof y=="string"&&(y={text:y}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...y},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:h({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(y=0){if(!(y>=0&&Number.isInteger(y)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=y}_updateInterval(y){y!==void 0&&(this.interval=y)}get spinner(){return this._spinner}set spinner(y){if(this.frameIndex=0,typeof y=="object"){if(y.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=y}else if(process.platform==="win32")this._spinner=f.line;else if(y===void 0)this._spinner=f.dots;else if(f[y])this._spinner=f[y];else throw new Error(`There is no built-in spinner named '${y}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[c]}get prefixText(){return this[o]}get isSpinning(){return this.id!==void 0}updateLineCount(){let y=this.stream.columns||80,D=typeof this[o]=="string"?this[o]+"-":"";this.lineCount=r(D+"--"+this[c]).split(`
|
|
10
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(s))d.push(g[2].replace(f,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);p=b.length>0?p[g](...b):p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),Hs=M((e,l)=>{"use strict";B();var n=Zr(),{stdout:i,stderr:s}=Xr(),{stringReplaceAll:f,stringEncaseCRLFWithFirstIndex:a}=Ns(),r=["ansi","ansi","ansi256","ansi16m"],t=Object.create(null),h=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let E=i?i.level:0;v.level=m.level===void 0?E:m.level},u=class{constructor(v){return c(v)}},c=v=>{let m={};return h(m,v),m.template=(...E)=>D(m.template,...E),Object.setPrototypeOf(m,o.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=u,m.template};function o(v){return c(v)}for(let[v,m]of Object.entries(n))t[v]={get(){let E=b(this,g(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:E}),E}};t.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)t[v]={get(){let{level:m}=this;return function(...E){let S=g(n.color[r[m]][v](...E),n.color.close,this._styler);return b(this,S,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);t[m]={get(){let{level:E}=this;return function(...S){let A=g(n.bgColor[r[E]][v](...S),n.bgColor.close,this._styler);return b(this,A,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...t,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),g=(v,m,E)=>{let S,A;return E===void 0?(S=v,A=m):(S=E.openAll+v,A=m+E.closeAll),{open:v,close:m,openAll:S,closeAll:A,parent:E}},b=(v,m,E)=>{let S=(...A)=>_(S,A.length===1?""+A[0]:A.join(" "));return S.__proto__=p,S._generator=v,S._styler=m,S._isEmpty=E,S},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let E=v._styler;if(E===void 0)return m;let{openAll:S,closeAll:A}=E;if(m.indexOf("\x1B")!==-1)for(;E!==void 0;)m=f(m,E.close,E.open),E=E.parent;let k=m.indexOf(`
|
|
11
|
+
`);return k!==-1&&(m=a(m,A,S,k)),S+m+A},y,D=(v,...m)=>{let[E]=m;if(!Array.isArray(E))return m.join(" ");let S=m.slice(1),A=[E.raw[0]];for(let k=1;k<E.length;k++)A.push(String(S[k-1]).replace(/[{}\\]/g,"\\$&"),String(E.raw[k]));return y===void 0&&(y=$s()),y(v,A.join(""))};Object.defineProperties(o.prototype,t);var w=o();w.supportsColor=i,w.stderr=o({level:s?s.level:0}),w.stderr.supportsColor=s,w.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},l.exports=w}),Us=M((e,l)=>{"use strict";B();var n=Nt(),i=$t();l.exports=n(()=>{i(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),Gs=M(e=>{"use strict";B();var l=Us(),n=!1;e.show=(i=process.stderr)=>{!i.isTTY||(n=!1,i.write("\x1B[?25h"))},e.hide=(i=process.stderr)=>{!i.isTTY||(l(),n=!0,i.write("\x1B[?25l"))},e.toggle=(i,s)=>{i!==void 0&&(n=i),n?e.show(s):e.hide(s)}}),qs=M((e,l)=>{l.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"]}}}),zs=M((e,l)=>{"use strict";B();var n=Object.assign({},qs()),i=Object.keys(n);Object.defineProperty(n,"random",{get(){let s=Math.floor(Math.random()*i.length),f=i[s];return n[f]}}),l.exports=n}),Ws=M((e,l)=>{"use strict";B();var n=it(),i=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",s={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},f={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};l.exports=i?s:f}),Vs=M((e,l)=>{"use strict";B(),l.exports=({onlyFirst:n=!1}={})=>{let i=["[\\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(i,n?void 0:"g")}}),Ks=M((e,l)=>{"use strict";B();var n=Vs();l.exports=i=>typeof i=="string"?i.replace(n(),""):i}),Ys=M((e,l)=>{B();var n=function(){"use strict";function i(h,u,c,o){var d;typeof u=="object"&&(c=u.depth,o=u.prototype,d=u.filter,u=u.circular);var p=[],g=[],b=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof c>"u"&&(c=1/0);function _(y,D){if(y===null)return null;if(D==0)return y;var w,v;if(typeof y!="object")return y;if(i.__isArray(y))w=[];else if(i.__isRegExp(y))w=new RegExp(y.source,t(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(i.__isDate(y))w=new Date(y.getTime());else{if(b&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof o>"u"?(v=Object.getPrototypeOf(y),w=Object.create(v)):(w=Object.create(o),v=o)}if(u){var m=p.indexOf(y);if(m!=-1)return g[m];p.push(y),g.push(w)}for(var E in y){var S;v&&(S=Object.getOwnPropertyDescriptor(v,E)),!(S&&S.set==null)&&(w[E]=_(y[E],D-1))}return w}return _(h,c)}i.clonePrototype=function(h){if(h===null)return null;var u=function(){};return u.prototype=h,new u};function s(h){return Object.prototype.toString.call(h)}i.__objToStr=s;function f(h){return typeof h=="object"&&s(h)==="[object Date]"}i.__isDate=f;function a(h){return typeof h=="object"&&s(h)==="[object Array]"}i.__isArray=a;function r(h){return typeof h=="object"&&s(h)==="[object RegExp]"}i.__isRegExp=r;function t(h){var u="";return h.global&&(u+="g"),h.ignoreCase&&(u+="i"),h.multiline&&(u+="m"),u}return i.__getRegExpFlags=t,i}();typeof l=="object"&&l.exports&&(l.exports=n)}),Js=M((e,l)=>{B();var n=Ys();l.exports=function(i,s){return i=i||{},Object.keys(s).forEach(function(f){typeof i[f]>"u"&&(i[f]=n(s[f]))}),i}}),Zs=M((e,l)=>{B(),l.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]]}),Xs=M((e,l)=>{"use strict";B();var n=Js(),i=Zs(),s={nul:0,control:0};l.exports=function(t){return f(t,s)},l.exports.config=function(t){return t=n(t||{},s),function(h){return f(h,t)}};function f(t,h){if(typeof t!="string")return a(t,h);for(var u=0,c=0;c<t.length;c++){var o=a(t.charCodeAt(c),h);if(o<0)return-1;u+=o}return u}function a(t,h){return t===0?h.nul:t<32||t>=127&&t<160?h.control:r(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function r(t){var h=0,u=i.length-1,c;if(t<i[0][0]||t>i[u][1])return!1;for(;u>=h;)if(c=Math.floor((h+u)/2),t>i[c][1])h=c+1;else if(t<i[c][0])u=c-1;else return!0;return!1}}),Qs=M((e,l)=>{"use strict";B(),l.exports=({stream:n=process.stdout}={})=>Boolean(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),eo=M((e,l)=>{B();var n=Z("stream");l.exports=i;function i(t){n.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}i.prototype=Object.create(n.prototype),Object.defineProperty(i.prototype,"constructor",{value:i,enumerable:!1}),i.prototype.mute=function(){this.muted=!0},i.prototype.unmute=function(){this.muted=!1},Object.defineProperty(i.prototype,"_onpipe",{value:s,enumerable:!1,writable:!0,configurable:!0});function s(t){this._src=t}Object.defineProperty(i.prototype,"isTTY",{get:f,set:a,enumerable:!0,configurable:!0});function f(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(i.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),i.prototype.pipe=function(t,h){return this._dest=t,n.prototype.pipe.call(this,t,h)},i.prototype.pause=function(){if(this._src)return this._src.pause()},i.prototype.resume=function(){if(this._src)return this._src.resume()},i.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)},i.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function r(t){return function(){var h=this._dest,u=this._src;h&&h[t]&&h[t].apply(h,arguments),u&&u[t]&&u[t].apply(u,arguments)}}i.prototype.destroy=r("destroy"),i.prototype.destroySoon=r("destroySoon"),i.prototype.close=r("close")}),to=M((e,l)=>{"use strict";B();var n=Z("readline"),i=Hs(),s=Gs(),f=zs(),a=Ws(),r=Ks(),t=Xs(),h=Qs(),u=eo(),c=Symbol("text"),o=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new u,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let y=this;this.ourEmit=function(D,w,...v){let{stdin:m}=process;if(y.requests>0||m.emit===y.ourEmit){if(D==="keypress")return;D==="data"&&w.includes(d)&&process.emit("SIGINT"),Reflect.apply(y.oldEmit,this,[D,w,...v])}else Reflect.apply(process.stdin.emit,this,[D,w,...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=n.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)}},g,b=class{constructor(y){g||(g=new p),typeof y=="string"&&(y={text:y}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...y},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:h({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(y=0){if(!(y>=0&&Number.isInteger(y)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=y}_updateInterval(y){y!==void 0&&(this.interval=y)}get spinner(){return this._spinner}set spinner(y){if(this.frameIndex=0,typeof y=="object"){if(y.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=y}else if(process.platform==="win32")this._spinner=f.line;else if(y===void 0)this._spinner=f.dots;else if(f[y])this._spinner=f[y];else throw new Error(`There is no built-in spinner named '${y}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[c]}get prefixText(){return this[o]}get isSpinning(){return this.id!==void 0}updateLineCount(){let y=this.stream.columns||80,D=typeof this[o]=="string"?this[o]+"-":"";this.lineCount=r(D+"--"+this[c]).split(`
|
|
12
12
|
`).reduce((w,v)=>w+Math.max(1,Math.ceil(t(v)/y)),0)}set text(y){this[c]=y,this.updateLineCount()}set prefixText(y){this[o]=y,this.updateLineCount()}frame(){let{frames:y}=this.spinner,D=y[this.frameIndex];this.color&&(D=i[this.color](D)),this.frameIndex=++this.frameIndex%y.length;let w=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return w+D+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let y=0;y<this.linesToClear;y++)y>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(y){return y&&(this.text=y),this.isEnabled?this.isSpinning?this:(this.hideCursor&&s.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,g.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
13
13
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&s.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(g.stop(),this.isDiscardingStdin=!1),this):this}succeed(y){return this.stopAndPersist({symbol:a.success,text:y})}fail(y){return this.stopAndPersist({symbol:a.error,text:y})}warn(y){return this.stopAndPersist({symbol:a.warning,text:y})}info(y){return this.stopAndPersist({symbol:a.info,text:y})}stopAndPersist(y={}){let D=y.prefixText||this.prefixText,w=typeof D=="string"&&D!==""?D+" ":"",v=y.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${w}${y.symbol||" "}${m}
|
|
14
14
|
`),this}},_=function(y){return new b(y)};l.exports=_,l.exports.promise=(y,D)=>{if(typeof y.then!="function")throw new TypeError("Parameter `action` must be a Promise");let w=new b(D);return w.start(),(async()=>{try{await y,w.succeed()}catch{w.fail()}})(),w}}),ro=M((e,l)=>{"use strict";B();var n=(s,f,a)=>{let r=s.indexOf(f);if(r===-1)return s;let t=f.length,h=0,u="";do u+=s.substr(h,r-h)+f+a,h=r+t,r=s.indexOf(f,h);while(r!==-1);return u+=s.substr(h),u},i=(s,f,a,r)=>{let t=0,h="";do{let u=s[r-1]==="\r";h+=s.substr(t,(u?r-1:r)-t)+f+(u?`\r
|
|
15
15
|
`:`
|
|
16
16
|
`)+a,t=r+1,r=s.indexOf(`
|
|
17
17
|
`,t)}while(r!==-1);return h+=s.substr(t),h};l.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:i}}),no=M((e,l)=>{"use strict";B();var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,f=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
18
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(s))d.push(g[2].replace(f,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);p=b.length>0?p[g](...b):p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),io=M((e,l)=>{"use strict";B();var n=Zr(),{stdout:i,stderr:s}=Xr(),{stringReplaceAll:f,stringEncaseCRLFWithFirstIndex:a}=ro(),{isArray:r}=Array,t=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null),u=(m,E={})=>{if(E.level&&!(Number.isInteger(E.level)&&E.level>=0&&E.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let S=i?i.level:0;m.level=E.level===void 0?S:E.level},c=class{constructor(m){return o(m)}},o=m=>{let E={};return u(E,m),E.template=(...S)=>w(E.template,...S),Object.setPrototypeOf(E,d.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=c,E.template};function d(m){return o(m)}for(let[m,E]of Object.entries(n))h[m]={get(){let S=_(this,b(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:S}),S}};h.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)h[m]={get(){let{level:E}=this;return function(...S){let A=b(n.color[t[E]][m](...S),n.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of p){let E="bg"+m[0].toUpperCase()+m.slice(1);h[E]={get(){let{level:S}=this;return function(...A){let
|
|
19
|
-
`);return L!==-1&&(E=a(E,x,A,L)),A+E+x},D,w=(m,...E)=>{let[S]=E;if(!r(S)||!r(S.raw))return E.join(" ");let A=E.slice(1),x=[S.raw[0]];for(let L=1;L<S.length;L++)x.push(String(A[L-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[L]));return D===void 0&&(D=no()),D(m,x.join(""))};Object.defineProperties(d.prototype,h);var v=d();v.supportsColor=i,v.stderr=d({level:s?s.level:0}),v.stderr.supportsColor=s,l.exports=v}),so=M((e,l)=>{B(),function(n){var i=/^\s+/,s=/\s+$/,f=0,a=n.round,r=n.min,t=n.max,h=n.random;function u(H,V){if(H=H||"",V=V||{},H instanceof u)return H;if(!(this instanceof u))return new u(H,V);var C=c(H);this._originalInput=H,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=V.format||C.format,this._gradientType=V.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=C.ok,this._tc_id=f++}u.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 H=this.toRgb();return(H.r*299+H.g*587+H.b*114)/1e3},getLuminance:function(){var H=this.toRgb(),V,C,z,X,re,ce;return V=H.r/255,C=H.g/255,z=H.b/255,V<=.03928?X=V/12.92:X=n.pow((V+.055)/1.055,2.4),C<=.03928?re=C/12.92:re=n.pow((C+.055)/1.055,2.4),z<=.03928?ce=z/12.92:ce=n.pow((z+.055)/1.055,2.4),.2126*X+.7152*re+.0722*ce},setAlpha:function(H){return this._a=Q(H),this._roundA=a(100*this._a)/100,this},toHsv:function(){var H=g(this._r,this._g,this._b);return{h:H.h*360,s:H.s,v:H.v,a:this._a}},toHsvString:function(){var H=g(this._r,this._g,this._b),V=a(H.h*360),C=a(H.s*100),z=a(H.v*100);return this._a==1?"hsv("+V+", "+C+"%, "+z+"%)":"hsva("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHsl:function(){var H=d(this._r,this._g,this._b);return{h:H.h*360,s:H.s,l:H.l,a:this._a}},toHslString:function(){var H=d(this._r,this._g,this._b),V=a(H.h*360),C=a(H.s*100),z=a(H.l*100);return this._a==1?"hsl("+V+", "+C+"%, "+z+"%)":"hsla("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHex:function(H){return _(this._r,this._g,this._b,H)},toHexString:function(H){return"#"+this.toHex(H)},toHex8:function(H){return y(this._r,this._g,this._b,this._a,H)},toHex8String:function(H){return"#"+this.toHex8(H)},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(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(H){var V="#"+D(this._r,this._g,this._b,this._a),C=V,z=this._gradientType?"GradientType = 1, ":"";if(H){var X=u(H);C="#"+D(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+z+"startColorstr="+V+",endColorstr="+C+")"},toString:function(H){var V=!!H;H=H||this._format;var C=!1,z=this._a<1&&this._a>=0,X=!V&&z&&(H==="hex"||H==="hex6"||H==="hex3"||H==="hex4"||H==="hex8"||H==="name");return X?H==="name"&&this._a===0?this.toName():this.toRgbString():(H==="rgb"&&(C=this.toRgbString()),H==="prgb"&&(C=this.toPercentageRgbString()),(H==="hex"||H==="hex6")&&(C=this.toHexString()),H==="hex3"&&(C=this.toHexString(!0)),H==="hex4"&&(C=this.toHex8String(!0)),H==="hex8"&&(C=this.toHex8String()),H==="name"&&(C=this.toName()),H==="hsl"&&(C=this.toHslString()),H==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(H,V){var C=H.apply(null,[this].concat([].slice.call(V)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(H,V){return H.apply(null,[this].concat([].slice.call(V)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},u.fromRatio=function(H,V){if(typeof H=="object"){var C={};for(var z in H)H.hasOwnProperty(z)&&(z==="a"?C[z]=H[z]:C[z]=N(H[z]));H=C}return u(H,V)};function c(H){var V={r:0,g:0,b:0},C=1,z=null,X=null,re=null,ce=!1,ie=!1;return typeof H=="string"&&(H=ye(H)),typeof H=="object"&&(le(H.r)&&le(H.g)&&le(H.b)?(V=o(H.r,H.g,H.b),ce=!0,ie=String(H.r).substr(-1)==="%"?"prgb":"rgb"):le(H.h)&&le(H.s)&&le(H.v)?(z=N(H.s),X=N(H.v),V=b(H.h,z,X),ce=!0,ie="hsv"):le(H.h)&&le(H.s)&&le(H.l)&&(z=N(H.s),re=N(H.l),V=p(H.h,z,re),ce=!0,ie="hsl"),H.hasOwnProperty("a")&&(C=H.a)),C=Q(C),{ok:ce,format:H.format||ie,r:r(255,t(V.r,0)),g:r(255,t(V.g,0)),b:r(255,t(V.b,0)),a:C}}function o(H,V,C){return{r:P(H,255)*255,g:P(V,255)*255,b:P(C,255)*255}}function d(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=t(H,V,C),X=r(H,V,C),re,ce,ie=(z+X)/2;if(z==X)re=ce=0;else{var ue=z-X;switch(ce=ie>.5?ue/(2-z-X):ue/(z+X),z){case H:re=(V-C)/ue+(V<C?6:0);break;case V:re=(C-H)/ue+2;break;case C:re=(H-V)/ue+4;break}re/=6}return{h:re,s:ce,l:ie}}function p(H,V,C){var z,X,re;H=P(H,360),V=P(V,100),C=P(C,100);function ce(ne,he,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ne+(he-ne)*6*be:be<1/2?he:be<2/3?ne+(he-ne)*(2/3-be)*6:ne}if(V===0)z=X=re=C;else{var ie=C<.5?C*(1+V):C+V-C*V,ue=2*C-ie;z=ce(ue,ie,H+1/3),X=ce(ue,ie,H),re=ce(ue,ie,H-1/3)}return{r:z*255,g:X*255,b:re*255}}function g(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=t(H,V,C),X=r(H,V,C),re,ce,ie=z,ue=z-X;if(ce=z===0?0:ue/z,z==X)re=0;else{switch(z){case H:re=(V-C)/ue+(V<C?6:0);break;case V:re=(C-H)/ue+2;break;case C:re=(H-V)/ue+4;break}re/=6}return{h:re,s:ce,v:ie}}function b(H,V,C){H=P(H,360)*6,V=P(V,100),C=P(C,100);var z=n.floor(H),X=H-z,re=C*(1-V),ce=C*(1-X*V),ie=C*(1-(1-X)*V),ue=z%6,ne=[C,ce,re,re,ie,C][ue],he=[ie,C,C,ce,re,re][ue],be=[re,re,ie,C,C,ce][ue];return{r:ne*255,g:he*255,b:be*255}}function _(H,V,C,z){var X=[ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16))];return z&&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 y(H,V,C,z,X){var re=[ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16)),ee(K(z))];return X&&re[0].charAt(0)==re[0].charAt(1)&&re[1].charAt(0)==re[1].charAt(1)&&re[2].charAt(0)==re[2].charAt(1)&&re[3].charAt(0)==re[3].charAt(1)?re[0].charAt(0)+re[1].charAt(0)+re[2].charAt(0)+re[3].charAt(0):re.join("")}function D(H,V,C,z){var X=[ee(K(z)),ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16))];return X.join("")}u.equals=function(H,V){return!H||!V?!1:u(H).toRgbString()==u(V).toRgbString()},u.random=function(){return u.fromRatio({r:h(),g:h(),b:h()})};function w(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.s-=V/100,C.s=j(C.s),u(C)}function v(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.s+=V/100,C.s=j(C.s),u(C)}function m(H){return u(H).desaturate(100)}function E(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.l+=V/100,C.l=j(C.l),u(C)}function S(H,V){V=V===0?0:V||10;var C=u(H).toRgb();return C.r=t(0,r(255,C.r-a(255*-(V/100)))),C.g=t(0,r(255,C.g-a(255*-(V/100)))),C.b=t(0,r(255,C.b-a(255*-(V/100)))),u(C)}function A(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.l-=V/100,C.l=j(C.l),u(C)}function x(H,V){var C=u(H).toHsl(),z=(C.h+V)%360;return C.h=z<0?360+z:z,u(C)}function L(H){var V=u(H).toHsl();return V.h=(V.h+180)%360,u(V)}function T(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+120)%360,s:V.s,l:V.l}),u({h:(C+240)%360,s:V.s,l:V.l})]}function k(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+90)%360,s:V.s,l:V.l}),u({h:(C+180)%360,s:V.s,l:V.l}),u({h:(C+270)%360,s:V.s,l:V.l})]}function O(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+72)%360,s:V.s,l:V.l}),u({h:(C+216)%360,s:V.s,l:V.l})]}function I(H,V,C){V=V||6,C=C||30;var z=u(H).toHsl(),X=360/C,re=[u(H)];for(z.h=(z.h-(X*V>>1)+720)%360;--V;)z.h=(z.h+X)%360,re.push(u(z));return re}function $(H,V){V=V||6;for(var C=u(H).toHsv(),z=C.h,X=C.s,re=C.v,ce=[],ie=1/V;V--;)ce.push(u({h:z,s:X,v:re})),re=(re+ie)%1;return ce}u.mix=function(H,V,C){C=C===0?0:C||50;var z=u(H).toRgb(),X=u(V).toRgb(),re=C/100,ce={r:(X.r-z.r)*re+z.r,g:(X.g-z.g)*re+z.g,b:(X.b-z.b)*re+z.b,a:(X.a-z.a)*re+z.a};return u(ce)},u.readability=function(H,V){var C=u(H),z=u(V);return(n.max(C.getLuminance(),z.getLuminance())+.05)/(n.min(C.getLuminance(),z.getLuminance())+.05)},u.isReadable=function(H,V,C){var z=u.readability(H,V),X,re;switch(re=!1,X=de(C),X.level+X.size){case"AAsmall":case"AAAlarge":re=z>=4.5;break;case"AAlarge":re=z>=3;break;case"AAAsmall":re=z>=7;break}return re},u.mostReadable=function(H,V,C){var z=null,X=0,re,ce,ie,ue;C=C||{},ce=C.includeFallbackColors,ie=C.level,ue=C.size;for(var ne=0;ne<V.length;ne++)re=u.readability(H,V[ne]),re>X&&(X=re,z=u(V[ne]));return u.isReadable(H,z,{level:ie,size:ue})||!ce?z:(C.includeFallbackColors=!1,u.mostReadable(H,["#fff","#000"],C))};var R=u.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"},G=u.hexNames=W(R);function W(H){var V={};for(var C in H)H.hasOwnProperty(C)&&(V[H[C]]=C);return V}function Q(H){return H=parseFloat(H),(isNaN(H)||H<0||H>1)&&(H=1),H}function P(H,V){J(H)&&(H="100%");var C=q(H);return H=r(V,t(0,parseFloat(H))),C&&(H=parseInt(H*V,10)/100),n.abs(H-V)<1e-6?1:H%V/parseFloat(V)}function j(H){return r(1,t(0,H))}function F(H){return parseInt(H,16)}function J(H){return typeof H=="string"&&H.indexOf(".")!=-1&&parseFloat(H)===1}function q(H){return typeof H=="string"&&H.indexOf("%")!=-1}function ee(H){return H.length==1?"0"+H:""+H}function N(H){return H<=1&&(H=H*100+"%"),H}function K(H){return n.round(parseFloat(H)*255).toString(16)}function te(H){return F(H)/255}var se=function(){var H="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",C="(?:"+V+")|(?:"+H+")",z="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+z),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 le(H){return!!se.CSS_UNIT.exec(H)}function ye(H){H=H.replace(i,"").replace(s,"").toLowerCase();var V=!1;if(R[H])H=R[H],V=!0;else if(H=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=se.rgb.exec(H))?{r:C[1],g:C[2],b:C[3]}:(C=se.rgba.exec(H))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=se.hsl.exec(H))?{h:C[1],s:C[2],l:C[3]}:(C=se.hsla.exec(H))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=se.hsv.exec(H))?{h:C[1],s:C[2],v:C[3]}:(C=se.hsva.exec(H))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=se.hex8.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),a:te(C[4]),format:V?"name":"hex8"}:(C=se.hex6.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),format:V?"name":"hex"}:(C=se.hex4.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),a:te(C[4]+""+C[4]),format:V?"name":"hex8"}:(C=se.hex3.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),format:V?"name":"hex"}:!1}function de(H){var V,C;return H=H||{level:"AA",size:"small"},V=(H.level||"AA").toUpperCase(),C=(H.size||"small").toLowerCase(),V!=="AA"&&V!=="AAA"&&(V="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:V,size:C}}typeof l<"u"&&l.exports?l.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u}(Math)}),oo=M((e,l)=>{B();var n=so(),i={r:256,g:256,b:256,a:1},s={h:360,s:1,v:1,a:1};function f(o,d,p){let g={};for(let b in o)o.hasOwnProperty(b)&&(g[b]=p===0?0:(d[b]-o[b])/p);return g}function a(o,d,p,g){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=o[_]*p+d[_],b[_]=b[_]<0?b[_]+g[_]:g[_]!==1?b[_]%g[_]:b[_]);return b}function r(o,d,p){let g=o.color.toRgb(),b=d.color.toRgb(),_=f(g,b,p),y=[o.color];for(let D=1;D<p;D++){let w=a(_,g,D,i);y.push(n(w))}return y}function t(o,d,p,g){let b=o.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return r(o,d,p);let y;if(typeof g=="boolean")y=g;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;y=g==="long"&&m||g==="short"&&!m}let D=f(b,_,p),w=[o.color],v;b.h<=_.h&&!y||b.h>=_.h&&y?v=_.h-b.h:y?v=360-_.h+b.h:v=360-b.h+_.h,D.h=Math.pow(-1,y?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let E=a(D,b,m,s);w.push(n(E))}return w}function h(o,d){let p=o.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 g=[];for(let _=1;_<p;_++){let y=(d-1)*(o[_].pos-o[_-1].pos);g.push(Math.max(1,Math.round(y)))}let b=1;for(let _=p-1;_--;)b+=g[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,g);g[g.indexOf(_)]++,b++}else{let _=Math.max.apply(null,g);g[g.indexOf(_)]--,b--}return g}function u(o,d,p,g){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let w=0,v=o.length;w<v-1;w++)if(d>=o[w].pos&&d<o[w+1].pos){b=o[w],_=o[w+1];break}b||(b=_=o[o.length-1]);let y=f(b.color[p](),_.color[p](),(_.pos-b.pos)*100),D=a(y,b.color[p](),(d-b.pos)*100,g);return n(D)}var c=class{constructor(o){if(o.length<2)throw new Error("Invalid number of stops (< 2)");let d=o[0].pos!==void 0,p=o.length,g=-1,b=!1;this.stops=o.map((_,y)=>{let D=_.pos!==void 0;if(d^D)throw new Error("Cannot mix positionned and not posionned color stops");if(D){let w=_.color!==void 0;if(!w&&(b||y===0||y===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!w,_={color:w?n(_.color):null,colorLess:!w,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<g)throw new Error("Color stops positions are not ordered");g=_.pos}else _={color:n(_.color!==void 0?_.color:_),pos:y/(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 o=[];return this.stops.forEach(function(d){o.push({color:d.color,pos:1-d.pos})}),new c(o.reverse())}loop(){let o=[],d=[];return this.stops.forEach(p=>{o.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 c(o.concat(d.reverse()))}rgb(o){let d=h(this.stops,o),p=[];this.stops.forEach((g,b)=>{g.colorLess&&(g.color=r(this.stops[b-1],this.stops[b+1],2)[1])});for(let g=0,b=this.stops.length;g<b-1;g++){let _=r(this.stops[g],this.stops[g+1],d[g]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(o,d){let p=h(this.stops,o),g=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=t(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let y=t(this.stops[b],this.stops[b+1],p[b],d);g.splice(g.length,0,...y)}return g.push(this.stops[this.stops.length-1].color),g}css(o,d){o=o||"linear",d=d||(o==="linear"?"to right":"ellipse at center");let p=o+"-gradient("+d;return this.stops.forEach(function(g){p+=", "+(g.colorLess?"":g.color.toRgbString()+" ")+g.pos*100+"%"}),p+=")",p}rgbAt(o){return u(this.stops,o,"toRgb",i)}hsvAt(o){return u(this.stops,o,"toHsv",s)}};l.exports=function(o){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');o=arguments[0]}else o=Array.prototype.slice.call(arguments);return new c(o)}}),ao=M((e,l)=>{"use strict";B();var n=io(),i=oo(),s=/\s/g;function f(...c){let o=i.apply(this,c),d=(p,g)=>r(p?p.toString():"",o,g);return d.multiline=(p,g)=>t(p?p.toString():"",o,g),d}var a=(c,o,d)=>o.interpolation.toLowerCase()==="hsv"?c.hsv(d,o.hsvSpin.toLowerCase()):c.rgb(d);function r(c,o,d){let p=h(d),g=Math.max(c.replace(s,"").length,o.stops.length),b=a(o,p,g),_="";for(let y of c)_+=y.match(s)?y:n.hex(b.shift().toHex())(y);return _}function t(c,o,d){let p=h(d),g=c.split(`
|
|
18
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):a.get(c)||c}function t(c,o){let d=[],p=o.trim().split(/\s*,\s*/g),g;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(s))d.push(g[2].replace(f,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function h(c){i.lastIndex=0;let o=[],d;for(;(d=i.exec(c))!==null;){let p=d[1];if(d[2]){let g=t(p,d[2]);o.push([p].concat(g))}else o.push([p])}return o}function u(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let p=c;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in p))throw new Error(`Unknown Chalk style: ${g}`);p=b.length>0?p[g](...b):p[g]}return p}l.exports=(c,o)=>{let d=[],p=[],g=[];if(o.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],p.push(d.length===0?m:u(c,d)(m)),d.push({inverse:y,styles:h(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),p.push(g.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("")}}),io=M((e,l)=>{"use strict";B();var n=Zr(),{stdout:i,stderr:s}=Xr(),{stringReplaceAll:f,stringEncaseCRLFWithFirstIndex:a}=ro(),{isArray:r}=Array,t=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null),u=(m,E={})=>{if(E.level&&!(Number.isInteger(E.level)&&E.level>=0&&E.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let S=i?i.level:0;m.level=E.level===void 0?S:E.level},c=class{constructor(m){return o(m)}},o=m=>{let E={};return u(E,m),E.template=(...S)=>w(E.template,...S),Object.setPrototypeOf(E,d.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=c,E.template};function d(m){return o(m)}for(let[m,E]of Object.entries(n))h[m]={get(){let S=_(this,b(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:S}),S}};h.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)h[m]={get(){let{level:E}=this;return function(...S){let A=b(n.color[t[E]][m](...S),n.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of p){let E="bg"+m[0].toUpperCase()+m.slice(1);h[E]={get(){let{level:S}=this;return function(...A){let k=b(n.bgColor[t[S]][m](...A),n.bgColor.close,this._styler);return _(this,k,this._isEmpty)}}}}var g=Object.defineProperties(()=>{},{...h,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,E,S)=>{let A,k;return S===void 0?(A=m,k=E):(A=S.openAll+m,k=E+S.closeAll),{open:m,close:E,openAll:A,closeAll:k,parent:S}},_=(m,E,S)=>{let A=(...k)=>r(k[0])&&r(k[0].raw)?y(A,w(A,...k)):y(A,k.length===1?""+k[0]:k.join(" "));return Object.setPrototypeOf(A,g),A._generator=m,A._styler=E,A._isEmpty=S,A},y=(m,E)=>{if(m.level<=0||!E)return m._isEmpty?"":E;let S=m._styler;if(S===void 0)return E;let{openAll:A,closeAll:k}=S;if(E.indexOf("\x1B")!==-1)for(;S!==void 0;)E=f(E,S.close,S.open),S=S.parent;let L=E.indexOf(`
|
|
19
|
+
`);return L!==-1&&(E=a(E,k,A,L)),A+E+k},D,w=(m,...E)=>{let[S]=E;if(!r(S)||!r(S.raw))return E.join(" ");let A=E.slice(1),k=[S.raw[0]];for(let L=1;L<S.length;L++)k.push(String(A[L-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[L]));return D===void 0&&(D=no()),D(m,k.join(""))};Object.defineProperties(d.prototype,h);var v=d();v.supportsColor=i,v.stderr=d({level:s?s.level:0}),v.stderr.supportsColor=s,l.exports=v}),so=M((e,l)=>{B(),function(n){var i=/^\s+/,s=/\s+$/,f=0,a=n.round,r=n.min,t=n.max,h=n.random;function u(H,V){if(H=H||"",V=V||{},H instanceof u)return H;if(!(this instanceof u))return new u(H,V);var C=c(H);this._originalInput=H,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=V.format||C.format,this._gradientType=V.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=C.ok,this._tc_id=f++}u.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 H=this.toRgb();return(H.r*299+H.g*587+H.b*114)/1e3},getLuminance:function(){var H=this.toRgb(),V,C,z,X,re,ce;return V=H.r/255,C=H.g/255,z=H.b/255,V<=.03928?X=V/12.92:X=n.pow((V+.055)/1.055,2.4),C<=.03928?re=C/12.92:re=n.pow((C+.055)/1.055,2.4),z<=.03928?ce=z/12.92:ce=n.pow((z+.055)/1.055,2.4),.2126*X+.7152*re+.0722*ce},setAlpha:function(H){return this._a=Q(H),this._roundA=a(100*this._a)/100,this},toHsv:function(){var H=g(this._r,this._g,this._b);return{h:H.h*360,s:H.s,v:H.v,a:this._a}},toHsvString:function(){var H=g(this._r,this._g,this._b),V=a(H.h*360),C=a(H.s*100),z=a(H.v*100);return this._a==1?"hsv("+V+", "+C+"%, "+z+"%)":"hsva("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHsl:function(){var H=d(this._r,this._g,this._b);return{h:H.h*360,s:H.s,l:H.l,a:this._a}},toHslString:function(){var H=d(this._r,this._g,this._b),V=a(H.h*360),C=a(H.s*100),z=a(H.l*100);return this._a==1?"hsl("+V+", "+C+"%, "+z+"%)":"hsla("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHex:function(H){return _(this._r,this._g,this._b,H)},toHexString:function(H){return"#"+this.toHex(H)},toHex8:function(H){return y(this._r,this._g,this._b,this._a,H)},toHex8String:function(H){return"#"+this.toHex8(H)},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(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(H){var V="#"+D(this._r,this._g,this._b,this._a),C=V,z=this._gradientType?"GradientType = 1, ":"";if(H){var X=u(H);C="#"+D(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+z+"startColorstr="+V+",endColorstr="+C+")"},toString:function(H){var V=!!H;H=H||this._format;var C=!1,z=this._a<1&&this._a>=0,X=!V&&z&&(H==="hex"||H==="hex6"||H==="hex3"||H==="hex4"||H==="hex8"||H==="name");return X?H==="name"&&this._a===0?this.toName():this.toRgbString():(H==="rgb"&&(C=this.toRgbString()),H==="prgb"&&(C=this.toPercentageRgbString()),(H==="hex"||H==="hex6")&&(C=this.toHexString()),H==="hex3"&&(C=this.toHexString(!0)),H==="hex4"&&(C=this.toHex8String(!0)),H==="hex8"&&(C=this.toHex8String()),H==="name"&&(C=this.toName()),H==="hsl"&&(C=this.toHslString()),H==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(H,V){var C=H.apply(null,[this].concat([].slice.call(V)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(H,V){return H.apply(null,[this].concat([].slice.call(V)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},u.fromRatio=function(H,V){if(typeof H=="object"){var C={};for(var z in H)H.hasOwnProperty(z)&&(z==="a"?C[z]=H[z]:C[z]=N(H[z]));H=C}return u(H,V)};function c(H){var V={r:0,g:0,b:0},C=1,z=null,X=null,re=null,ce=!1,ie=!1;return typeof H=="string"&&(H=ye(H)),typeof H=="object"&&(le(H.r)&&le(H.g)&&le(H.b)?(V=o(H.r,H.g,H.b),ce=!0,ie=String(H.r).substr(-1)==="%"?"prgb":"rgb"):le(H.h)&&le(H.s)&&le(H.v)?(z=N(H.s),X=N(H.v),V=b(H.h,z,X),ce=!0,ie="hsv"):le(H.h)&&le(H.s)&&le(H.l)&&(z=N(H.s),re=N(H.l),V=p(H.h,z,re),ce=!0,ie="hsl"),H.hasOwnProperty("a")&&(C=H.a)),C=Q(C),{ok:ce,format:H.format||ie,r:r(255,t(V.r,0)),g:r(255,t(V.g,0)),b:r(255,t(V.b,0)),a:C}}function o(H,V,C){return{r:P(H,255)*255,g:P(V,255)*255,b:P(C,255)*255}}function d(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=t(H,V,C),X=r(H,V,C),re,ce,ie=(z+X)/2;if(z==X)re=ce=0;else{var ue=z-X;switch(ce=ie>.5?ue/(2-z-X):ue/(z+X),z){case H:re=(V-C)/ue+(V<C?6:0);break;case V:re=(C-H)/ue+2;break;case C:re=(H-V)/ue+4;break}re/=6}return{h:re,s:ce,l:ie}}function p(H,V,C){var z,X,re;H=P(H,360),V=P(V,100),C=P(C,100);function ce(ne,he,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ne+(he-ne)*6*be:be<1/2?he:be<2/3?ne+(he-ne)*(2/3-be)*6:ne}if(V===0)z=X=re=C;else{var ie=C<.5?C*(1+V):C+V-C*V,ue=2*C-ie;z=ce(ue,ie,H+1/3),X=ce(ue,ie,H),re=ce(ue,ie,H-1/3)}return{r:z*255,g:X*255,b:re*255}}function g(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=t(H,V,C),X=r(H,V,C),re,ce,ie=z,ue=z-X;if(ce=z===0?0:ue/z,z==X)re=0;else{switch(z){case H:re=(V-C)/ue+(V<C?6:0);break;case V:re=(C-H)/ue+2;break;case C:re=(H-V)/ue+4;break}re/=6}return{h:re,s:ce,v:ie}}function b(H,V,C){H=P(H,360)*6,V=P(V,100),C=P(C,100);var z=n.floor(H),X=H-z,re=C*(1-V),ce=C*(1-X*V),ie=C*(1-(1-X)*V),ue=z%6,ne=[C,ce,re,re,ie,C][ue],he=[ie,C,C,ce,re,re][ue],be=[re,re,ie,C,C,ce][ue];return{r:ne*255,g:he*255,b:be*255}}function _(H,V,C,z){var X=[ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16))];return z&&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 y(H,V,C,z,X){var re=[ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16)),ee(K(z))];return X&&re[0].charAt(0)==re[0].charAt(1)&&re[1].charAt(0)==re[1].charAt(1)&&re[2].charAt(0)==re[2].charAt(1)&&re[3].charAt(0)==re[3].charAt(1)?re[0].charAt(0)+re[1].charAt(0)+re[2].charAt(0)+re[3].charAt(0):re.join("")}function D(H,V,C,z){var X=[ee(K(z)),ee(a(H).toString(16)),ee(a(V).toString(16)),ee(a(C).toString(16))];return X.join("")}u.equals=function(H,V){return!H||!V?!1:u(H).toRgbString()==u(V).toRgbString()},u.random=function(){return u.fromRatio({r:h(),g:h(),b:h()})};function w(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.s-=V/100,C.s=j(C.s),u(C)}function v(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.s+=V/100,C.s=j(C.s),u(C)}function m(H){return u(H).desaturate(100)}function E(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.l+=V/100,C.l=j(C.l),u(C)}function S(H,V){V=V===0?0:V||10;var C=u(H).toRgb();return C.r=t(0,r(255,C.r-a(255*-(V/100)))),C.g=t(0,r(255,C.g-a(255*-(V/100)))),C.b=t(0,r(255,C.b-a(255*-(V/100)))),u(C)}function A(H,V){V=V===0?0:V||10;var C=u(H).toHsl();return C.l-=V/100,C.l=j(C.l),u(C)}function k(H,V){var C=u(H).toHsl(),z=(C.h+V)%360;return C.h=z<0?360+z:z,u(C)}function L(H){var V=u(H).toHsl();return V.h=(V.h+180)%360,u(V)}function T(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+120)%360,s:V.s,l:V.l}),u({h:(C+240)%360,s:V.s,l:V.l})]}function x(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+90)%360,s:V.s,l:V.l}),u({h:(C+180)%360,s:V.s,l:V.l}),u({h:(C+270)%360,s:V.s,l:V.l})]}function O(H){var V=u(H).toHsl(),C=V.h;return[u(H),u({h:(C+72)%360,s:V.s,l:V.l}),u({h:(C+216)%360,s:V.s,l:V.l})]}function I(H,V,C){V=V||6,C=C||30;var z=u(H).toHsl(),X=360/C,re=[u(H)];for(z.h=(z.h-(X*V>>1)+720)%360;--V;)z.h=(z.h+X)%360,re.push(u(z));return re}function $(H,V){V=V||6;for(var C=u(H).toHsv(),z=C.h,X=C.s,re=C.v,ce=[],ie=1/V;V--;)ce.push(u({h:z,s:X,v:re})),re=(re+ie)%1;return ce}u.mix=function(H,V,C){C=C===0?0:C||50;var z=u(H).toRgb(),X=u(V).toRgb(),re=C/100,ce={r:(X.r-z.r)*re+z.r,g:(X.g-z.g)*re+z.g,b:(X.b-z.b)*re+z.b,a:(X.a-z.a)*re+z.a};return u(ce)},u.readability=function(H,V){var C=u(H),z=u(V);return(n.max(C.getLuminance(),z.getLuminance())+.05)/(n.min(C.getLuminance(),z.getLuminance())+.05)},u.isReadable=function(H,V,C){var z=u.readability(H,V),X,re;switch(re=!1,X=de(C),X.level+X.size){case"AAsmall":case"AAAlarge":re=z>=4.5;break;case"AAlarge":re=z>=3;break;case"AAAsmall":re=z>=7;break}return re},u.mostReadable=function(H,V,C){var z=null,X=0,re,ce,ie,ue;C=C||{},ce=C.includeFallbackColors,ie=C.level,ue=C.size;for(var ne=0;ne<V.length;ne++)re=u.readability(H,V[ne]),re>X&&(X=re,z=u(V[ne]));return u.isReadable(H,z,{level:ie,size:ue})||!ce?z:(C.includeFallbackColors=!1,u.mostReadable(H,["#fff","#000"],C))};var R=u.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"},G=u.hexNames=W(R);function W(H){var V={};for(var C in H)H.hasOwnProperty(C)&&(V[H[C]]=C);return V}function Q(H){return H=parseFloat(H),(isNaN(H)||H<0||H>1)&&(H=1),H}function P(H,V){J(H)&&(H="100%");var C=q(H);return H=r(V,t(0,parseFloat(H))),C&&(H=parseInt(H*V,10)/100),n.abs(H-V)<1e-6?1:H%V/parseFloat(V)}function j(H){return r(1,t(0,H))}function F(H){return parseInt(H,16)}function J(H){return typeof H=="string"&&H.indexOf(".")!=-1&&parseFloat(H)===1}function q(H){return typeof H=="string"&&H.indexOf("%")!=-1}function ee(H){return H.length==1?"0"+H:""+H}function N(H){return H<=1&&(H=H*100+"%"),H}function K(H){return n.round(parseFloat(H)*255).toString(16)}function te(H){return F(H)/255}var se=function(){var H="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",C="(?:"+V+")|(?:"+H+")",z="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+z),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 le(H){return!!se.CSS_UNIT.exec(H)}function ye(H){H=H.replace(i,"").replace(s,"").toLowerCase();var V=!1;if(R[H])H=R[H],V=!0;else if(H=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=se.rgb.exec(H))?{r:C[1],g:C[2],b:C[3]}:(C=se.rgba.exec(H))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=se.hsl.exec(H))?{h:C[1],s:C[2],l:C[3]}:(C=se.hsla.exec(H))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=se.hsv.exec(H))?{h:C[1],s:C[2],v:C[3]}:(C=se.hsva.exec(H))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=se.hex8.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),a:te(C[4]),format:V?"name":"hex8"}:(C=se.hex6.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),format:V?"name":"hex"}:(C=se.hex4.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),a:te(C[4]+""+C[4]),format:V?"name":"hex8"}:(C=se.hex3.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),format:V?"name":"hex"}:!1}function de(H){var V,C;return H=H||{level:"AA",size:"small"},V=(H.level||"AA").toUpperCase(),C=(H.size||"small").toLowerCase(),V!=="AA"&&V!=="AAA"&&(V="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:V,size:C}}typeof l<"u"&&l.exports?l.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u}(Math)}),oo=M((e,l)=>{B();var n=so(),i={r:256,g:256,b:256,a:1},s={h:360,s:1,v:1,a:1};function f(o,d,p){let g={};for(let b in o)o.hasOwnProperty(b)&&(g[b]=p===0?0:(d[b]-o[b])/p);return g}function a(o,d,p,g){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=o[_]*p+d[_],b[_]=b[_]<0?b[_]+g[_]:g[_]!==1?b[_]%g[_]:b[_]);return b}function r(o,d,p){let g=o.color.toRgb(),b=d.color.toRgb(),_=f(g,b,p),y=[o.color];for(let D=1;D<p;D++){let w=a(_,g,D,i);y.push(n(w))}return y}function t(o,d,p,g){let b=o.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return r(o,d,p);let y;if(typeof g=="boolean")y=g;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;y=g==="long"&&m||g==="short"&&!m}let D=f(b,_,p),w=[o.color],v;b.h<=_.h&&!y||b.h>=_.h&&y?v=_.h-b.h:y?v=360-_.h+b.h:v=360-b.h+_.h,D.h=Math.pow(-1,y?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let E=a(D,b,m,s);w.push(n(E))}return w}function h(o,d){let p=o.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 g=[];for(let _=1;_<p;_++){let y=(d-1)*(o[_].pos-o[_-1].pos);g.push(Math.max(1,Math.round(y)))}let b=1;for(let _=p-1;_--;)b+=g[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,g);g[g.indexOf(_)]++,b++}else{let _=Math.max.apply(null,g);g[g.indexOf(_)]--,b--}return g}function u(o,d,p,g){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let w=0,v=o.length;w<v-1;w++)if(d>=o[w].pos&&d<o[w+1].pos){b=o[w],_=o[w+1];break}b||(b=_=o[o.length-1]);let y=f(b.color[p](),_.color[p](),(_.pos-b.pos)*100),D=a(y,b.color[p](),(d-b.pos)*100,g);return n(D)}var c=class{constructor(o){if(o.length<2)throw new Error("Invalid number of stops (< 2)");let d=o[0].pos!==void 0,p=o.length,g=-1,b=!1;this.stops=o.map((_,y)=>{let D=_.pos!==void 0;if(d^D)throw new Error("Cannot mix positionned and not posionned color stops");if(D){let w=_.color!==void 0;if(!w&&(b||y===0||y===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!w,_={color:w?n(_.color):null,colorLess:!w,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<g)throw new Error("Color stops positions are not ordered");g=_.pos}else _={color:n(_.color!==void 0?_.color:_),pos:y/(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 o=[];return this.stops.forEach(function(d){o.push({color:d.color,pos:1-d.pos})}),new c(o.reverse())}loop(){let o=[],d=[];return this.stops.forEach(p=>{o.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 c(o.concat(d.reverse()))}rgb(o){let d=h(this.stops,o),p=[];this.stops.forEach((g,b)=>{g.colorLess&&(g.color=r(this.stops[b-1],this.stops[b+1],2)[1])});for(let g=0,b=this.stops.length;g<b-1;g++){let _=r(this.stops[g],this.stops[g+1],d[g]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(o,d){let p=h(this.stops,o),g=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=t(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let y=t(this.stops[b],this.stops[b+1],p[b],d);g.splice(g.length,0,...y)}return g.push(this.stops[this.stops.length-1].color),g}css(o,d){o=o||"linear",d=d||(o==="linear"?"to right":"ellipse at center");let p=o+"-gradient("+d;return this.stops.forEach(function(g){p+=", "+(g.colorLess?"":g.color.toRgbString()+" ")+g.pos*100+"%"}),p+=")",p}rgbAt(o){return u(this.stops,o,"toRgb",i)}hsvAt(o){return u(this.stops,o,"toHsv",s)}};l.exports=function(o){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');o=arguments[0]}else o=Array.prototype.slice.call(arguments);return new c(o)}}),ao=M((e,l)=>{"use strict";B();var n=io(),i=oo(),s=/\s/g;function f(...c){let o=i.apply(this,c),d=(p,g)=>r(p?p.toString():"",o,g);return d.multiline=(p,g)=>t(p?p.toString():"",o,g),d}var a=(c,o,d)=>o.interpolation.toLowerCase()==="hsv"?c.hsv(d,o.hsvSpin.toLowerCase()):c.rgb(d);function r(c,o,d){let p=h(d),g=Math.max(c.replace(s,"").length,o.stops.length),b=a(o,p,g),_="";for(let y of c)_+=y.match(s)?y:n.hex(b.shift().toHex())(y);return _}function t(c,o,d){let p=h(d),g=c.split(`
|
|
20
20
|
`),b=Math.max.apply(null,g.map(D=>D.length).concat([o.stops.length])),_=a(o,p,b),y=[];for(let D of g){let w=_.slice(0),v="";for(let m of D)v+=n.hex(w.shift().toHex())(m);y.push(v)}return y.join(`
|
|
21
|
-
`)}function h(c){let o={interpolation:"rgb",hsvSpin:"short",...c};if(c!==void 0&&typeof c!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof c}\``);if(typeof o.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof o.interpolation}\``);if(o.interpolation.toLowerCase()==="hsv"&&typeof o.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof o.hsvSpin}\``);return o}var u={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"}}};l.exports=f;for(let c in u)l.exports[c]=o=>new f(u[c].colors)(o,u[c].options),l.exports[c].multiline=o=>new f(u[c].colors).multiline(o,u[c].options)}),Qr={};Wr(Qr,{dimmed:()=>mo,error:()=>on,info:()=>po,item:()=>yo,turboBlue:()=>ft,turboGradient:()=>ho,turboLoader:()=>sn,turboRed:()=>rn,warn:()=>fo,yellow:()=>nn});B();var Ht=ke(it()),uo=ke(to()),lo=ke(ao()),en="#0099F7",tn="#F11712",co="#FFFF00",ho=(0,lo.default)(en,tn),ft=Ht.default.hex(en),rn=Ht.default.hex(tn),nn=Ht.default.hex(co),sn=e=>(0,uo.default)({text:e,spinner:{frames:[" ",ft("> "),ft(">> "),ft(">>>")]}}),po=(...e)=>{console.log(ft.bold(">>>"),...e)},on=(...e)=>{console.error(rn.bold(">>>"),...e)},fo=(...e)=>{console.error(nn.bold(">>>"),...e)},mo=(...e)=>{console.log(Ht.default.dim(...e))},yo=(...e)=>{console.log(ft.bold(" \u2022"),...e)};import{Stream as wa}from"stream";import{promisify as Da}from"util";var Xe=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function i(m){return n.includes(m)}var s=["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",...n];function f(m){return s.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return a.includes(m)}function t(m){return E=>typeof E===m}var{toString:h}=Object.prototype,u=m=>{let E=h.call(m).slice(8,-1);if(/HTML\w+Element/.test(E)&&o.domElement(m))return"HTMLElement";if(f(E))return E},c=m=>E=>u(E)===m;function o(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(o.observable(m))return"Observable";if(o.array(m))return"Array";if(o.buffer(m))return"Buffer";let E=u(m);if(E)return E;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}o.undefined=t("undefined"),o.string=t("string");var d=t("number");o.number=m=>d(m)&&!o.nan(m),o.bigint=t("bigint"),o.function_=t("function"),o.null_=m=>m===null,o.class_=m=>o.function_(m)&&m.toString().startsWith("class "),o.boolean=m=>m===!0||m===!1,o.symbol=t("symbol"),o.numericString=m=>o.string(m)&&!o.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),o.array=(m,E)=>Array.isArray(m)?o.function_(E)?m.every(E):!0:!1,o.buffer=m=>{var E,S,A,x;return(x=(A=(S=(E=m)===null||E===void 0?void 0:E.constructor)===null||S===void 0?void 0:S.isBuffer)===null||A===void 0?void 0:A.call(S,m))!==null&&x!==void 0?x:!1},o.blob=m=>c("Blob")(m),o.nullOrUndefined=m=>o.null_(m)||o.undefined(m),o.object=m=>!o.null_(m)&&(typeof m=="object"||o.function_(m)),o.iterable=m=>{var E;return o.function_((E=m)===null||E===void 0?void 0:E[Symbol.iterator])},o.asyncIterable=m=>{var E;return o.function_((E=m)===null||E===void 0?void 0:E[Symbol.asyncIterator])},o.generator=m=>{var E,S;return o.iterable(m)&&o.function_((E=m)===null||E===void 0?void 0:E.next)&&o.function_((S=m)===null||S===void 0?void 0:S.throw)},o.asyncGenerator=m=>o.asyncIterable(m)&&o.function_(m.next)&&o.function_(m.throw),o.nativePromise=m=>c("Promise")(m);var p=m=>{var E,S;return o.function_((E=m)===null||E===void 0?void 0:E.then)&&o.function_((S=m)===null||S===void 0?void 0:S.catch)};o.promise=m=>o.nativePromise(m)||p(m),o.generatorFunction=c("GeneratorFunction"),o.asyncGeneratorFunction=m=>u(m)==="AsyncGeneratorFunction",o.asyncFunction=m=>u(m)==="AsyncFunction",o.boundFunction=m=>o.function_(m)&&!m.hasOwnProperty("prototype"),o.regExp=c("RegExp"),o.date=c("Date"),o.error=c("Error"),o.map=m=>c("Map")(m),o.set=m=>c("Set")(m),o.weakMap=m=>c("WeakMap")(m),o.weakSet=m=>c("WeakSet")(m),o.int8Array=c("Int8Array"),o.uint8Array=c("Uint8Array"),o.uint8ClampedArray=c("Uint8ClampedArray"),o.int16Array=c("Int16Array"),o.uint16Array=c("Uint16Array"),o.int32Array=c("Int32Array"),o.uint32Array=c("Uint32Array"),o.float32Array=c("Float32Array"),o.float64Array=c("Float64Array"),o.bigInt64Array=c("BigInt64Array"),o.bigUint64Array=c("BigUint64Array"),o.arrayBuffer=c("ArrayBuffer"),o.sharedArrayBuffer=c("SharedArrayBuffer"),o.dataView=c("DataView"),o.enumCase=(m,E)=>Object.values(E).includes(m),o.directInstanceOf=(m,E)=>Object.getPrototypeOf(m)===E.prototype,o.urlInstance=m=>c("URL")(m),o.urlString=m=>{if(!o.string(m))return!1;try{return new URL(m),!0}catch{return!1}},o.truthy=m=>Boolean(m),o.falsy=m=>!m,o.nan=m=>Number.isNaN(m),o.primitive=m=>o.null_(m)||r(typeof m),o.integer=m=>Number.isInteger(m),o.safeInteger=m=>Number.isSafeInteger(m),o.plainObject=m=>{if(h.call(m)!=="[object Object]")return!1;let E=Object.getPrototypeOf(m);return E===null||E===Object.getPrototypeOf({})},o.typedArray=m=>i(u(m));var g=m=>o.safeInteger(m)&&m>=0;o.arrayLike=m=>!o.nullOrUndefined(m)&&!o.function_(m)&&g(m.length),o.inRange=(m,E)=>{if(o.number(E))return m>=Math.min(0,E)&&m<=Math.max(E,0);if(o.array(E)&&E.length===2)return m>=Math.min(...E)&&m<=Math.max(...E);throw new TypeError(`Invalid range: ${JSON.stringify(E)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];o.domElement=m=>o.object(m)&&m.nodeType===b&&o.string(m.nodeName)&&!o.plainObject(m)&&_.every(E=>E in m),o.observable=m=>{var E,S,A,x;return m?m===((S=(E=m)[Symbol.observable])===null||S===void 0?void 0:S.call(E))||m===((x=(A=m)["@@observable"])===null||x===void 0?void 0:x.call(A)):!1},o.nodeStream=m=>o.object(m)&&o.function_(m.pipe)&&!o.observable(m),o.infinite=m=>m===1/0||m===-1/0;var y=m=>E=>o.integer(E)&&Math.abs(E%2)===m;o.evenInteger=y(0),o.oddInteger=y(1),o.emptyArray=m=>o.array(m)&&m.length===0,o.nonEmptyArray=m=>o.array(m)&&m.length>0,o.emptyString=m=>o.string(m)&&m.length===0;var D=m=>o.string(m)&&!/\S/.test(m);o.emptyStringOrWhitespace=m=>o.emptyString(m)||D(m),o.nonEmptyString=m=>o.string(m)&&m.length>0,o.nonEmptyStringAndNotWhitespace=m=>o.string(m)&&!o.emptyStringOrWhitespace(m),o.emptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length===0,o.nonEmptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length>0,o.emptySet=m=>o.set(m)&&m.size===0,o.nonEmptySet=m=>o.set(m)&&m.size>0,o.emptyMap=m=>o.map(m)&&m.size===0,o.nonEmptyMap=m=>o.map(m)&&m.size>0,o.propertyKey=m=>o.any([o.string,o.number,o.symbol],m),o.formData=m=>c("FormData")(m),o.urlSearchParams=m=>c("URLSearchParams")(m);var w=(m,E,S)=>{if(!o.function_(E))throw new TypeError(`Invalid predicate: ${JSON.stringify(E)}`);if(S.length===0)throw new TypeError("Invalid number of values");return m.call(S,E)};o.any=(m,...E)=>(o.array(m)?m:[m]).some(S=>w(Array.prototype.some,S,E)),o.all=(m,...E)=>w(Array.prototype.every,m,E);var v=(m,E,S,A={})=>{if(!m){let{multipleValues:x}=A,L=x?`received values of types ${[...new Set(S.map(T=>`\`${o(T)}\``))].join(", ")}`:`received value of type \`${o(S)}\``;throw new TypeError(`Expected value which is \`${E}\`, ${L}.`)}};e.assert={undefined:m=>v(o.undefined(m),"undefined",m),string:m=>v(o.string(m),"string",m),number:m=>v(o.number(m),"number",m),bigint:m=>v(o.bigint(m),"bigint",m),function_:m=>v(o.function_(m),"Function",m),null_:m=>v(o.null_(m),"null",m),class_:m=>v(o.class_(m),"Class",m),boolean:m=>v(o.boolean(m),"boolean",m),symbol:m=>v(o.symbol(m),"symbol",m),numericString:m=>v(o.numericString(m),"string with a number",m),array:(m,E)=>{v(o.array(m),"Array",m),E&&m.forEach(E)},buffer:m=>v(o.buffer(m),"Buffer",m),blob:m=>v(o.blob(m),"Blob",m),nullOrUndefined:m=>v(o.nullOrUndefined(m),"null or undefined",m),object:m=>v(o.object(m),"Object",m),iterable:m=>v(o.iterable(m),"Iterable",m),asyncIterable:m=>v(o.asyncIterable(m),"AsyncIterable",m),generator:m=>v(o.generator(m),"Generator",m),asyncGenerator:m=>v(o.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(o.nativePromise(m),"native Promise",m),promise:m=>v(o.promise(m),"Promise",m),generatorFunction:m=>v(o.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(o.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(o.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(o.boundFunction(m),"Function",m),regExp:m=>v(o.regExp(m),"RegExp",m),date:m=>v(o.date(m),"Date",m),error:m=>v(o.error(m),"Error",m),map:m=>v(o.map(m),"Map",m),set:m=>v(o.set(m),"Set",m),weakMap:m=>v(o.weakMap(m),"WeakMap",m),weakSet:m=>v(o.weakSet(m),"WeakSet",m),int8Array:m=>v(o.int8Array(m),"Int8Array",m),uint8Array:m=>v(o.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(o.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(o.int16Array(m),"Int16Array",m),uint16Array:m=>v(o.uint16Array(m),"Uint16Array",m),int32Array:m=>v(o.int32Array(m),"Int32Array",m),uint32Array:m=>v(o.uint32Array(m),"Uint32Array",m),float32Array:m=>v(o.float32Array(m),"Float32Array",m),float64Array:m=>v(o.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(o.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(o.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(o.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(o.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(o.dataView(m),"DataView",m),enumCase:(m,E)=>v(o.enumCase(m,E),"EnumCase",m),urlInstance:m=>v(o.urlInstance(m),"URL",m),urlString:m=>v(o.urlString(m),"string with a URL",m),truthy:m=>v(o.truthy(m),"truthy",m),falsy:m=>v(o.falsy(m),"falsy",m),nan:m=>v(o.nan(m),"NaN",m),primitive:m=>v(o.primitive(m),"primitive",m),integer:m=>v(o.integer(m),"integer",m),safeInteger:m=>v(o.safeInteger(m),"integer",m),plainObject:m=>v(o.plainObject(m),"plain object",m),typedArray:m=>v(o.typedArray(m),"TypedArray",m),arrayLike:m=>v(o.arrayLike(m),"array-like",m),domElement:m=>v(o.domElement(m),"HTMLElement",m),observable:m=>v(o.observable(m),"Observable",m),nodeStream:m=>v(o.nodeStream(m),"Node.js Stream",m),infinite:m=>v(o.infinite(m),"infinite number",m),emptyArray:m=>v(o.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(o.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(o.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(o.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(o.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(o.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(o.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(o.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(o.emptySet(m),"empty set",m),nonEmptySet:m=>v(o.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(o.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(o.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(o.propertyKey(m),"PropertyKey",m),formData:m=>v(o.formData(m),"FormData",m),urlSearchParams:m=>v(o.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(o.evenInteger(m),"even integer",m),oddInteger:m=>v(o.oddInteger(m),"odd integer",m),directInstanceOf:(m,E)=>v(o.directInstanceOf(m,E),"T",m),inRange:(m,E)=>v(o.inRange(m,E),"in range",m),any:(m,...E)=>v(o.any(m,...E),"predicate returns truthy for any value",E,{multipleValues:!0}),all:(m,...E)=>v(o.all(m,...E),"predicate returns truthy for all values",E,{multipleValues:!0})},Object.defineProperties(o,{class:{value:o.class_},function:{value:o.function_},null:{value:o.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=o,l.exports=o,l.exports.default=o,l.exports.assert=e.assert}),go=M((e,l)=>{"use strict";B();var n=class extends Error{constructor(s){super(s||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},i=class{static fn(s){return(...f)=>new i((a,r,t)=>{f.push(t),s(...f).then(a,r)})}constructor(s){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((f,a)=>{this._reject=a;let r=u=>{(!this._isCanceled||!h.shouldReject)&&(this._isPending=!1,f(u))},t=u=>{this._isPending=!1,a(u)},h=u=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(u)};return Object.defineProperties(h,{shouldReject:{get:()=>this._rejectOnCancel,set:u=>{this._rejectOnCancel=u}}}),s(r,t,h)})}then(s,f){return this._promise.then(s,f)}catch(s){return this._promise.catch(s)}finally(s){return this._promise.finally(s)}cancel(s){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let f of this._cancelHandlers)f()}catch(f){this._reject(f);return}this._rejectOnCancel&&this._reject(new n(s))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(i.prototype,Promise.prototype),l.exports=i,l.exports.CancelError=n}),bo=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function n(s){return s.encrypted}var i=(s,f)=>{let a;typeof f=="function"?a={connect:f}:a=f;let r=typeof a.connect=="function",t=typeof a.secureConnect=="function",h=typeof a.close=="function",u=()=>{r&&a.connect(),n(s)&&t&&(s.authorized?a.secureConnect():s.authorizationError||s.once("secureConnect",a.secureConnect)),h&&s.once("close",a.close)};s.writable&&!s.connecting?u():s.connecting?s.once("connect",u):s.destroyed&&h&&a.close(s._hadError)};e.default=i,l.exports=i,l.exports.default=i}),vo=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=bo(),i=Z("util"),s=Number(process.versions.node.split(".")[0]),f=a=>{if(a.timings)return a.timings;let r={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=r;let t=o=>{let d=o.emit.bind(o);o.emit=(p,...g)=>(p==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,o.emit=d),d(p,...g))};t(a);let h=()=>{r.abort=Date.now(),(!r.response||s>=13)&&(r.phases.total=Date.now()-r.start)};a.prependOnceListener("abort",h);let u=o=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,i.types.isProxy(o))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};o.prependOnceListener("lookup",d),n.default(o,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(o.removeListener("lookup",d),r.lookup=r.connect,r.phases.dns=r.lookup-r.socket),r.phases.tcp=r.connect-r.lookup},secureConnect:()=>{r.secureConnect=Date.now(),r.phases.tls=r.secureConnect-r.connect}})};a.socket?u(a.socket):a.prependOnceListener("socket",u);let c=()=>{var o;r.upload=Date.now(),r.phases.request=r.upload-((o=r.secureConnect)!==null&&o!==void 0?o:r.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?c():a.prependOnceListener("finish",c),a.prependOnceListener("response",o=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,o.timings=r,t(o),o.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),o.prependOnceListener("aborted",h)}),r};e.default=f,l.exports=f,l.exports.default=f}),_o=M((e,l)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:i,ALL:s,promises:{Resolver:f},lookup:a}=Z("dns"),{promisify:r}=Z("util"),t=Z("os"),h=Symbol("cacheableLookupCreateConnection"),u=Symbol("cacheableLookupInstance"),c=Symbol("expires"),o=typeof s=="number",d=w=>{if(!(w&&typeof w.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=w=>{for(let v of w)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},g=()=>{let w=!1,v=!1;for(let m of Object.values(t.networkInterfaces()))for(let E of m)if(!E.internal&&(E.family==="IPv6"?v=!0:w=!0,w&&v))return{has4:w,has6:v};return{has4:w,has6:v}},b=w=>Symbol.iterator in w,_={ttl:!0},y={all:!0},D=class{constructor({cache:w=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:E=.15,resolver:S=new f,lookup:A=a}={}){if(this.maxTtl=v,this.errorTtl=E,this._cache=w,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof f?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r(this._resolver.resolve6.bind(this._resolver))),this._iface=g(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let x=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);x.unref&&x.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(w){this.clear(),this._resolver.setServers(w)}get servers(){return this._resolver.getServers()}lookup(w,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(w,v).then(E=>{v.all?m(null,E):m(null,E.address,E.family,E.expires,E.ttl)},m)}async lookupAsync(w,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(w);if(v.family===6){let E=m.filter(S=>S.family===6);v.hints&n&&(o&&v.hints&s||E.length===0)?p(m):m=E}else v.family===4&&(m=m.filter(E=>E.family===4));if(v.hints&i){let{_iface:E}=this;m=m.filter(S=>S.family===6?E.has6:E.has4)}if(m.length===0){let E=new Error(`cacheableLookup ENOTFOUND ${w}`);throw E.code="ENOTFOUND",E.hostname=w,E}return v.all?m:m[0]}async query(w){let v=await this._cache.get(w);if(!v){let m=this._pending[w];if(m)v=await m;else{let E=this.queryAndCache(w);this._pending[w]=E;try{v=await E}finally{delete this._pending[w]}}}return v=v.map(m=>({...m})),v}async _resolve(w){let v=async T=>{try{return await T}catch(k){if(k.code==="ENODATA"||k.code==="ENOTFOUND")return[];throw k}},[m,E]=await Promise.all([this._resolve4(w,_),this._resolve6(w,_)].map(T=>v(T))),S=0,A=0,x=0,L=Date.now();for(let T of m)T.family=4,T.expires=L+T.ttl*1e3,S=Math.max(S,T.ttl);for(let T of E)T.family=6,T.expires=L+T.ttl*1e3,A=Math.max(A,T.ttl);return m.length>0?E.length>0?x=Math.min(S,A):x=S:x=A,{entries:[...m,...E],cacheTtl:x}}async _lookup(w){try{return{entries:await this._dnsLookup(w,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(w,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[c]=Date.now()+m;try{await this._cache.set(w,v,m)}catch(E){this.lookupAsync=async()=>{let S=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw S.cause=E,S}}b(this._cache)&&this._tick(m)}}async queryAndCache(w){if(this._hostnamesToFallback.has(w))return this._dnsLookup(w,y);let v=await this._resolve(w);v.entries.length===0&&this._fallback&&(v=await this._lookup(w),v.entries.length!==0&&this._hostnamesToFallback.add(w));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(w,v.entries,m),v.entries}_tick(w){let v=this._nextRemovalTime;(!v||w<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=w,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,E=Date.now();for(let[S,A]of this._cache){let x=A[c];E>=x?this._cache.delete(S):x<m&&(m=x)}m!==1/0&&this._tick(m-E)},w),this._removalTimeout.unref&&this._removalTimeout.unref())}install(w){if(d(w),h in w)throw new Error("CacheableLookup has been already installed");w[h]=w.createConnection,w[u]=this,w.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),w[h](v,m))}uninstall(w){if(d(w),w[h]){if(w[u]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");w.createConnection=w[h],delete w[h],delete w[u]}}updateInterfaceInfo(){let{_iface:w}=this;this._iface=g(),(w.has4&&!this._iface.has4||w.has6&&!this._iface.has6)&&this._cache.clear()}clear(w){if(w){this._cache.delete(w);return}this._cache.clear()}};l.exports=D,l.exports.default=D}),Eo=M((e,l)=>{"use strict";B();var n="text/plain",i="us-ascii",s=(r,t)=>t.some(h=>h instanceof RegExp?h.test(r):h===r),f=(r,{stripHash:t})=>{let h=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!h)throw new Error(`Invalid URL: ${r}`);let{type:u,data:c,hash:o}=h.groups,d=u.split(";");o=t?"":o;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let g=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[y,D=""]=_.split("=").map(w=>w.trim());return y==="charset"&&(D=D.toLowerCase(),D===i)?"":`${y}${D?`=${D}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||g&&g!==n)&&b.unshift(g),`data:${b.join(";")},${p?c.trim():c}${o?`#${o}`:""}`},a=(r,t)=>{if(t={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,...t},r=r.trim(),/^data:/i.test(r))return f(r,t);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let h=r.startsWith("//");!h&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let u=new URL(r);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&u.protocol==="https:"&&(u.protocol="http:"),t.forceHttps&&u.protocol==="http:"&&(u.protocol="https:"),t.stripAuthentication&&(u.username="",u.password=""),t.stripHash?u.hash="":t.stripTextFragment&&(u.hash=u.hash.replace(/#?:~:text.*?$/i,"")),u.pathname&&(u.pathname=u.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),u.pathname)try{u.pathname=decodeURI(u.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=u.pathname.split("/"),d=o[o.length-1];s(d,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),u.pathname=o.slice(1).join("/")+"/")}if(u.hostname&&(u.hostname=u.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(u.hostname)&&(u.hostname=u.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...u.searchParams.keys()])s(o,t.removeQueryParameters)&&u.searchParams.delete(o);t.removeQueryParameters===!0&&(u.search=""),t.sortQueryParameters&&u.searchParams.sort(),t.removeTrailingSlash&&(u.pathname=u.pathname.replace(/\/$/,""));let c=r;return r=u.toString(),!t.removeSingleSlash&&u.pathname==="/"&&!c.endsWith("/")&&u.hash===""&&(r=r.replace(/\/$/,"")),(t.removeTrailingSlash||u.pathname==="/")&&u.hash===""&&t.removeSingleSlash&&(r=r.replace(/\/$/,"")),h&&!t.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),t.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};l.exports=a}),wo=M((e,l)=>{B(),l.exports=n;function n(i,s){if(i&&s)return n(i)(s);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach(function(a){f[a]=i[a]}),f;function f(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];var t=i.apply(this,a),h=a[a.length-1];return typeof t=="function"&&t!==h&&Object.keys(h).forEach(function(u){t[u]=h[u]}),t}}}),un=M((e,l)=>{B();var n=wo();l.exports=n(i),l.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(f){var a=function(){return a.called?a.value:(a.called=!0,a.value=f.apply(this,arguments))};return a.called=!1,a}function s(f){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=f.apply(this,arguments)},r=f.name||"Function wrapped with `once`";return a.onceError=r+" shouldn't be called more than once",a.called=!1,a}}),Do=M((e,l)=>{B();var n=un(),i=function(){},s=function(r){return r.setHeader&&typeof r.abort=="function"},f=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},a=function(r,t,h){if(typeof t=="function")return a(r,null,t);t||(t={}),h=n(h||i);var u=r._writableState,c=r._readableState,o=t.readable||t.readable!==!1&&r.readable,d=t.writable||t.writable!==!1&&r.writable,p=!1,g=function(){r.writable||b()},b=function(){d=!1,o||h.call(r)},_=function(){o=!1,d||h.call(r)},y=function(E){h.call(r,E?new Error("exited with error code: "+E):null)},D=function(E){h.call(r,E)},w=function(){process.nextTick(v)},v=function(){if(!p){if(o&&!(c&&c.ended&&!c.destroyed))return h.call(r,new Error("premature close"));if(d&&!(u&&u.ended&&!u.destroyed))return h.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return s(r)?(r.on("complete",b),r.on("abort",w),r.req?m():r.on("request",m)):d&&!u&&(r.on("end",g),r.on("close",g)),f(r)&&r.on("exit",y),r.on("end",_),r.on("finish",b),t.error!==!1&&r.on("error",D),r.on("close",w),function(){p=!0,r.removeListener("complete",b),r.removeListener("abort",w),r.removeListener("request",m),r.req&&r.req.removeListener("finish",b),r.removeListener("end",g),r.removeListener("close",g),r.removeListener("finish",b),r.removeListener("exit",y),r.removeListener("end",_),r.removeListener("error",D),r.removeListener("close",w)}};l.exports=a}),So=M((e,l)=>{B();var n=un(),i=Do(),s=Z("fs"),f=function(){},a=/^v?\.0/.test(process.version),r=function(p){return typeof p=="function"},t=function(p){return!a||!s?!1:(p instanceof(s.ReadStream||f)||p instanceof(s.WriteStream||f))&&r(p.close)},h=function(p){return p.setHeader&&r(p.abort)},u=function(p,g,b,_){_=n(_);var y=!1;p.on("close",function(){y=!0}),i(p,{readable:g,writable:b},function(w){if(w)return _(w);y=!0,_()});var D=!1;return function(w){if(!y&&!D){if(D=!0,t(p))return p.close(f);if(h(p))return p.abort();if(r(p.destroy))return p.destroy();_(w||new Error("stream was destroyed"))}}},c=function(p){p()},o=function(p,g){return p.pipe(g)},d=function(){var p=Array.prototype.slice.call(arguments),g=r(p[p.length-1]||f)&&p.pop()||f;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(y,D){var w=D<p.length-1,v=D>0;return u(y,w,v,function(m){b||(b=m),m&&_.forEach(c),!w&&(_.forEach(c),g(b))})});return p.reduce(o)};l.exports=d}),Ao=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=i=>{i={...i};let{array:s}=i,{encoding:f}=i,a=f==="buffer",r=!1;s?r=!(f||a):f=f||"utf8",a&&(f=null);let t=new n({objectMode:r});f&&t.setEncoding(f);let h=0,u=[];return t.on("data",c=>{u.push(c),r?h=u.length:h+=c.length}),t.getBufferedValue=()=>s?u:a?Buffer.concat(u,h):u.join(""),t.getBufferedLength=()=>h,t}}),Co=M((e,l)=>{"use strict";B();var{constants:n}=Z("buffer"),i=So(),s=Ao(),f=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(r,t){if(!r)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:h}=t,u;return await new Promise((c,o)=>{let d=p=>{p&&u.getBufferedLength()<=n.MAX_LENGTH&&(p.bufferedData=u.getBufferedValue()),o(p)};u=i(r,s(t),p=>{if(p){d(p);return}c()}),u.on("data",()=>{u.getBufferedLength()>h&&d(new f)})}),u.getBufferedValue()}l.exports=a,l.exports.default=a,l.exports.buffer=(r,t)=>a(r,{...t,encoding:"buffer"}),l.exports.array=(r,t)=>a(r,{...t,array:!0}),l.exports.MaxBufferError=f}),xo=M((e,l)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),i=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),s=new Set([500,502,503,504]),f={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 r(c){let o=parseInt(c,10);return isFinite(o)?o:0}function t(c){return c?s.has(c.status):!0}function h(c){let o={};if(!c)return o;let d=c.trim().split(/,/);for(let p of d){let[g,b]=p.split(/=/,2);o[g.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return o}function u(c){let o=[];for(let d in c){let p=c[d];o.push(p===!0?d:d+"="+p)}if(o.length)return o.join(", ")}l.exports=class{constructor(c,o,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:g,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!o||!o.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(c),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=g!==void 0?g:24*3600*1e3,this._status="status"in o?o.status:200,this._resHeaders=o.headers,this._rescc=h(o.headers["cache-control"]),this._method="method"in c?c.method:"GET",this._url=c.url,this._host=c.headers.host,this._noAuthorization=!c.headers.authorization,this._reqHeaders=o.headers.vary?c.headers:null,this._reqcc=h(c.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":u(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),o.headers["cache-control"]==null&&/no-cache/.test(o.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())&&i.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||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(c){if(!c||!c.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(c){this._assertRequestHasHeaders(c);let o=h(c.headers["cache-control"]);return o["no-cache"]||/no-cache/.test(c.headers.pragma)||o["max-age"]&&this.age()>o["max-age"]||o["min-fresh"]&&this.timeToLive()<1e3*o["min-fresh"]||this.stale()&&!(o["max-stale"]&&!this._rescc["must-revalidate"]&&(o["max-stale"]===!0||o["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(c,!1)}_requestMatches(c,o){return(!this._url||this._url===c.url)&&this._host===c.headers.host&&(!c.method||this._method===c.method||o&&c.method==="HEAD")&&this._varyMatches(c)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(c){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let o=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of o)if(c.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(c){let o={};for(let d in c)f[d]||(o[d]=c[d]);if(c.connection){let d=c.connection.trim().split(/\s*,\s*/);for(let p of d)delete o[p]}if(o.warning){let d=o.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?o.warning=d.join(",").trim():delete o.warning}return o}responseHeaders(){let c=this._copyWithoutHopByHopHeaders(this._resHeaders),o=this.age();return o>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(c.warning=(c.warning?`${c.warning}, `:"")+'113 - "rfc7234 5.5.4"'),c.age=`${Math.round(o)}`,c.date=new Date(this.now()).toUTCString(),c}date(){let c=Date.parse(this._resHeaders.date);return isFinite(c)?c:this._responseTime}age(){let c=this._ageValue(),o=(this.now()-this._responseTime)/1e3;return c+o}_ageValue(){return r(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 r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);let c=this._rescc.immutable?this._immutableMinTtl:0,o=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<o?0:Math.max(c,(d-o)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&o>d)return Math.max(c,(o-d)/1e3*this._cacheHeuristic)}return c}timeToLive(){let c=this.maxAge()-this.age(),o=c+r(this._rescc["stale-if-error"]),d=c+r(this._rescc["stale-while-revalidate"]);return Math.max(0,c,o,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(c){return new this(void 0,void 0,{_fromObject:c})}_fromObject(c){if(this._responseTime)throw Error("Reinitialized");if(!c||c.v!==1)throw Error("Invalid serialization");this._responseTime=c.t,this._isShared=c.sh,this._cacheHeuristic=c.ch,this._immutableMinTtl=c.imm!==void 0?c.imm:24*3600*1e3,this._status=c.st,this._resHeaders=c.resh,this._rescc=c.rescc,this._method=c.m,this._url=c.u,this._host=c.h,this._noAuthorization=c.a,this._reqHeaders=c.reqh,this._reqcc=c.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(c){this._assertRequestHasHeaders(c);let o=this._copyWithoutHopByHopHeaders(c.headers);if(delete o["if-range"],!this._requestMatches(c,!0)||!this.storable())return delete o["if-none-match"],delete o["if-modified-since"],o;if(this._resHeaders.etag&&(o["if-none-match"]=o["if-none-match"]?`${o["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),o["accept-ranges"]||o["if-match"]||o["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete o["if-modified-since"],o["if-none-match"]){let d=o["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?o["if-none-match"]=d.join(",").trim():delete o["if-none-match"]}}else this._resHeaders["last-modified"]&&!o["if-modified-since"]&&(o["if-modified-since"]=this._resHeaders["last-modified"]);return o}revalidatedPolicy(c,o){if(this._assertRequestHasHeaders(c),this._useStaleIfError()&&t(o))return{modified:!1,matches:!1,policy:this};if(!o||!o.headers)throw Error("Response headers missing");let d=!1;if(o.status!==void 0&&o.status!=304?d=!1:o.headers.etag&&!/^\s*W\//.test(o.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag:this._resHeaders.etag&&o.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===o.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!o.headers.etag&&!o.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(c,o),modified:o.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in o.headers&&!a[b]?o.headers[b]:this._resHeaders[b];let g=Object.assign({},o,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(c,g,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),cr=M((e,l)=>{"use strict";B(),l.exports=n=>{let i={};for(let[s,f]of Object.entries(n))i[s.toLowerCase()]=f;return i}}),ko=M((e,l)=>{"use strict";B();var n=Z("stream").Readable,i=cr(),s=class extends n{constructor(f,a,r,t){if(typeof f!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof t!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=f,this.headers=i(a),this.body=r,this.url=t}_read(){this.push(this.body),this.push(null)}};l.exports=s}),Fo=M((e,l)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];l.exports=(i,s)=>{let f=new Set(Object.keys(i).concat(n));for(let a of f)a in s||(s[a]=typeof i[a]=="function"?i[a].bind(i):i[a])}}),Oo=M((e,l)=>{"use strict";B();var n=Z("stream").PassThrough,i=Fo(),s=f=>{if(!(f&&f.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new n;return i(f,a),f.pipe(a)};l.exports=s}),Ro=M(e=>{B(),e.stringify=function l(n){if(typeof n>"u")return n;if(n&&Buffer.isBuffer(n))return JSON.stringify(":base64:"+n.toString("base64"));if(n&&n.toJSON&&(n=n.toJSON()),n&&typeof n=="object"){var i="",s=Array.isArray(n);i=s?"[":"{";var f=!0;for(var a in n){var r=typeof n[a]=="function"||!s&&typeof n[a]>"u";Object.hasOwnProperty.call(n,a)&&!r&&(f||(i+=","),f=!1,s?n[a]==null?i+="null":i+=l(n[a]):n[a]!==void 0&&(i+=l(a)+":"+l(n[a])))}return i+=s?"]":"}",i}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},e.parse=function(l){return JSON.parse(l,function(n,i){return typeof i=="string"?/^:base64:/.test(i)?Buffer.from(i.substring(8),"base64"):/^:/.test(i)?i.substring(1):i:i})}}),To=M((e,l)=>{"use strict";B();var n=Z("events"),i=Ro(),s=r=>{let t={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(r.adapter||r.uri){let h=r.adapter||/^[^:+]*/.exec(r.uri)[0];return new(Z(t[h]))(r)}return new Map},f=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends n{constructor(r,{emitErrors:t=!0,...h}={}){if(super(),this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof r=="string"?{uri:r}:r,...h},!this.opts.store){let c={...this.opts};this.opts.store=s(c)}if(this.opts.compression){let c=this.opts.compression;this.opts.serialize=c.serialize.bind(c),this.opts.deserialize=c.deserialize.bind(c)}typeof this.opts.store.on=="function"&&t&&this.opts.store.on("error",c=>this.emit("error",c)),this.opts.store.namespace=this.opts.namespace;let u=c=>async function*(){for await(let[o,d]of typeof c=="function"?c(this.opts.store.namespace):c){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=u(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=u(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return f.includes(this.opts.store.opts.dialect)||f.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(t=>`${this.opts.namespace}:${t}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,t){let{store:h}=this.opts,u=Array.isArray(r),c=u?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(u&&h.getMany===void 0){let o=[];for(let d of c)o.push(Promise.resolve().then(()=>h.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(()=>{}):t&&t.raw?p:p.value}));return Promise.allSettled(o).then(d=>{let p=[];for(let g of d)p.push(g.value);return p})}return Promise.resolve().then(()=>u?h.getMany(c):h.get(c)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(u){let d=[];for(let p of o){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(r).then(()=>{}),d.push(void 0)):d.push(t&&t.raw?p:p.value)}return d}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(r).then(()=>{}):t&&t.raw?o:o.value}})}set(r,t,h){let u=this._getKeyPrefix(r);typeof h>"u"&&(h=this.opts.ttl),h===0&&(h=void 0);let{store:c}=this.opts;return Promise.resolve().then(()=>{let o=typeof h=="number"?Date.now()+h:null;return typeof t=="symbol"&&this.emit("error","symbol cannot be serialized"),t={value:t,expires:o},this.opts.serialize(t)}).then(o=>c.set(u,o,h)).then(()=>!0)}delete(r){let{store:t}=this.opts;if(Array.isArray(r)){let u=this._getKeyPrefixArray(r);if(t.deleteMany===void 0){let c=[];for(let o of u)c.push(t.delete(o));return Promise.allSettled(c).then(o=>o.every(d=>d.value===!0))}return Promise.resolve().then(()=>t.deleteMany(u))}let h=this._getKeyPrefix(r);return Promise.resolve().then(()=>t.delete(h))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let t=this._getKeyPrefix(r),{store:h}=this.opts;return Promise.resolve().then(async()=>typeof h.has=="function"?h.has(t):await h.get(t)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};l.exports=a}),Bo=M((e,l)=>{"use strict";B();var n=Z("events"),i=Z("url"),s=Eo(),f=Co(),a=xo(),r=ko(),t=cr(),h=Oo(),u=To(),c=class{constructor(p,g){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new u({uri:typeof g=="string"&&g,store:typeof g!="string"&&g,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(g,b)=>{let _;if(typeof g=="string")_=d(i.parse(g)),g={};else if(g instanceof i.URL)_=d(i.parse(g.toString())),g={};else{let[S,...A]=(g.path||"").split("?"),x=A.length>0?`?${A.join("?")}`:"";_=d({...g,pathname:S,search:x})}g={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...g,...o(_)},g.headers=t(g.headers);let y=new n,D=s(i.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),w=`${g.method}:${D}`,v=!1,m=!1,E=S=>{m=!0;let A=!1,x,L=new Promise(k=>{x=()=>{A||(A=!0,k())}}),T=k=>{if(v&&!S.forceRefresh){k.status=k.statusCode;let I=a.fromObject(v.cachePolicy).revalidatedPolicy(S,k);if(!I.modified){let $=I.policy.responseHeaders();k=new r(v.statusCode,$,v.body,v.url),k.cachePolicy=I.policy,k.fromCache=!0}}k.fromCache||(k.cachePolicy=new a(S,k,S),k.fromCache=!1);let O;S.cache&&k.cachePolicy.storable()?(O=h(k),(async()=>{try{let I=f.buffer(k);if(await Promise.race([L,new Promise(W=>k.once("end",W))]),A)return;let $=await I,R={cachePolicy:k.cachePolicy.toObject(),url:k.url,statusCode:k.fromCache?v.statusCode:k.statusCode,body:$},G=S.strictTtl?k.cachePolicy.timeToLive():void 0;S.maxTtl&&(G=G?Math.min(G,S.maxTtl):S.maxTtl),await this.cache.set(w,R,G)}catch(I){y.emit("error",new c.CacheError(I))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(w)}catch(I){y.emit("error",new c.CacheError(I))}})(),y.emit("response",O||k),typeof b=="function"&&b(O||k)};try{let k=p(S,T);k.once("error",x),k.once("abort",x),y.emit("request",k)}catch(k){y.emit("error",new c.RequestError(k))}};return(async()=>{let S=async x=>{await Promise.resolve();let L=x.cache?await this.cache.get(w):void 0;if(typeof L>"u")return E(x);let T=a.fromObject(L.cachePolicy);if(T.satisfiesWithoutRevalidation(x)&&!x.forceRefresh){let k=T.responseHeaders(),O=new r(L.statusCode,k,L.body,L.url);O.cachePolicy=T,O.fromCache=!0,y.emit("response",O),typeof b=="function"&&b(O)}else v=L,x.headers=T.revalidationHeaders(x),E(x)},A=x=>y.emit("error",new c.CacheError(x));this.cache.once("error",A),y.on("response",()=>this.cache.removeListener("error",A));try{await S(g)}catch(x){g.automaticFailover&&!m&&E(g),y.emit("error",new c.CacheError(x))}})(),y}}};function o(p){let g={...p};return g.path=`${p.pathname||"/"}${p.search||""}`,delete g.pathname,delete g.search,g}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}}c.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},c.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},l.exports=c}),Po=M((e,l)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];l.exports=(i,s)=>{if(s._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let f=new Set(Object.keys(i).concat(n)),a={};for(let r of f)r in s||(a[r]={get(){let t=i[r];return typeof t=="function"?t.bind(i):t},set(t){i[r]=t},enumerable:!0,configurable:!1});return Object.defineProperties(s,a),i.once("aborted",()=>{s.destroy(),s.emit("aborted")}),i.once("close",()=>{i.complete&&s.readable?s.once("end",()=>{s.emit("close")}):s.emit("close")}),s}}),Lo=M((e,l)=>{"use strict";B();var{Transform:n,PassThrough:i}=Z("stream"),s=Z("zlib"),f=Po();l.exports=a=>{let r=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return a;let t=r==="br";if(t&&typeof s.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let h=!0,u=new n({transform(d,p,g){h=!1,g(null,d)},flush(d){d()}}),c=new i({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),o=t?s.createBrotliDecompress():s.createUnzip();return o.once("error",d=>{if(h&&!a.readable){c.end();return}c.destroy(d)}),f(a,c),a.pipe(u).pipe(o).pipe(c),c}}),ln=M((e,l)=>{"use strict";B();var n=class{constructor(i={}){if(!(i.maxSize&&i.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=i.maxSize,this.onEviction=i.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(i,s){if(this.cache.set(i,s),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[f,a]of this.oldCache.entries())this.onEviction(f,a);this.oldCache=this.cache,this.cache=new Map}}get(i){if(this.cache.has(i))return this.cache.get(i);if(this.oldCache.has(i)){let s=this.oldCache.get(i);return this.oldCache.delete(i),this._set(i,s),s}}set(i,s){return this.cache.has(i)?this.cache.set(i,s):this._set(i,s),this}has(i){return this.cache.has(i)||this.oldCache.has(i)}peek(i){if(this.cache.has(i))return this.cache.get(i);if(this.oldCache.has(i))return this.oldCache.get(i)}delete(i){let s=this.cache.delete(i);return s&&this._size--,this.oldCache.delete(i)||s}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[i]of this)yield i}*values(){for(let[,i]of this)yield i}*[Symbol.iterator](){for(let i of this.cache)yield i;for(let i of this.oldCache){let[s]=i;this.cache.has(s)||(yield i)}}get size(){let i=0;for(let s of this.oldCache.keys())this.cache.has(s)||i++;return Math.min(this._size+i,this.maxSize)}};l.exports=n}),cn=M((e,l)=>{"use strict";B();var n=Z("events"),i=Z("tls"),s=Z("http2"),f=ln(),a=Symbol("currentStreamsCount"),r=Symbol("request"),t=Symbol("cachedOriginSet"),h=Symbol("gracefullyClosing"),u=["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"],c=(y,D,w)=>{let v=0,m=y.length;for(;v<m;){let E=v+m>>>1;w(y[E],D)?v=E+1:m=E}return v},o=(y,D)=>y.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(y,D)=>{for(let w of y)w[t].length<D[t].length&&w[t].every(v=>D[t].includes(v))&&w[a]+D[a]<=D.remoteSettings.maxConcurrentStreams&&b(w)},p=(y,D)=>{for(let w of y)D[t].length<w[t].length&&D[t].every(v=>w[t].includes(v))&&D[a]+w[a]<=w.remoteSettings.maxConcurrentStreams&&b(D)},g=({agent:y,isFree:D})=>{let w={};for(let v in y.sessions){let m=y.sessions[v].filter(E=>{let S=E[_.kCurrentStreamsCount]<E.remoteSettings.maxConcurrentStreams;return D?S:!S});m.length!==0&&(w[v]=m)}return w},b=y=>{y[h]=!0,y[a]===0&&y.close()},_=class extends n{constructor({timeout:y=6e4,maxSessions:D=1/0,maxFreeSessions:w=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=y,this.maxSessions=D,this.maxFreeSessions=w,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new f({maxSize:v})}static normalizeOrigin(y,D){return typeof y=="string"&&(y=new URL(y)),D&&y.hostname!==D&&(y.hostname=D),y.origin}normalizeOptions(y){let D="";if(y)for(let w of u)y[w]&&(D+=`:${y[w]}`);return D}_tryToCreateNewSession(y,D){if(!(y in this.queue)||!(D in this.queue[y]))return;let w=this.queue[y][D];this._sessionsCount<this.maxSessions&&!w.completed&&(w.completed=!0,w())}getSession(y,D,w){return new Promise((v,m)=>{Array.isArray(w)?(w=[...w],v()):w=[{resolve:v,reject:m}];let E=this.normalizeOptions(D),S=_.normalizeOrigin(y,D&&D.servername);if(S===void 0){for(let{reject:L}of w)L(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(E in this.sessions){let L=this.sessions[E],T=-1,k=-1,O;for(let I of L){let $=I.remoteSettings.maxConcurrentStreams;if($<T)break;if(I[t].includes(S)){let R=I[a];if(R>=$||I[h]||I.destroyed)continue;O||(T=$),R>k&&(O=I,k=R)}}if(O){if(w.length!==1){for(let{reject:I}of w){let $=new Error(`Expected the length of listeners to be 1, got ${w.length}.
|
|
22
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);I($)}return}w[0].resolve(O);return}}if(E in this.queue){if(S in this.queue[E]){this.queue[E][S].listeners.push(...w),this._tryToCreateNewSession(E,S);return}}else this.queue[E]={};let A=()=>{E in this.queue&&this.queue[E][S]===x&&(delete this.queue[E][S],Object.keys(this.queue[E]).length===0&&delete this.queue[E])},x=()=>{let L=`${S}:${E}`,T=!1;try{let k=s.connect(y,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(L),...D});k[a]=0,k[h]=!1;let O=()=>k[a]<k.remoteSettings.maxConcurrentStreams,I=!0;k.socket.once("session",R=>{this.tlsSessionCache.set(L,R)}),k.once("error",R=>{for(let{reject:G}of w)G(R);this.tlsSessionCache.delete(L)}),k.setTimeout(this.timeout,()=>{k.destroy()}),k.once("close",()=>{if(T){I&&this._freeSessionsCount--,this._sessionsCount--;let R=this.sessions[E];R.splice(R.indexOf(k),1),R.length===0&&delete this.sessions[E]}else{let R=new Error("Session closed without receiving a SETTINGS frame");R.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:G}of w)G(R);A()}this._tryToCreateNewSession(E,S)});let $=()=>{if(!(!(E in this.queue)||!O())){for(let R of k[t])if(R in this.queue[E]){let{listeners:G}=this.queue[E][R];for(;G.length!==0&&O();)G.shift().resolve(k);let W=this.queue[E];if(W[R].listeners.length===0&&(delete W[R],Object.keys(W).length===0)){delete this.queue[E];break}if(!O())break}}};k.on("origin",()=>{k[t]=k.originSet,O()&&($(),d(this.sessions[E],k))}),k.once("remoteSettings",()=>{if(k.ref(),k.unref(),this._sessionsCount++,x.destroyed){let R=new Error("Agent has been destroyed");for(let G of w)G.reject(R);k.destroy();return}k[t]=k.originSet;{let R=this.sessions;if(E in R){let G=R[E];G.splice(c(G,k,o),0,k)}else R[E]=[k]}this._freeSessionsCount+=1,T=!0,this.emit("session",k),$(),A(),k[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&k.close(),w.length!==0&&(this.getSession(S,D,w),w.length=0),k.on("remoteSettings",()=>{$(),d(this.sessions[E],k)})}),k[r]=k.request,k.request=(R,G)=>{if(k[h])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=k[r](R,G);return k.ref(),++k[a],k[a]===k.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(I=O(),--k[a],!k.destroyed&&!k.closed&&(p(this.sessions[E],k),O()&&!k.closed)){I||(this._freeSessionsCount++,I=!0);let Q=k[a]===0;Q&&k.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||k[h])?k.close():(d(this.sessions[E],k),$())}}),W}}catch(k){for(let O of w)O.reject(k);A()}};x.listeners=w,x.completed=!1,x.destroyed=!1,this.queue[E][S]=x,this._tryToCreateNewSession(E,S)})}request(y,D,w,v){return new Promise((m,E)=>{this.getSession(y,D,[{reject:E,resolve:S=>{try{m(S.request(w,v))}catch(A){E(A)}}}])})}createConnection(y,D){return _.connect(y,D)}static connect(y,D){D.ALPNProtocols=["h2"];let w=y.port||443,v=y.hostname||y.host;return typeof D.servername>"u"&&(D.servername=v),i.connect(w,v,D)}closeFreeSessions(){for(let y of Object.values(this.sessions))for(let D of y)D[a]===0&&D.close()}destroy(y){for(let D of Object.values(this.sessions))for(let w of D)w.destroy(y);for(let D of Object.values(this.queue))for(let w of Object.values(D))w.destroyed=!0;this.queue={}}get freeSessions(){return g({agent:this,isFree:!0})}get busySessions(){return g({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=h,l.exports={Agent:_,globalAgent:new _}}),hn=M((e,l)=>{"use strict";B();var{Readable:n}=Z("stream"),i=class extends n{constructor(s,f){super({highWaterMark:f,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=s,this.connection=s,this._dumped=!1}_destroy(s){this.req._request.destroy(s)}setTimeout(s,f){return this.req.setTimeout(s,f),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};l.exports=i}),pn=M((e,l)=>{"use strict";B(),l.exports=n=>{let i={protocol:n.protocol,hostname:typeof n.hostname=="string"&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return typeof n.port=="string"&&n.port.length!==0&&(i.port=Number(n.port)),(n.username||n.password)&&(i.auth=`${n.username||""}:${n.password||""}`),i}}),Io=M((e,l)=>{"use strict";B(),l.exports=(n,i,s)=>{for(let f of s)n.on(f,(...a)=>i.emit(f,...a))}}),Mo=M((e,l)=>{"use strict";B(),l.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),jo=M((e,l)=>{"use strict";B();var n=(i,s,f)=>{l.exports[s]=class extends i{constructor(...a){super(typeof f=="string"?f:f(a)),this.name=`${super.name} [${s}]`,this.code=s}}};n(TypeError,"ERR_INVALID_ARG_TYPE",i=>{let s=i[0].includes(".")?"property":"argument",f=i[1],a=Array.isArray(f);return a&&(f=`${f.slice(0,-1).join(", ")} or ${f.slice(-1)}`),`The "${i[0]}" ${s} must be ${a?"one of":"of"} type ${f}. Received ${typeof i[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",i=>`Protocol "${i[0]}" not supported. Expected "${i[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",i=>`Cannot ${i[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",i=>`${i[0]} must be a valid HTTP token [${i[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",i=>`Invalid value "${i[0]} for header "${i[1]}"`),n(TypeError,"ERR_INVALID_CHAR",i=>`Invalid character in ${i[0]} [${i[1]}]`)}),fn=M((e,l)=>{"use strict";B();var n=Z("http2"),{Writable:i}=Z("stream"),{Agent:s,globalAgent:f}=cn(),a=hn(),r=pn(),t=Io(),h=Mo(),{ERR_INVALID_ARG_TYPE:u,ERR_INVALID_PROTOCOL:c,ERR_HTTP_HEADERS_SENT:o,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:g}=jo(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:y,HTTP2_METHOD_CONNECT:D}=n.constants,w=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),E=Symbol("options"),S=Symbol("flushedHeaders"),A=Symbol("jobs"),x=/^[\^`\-\w!#$%&*+.|~]+$/,L=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends i{constructor(k,O,I){super({autoDestroy:!1});let $=typeof k=="string"||k instanceof URL;if($&&(k=r(k instanceof URL?k:new URL(k))),typeof O=="function"||O===void 0?(I=O,O=$?k:{...k}):O={...k,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new s({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new s({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=f;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new u("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new c(O.protocol,"https:");let R=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,G=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:W}=O;if(O.timeout=void 0,this[w]=Object.create(null),this[A]=[],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[Q,P]of Object.entries(O.headers))this.setHeader(Q,P);O.auth&&!("authorization"in this[w])&&(this[w].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[E]=O,R===443?(this[v]=`https://${G}`,":authority"in this[w]||(this[w][":authority"]=G)):(this[v]=`https://${G}:${R}`,":authority"in this[w]||(this[w][":authority"]=`${G}:${R}`)),W&&this.setTimeout(W),I&&this.once("response",I),this[S]=!1}get method(){return this[w][_]}set method(k){k&&(this[w][_]=k.toUpperCase())}get path(){return this[w][y]}set path(k){k&&(this[w][y]=k)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(k,O,I){if(this._mustNotHaveABody){I(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let $=()=>this._request.write(k,O,I);this._request?$():this[A].push($)}_final(k){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){k();return}this._request.end(k)};this._request?O():this[A].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(k,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(k)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let k=this.method===D,O=I=>{if(this._request=I,this.destroyed){I.destroy();return}k||t(I,this,["timeout","continue","close","error"]);let $=G=>(...W)=>{!this.writable&&!this.destroyed?G(...W):this.once("finish",()=>{G(...W)})};I.once("response",$((G,W,Q)=>{let P=new a(this.socket,I.readableHighWaterMark);this.res=P,P.req=this,P.statusCode=G[b],P.headers=G,P.rawHeaders=Q,P.once("end",()=>{this.aborted?(P.aborted=!0,P.emit("aborted")):(P.complete=!0,P.socket=null,P.connection=null)}),k?(P.upgrade=!0,this.emit("connect",P,I,Buffer.alloc(0))?this.emit("close"):I.destroy()):(I.on("data",j=>{!P._dumped&&!P.push(j)&&I.pause()}),I.once("end",()=>{P.push(null)}),this.emit("response",P)||P._dump())})),I.once("headers",$(G=>this.emit("information",{statusCode:G[b]}))),I.once("trailers",$((G,W,Q)=>{let{res:P}=this;P.trailers=G,P.rawTrailers=Q}));let{socket:R}=I.session;this.socket=R,this.connection=R;for(let G of this[A])G();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[w]))}catch(I){this.emit("error",I)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[E],this[w]))}catch(I){this.emit("error",I)}}}getHeader(k){if(typeof k!="string")throw new u("name","string",k);return this[w][k.toLowerCase()]}get headersSent(){return this[S]}removeHeader(k){if(typeof k!="string")throw new u("name","string",k);if(this.headersSent)throw new o("remove");delete this[w][k.toLowerCase()]}setHeader(k,O){if(this.headersSent)throw new o("set");if(typeof k!="string"||!x.test(k)&&!h(k))throw new d("Header name",k);if(typeof O>"u")throw new p(O,k);if(L.test(O))throw new g("header content",k);this[w][k.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(k,O){let I=()=>this._request.setTimeout(k,O);return this._request?I():this[A].push(I),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(k){}};l.exports=T}),No=M((e,l)=>{"use strict";B();var n=Z("tls");l.exports=(i={},s=n.connect)=>new Promise((f,a)=>{let r=!1,t,h=async()=>{await c,t.off("timeout",u),t.off("error",a),i.resolveSocket?(f({alpnProtocol:t.alpnProtocol,socket:t,timeout:r}),r&&(await Promise.resolve(),t.emit("timeout"))):(t.destroy(),f({alpnProtocol:t.alpnProtocol,timeout:r}))},u=async()=>{r=!0,h()},c=(async()=>{try{t=await s(i,h),t.on("error",a),t.once("timeout",u)}catch(o){a(o)}})()})}),$o=M((e,l)=>{"use strict";B();var n=Z("net");l.exports=i=>{let s=i.host,f=i.headers&&i.headers.host;return f&&(f.startsWith("[")?f.indexOf("]")===-1?s=f:s=f.slice(1,-1):s=f.split(":",1)[0]),n.isIP(s)?"":s}}),Ho=M((e,l)=>{"use strict";B();var n=Z("http"),i=Z("https"),s=No(),f=ln(),a=fn(),r=$o(),t=pn(),h=new f({maxSize:100}),u=new Map,c=(d,p,g)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,g)};p.on("free",b);let _=()=>{d.removeSocket(p,g)};p.on("close",_);let y=()=>{d.removeSocket(p,g),p.off("close",_),p.off("free",b),p.off("agentRemove",y)};p.on("agentRemove",y),d.emit("free",p,g)},o=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!h.has(p)){if(u.has(p))return(await u.get(p)).alpnProtocol;let{path:g,agent:b}=d;d.path=d.socketPath;let _=s(d);u.set(p,_);try{let{socket:y,alpnProtocol:D}=await _;if(h.set(p,D),d.path=g,D==="h2")y.destroy();else{let{globalAgent:w}=i,v=i.Agent.prototype.createConnection;b?b.createConnection===v?c(b,y,d):y.destroy():w.createConnection===v?c(w,y,d):y.destroy()}return u.delete(p),D}catch(y){throw u.delete(p),y}}return h.get(p)};l.exports=async(d,p,g)=>{if((typeof d=="string"||d instanceof URL)&&(d=t(new URL(d))),typeof p=="function"&&(g=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||r(p),p.port=p.port||(b?443:80),p._defaultAgent=b?i.globalAgent:n.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 o(p)==="h2"?(_&&(p.agent=_.http2),new a(p,g)):n.request(p,g)},l.exports.protocolCache=h}),Uo=M((e,l)=>{"use strict";B();var n=Z("http2"),i=cn(),s=fn(),f=hn(),a=Ho(),r=(h,u,c)=>new s(h,u,c),t=(h,u,c)=>{let o=new s(h,u,c);return o.end(),o};l.exports={...n,ClientRequest:s,IncomingMessage:f,...i,request:r,get:t,auto:a}}),dn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();e.default=n=>l.default.nodeStream(n)&&l.default.function_(n.getBoundary)}),Go=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("fs"),n=Z("util"),i=Xe(),s=dn(),f=n.promisify(l.stat);e.default=async(a,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!a)return 0;if(i.default.string(a))return Buffer.byteLength(a);if(i.default.buffer(a))return a.length;if(s.default(a))return n.promisify(a.getLength.bind(a))();if(a instanceof l.ReadStream){let{size:t}=await f(a.path);return t===0?void 0:t}}}),mn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function l(n,i,s){let f={};for(let a of s)f[a]=(...r)=>{i.emit(a,...r)},n.on(a,f[a]);return()=>{for(let a of s)n.off(a,f[a])}}e.default=l}),qo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let l=[];return{once(n,i,s){n.once(i,s),l.push({origin:n,event:i,fn:s})},unhandleAll(){for(let n of l){let{origin:i,event:s,fn:f}=n;i.removeListener(s,f)}l.length=0}}}}),zo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var l=Z("net"),n=qo(),i=Symbol("reentry"),s=()=>{},f=class extends Error{constructor(a,r){super(`Timeout awaiting '${r}' for ${a}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=f,e.default=(a,r,t)=>{if(i in a)return s;a[i]=!0;let h=[],{once:u,unhandleAll:c}=n.default(),o=(_,y,D)=>{var w;let v=setTimeout(y,_,_,D);(w=v.unref)===null||w===void 0||w.call(v);let m=()=>{clearTimeout(v)};return h.push(m),m},{host:d,hostname:p}=t,g=(_,y)=>{a.destroy(new f(_,y))},b=()=>{for(let _ of h)_();c()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),u(a,"response",_=>{u(_,"end",b)}),typeof r.request<"u"&&o(r.request,g,"request"),typeof r.socket<"u"){let _=()=>{g(r.socket,"socket")};a.setTimeout(r.socket,_),h.push(()=>{a.removeListener("timeout",_)})}return u(a,"socket",_=>{var y;let{socketPath:D}=a;if(_.connecting){let w=Boolean(D!=null?D:l.isIP((y=p!=null?p:d)!==null&&y!==void 0?y:"")!==0);if(typeof r.lookup<"u"&&!w&&typeof _.address().address>"u"){let v=o(r.lookup,g,"lookup");u(_,"lookup",v)}if(typeof r.connect<"u"){let v=()=>o(r.connect,g,"connect");w?u(_,"connect",v()):u(_,"lookup",m=>{m===null&&u(_,"connect",v())})}typeof r.secureConnect<"u"&&t.protocol==="https:"&&u(_,"connect",()=>{let v=o(r.secureConnect,g,"secureConnect");u(_,"secureConnect",v)})}if(typeof r.send<"u"){let w=()=>o(r.send,g,"send");_.connecting?u(_,"connect",()=>{u(a,"upload-complete",w())}):u(a,"upload-complete",w())}}),typeof r.response<"u"&&u(a,"upload-complete",()=>{let _=o(r.response,g,"response");u(a,"response",_)}),b}}),Wo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();e.default=n=>{n=n;let i={protocol:n.protocol,hostname:l.default.string(n.hostname)&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return l.default.string(n.port)&&n.port.length>0&&(i.port=Number(n.port)),(n.username||n.password)&&(i.auth=`${n.username||""}:${n.password||""}`),i}}),Vo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("url"),n=["protocol","host","hostname","port","pathname","search"];e.default=(i,s)=>{var f,a;if(s.path){if(s.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(s.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(s.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(s.search&&s.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!i){if(!s.protocol)throw new TypeError("No URL protocol specified");i=`${s.protocol}//${(a=(f=s.hostname)!==null&&f!==void 0?f:s.host)!==null&&a!==void 0?a:""}`}let r=new l.URL(i);if(s.path){let t=s.path.indexOf("?");t===-1?s.pathname=s.path:(s.pathname=s.path.slice(0,t),s.search=s.path.slice(t+1)),delete s.path}for(let t of n)s[t]&&(r[t]=s[t].toString());return r}}),Ko=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,i){typeof n=="object"?this.weakMap.set(n,i):this.map.set(n,i)}get(n){return typeof n=="object"?this.weakMap.get(n):this.map.get(n)}has(n){return typeof n=="object"?this.weakMap.has(n):this.map.has(n)}};e.default=l}),yn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=async n=>{let i=[],s=0;for await(let f of n)i.push(f),s+=Buffer.byteLength(f);return Buffer.isBuffer(i[0])?Buffer.concat(i,s):Buffer.from(i.join(""))};e.default=l}),Yo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var l={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=n=>n in l,e.dnsLookupIpVersionToFamily=n=>{if(e.isDnsLookupIpVersion(n))return l[n];throw new Error("Invalid DNS lookup IP version")}}),gn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=l=>{let{statusCode:n}=l,i=l.request.options.followRedirect?299:399;return n>=200&&n<=i||n===304}}),Jo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=new Set;e.default=n=>{l.has(n)||(l.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),Zo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe(),n=(i,s)=>{if(l.default.null_(i.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");l.assert.any([l.default.string,l.default.undefined],i.encoding),l.assert.any([l.default.boolean,l.default.undefined],i.resolveBodyOnly),l.assert.any([l.default.boolean,l.default.undefined],i.methodRewriting),l.assert.any([l.default.boolean,l.default.undefined],i.isStream),l.assert.any([l.default.string,l.default.undefined],i.responseType),i.responseType===void 0&&(i.responseType="text");let{retry:f}=i;if(s?i.retry={...s.retry}:i.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},l.default.object(f)?(i.retry={...i.retry,...f},i.retry.methods=[...new Set(i.retry.methods.map(a=>a.toUpperCase()))],i.retry.statusCodes=[...new Set(i.retry.statusCodes)],i.retry.errorCodes=[...new Set(i.retry.errorCodes)]):l.default.number(f)&&(i.retry.limit=f),l.default.undefined(i.retry.maxRetryAfter)&&(i.retry.maxRetryAfter=Math.min(...[i.timeout.request,i.timeout.connect].filter(l.default.number))),l.default.object(i.pagination)){s&&(i.pagination={...s.pagination,...i.pagination});let{pagination:a}=i;if(!l.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!l.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!l.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!l.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return i.responseType==="json"&&i.headers.accept===void 0&&(i.headers.accept="application/json"),i};e.default=n}),Xo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var l=({attemptCount:n,retryOptions:i,error:s,retryAfter:f})=>{if(n>i.limit)return 0;let a=i.methods.includes(s.options.method),r=i.errorCodes.includes(s.code),t=s.response&&i.statusCodes.includes(s.response.statusCode);if(!a||!r&&!t)return 0;if(s.response){if(f)return i.maxRetryAfter===void 0||f>i.maxRetryAfter?0:f;if(s.response.statusCode===413)return 0}let h=Math.random()*100;return 2**(n-1)*1e3+h};e.default=l}),Ut=M(e=>{"use strict";B(),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 l=Z("util"),n=Z("stream"),i=Z("fs"),s=Z("url"),f=Z("http"),a=Z("http"),r=Z("https"),t=vo(),h=_o(),u=Bo(),c=Lo(),o=Uo(),d=cr(),p=Xe(),g=Go(),b=dn(),_=mn(),y=zo(),D=Wo(),w=Vo(),v=Ko(),m=yn(),E=Yo(),S=gn(),A=Jo(),x=Zo(),L=Xo(),T,k=Symbol("request"),O=Symbol("response"),I=Symbol("responseSize"),$=Symbol("downloadedSize"),R=Symbol("bodySize"),G=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),P=Symbol("isFromCache"),j=Symbol("cancelTimeouts"),F=Symbol("startedReading"),J=Symbol("stopReading"),q=Symbol("triggerRead"),ee=Symbol("body"),N=Symbol("jobs"),K=Symbol("originalResponse"),te=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var se=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function le(Y){for(let U in Y){let oe=Y[U];if(!p.default.string(oe)&&!p.default.number(oe)&&!p.default.boolean(oe)&&!p.default.null_(oe)&&!p.default.undefined(oe))throw new TypeError(`The \`searchParams\` value '${String(oe)}' must be a string, number, boolean or null`)}}function ye(Y){return p.default.object(Y)&&!("statusCode"in Y)}var de=new v.default,H=async Y=>new Promise((U,oe)=>{let ge=pe=>{oe(pe)};Y.pending||U(),Y.once("error",ge),Y.once("ready",()=>{Y.off("error",ge),U()})}),V=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(Y,U)=>{let oe={};for(let ge of Y)if(ge)for(let pe of C)pe in ge&&(oe[pe]={writable:!0,configurable:!0,enumerable:!1,value:ge[pe]});Object.defineProperties(U,oe)};var z=class extends Error{constructor(Y,U,oe){var ge,pe;if(super(Y),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(ge=U.code)!==null&&ge!==void 0?ge:"ERR_GOT_REQUEST_ERROR",oe instanceof De?(Object.defineProperty(this,"request",{enumerable:!1,value:oe}),Object.defineProperty(this,"response",{enumerable:!1,value:oe[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:oe.options})):Object.defineProperty(this,"options",{enumerable:!1,value:oe}),this.timings=(pe=this.request)===null||pe===void 0?void 0:pe.timings,p.default.string(U.stack)&&p.default.string(this.stack)){let ae=this.stack.indexOf(this.message)+this.message.length,fe=this.stack.slice(ae).split(`
|
|
21
|
+
`)}function h(c){let o={interpolation:"rgb",hsvSpin:"short",...c};if(c!==void 0&&typeof c!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof c}\``);if(typeof o.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof o.interpolation}\``);if(o.interpolation.toLowerCase()==="hsv"&&typeof o.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof o.hsvSpin}\``);return o}var u={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"}}};l.exports=f;for(let c in u)l.exports[c]=o=>new f(u[c].colors)(o,u[c].options),l.exports[c].multiline=o=>new f(u[c].colors).multiline(o,u[c].options)}),Qr={};Wr(Qr,{dimmed:()=>mo,error:()=>on,info:()=>po,item:()=>yo,turboBlue:()=>ft,turboGradient:()=>ho,turboLoader:()=>sn,turboRed:()=>rn,warn:()=>fo,yellow:()=>nn});B();var Ht=xe(it()),uo=xe(to()),lo=xe(ao()),en="#0099F7",tn="#F11712",co="#FFFF00",ho=(0,lo.default)(en,tn),ft=Ht.default.hex(en),rn=Ht.default.hex(tn),nn=Ht.default.hex(co),sn=e=>(0,uo.default)({text:e,spinner:{frames:[" ",ft("> "),ft(">> "),ft(">>>")]}}),po=(...e)=>{console.log(ft.bold(">>>"),...e)},on=(...e)=>{console.error(rn.bold(">>>"),...e)},fo=(...e)=>{console.error(nn.bold(">>>"),...e)},mo=(...e)=>{console.log(Ht.default.dim(...e))},yo=(...e)=>{console.log(ft.bold(" \u2022"),...e)};import{Stream as wa}from"stream";import{promisify as Da}from"util";var Xe=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function i(m){return n.includes(m)}var s=["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",...n];function f(m){return s.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return a.includes(m)}function t(m){return E=>typeof E===m}var{toString:h}=Object.prototype,u=m=>{let E=h.call(m).slice(8,-1);if(/HTML\w+Element/.test(E)&&o.domElement(m))return"HTMLElement";if(f(E))return E},c=m=>E=>u(E)===m;function o(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(o.observable(m))return"Observable";if(o.array(m))return"Array";if(o.buffer(m))return"Buffer";let E=u(m);if(E)return E;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}o.undefined=t("undefined"),o.string=t("string");var d=t("number");o.number=m=>d(m)&&!o.nan(m),o.bigint=t("bigint"),o.function_=t("function"),o.null_=m=>m===null,o.class_=m=>o.function_(m)&&m.toString().startsWith("class "),o.boolean=m=>m===!0||m===!1,o.symbol=t("symbol"),o.numericString=m=>o.string(m)&&!o.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),o.array=(m,E)=>Array.isArray(m)?o.function_(E)?m.every(E):!0:!1,o.buffer=m=>{var E,S,A,k;return(k=(A=(S=(E=m)===null||E===void 0?void 0:E.constructor)===null||S===void 0?void 0:S.isBuffer)===null||A===void 0?void 0:A.call(S,m))!==null&&k!==void 0?k:!1},o.blob=m=>c("Blob")(m),o.nullOrUndefined=m=>o.null_(m)||o.undefined(m),o.object=m=>!o.null_(m)&&(typeof m=="object"||o.function_(m)),o.iterable=m=>{var E;return o.function_((E=m)===null||E===void 0?void 0:E[Symbol.iterator])},o.asyncIterable=m=>{var E;return o.function_((E=m)===null||E===void 0?void 0:E[Symbol.asyncIterator])},o.generator=m=>{var E,S;return o.iterable(m)&&o.function_((E=m)===null||E===void 0?void 0:E.next)&&o.function_((S=m)===null||S===void 0?void 0:S.throw)},o.asyncGenerator=m=>o.asyncIterable(m)&&o.function_(m.next)&&o.function_(m.throw),o.nativePromise=m=>c("Promise")(m);var p=m=>{var E,S;return o.function_((E=m)===null||E===void 0?void 0:E.then)&&o.function_((S=m)===null||S===void 0?void 0:S.catch)};o.promise=m=>o.nativePromise(m)||p(m),o.generatorFunction=c("GeneratorFunction"),o.asyncGeneratorFunction=m=>u(m)==="AsyncGeneratorFunction",o.asyncFunction=m=>u(m)==="AsyncFunction",o.boundFunction=m=>o.function_(m)&&!m.hasOwnProperty("prototype"),o.regExp=c("RegExp"),o.date=c("Date"),o.error=c("Error"),o.map=m=>c("Map")(m),o.set=m=>c("Set")(m),o.weakMap=m=>c("WeakMap")(m),o.weakSet=m=>c("WeakSet")(m),o.int8Array=c("Int8Array"),o.uint8Array=c("Uint8Array"),o.uint8ClampedArray=c("Uint8ClampedArray"),o.int16Array=c("Int16Array"),o.uint16Array=c("Uint16Array"),o.int32Array=c("Int32Array"),o.uint32Array=c("Uint32Array"),o.float32Array=c("Float32Array"),o.float64Array=c("Float64Array"),o.bigInt64Array=c("BigInt64Array"),o.bigUint64Array=c("BigUint64Array"),o.arrayBuffer=c("ArrayBuffer"),o.sharedArrayBuffer=c("SharedArrayBuffer"),o.dataView=c("DataView"),o.enumCase=(m,E)=>Object.values(E).includes(m),o.directInstanceOf=(m,E)=>Object.getPrototypeOf(m)===E.prototype,o.urlInstance=m=>c("URL")(m),o.urlString=m=>{if(!o.string(m))return!1;try{return new URL(m),!0}catch{return!1}},o.truthy=m=>Boolean(m),o.falsy=m=>!m,o.nan=m=>Number.isNaN(m),o.primitive=m=>o.null_(m)||r(typeof m),o.integer=m=>Number.isInteger(m),o.safeInteger=m=>Number.isSafeInteger(m),o.plainObject=m=>{if(h.call(m)!=="[object Object]")return!1;let E=Object.getPrototypeOf(m);return E===null||E===Object.getPrototypeOf({})},o.typedArray=m=>i(u(m));var g=m=>o.safeInteger(m)&&m>=0;o.arrayLike=m=>!o.nullOrUndefined(m)&&!o.function_(m)&&g(m.length),o.inRange=(m,E)=>{if(o.number(E))return m>=Math.min(0,E)&&m<=Math.max(E,0);if(o.array(E)&&E.length===2)return m>=Math.min(...E)&&m<=Math.max(...E);throw new TypeError(`Invalid range: ${JSON.stringify(E)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];o.domElement=m=>o.object(m)&&m.nodeType===b&&o.string(m.nodeName)&&!o.plainObject(m)&&_.every(E=>E in m),o.observable=m=>{var E,S,A,k;return m?m===((S=(E=m)[Symbol.observable])===null||S===void 0?void 0:S.call(E))||m===((k=(A=m)["@@observable"])===null||k===void 0?void 0:k.call(A)):!1},o.nodeStream=m=>o.object(m)&&o.function_(m.pipe)&&!o.observable(m),o.infinite=m=>m===1/0||m===-1/0;var y=m=>E=>o.integer(E)&&Math.abs(E%2)===m;o.evenInteger=y(0),o.oddInteger=y(1),o.emptyArray=m=>o.array(m)&&m.length===0,o.nonEmptyArray=m=>o.array(m)&&m.length>0,o.emptyString=m=>o.string(m)&&m.length===0;var D=m=>o.string(m)&&!/\S/.test(m);o.emptyStringOrWhitespace=m=>o.emptyString(m)||D(m),o.nonEmptyString=m=>o.string(m)&&m.length>0,o.nonEmptyStringAndNotWhitespace=m=>o.string(m)&&!o.emptyStringOrWhitespace(m),o.emptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length===0,o.nonEmptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length>0,o.emptySet=m=>o.set(m)&&m.size===0,o.nonEmptySet=m=>o.set(m)&&m.size>0,o.emptyMap=m=>o.map(m)&&m.size===0,o.nonEmptyMap=m=>o.map(m)&&m.size>0,o.propertyKey=m=>o.any([o.string,o.number,o.symbol],m),o.formData=m=>c("FormData")(m),o.urlSearchParams=m=>c("URLSearchParams")(m);var w=(m,E,S)=>{if(!o.function_(E))throw new TypeError(`Invalid predicate: ${JSON.stringify(E)}`);if(S.length===0)throw new TypeError("Invalid number of values");return m.call(S,E)};o.any=(m,...E)=>(o.array(m)?m:[m]).some(S=>w(Array.prototype.some,S,E)),o.all=(m,...E)=>w(Array.prototype.every,m,E);var v=(m,E,S,A={})=>{if(!m){let{multipleValues:k}=A,L=k?`received values of types ${[...new Set(S.map(T=>`\`${o(T)}\``))].join(", ")}`:`received value of type \`${o(S)}\``;throw new TypeError(`Expected value which is \`${E}\`, ${L}.`)}};e.assert={undefined:m=>v(o.undefined(m),"undefined",m),string:m=>v(o.string(m),"string",m),number:m=>v(o.number(m),"number",m),bigint:m=>v(o.bigint(m),"bigint",m),function_:m=>v(o.function_(m),"Function",m),null_:m=>v(o.null_(m),"null",m),class_:m=>v(o.class_(m),"Class",m),boolean:m=>v(o.boolean(m),"boolean",m),symbol:m=>v(o.symbol(m),"symbol",m),numericString:m=>v(o.numericString(m),"string with a number",m),array:(m,E)=>{v(o.array(m),"Array",m),E&&m.forEach(E)},buffer:m=>v(o.buffer(m),"Buffer",m),blob:m=>v(o.blob(m),"Blob",m),nullOrUndefined:m=>v(o.nullOrUndefined(m),"null or undefined",m),object:m=>v(o.object(m),"Object",m),iterable:m=>v(o.iterable(m),"Iterable",m),asyncIterable:m=>v(o.asyncIterable(m),"AsyncIterable",m),generator:m=>v(o.generator(m),"Generator",m),asyncGenerator:m=>v(o.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(o.nativePromise(m),"native Promise",m),promise:m=>v(o.promise(m),"Promise",m),generatorFunction:m=>v(o.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(o.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(o.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(o.boundFunction(m),"Function",m),regExp:m=>v(o.regExp(m),"RegExp",m),date:m=>v(o.date(m),"Date",m),error:m=>v(o.error(m),"Error",m),map:m=>v(o.map(m),"Map",m),set:m=>v(o.set(m),"Set",m),weakMap:m=>v(o.weakMap(m),"WeakMap",m),weakSet:m=>v(o.weakSet(m),"WeakSet",m),int8Array:m=>v(o.int8Array(m),"Int8Array",m),uint8Array:m=>v(o.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(o.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(o.int16Array(m),"Int16Array",m),uint16Array:m=>v(o.uint16Array(m),"Uint16Array",m),int32Array:m=>v(o.int32Array(m),"Int32Array",m),uint32Array:m=>v(o.uint32Array(m),"Uint32Array",m),float32Array:m=>v(o.float32Array(m),"Float32Array",m),float64Array:m=>v(o.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(o.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(o.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(o.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(o.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(o.dataView(m),"DataView",m),enumCase:(m,E)=>v(o.enumCase(m,E),"EnumCase",m),urlInstance:m=>v(o.urlInstance(m),"URL",m),urlString:m=>v(o.urlString(m),"string with a URL",m),truthy:m=>v(o.truthy(m),"truthy",m),falsy:m=>v(o.falsy(m),"falsy",m),nan:m=>v(o.nan(m),"NaN",m),primitive:m=>v(o.primitive(m),"primitive",m),integer:m=>v(o.integer(m),"integer",m),safeInteger:m=>v(o.safeInteger(m),"integer",m),plainObject:m=>v(o.plainObject(m),"plain object",m),typedArray:m=>v(o.typedArray(m),"TypedArray",m),arrayLike:m=>v(o.arrayLike(m),"array-like",m),domElement:m=>v(o.domElement(m),"HTMLElement",m),observable:m=>v(o.observable(m),"Observable",m),nodeStream:m=>v(o.nodeStream(m),"Node.js Stream",m),infinite:m=>v(o.infinite(m),"infinite number",m),emptyArray:m=>v(o.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(o.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(o.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(o.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(o.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(o.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(o.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(o.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(o.emptySet(m),"empty set",m),nonEmptySet:m=>v(o.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(o.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(o.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(o.propertyKey(m),"PropertyKey",m),formData:m=>v(o.formData(m),"FormData",m),urlSearchParams:m=>v(o.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(o.evenInteger(m),"even integer",m),oddInteger:m=>v(o.oddInteger(m),"odd integer",m),directInstanceOf:(m,E)=>v(o.directInstanceOf(m,E),"T",m),inRange:(m,E)=>v(o.inRange(m,E),"in range",m),any:(m,...E)=>v(o.any(m,...E),"predicate returns truthy for any value",E,{multipleValues:!0}),all:(m,...E)=>v(o.all(m,...E),"predicate returns truthy for all values",E,{multipleValues:!0})},Object.defineProperties(o,{class:{value:o.class_},function:{value:o.function_},null:{value:o.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=o,l.exports=o,l.exports.default=o,l.exports.assert=e.assert}),go=M((e,l)=>{"use strict";B();var n=class extends Error{constructor(s){super(s||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},i=class{static fn(s){return(...f)=>new i((a,r,t)=>{f.push(t),s(...f).then(a,r)})}constructor(s){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((f,a)=>{this._reject=a;let r=u=>{(!this._isCanceled||!h.shouldReject)&&(this._isPending=!1,f(u))},t=u=>{this._isPending=!1,a(u)},h=u=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(u)};return Object.defineProperties(h,{shouldReject:{get:()=>this._rejectOnCancel,set:u=>{this._rejectOnCancel=u}}}),s(r,t,h)})}then(s,f){return this._promise.then(s,f)}catch(s){return this._promise.catch(s)}finally(s){return this._promise.finally(s)}cancel(s){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let f of this._cancelHandlers)f()}catch(f){this._reject(f);return}this._rejectOnCancel&&this._reject(new n(s))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(i.prototype,Promise.prototype),l.exports=i,l.exports.CancelError=n}),bo=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function n(s){return s.encrypted}var i=(s,f)=>{let a;typeof f=="function"?a={connect:f}:a=f;let r=typeof a.connect=="function",t=typeof a.secureConnect=="function",h=typeof a.close=="function",u=()=>{r&&a.connect(),n(s)&&t&&(s.authorized?a.secureConnect():s.authorizationError||s.once("secureConnect",a.secureConnect)),h&&s.once("close",a.close)};s.writable&&!s.connecting?u():s.connecting?s.once("connect",u):s.destroyed&&h&&a.close(s._hadError)};e.default=i,l.exports=i,l.exports.default=i}),vo=M((e,l)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=bo(),i=Z("util"),s=Number(process.versions.node.split(".")[0]),f=a=>{if(a.timings)return a.timings;let r={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=r;let t=o=>{let d=o.emit.bind(o);o.emit=(p,...g)=>(p==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,o.emit=d),d(p,...g))};t(a);let h=()=>{r.abort=Date.now(),(!r.response||s>=13)&&(r.phases.total=Date.now()-r.start)};a.prependOnceListener("abort",h);let u=o=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,i.types.isProxy(o))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};o.prependOnceListener("lookup",d),n.default(o,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(o.removeListener("lookup",d),r.lookup=r.connect,r.phases.dns=r.lookup-r.socket),r.phases.tcp=r.connect-r.lookup},secureConnect:()=>{r.secureConnect=Date.now(),r.phases.tls=r.secureConnect-r.connect}})};a.socket?u(a.socket):a.prependOnceListener("socket",u);let c=()=>{var o;r.upload=Date.now(),r.phases.request=r.upload-((o=r.secureConnect)!==null&&o!==void 0?o:r.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?c():a.prependOnceListener("finish",c),a.prependOnceListener("response",o=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,o.timings=r,t(o),o.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),o.prependOnceListener("aborted",h)}),r};e.default=f,l.exports=f,l.exports.default=f}),_o=M((e,l)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:i,ALL:s,promises:{Resolver:f},lookup:a}=Z("dns"),{promisify:r}=Z("util"),t=Z("os"),h=Symbol("cacheableLookupCreateConnection"),u=Symbol("cacheableLookupInstance"),c=Symbol("expires"),o=typeof s=="number",d=w=>{if(!(w&&typeof w.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=w=>{for(let v of w)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},g=()=>{let w=!1,v=!1;for(let m of Object.values(t.networkInterfaces()))for(let E of m)if(!E.internal&&(E.family==="IPv6"?v=!0:w=!0,w&&v))return{has4:w,has6:v};return{has4:w,has6:v}},b=w=>Symbol.iterator in w,_={ttl:!0},y={all:!0},D=class{constructor({cache:w=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:E=.15,resolver:S=new f,lookup:A=a}={}){if(this.maxTtl=v,this.errorTtl=E,this._cache=w,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof f?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r(this._resolver.resolve6.bind(this._resolver))),this._iface=g(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let k=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);k.unref&&k.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(w){this.clear(),this._resolver.setServers(w)}get servers(){return this._resolver.getServers()}lookup(w,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(w,v).then(E=>{v.all?m(null,E):m(null,E.address,E.family,E.expires,E.ttl)},m)}async lookupAsync(w,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(w);if(v.family===6){let E=m.filter(S=>S.family===6);v.hints&n&&(o&&v.hints&s||E.length===0)?p(m):m=E}else v.family===4&&(m=m.filter(E=>E.family===4));if(v.hints&i){let{_iface:E}=this;m=m.filter(S=>S.family===6?E.has6:E.has4)}if(m.length===0){let E=new Error(`cacheableLookup ENOTFOUND ${w}`);throw E.code="ENOTFOUND",E.hostname=w,E}return v.all?m:m[0]}async query(w){let v=await this._cache.get(w);if(!v){let m=this._pending[w];if(m)v=await m;else{let E=this.queryAndCache(w);this._pending[w]=E;try{v=await E}finally{delete this._pending[w]}}}return v=v.map(m=>({...m})),v}async _resolve(w){let v=async T=>{try{return await T}catch(x){if(x.code==="ENODATA"||x.code==="ENOTFOUND")return[];throw x}},[m,E]=await Promise.all([this._resolve4(w,_),this._resolve6(w,_)].map(T=>v(T))),S=0,A=0,k=0,L=Date.now();for(let T of m)T.family=4,T.expires=L+T.ttl*1e3,S=Math.max(S,T.ttl);for(let T of E)T.family=6,T.expires=L+T.ttl*1e3,A=Math.max(A,T.ttl);return m.length>0?E.length>0?k=Math.min(S,A):k=S:k=A,{entries:[...m,...E],cacheTtl:k}}async _lookup(w){try{return{entries:await this._dnsLookup(w,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(w,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[c]=Date.now()+m;try{await this._cache.set(w,v,m)}catch(E){this.lookupAsync=async()=>{let S=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw S.cause=E,S}}b(this._cache)&&this._tick(m)}}async queryAndCache(w){if(this._hostnamesToFallback.has(w))return this._dnsLookup(w,y);let v=await this._resolve(w);v.entries.length===0&&this._fallback&&(v=await this._lookup(w),v.entries.length!==0&&this._hostnamesToFallback.add(w));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(w,v.entries,m),v.entries}_tick(w){let v=this._nextRemovalTime;(!v||w<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=w,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,E=Date.now();for(let[S,A]of this._cache){let k=A[c];E>=k?this._cache.delete(S):k<m&&(m=k)}m!==1/0&&this._tick(m-E)},w),this._removalTimeout.unref&&this._removalTimeout.unref())}install(w){if(d(w),h in w)throw new Error("CacheableLookup has been already installed");w[h]=w.createConnection,w[u]=this,w.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),w[h](v,m))}uninstall(w){if(d(w),w[h]){if(w[u]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");w.createConnection=w[h],delete w[h],delete w[u]}}updateInterfaceInfo(){let{_iface:w}=this;this._iface=g(),(w.has4&&!this._iface.has4||w.has6&&!this._iface.has6)&&this._cache.clear()}clear(w){if(w){this._cache.delete(w);return}this._cache.clear()}};l.exports=D,l.exports.default=D}),Eo=M((e,l)=>{"use strict";B();var n="text/plain",i="us-ascii",s=(r,t)=>t.some(h=>h instanceof RegExp?h.test(r):h===r),f=(r,{stripHash:t})=>{let h=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!h)throw new Error(`Invalid URL: ${r}`);let{type:u,data:c,hash:o}=h.groups,d=u.split(";");o=t?"":o;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let g=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[y,D=""]=_.split("=").map(w=>w.trim());return y==="charset"&&(D=D.toLowerCase(),D===i)?"":`${y}${D?`=${D}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||g&&g!==n)&&b.unshift(g),`data:${b.join(";")},${p?c.trim():c}${o?`#${o}`:""}`},a=(r,t)=>{if(t={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,...t},r=r.trim(),/^data:/i.test(r))return f(r,t);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let h=r.startsWith("//");!h&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let u=new URL(r);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&u.protocol==="https:"&&(u.protocol="http:"),t.forceHttps&&u.protocol==="http:"&&(u.protocol="https:"),t.stripAuthentication&&(u.username="",u.password=""),t.stripHash?u.hash="":t.stripTextFragment&&(u.hash=u.hash.replace(/#?:~:text.*?$/i,"")),u.pathname&&(u.pathname=u.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),u.pathname)try{u.pathname=decodeURI(u.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=u.pathname.split("/"),d=o[o.length-1];s(d,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),u.pathname=o.slice(1).join("/")+"/")}if(u.hostname&&(u.hostname=u.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(u.hostname)&&(u.hostname=u.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...u.searchParams.keys()])s(o,t.removeQueryParameters)&&u.searchParams.delete(o);t.removeQueryParameters===!0&&(u.search=""),t.sortQueryParameters&&u.searchParams.sort(),t.removeTrailingSlash&&(u.pathname=u.pathname.replace(/\/$/,""));let c=r;return r=u.toString(),!t.removeSingleSlash&&u.pathname==="/"&&!c.endsWith("/")&&u.hash===""&&(r=r.replace(/\/$/,"")),(t.removeTrailingSlash||u.pathname==="/")&&u.hash===""&&t.removeSingleSlash&&(r=r.replace(/\/$/,"")),h&&!t.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),t.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};l.exports=a}),wo=M((e,l)=>{B(),l.exports=n;function n(i,s){if(i&&s)return n(i)(s);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach(function(a){f[a]=i[a]}),f;function f(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];var t=i.apply(this,a),h=a[a.length-1];return typeof t=="function"&&t!==h&&Object.keys(h).forEach(function(u){t[u]=h[u]}),t}}}),un=M((e,l)=>{B();var n=wo();l.exports=n(i),l.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(f){var a=function(){return a.called?a.value:(a.called=!0,a.value=f.apply(this,arguments))};return a.called=!1,a}function s(f){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=f.apply(this,arguments)},r=f.name||"Function wrapped with `once`";return a.onceError=r+" shouldn't be called more than once",a.called=!1,a}}),Do=M((e,l)=>{B();var n=un(),i=function(){},s=function(r){return r.setHeader&&typeof r.abort=="function"},f=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},a=function(r,t,h){if(typeof t=="function")return a(r,null,t);t||(t={}),h=n(h||i);var u=r._writableState,c=r._readableState,o=t.readable||t.readable!==!1&&r.readable,d=t.writable||t.writable!==!1&&r.writable,p=!1,g=function(){r.writable||b()},b=function(){d=!1,o||h.call(r)},_=function(){o=!1,d||h.call(r)},y=function(E){h.call(r,E?new Error("exited with error code: "+E):null)},D=function(E){h.call(r,E)},w=function(){process.nextTick(v)},v=function(){if(!p){if(o&&!(c&&c.ended&&!c.destroyed))return h.call(r,new Error("premature close"));if(d&&!(u&&u.ended&&!u.destroyed))return h.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return s(r)?(r.on("complete",b),r.on("abort",w),r.req?m():r.on("request",m)):d&&!u&&(r.on("end",g),r.on("close",g)),f(r)&&r.on("exit",y),r.on("end",_),r.on("finish",b),t.error!==!1&&r.on("error",D),r.on("close",w),function(){p=!0,r.removeListener("complete",b),r.removeListener("abort",w),r.removeListener("request",m),r.req&&r.req.removeListener("finish",b),r.removeListener("end",g),r.removeListener("close",g),r.removeListener("finish",b),r.removeListener("exit",y),r.removeListener("end",_),r.removeListener("error",D),r.removeListener("close",w)}};l.exports=a}),So=M((e,l)=>{B();var n=un(),i=Do(),s=Z("fs"),f=function(){},a=/^v?\.0/.test(process.version),r=function(p){return typeof p=="function"},t=function(p){return!a||!s?!1:(p instanceof(s.ReadStream||f)||p instanceof(s.WriteStream||f))&&r(p.close)},h=function(p){return p.setHeader&&r(p.abort)},u=function(p,g,b,_){_=n(_);var y=!1;p.on("close",function(){y=!0}),i(p,{readable:g,writable:b},function(w){if(w)return _(w);y=!0,_()});var D=!1;return function(w){if(!y&&!D){if(D=!0,t(p))return p.close(f);if(h(p))return p.abort();if(r(p.destroy))return p.destroy();_(w||new Error("stream was destroyed"))}}},c=function(p){p()},o=function(p,g){return p.pipe(g)},d=function(){var p=Array.prototype.slice.call(arguments),g=r(p[p.length-1]||f)&&p.pop()||f;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(y,D){var w=D<p.length-1,v=D>0;return u(y,w,v,function(m){b||(b=m),m&&_.forEach(c),!w&&(_.forEach(c),g(b))})});return p.reduce(o)};l.exports=d}),Ao=M((e,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=i=>{i={...i};let{array:s}=i,{encoding:f}=i,a=f==="buffer",r=!1;s?r=!(f||a):f=f||"utf8",a&&(f=null);let t=new n({objectMode:r});f&&t.setEncoding(f);let h=0,u=[];return t.on("data",c=>{u.push(c),r?h=u.length:h+=c.length}),t.getBufferedValue=()=>s?u:a?Buffer.concat(u,h):u.join(""),t.getBufferedLength=()=>h,t}}),Co=M((e,l)=>{"use strict";B();var{constants:n}=Z("buffer"),i=So(),s=Ao(),f=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(r,t){if(!r)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:h}=t,u;return await new Promise((c,o)=>{let d=p=>{p&&u.getBufferedLength()<=n.MAX_LENGTH&&(p.bufferedData=u.getBufferedValue()),o(p)};u=i(r,s(t),p=>{if(p){d(p);return}c()}),u.on("data",()=>{u.getBufferedLength()>h&&d(new f)})}),u.getBufferedValue()}l.exports=a,l.exports.default=a,l.exports.buffer=(r,t)=>a(r,{...t,encoding:"buffer"}),l.exports.array=(r,t)=>a(r,{...t,array:!0}),l.exports.MaxBufferError=f}),ko=M((e,l)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),i=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),s=new Set([500,502,503,504]),f={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 r(c){let o=parseInt(c,10);return isFinite(o)?o:0}function t(c){return c?s.has(c.status):!0}function h(c){let o={};if(!c)return o;let d=c.trim().split(/,/);for(let p of d){let[g,b]=p.split(/=/,2);o[g.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return o}function u(c){let o=[];for(let d in c){let p=c[d];o.push(p===!0?d:d+"="+p)}if(o.length)return o.join(", ")}l.exports=class{constructor(c,o,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:g,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!o||!o.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(c),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=g!==void 0?g:24*3600*1e3,this._status="status"in o?o.status:200,this._resHeaders=o.headers,this._rescc=h(o.headers["cache-control"]),this._method="method"in c?c.method:"GET",this._url=c.url,this._host=c.headers.host,this._noAuthorization=!c.headers.authorization,this._reqHeaders=o.headers.vary?c.headers:null,this._reqcc=h(c.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":u(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),o.headers["cache-control"]==null&&/no-cache/.test(o.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())&&i.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||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(c){if(!c||!c.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(c){this._assertRequestHasHeaders(c);let o=h(c.headers["cache-control"]);return o["no-cache"]||/no-cache/.test(c.headers.pragma)||o["max-age"]&&this.age()>o["max-age"]||o["min-fresh"]&&this.timeToLive()<1e3*o["min-fresh"]||this.stale()&&!(o["max-stale"]&&!this._rescc["must-revalidate"]&&(o["max-stale"]===!0||o["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(c,!1)}_requestMatches(c,o){return(!this._url||this._url===c.url)&&this._host===c.headers.host&&(!c.method||this._method===c.method||o&&c.method==="HEAD")&&this._varyMatches(c)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(c){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let o=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of o)if(c.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(c){let o={};for(let d in c)f[d]||(o[d]=c[d]);if(c.connection){let d=c.connection.trim().split(/\s*,\s*/);for(let p of d)delete o[p]}if(o.warning){let d=o.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?o.warning=d.join(",").trim():delete o.warning}return o}responseHeaders(){let c=this._copyWithoutHopByHopHeaders(this._resHeaders),o=this.age();return o>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(c.warning=(c.warning?`${c.warning}, `:"")+'113 - "rfc7234 5.5.4"'),c.age=`${Math.round(o)}`,c.date=new Date(this.now()).toUTCString(),c}date(){let c=Date.parse(this._resHeaders.date);return isFinite(c)?c:this._responseTime}age(){let c=this._ageValue(),o=(this.now()-this._responseTime)/1e3;return c+o}_ageValue(){return r(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 r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);let c=this._rescc.immutable?this._immutableMinTtl:0,o=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<o?0:Math.max(c,(d-o)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&o>d)return Math.max(c,(o-d)/1e3*this._cacheHeuristic)}return c}timeToLive(){let c=this.maxAge()-this.age(),o=c+r(this._rescc["stale-if-error"]),d=c+r(this._rescc["stale-while-revalidate"]);return Math.max(0,c,o,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(c){return new this(void 0,void 0,{_fromObject:c})}_fromObject(c){if(this._responseTime)throw Error("Reinitialized");if(!c||c.v!==1)throw Error("Invalid serialization");this._responseTime=c.t,this._isShared=c.sh,this._cacheHeuristic=c.ch,this._immutableMinTtl=c.imm!==void 0?c.imm:24*3600*1e3,this._status=c.st,this._resHeaders=c.resh,this._rescc=c.rescc,this._method=c.m,this._url=c.u,this._host=c.h,this._noAuthorization=c.a,this._reqHeaders=c.reqh,this._reqcc=c.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(c){this._assertRequestHasHeaders(c);let o=this._copyWithoutHopByHopHeaders(c.headers);if(delete o["if-range"],!this._requestMatches(c,!0)||!this.storable())return delete o["if-none-match"],delete o["if-modified-since"],o;if(this._resHeaders.etag&&(o["if-none-match"]=o["if-none-match"]?`${o["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),o["accept-ranges"]||o["if-match"]||o["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete o["if-modified-since"],o["if-none-match"]){let d=o["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?o["if-none-match"]=d.join(",").trim():delete o["if-none-match"]}}else this._resHeaders["last-modified"]&&!o["if-modified-since"]&&(o["if-modified-since"]=this._resHeaders["last-modified"]);return o}revalidatedPolicy(c,o){if(this._assertRequestHasHeaders(c),this._useStaleIfError()&&t(o))return{modified:!1,matches:!1,policy:this};if(!o||!o.headers)throw Error("Response headers missing");let d=!1;if(o.status!==void 0&&o.status!=304?d=!1:o.headers.etag&&!/^\s*W\//.test(o.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag:this._resHeaders.etag&&o.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===o.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!o.headers.etag&&!o.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(c,o),modified:o.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in o.headers&&!a[b]?o.headers[b]:this._resHeaders[b];let g=Object.assign({},o,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(c,g,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),cr=M((e,l)=>{"use strict";B(),l.exports=n=>{let i={};for(let[s,f]of Object.entries(n))i[s.toLowerCase()]=f;return i}}),xo=M((e,l)=>{"use strict";B();var n=Z("stream").Readable,i=cr(),s=class extends n{constructor(f,a,r,t){if(typeof f!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof t!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=f,this.headers=i(a),this.body=r,this.url=t}_read(){this.push(this.body),this.push(null)}};l.exports=s}),Fo=M((e,l)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];l.exports=(i,s)=>{let f=new Set(Object.keys(i).concat(n));for(let a of f)a in s||(s[a]=typeof i[a]=="function"?i[a].bind(i):i[a])}}),Oo=M((e,l)=>{"use strict";B();var n=Z("stream").PassThrough,i=Fo(),s=f=>{if(!(f&&f.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new n;return i(f,a),f.pipe(a)};l.exports=s}),Ro=M(e=>{B(),e.stringify=function l(n){if(typeof n>"u")return n;if(n&&Buffer.isBuffer(n))return JSON.stringify(":base64:"+n.toString("base64"));if(n&&n.toJSON&&(n=n.toJSON()),n&&typeof n=="object"){var i="",s=Array.isArray(n);i=s?"[":"{";var f=!0;for(var a in n){var r=typeof n[a]=="function"||!s&&typeof n[a]>"u";Object.hasOwnProperty.call(n,a)&&!r&&(f||(i+=","),f=!1,s?n[a]==null?i+="null":i+=l(n[a]):n[a]!==void 0&&(i+=l(a)+":"+l(n[a])))}return i+=s?"]":"}",i}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},e.parse=function(l){return JSON.parse(l,function(n,i){return typeof i=="string"?/^:base64:/.test(i)?Buffer.from(i.substring(8),"base64"):/^:/.test(i)?i.substring(1):i:i})}}),To=M((e,l)=>{"use strict";B();var n=Z("events"),i=Ro(),s=r=>{let t={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(r.adapter||r.uri){let h=r.adapter||/^[^:+]*/.exec(r.uri)[0];return new(Z(t[h]))(r)}return new Map},f=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends n{constructor(r,{emitErrors:t=!0,...h}={}){if(super(),this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof r=="string"?{uri:r}:r,...h},!this.opts.store){let c={...this.opts};this.opts.store=s(c)}if(this.opts.compression){let c=this.opts.compression;this.opts.serialize=c.serialize.bind(c),this.opts.deserialize=c.deserialize.bind(c)}typeof this.opts.store.on=="function"&&t&&this.opts.store.on("error",c=>this.emit("error",c)),this.opts.store.namespace=this.opts.namespace;let u=c=>async function*(){for await(let[o,d]of typeof c=="function"?c(this.opts.store.namespace):c){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=u(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=u(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return f.includes(this.opts.store.opts.dialect)||f.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(t=>`${this.opts.namespace}:${t}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,t){let{store:h}=this.opts,u=Array.isArray(r),c=u?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(u&&h.getMany===void 0){let o=[];for(let d of c)o.push(Promise.resolve().then(()=>h.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(()=>{}):t&&t.raw?p:p.value}));return Promise.allSettled(o).then(d=>{let p=[];for(let g of d)p.push(g.value);return p})}return Promise.resolve().then(()=>u?h.getMany(c):h.get(c)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(u){let d=[];for(let p of o){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(r).then(()=>{}),d.push(void 0)):d.push(t&&t.raw?p:p.value)}return d}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(r).then(()=>{}):t&&t.raw?o:o.value}})}set(r,t,h){let u=this._getKeyPrefix(r);typeof h>"u"&&(h=this.opts.ttl),h===0&&(h=void 0);let{store:c}=this.opts;return Promise.resolve().then(()=>{let o=typeof h=="number"?Date.now()+h:null;return typeof t=="symbol"&&this.emit("error","symbol cannot be serialized"),t={value:t,expires:o},this.opts.serialize(t)}).then(o=>c.set(u,o,h)).then(()=>!0)}delete(r){let{store:t}=this.opts;if(Array.isArray(r)){let u=this._getKeyPrefixArray(r);if(t.deleteMany===void 0){let c=[];for(let o of u)c.push(t.delete(o));return Promise.allSettled(c).then(o=>o.every(d=>d.value===!0))}return Promise.resolve().then(()=>t.deleteMany(u))}let h=this._getKeyPrefix(r);return Promise.resolve().then(()=>t.delete(h))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let t=this._getKeyPrefix(r),{store:h}=this.opts;return Promise.resolve().then(async()=>typeof h.has=="function"?h.has(t):await h.get(t)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};l.exports=a}),Bo=M((e,l)=>{"use strict";B();var n=Z("events"),i=Z("url"),s=Eo(),f=Co(),a=ko(),r=xo(),t=cr(),h=Oo(),u=To(),c=class{constructor(p,g){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new u({uri:typeof g=="string"&&g,store:typeof g!="string"&&g,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(g,b)=>{let _;if(typeof g=="string")_=d(i.parse(g)),g={};else if(g instanceof i.URL)_=d(i.parse(g.toString())),g={};else{let[S,...A]=(g.path||"").split("?"),k=A.length>0?`?${A.join("?")}`:"";_=d({...g,pathname:S,search:k})}g={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...g,...o(_)},g.headers=t(g.headers);let y=new n,D=s(i.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),w=`${g.method}:${D}`,v=!1,m=!1,E=S=>{m=!0;let A=!1,k,L=new Promise(x=>{k=()=>{A||(A=!0,x())}}),T=x=>{if(v&&!S.forceRefresh){x.status=x.statusCode;let I=a.fromObject(v.cachePolicy).revalidatedPolicy(S,x);if(!I.modified){let $=I.policy.responseHeaders();x=new r(v.statusCode,$,v.body,v.url),x.cachePolicy=I.policy,x.fromCache=!0}}x.fromCache||(x.cachePolicy=new a(S,x,S),x.fromCache=!1);let O;S.cache&&x.cachePolicy.storable()?(O=h(x),(async()=>{try{let I=f.buffer(x);if(await Promise.race([L,new Promise(W=>x.once("end",W))]),A)return;let $=await I,R={cachePolicy:x.cachePolicy.toObject(),url:x.url,statusCode:x.fromCache?v.statusCode:x.statusCode,body:$},G=S.strictTtl?x.cachePolicy.timeToLive():void 0;S.maxTtl&&(G=G?Math.min(G,S.maxTtl):S.maxTtl),await this.cache.set(w,R,G)}catch(I){y.emit("error",new c.CacheError(I))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(w)}catch(I){y.emit("error",new c.CacheError(I))}})(),y.emit("response",O||x),typeof b=="function"&&b(O||x)};try{let x=p(S,T);x.once("error",k),x.once("abort",k),y.emit("request",x)}catch(x){y.emit("error",new c.RequestError(x))}};return(async()=>{let S=async k=>{await Promise.resolve();let L=k.cache?await this.cache.get(w):void 0;if(typeof L>"u")return E(k);let T=a.fromObject(L.cachePolicy);if(T.satisfiesWithoutRevalidation(k)&&!k.forceRefresh){let x=T.responseHeaders(),O=new r(L.statusCode,x,L.body,L.url);O.cachePolicy=T,O.fromCache=!0,y.emit("response",O),typeof b=="function"&&b(O)}else v=L,k.headers=T.revalidationHeaders(k),E(k)},A=k=>y.emit("error",new c.CacheError(k));this.cache.once("error",A),y.on("response",()=>this.cache.removeListener("error",A));try{await S(g)}catch(k){g.automaticFailover&&!m&&E(g),y.emit("error",new c.CacheError(k))}})(),y}}};function o(p){let g={...p};return g.path=`${p.pathname||"/"}${p.search||""}`,delete g.pathname,delete g.search,g}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}}c.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},c.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},l.exports=c}),Po=M((e,l)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];l.exports=(i,s)=>{if(s._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let f=new Set(Object.keys(i).concat(n)),a={};for(let r of f)r in s||(a[r]={get(){let t=i[r];return typeof t=="function"?t.bind(i):t},set(t){i[r]=t},enumerable:!0,configurable:!1});return Object.defineProperties(s,a),i.once("aborted",()=>{s.destroy(),s.emit("aborted")}),i.once("close",()=>{i.complete&&s.readable?s.once("end",()=>{s.emit("close")}):s.emit("close")}),s}}),Lo=M((e,l)=>{"use strict";B();var{Transform:n,PassThrough:i}=Z("stream"),s=Z("zlib"),f=Po();l.exports=a=>{let r=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return a;let t=r==="br";if(t&&typeof s.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let h=!0,u=new n({transform(d,p,g){h=!1,g(null,d)},flush(d){d()}}),c=new i({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),o=t?s.createBrotliDecompress():s.createUnzip();return o.once("error",d=>{if(h&&!a.readable){c.end();return}c.destroy(d)}),f(a,c),a.pipe(u).pipe(o).pipe(c),c}}),ln=M((e,l)=>{"use strict";B();var n=class{constructor(i={}){if(!(i.maxSize&&i.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=i.maxSize,this.onEviction=i.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(i,s){if(this.cache.set(i,s),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[f,a]of this.oldCache.entries())this.onEviction(f,a);this.oldCache=this.cache,this.cache=new Map}}get(i){if(this.cache.has(i))return this.cache.get(i);if(this.oldCache.has(i)){let s=this.oldCache.get(i);return this.oldCache.delete(i),this._set(i,s),s}}set(i,s){return this.cache.has(i)?this.cache.set(i,s):this._set(i,s),this}has(i){return this.cache.has(i)||this.oldCache.has(i)}peek(i){if(this.cache.has(i))return this.cache.get(i);if(this.oldCache.has(i))return this.oldCache.get(i)}delete(i){let s=this.cache.delete(i);return s&&this._size--,this.oldCache.delete(i)||s}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[i]of this)yield i}*values(){for(let[,i]of this)yield i}*[Symbol.iterator](){for(let i of this.cache)yield i;for(let i of this.oldCache){let[s]=i;this.cache.has(s)||(yield i)}}get size(){let i=0;for(let s of this.oldCache.keys())this.cache.has(s)||i++;return Math.min(this._size+i,this.maxSize)}};l.exports=n}),cn=M((e,l)=>{"use strict";B();var n=Z("events"),i=Z("tls"),s=Z("http2"),f=ln(),a=Symbol("currentStreamsCount"),r=Symbol("request"),t=Symbol("cachedOriginSet"),h=Symbol("gracefullyClosing"),u=["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"],c=(y,D,w)=>{let v=0,m=y.length;for(;v<m;){let E=v+m>>>1;w(y[E],D)?v=E+1:m=E}return v},o=(y,D)=>y.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(y,D)=>{for(let w of y)w[t].length<D[t].length&&w[t].every(v=>D[t].includes(v))&&w[a]+D[a]<=D.remoteSettings.maxConcurrentStreams&&b(w)},p=(y,D)=>{for(let w of y)D[t].length<w[t].length&&D[t].every(v=>w[t].includes(v))&&D[a]+w[a]<=w.remoteSettings.maxConcurrentStreams&&b(D)},g=({agent:y,isFree:D})=>{let w={};for(let v in y.sessions){let m=y.sessions[v].filter(E=>{let S=E[_.kCurrentStreamsCount]<E.remoteSettings.maxConcurrentStreams;return D?S:!S});m.length!==0&&(w[v]=m)}return w},b=y=>{y[h]=!0,y[a]===0&&y.close()},_=class extends n{constructor({timeout:y=6e4,maxSessions:D=1/0,maxFreeSessions:w=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=y,this.maxSessions=D,this.maxFreeSessions=w,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new f({maxSize:v})}static normalizeOrigin(y,D){return typeof y=="string"&&(y=new URL(y)),D&&y.hostname!==D&&(y.hostname=D),y.origin}normalizeOptions(y){let D="";if(y)for(let w of u)y[w]&&(D+=`:${y[w]}`);return D}_tryToCreateNewSession(y,D){if(!(y in this.queue)||!(D in this.queue[y]))return;let w=this.queue[y][D];this._sessionsCount<this.maxSessions&&!w.completed&&(w.completed=!0,w())}getSession(y,D,w){return new Promise((v,m)=>{Array.isArray(w)?(w=[...w],v()):w=[{resolve:v,reject:m}];let E=this.normalizeOptions(D),S=_.normalizeOrigin(y,D&&D.servername);if(S===void 0){for(let{reject:L}of w)L(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(E in this.sessions){let L=this.sessions[E],T=-1,x=-1,O;for(let I of L){let $=I.remoteSettings.maxConcurrentStreams;if($<T)break;if(I[t].includes(S)){let R=I[a];if(R>=$||I[h]||I.destroyed)continue;O||(T=$),R>x&&(O=I,x=R)}}if(O){if(w.length!==1){for(let{reject:I}of w){let $=new Error(`Expected the length of listeners to be 1, got ${w.length}.
|
|
22
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);I($)}return}w[0].resolve(O);return}}if(E in this.queue){if(S in this.queue[E]){this.queue[E][S].listeners.push(...w),this._tryToCreateNewSession(E,S);return}}else this.queue[E]={};let A=()=>{E in this.queue&&this.queue[E][S]===k&&(delete this.queue[E][S],Object.keys(this.queue[E]).length===0&&delete this.queue[E])},k=()=>{let L=`${S}:${E}`,T=!1;try{let x=s.connect(y,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(L),...D});x[a]=0,x[h]=!1;let O=()=>x[a]<x.remoteSettings.maxConcurrentStreams,I=!0;x.socket.once("session",R=>{this.tlsSessionCache.set(L,R)}),x.once("error",R=>{for(let{reject:G}of w)G(R);this.tlsSessionCache.delete(L)}),x.setTimeout(this.timeout,()=>{x.destroy()}),x.once("close",()=>{if(T){I&&this._freeSessionsCount--,this._sessionsCount--;let R=this.sessions[E];R.splice(R.indexOf(x),1),R.length===0&&delete this.sessions[E]}else{let R=new Error("Session closed without receiving a SETTINGS frame");R.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:G}of w)G(R);A()}this._tryToCreateNewSession(E,S)});let $=()=>{if(!(!(E in this.queue)||!O())){for(let R of x[t])if(R in this.queue[E]){let{listeners:G}=this.queue[E][R];for(;G.length!==0&&O();)G.shift().resolve(x);let W=this.queue[E];if(W[R].listeners.length===0&&(delete W[R],Object.keys(W).length===0)){delete this.queue[E];break}if(!O())break}}};x.on("origin",()=>{x[t]=x.originSet,O()&&($(),d(this.sessions[E],x))}),x.once("remoteSettings",()=>{if(x.ref(),x.unref(),this._sessionsCount++,k.destroyed){let R=new Error("Agent has been destroyed");for(let G of w)G.reject(R);x.destroy();return}x[t]=x.originSet;{let R=this.sessions;if(E in R){let G=R[E];G.splice(c(G,x,o),0,x)}else R[E]=[x]}this._freeSessionsCount+=1,T=!0,this.emit("session",x),$(),A(),x[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&x.close(),w.length!==0&&(this.getSession(S,D,w),w.length=0),x.on("remoteSettings",()=>{$(),d(this.sessions[E],x)})}),x[r]=x.request,x.request=(R,G)=>{if(x[h])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=x[r](R,G);return x.ref(),++x[a],x[a]===x.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(I=O(),--x[a],!x.destroyed&&!x.closed&&(p(this.sessions[E],x),O()&&!x.closed)){I||(this._freeSessionsCount++,I=!0);let Q=x[a]===0;Q&&x.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||x[h])?x.close():(d(this.sessions[E],x),$())}}),W}}catch(x){for(let O of w)O.reject(x);A()}};k.listeners=w,k.completed=!1,k.destroyed=!1,this.queue[E][S]=k,this._tryToCreateNewSession(E,S)})}request(y,D,w,v){return new Promise((m,E)=>{this.getSession(y,D,[{reject:E,resolve:S=>{try{m(S.request(w,v))}catch(A){E(A)}}}])})}createConnection(y,D){return _.connect(y,D)}static connect(y,D){D.ALPNProtocols=["h2"];let w=y.port||443,v=y.hostname||y.host;return typeof D.servername>"u"&&(D.servername=v),i.connect(w,v,D)}closeFreeSessions(){for(let y of Object.values(this.sessions))for(let D of y)D[a]===0&&D.close()}destroy(y){for(let D of Object.values(this.sessions))for(let w of D)w.destroy(y);for(let D of Object.values(this.queue))for(let w of Object.values(D))w.destroyed=!0;this.queue={}}get freeSessions(){return g({agent:this,isFree:!0})}get busySessions(){return g({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=h,l.exports={Agent:_,globalAgent:new _}}),hn=M((e,l)=>{"use strict";B();var{Readable:n}=Z("stream"),i=class extends n{constructor(s,f){super({highWaterMark:f,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=s,this.connection=s,this._dumped=!1}_destroy(s){this.req._request.destroy(s)}setTimeout(s,f){return this.req.setTimeout(s,f),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};l.exports=i}),pn=M((e,l)=>{"use strict";B(),l.exports=n=>{let i={protocol:n.protocol,hostname:typeof n.hostname=="string"&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return typeof n.port=="string"&&n.port.length!==0&&(i.port=Number(n.port)),(n.username||n.password)&&(i.auth=`${n.username||""}:${n.password||""}`),i}}),Io=M((e,l)=>{"use strict";B(),l.exports=(n,i,s)=>{for(let f of s)n.on(f,(...a)=>i.emit(f,...a))}}),Mo=M((e,l)=>{"use strict";B(),l.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),jo=M((e,l)=>{"use strict";B();var n=(i,s,f)=>{l.exports[s]=class extends i{constructor(...a){super(typeof f=="string"?f:f(a)),this.name=`${super.name} [${s}]`,this.code=s}}};n(TypeError,"ERR_INVALID_ARG_TYPE",i=>{let s=i[0].includes(".")?"property":"argument",f=i[1],a=Array.isArray(f);return a&&(f=`${f.slice(0,-1).join(", ")} or ${f.slice(-1)}`),`The "${i[0]}" ${s} must be ${a?"one of":"of"} type ${f}. Received ${typeof i[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",i=>`Protocol "${i[0]}" not supported. Expected "${i[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",i=>`Cannot ${i[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",i=>`${i[0]} must be a valid HTTP token [${i[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",i=>`Invalid value "${i[0]} for header "${i[1]}"`),n(TypeError,"ERR_INVALID_CHAR",i=>`Invalid character in ${i[0]} [${i[1]}]`)}),fn=M((e,l)=>{"use strict";B();var n=Z("http2"),{Writable:i}=Z("stream"),{Agent:s,globalAgent:f}=cn(),a=hn(),r=pn(),t=Io(),h=Mo(),{ERR_INVALID_ARG_TYPE:u,ERR_INVALID_PROTOCOL:c,ERR_HTTP_HEADERS_SENT:o,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:g}=jo(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:y,HTTP2_METHOD_CONNECT:D}=n.constants,w=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),E=Symbol("options"),S=Symbol("flushedHeaders"),A=Symbol("jobs"),k=/^[\^`\-\w!#$%&*+.|~]+$/,L=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends i{constructor(x,O,I){super({autoDestroy:!1});let $=typeof x=="string"||x instanceof URL;if($&&(x=r(x instanceof URL?x:new URL(x))),typeof O=="function"||O===void 0?(I=O,O=$?x:{...x}):O={...x,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new s({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new s({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=f;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new u("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new c(O.protocol,"https:");let R=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,G=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:W}=O;if(O.timeout=void 0,this[w]=Object.create(null),this[A]=[],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[Q,P]of Object.entries(O.headers))this.setHeader(Q,P);O.auth&&!("authorization"in this[w])&&(this[w].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[E]=O,R===443?(this[v]=`https://${G}`,":authority"in this[w]||(this[w][":authority"]=G)):(this[v]=`https://${G}:${R}`,":authority"in this[w]||(this[w][":authority"]=`${G}:${R}`)),W&&this.setTimeout(W),I&&this.once("response",I),this[S]=!1}get method(){return this[w][_]}set method(x){x&&(this[w][_]=x.toUpperCase())}get path(){return this[w][y]}set path(x){x&&(this[w][y]=x)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(x,O,I){if(this._mustNotHaveABody){I(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let $=()=>this._request.write(x,O,I);this._request?$():this[A].push($)}_final(x){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){x();return}this._request.end(x)};this._request?O():this[A].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(x,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(x)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let x=this.method===D,O=I=>{if(this._request=I,this.destroyed){I.destroy();return}x||t(I,this,["timeout","continue","close","error"]);let $=G=>(...W)=>{!this.writable&&!this.destroyed?G(...W):this.once("finish",()=>{G(...W)})};I.once("response",$((G,W,Q)=>{let P=new a(this.socket,I.readableHighWaterMark);this.res=P,P.req=this,P.statusCode=G[b],P.headers=G,P.rawHeaders=Q,P.once("end",()=>{this.aborted?(P.aborted=!0,P.emit("aborted")):(P.complete=!0,P.socket=null,P.connection=null)}),x?(P.upgrade=!0,this.emit("connect",P,I,Buffer.alloc(0))?this.emit("close"):I.destroy()):(I.on("data",j=>{!P._dumped&&!P.push(j)&&I.pause()}),I.once("end",()=>{P.push(null)}),this.emit("response",P)||P._dump())})),I.once("headers",$(G=>this.emit("information",{statusCode:G[b]}))),I.once("trailers",$((G,W,Q)=>{let{res:P}=this;P.trailers=G,P.rawTrailers=Q}));let{socket:R}=I.session;this.socket=R,this.connection=R;for(let G of this[A])G();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[w]))}catch(I){this.emit("error",I)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[E],this[w]))}catch(I){this.emit("error",I)}}}getHeader(x){if(typeof x!="string")throw new u("name","string",x);return this[w][x.toLowerCase()]}get headersSent(){return this[S]}removeHeader(x){if(typeof x!="string")throw new u("name","string",x);if(this.headersSent)throw new o("remove");delete this[w][x.toLowerCase()]}setHeader(x,O){if(this.headersSent)throw new o("set");if(typeof x!="string"||!k.test(x)&&!h(x))throw new d("Header name",x);if(typeof O>"u")throw new p(O,x);if(L.test(O))throw new g("header content",x);this[w][x.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(x,O){let I=()=>this._request.setTimeout(x,O);return this._request?I():this[A].push(I),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(x){}};l.exports=T}),No=M((e,l)=>{"use strict";B();var n=Z("tls");l.exports=(i={},s=n.connect)=>new Promise((f,a)=>{let r=!1,t,h=async()=>{await c,t.off("timeout",u),t.off("error",a),i.resolveSocket?(f({alpnProtocol:t.alpnProtocol,socket:t,timeout:r}),r&&(await Promise.resolve(),t.emit("timeout"))):(t.destroy(),f({alpnProtocol:t.alpnProtocol,timeout:r}))},u=async()=>{r=!0,h()},c=(async()=>{try{t=await s(i,h),t.on("error",a),t.once("timeout",u)}catch(o){a(o)}})()})}),$o=M((e,l)=>{"use strict";B();var n=Z("net");l.exports=i=>{let s=i.host,f=i.headers&&i.headers.host;return f&&(f.startsWith("[")?f.indexOf("]")===-1?s=f:s=f.slice(1,-1):s=f.split(":",1)[0]),n.isIP(s)?"":s}}),Ho=M((e,l)=>{"use strict";B();var n=Z("http"),i=Z("https"),s=No(),f=ln(),a=fn(),r=$o(),t=pn(),h=new f({maxSize:100}),u=new Map,c=(d,p,g)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,g)};p.on("free",b);let _=()=>{d.removeSocket(p,g)};p.on("close",_);let y=()=>{d.removeSocket(p,g),p.off("close",_),p.off("free",b),p.off("agentRemove",y)};p.on("agentRemove",y),d.emit("free",p,g)},o=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!h.has(p)){if(u.has(p))return(await u.get(p)).alpnProtocol;let{path:g,agent:b}=d;d.path=d.socketPath;let _=s(d);u.set(p,_);try{let{socket:y,alpnProtocol:D}=await _;if(h.set(p,D),d.path=g,D==="h2")y.destroy();else{let{globalAgent:w}=i,v=i.Agent.prototype.createConnection;b?b.createConnection===v?c(b,y,d):y.destroy():w.createConnection===v?c(w,y,d):y.destroy()}return u.delete(p),D}catch(y){throw u.delete(p),y}}return h.get(p)};l.exports=async(d,p,g)=>{if((typeof d=="string"||d instanceof URL)&&(d=t(new URL(d))),typeof p=="function"&&(g=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||r(p),p.port=p.port||(b?443:80),p._defaultAgent=b?i.globalAgent:n.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 o(p)==="h2"?(_&&(p.agent=_.http2),new a(p,g)):n.request(p,g)},l.exports.protocolCache=h}),Uo=M((e,l)=>{"use strict";B();var n=Z("http2"),i=cn(),s=fn(),f=hn(),a=Ho(),r=(h,u,c)=>new s(h,u,c),t=(h,u,c)=>{let o=new s(h,u,c);return o.end(),o};l.exports={...n,ClientRequest:s,IncomingMessage:f,...i,request:r,get:t,auto:a}}),dn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();e.default=n=>l.default.nodeStream(n)&&l.default.function_(n.getBoundary)}),Go=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("fs"),n=Z("util"),i=Xe(),s=dn(),f=n.promisify(l.stat);e.default=async(a,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!a)return 0;if(i.default.string(a))return Buffer.byteLength(a);if(i.default.buffer(a))return a.length;if(s.default(a))return n.promisify(a.getLength.bind(a))();if(a instanceof l.ReadStream){let{size:t}=await f(a.path);return t===0?void 0:t}}}),mn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function l(n,i,s){let f={};for(let a of s)f[a]=(...r)=>{i.emit(a,...r)},n.on(a,f[a]);return()=>{for(let a of s)n.off(a,f[a])}}e.default=l}),qo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let l=[];return{once(n,i,s){n.once(i,s),l.push({origin:n,event:i,fn:s})},unhandleAll(){for(let n of l){let{origin:i,event:s,fn:f}=n;i.removeListener(s,f)}l.length=0}}}}),zo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var l=Z("net"),n=qo(),i=Symbol("reentry"),s=()=>{},f=class extends Error{constructor(a,r){super(`Timeout awaiting '${r}' for ${a}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=f,e.default=(a,r,t)=>{if(i in a)return s;a[i]=!0;let h=[],{once:u,unhandleAll:c}=n.default(),o=(_,y,D)=>{var w;let v=setTimeout(y,_,_,D);(w=v.unref)===null||w===void 0||w.call(v);let m=()=>{clearTimeout(v)};return h.push(m),m},{host:d,hostname:p}=t,g=(_,y)=>{a.destroy(new f(_,y))},b=()=>{for(let _ of h)_();c()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),u(a,"response",_=>{u(_,"end",b)}),typeof r.request<"u"&&o(r.request,g,"request"),typeof r.socket<"u"){let _=()=>{g(r.socket,"socket")};a.setTimeout(r.socket,_),h.push(()=>{a.removeListener("timeout",_)})}return u(a,"socket",_=>{var y;let{socketPath:D}=a;if(_.connecting){let w=Boolean(D!=null?D:l.isIP((y=p!=null?p:d)!==null&&y!==void 0?y:"")!==0);if(typeof r.lookup<"u"&&!w&&typeof _.address().address>"u"){let v=o(r.lookup,g,"lookup");u(_,"lookup",v)}if(typeof r.connect<"u"){let v=()=>o(r.connect,g,"connect");w?u(_,"connect",v()):u(_,"lookup",m=>{m===null&&u(_,"connect",v())})}typeof r.secureConnect<"u"&&t.protocol==="https:"&&u(_,"connect",()=>{let v=o(r.secureConnect,g,"secureConnect");u(_,"secureConnect",v)})}if(typeof r.send<"u"){let w=()=>o(r.send,g,"send");_.connecting?u(_,"connect",()=>{u(a,"upload-complete",w())}):u(a,"upload-complete",w())}}),typeof r.response<"u"&&u(a,"upload-complete",()=>{let _=o(r.response,g,"response");u(a,"response",_)}),b}}),Wo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();e.default=n=>{n=n;let i={protocol:n.protocol,hostname:l.default.string(n.hostname)&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return l.default.string(n.port)&&n.port.length>0&&(i.port=Number(n.port)),(n.username||n.password)&&(i.auth=`${n.username||""}:${n.password||""}`),i}}),Vo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("url"),n=["protocol","host","hostname","port","pathname","search"];e.default=(i,s)=>{var f,a;if(s.path){if(s.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(s.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(s.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(s.search&&s.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!i){if(!s.protocol)throw new TypeError("No URL protocol specified");i=`${s.protocol}//${(a=(f=s.hostname)!==null&&f!==void 0?f:s.host)!==null&&a!==void 0?a:""}`}let r=new l.URL(i);if(s.path){let t=s.path.indexOf("?");t===-1?s.pathname=s.path:(s.pathname=s.path.slice(0,t),s.search=s.path.slice(t+1)),delete s.path}for(let t of n)s[t]&&(r[t]=s[t].toString());return r}}),Ko=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,i){typeof n=="object"?this.weakMap.set(n,i):this.map.set(n,i)}get(n){return typeof n=="object"?this.weakMap.get(n):this.map.get(n)}has(n){return typeof n=="object"?this.weakMap.has(n):this.map.has(n)}};e.default=l}),yn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=async n=>{let i=[],s=0;for await(let f of n)i.push(f),s+=Buffer.byteLength(f);return Buffer.isBuffer(i[0])?Buffer.concat(i,s):Buffer.from(i.join(""))};e.default=l}),Yo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var l={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=n=>n in l,e.dnsLookupIpVersionToFamily=n=>{if(e.isDnsLookupIpVersion(n))return l[n];throw new Error("Invalid DNS lookup IP version")}}),gn=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=l=>{let{statusCode:n}=l,i=l.request.options.followRedirect?299:399;return n>=200&&n<=i||n===304}}),Jo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=new Set;e.default=n=>{l.has(n)||(l.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),Zo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe(),n=(i,s)=>{if(l.default.null_(i.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");l.assert.any([l.default.string,l.default.undefined],i.encoding),l.assert.any([l.default.boolean,l.default.undefined],i.resolveBodyOnly),l.assert.any([l.default.boolean,l.default.undefined],i.methodRewriting),l.assert.any([l.default.boolean,l.default.undefined],i.isStream),l.assert.any([l.default.string,l.default.undefined],i.responseType),i.responseType===void 0&&(i.responseType="text");let{retry:f}=i;if(s?i.retry={...s.retry}:i.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},l.default.object(f)?(i.retry={...i.retry,...f},i.retry.methods=[...new Set(i.retry.methods.map(a=>a.toUpperCase()))],i.retry.statusCodes=[...new Set(i.retry.statusCodes)],i.retry.errorCodes=[...new Set(i.retry.errorCodes)]):l.default.number(f)&&(i.retry.limit=f),l.default.undefined(i.retry.maxRetryAfter)&&(i.retry.maxRetryAfter=Math.min(...[i.timeout.request,i.timeout.connect].filter(l.default.number))),l.default.object(i.pagination)){s&&(i.pagination={...s.pagination,...i.pagination});let{pagination:a}=i;if(!l.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!l.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!l.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!l.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return i.responseType==="json"&&i.headers.accept===void 0&&(i.headers.accept="application/json"),i};e.default=n}),Xo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var l=({attemptCount:n,retryOptions:i,error:s,retryAfter:f})=>{if(n>i.limit)return 0;let a=i.methods.includes(s.options.method),r=i.errorCodes.includes(s.code),t=s.response&&i.statusCodes.includes(s.response.statusCode);if(!a||!r&&!t)return 0;if(s.response){if(f)return i.maxRetryAfter===void 0||f>i.maxRetryAfter?0:f;if(s.response.statusCode===413)return 0}let h=Math.random()*100;return 2**(n-1)*1e3+h};e.default=l}),Ut=M(e=>{"use strict";B(),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 l=Z("util"),n=Z("stream"),i=Z("fs"),s=Z("url"),f=Z("http"),a=Z("http"),r=Z("https"),t=vo(),h=_o(),u=Bo(),c=Lo(),o=Uo(),d=cr(),p=Xe(),g=Go(),b=dn(),_=mn(),y=zo(),D=Wo(),w=Vo(),v=Ko(),m=yn(),E=Yo(),S=gn(),A=Jo(),k=Zo(),L=Xo(),T,x=Symbol("request"),O=Symbol("response"),I=Symbol("responseSize"),$=Symbol("downloadedSize"),R=Symbol("bodySize"),G=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),P=Symbol("isFromCache"),j=Symbol("cancelTimeouts"),F=Symbol("startedReading"),J=Symbol("stopReading"),q=Symbol("triggerRead"),ee=Symbol("body"),N=Symbol("jobs"),K=Symbol("originalResponse"),te=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var se=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function le(Y){for(let U in Y){let oe=Y[U];if(!p.default.string(oe)&&!p.default.number(oe)&&!p.default.boolean(oe)&&!p.default.null_(oe)&&!p.default.undefined(oe))throw new TypeError(`The \`searchParams\` value '${String(oe)}' must be a string, number, boolean or null`)}}function ye(Y){return p.default.object(Y)&&!("statusCode"in Y)}var de=new v.default,H=async Y=>new Promise((U,oe)=>{let ge=pe=>{oe(pe)};Y.pending||U(),Y.once("error",ge),Y.once("ready",()=>{Y.off("error",ge),U()})}),V=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(Y,U)=>{let oe={};for(let ge of Y)if(ge)for(let pe of C)pe in ge&&(oe[pe]={writable:!0,configurable:!0,enumerable:!1,value:ge[pe]});Object.defineProperties(U,oe)};var z=class extends Error{constructor(Y,U,oe){var ge,pe;if(super(Y),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(ge=U.code)!==null&&ge!==void 0?ge:"ERR_GOT_REQUEST_ERROR",oe instanceof De?(Object.defineProperty(this,"request",{enumerable:!1,value:oe}),Object.defineProperty(this,"response",{enumerable:!1,value:oe[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:oe.options})):Object.defineProperty(this,"options",{enumerable:!1,value:oe}),this.timings=(pe=this.request)===null||pe===void 0?void 0:pe.timings,p.default.string(U.stack)&&p.default.string(this.stack)){let ae=this.stack.indexOf(this.message)+this.message.length,fe=this.stack.slice(ae).split(`
|
|
23
23
|
`).reverse(),ve=U.stack.slice(U.stack.indexOf(U.message)+U.message.length).split(`
|
|
24
24
|
`).reverse();for(;ve.length!==0&&ve[0]===fe[0];)fe.shift();this.stack=`${this.stack.slice(0,ae)}${fe.reverse().join(`
|
|
25
25
|
`)}${ve.reverse().join(`
|
|
26
|
-
`)}`}}};e.RequestError=z;var X=class extends z{constructor(Y){super(`Redirected ${Y.options.maxRedirects} times. Aborting.`,{},Y),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var re=class extends z{constructor(Y){super(`Response code ${Y.statusCode} (${Y.statusMessage})`,{},Y.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=re;var ce=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=ce;var ie=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=ie;var ue=class extends z{constructor(Y,U,oe){super(Y.message,Y,oe),this.name="TimeoutError",this.event=Y.event,this.timings=U}};e.TimeoutError=ue;var ne=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ne;var he=class extends z{constructor(Y){super(`Unsupported protocol "${Y.url.protocol}"`,{},Y),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=he;var be=["socket","connect","continue","information","upgrade","timeout"],De=class extends n.Duplex{constructor(Y,U={},oe){super({autoDestroy:!1,highWaterMark:0}),this[$]=0,this[G]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[J]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let ge=()=>this._unlockWrite(),pe=()=>this._lockWrite();this.on("pipe",Ee=>{Ee.prependListener("data",ge),Ee.on("data",pe),Ee.prependListener("end",ge),Ee.on("end",pe)}),this.on("unpipe",Ee=>{Ee.off("data",ge),Ee.off("data",pe),Ee.off("end",ge),Ee.off("end",pe)}),this.on("pipe",Ee=>{Ee instanceof a.IncomingMessage&&(this.options.headers={...Ee.headers,...this.options.headers})});let{json:ae,body:fe,form:ve}=U;if((ae||fe||ve)&&this._lockWrite(),e.kIsNormalizedAlready in U)this.options=U;else try{this.options=this.constructor.normalizeArguments(Y,U,oe)}catch(Ee){p.default.nodeStream(U.body)&&U.body.destroy(),this.destroy(Ee);return}(async()=>{var Ee;try{this.options.body instanceof i.ReadStream&&await H(this.options.body);let{url:Le}=this.options;if(!Le)throw new TypeError("Missing `url` property");if(this.requestUrl=Le.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ee=this[k])===null||Ee===void 0||Ee.destroy();return}for(let Pe of this[N])Pe();this[N].length=0,this.requestInitialized=!0}catch(Le){if(Le instanceof z){this._beforeError(Le);return}this.destroyed||this.destroy(Le)}})()}static normalizeArguments(Y,U,oe){var ge,pe,ae,fe,ve;let Ee=U;if(p.default.object(Y)&&!p.default.urlInstance(Y))U={...oe,...Y,...U};else{if(Y&&U&&U.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");U={...oe,...U},Y!==void 0&&(U.url=Y),p.default.urlInstance(U.url)&&(U.url=new s.URL(U.url.toString()))}if(U.cache===!1&&(U.cache=void 0),U.dnsCache===!1&&(U.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],U.method),p.assert.any([p.default.object,p.default.undefined],U.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],U.prefixUrl),p.assert.any([p.default.object,p.default.undefined],U.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],U.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],U.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],U.timeout),p.assert.any([p.default.object,p.default.undefined],U.context),p.assert.any([p.default.object,p.default.undefined],U.hooks),p.assert.any([p.default.boolean,p.default.undefined],U.decompress),p.assert.any([p.default.boolean,p.default.undefined],U.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],U.followRedirect),p.assert.any([p.default.number,p.default.undefined],U.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],U.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],U.http2),p.assert.any([p.default.boolean,p.default.undefined],U.allowGetBody),p.assert.any([p.default.string,p.default.undefined],U.localAddress),p.assert.any([E.isDnsLookupIpVersion,p.default.undefined],U.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],U.https),p.assert.any([p.default.boolean,p.default.undefined],U.rejectUnauthorized),U.https&&(p.assert.any([p.default.boolean,p.default.undefined],U.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],U.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.certificate),p.assert.any([p.default.string,p.default.undefined],U.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],U.https.pfx)),p.assert.any([p.default.object,p.default.undefined],U.cacheOptions),p.default.string(U.method)?U.method=U.method.toUpperCase():U.method="GET",U.headers===(oe==null?void 0:oe.headers)?U.headers={...U.headers}:U.headers=d({...oe==null?void 0:oe.headers,...U.headers}),"slashes"in U)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in U)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in U&&U.searchParams&&U.searchParams!==(oe==null?void 0:oe.searchParams)){let _e;if(p.default.string(U.searchParams)||U.searchParams instanceof s.URLSearchParams)_e=new s.URLSearchParams(U.searchParams);else{le(U.searchParams),_e=new s.URLSearchParams;for(let Oe in U.searchParams){let Re=U.searchParams[Oe];Re===null?_e.append(Oe,""):Re!==void 0&&_e.append(Oe,Re)}}(ge=oe==null?void 0:oe.searchParams)===null||ge===void 0||ge.forEach((Oe,Re)=>{_e.has(Re)||_e.append(Re,Oe)}),U.searchParams=_e}if(U.username=(pe=U.username)!==null&&pe!==void 0?pe:"",U.password=(ae=U.password)!==null&&ae!==void 0?ae:"",p.default.undefined(U.prefixUrl)?U.prefixUrl=(fe=oe==null?void 0:oe.prefixUrl)!==null&&fe!==void 0?fe:"":(U.prefixUrl=U.prefixUrl.toString(),U.prefixUrl!==""&&!U.prefixUrl.endsWith("/")&&(U.prefixUrl+="/")),p.default.string(U.url)){if(U.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");U.url=w.default(U.prefixUrl+U.url,U)}else(p.default.undefined(U.url)&&U.prefixUrl!==""||U.protocol)&&(U.url=w.default(U.prefixUrl,U));if(U.url){"port"in U&&delete U.port;let{prefixUrl:_e}=U;Object.defineProperty(U,"prefixUrl",{set:Re=>{let Se=U.url;if(!Se.href.startsWith(Re))throw new Error(`Cannot change \`prefixUrl\` from ${_e} to ${Re}: ${Se.href}`);U.url=new s.URL(Re+Se.href.slice(_e.length)),_e=Re},get:()=>_e});let{protocol:Oe}=U.url;if(Oe==="unix:"&&(Oe="http:",U.url=new s.URL(`http://unix${U.url.pathname}${U.url.search}`)),U.searchParams&&(U.url.search=U.searchParams.toString()),Oe!=="http:"&&Oe!=="https:")throw new he(U);U.username===""?U.username=U.url.username:U.url.username=U.username,U.password===""?U.password=U.url.password:U.url.password=U.password}let{cookieJar:Le}=U;if(Le){let{setCookie:_e,getCookieString:Oe}=Le;p.assert.function_(_e),p.assert.function_(Oe),_e.length===4&&Oe.length===0&&(_e=l.promisify(_e.bind(U.cookieJar)),Oe=l.promisify(Oe.bind(U.cookieJar)),U.cookieJar={setCookie:_e,getCookieString:Oe})}let{cache:Pe}=U;if(Pe&&(de.has(Pe)||de.set(Pe,new u((_e,Oe)=>{let Re=_e[k](_e,Oe);return p.default.promise(Re)&&(Re.once=(Se,Ae)=>{if(Se==="error")Re.catch(Ae);else if(Se==="abort")(async()=>{try{(await Re).once("abort",Ae)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Se}`);return Re}),Re},Pe))),U.cacheOptions={...U.cacheOptions},U.dnsCache===!0)T||(T=new h.default),U.dnsCache=T;else if(!p.default.undefined(U.dnsCache)&&!U.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default(U.dnsCache)}`);p.default.number(U.timeout)?U.timeout={request:U.timeout}:oe&&U.timeout!==oe.timeout?U.timeout={...oe.timeout,...U.timeout}:U.timeout={...U.timeout},U.context||(U.context={});let Mt=U.hooks===(oe==null?void 0:oe.hooks);U.hooks={...U.hooks};for(let _e of e.knownHookEvents)if(_e in U.hooks)if(p.default.array(U.hooks[_e]))U.hooks[_e]=[...U.hooks[_e]];else throw new TypeError(`Parameter \`${_e}\` must be an Array, got ${p.default(U.hooks[_e])}`);else U.hooks[_e]=[];if(oe&&!Mt)for(let _e of e.knownHookEvents)oe.hooks[_e].length>0&&(U.hooks[_e]=[...oe.hooks[_e],...U.hooks[_e]]);if("family"in U&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),oe!=null&&oe.https&&(U.https={...oe.https,...U.https}),"rejectUnauthorized"in U&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in U&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in U&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in U&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in U&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in U&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in U&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in U)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(U.agent){for(let _e in U.agent)if(_e!=="http"&&_e!=="https"&&_e!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${_e}\``)}return U.maxRedirects=(ve=U.maxRedirects)!==null&&ve!==void 0?ve:0,e.setNonEnumerableProperties([oe,Ee],U),x.default(U,oe)}_lockWrite(){let Y=()=>{throw new TypeError("The payload has been already provided")};this.write=Y,this.end=Y}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:Y}=this,{headers:U}=Y,oe=!p.default.undefined(Y.form),ge=!p.default.undefined(Y.json),pe=!p.default.undefined(Y.body),ae=oe||ge||pe,fe=e.withoutBody.has(Y.method)&&!(Y.method==="GET"&&Y.allowGetBody);if(this._cannotHaveBody=fe,ae){if(fe)throw new TypeError(`The \`${Y.method}\` method cannot be used with a body`);if([pe,oe,ge].filter(ve=>ve).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(pe&&!(Y.body instanceof n.Readable)&&!p.default.string(Y.body)&&!p.default.buffer(Y.body)&&!b.default(Y.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(oe&&!p.default.object(Y.form))throw new TypeError("The `form` option must be an Object");{let ve=!p.default.string(U["content-type"]);pe?(b.default(Y.body)&&ve&&(U["content-type"]=`multipart/form-data; boundary=${Y.body.getBoundary()}`),this[ee]=Y.body):oe?(ve&&(U["content-type"]="application/x-www-form-urlencoded"),this[ee]=new s.URLSearchParams(Y.form).toString()):(ve&&(U["content-type"]="application/json"),this[ee]=Y.stringifyJson(Y.json));let Ee=await g.default(this[ee],Y.headers);p.default.undefined(U["content-length"])&&p.default.undefined(U["transfer-encoding"])&&!fe&&!p.default.undefined(Ee)&&(U["content-length"]=String(Ee))}}else fe?this._lockWrite():this._unlockWrite();this[R]=Number(U["content-length"])||void 0}async _onResponseBase(Y){let{options:U}=this,{url:oe}=U;this[K]=Y,U.decompress&&(Y=c(Y));let ge=Y.statusCode,pe=Y;pe.statusMessage=pe.statusMessage?pe.statusMessage:f.STATUS_CODES[ge],pe.url=U.url.toString(),pe.requestUrl=this.requestUrl,pe.redirectUrls=this.redirects,pe.request=this,pe.isFromCache=Y.fromCache||!1,pe.ip=this.ip,pe.retryCount=this.retryCount,this[P]=pe.isFromCache,this[I]=Number(Y.headers["content-length"])||void 0,this[O]=Y,Y.once("end",()=>{this[I]=this[$],this.emit("downloadProgress",this.downloadProgress)}),Y.once("error",fe=>{Y.destroy(),this._beforeError(new ne(fe,this))}),Y.once("aborted",()=>{this._beforeError(new ne({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let ae=Y.headers["set-cookie"];if(p.default.object(U.cookieJar)&&ae){let fe=ae.map(async ve=>U.cookieJar.setCookie(ve,oe.toString()));U.ignoreInvalidCookies&&(fe=fe.map(async ve=>ve.catch(()=>{})));try{await Promise.all(fe)}catch(ve){this._beforeError(ve);return}}if(U.followRedirect&&Y.headers.location&&V.has(ge)){if(Y.resume(),this[k]&&(this[j](),delete this[k],this[Q]()),(ge===303&&U.method!=="GET"&&U.method!=="HEAD"||!U.methodRewriting)&&(U.method="GET","body"in U&&delete U.body,"json"in U&&delete U.json,"form"in U&&delete U.form,this[ee]=void 0,delete U.headers["content-length"]),this.redirects.length>=U.maxRedirects){this._beforeError(new X(this));return}try{let fe=function(Pe){return Pe.protocol==="unix:"||Pe.hostname==="unix"},ve=Buffer.from(Y.headers.location,"binary").toString(),Ee=new s.URL(ve,oe),Le=Ee.toString();if(decodeURI(Le),!fe(oe)&&fe(Ee)){this._beforeError(new z("Cannot redirect to UNIX socket",{},this));return}Ee.hostname!==oe.hostname||Ee.port!==oe.port?("host"in U.headers&&delete U.headers.host,"cookie"in U.headers&&delete U.headers.cookie,"authorization"in U.headers&&delete U.headers.authorization,(U.username||U.password)&&(U.username="",U.password="")):(Ee.username=U.username,Ee.password=U.password),this.redirects.push(Le),U.url=Ee;for(let Pe of U.hooks.beforeRedirect)await Pe(U,pe);this.emit("redirect",pe,U),await this._makeRequest()}catch(fe){this._beforeError(fe);return}return}if(U.isStream&&U.throwHttpErrors&&!S.isResponseOk(pe)){this._beforeError(new re(pe));return}Y.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{Y.resume()}),this.on("pause",()=>{Y.pause()}),Y.once("end",()=>{this.push(null)}),this.emit("response",Y);for(let fe of this[W])if(!fe.headersSent){for(let ve in Y.headers){let Ee=U.decompress?ve!=="content-encoding":!0,Le=Y.headers[ve];Ee&&fe.setHeader(ve,Le)}fe.statusCode=ge}}async _onResponse(Y){try{await this._onResponseBase(Y)}catch(U){this._beforeError(U)}}_onRequest(Y){let{options:U}=this,{timeout:oe,url:ge}=U;t.default(Y),this[j]=y.default(Y,oe,ge);let pe=U.cache?"cacheableResponse":"response";Y.once(pe,ve=>{this._onResponse(ve)}),Y.once("error",ve=>{var Ee;Y.destroy(),(Ee=Y.res)===null||Ee===void 0||Ee.removeAllListeners("end"),ve=ve instanceof y.TimeoutError?new ue(ve,this.timings,this):new z(ve.message,ve,this),this._beforeError(ve)}),this[Q]=_.default(Y,this,be),this[k]=Y,this.emit("uploadProgress",this.uploadProgress);let ae=this[ee],fe=this.redirects.length===0?this:Y;p.default.nodeStream(ae)?(ae.pipe(fe),ae.once("error",ve=>{this._beforeError(new ie(ve,this))})):(this._unlockWrite(),p.default.undefined(ae)?(this._cannotHaveBody||this._noPipe)&&(fe.end(),this._lockWrite()):(this._writeRequest(ae,void 0,()=>{}),fe.end(),this._lockWrite())),this.emit("request",Y)}async _createCacheableRequest(Y,U){return new Promise((oe,ge)=>{Object.assign(U,D.default(Y)),delete U.url;let pe,ae=de.get(U.cache)(U,async fe=>{fe._readableState.autoDestroy=!1,pe&&(await pe).emit("cacheableResponse",fe),oe(fe)});U.url=Y,ae.once("error",ge),ae.once("request",async fe=>{pe=fe,oe(pe)})})}async _makeRequest(){var Y,U,oe,ge,pe;let{options:ae}=this,{headers:fe}=ae;for(let Ae in fe)if(p.default.undefined(fe[Ae]))delete fe[Ae];else if(p.default.null_(fe[Ae]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ae}\` header`);if(ae.decompress&&p.default.undefined(fe["accept-encoding"])&&(fe["accept-encoding"]=se?"gzip, deflate, br":"gzip, deflate"),ae.cookieJar){let Ae=await ae.cookieJar.getCookieString(ae.url.toString());p.default.nonEmptyString(Ae)&&(ae.headers.cookie=Ae)}for(let Ae of ae.hooks.beforeRequest){let jt=await Ae(ae);if(!p.default.undefined(jt)){ae.request=()=>jt;break}}ae.body&&this[ee]!==ae.body&&(this[ee]=ae.body);let{agent:ve,request:Ee,timeout:Le,url:Pe}=ae;if(ae.dnsCache&&!("lookup"in ae)&&(ae.lookup=ae.dnsCache.lookup),Pe.hostname==="unix"){let Ae=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Pe.pathname}${Pe.search}`);if(Ae!=null&&Ae.groups){let{socketPath:jt,path:$i}=Ae.groups;Object.assign(ae,{socketPath:jt,path:$i,host:""})}}let Mt=Pe.protocol==="https:",_e;ae.http2?_e=o.auto:_e=Mt?r.request:f.request;let Oe=(Y=ae.request)!==null&&Y!==void 0?Y:_e,Re=ae.cache?this._createCacheableRequest:Oe;ve&&!ae.http2&&(ae.agent=ve[Mt?"https":"http"]),ae[k]=Oe,delete ae.request,delete ae.timeout;let Se=ae;if(Se.shared=(U=ae.cacheOptions)===null||U===void 0?void 0:U.shared,Se.cacheHeuristic=(oe=ae.cacheOptions)===null||oe===void 0?void 0:oe.cacheHeuristic,Se.immutableMinTimeToLive=(ge=ae.cacheOptions)===null||ge===void 0?void 0:ge.immutableMinTimeToLive,Se.ignoreCargoCult=(pe=ae.cacheOptions)===null||pe===void 0?void 0:pe.ignoreCargoCult,ae.dnsLookupIpVersion!==void 0)try{Se.family=E.dnsLookupIpVersionToFamily(ae.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}ae.https&&("rejectUnauthorized"in ae.https&&(Se.rejectUnauthorized=ae.https.rejectUnauthorized),ae.https.checkServerIdentity&&(Se.checkServerIdentity=ae.https.checkServerIdentity),ae.https.certificateAuthority&&(Se.ca=ae.https.certificateAuthority),ae.https.certificate&&(Se.cert=ae.https.certificate),ae.https.key&&(Se.key=ae.https.key),ae.https.passphrase&&(Se.passphrase=ae.https.passphrase),ae.https.pfx&&(Se.pfx=ae.https.pfx));try{let Ae=await Re(Pe,Se);p.default.undefined(Ae)&&(Ae=_e(Pe,Se)),ae.request=Ee,ae.timeout=Le,ae.agent=ve,ae.https&&("rejectUnauthorized"in ae.https&&delete Se.rejectUnauthorized,ae.https.checkServerIdentity&&delete Se.checkServerIdentity,ae.https.certificateAuthority&&delete Se.ca,ae.https.certificate&&delete Se.cert,ae.https.key&&delete Se.key,ae.https.passphrase&&delete Se.passphrase,ae.https.pfx&&delete Se.pfx),ye(Ae)?this._onRequest(Ae):this.writable?(this.once("finish",()=>{this._onResponse(Ae)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ae)}catch(Ae){throw Ae instanceof u.CacheError?new ce(Ae,this):new z(Ae.message,Ae,this)}}async _error(Y){try{for(let U of this.options.hooks.beforeError)Y=await U(Y)}catch(U){Y=new z(U.message,U,this)}this.destroy(Y)}_beforeError(Y){if(this[J])return;let{options:U}=this,oe=this.retryCount+1;this[J]=!0,Y instanceof z||(Y=new z(Y.message,Y,this));let ge=Y,{response:pe}=ge;(async()=>{if(pe&&!pe.body){pe.setEncoding(this._readableState.encoding);try{pe.rawBody=await m.default(pe),pe.body=pe.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let ae;try{let fe;pe&&"retry-after"in pe.headers&&(fe=Number(pe.headers["retry-after"]),Number.isNaN(fe)?(fe=Date.parse(pe.headers["retry-after"])-Date.now(),fe<=0&&(fe=1)):fe*=1e3),ae=await U.retry.calculateDelay({attemptCount:oe,retryOptions:U.retry,error:ge,retryAfter:fe,computedValue:L.default({attemptCount:oe,retryOptions:U.retry,error:ge,retryAfter:fe,computedValue:0})})}catch(fe){this._error(new z(fe.message,fe,this));return}if(ae){let fe=async()=>{try{for(let ve of this.options.hooks.beforeRetry)await ve(this.options,ge,oe)}catch(ve){this._error(new z(ve.message,Y,this));return}this.destroyed||(this.destroy(),this.emit("retry",oe,Y))};this[te]=setTimeout(fe,ae);return}}this._error(ge)})()}_read(){this[q]=!0;let Y=this[O];if(Y&&!this[J]){Y.readableLength&&(this[q]=!1);let U;for(;(U=Y.read())!==null;){this[$]+=U.length,this[F]=!0;let oe=this.downloadProgress;oe.percent<1&&this.emit("downloadProgress",oe),this.push(U)}}}_write(Y,U,oe){let ge=()=>{this._writeRequest(Y,U,oe)};this.requestInitialized?ge():this[N].push(ge)}_writeRequest(Y,U,oe){this[k].destroyed||(this._progressCallbacks.push(()=>{this[G]+=Buffer.byteLength(Y,U);let ge=this.uploadProgress;ge.percent<1&&this.emit("uploadProgress",ge)}),this[k].write(Y,U,ge=>{!ge&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),oe(ge)}))}_final(Y){let U=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(k in this)){Y();return}if(this[k].destroyed){Y();return}this[k].end(oe=>{oe||(this[R]=this[G],this.emit("uploadProgress",this.uploadProgress),this[k].emit("upload-complete")),Y(oe)})};this.requestInitialized?U():this[N].push(U)}_destroy(Y,U){var oe;this[J]=!0,clearTimeout(this[te]),k in this&&(this[j](),!((oe=this[O])===null||oe===void 0)&&oe.complete||this[k].destroy()),Y!==null&&!p.default.undefined(Y)&&!(Y instanceof z)&&(Y=new z(Y.message,Y,this)),U(Y)}get _isAboutToError(){return this[J]}get ip(){var Y;return(Y=this.socket)===null||Y===void 0?void 0:Y.remoteAddress}get aborted(){var Y,U,oe;return((U=(Y=this[k])===null||Y===void 0?void 0:Y.destroyed)!==null&&U!==void 0?U:this.destroyed)&&!(!((oe=this[K])===null||oe===void 0)&&oe.complete)}get socket(){var Y,U;return(U=(Y=this[k])===null||Y===void 0?void 0:Y.socket)!==null&&U!==void 0?U:void 0}get downloadProgress(){let Y;return this[I]?Y=this[$]/this[I]:this[I]===this[$]?Y=1:Y=0,{percent:Y,transferred:this[$],total:this[I]}}get uploadProgress(){let Y;return this[R]?Y=this[G]/this[R]:this[R]===this[G]?Y=1:Y=0,{percent:Y,transferred:this[G],total:this[R]}}get timings(){var Y;return(Y=this[k])===null||Y===void 0?void 0:Y.timings}get isFromCache(){return this[P]}pipe(Y,U){if(this[F])throw new Error("Failed to pipe. The response has been emitted already.");return Y instanceof a.ServerResponse&&this[W].add(Y),super.pipe(Y,U)}unpipe(Y){return Y instanceof a.ServerResponse&&this[W].delete(Y),super.unpipe(Y),this}};e.default=De}),Gt=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(a,r,t,h){h===void 0&&(h=t),Object.defineProperty(a,h,{enumerable:!0,get:function(){return r[t]}})}:function(a,r,t,h){h===void 0&&(h=t),a[h]=r[t]}),n=e&&e.__exportStar||function(a,r){for(var t in a)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&l(r,a,t)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var i=Ut(),s=class extends i.RequestError{constructor(a,r){let{options:t}=r.request;super(`${a.message} in "${t.url.toString()}"`,a,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=s;var f=class extends i.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=f,n(Ut(),e)}),Qo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Gt(),n=(i,s,f,a)=>{let{rawBody:r}=i;try{if(s==="text")return r.toString(a);if(s==="json")return r.length===0?"":f(r.toString());if(s==="buffer")return r;throw new l.ParseError({message:`Unknown body type '${s}'`,name:"Error"},i)}catch(t){throw new l.ParseError(t,i)}};e.default=n}),bn=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(p,g,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return g[b]}})}:function(p,g,b,_){_===void 0&&(_=b),p[_]=g[b]}),n=e&&e.__exportStar||function(p,g){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&l(g,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var i=Z("events"),s=Xe(),f=go(),a=Gt(),r=Qo(),t=Ut(),h=mn(),u=yn(),c=gn(),o=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let g,b,_=new i.EventEmitter,y=new f((w,v,m)=>{let E=S=>{let A=new t.default(void 0,p);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(A))),g=A,A.once("response",async T=>{var k;if(T.retryCount=S,T.request.aborted)return;let O;try{O=await u.default(A),T.rawBody=O}catch{return}if(A._isAboutToError)return;let I=((k=T.headers["content-encoding"])!==null&&k!==void 0?k:"").toLowerCase(),$=["gzip","deflate","br"].includes(I),{options:R}=A;if($&&!R.decompress)T.body=O;else try{T.body=r.default(T,R.responseType,R.parseJson,R.encoding)}catch(G){if(T.body=O.toString(),c.isResponseOk(T)){A._beforeError(G);return}}try{for(let[G,W]of R.hooks.afterResponse.entries())T=await W(T,async Q=>{let P=t.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},R);P.hooks.afterResponse=P.hooks.afterResponse.slice(0,G);for(let F of P.hooks.beforeRetry)await F(P);let j=d(P);return m(()=>{j.catch(()=>{}),j.cancel()}),j})}catch(G){A._beforeError(new a.RequestError(G.message,G,A));return}if(b=T,!c.isResponseOk(T)){A._beforeError(new a.HTTPError(T));return}A.destroy(),w(A.options.resolveBodyOnly?T.body:T)});let x=T=>{if(y.isCanceled)return;let{options:k}=A;if(T instanceof a.HTTPError&&!k.throwHttpErrors){let{response:O}=T;w(A.options.resolveBodyOnly?O.body:O);return}v(T)};A.once("error",x);let L=A.options.body;A.once("retry",(T,k)=>{var O,I;if(L===((O=k.request)===null||O===void 0?void 0:O.options.body)&&s.default.nodeStream((I=k.request)===null||I===void 0?void 0:I.options.body)){x(k);return}E(T)}),h.default(A,_,o)};E(0)});y.on=(w,v)=>(_.on(w,v),y);let D=w=>{let v=(async()=>{await y;let{options:m}=b.request;return r.default(b,w,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)),v};return y.json=()=>{let{headers:w}=g.options;return!g.writableFinished&&w.accept===void 0&&(w.accept="application/json"),D("json")},y.buffer=()=>D("buffer"),y.text=()=>D("text"),y}e.default=d,n(Gt(),e)}),ea=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Gt();function n(i,...s){let f=(async()=>{if(i instanceof l.RequestError)try{for(let r of s)if(r)for(let t of r)i=await t(i)}catch(r){i=r}throw i})(),a=()=>f;return f.json=a,f.text=a,f.buffer=a,f.on=a,f}e.default=n}),ta=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();function n(i){for(let s of Object.values(i))(l.default.plainObject(s)||l.default.array(s))&&n(s);return Object.freeze(i)}e.default=n}),ra=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0})}),an=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(_,y,D,w){w===void 0&&(w=D),Object.defineProperty(_,w,{enumerable:!0,get:function(){return y[D]}})}:function(_,y,D,w){w===void 0&&(w=D),_[w]=y[D]}),n=e&&e.__exportStar||function(_,y){for(var D in _)D!=="default"&&!Object.prototype.hasOwnProperty.call(y,D)&&l(y,_,D)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var i=Xe(),s=bn(),f=ea(),a=Ut(),r=ta(),t={RequestError:s.RequestError,CacheError:s.CacheError,ReadError:s.ReadError,HTTPError:s.HTTPError,MaxRedirectsError:s.MaxRedirectsError,TimeoutError:s.TimeoutError,ParseError:s.ParseError,CancelError:s.CancelError,UnsupportedProtocolError:s.UnsupportedProtocolError,UploadError:s.UploadError},h=async _=>new Promise(y=>{setTimeout(y,_)}),{normalizeArguments:u}=a.default,c=(..._)=>{let y;for(let D of _)y=u(void 0,D,y);return y},o=_=>_.isStream?new a.default(void 0,_):s.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,y)=>y(_);var g=(_,y)=>{if(_)for(let D of _)D(y)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(w=>(v,m)=>{let E,S=w(v,A=>(E=m(A),E));if(S!==E&&!v.isStream&&E){let A=S,{then:x,catch:L,finally:T}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(E)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(E)),A.then=x,A.catch=L,A.finally=T}return S});let y=(w,v={},m)=>{var E,S;let A=0,x=L=>_.handlers[A++](L,A===_.handlers.length?o:x);if(i.default.plainObject(w)){let L={...w,...v};a.setNonEnumerableProperties([w,v],L),v=L,w=void 0}try{let L;try{g(_.options.hooks.init,v),g((E=v.hooks)===null||E===void 0?void 0:E.init,v)}catch(k){L=k}let T=u(w,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,L)throw new s.RequestError(L.message,L,T);return x(T)}catch(L){if(v.isStream)throw L;return f.default(L,_.options.hooks.beforeError,(S=v.hooks)===null||S===void 0?void 0:S.beforeError)}};y.extend=(...w)=>{let v=[_.options],m=[..._._rawHandlers],E;for(let S of w)d(S)?(v.push(S.defaults.options),m.push(...S.defaults._rawHandlers),E=S.defaults.mutableDefaults):(v.push(S),"handlers"in S&&m.push(...S.handlers),E=S.mutableDefaults);return m=m.filter(S=>S!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:c(...v),handlers:m,mutableDefaults:Boolean(E)})};let D=async function*(w,v){let m=u(w,v,_.options);m.resolveBodyOnly=!1;let E=m.pagination;if(!i.default.object(E))throw new TypeError("`options.pagination` must be implemented");let S=[],{countLimit:A}=E,x=0;for(;x<E.requestLimit;){x!==0&&await h(E.backoff);let L=await y(void 0,void 0,m),T=await E.transform(L),k=[];for(let I of T)if(E.filter(I,S,k)&&(!E.shouldContinue(I,S,k)||(yield I,E.stackAllItems&&S.push(I),k.push(I),--A<=0)))return;let O=E.paginate(L,S,k);if(O===!1)return;O===L.request.options?m=L.request.options:O!==void 0&&(m=u(void 0,O,m)),x++}};y.paginate=D,y.paginate.all=async(w,v)=>{let m=[];for await(let E of D(w,v))m.push(E);return m},y.paginate.each=D,y.stream=(w,v)=>y(w,{...v,isStream:!0});for(let w of p)y[w]=(v,m)=>y(v,{...m,method:w}),y.stream[w]=(v,m)=>y(v,{...m,method:w,isStream:!0});return Object.assign(y,t),Object.defineProperty(y,"defaults",{value:_.mutableDefaults?_:r.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),y.mergeOptions=c,y};e.default=b,n(ra(),e)}),na=M((e,l)=>{"use strict";B();var n=e&&e.__createBinding||(Object.create?function(t,h,u,c){c===void 0&&(c=u),Object.defineProperty(t,c,{enumerable:!0,get:function(){return h[u]}})}:function(t,h,u,c){c===void 0&&(c=u),t[c]=h[u]}),i=e&&e.__exportStar||function(t,h){for(var u in t)u!=="default"&&!Object.prototype.hasOwnProperty.call(h,u)&&n(h,t,u)};Object.defineProperty(e,"__esModule",{value:!0});var s=Z("url"),f=an(),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:t})=>t},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:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let h=t.headers.link.split(","),u;for(let c of h){let o=c.split(";");if(o[1].includes("next")){u=o[0].trimStart().trim(),u=u.slice(1,-1);break}}return u?{url:new s.URL(u)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[f.defaultHandler],mutableDefaults:!1},r=f.default(a);e.default=r,l.exports=r,l.exports.default=r,l.exports.__esModule=!0,i(an(),e),i(bn(),e)}),At=M((e,l)=>{"use strict";B();var n=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"]]);l.exports=i=>i?Object.keys(i).map(s=>[n.has(s)?n.get(s):s,i[s]]).reduce((s,f)=>(s[f[0]]=f[1],s),Object.create(null)):{}}),hr=M((e,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=Z("events"),s=Z("stream"),f=Z("string_decoder").StringDecoder,a=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),h=Symbol("emittingEnd"),u=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),E=Symbol("bufferPush"),S=Symbol("bufferShift"),A=Symbol("objectMode"),x=Symbol("destroyed"),L=Symbol("emitData"),T=Symbol("emitEnd"),k=Symbol("emitEnd2"),O=Symbol("async"),I=J=>Promise.resolve().then(J),$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=$&&Symbol.iterator||Symbol("iterator not implemented"),W=J=>J==="end"||J==="finish"||J==="prefinish",Q=J=>J instanceof ArrayBuffer||typeof J=="object"&&J.constructor&&J.constructor.name==="ArrayBuffer"&&J.byteLength>=0,P=J=>!Buffer.isBuffer(J)&&ArrayBuffer.isView(J),j=class{constructor(J,q,ee){this.src=J,this.dest=q,this.opts=ee,this.ondrain=()=>J[D](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},F=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,q,ee){super(J,q,ee),this.proxyErrors=N=>q.emit("error",N),J.on("error",this.proxyErrors)}};l.exports=class vn extends s{constructor(q){super(),this[_]=!1,this[y]=!1,this[v]=[],this[w]=[],this[A]=q&&q.objectMode||!1,this[A]?this[g]=null:this[g]=q&&q.encoding||null,this[g]==="buffer"&&(this[g]=null),this[O]=q&&!!q.async||!1,this[b]=this[g]?new f(this[g]):null,this[a]=!1,this[t]=!1,this[h]=!1,this[c]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[m]=0,this[x]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[w]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[g]}set encoding(q){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[g]&&q!==this[g]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[g]!==q&&(this[b]=q?new f(q):null,this[w].length&&(this[w]=this[w].map(ee=>this[b].write(ee)))),this[g]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[A]}set objectMode(q){this[A]=this[A]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,ee,N){if(this[a])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof ee=="function"&&(N=ee,ee="utf8"),ee||(ee="utf8");let K=this[O]?I:te=>te();return!this[A]&&!Buffer.isBuffer(q)&&(P(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[E](q),this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing):q.length?(typeof q=="string"&&!(ee===this[g]&&!this[b].lastNeed)&&(q=Buffer.from(q,ee)),Buffer.isBuffer(q)&&this[g]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[E](q),this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing)}read(q){if(this[x])return null;if(this[m]===0||q===0||q>this[m])return this[r](),null;this[A]&&(q=null),this[w].length>1&&!this[A]&&(this.encoding?this[w]=[this[w].join("")]:this[w]=[Buffer.concat(this[w],this[m])]);let ee=this[o](q||null,this[w][0]);return this[r](),ee}[o](q,ee){return q===ee.length||q===null?this[S]():(this[w][0]=ee.slice(q),ee=ee.slice(0,q),this[m]-=q),this.emit("data",ee),!this[w].length&&!this[a]&&this.emit("drain"),ee}end(q,ee,N){return typeof q=="function"&&(N=q,q=null),typeof ee=="function"&&(N=ee,ee="utf8"),q&&this.write(q,ee),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[x]||(this[y]=!1,this[_]=!0,this.emit("resume"),this[w].length?this[d]():this[a]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[_]=!1,this[y]=!0}get destroyed(){return this[x]}get flowing(){return this[_]}get paused(){return this[y]}[E](q){this[A]?this[m]+=1:this[m]+=q.length,this[w].push(q)}[S](){return this[w].length&&(this[A]?this[m]-=1:this[m]-=this[w][0].length),this[w].shift()}[d](q){do;while(this[p](this[S]()));!q&&!this[w].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,ee){if(this[x])return;let N=this[t];return ee=ee||{},q===n.stdout||q===n.stderr?ee.end=!1:ee.end=ee.end!==!1,ee.proxyErrors=!!ee.proxyErrors,N?ee.end&&q.end():(this[v].push(ee.proxyErrors?new F(this,q,ee):new j(this,q,ee)),this[O]?I(()=>this[D]()):this[D]()),q}unpipe(q){let ee=this[v].find(N=>N.dest===q);ee&&(this[v].splice(this[v].indexOf(ee),1),ee.unpipe())}addListener(q,ee){return this.on(q,ee)}on(q,ee){let N=super.on(q,ee);return q==="data"&&!this[v].length&&!this.flowing?this[D]():q==="readable"&&this[m]!==0?super.emit("readable"):W(q)&&this[t]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[u]&&(this[O]?I(()=>ee.call(this,this[u])):ee.call(this,this[u])),N}get emittedEnd(){return this[t]}[r](){!this[h]&&!this[t]&&!this[x]&&this[w].length===0&&this[a]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[h]=!1)}emit(q,ee,...N){if(q!=="error"&&q!=="close"&&q!==x&&this[x])return;if(q==="data")return ee?this[O]?I(()=>this[L](ee)):this[L](ee):!1;if(q==="end")return this[T]();if(q==="close"){if(this[c]=!0,!this[t]&&!this[x])return;let te=super.emit("close");return this.removeAllListeners("close"),te}else if(q==="error"){this[u]=ee;let te=super.emit("error",ee);return this[r](),te}else if(q==="resume"){let te=super.emit("resume");return this[r](),te}else if(q==="finish"||q==="prefinish"){let te=super.emit(q);return this.removeAllListeners(q),te}let K=super.emit(q,ee,...N);return this[r](),K}[L](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let ee=super.emit("data",q);return this[r](),ee}[T](){this[t]||(this[t]=!0,this.readable=!1,this[O]?I(()=>this[k]()):this[k]())}[k](){if(this[b]){let ee=this[b].end();if(ee){for(let N of this[v])N.dest.write(ee);super.emit("data",ee)}}for(let ee of this[v])ee.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[A]||(q.dataLength=0);let ee=this.promise();return this.on("data",N=>{q.push(N),this[A]||(q.dataLength+=N.length)}),ee.then(()=>q)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,ee)=>{this.on(x,()=>ee(new Error("stream destroyed"))),this.on("error",N=>ee(N)),this.on("end",()=>q())})}[R](){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 ee=null,N=null,K=ye=>{this.removeListener("data",te),this.removeListener("end",se),N(ye)},te=ye=>{this.removeListener("error",K),this.removeListener("end",se),this.pause(),ee({value:ye,done:!!this[a]})},se=()=>{this.removeListener("error",K),this.removeListener("data",te),ee({done:!0})},le=()=>K(new Error("stream destroyed"));return new Promise((ye,de)=>{N=de,ee=ye,this.once(x,le),this.once("error",K),this.once("end",se),this.once("data",te)})}}}[G](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[x]?(q?this.emit("error",q):this.emit(x),this):(this[x]=!0,this[w].length=0,this[m]=0,typeof this.close=="function"&&!this[c]&&this.close(),q?this.emit("error",q):this.emit(x),this)}static isStream(q){return!!q&&(q instanceof vn||q instanceof s||q instanceof i&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),ia=M((e,l)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};l.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},n))}),_n=M((e,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=Z("events"),s=Z("stream"),f=Z("string_decoder").StringDecoder,a=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),h=Symbol("emittingEnd"),u=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),E=Symbol("objectMode"),S=Symbol("destroyed"),A=Symbol("emitData"),x=Symbol("emitEnd"),L=Symbol("emitEnd2"),T=Symbol("async"),k=j=>Promise.resolve().then(j),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=O&&Symbol.iterator||Symbol("iterator not implemented"),R=j=>j==="end"||j==="finish"||j==="prefinish",G=j=>j instanceof ArrayBuffer||typeof j=="object"&&j.constructor&&j.constructor.name==="ArrayBuffer"&&j.byteLength>=0,W=j=>!Buffer.isBuffer(j)&&ArrayBuffer.isView(j),Q=class{constructor(j,F,J){this.src=j,this.dest=F,this.opts=J,this.ondrain=()=>j[D](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},P=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(j,F,J){super(j,F,J),this.proxyErrors=q=>F.emit("error",q),j.on("error",this.proxyErrors)}};l.exports=class En extends s{constructor(F){super(),this[_]=!1,this[y]=!1,this.pipes=[],this.buffer=[],this[E]=F&&F.objectMode||!1,this[E]?this[g]=null:this[g]=F&&F.encoding||null,this[g]==="buffer"&&(this[g]=null),this[T]=F&&!!F.async||!1,this[b]=this[g]?new f(this[g]):null,this[a]=!1,this[t]=!1,this[h]=!1,this[c]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[w]=0,this[S]=!1}get bufferLength(){return this[w]}get encoding(){return this[g]}set encoding(F){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[g]&&F!==this[g]&&(this[b]&&this[b].lastNeed||this[w]))throw new Error("cannot change encoding");this[g]!==F&&(this[b]=F?new f(F):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[g]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[E]}set objectMode(F){this[E]=this[E]||!!F}get async(){return this[T]}set async(F){this[T]=this[T]||!!F}write(F,J,q){if(this[a])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 J=="function"&&(q=J,J="utf8"),J||(J="utf8");let ee=this[T]?k:N=>N();return!this[E]&&!Buffer.isBuffer(F)&&(W(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):G(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[E]?(this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing):F.length?(typeof F=="string"&&!(J===this[g]&&!this[b].lastNeed)&&(F=Buffer.from(F,J)),Buffer.isBuffer(F)&&this[g]&&(F=this[b].write(F)),this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing):(this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing)}read(F){if(this[S])return null;if(this[w]===0||F===0||F>this[w])return this[r](),null;this[E]&&(F=null),this.buffer.length>1&&!this[E]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[w])]);let J=this[o](F||null,this.buffer[0]);return this[r](),J}[o](F,J){return F===J.length||F===null?this[m]():(this.buffer[0]=J.slice(F),J=J.slice(0,F),this[w]-=F),this.emit("data",J),!this.buffer.length&&!this[a]&&this.emit("drain"),J}end(F,J,q){return typeof F=="function"&&(q=F,F=null),typeof J=="function"&&(q=J,J="utf8"),F&&this.write(F,J),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[S]||(this[y]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[_]=!1,this[y]=!0}get destroyed(){return this[S]}get flowing(){return this[_]}get paused(){return this[y]}[v](F){this[E]?this[w]+=1:this[w]+=F.length,this.buffer.push(F)}[m](){return this.buffer.length&&(this[E]?this[w]-=1:this[w]-=this.buffer[0].length),this.buffer.shift()}[d](F){do;while(this[p](this[m]()));!F&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,J){if(this[S])return;let q=this[t];return J=J||{},F===n.stdout||F===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,q?J.end&&F.end():(this.pipes.push(J.proxyErrors?new P(this,F,J):new Q(this,F,J)),this[T]?k(()=>this[D]()):this[D]()),F}unpipe(F){let J=this.pipes.find(q=>q.dest===F);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(F,J){return this.on(F,J)}on(F,J){let q=super.on(F,J);return F==="data"&&!this.pipes.length&&!this.flowing?this[D]():F==="readable"&&this[w]!==0?super.emit("readable"):R(F)&&this[t]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[u]&&(this[T]?k(()=>J.call(this,this[u])):J.call(this,this[u])),q}get emittedEnd(){return this[t]}[r](){!this[h]&&!this[t]&&!this[S]&&this.buffer.length===0&&this[a]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[h]=!1)}emit(F,J,...q){if(F!=="error"&&F!=="close"&&F!==S&&this[S])return;if(F==="data")return J?this[T]?k(()=>this[A](J)):this[A](J):!1;if(F==="end")return this[x]();if(F==="close"){if(this[c]=!0,!this[t]&&!this[S])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(F==="error"){this[u]=J;let N=super.emit("error",J);return this[r](),N}else if(F==="resume"){let N=super.emit("resume");return this[r](),N}else if(F==="finish"||F==="prefinish"){let N=super.emit(F);return this.removeAllListeners(F),N}let ee=super.emit(F,J,...q);return this[r](),ee}[A](F){for(let q of this.pipes)q.dest.write(F)===!1&&this.pause();let J=super.emit("data",F);return this[r](),J}[x](){this[t]||(this[t]=!0,this.readable=!1,this[T]?k(()=>this[L]()):this[L]())}[L](){if(this[b]){let J=this[b].end();if(J){for(let q of this.pipes)q.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[E]||(F.dataLength=0);let J=this.promise();return this.on("data",q=>{F.push(q),this[E]||(F.dataLength+=q.length)}),J.then(()=>F)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",q=>J(q)),this.on("end",()=>F())})}[I](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[a])return Promise.resolve({done:!0});let J=null,q=null,ee=se=>{this.removeListener("data",N),this.removeListener("end",K),q(se)},N=se=>{this.removeListener("error",ee),this.removeListener("end",K),this.pause(),J({value:se,done:!!this[a]})},K=()=>{this.removeListener("error",ee),this.removeListener("data",N),J({done:!0})},te=()=>ee(new Error("stream destroyed"));return new Promise((se,le)=>{q=le,J=se,this.once(S,te),this.once("error",ee),this.once("end",K),this.once("data",N)})}}}[$](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[S]?(F?this.emit("error",F):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[w]=0,typeof this.close=="function"&&!this[c]&&this.close(),F?this.emit("error",F):this.emit(S),this)}static isStream(F){return!!F&&(F instanceof En||F instanceof s||F instanceof i&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),wn=M(e=>{"use strict";B();var l=Z("assert"),n=Z("buffer").Buffer,i=Z("zlib"),s=e.constants=ia(),f=_n(),a=n.concat,r=Symbol("_superWrite"),t=class extends Error{constructor(R){super("zlib: "+R.message),this.code=R.code,this.errno=R.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+R.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},h=Symbol("opts"),u=Symbol("flushFlag"),c=Symbol("finishFlushFlag"),o=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),g=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),y=Symbol("ended"),D=Symbol("_defaultFullFlush"),w=class extends f{constructor(R,G){if(!R||typeof R!="object")throw new TypeError("invalid options for ZlibBase constructor");super(R),this[g]=!1,this[y]=!1,this[h]=R,this[u]=R.flush,this[c]=R.finishFlush;try{this[d]=new i[G](R)}catch(W){throw new t(W)}this[p]=W=>{this[g]||(this[g]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[p](new t(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[g])return l(this[d],"zlib binding closed"),this[d].reset()}flush(R){this.ended||(typeof R!="number"&&(R=this[o]),this.write(Object.assign(n.alloc(0),{[u]:R})))}end(R,G,W){return R&&this.write(R,G),this.flush(this[c]),this[y]=!0,super.end(null,null,W)}get ended(){return this[y]}write(R,G,W){if(typeof G=="function"&&(W=G,G="utf8"),typeof R=="string"&&(R=n.from(R,G)),this[g])return;l(this[d],"zlib binding closed");let Q=this[d]._handle,P=Q.close;Q.close=()=>{};let j=this[d].close;this[d].close=()=>{},n.concat=q=>q;let F;try{let q=typeof R[u]=="number"?R[u]:this[u];F=this[d]._processChunk(R,q),n.concat=a}catch(q){n.concat=a,this[p](new t(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=P,this[d].close=j,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new t(q)));let J;if(F)if(Array.isArray(F)&&F.length>0){J=this[r](n.from(F[0]));for(let q=1;q<F.length;q++)J=this[r](F[q])}else J=this[r](n.from(F));return W&&W(),J}[r](R){return super.write(R)}},v=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||s.Z_NO_FLUSH,R.finishFlush=R.finishFlush||s.Z_FINISH,super(R,G),this[o]=s.Z_FULL_FLUSH,this[b]=R.level,this[_]=R.strategy}params(R,G){if(!this[g]){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]!==R||this[_]!==G){this.flush(s.Z_SYNC_FLUSH),l(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(Q,P)=>{this.flush(Q),P()};try{this[d].params(R,G)}finally{this[d].flush=W}this[d]&&(this[b]=R,this[_]=G)}}}},m=class extends v{constructor(R){super(R,"Deflate")}},E=class extends v{constructor(R){super(R,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(R){super(R,"Gzip"),this[S]=R&&!!R.portable}[r](R){return this[S]?(this[S]=!1,R[9]=255,super[r](R)):super[r](R)}},x=class extends v{constructor(R){super(R,"Gunzip")}},L=class extends v{constructor(R){super(R,"DeflateRaw")}},T=class extends v{constructor(R){super(R,"InflateRaw")}},k=class extends v{constructor(R){super(R,"Unzip")}},O=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||s.BROTLI_OPERATION_PROCESS,R.finishFlush=R.finishFlush||s.BROTLI_OPERATION_FINISH,super(R,G),this[o]=s.BROTLI_OPERATION_FLUSH}},I=class extends O{constructor(R){super(R,"BrotliCompress")}},$=class extends O{constructor(R){super(R,"BrotliDecompress")}};e.Deflate=m,e.Inflate=E,e.Gzip=A,e.Gunzip=x,e.DeflateRaw=L,e.InflateRaw=T,e.Unzip=k,typeof i.BrotliCompress=="function"?(e.BrotliCompress=I,e.BrotliDecompress=$):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Ct=M((e,l)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;l.exports=n!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),pr=M((e,l)=>{"use strict";B();var n=hr(),i=Ct(),s=Symbol("slurp");l.exports=class extends n{constructor(f,a,r){switch(super(),this.pause(),this.extended=a,this.globalExtended=r,this.header=f,this.startBlockSize=512*Math.ceil(f.size/512),this.blockRemain=this.startBlockSize,this.remain=f.size,this.type=f.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(f.path),this.mode=f.mode,this.mode&&(this.mode=this.mode&4095),this.uid=f.uid,this.gid=f.gid,this.uname=f.uname,this.gname=f.gname,this.size=f.size,this.mtime=f.mtime,this.atime=f.atime,this.ctime=f.ctime,this.linkpath=i(f.linkpath),this.uname=f.uname,this.gname=f.gname,a&&this[s](a),r&&this[s](r,!0)}write(f){let a=f.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,t=this.blockRemain;return this.remain=Math.max(0,r-a),this.blockRemain=Math.max(0,t-a),this.ignore?!0:r>=a?super.write(f):super.write(f.slice(0,r))}[s](f,a){for(let r in f)f[r]!==null&&f[r]!==void 0&&!(a&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?i(f[r]):f[r])}}}),Dn=M(e=>{"use strict";B(),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(l=>[l[1],l[0]]))}),sa=M((e,l)=>{"use strict";B();var n=(u,c)=>{if(Number.isSafeInteger(u))u<0?s(u,c):i(u,c);else throw Error("cannot encode number outside of javascript safe integer range");return c},i=(u,c)=>{c[0]=128;for(var o=c.length;o>1;o--)c[o-1]=u&255,u=Math.floor(u/256)},s=(u,c)=>{c[0]=255;var o=!1;u=u*-1;for(var d=c.length;d>1;d--){var p=u&255;u=Math.floor(u/256),o?c[d-1]=t(p):p===0?c[d-1]=0:(o=!0,c[d-1]=h(p))}},f=u=>{let c=u[0],o=c===128?r(u.slice(1,u.length)):c===255?a(u):null;if(o===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(o))throw Error("parsed number outside of javascript safe integer range");return o},a=u=>{for(var c=u.length,o=0,d=!1,p=c-1;p>-1;p--){var g=u[p],b;d?b=t(g):g===0?b=g:(d=!0,b=h(g)),b!==0&&(o-=b*Math.pow(256,c-p-1))}return o},r=u=>{for(var c=u.length,o=0,d=c-1;d>-1;d--){var p=u[d];p!==0&&(o+=p*Math.pow(256,c-d-1))}return o},t=u=>(255^u)&255,h=u=>(255^u)+1&255;l.exports={encode:n,parse:f}}),xt=M((e,l)=>{"use strict";B();var n=Dn(),i=Z("path").posix,s=sa(),f=Symbol("slurp"),a=Symbol("type"),r=class{constructor(E,S,A,x){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(E)?this.decode(E,S||0,A,x):E&&this.set(E)}decode(E,S,A,x){if(S||(S=0),!E||!(E.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=h(E,S,100),this.mode=o(E,S+100,8),this.uid=o(E,S+108,8),this.gid=o(E,S+116,8),this.size=o(E,S+124,12),this.mtime=u(E,S+136,12),this.cksum=o(E,S+148,12),this[f](A),this[f](x,!0),this[a]=h(E,S+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=h(E,S+157,100),E.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=h(E,S+265,32),this.gname=h(E,S+297,32),this.devmaj=o(E,S+329,8),this.devmin=o(E,S+337,8),E[S+475]!==0){let T=h(E,S+345,155);this.path=T+"/"+this.path}else{let T=h(E,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=u(E,S+476,12),this.ctime=u(E,S+488,12)}let L=8*32;for(let T=S;T<S+148;T++)L+=E[T];for(let T=S+156;T<S+512;T++)L+=E[T];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[f](E,S){for(let A in E)E[A]!==null&&E[A]!==void 0&&!(S&&A==="path")&&(this[A]=E[A])}encode(E,S){if(E||(E=this.block=Buffer.alloc(512),S=0),S||(S=0),!(E.length>=S+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,x=t(this.path||"",A),L=x[0],T=x[1];this.needPax=x[2],this.needPax=m(E,S,100,L)||this.needPax,this.needPax=b(E,S+100,8,this.mode)||this.needPax,this.needPax=b(E,S+108,8,this.uid)||this.needPax,this.needPax=b(E,S+116,8,this.gid)||this.needPax,this.needPax=b(E,S+124,12,this.size)||this.needPax,this.needPax=w(E,S+136,12,this.mtime)||this.needPax,E[S+156]=this[a].charCodeAt(0),this.needPax=m(E,S+157,100,this.linkpath)||this.needPax,E.write("ustar\x0000",S+257,8),this.needPax=m(E,S+265,32,this.uname)||this.needPax,this.needPax=m(E,S+297,32,this.gname)||this.needPax,this.needPax=b(E,S+329,8,this.devmaj)||this.needPax,this.needPax=b(E,S+337,8,this.devmin)||this.needPax,this.needPax=m(E,S+345,A,T)||this.needPax,E[S+475]!==0?this.needPax=m(E,S+345,155,T)||this.needPax:(this.needPax=m(E,S+345,130,T)||this.needPax,this.needPax=w(E,S+476,12,this.atime)||this.needPax,this.needPax=w(E,S+488,12,this.ctime)||this.needPax);let k=8*32;for(let O=S;O<S+148;O++)k+=E[O];for(let O=S+156;O<S+512;O++)k+=E[O];return this.cksum=k,b(E,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(E){for(let S in E)E[S]!==null&&E[S]!==void 0&&(this[S]=E[S])}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(E){n.code.has(E)?this[a]=n.code.get(E):this[a]=E}},t=(E,S)=>{let A=E,x="",L,T=i.parse(E).root||".";if(Buffer.byteLength(A)<100)L=[A,x,!1];else{x=i.dirname(A),A=i.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(x)<=S?L=[A,x,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(x)<=S?L=[A.slice(0,100-1),x,!0]:(A=i.join(i.basename(x),A),x=i.dirname(x));while(x!==T&&!L);L||(L=[E.slice(0,100-1),"",!0])}return L},h=(E,S,A)=>E.slice(S,S+A).toString("utf8").replace(/\0.*/,""),u=(E,S,A)=>c(o(E,S,A)),c=E=>E===null?null:new Date(E*1e3),o=(E,S,A)=>E[S]&128?s.parse(E.slice(S,S+A)):p(E,S,A),d=E=>isNaN(E)?null:E,p=(E,S,A)=>d(parseInt(E.slice(S,S+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),g={12:8589934591,8:2097151},b=(E,S,A,x)=>x===null?!1:x>g[A]||x<0?(s.encode(x,E.slice(S,S+A)),!0):(_(E,S,A,x),!1),_=(E,S,A,x)=>E.write(y(x,A),S,A,"ascii"),y=(E,S)=>D(Math.floor(E).toString(8),S),D=(E,S)=>(E.length===S-1?E:new Array(S-E.length-1).join("0")+E+" ")+"\0",w=(E,S,A,x)=>x===null?!1:b(E,S,A,x.getTime()/1e3),v=new Array(156).join("\0"),m=(E,S,A,x)=>x===null?!1:(E.write(x+v,S,A,"utf8"),x.length!==Buffer.byteLength(x)||x.length>A);l.exports=r}),fr=M((e,l)=>{"use strict";B();var n=xt(),i=Z("path"),s=class{constructor(t,h){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=h||!1}encode(){let t=this.encodeBody();if(t==="")return null;let h=Buffer.byteLength(t),u=512*Math.ceil(1+h/512),c=Buffer.allocUnsafe(u);for(let o=0;o<512;o++)c[o]=0;new n({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:h,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(c),c.write(t,512,h,"utf8");for(let o=h+512;o<c.length;o++)c[o]=0;return c}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(t){if(this[t]===null||this[t]===void 0)return"";let h=this[t]instanceof Date?this[t].getTime()/1e3:this[t],u=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+h+`
|
|
26
|
+
`)}`}}};e.RequestError=z;var X=class extends z{constructor(Y){super(`Redirected ${Y.options.maxRedirects} times. Aborting.`,{},Y),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var re=class extends z{constructor(Y){super(`Response code ${Y.statusCode} (${Y.statusMessage})`,{},Y.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=re;var ce=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=ce;var ie=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=ie;var ue=class extends z{constructor(Y,U,oe){super(Y.message,Y,oe),this.name="TimeoutError",this.event=Y.event,this.timings=U}};e.TimeoutError=ue;var ne=class extends z{constructor(Y,U){super(Y.message,Y,U),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ne;var he=class extends z{constructor(Y){super(`Unsupported protocol "${Y.url.protocol}"`,{},Y),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=he;var be=["socket","connect","continue","information","upgrade","timeout"],De=class extends n.Duplex{constructor(Y,U={},oe){super({autoDestroy:!1,highWaterMark:0}),this[$]=0,this[G]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[J]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let ge=()=>this._unlockWrite(),pe=()=>this._lockWrite();this.on("pipe",Ee=>{Ee.prependListener("data",ge),Ee.on("data",pe),Ee.prependListener("end",ge),Ee.on("end",pe)}),this.on("unpipe",Ee=>{Ee.off("data",ge),Ee.off("data",pe),Ee.off("end",ge),Ee.off("end",pe)}),this.on("pipe",Ee=>{Ee instanceof a.IncomingMessage&&(this.options.headers={...Ee.headers,...this.options.headers})});let{json:ae,body:fe,form:ve}=U;if((ae||fe||ve)&&this._lockWrite(),e.kIsNormalizedAlready in U)this.options=U;else try{this.options=this.constructor.normalizeArguments(Y,U,oe)}catch(Ee){p.default.nodeStream(U.body)&&U.body.destroy(),this.destroy(Ee);return}(async()=>{var Ee;try{this.options.body instanceof i.ReadStream&&await H(this.options.body);let{url:Le}=this.options;if(!Le)throw new TypeError("Missing `url` property");if(this.requestUrl=Le.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ee=this[x])===null||Ee===void 0||Ee.destroy();return}for(let Pe of this[N])Pe();this[N].length=0,this.requestInitialized=!0}catch(Le){if(Le instanceof z){this._beforeError(Le);return}this.destroyed||this.destroy(Le)}})()}static normalizeArguments(Y,U,oe){var ge,pe,ae,fe,ve;let Ee=U;if(p.default.object(Y)&&!p.default.urlInstance(Y))U={...oe,...Y,...U};else{if(Y&&U&&U.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");U={...oe,...U},Y!==void 0&&(U.url=Y),p.default.urlInstance(U.url)&&(U.url=new s.URL(U.url.toString()))}if(U.cache===!1&&(U.cache=void 0),U.dnsCache===!1&&(U.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],U.method),p.assert.any([p.default.object,p.default.undefined],U.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],U.prefixUrl),p.assert.any([p.default.object,p.default.undefined],U.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],U.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],U.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],U.timeout),p.assert.any([p.default.object,p.default.undefined],U.context),p.assert.any([p.default.object,p.default.undefined],U.hooks),p.assert.any([p.default.boolean,p.default.undefined],U.decompress),p.assert.any([p.default.boolean,p.default.undefined],U.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],U.followRedirect),p.assert.any([p.default.number,p.default.undefined],U.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],U.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],U.http2),p.assert.any([p.default.boolean,p.default.undefined],U.allowGetBody),p.assert.any([p.default.string,p.default.undefined],U.localAddress),p.assert.any([E.isDnsLookupIpVersion,p.default.undefined],U.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],U.https),p.assert.any([p.default.boolean,p.default.undefined],U.rejectUnauthorized),U.https&&(p.assert.any([p.default.boolean,p.default.undefined],U.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],U.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],U.https.certificate),p.assert.any([p.default.string,p.default.undefined],U.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],U.https.pfx)),p.assert.any([p.default.object,p.default.undefined],U.cacheOptions),p.default.string(U.method)?U.method=U.method.toUpperCase():U.method="GET",U.headers===(oe==null?void 0:oe.headers)?U.headers={...U.headers}:U.headers=d({...oe==null?void 0:oe.headers,...U.headers}),"slashes"in U)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in U)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in U&&U.searchParams&&U.searchParams!==(oe==null?void 0:oe.searchParams)){let _e;if(p.default.string(U.searchParams)||U.searchParams instanceof s.URLSearchParams)_e=new s.URLSearchParams(U.searchParams);else{le(U.searchParams),_e=new s.URLSearchParams;for(let Oe in U.searchParams){let Re=U.searchParams[Oe];Re===null?_e.append(Oe,""):Re!==void 0&&_e.append(Oe,Re)}}(ge=oe==null?void 0:oe.searchParams)===null||ge===void 0||ge.forEach((Oe,Re)=>{_e.has(Re)||_e.append(Re,Oe)}),U.searchParams=_e}if(U.username=(pe=U.username)!==null&&pe!==void 0?pe:"",U.password=(ae=U.password)!==null&&ae!==void 0?ae:"",p.default.undefined(U.prefixUrl)?U.prefixUrl=(fe=oe==null?void 0:oe.prefixUrl)!==null&&fe!==void 0?fe:"":(U.prefixUrl=U.prefixUrl.toString(),U.prefixUrl!==""&&!U.prefixUrl.endsWith("/")&&(U.prefixUrl+="/")),p.default.string(U.url)){if(U.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");U.url=w.default(U.prefixUrl+U.url,U)}else(p.default.undefined(U.url)&&U.prefixUrl!==""||U.protocol)&&(U.url=w.default(U.prefixUrl,U));if(U.url){"port"in U&&delete U.port;let{prefixUrl:_e}=U;Object.defineProperty(U,"prefixUrl",{set:Re=>{let Se=U.url;if(!Se.href.startsWith(Re))throw new Error(`Cannot change \`prefixUrl\` from ${_e} to ${Re}: ${Se.href}`);U.url=new s.URL(Re+Se.href.slice(_e.length)),_e=Re},get:()=>_e});let{protocol:Oe}=U.url;if(Oe==="unix:"&&(Oe="http:",U.url=new s.URL(`http://unix${U.url.pathname}${U.url.search}`)),U.searchParams&&(U.url.search=U.searchParams.toString()),Oe!=="http:"&&Oe!=="https:")throw new he(U);U.username===""?U.username=U.url.username:U.url.username=U.username,U.password===""?U.password=U.url.password:U.url.password=U.password}let{cookieJar:Le}=U;if(Le){let{setCookie:_e,getCookieString:Oe}=Le;p.assert.function_(_e),p.assert.function_(Oe),_e.length===4&&Oe.length===0&&(_e=l.promisify(_e.bind(U.cookieJar)),Oe=l.promisify(Oe.bind(U.cookieJar)),U.cookieJar={setCookie:_e,getCookieString:Oe})}let{cache:Pe}=U;if(Pe&&(de.has(Pe)||de.set(Pe,new u((_e,Oe)=>{let Re=_e[x](_e,Oe);return p.default.promise(Re)&&(Re.once=(Se,Ae)=>{if(Se==="error")Re.catch(Ae);else if(Se==="abort")(async()=>{try{(await Re).once("abort",Ae)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Se}`);return Re}),Re},Pe))),U.cacheOptions={...U.cacheOptions},U.dnsCache===!0)T||(T=new h.default),U.dnsCache=T;else if(!p.default.undefined(U.dnsCache)&&!U.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default(U.dnsCache)}`);p.default.number(U.timeout)?U.timeout={request:U.timeout}:oe&&U.timeout!==oe.timeout?U.timeout={...oe.timeout,...U.timeout}:U.timeout={...U.timeout},U.context||(U.context={});let Mt=U.hooks===(oe==null?void 0:oe.hooks);U.hooks={...U.hooks};for(let _e of e.knownHookEvents)if(_e in U.hooks)if(p.default.array(U.hooks[_e]))U.hooks[_e]=[...U.hooks[_e]];else throw new TypeError(`Parameter \`${_e}\` must be an Array, got ${p.default(U.hooks[_e])}`);else U.hooks[_e]=[];if(oe&&!Mt)for(let _e of e.knownHookEvents)oe.hooks[_e].length>0&&(U.hooks[_e]=[...oe.hooks[_e],...U.hooks[_e]]);if("family"in U&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),oe!=null&&oe.https&&(U.https={...oe.https,...U.https}),"rejectUnauthorized"in U&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in U&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in U&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in U&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in U&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in U&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in U&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in U)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(U.agent){for(let _e in U.agent)if(_e!=="http"&&_e!=="https"&&_e!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${_e}\``)}return U.maxRedirects=(ve=U.maxRedirects)!==null&&ve!==void 0?ve:0,e.setNonEnumerableProperties([oe,Ee],U),k.default(U,oe)}_lockWrite(){let Y=()=>{throw new TypeError("The payload has been already provided")};this.write=Y,this.end=Y}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:Y}=this,{headers:U}=Y,oe=!p.default.undefined(Y.form),ge=!p.default.undefined(Y.json),pe=!p.default.undefined(Y.body),ae=oe||ge||pe,fe=e.withoutBody.has(Y.method)&&!(Y.method==="GET"&&Y.allowGetBody);if(this._cannotHaveBody=fe,ae){if(fe)throw new TypeError(`The \`${Y.method}\` method cannot be used with a body`);if([pe,oe,ge].filter(ve=>ve).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(pe&&!(Y.body instanceof n.Readable)&&!p.default.string(Y.body)&&!p.default.buffer(Y.body)&&!b.default(Y.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(oe&&!p.default.object(Y.form))throw new TypeError("The `form` option must be an Object");{let ve=!p.default.string(U["content-type"]);pe?(b.default(Y.body)&&ve&&(U["content-type"]=`multipart/form-data; boundary=${Y.body.getBoundary()}`),this[ee]=Y.body):oe?(ve&&(U["content-type"]="application/x-www-form-urlencoded"),this[ee]=new s.URLSearchParams(Y.form).toString()):(ve&&(U["content-type"]="application/json"),this[ee]=Y.stringifyJson(Y.json));let Ee=await g.default(this[ee],Y.headers);p.default.undefined(U["content-length"])&&p.default.undefined(U["transfer-encoding"])&&!fe&&!p.default.undefined(Ee)&&(U["content-length"]=String(Ee))}}else fe?this._lockWrite():this._unlockWrite();this[R]=Number(U["content-length"])||void 0}async _onResponseBase(Y){let{options:U}=this,{url:oe}=U;this[K]=Y,U.decompress&&(Y=c(Y));let ge=Y.statusCode,pe=Y;pe.statusMessage=pe.statusMessage?pe.statusMessage:f.STATUS_CODES[ge],pe.url=U.url.toString(),pe.requestUrl=this.requestUrl,pe.redirectUrls=this.redirects,pe.request=this,pe.isFromCache=Y.fromCache||!1,pe.ip=this.ip,pe.retryCount=this.retryCount,this[P]=pe.isFromCache,this[I]=Number(Y.headers["content-length"])||void 0,this[O]=Y,Y.once("end",()=>{this[I]=this[$],this.emit("downloadProgress",this.downloadProgress)}),Y.once("error",fe=>{Y.destroy(),this._beforeError(new ne(fe,this))}),Y.once("aborted",()=>{this._beforeError(new ne({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let ae=Y.headers["set-cookie"];if(p.default.object(U.cookieJar)&&ae){let fe=ae.map(async ve=>U.cookieJar.setCookie(ve,oe.toString()));U.ignoreInvalidCookies&&(fe=fe.map(async ve=>ve.catch(()=>{})));try{await Promise.all(fe)}catch(ve){this._beforeError(ve);return}}if(U.followRedirect&&Y.headers.location&&V.has(ge)){if(Y.resume(),this[x]&&(this[j](),delete this[x],this[Q]()),(ge===303&&U.method!=="GET"&&U.method!=="HEAD"||!U.methodRewriting)&&(U.method="GET","body"in U&&delete U.body,"json"in U&&delete U.json,"form"in U&&delete U.form,this[ee]=void 0,delete U.headers["content-length"]),this.redirects.length>=U.maxRedirects){this._beforeError(new X(this));return}try{let fe=function(Pe){return Pe.protocol==="unix:"||Pe.hostname==="unix"},ve=Buffer.from(Y.headers.location,"binary").toString(),Ee=new s.URL(ve,oe),Le=Ee.toString();if(decodeURI(Le),!fe(oe)&&fe(Ee)){this._beforeError(new z("Cannot redirect to UNIX socket",{},this));return}Ee.hostname!==oe.hostname||Ee.port!==oe.port?("host"in U.headers&&delete U.headers.host,"cookie"in U.headers&&delete U.headers.cookie,"authorization"in U.headers&&delete U.headers.authorization,(U.username||U.password)&&(U.username="",U.password="")):(Ee.username=U.username,Ee.password=U.password),this.redirects.push(Le),U.url=Ee;for(let Pe of U.hooks.beforeRedirect)await Pe(U,pe);this.emit("redirect",pe,U),await this._makeRequest()}catch(fe){this._beforeError(fe);return}return}if(U.isStream&&U.throwHttpErrors&&!S.isResponseOk(pe)){this._beforeError(new re(pe));return}Y.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{Y.resume()}),this.on("pause",()=>{Y.pause()}),Y.once("end",()=>{this.push(null)}),this.emit("response",Y);for(let fe of this[W])if(!fe.headersSent){for(let ve in Y.headers){let Ee=U.decompress?ve!=="content-encoding":!0,Le=Y.headers[ve];Ee&&fe.setHeader(ve,Le)}fe.statusCode=ge}}async _onResponse(Y){try{await this._onResponseBase(Y)}catch(U){this._beforeError(U)}}_onRequest(Y){let{options:U}=this,{timeout:oe,url:ge}=U;t.default(Y),this[j]=y.default(Y,oe,ge);let pe=U.cache?"cacheableResponse":"response";Y.once(pe,ve=>{this._onResponse(ve)}),Y.once("error",ve=>{var Ee;Y.destroy(),(Ee=Y.res)===null||Ee===void 0||Ee.removeAllListeners("end"),ve=ve instanceof y.TimeoutError?new ue(ve,this.timings,this):new z(ve.message,ve,this),this._beforeError(ve)}),this[Q]=_.default(Y,this,be),this[x]=Y,this.emit("uploadProgress",this.uploadProgress);let ae=this[ee],fe=this.redirects.length===0?this:Y;p.default.nodeStream(ae)?(ae.pipe(fe),ae.once("error",ve=>{this._beforeError(new ie(ve,this))})):(this._unlockWrite(),p.default.undefined(ae)?(this._cannotHaveBody||this._noPipe)&&(fe.end(),this._lockWrite()):(this._writeRequest(ae,void 0,()=>{}),fe.end(),this._lockWrite())),this.emit("request",Y)}async _createCacheableRequest(Y,U){return new Promise((oe,ge)=>{Object.assign(U,D.default(Y)),delete U.url;let pe,ae=de.get(U.cache)(U,async fe=>{fe._readableState.autoDestroy=!1,pe&&(await pe).emit("cacheableResponse",fe),oe(fe)});U.url=Y,ae.once("error",ge),ae.once("request",async fe=>{pe=fe,oe(pe)})})}async _makeRequest(){var Y,U,oe,ge,pe;let{options:ae}=this,{headers:fe}=ae;for(let Ae in fe)if(p.default.undefined(fe[Ae]))delete fe[Ae];else if(p.default.null_(fe[Ae]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ae}\` header`);if(ae.decompress&&p.default.undefined(fe["accept-encoding"])&&(fe["accept-encoding"]=se?"gzip, deflate, br":"gzip, deflate"),ae.cookieJar){let Ae=await ae.cookieJar.getCookieString(ae.url.toString());p.default.nonEmptyString(Ae)&&(ae.headers.cookie=Ae)}for(let Ae of ae.hooks.beforeRequest){let jt=await Ae(ae);if(!p.default.undefined(jt)){ae.request=()=>jt;break}}ae.body&&this[ee]!==ae.body&&(this[ee]=ae.body);let{agent:ve,request:Ee,timeout:Le,url:Pe}=ae;if(ae.dnsCache&&!("lookup"in ae)&&(ae.lookup=ae.dnsCache.lookup),Pe.hostname==="unix"){let Ae=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Pe.pathname}${Pe.search}`);if(Ae!=null&&Ae.groups){let{socketPath:jt,path:$i}=Ae.groups;Object.assign(ae,{socketPath:jt,path:$i,host:""})}}let Mt=Pe.protocol==="https:",_e;ae.http2?_e=o.auto:_e=Mt?r.request:f.request;let Oe=(Y=ae.request)!==null&&Y!==void 0?Y:_e,Re=ae.cache?this._createCacheableRequest:Oe;ve&&!ae.http2&&(ae.agent=ve[Mt?"https":"http"]),ae[x]=Oe,delete ae.request,delete ae.timeout;let Se=ae;if(Se.shared=(U=ae.cacheOptions)===null||U===void 0?void 0:U.shared,Se.cacheHeuristic=(oe=ae.cacheOptions)===null||oe===void 0?void 0:oe.cacheHeuristic,Se.immutableMinTimeToLive=(ge=ae.cacheOptions)===null||ge===void 0?void 0:ge.immutableMinTimeToLive,Se.ignoreCargoCult=(pe=ae.cacheOptions)===null||pe===void 0?void 0:pe.ignoreCargoCult,ae.dnsLookupIpVersion!==void 0)try{Se.family=E.dnsLookupIpVersionToFamily(ae.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}ae.https&&("rejectUnauthorized"in ae.https&&(Se.rejectUnauthorized=ae.https.rejectUnauthorized),ae.https.checkServerIdentity&&(Se.checkServerIdentity=ae.https.checkServerIdentity),ae.https.certificateAuthority&&(Se.ca=ae.https.certificateAuthority),ae.https.certificate&&(Se.cert=ae.https.certificate),ae.https.key&&(Se.key=ae.https.key),ae.https.passphrase&&(Se.passphrase=ae.https.passphrase),ae.https.pfx&&(Se.pfx=ae.https.pfx));try{let Ae=await Re(Pe,Se);p.default.undefined(Ae)&&(Ae=_e(Pe,Se)),ae.request=Ee,ae.timeout=Le,ae.agent=ve,ae.https&&("rejectUnauthorized"in ae.https&&delete Se.rejectUnauthorized,ae.https.checkServerIdentity&&delete Se.checkServerIdentity,ae.https.certificateAuthority&&delete Se.ca,ae.https.certificate&&delete Se.cert,ae.https.key&&delete Se.key,ae.https.passphrase&&delete Se.passphrase,ae.https.pfx&&delete Se.pfx),ye(Ae)?this._onRequest(Ae):this.writable?(this.once("finish",()=>{this._onResponse(Ae)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ae)}catch(Ae){throw Ae instanceof u.CacheError?new ce(Ae,this):new z(Ae.message,Ae,this)}}async _error(Y){try{for(let U of this.options.hooks.beforeError)Y=await U(Y)}catch(U){Y=new z(U.message,U,this)}this.destroy(Y)}_beforeError(Y){if(this[J])return;let{options:U}=this,oe=this.retryCount+1;this[J]=!0,Y instanceof z||(Y=new z(Y.message,Y,this));let ge=Y,{response:pe}=ge;(async()=>{if(pe&&!pe.body){pe.setEncoding(this._readableState.encoding);try{pe.rawBody=await m.default(pe),pe.body=pe.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let ae;try{let fe;pe&&"retry-after"in pe.headers&&(fe=Number(pe.headers["retry-after"]),Number.isNaN(fe)?(fe=Date.parse(pe.headers["retry-after"])-Date.now(),fe<=0&&(fe=1)):fe*=1e3),ae=await U.retry.calculateDelay({attemptCount:oe,retryOptions:U.retry,error:ge,retryAfter:fe,computedValue:L.default({attemptCount:oe,retryOptions:U.retry,error:ge,retryAfter:fe,computedValue:0})})}catch(fe){this._error(new z(fe.message,fe,this));return}if(ae){let fe=async()=>{try{for(let ve of this.options.hooks.beforeRetry)await ve(this.options,ge,oe)}catch(ve){this._error(new z(ve.message,Y,this));return}this.destroyed||(this.destroy(),this.emit("retry",oe,Y))};this[te]=setTimeout(fe,ae);return}}this._error(ge)})()}_read(){this[q]=!0;let Y=this[O];if(Y&&!this[J]){Y.readableLength&&(this[q]=!1);let U;for(;(U=Y.read())!==null;){this[$]+=U.length,this[F]=!0;let oe=this.downloadProgress;oe.percent<1&&this.emit("downloadProgress",oe),this.push(U)}}}_write(Y,U,oe){let ge=()=>{this._writeRequest(Y,U,oe)};this.requestInitialized?ge():this[N].push(ge)}_writeRequest(Y,U,oe){this[x].destroyed||(this._progressCallbacks.push(()=>{this[G]+=Buffer.byteLength(Y,U);let ge=this.uploadProgress;ge.percent<1&&this.emit("uploadProgress",ge)}),this[x].write(Y,U,ge=>{!ge&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),oe(ge)}))}_final(Y){let U=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(x in this)){Y();return}if(this[x].destroyed){Y();return}this[x].end(oe=>{oe||(this[R]=this[G],this.emit("uploadProgress",this.uploadProgress),this[x].emit("upload-complete")),Y(oe)})};this.requestInitialized?U():this[N].push(U)}_destroy(Y,U){var oe;this[J]=!0,clearTimeout(this[te]),x in this&&(this[j](),!((oe=this[O])===null||oe===void 0)&&oe.complete||this[x].destroy()),Y!==null&&!p.default.undefined(Y)&&!(Y instanceof z)&&(Y=new z(Y.message,Y,this)),U(Y)}get _isAboutToError(){return this[J]}get ip(){var Y;return(Y=this.socket)===null||Y===void 0?void 0:Y.remoteAddress}get aborted(){var Y,U,oe;return((U=(Y=this[x])===null||Y===void 0?void 0:Y.destroyed)!==null&&U!==void 0?U:this.destroyed)&&!(!((oe=this[K])===null||oe===void 0)&&oe.complete)}get socket(){var Y,U;return(U=(Y=this[x])===null||Y===void 0?void 0:Y.socket)!==null&&U!==void 0?U:void 0}get downloadProgress(){let Y;return this[I]?Y=this[$]/this[I]:this[I]===this[$]?Y=1:Y=0,{percent:Y,transferred:this[$],total:this[I]}}get uploadProgress(){let Y;return this[R]?Y=this[G]/this[R]:this[R]===this[G]?Y=1:Y=0,{percent:Y,transferred:this[G],total:this[R]}}get timings(){var Y;return(Y=this[x])===null||Y===void 0?void 0:Y.timings}get isFromCache(){return this[P]}pipe(Y,U){if(this[F])throw new Error("Failed to pipe. The response has been emitted already.");return Y instanceof a.ServerResponse&&this[W].add(Y),super.pipe(Y,U)}unpipe(Y){return Y instanceof a.ServerResponse&&this[W].delete(Y),super.unpipe(Y),this}};e.default=De}),Gt=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(a,r,t,h){h===void 0&&(h=t),Object.defineProperty(a,h,{enumerable:!0,get:function(){return r[t]}})}:function(a,r,t,h){h===void 0&&(h=t),a[h]=r[t]}),n=e&&e.__exportStar||function(a,r){for(var t in a)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&l(r,a,t)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var i=Ut(),s=class extends i.RequestError{constructor(a,r){let{options:t}=r.request;super(`${a.message} in "${t.url.toString()}"`,a,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=s;var f=class extends i.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=f,n(Ut(),e)}),Qo=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Gt(),n=(i,s,f,a)=>{let{rawBody:r}=i;try{if(s==="text")return r.toString(a);if(s==="json")return r.length===0?"":f(r.toString());if(s==="buffer")return r;throw new l.ParseError({message:`Unknown body type '${s}'`,name:"Error"},i)}catch(t){throw new l.ParseError(t,i)}};e.default=n}),bn=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(p,g,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return g[b]}})}:function(p,g,b,_){_===void 0&&(_=b),p[_]=g[b]}),n=e&&e.__exportStar||function(p,g){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&l(g,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var i=Z("events"),s=Xe(),f=go(),a=Gt(),r=Qo(),t=Ut(),h=mn(),u=yn(),c=gn(),o=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let g,b,_=new i.EventEmitter,y=new f((w,v,m)=>{let E=S=>{let A=new t.default(void 0,p);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(A))),g=A,A.once("response",async T=>{var x;if(T.retryCount=S,T.request.aborted)return;let O;try{O=await u.default(A),T.rawBody=O}catch{return}if(A._isAboutToError)return;let I=((x=T.headers["content-encoding"])!==null&&x!==void 0?x:"").toLowerCase(),$=["gzip","deflate","br"].includes(I),{options:R}=A;if($&&!R.decompress)T.body=O;else try{T.body=r.default(T,R.responseType,R.parseJson,R.encoding)}catch(G){if(T.body=O.toString(),c.isResponseOk(T)){A._beforeError(G);return}}try{for(let[G,W]of R.hooks.afterResponse.entries())T=await W(T,async Q=>{let P=t.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},R);P.hooks.afterResponse=P.hooks.afterResponse.slice(0,G);for(let F of P.hooks.beforeRetry)await F(P);let j=d(P);return m(()=>{j.catch(()=>{}),j.cancel()}),j})}catch(G){A._beforeError(new a.RequestError(G.message,G,A));return}if(b=T,!c.isResponseOk(T)){A._beforeError(new a.HTTPError(T));return}A.destroy(),w(A.options.resolveBodyOnly?T.body:T)});let k=T=>{if(y.isCanceled)return;let{options:x}=A;if(T instanceof a.HTTPError&&!x.throwHttpErrors){let{response:O}=T;w(A.options.resolveBodyOnly?O.body:O);return}v(T)};A.once("error",k);let L=A.options.body;A.once("retry",(T,x)=>{var O,I;if(L===((O=x.request)===null||O===void 0?void 0:O.options.body)&&s.default.nodeStream((I=x.request)===null||I===void 0?void 0:I.options.body)){k(x);return}E(T)}),h.default(A,_,o)};E(0)});y.on=(w,v)=>(_.on(w,v),y);let D=w=>{let v=(async()=>{await y;let{options:m}=b.request;return r.default(b,w,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)),v};return y.json=()=>{let{headers:w}=g.options;return!g.writableFinished&&w.accept===void 0&&(w.accept="application/json"),D("json")},y.buffer=()=>D("buffer"),y.text=()=>D("text"),y}e.default=d,n(Gt(),e)}),ea=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Gt();function n(i,...s){let f=(async()=>{if(i instanceof l.RequestError)try{for(let r of s)if(r)for(let t of r)i=await t(i)}catch(r){i=r}throw i})(),a=()=>f;return f.json=a,f.text=a,f.buffer=a,f.on=a,f}e.default=n}),ta=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Xe();function n(i){for(let s of Object.values(i))(l.default.plainObject(s)||l.default.array(s))&&n(s);return Object.freeze(i)}e.default=n}),ra=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0})}),an=M(e=>{"use strict";B();var l=e&&e.__createBinding||(Object.create?function(_,y,D,w){w===void 0&&(w=D),Object.defineProperty(_,w,{enumerable:!0,get:function(){return y[D]}})}:function(_,y,D,w){w===void 0&&(w=D),_[w]=y[D]}),n=e&&e.__exportStar||function(_,y){for(var D in _)D!=="default"&&!Object.prototype.hasOwnProperty.call(y,D)&&l(y,_,D)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var i=Xe(),s=bn(),f=ea(),a=Ut(),r=ta(),t={RequestError:s.RequestError,CacheError:s.CacheError,ReadError:s.ReadError,HTTPError:s.HTTPError,MaxRedirectsError:s.MaxRedirectsError,TimeoutError:s.TimeoutError,ParseError:s.ParseError,CancelError:s.CancelError,UnsupportedProtocolError:s.UnsupportedProtocolError,UploadError:s.UploadError},h=async _=>new Promise(y=>{setTimeout(y,_)}),{normalizeArguments:u}=a.default,c=(..._)=>{let y;for(let D of _)y=u(void 0,D,y);return y},o=_=>_.isStream?new a.default(void 0,_):s.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,y)=>y(_);var g=(_,y)=>{if(_)for(let D of _)D(y)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(w=>(v,m)=>{let E,S=w(v,A=>(E=m(A),E));if(S!==E&&!v.isStream&&E){let A=S,{then:k,catch:L,finally:T}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(E)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(E)),A.then=k,A.catch=L,A.finally=T}return S});let y=(w,v={},m)=>{var E,S;let A=0,k=L=>_.handlers[A++](L,A===_.handlers.length?o:k);if(i.default.plainObject(w)){let L={...w,...v};a.setNonEnumerableProperties([w,v],L),v=L,w=void 0}try{let L;try{g(_.options.hooks.init,v),g((E=v.hooks)===null||E===void 0?void 0:E.init,v)}catch(x){L=x}let T=u(w,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,L)throw new s.RequestError(L.message,L,T);return k(T)}catch(L){if(v.isStream)throw L;return f.default(L,_.options.hooks.beforeError,(S=v.hooks)===null||S===void 0?void 0:S.beforeError)}};y.extend=(...w)=>{let v=[_.options],m=[..._._rawHandlers],E;for(let S of w)d(S)?(v.push(S.defaults.options),m.push(...S.defaults._rawHandlers),E=S.defaults.mutableDefaults):(v.push(S),"handlers"in S&&m.push(...S.handlers),E=S.mutableDefaults);return m=m.filter(S=>S!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:c(...v),handlers:m,mutableDefaults:Boolean(E)})};let D=async function*(w,v){let m=u(w,v,_.options);m.resolveBodyOnly=!1;let E=m.pagination;if(!i.default.object(E))throw new TypeError("`options.pagination` must be implemented");let S=[],{countLimit:A}=E,k=0;for(;k<E.requestLimit;){k!==0&&await h(E.backoff);let L=await y(void 0,void 0,m),T=await E.transform(L),x=[];for(let I of T)if(E.filter(I,S,x)&&(!E.shouldContinue(I,S,x)||(yield I,E.stackAllItems&&S.push(I),x.push(I),--A<=0)))return;let O=E.paginate(L,S,x);if(O===!1)return;O===L.request.options?m=L.request.options:O!==void 0&&(m=u(void 0,O,m)),k++}};y.paginate=D,y.paginate.all=async(w,v)=>{let m=[];for await(let E of D(w,v))m.push(E);return m},y.paginate.each=D,y.stream=(w,v)=>y(w,{...v,isStream:!0});for(let w of p)y[w]=(v,m)=>y(v,{...m,method:w}),y.stream[w]=(v,m)=>y(v,{...m,method:w,isStream:!0});return Object.assign(y,t),Object.defineProperty(y,"defaults",{value:_.mutableDefaults?_:r.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),y.mergeOptions=c,y};e.default=b,n(ra(),e)}),na=M((e,l)=>{"use strict";B();var n=e&&e.__createBinding||(Object.create?function(t,h,u,c){c===void 0&&(c=u),Object.defineProperty(t,c,{enumerable:!0,get:function(){return h[u]}})}:function(t,h,u,c){c===void 0&&(c=u),t[c]=h[u]}),i=e&&e.__exportStar||function(t,h){for(var u in t)u!=="default"&&!Object.prototype.hasOwnProperty.call(h,u)&&n(h,t,u)};Object.defineProperty(e,"__esModule",{value:!0});var s=Z("url"),f=an(),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:t})=>t},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:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let h=t.headers.link.split(","),u;for(let c of h){let o=c.split(";");if(o[1].includes("next")){u=o[0].trimStart().trim(),u=u.slice(1,-1);break}}return u?{url:new s.URL(u)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[f.defaultHandler],mutableDefaults:!1},r=f.default(a);e.default=r,l.exports=r,l.exports.default=r,l.exports.__esModule=!0,i(an(),e),i(bn(),e)}),At=M((e,l)=>{"use strict";B();var n=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"]]);l.exports=i=>i?Object.keys(i).map(s=>[n.has(s)?n.get(s):s,i[s]]).reduce((s,f)=>(s[f[0]]=f[1],s),Object.create(null)):{}}),hr=M((e,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=Z("events"),s=Z("stream"),f=Z("string_decoder").StringDecoder,a=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),h=Symbol("emittingEnd"),u=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),E=Symbol("bufferPush"),S=Symbol("bufferShift"),A=Symbol("objectMode"),k=Symbol("destroyed"),L=Symbol("emitData"),T=Symbol("emitEnd"),x=Symbol("emitEnd2"),O=Symbol("async"),I=J=>Promise.resolve().then(J),$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=$&&Symbol.iterator||Symbol("iterator not implemented"),W=J=>J==="end"||J==="finish"||J==="prefinish",Q=J=>J instanceof ArrayBuffer||typeof J=="object"&&J.constructor&&J.constructor.name==="ArrayBuffer"&&J.byteLength>=0,P=J=>!Buffer.isBuffer(J)&&ArrayBuffer.isView(J),j=class{constructor(J,q,ee){this.src=J,this.dest=q,this.opts=ee,this.ondrain=()=>J[D](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},F=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,q,ee){super(J,q,ee),this.proxyErrors=N=>q.emit("error",N),J.on("error",this.proxyErrors)}};l.exports=class vn extends s{constructor(q){super(),this[_]=!1,this[y]=!1,this[v]=[],this[w]=[],this[A]=q&&q.objectMode||!1,this[A]?this[g]=null:this[g]=q&&q.encoding||null,this[g]==="buffer"&&(this[g]=null),this[O]=q&&!!q.async||!1,this[b]=this[g]?new f(this[g]):null,this[a]=!1,this[t]=!1,this[h]=!1,this[c]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[m]=0,this[k]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[w]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[g]}set encoding(q){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[g]&&q!==this[g]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[g]!==q&&(this[b]=q?new f(q):null,this[w].length&&(this[w]=this[w].map(ee=>this[b].write(ee)))),this[g]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[A]}set objectMode(q){this[A]=this[A]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,ee,N){if(this[a])throw new Error("write after end");if(this[k])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof ee=="function"&&(N=ee,ee="utf8"),ee||(ee="utf8");let K=this[O]?I:te=>te();return!this[A]&&!Buffer.isBuffer(q)&&(P(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[E](q),this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing):q.length?(typeof q=="string"&&!(ee===this[g]&&!this[b].lastNeed)&&(q=Buffer.from(q,ee)),Buffer.isBuffer(q)&&this[g]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[E](q),this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&K(N),this.flowing)}read(q){if(this[k])return null;if(this[m]===0||q===0||q>this[m])return this[r](),null;this[A]&&(q=null),this[w].length>1&&!this[A]&&(this.encoding?this[w]=[this[w].join("")]:this[w]=[Buffer.concat(this[w],this[m])]);let ee=this[o](q||null,this[w][0]);return this[r](),ee}[o](q,ee){return q===ee.length||q===null?this[S]():(this[w][0]=ee.slice(q),ee=ee.slice(0,q),this[m]-=q),this.emit("data",ee),!this[w].length&&!this[a]&&this.emit("drain"),ee}end(q,ee,N){return typeof q=="function"&&(N=q,q=null),typeof ee=="function"&&(N=ee,ee="utf8"),q&&this.write(q,ee),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[k]||(this[y]=!1,this[_]=!0,this.emit("resume"),this[w].length?this[d]():this[a]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[_]=!1,this[y]=!0}get destroyed(){return this[k]}get flowing(){return this[_]}get paused(){return this[y]}[E](q){this[A]?this[m]+=1:this[m]+=q.length,this[w].push(q)}[S](){return this[w].length&&(this[A]?this[m]-=1:this[m]-=this[w][0].length),this[w].shift()}[d](q){do;while(this[p](this[S]()));!q&&!this[w].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,ee){if(this[k])return;let N=this[t];return ee=ee||{},q===n.stdout||q===n.stderr?ee.end=!1:ee.end=ee.end!==!1,ee.proxyErrors=!!ee.proxyErrors,N?ee.end&&q.end():(this[v].push(ee.proxyErrors?new F(this,q,ee):new j(this,q,ee)),this[O]?I(()=>this[D]()):this[D]()),q}unpipe(q){let ee=this[v].find(N=>N.dest===q);ee&&(this[v].splice(this[v].indexOf(ee),1),ee.unpipe())}addListener(q,ee){return this.on(q,ee)}on(q,ee){let N=super.on(q,ee);return q==="data"&&!this[v].length&&!this.flowing?this[D]():q==="readable"&&this[m]!==0?super.emit("readable"):W(q)&&this[t]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[u]&&(this[O]?I(()=>ee.call(this,this[u])):ee.call(this,this[u])),N}get emittedEnd(){return this[t]}[r](){!this[h]&&!this[t]&&!this[k]&&this[w].length===0&&this[a]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[h]=!1)}emit(q,ee,...N){if(q!=="error"&&q!=="close"&&q!==k&&this[k])return;if(q==="data")return ee?this[O]?I(()=>this[L](ee)):this[L](ee):!1;if(q==="end")return this[T]();if(q==="close"){if(this[c]=!0,!this[t]&&!this[k])return;let te=super.emit("close");return this.removeAllListeners("close"),te}else if(q==="error"){this[u]=ee;let te=super.emit("error",ee);return this[r](),te}else if(q==="resume"){let te=super.emit("resume");return this[r](),te}else if(q==="finish"||q==="prefinish"){let te=super.emit(q);return this.removeAllListeners(q),te}let K=super.emit(q,ee,...N);return this[r](),K}[L](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let ee=super.emit("data",q);return this[r](),ee}[T](){this[t]||(this[t]=!0,this.readable=!1,this[O]?I(()=>this[x]()):this[x]())}[x](){if(this[b]){let ee=this[b].end();if(ee){for(let N of this[v])N.dest.write(ee);super.emit("data",ee)}}for(let ee of this[v])ee.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[A]||(q.dataLength=0);let ee=this.promise();return this.on("data",N=>{q.push(N),this[A]||(q.dataLength+=N.length)}),ee.then(()=>q)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,ee)=>{this.on(k,()=>ee(new Error("stream destroyed"))),this.on("error",N=>ee(N)),this.on("end",()=>q())})}[R](){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 ee=null,N=null,K=ye=>{this.removeListener("data",te),this.removeListener("end",se),N(ye)},te=ye=>{this.removeListener("error",K),this.removeListener("end",se),this.pause(),ee({value:ye,done:!!this[a]})},se=()=>{this.removeListener("error",K),this.removeListener("data",te),ee({done:!0})},le=()=>K(new Error("stream destroyed"));return new Promise((ye,de)=>{N=de,ee=ye,this.once(k,le),this.once("error",K),this.once("end",se),this.once("data",te)})}}}[G](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[k]?(q?this.emit("error",q):this.emit(k),this):(this[k]=!0,this[w].length=0,this[m]=0,typeof this.close=="function"&&!this[c]&&this.close(),q?this.emit("error",q):this.emit(k),this)}static isStream(q){return!!q&&(q instanceof vn||q instanceof s||q instanceof i&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),ia=M((e,l)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};l.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},n))}),_n=M((e,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=Z("events"),s=Z("stream"),f=Z("string_decoder").StringDecoder,a=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),h=Symbol("emittingEnd"),u=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),E=Symbol("objectMode"),S=Symbol("destroyed"),A=Symbol("emitData"),k=Symbol("emitEnd"),L=Symbol("emitEnd2"),T=Symbol("async"),x=j=>Promise.resolve().then(j),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=O&&Symbol.iterator||Symbol("iterator not implemented"),R=j=>j==="end"||j==="finish"||j==="prefinish",G=j=>j instanceof ArrayBuffer||typeof j=="object"&&j.constructor&&j.constructor.name==="ArrayBuffer"&&j.byteLength>=0,W=j=>!Buffer.isBuffer(j)&&ArrayBuffer.isView(j),Q=class{constructor(j,F,J){this.src=j,this.dest=F,this.opts=J,this.ondrain=()=>j[D](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},P=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(j,F,J){super(j,F,J),this.proxyErrors=q=>F.emit("error",q),j.on("error",this.proxyErrors)}};l.exports=class En extends s{constructor(F){super(),this[_]=!1,this[y]=!1,this.pipes=[],this.buffer=[],this[E]=F&&F.objectMode||!1,this[E]?this[g]=null:this[g]=F&&F.encoding||null,this[g]==="buffer"&&(this[g]=null),this[T]=F&&!!F.async||!1,this[b]=this[g]?new f(this[g]):null,this[a]=!1,this[t]=!1,this[h]=!1,this[c]=!1,this[u]=null,this.writable=!0,this.readable=!0,this[w]=0,this[S]=!1}get bufferLength(){return this[w]}get encoding(){return this[g]}set encoding(F){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[g]&&F!==this[g]&&(this[b]&&this[b].lastNeed||this[w]))throw new Error("cannot change encoding");this[g]!==F&&(this[b]=F?new f(F):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[g]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[E]}set objectMode(F){this[E]=this[E]||!!F}get async(){return this[T]}set async(F){this[T]=this[T]||!!F}write(F,J,q){if(this[a])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 J=="function"&&(q=J,J="utf8"),J||(J="utf8");let ee=this[T]?x:N=>N();return!this[E]&&!Buffer.isBuffer(F)&&(W(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):G(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[E]?(this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing):F.length?(typeof F=="string"&&!(J===this[g]&&!this[b].lastNeed)&&(F=Buffer.from(F,J)),Buffer.isBuffer(F)&&this[g]&&(F=this[b].write(F)),this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing):(this[w]!==0&&this.emit("readable"),q&&ee(q),this.flowing)}read(F){if(this[S])return null;if(this[w]===0||F===0||F>this[w])return this[r](),null;this[E]&&(F=null),this.buffer.length>1&&!this[E]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[w])]);let J=this[o](F||null,this.buffer[0]);return this[r](),J}[o](F,J){return F===J.length||F===null?this[m]():(this.buffer[0]=J.slice(F),J=J.slice(0,F),this[w]-=F),this.emit("data",J),!this.buffer.length&&!this[a]&&this.emit("drain"),J}end(F,J,q){return typeof F=="function"&&(q=F,F=null),typeof J=="function"&&(q=J,J="utf8"),F&&this.write(F,J),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[S]||(this[y]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[_]=!1,this[y]=!0}get destroyed(){return this[S]}get flowing(){return this[_]}get paused(){return this[y]}[v](F){this[E]?this[w]+=1:this[w]+=F.length,this.buffer.push(F)}[m](){return this.buffer.length&&(this[E]?this[w]-=1:this[w]-=this.buffer[0].length),this.buffer.shift()}[d](F){do;while(this[p](this[m]()));!F&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,J){if(this[S])return;let q=this[t];return J=J||{},F===n.stdout||F===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,q?J.end&&F.end():(this.pipes.push(J.proxyErrors?new P(this,F,J):new Q(this,F,J)),this[T]?x(()=>this[D]()):this[D]()),F}unpipe(F){let J=this.pipes.find(q=>q.dest===F);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(F,J){return this.on(F,J)}on(F,J){let q=super.on(F,J);return F==="data"&&!this.pipes.length&&!this.flowing?this[D]():F==="readable"&&this[w]!==0?super.emit("readable"):R(F)&&this[t]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[u]&&(this[T]?x(()=>J.call(this,this[u])):J.call(this,this[u])),q}get emittedEnd(){return this[t]}[r](){!this[h]&&!this[t]&&!this[S]&&this.buffer.length===0&&this[a]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[h]=!1)}emit(F,J,...q){if(F!=="error"&&F!=="close"&&F!==S&&this[S])return;if(F==="data")return J?this[T]?x(()=>this[A](J)):this[A](J):!1;if(F==="end")return this[k]();if(F==="close"){if(this[c]=!0,!this[t]&&!this[S])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(F==="error"){this[u]=J;let N=super.emit("error",J);return this[r](),N}else if(F==="resume"){let N=super.emit("resume");return this[r](),N}else if(F==="finish"||F==="prefinish"){let N=super.emit(F);return this.removeAllListeners(F),N}let ee=super.emit(F,J,...q);return this[r](),ee}[A](F){for(let q of this.pipes)q.dest.write(F)===!1&&this.pause();let J=super.emit("data",F);return this[r](),J}[k](){this[t]||(this[t]=!0,this.readable=!1,this[T]?x(()=>this[L]()):this[L]())}[L](){if(this[b]){let J=this[b].end();if(J){for(let q of this.pipes)q.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[E]||(F.dataLength=0);let J=this.promise();return this.on("data",q=>{F.push(q),this[E]||(F.dataLength+=q.length)}),J.then(()=>F)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",q=>J(q)),this.on("end",()=>F())})}[I](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[a])return Promise.resolve({done:!0});let J=null,q=null,ee=se=>{this.removeListener("data",N),this.removeListener("end",K),q(se)},N=se=>{this.removeListener("error",ee),this.removeListener("end",K),this.pause(),J({value:se,done:!!this[a]})},K=()=>{this.removeListener("error",ee),this.removeListener("data",N),J({done:!0})},te=()=>ee(new Error("stream destroyed"));return new Promise((se,le)=>{q=le,J=se,this.once(S,te),this.once("error",ee),this.once("end",K),this.once("data",N)})}}}[$](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[S]?(F?this.emit("error",F):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[w]=0,typeof this.close=="function"&&!this[c]&&this.close(),F?this.emit("error",F):this.emit(S),this)}static isStream(F){return!!F&&(F instanceof En||F instanceof s||F instanceof i&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),wn=M(e=>{"use strict";B();var l=Z("assert"),n=Z("buffer").Buffer,i=Z("zlib"),s=e.constants=ia(),f=_n(),a=n.concat,r=Symbol("_superWrite"),t=class extends Error{constructor(R){super("zlib: "+R.message),this.code=R.code,this.errno=R.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+R.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},h=Symbol("opts"),u=Symbol("flushFlag"),c=Symbol("finishFlushFlag"),o=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),g=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),y=Symbol("ended"),D=Symbol("_defaultFullFlush"),w=class extends f{constructor(R,G){if(!R||typeof R!="object")throw new TypeError("invalid options for ZlibBase constructor");super(R),this[g]=!1,this[y]=!1,this[h]=R,this[u]=R.flush,this[c]=R.finishFlush;try{this[d]=new i[G](R)}catch(W){throw new t(W)}this[p]=W=>{this[g]||(this[g]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[p](new t(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[g])return l(this[d],"zlib binding closed"),this[d].reset()}flush(R){this.ended||(typeof R!="number"&&(R=this[o]),this.write(Object.assign(n.alloc(0),{[u]:R})))}end(R,G,W){return R&&this.write(R,G),this.flush(this[c]),this[y]=!0,super.end(null,null,W)}get ended(){return this[y]}write(R,G,W){if(typeof G=="function"&&(W=G,G="utf8"),typeof R=="string"&&(R=n.from(R,G)),this[g])return;l(this[d],"zlib binding closed");let Q=this[d]._handle,P=Q.close;Q.close=()=>{};let j=this[d].close;this[d].close=()=>{},n.concat=q=>q;let F;try{let q=typeof R[u]=="number"?R[u]:this[u];F=this[d]._processChunk(R,q),n.concat=a}catch(q){n.concat=a,this[p](new t(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=P,this[d].close=j,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new t(q)));let J;if(F)if(Array.isArray(F)&&F.length>0){J=this[r](n.from(F[0]));for(let q=1;q<F.length;q++)J=this[r](F[q])}else J=this[r](n.from(F));return W&&W(),J}[r](R){return super.write(R)}},v=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||s.Z_NO_FLUSH,R.finishFlush=R.finishFlush||s.Z_FINISH,super(R,G),this[o]=s.Z_FULL_FLUSH,this[b]=R.level,this[_]=R.strategy}params(R,G){if(!this[g]){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]!==R||this[_]!==G){this.flush(s.Z_SYNC_FLUSH),l(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(Q,P)=>{this.flush(Q),P()};try{this[d].params(R,G)}finally{this[d].flush=W}this[d]&&(this[b]=R,this[_]=G)}}}},m=class extends v{constructor(R){super(R,"Deflate")}},E=class extends v{constructor(R){super(R,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(R){super(R,"Gzip"),this[S]=R&&!!R.portable}[r](R){return this[S]?(this[S]=!1,R[9]=255,super[r](R)):super[r](R)}},k=class extends v{constructor(R){super(R,"Gunzip")}},L=class extends v{constructor(R){super(R,"DeflateRaw")}},T=class extends v{constructor(R){super(R,"InflateRaw")}},x=class extends v{constructor(R){super(R,"Unzip")}},O=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||s.BROTLI_OPERATION_PROCESS,R.finishFlush=R.finishFlush||s.BROTLI_OPERATION_FINISH,super(R,G),this[o]=s.BROTLI_OPERATION_FLUSH}},I=class extends O{constructor(R){super(R,"BrotliCompress")}},$=class extends O{constructor(R){super(R,"BrotliDecompress")}};e.Deflate=m,e.Inflate=E,e.Gzip=A,e.Gunzip=k,e.DeflateRaw=L,e.InflateRaw=T,e.Unzip=x,typeof i.BrotliCompress=="function"?(e.BrotliCompress=I,e.BrotliDecompress=$):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Ct=M((e,l)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;l.exports=n!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),pr=M((e,l)=>{"use strict";B();var n=hr(),i=Ct(),s=Symbol("slurp");l.exports=class extends n{constructor(f,a,r){switch(super(),this.pause(),this.extended=a,this.globalExtended=r,this.header=f,this.startBlockSize=512*Math.ceil(f.size/512),this.blockRemain=this.startBlockSize,this.remain=f.size,this.type=f.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(f.path),this.mode=f.mode,this.mode&&(this.mode=this.mode&4095),this.uid=f.uid,this.gid=f.gid,this.uname=f.uname,this.gname=f.gname,this.size=f.size,this.mtime=f.mtime,this.atime=f.atime,this.ctime=f.ctime,this.linkpath=i(f.linkpath),this.uname=f.uname,this.gname=f.gname,a&&this[s](a),r&&this[s](r,!0)}write(f){let a=f.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,t=this.blockRemain;return this.remain=Math.max(0,r-a),this.blockRemain=Math.max(0,t-a),this.ignore?!0:r>=a?super.write(f):super.write(f.slice(0,r))}[s](f,a){for(let r in f)f[r]!==null&&f[r]!==void 0&&!(a&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?i(f[r]):f[r])}}}),Dn=M(e=>{"use strict";B(),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(l=>[l[1],l[0]]))}),sa=M((e,l)=>{"use strict";B();var n=(u,c)=>{if(Number.isSafeInteger(u))u<0?s(u,c):i(u,c);else throw Error("cannot encode number outside of javascript safe integer range");return c},i=(u,c)=>{c[0]=128;for(var o=c.length;o>1;o--)c[o-1]=u&255,u=Math.floor(u/256)},s=(u,c)=>{c[0]=255;var o=!1;u=u*-1;for(var d=c.length;d>1;d--){var p=u&255;u=Math.floor(u/256),o?c[d-1]=t(p):p===0?c[d-1]=0:(o=!0,c[d-1]=h(p))}},f=u=>{let c=u[0],o=c===128?r(u.slice(1,u.length)):c===255?a(u):null;if(o===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(o))throw Error("parsed number outside of javascript safe integer range");return o},a=u=>{for(var c=u.length,o=0,d=!1,p=c-1;p>-1;p--){var g=u[p],b;d?b=t(g):g===0?b=g:(d=!0,b=h(g)),b!==0&&(o-=b*Math.pow(256,c-p-1))}return o},r=u=>{for(var c=u.length,o=0,d=c-1;d>-1;d--){var p=u[d];p!==0&&(o+=p*Math.pow(256,c-d-1))}return o},t=u=>(255^u)&255,h=u=>(255^u)+1&255;l.exports={encode:n,parse:f}}),kt=M((e,l)=>{"use strict";B();var n=Dn(),i=Z("path").posix,s=sa(),f=Symbol("slurp"),a=Symbol("type"),r=class{constructor(E,S,A,k){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(E)?this.decode(E,S||0,A,k):E&&this.set(E)}decode(E,S,A,k){if(S||(S=0),!E||!(E.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=h(E,S,100),this.mode=o(E,S+100,8),this.uid=o(E,S+108,8),this.gid=o(E,S+116,8),this.size=o(E,S+124,12),this.mtime=u(E,S+136,12),this.cksum=o(E,S+148,12),this[f](A),this[f](k,!0),this[a]=h(E,S+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=h(E,S+157,100),E.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=h(E,S+265,32),this.gname=h(E,S+297,32),this.devmaj=o(E,S+329,8),this.devmin=o(E,S+337,8),E[S+475]!==0){let T=h(E,S+345,155);this.path=T+"/"+this.path}else{let T=h(E,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=u(E,S+476,12),this.ctime=u(E,S+488,12)}let L=8*32;for(let T=S;T<S+148;T++)L+=E[T];for(let T=S+156;T<S+512;T++)L+=E[T];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[f](E,S){for(let A in E)E[A]!==null&&E[A]!==void 0&&!(S&&A==="path")&&(this[A]=E[A])}encode(E,S){if(E||(E=this.block=Buffer.alloc(512),S=0),S||(S=0),!(E.length>=S+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,k=t(this.path||"",A),L=k[0],T=k[1];this.needPax=k[2],this.needPax=m(E,S,100,L)||this.needPax,this.needPax=b(E,S+100,8,this.mode)||this.needPax,this.needPax=b(E,S+108,8,this.uid)||this.needPax,this.needPax=b(E,S+116,8,this.gid)||this.needPax,this.needPax=b(E,S+124,12,this.size)||this.needPax,this.needPax=w(E,S+136,12,this.mtime)||this.needPax,E[S+156]=this[a].charCodeAt(0),this.needPax=m(E,S+157,100,this.linkpath)||this.needPax,E.write("ustar\x0000",S+257,8),this.needPax=m(E,S+265,32,this.uname)||this.needPax,this.needPax=m(E,S+297,32,this.gname)||this.needPax,this.needPax=b(E,S+329,8,this.devmaj)||this.needPax,this.needPax=b(E,S+337,8,this.devmin)||this.needPax,this.needPax=m(E,S+345,A,T)||this.needPax,E[S+475]!==0?this.needPax=m(E,S+345,155,T)||this.needPax:(this.needPax=m(E,S+345,130,T)||this.needPax,this.needPax=w(E,S+476,12,this.atime)||this.needPax,this.needPax=w(E,S+488,12,this.ctime)||this.needPax);let x=8*32;for(let O=S;O<S+148;O++)x+=E[O];for(let O=S+156;O<S+512;O++)x+=E[O];return this.cksum=x,b(E,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(E){for(let S in E)E[S]!==null&&E[S]!==void 0&&(this[S]=E[S])}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(E){n.code.has(E)?this[a]=n.code.get(E):this[a]=E}},t=(E,S)=>{let A=E,k="",L,T=i.parse(E).root||".";if(Buffer.byteLength(A)<100)L=[A,k,!1];else{k=i.dirname(A),A=i.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(k)<=S?L=[A,k,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(k)<=S?L=[A.slice(0,100-1),k,!0]:(A=i.join(i.basename(k),A),k=i.dirname(k));while(k!==T&&!L);L||(L=[E.slice(0,100-1),"",!0])}return L},h=(E,S,A)=>E.slice(S,S+A).toString("utf8").replace(/\0.*/,""),u=(E,S,A)=>c(o(E,S,A)),c=E=>E===null?null:new Date(E*1e3),o=(E,S,A)=>E[S]&128?s.parse(E.slice(S,S+A)):p(E,S,A),d=E=>isNaN(E)?null:E,p=(E,S,A)=>d(parseInt(E.slice(S,S+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),g={12:8589934591,8:2097151},b=(E,S,A,k)=>k===null?!1:k>g[A]||k<0?(s.encode(k,E.slice(S,S+A)),!0):(_(E,S,A,k),!1),_=(E,S,A,k)=>E.write(y(k,A),S,A,"ascii"),y=(E,S)=>D(Math.floor(E).toString(8),S),D=(E,S)=>(E.length===S-1?E:new Array(S-E.length-1).join("0")+E+" ")+"\0",w=(E,S,A,k)=>k===null?!1:b(E,S,A,k.getTime()/1e3),v=new Array(156).join("\0"),m=(E,S,A,k)=>k===null?!1:(E.write(k+v,S,A,"utf8"),k.length!==Buffer.byteLength(k)||k.length>A);l.exports=r}),fr=M((e,l)=>{"use strict";B();var n=kt(),i=Z("path"),s=class{constructor(t,h){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=h||!1}encode(){let t=this.encodeBody();if(t==="")return null;let h=Buffer.byteLength(t),u=512*Math.ceil(1+h/512),c=Buffer.allocUnsafe(u);for(let o=0;o<512;o++)c[o]=0;new n({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:h,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(c),c.write(t,512,h,"utf8");for(let o=h+512;o<c.length;o++)c[o]=0;return c}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(t){if(this[t]===null||this[t]===void 0)return"";let h=this[t]instanceof Date?this[t].getTime()/1e3:this[t],u=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+h+`
|
|
27
27
|
`,c=Buffer.byteLength(u),o=Math.floor(Math.log(c)/Math.log(10))+1;return c+o>=Math.pow(10,o)&&(o+=1),o+c+u}};s.parse=(t,h,u)=>new s(f(a(t),h),u);var f=(t,h)=>h?Object.keys(t).reduce((u,c)=>(u[c]=t[c],u),h):t,a=t=>t.replace(/\n$/,"").split(`
|
|
28
|
-
`).reduce(r,Object.create(null)),r=(t,h)=>{let u=parseInt(h,10);if(u!==Buffer.byteLength(h)+1)return t;h=h.slice((u+" ").length);let c=h.split("="),o=c.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!o)return t;let d=c.join("=");return t[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,t};l.exports=s}),kt=M((e,l)=>{B(),l.exports=n=>{let i=n.length-1,s=-1;for(;i>-1&&n.charAt(i)==="/";)s=i,i--;return s===-1?n:n.slice(0,s)}}),dr=M((e,l)=>{"use strict";B(),l.exports=n=>class extends n{warn(i,s,f={}){this.file&&(f.file=this.file),this.cwd&&(f.cwd=this.cwd),f.code=s instanceof Error&&s.code||i,f.tarCode=i,!this.strict&&f.recoverable!==!1?(s instanceof Error&&(f=Object.assign(s,f),s=s.message),this.emit("warn",f.tarCode,s,f)):s instanceof Error?this.emit("error",Object.assign(s,f)):this.emit("error",Object.assign(new Error(`${i}: ${s}`),f))}}}),Sn=M((e,l)=>{"use strict";B();var n=["|","<",">","?",":"],i=n.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),s=new Map(n.map((a,r)=>[a,i[r]])),f=new Map(i.map((a,r)=>[a,n[r]]));l.exports={encode:a=>n.reduce((r,t)=>r.split(t).join(s.get(t)),a),decode:a=>i.reduce((r,t)=>r.split(t).join(f.get(t)),a)}}),An=M((e,l)=>{B();var{isAbsolute:n,parse:i}=Z("path").win32;l.exports=s=>{let f="",a=i(s);for(;n(s)||a.root;){let r=s.charAt(0)==="/"&&s.slice(0,4)!=="//?/"?"/":a.root;s=s.slice(r.length),f+=r,a=i(s)}return[f,s]}}),oa=M((e,l)=>{"use strict";B(),l.exports=(n,i,s)=>(n&=4095,s&&(n=(n|384)&-19),i&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),Cn=M((e,l)=>{"use strict";B();var n=hr(),i=fr(),s=xt(),f=Z("fs"),a=Z("path"),r=Ct(),t=kt(),h=(j,F)=>F?(j=r(j).replace(/^\.(\/|$)/,""),t(F)+"/"+j):r(j),u=16*1024*1024,c=Symbol("process"),o=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),g=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),y=Symbol("lstat"),D=Symbol("onlstat"),w=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),E=Symbol("onopenfile"),S=Symbol("close"),A=Symbol("mode"),x=Symbol("awaitDrain"),L=Symbol("ondrain"),T=Symbol("prefix"),k=Symbol("hadError"),O=dr(),I=Sn(),$=An(),R=oa(),G=O(class extends n{constructor(j,F){if(F=F||{},super(F),typeof j!="string")throw new TypeError("path is required");this.path=r(j),this.portable=!!F.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=F.maxReadSize||u,this.linkCache=F.linkCache||new Map,this.statCache=F.statCache||new Map,this.preservePaths=!!F.preservePaths,this.cwd=r(F.cwd||process.cwd()),this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.mtime=F.mtime||null,this.prefix=F.prefix?r(F.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 F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.win32=!!F.win32||process.platform==="win32",this.win32&&(this.path=I.decode(this.path.replace(/\\/g,"/")),j=j.replace(/\\/g,"/")),this.absolute=r(F.absolute||a.resolve(this.cwd,j)),this.path===""&&(this.path="./"),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.statCache.has(this.absolute)?this[D](this.statCache.get(this.absolute)):this[y]()}emit(j,...F){return j==="error"&&(this[k]=!0),super.emit(j,...F)}[y](){f.lstat(this.absolute,(j,F)=>{if(j)return this.emit("error",j);this[D](F)})}[D](j){this.statCache.set(this.absolute,j),this.stat=j,j.isFile()||(j.size=0),this.type=P(j),this.emit("stat",j),this[c]()}[c](){switch(this.type){case"File":return this[o]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[A](j){return R(j,this.type==="Directory",this.portable)}[T](j){return h(j,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new s({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[A](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[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](){f.readlink(this.absolute,(j,F)=>{if(j)return this.emit("error",j);this[v](F)})}[v](j){this.linkpath=r(j),this[b](),this.end()}[g](j){this.type="Link",this.linkpath=r(a.relative(this.cwd,j)),this.stat.size=0,this[b](),this.end()}[o](){if(this.stat.nlink>1){let j=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(j)){let F=this.linkCache.get(j);if(F.indexOf(this.cwd)===0)return this[g](F)}this.linkCache.set(j,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){f.open(this.absolute,"r",(j,F)=>{if(j)return this.emit("error",j);this[E](F)})}[E](j){if(this.fd=j,this[k])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let F=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(F),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:j,buf:F,offset:J,length:q,pos:ee}=this;f.read(j,F,J,q,ee,(N,K)=>{if(N)return this[S](()=>this.emit("error",N));this[w](K)})}[S](j){f.close(this.fd,j)}[w](j){if(j<=0&&this.remain>0){let J=new Error("encountered unexpected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j>this.remain){let J=new Error("did not encounter expected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j===this.remain)for(let J=j;J<this.length&&j<this.blockRemain;J++)this.buf[J+this.offset]=0,j++,this.remain++;let F=this.offset===0&&j===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+j);this.write(F)?this[L]():this[x](()=>this[L]())}[x](j){this.once("drain",j)}write(j){if(this.blockRemain<j.length){let F=new Error("writing more data than expected");return F.path=this.absolute,this.emit("error",F)}return this.remain-=j.length,this.blockRemain-=j.length,this.pos+=j.length,this.offset+=j.length,super.write(j)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](j=>j?this.emit("error",j):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[_]()}}),W=class extends G{[y](){this[D](f.lstatSync(this.absolute))}[p](){this[v](f.readlinkSync(this.absolute))}[m](){this[E](f.openSync(this.absolute,"r"))}[_](){let j=!0;try{let{fd:F,buf:J,offset:q,length:ee,pos:N}=this,K=f.readSync(F,J,q,ee,N);this[w](K),j=!1}finally{if(j)try{this[S](()=>{})}catch{}}}[x](j){j()}[S](j){f.closeSync(this.fd),j()}},Q=O(class extends n{constructor(j,F){F=F||{},super(F),this.preservePaths=!!F.preservePaths,this.portable=!!F.portable,this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.readEntry=j,this.type=j.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=F.prefix||null,this.path=r(j.path),this.mode=this[A](j.mode),this.uid=this.portable?null:j.uid,this.gid=this.portable?null:j.gid,this.uname=this.portable?null:j.uname,this.gname=this.portable?null:j.gname,this.size=j.size,this.mtime=this.noMtime?null:F.mtime||j.mtime,this.atime=this.portable?null:j.atime,this.ctime=this.portable?null:j.ctime,this.linkpath=r(j.linkpath),typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.remain=j.size,this.blockRemain=j.startBlockSize,this.header=new s({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}),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+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[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),j.pipe(this)}[T](j){return h(j,this.prefix)}[A](j){return R(j,this.type==="Directory",this.portable)}write(j){let F=j.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(j)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=W,G.Tar=Q;var P=j=>j.isFile()?"File":j.isDirectory()?"Directory":j.isSymbolicLink()?"SymbolicLink":"Unsupported";l.exports=G}),aa=M((e,l)=>{"use strict";B(),l.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),xn=M((e,l)=>{"use strict";B(),l.exports=n,n.Node=a,n.create=n;function n(r){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,r&&typeof r.forEach=="function")r.forEach(function(c){t.push(c)});else if(arguments.length>0)for(var h=0,u=arguments.length;h<u;h++)t.push(arguments[h]);return t}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var t=r.next,h=r.prev;return t&&(t.prev=h),h&&(h.next=t),r===this.head&&(this.head=t),r===this.tail&&(this.tail=h),r.list.length--,r.next=null,r.prev=null,r.list=null,t},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var t=this.head;r.list=this,r.next=t,t&&(t.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}},n.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var t=this.tail;r.list=this,r.prev=t,t&&(t.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,t=arguments.length;r<t;r++)s(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,t=arguments.length;r<t;r++)f(this,arguments[r]);return this.length},n.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}},n.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}},n.prototype.forEach=function(r,t){t=t||this;for(var h=this.head,u=0;h!==null;u++)r.call(t,h.value,u,this),h=h.next},n.prototype.forEachReverse=function(r,t){t=t||this;for(var h=this.tail,u=this.length-1;h!==null;u--)r.call(t,h.value,u,this),h=h.prev},n.prototype.get=function(r){for(var t=0,h=this.head;h!==null&&t<r;t++)h=h.next;if(t===r&&h!==null)return h.value},n.prototype.getReverse=function(r){for(var t=0,h=this.tail;h!==null&&t<r;t++)h=h.prev;if(t===r&&h!==null)return h.value},n.prototype.map=function(r,t){t=t||this;for(var h=new n,u=this.head;u!==null;)h.push(r.call(t,u.value,this)),u=u.next;return h},n.prototype.mapReverse=function(r,t){t=t||this;for(var h=new n,u=this.tail;u!==null;)h.push(r.call(t,u.value,this)),u=u.prev;return h},n.prototype.reduce=function(r,t){var h,u=this.head;if(arguments.length>1)h=t;else if(this.head)u=this.head.next,h=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;u!==null;c++)h=r(h,u.value,c),u=u.next;return h},n.prototype.reduceReverse=function(r,t){var h,u=this.tail;if(arguments.length>1)h=t;else if(this.tail)u=this.tail.prev,h=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;u!==null;c--)h=r(h,u.value,c),u=u.prev;return h},n.prototype.toArray=function(){for(var r=new Array(this.length),t=0,h=this.head;h!==null;t++)r[t]=h.value,h=h.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),t=0,h=this.tail;h!==null;t++)r[t]=h.value,h=h.prev;return r},n.prototype.slice=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(t<r||t<0)return h;r<0&&(r=0),t>this.length&&(t=this.length);for(var u=0,c=this.head;c!==null&&u<r;u++)c=c.next;for(;c!==null&&u<t;u++,c=c.next)h.push(c.value);return h},n.prototype.sliceReverse=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(t<r||t<0)return h;r<0&&(r=0),t>this.length&&(t=this.length);for(var u=this.length,c=this.tail;c!==null&&u>t;u--)c=c.prev;for(;c!==null&&u>r;u--,c=c.prev)h.push(c.value);return h},n.prototype.splice=function(r,t,...h){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var u=0,c=this.head;c!==null&&u<r;u++)c=c.next;for(var o=[],u=0;c&&u<t;u++)o.push(c.value),c=this.removeNode(c);c===null&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev);for(var u=0;u<h.length;u++)c=i(this,c,h[u]);return o},n.prototype.reverse=function(){for(var r=this.head,t=this.tail,h=r;h!==null;h=h.prev){var u=h.prev;h.prev=h.next,h.next=u}return this.head=t,this.tail=r,this};function i(r,t,h){var u=t===r.head?new a(h,null,t,r):new a(h,t,t.next,r);return u.next===null&&(r.tail=u),u.prev===null&&(r.head=u),r.length++,u}function s(r,t){r.tail=new a(t,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function f(r,t){r.head=new a(t,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function a(r,t,h,u){if(!(this instanceof a))return new a(r,t,h,u);this.list=u,this.value=r,t?(t.next=this,this.prev=t):this.prev=null,h?(h.prev=this,this.next=h):this.next=null}try{aa()(n)}catch{}}),mr=M((e,l)=>{"use strict";B();var n=class{constructor(P,j){this.path=P||"./",this.absolute=j,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=hr(),s=wn(),f=pr(),a=Cn(),r=a.Sync,t=a.Tar,h=xn(),u=Buffer.alloc(1024),c=Symbol("onStat"),o=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),g=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),y=Symbol("jobs"),D=Symbol("jobDone"),w=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),E=Symbol("readdir"),S=Symbol("onreaddir"),A=Symbol("pipe"),x=Symbol("entry"),L=Symbol("entryOpt"),T=Symbol("writeEntryClass"),k=Symbol("write"),O=Symbol("ondrain"),I=Z("fs"),$=Z("path"),R=dr(),G=Ct(),W=R(class extends i{constructor(P){super(P),P=P||Object.create(null),this.opt=P,this.file=P.file||"",this.cwd=P.cwd||process.cwd(),this.maxReadSize=P.maxReadSize,this.preservePaths=!!P.preservePaths,this.strict=!!P.strict,this.noPax=!!P.noPax,this.prefix=G(P.prefix||""),this.linkCache=P.linkCache||new Map,this.statCache=P.statCache||new Map,this.readdirCache=P.readdirCache||new Map,this[T]=a,typeof P.onwarn=="function"&&this.on("warn",P.onwarn),this.portable=!!P.portable,this.zip=null,P.gzip?(typeof P.gzip!="object"&&(P.gzip={}),this.portable&&(P.gzip.portable=!0),this.zip=new s.Gzip(P.gzip),this.zip.on("data",j=>super.write(j)),this.zip.on("end",j=>super.end()),this.zip.on("drain",j=>this[O]()),this.on("resume",j=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!P.noDirRecurse,this.follow=!!P.follow,this.noMtime=!!P.noMtime,this.mtime=P.mtime||null,this.filter=typeof P.filter=="function"?P.filter:j=>!0,this[d]=new h,this[y]=0,this.jobs=+P.jobs||4,this[b]=!1,this[o]=!1}[k](P){return super.write(P)}add(P){return this.write(P),this}end(P){return P&&this.write(P),this[o]=!0,this[g](),this}write(P){if(this[o])throw new Error("write after end");return P instanceof f?this[v](P):this[w](P),this.flowing}[v](P){let j=G($.resolve(this.cwd,P.path));if(!this.filter(P.path,P))P.resume();else{let F=new n(P.path,j,!1);F.entry=new t(P,this[L](F)),F.entry.on("end",J=>this[D](F)),this[y]+=1,this[d].push(F)}this[g]()}[w](P){let j=G($.resolve(this.cwd,P));this[d].push(new n(P,j)),this[g]()}[m](P){P.pending=!0,this[y]+=1;let j=this.follow?"stat":"lstat";I[j](P.absolute,(F,J)=>{P.pending=!1,this[y]-=1,F?this.emit("error",F):this[c](P,J)})}[c](P,j){this.statCache.set(P.absolute,j),P.stat=j,this.filter(P.path,j)||(P.ignore=!0),this[g]()}[E](P){P.pending=!0,this[y]+=1,I.readdir(P.absolute,(j,F)=>{if(P.pending=!1,this[y]-=1,j)return this.emit("error",j);this[S](P,F)})}[S](P,j){this.readdirCache.set(P.absolute,j),P.readdir=j,this[g]()}[g](){if(!this[b]){this[b]=!0;for(let P=this[d].head;P!==null&&this[y]<this.jobs;P=P.next)if(this[_](P.value),P.value.ignore){let j=P.next;this[d].removeNode(P),P.next=j}this[b]=!1,this[o]&&!this[d].length&&this[y]===0&&(this.zip?this.zip.end(u):(super.write(u),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[D](P){this[d].shift(),this[y]-=1,this[g]()}[_](P){if(!P.pending){if(P.entry){P===this[p]&&!P.piped&&this[A](P);return}if(P.stat||(this.statCache.has(P.absolute)?this[c](P,this.statCache.get(P.absolute)):this[m](P)),!!P.stat&&!P.ignore&&!(!this.noDirRecurse&&P.stat.isDirectory()&&!P.readdir&&(this.readdirCache.has(P.absolute)?this[S](P,this.readdirCache.get(P.absolute)):this[E](P),!P.readdir))){if(P.entry=this[x](P),!P.entry){P.ignore=!0;return}P===this[p]&&!P.piped&&this[A](P)}}}[L](P){return{onwarn:(j,F,J)=>this.warn(j,F,J),noPax:this.noPax,cwd:this.cwd,absolute:P.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[x](P){this[y]+=1;try{return new this[T](P.path,this[L](P)).on("end",()=>this[D](P)).on("error",j=>this.emit("error",j))}catch(j){this.emit("error",j)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[A](P){P.piped=!0,P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[w](ee+J)});let j=P.entry,F=this.zip;F?j.on("data",J=>{F.write(J)||j.pause()}):j.on("data",J=>{super.write(J)||j.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Q=class extends W{constructor(P){super(P),this[T]=r}pause(){}resume(){}[m](P){let j=this.follow?"statSync":"lstatSync";this[c](P,I[j](P.absolute))}[E](P,j){this[S](P,I.readdirSync(P.absolute))}[A](P){let j=P.entry,F=this.zip;P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[w](ee+J)}),F?j.on("data",J=>{F.write(J)}):j.on("data",J=>{super[k](J)})}};W.Sync=Q,l.exports=W}),Ft=M(e=>{"use strict";B();var l=_n(),n=Z("events").EventEmitter,i=Z("fs"),s=i.writev;if(!s){let P=process.binding("fs"),j=P.FSReqWrap||P.FSReqCallback;s=(F,J,q,ee)=>{let N=(te,se)=>ee(te,se,J),K=new j;K.oncomplete=N,P.writeBuffers(F,J,q,K)}}var f=Symbol("_autoClose"),a=Symbol("_close"),r=Symbol("_ended"),t=Symbol("_fd"),h=Symbol("_finished"),u=Symbol("_flags"),c=Symbol("_flush"),o=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),g=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),y=Symbol("_onread"),D=Symbol("_onwrite"),w=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),E=Symbol("_queue"),S=Symbol("_read"),A=Symbol("_readSize"),x=Symbol("_reading"),L=Symbol("_remain"),T=Symbol("_size"),k=Symbol("_write"),O=Symbol("_writing"),I=Symbol("_defaultFlag"),$=Symbol("_errored"),R=class extends l{constructor(P,j){if(j=j||{},super(j),this.readable=!0,this.writable=!1,typeof P!="string")throw new TypeError("path must be a string");this[$]=!1,this[t]=typeof j.fd=="number"?j.fd:null,this[v]=P,this[A]=j.readSize||16*1024*1024,this[x]=!1,this[T]=typeof j.size=="number"?j.size:1/0,this[L]=this[T],this[f]=typeof j.autoClose=="boolean"?j.autoClose:!0,typeof this[t]=="number"?this[S]():this[w]()}get fd(){return this[t]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){i.open(this[v],"r",(P,j)=>this[_](P,j))}[_](P,j){P?this[b](P):(this[t]=j,this.emit("open",j),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[L]))}[S](){if(!this[x]){this[x]=!0;let P=this[d]();if(P.length===0)return process.nextTick(()=>this[y](null,0,P));i.read(this[t],P,0,P.length,null,(j,F,J)=>this[y](j,F,J))}}[y](P,j,F){this[x]=!1,P?this[b](P):this[o](j,F)&&this[S]()}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.close(P,j=>j?this.emit("error",j):this.emit("close"))}}[b](P){this[x]=!0,this[a](),this.emit("error",P)}[o](P,j){let F=!1;return this[L]-=P,P>0&&(F=super.write(P<j.length?j.slice(0,P):j)),(P===0||this[L]<=0)&&(F=!1,this[a](),super.end()),F}emit(P,j){switch(P){case"prefinish":case"finish":break;case"drain":typeof this[t]=="number"&&this[S]();break;case"error":return this[$]?void 0:(this[$]=!0,super.emit(P,j));default:return super.emit(P,j)}}},G=class extends R{[w](){let P=!0;try{this[_](null,i.openSync(this[v],"r")),P=!1}finally{P&&this[a]()}}[S](){let P=!0;try{if(!this[x]){this[x]=!0;do{let j=this[d](),F=j.length===0?0:i.readSync(this[t],j,0,j.length,null);if(!this[o](F,j))break}while(!0);this[x]=!1}P=!1}finally{P&&this[a]()}}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.closeSync(P),this.emit("close")}}},W=class extends n{constructor(P,j){j=j||{},super(j),this.readable=!1,this.writable=!0,this[$]=!1,this[O]=!1,this[r]=!1,this[g]=!1,this[E]=[],this[v]=P,this[t]=typeof j.fd=="number"?j.fd:null,this[p]=j.mode===void 0?438:j.mode,this[m]=typeof j.start=="number"?j.start:null,this[f]=typeof j.autoClose=="boolean"?j.autoClose:!0;let F=this[m]!==null?"r+":"w";this[I]=j.flags===void 0,this[u]=this[I]?F:j.flags,this[t]===null&&this[w]()}emit(P,j){if(P==="error"){if(this[$])return;this[$]=!0}return super.emit(P,j)}get fd(){return this[t]}get path(){return this[v]}[b](P){this[a](),this[O]=!0,this.emit("error",P)}[w](){i.open(this[v],this[u],this[p],(P,j)=>this[_](P,j))}[_](P,j){this[I]&&this[u]==="r+"&&P&&P.code==="ENOENT"?(this[u]="w",this[w]()):P?this[b](P):(this[t]=j,this.emit("open",j),this[c]())}end(P,j){return P&&this.write(P,j),this[r]=!0,!this[O]&&!this[E].length&&typeof this[t]=="number"&&this[D](null,0),this}write(P,j){return typeof P=="string"&&(P=Buffer.from(P,j)),this[r]?(this.emit("error",new Error("write() after end()")),!1):this[t]===null||this[O]||this[E].length?(this[E].push(P),this[g]=!0,!1):(this[O]=!0,this[k](P),!0)}[k](P){i.write(this[t],P,0,P.length,this[m],(j,F)=>this[D](j,F))}[D](P,j){P?this[b](P):(this[m]!==null&&(this[m]+=j),this[E].length?this[c]():(this[O]=!1,this[r]&&!this[h]?(this[h]=!0,this[a](),this.emit("finish")):this[g]&&(this[g]=!1,this.emit("drain"))))}[c](){if(this[E].length===0)this[r]&&this[D](null,0);else if(this[E].length===1)this[k](this[E].pop());else{let P=this[E];this[E]=[],s(this[t],P,this[m],(j,F)=>this[D](j,F))}}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.close(P,j=>j?this.emit("error",j):this.emit("close"))}}},Q=class extends W{[w](){let P;if(this[I]&&this[u]==="r+")try{P=i.openSync(this[v],this[u],this[p])}catch(j){if(j.code==="ENOENT")return this[u]="w",this[w]();throw j}else P=i.openSync(this[v],this[u],this[p]);this[_](null,P)}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.closeSync(P),this.emit("close")}}[k](P){let j=!0;try{this[D](null,i.writeSync(this[t],P,0,P.length,this[m])),j=!1}finally{if(j)try{this[a]()}catch{}}}};e.ReadStream=R,e.ReadStreamSync=G,e.WriteStream=W,e.WriteStreamSync=Q}),yr=M((e,l)=>{"use strict";B();var n=dr(),i=xt(),s=Z("events"),f=xn(),a=1024*1024,r=pr(),t=fr(),h=wn(),{nextTick:u}=Z("process"),c=Buffer.from([31,139]),o=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),g=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),y=Symbol("globalExtendedHeader"),D=Symbol("meta"),w=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),E=Symbol("ended"),S=Symbol("emittedEnd"),A=Symbol("emit"),x=Symbol("unzip"),L=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),k=Symbol("consumeBody"),O=Symbol("consumeMeta"),I=Symbol("consumeHeader"),$=Symbol("consuming"),R=Symbol("bufferConcat"),G=Symbol("maybeEnd"),W=Symbol("writing"),Q=Symbol("aborted"),P=Symbol("onDone"),j=Symbol("sawValidEntry"),F=Symbol("sawNullBlock"),J=Symbol("sawEOF"),q=Symbol("closeStream"),ee=N=>!0;l.exports=n(class extends s{constructor(N){N=N||{},super(N),this.file=N.file||"",this[j]=null,this.on(P,K=>{(this[o]==="begin"||this[j]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(P,N.ondone):this.on(P,K=>{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:ee,this.writable=!0,this.readable=!1,this[m]=new f,this[v]=null,this[p]=null,this[d]=null,this[o]="begin",this[D]="",this[_]=null,this[y]=null,this[E]=!1,this[x]=null,this[Q]=!1,this[F]=!1,this[J]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[I](N,K){this[j]===null&&(this[j]=!1);let te;try{te=new i(N,K,this[_],this[y])}catch(se){return this.warn("TAR_ENTRY_INVALID",se)}if(te.nullBlock)this[F]?(this[J]=!0,this[o]==="begin"&&(this[o]="header"),this[A]("eof")):(this[F]=!0,this[A]("nullBlock"));else if(this[F]=!1,!te.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:te});else if(!te.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:te});else{let se=te.type;if(/^(Symbolic)?Link$/.test(se)&&!te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:te});else if(!/^(Symbolic)?Link$/.test(se)&&te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:te});else{let le=this[d]=new r(te,this[_],this[y]);if(!this[j])if(le.remain){let ye=()=>{le.invalid||(this[j]=!0)};le.on("end",ye)}else this[j]=!0;le.meta?le.size>this.maxMetaEntrySize?(le.ignore=!0,this[A]("ignoredEntry",le),this[o]="ignore",le.resume()):le.size>0&&(this[D]="",le.on("data",ye=>this[D]+=ye),this[o]="meta"):(this[_]=null,le.ignore=le.ignore||!this.filter(le.path,le),le.ignore?(this[A]("ignoredEntry",le),this[o]=le.remain?"ignore":"header",le.resume()):(le.remain?this[o]="body":(this[o]="header",le.end()),this[p]?this[m].push(le):(this[m].push(le),this[g]())))}}}[q](){u(()=>this.emit("close"))}[b](N){let K=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",te=>this[g]()),K=!1)):(this[p]=null,K=!1),K}[g](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[W]||this.emit("drain"):N.once("drain",K=>this.emit("drain"))}}[k](N,K){let te=this[d],se=te.blockRemain,le=se>=N.length&&K===0?N:N.slice(K,K+se);return te.write(le),te.blockRemain||(this[o]="header",this[d]=null,te.end()),le.length}[O](N,K){let te=this[d],se=this[k](N,K);return this[d]||this[w](te),se}[A](N,K,te){!this[m].length&&!this[p]?this.emit(N,K,te):this[m].push([N,K,te])}[w](N){switch(this[A]("meta",this[D]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=t.parse(this[D],this[_],!1);break;case"GlobalExtendedHeader":this[y]=t.parse(this[D],this[y],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[D].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[D].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[Q]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[Q])return;if(this[x]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<c.length)return this[v]=N,!0;for(let te=0;this[x]===null&&te<c.length;te++)N[te]!==c[te]&&(this[x]=!1);if(this[x]===null){let te=this[E];this[E]=!1,this[x]=new h.Unzip,this[x].on("data",le=>this[L](le)),this[x].on("error",le=>this.abort(le)),this[x].on("end",le=>{this[E]=!0,this[L]()}),this[W]=!0;let se=this[x][te?"end":"write"](N);return this[W]=!1,se}}this[W]=!0,this[x]?this[x].write(N):this[L](N),this[W]=!1;let K=this[m].length?!1:this[p]?this[p].flowing:!0;return!K&&!this[m].length&&this[p].once("drain",te=>this.emit("drain")),K}[R](N){N&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[G](){if(this[E]&&!this[S]&&!this[Q]&&!this[$]){this[S]=!0;let N=this[d];if(N&&N.blockRemain){let K=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${K} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[A](P)}}[L](N){if(this[$])this[R](N);else if(!N&&!this[v])this[G]();else{if(this[$]=!0,this[v]){this[R](N);let K=this[v];this[v]=null,this[T](K)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[Q]&&!this[J];){let K=this[v];this[v]=null,this[T](K)}this[$]=!1}(!this[v]||this[E])&&this[G]()}[T](N){let K=0,te=N.length;for(;K+512<=te&&!this[Q]&&!this[J];)switch(this[o]){case"begin":case"header":this[I](N,K),K+=512;break;case"ignore":case"body":K+=this[k](N,K);break;case"meta":K+=this[O](N,K);break;default:throw new Error("invalid state: "+this[o])}K<te&&(this[v]?this[v]=Buffer.concat([N.slice(K),this[v]]):this[v]=N.slice(K))}end(N){this[Q]||(this[x]?this[x].end(N):(this[E]=!0,this.write(N)))}})}),gr=M((e,l)=>{"use strict";B();var n=At(),i=yr(),s=Z("fs"),f=Ft(),a=Z("path"),r=kt();l.exports=(d,p,g)=>{typeof d=="function"?(g=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(g=p,p=null),p?p=Array.from(p):p=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return p.length&&h(b,p),b.noResume||t(b),b.file&&b.sync?u(b):b.file?c(b,g):o(b)};var t=d=>{let p=d.onentry;d.onentry=p?g=>{p(g),g.resume()}:g=>g.resume()},h=(d,p)=>{let g=new Map(p.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||a.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(a.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&_(r(y)):y=>_(r(y))},u=d=>{let p=o(d),g=d.file,b=!0,_;try{let y=s.statSync(g),D=d.maxReadSize||16*1024*1024;if(y.size<D)p.end(s.readFileSync(g));else{let w=0,v=Buffer.allocUnsafe(D);for(_=s.openSync(g,"r");w<y.size;){let m=s.readSync(_,v,0,D,w);w+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{s.closeSync(_)}catch{}}},c=(d,p)=>{let g=new i(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("end",D),s.stat(_,(v,m)=>{if(v)w(v);else{let E=new f.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return p?y.then(p,p):y},o=d=>new i(d)}),ua=M((e,l)=>{"use strict";B();var n=At(),i=mr(),s=Ft(),f=gr(),a=Z("path");l.exports=(d,p,g)=>{if(typeof p=="function"&&(g=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=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?r(b,p):b.file?t(b,p,g):b.sync?c(b,p):o(b,p)};var r=(d,p)=>{let g=new i.Sync(d),b=new s.WriteStreamSync(d.file,{mode:d.mode||438});g.pipe(b),h(g,p)},t=(d,p,g)=>{let b=new i(d),_=new s.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let y=new Promise((D,w)=>{_.on("error",w),_.on("close",D),b.on("error",w)});return u(b,p),g?y.then(g,g):y},h=(d,p)=>{p.forEach(g=>{g.charAt(0)==="@"?f({file:a.resolve(d.cwd,g.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(g)}),d.end()},u=(d,p)=>{for(;p.length;){let g=p.shift();if(g.charAt(0)==="@")return f({file:a.resolve(d.cwd,g.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>u(d,p));d.add(g)}d.end()},c=(d,p)=>{let g=new i.Sync(d);return h(g,p),g},o=(d,p)=>{let g=new i(d);return u(g,p),g}}),kn=M((e,l)=>{"use strict";B();var n=At(),i=mr(),s=Z("fs"),f=Ft(),a=gr(),r=Z("path"),t=xt();l.exports=(p,g,b)=>{let _=n(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");return g=Array.from(g),_.sync?h(_,g):c(_,g,b)};var h=(p,g)=>{let b=new i.Sync(p),_=!0,y,D;try{try{y=s.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")y=s.openSync(p.file,"w+");else throw m}let w=s.fstatSync(y),v=Buffer.alloc(512);e:for(D=0;D<w.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=s.readSync(y,v,S,v.length-S,D+S),D===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let m=new t(v);if(!m.cksumValid)break;let E=512*Math.ceil(m.size/512);if(D+E+512>w.size)break;D+=E,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,u(p,b,D,y,g)}finally{if(_)try{s.closeSync(y)}catch{}}},u=(p,g,b,_,y)=>{let D=new f.WriteStreamSync(p.file,{fd:_,start:b});g.pipe(D),o(g,y)},c=(p,g,b)=>{g=Array.from(g);let _=new i(p),y=(w,v,m)=>{let E=(T,k)=>{T?s.close(w,O=>m(T)):m(null,k)},S=0;if(v===0)return E(null,0);let A=0,x=Buffer.alloc(512),L=(T,k)=>{if(T)return E(T);if(A+=k,A<512&&k)return s.read(w,x,A,x.length-A,S+A,L);if(S===0&&x[0]===31&&x[1]===139)return E(new Error("cannot append to compressed archives"));if(A<512)return E(null,S);let O=new t(x);if(!O.cksumValid)return E(null,S);let I=512*Math.ceil(O.size/512);if(S+I+512>v||(S+=I+512,S>=v))return E(null,S);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),A=0,s.read(w,x,0,512,S,L)};s.read(w,x,0,512,S,L)},D=new Promise((w,v)=>{_.on("error",v);let m="r+",E=(S,A)=>{if(S&&S.code==="ENOENT"&&m==="r+")return m="w+",s.open(p.file,m,E);if(S)return v(S);s.fstat(A,(x,L)=>{if(x)return s.close(A,()=>v(x));y(A,L.size,(T,k)=>{if(T)return v(T);let O=new f.WriteStream(p.file,{fd:A,start:k});_.pipe(O),O.on("error",v),O.on("close",w),d(_,g)})})};s.open(p.file,m,E)});return b?D.then(b,b):D},o=(p,g)=>{g.forEach(b=>{b.charAt(0)==="@"?a({file:r.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,g)=>{for(;g.length;){let b=g.shift();if(b.charAt(0)==="@")return a({file:r.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,g));p.add(b)}p.end()}}),la=M((e,l)=>{"use strict";B();var n=At(),i=kn();l.exports=(f,a,r)=>{let t=n(f);if(!t.file)throw new TypeError("file is required");if(t.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),s(t),i(t,a,r)};var s=f=>{let a=f.filter;f.mtimeCache||(f.mtimeCache=new Map),f.filter=a?(r,t)=>a(r,t)&&!(f.mtimeCache.get(r)>t.mtime):(r,t)=>!(f.mtimeCache.get(r)>t.mtime)}}),ca=M((e,l)=>{B();var{promisify:n}=Z("util"),i=Z("fs"),s=f=>{if(!f)f={mode:511,fs:i};else if(typeof f=="object")f={mode:511,fs:i,...f};else if(typeof f=="number")f={mode:f,fs:i};else if(typeof f=="string")f={mode:parseInt(f,8),fs:i};else throw new TypeError("invalid options argument");return f.mkdir=f.mkdir||f.fs.mkdir||i.mkdir,f.mkdirAsync=n(f.mkdir),f.stat=f.stat||f.fs.stat||i.stat,f.statAsync=n(f.stat),f.statSync=f.statSync||f.fs.statSync||i.statSync,f.mkdirSync=f.mkdirSync||f.fs.mkdirSync||i.mkdirSync,f};l.exports=s}),ha=M((e,l)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:s}=Z("path"),f=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=i(a),n==="win32"){let r=/[*|"<>?:]/,{root:t}=s(a);if(r.test(a.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};l.exports=f}),pa=M((e,l)=>{B();var{dirname:n}=Z("path"),i=(f,a,r=void 0)=>r===a?Promise.resolve():f.statAsync(a).then(t=>t.isDirectory()?r:void 0,t=>t.code==="ENOENT"?i(f,n(a),a):void 0),s=(f,a,r=void 0)=>{if(r!==a)try{return f.statSync(a).isDirectory()?r:void 0}catch(t){return t.code==="ENOENT"?s(f,n(a),a):void 0}};l.exports={findMade:i,findMadeSync:s}}),Fn=M((e,l)=>{B();var{dirname:n}=Z("path"),i=(f,a,r)=>{a.recursive=!1;let t=n(f);return t===f?a.mkdirAsync(f,a).catch(h=>{if(h.code!=="EISDIR")throw h}):a.mkdirAsync(f,a).then(()=>r||f,h=>{if(h.code==="ENOENT")return i(t,a).then(u=>i(f,a,u));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;return a.statAsync(f).then(u=>{if(u.isDirectory())return r;throw h},()=>{throw h})})},s=(f,a,r)=>{let t=n(f);if(a.recursive=!1,t===f)try{return a.mkdirSync(f,a)}catch(h){if(h.code!=="EISDIR")throw h;return}try{return a.mkdirSync(f,a),r||f}catch(h){if(h.code==="ENOENT")return s(f,a,s(t,a,r));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;try{if(!a.statSync(f).isDirectory())throw h}catch{throw h}}};l.exports={mkdirpManual:i,mkdirpManualSync:s}}),fa=M((e,l)=>{B();var{dirname:n}=Z("path"),{findMade:i,findMadeSync:s}=pa(),{mkdirpManual:f,mkdirpManualSync:a}=Fn(),r=(h,u)=>(u.recursive=!0,n(h)===h?u.mkdirAsync(h,u):i(u,h).then(c=>u.mkdirAsync(h,u).then(()=>c).catch(o=>{if(o.code==="ENOENT")return f(h,u);throw o}))),t=(h,u)=>{if(u.recursive=!0,n(h)===h)return u.mkdirSync(h,u);let c=s(u,h);try{return u.mkdirSync(h,u),c}catch(o){if(o.code==="ENOENT")return a(h,u);throw o}};l.exports={mkdirpNative:r,mkdirpNativeSync:t}}),da=M((e,l)=>{B();var n=Z("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,s=i.replace(/^v/,"").split("."),f=+s[0]>10||+s[0]==10&&+s[1]>=12,a=f?t=>t.mkdir===n.mkdir:()=>!1,r=f?t=>t.mkdirSync===n.mkdirSync:()=>!1;l.exports={useNative:a,useNativeSync:r}}),ma=M((e,l)=>{B();var n=ca(),i=ha(),{mkdirpNative:s,mkdirpNativeSync:f}=fa(),{mkdirpManual:a,mkdirpManualSync:r}=Fn(),{useNative:t,useNativeSync:h}=da(),u=(o,d)=>(o=i(o),d=n(d),t(d)?s(o,d):a(o,d)),c=(o,d)=>(o=i(o),d=n(d),h(d)?f(o,d):r(o,d));u.sync=c,u.native=(o,d)=>s(i(o),n(d)),u.manual=(o,d)=>a(i(o),n(d)),u.nativeSync=(o,d)=>f(i(o),n(d)),u.manualSync=(o,d)=>r(i(o),n(d)),l.exports=u}),ya=M((e,l)=>{"use strict";B();var n=Z("fs"),i=Z("path"),s=n.lchown?"lchown":"chown",f=n.lchownSync?"lchownSync":"chownSync",a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,w,v)=>{try{return n[f](D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},t=(D,w,v)=>{try{return n.chownSync(D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},h=a?(D,w,v,m)=>E=>{!E||E.code!=="EISDIR"?m(E):n.chown(D,w,v,m)}:(D,w,v,m)=>m,u=a?(D,w,v)=>{try{return r(D,w,v)}catch(m){if(m.code!=="EISDIR")throw m;t(D,w,v)}}:(D,w,v)=>r(D,w,v),c=process.version,o=(D,w,v)=>n.readdir(D,w,v),d=(D,w)=>n.readdirSync(D,w);/^v4\./.test(c)&&(o=(D,w,v)=>n.readdir(D,v));var p=(D,w,v,m)=>{n[s](D,w,v,h(D,w,v,E=>{m(E&&E.code!=="ENOENT"?E:null)}))},g=(D,w,v,m,E)=>{if(typeof w=="string")return n.lstat(i.resolve(D,w),(S,A)=>{if(S)return E(S.code!=="ENOENT"?S:null);A.name=w,g(D,A,v,m,E)});if(w.isDirectory())b(i.resolve(D,w.name),v,m,S=>{if(S)return E(S);let A=i.resolve(D,w.name);p(A,v,m,E)});else{let S=i.resolve(D,w.name);p(S,v,m,E)}},b=(D,w,v,m)=>{o(D,{withFileTypes:!0},(E,S)=>{if(E){if(E.code==="ENOENT")return m();if(E.code!=="ENOTDIR"&&E.code!=="ENOTSUP")return m(E)}if(E||!S.length)return p(D,w,v,m);let A=S.length,x=null,L=T=>{if(!x){if(T)return m(x=T);if(--A===0)return p(D,w,v,m)}};S.forEach(T=>g(D,T,w,v,L))})},_=(D,w,v,m)=>{if(typeof w=="string")try{let E=n.lstatSync(i.resolve(D,w));E.name=w,w=E}catch(E){if(E.code==="ENOENT")return;throw E}w.isDirectory()&&y(i.resolve(D,w.name),v,m),u(i.resolve(D,w.name),v,m)},y=(D,w,v)=>{let m;try{m=d(D,{withFileTypes:!0})}catch(E){if(E.code==="ENOENT")return;if(E.code==="ENOTDIR"||E.code==="ENOTSUP")return u(D,w,v);throw E}return m&&m.length&&m.forEach(E=>_(D,E,w,v)),u(D,w,v)};l.exports=b,b.sync=y}),ga=M((e,l)=>{"use strict";B();var n=ma(),i=Z("fs"),s=Z("path"),f=ya(),a=Ct(),r=class extends Error{constructor(g,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=g}get name(){return"SylinkError"}},t=class extends Error{constructor(g,b){super(b+": Cannot cd into '"+g+"'"),this.path=g,this.code=b}get name(){return"CwdError"}},h=(g,b)=>g.get(a(b)),u=(g,b,_)=>g.set(a(b),_),c=(g,b)=>{i.stat(g,(_,y)=>{(_||!y.isDirectory())&&(_=new t(g,_&&_.code||"ENOTDIR")),b(_)})};l.exports=(g,b,_)=>{g=a(g);let y=b.umask,D=b.mode|448,w=(D&y)!==0,v=b.uid,m=b.gid,E=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),S=b.preserve,A=b.unlink,x=b.cache,L=a(b.cwd),T=(O,I)=>{O?_(O):(u(x,g,!0),I&&E?f(I,v,m,$=>T($)):w?i.chmod(g,D,_):_())};if(x&&h(x,g)===!0)return T();if(g===L)return c(g,T);if(S)return n(g,{mode:D}).then(O=>T(null,O),T);let k=a(s.relative(L,g)).split("/");o(L,k,D,x,A,L,null,T)};var o=(g,b,_,y,D,w,v,m)=>{if(!b.length)return m(null,v);let E=b.shift(),S=a(s.resolve(g+"/"+E));if(h(y,S))return o(S,b,_,y,D,w,v,m);i.mkdir(S,_,d(S,b,_,y,D,w,v,m))},d=(g,b,_,y,D,w,v,m)=>E=>{E?i.lstat(g,(S,A)=>{if(S)S.path=S.path&&a(S.path),m(S);else if(A.isDirectory())o(g,b,_,y,D,w,v,m);else if(D)i.unlink(g,x=>{if(x)return m(x);i.mkdir(g,_,d(g,b,_,y,D,w,v,m))});else{if(A.isSymbolicLink())return m(new r(g,g+"/"+b.join("/")));m(E)}}):(v=v||g,o(g,b,_,y,D,w,v,m))},p=g=>{let b=!1,_="ENOTDIR";try{b=i.statSync(g).isDirectory()}catch(y){_=y.code}finally{if(!b)throw new t(g,_)}};l.exports.sync=(g,b)=>{g=a(g);let _=b.umask,y=b.mode|448,D=(y&_)!==0,w=b.uid,v=b.gid,m=typeof w=="number"&&typeof v=="number"&&(w!==b.processUid||v!==b.processGid),E=b.preserve,S=b.unlink,A=b.cache,x=a(b.cwd),L=O=>{u(A,g,!0),O&&m&&f.sync(O,w,v),D&&i.chmodSync(g,y)};if(A&&h(A,g)===!0)return L();if(g===x)return p(x),L();if(E)return L(n.sync(g,y));let T=a(s.relative(x,g)).split("/"),k=null;for(let O=T.shift(),I=x;O&&(I+="/"+O);O=T.shift())if(I=a(s.resolve(I)),!h(A,I))try{i.mkdirSync(I,y),k=k||I,u(A,I,!0)}catch{let $=i.lstatSync(I);if($.isDirectory()){u(A,I,!0);continue}else if(S){i.unlinkSync(I),i.mkdirSync(I,y),k=k||I,u(A,I,!0);continue}else if($.isSymbolicLink())return new r(I,I+"/"+T.join("/"))}return L(k)}}),On=M((e,l)=>{B();var n=Object.create(null),{hasOwnProperty:i}=Object.prototype;l.exports=s=>(i.call(n,s)||(n[s]=s.normalize("NFKD")),n[s])}),ba=M((e,l)=>{B();var n=Z("assert"),i=On(),s=kt(),{join:f}=Z("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=a==="win32";l.exports=()=>{let t=new Map,h=new Map,u=b=>b.split("/").slice(0,-1).reduce((_,y)=>(_.length&&(y=f(_[_.length-1],y)),_.push(y||"/"),_),[]),c=new Set,o=b=>{let _=h.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(y=>t.get(y)),dirs:[..._.dirs].map(y=>t.get(y))}},d=b=>{let{paths:_,dirs:y}=o(b);return _.every(D=>D[0]===b)&&y.every(D=>D[0]instanceof Set&&D[0].has(b))},p=b=>c.has(b)||!d(b)?!1:(c.add(b),b(()=>g(b)),!0),g=b=>{if(!c.has(b))return!1;let{paths:_,dirs:y}=h.get(b),D=new Set;return _.forEach(w=>{let v=t.get(w);n.equal(v[0],b),v.length===1?t.delete(w):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),y.forEach(w=>{let v=t.get(w);n(v[0]instanceof Set),v[0].size===1&&v.length===1?t.delete(w):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),c.delete(b),D.forEach(w=>p(w)),!0};return{check:d,reserve:(b,_)=>{b=r?["win32 parallelization disabled"]:b.map(D=>i(s(f(D))).toLowerCase());let y=new Set(b.map(D=>u(D)).reduce((D,w)=>D.concat(w)));return h.set(_,{dirs:y,paths:b}),b.forEach(D=>{let w=t.get(D);w?w.push(_):t.set(D,[_])}),y.forEach(D=>{let w=t.get(D);w?w[w.length-1]instanceof Set?w[w.length-1].add(_):w.push(new Set([_])):t.set(D,[new Set([_])])}),p(_)}}}}),va=M((e,l)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,i=n==="win32",s=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:f,O_TRUNC:a,O_WRONLY:r,UV_FS_O_FILEMAP:t=0}=s.constants,h=i&&!!t,u=512*1024,c=t|a|f|r;l.exports=h?o=>o<u?c:"w":()=>"w"}),Rn=M((e,l)=>{"use strict";B();var n=Z("assert"),i=yr(),s=Z("fs"),f=Ft(),a=Z("path"),r=ga(),t=Sn(),h=ba(),u=An(),c=Ct(),o=kt(),d=On(),p=Symbol("onEntry"),g=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),y=Symbol("isReusable"),D=Symbol("makeFs"),w=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),E=Symbol("symlink"),S=Symbol("hardlink"),A=Symbol("unsupported"),x=Symbol("checkPath"),L=Symbol("mkdir"),T=Symbol("onError"),k=Symbol("pending"),O=Symbol("pend"),I=Symbol("unpend"),$=Symbol("ended"),R=Symbol("maybeClose"),G=Symbol("skip"),W=Symbol("doChown"),Q=Symbol("uid"),P=Symbol("gid"),j=Symbol("checkedCwd"),F=Z("crypto"),J=va(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ee=q==="win32",N=(C,z)=>{if(!ee)return s.unlink(C,z);let X=C+".DELETE."+F.randomBytes(16).toString("hex");s.rename(C,X,re=>{if(re)return z(re);s.unlink(X,z)})},K=C=>{if(!ee)return s.unlinkSync(C);let z=C+".DELETE."+F.randomBytes(16).toString("hex");s.renameSync(C,z),s.unlinkSync(z)},te=(C,z,X)=>C===C>>>0?C:z===z>>>0?z:X,se=C=>d(o(c(C))).toLowerCase(),le=(C,z)=>{z=se(z);for(let X of C.keys()){let re=se(X);(re===z||re.indexOf(z+"/")===0)&&C.delete(X)}},ye=C=>{for(let z of C.keys())C.delete(z)},de=class extends i{constructor(C){if(C||(C={}),C.ondone=z=>{this[$]=!0,this[R]()},super(C),this[j]=!1,this.reservations=h(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[k]=0,this[$]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.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=C.forceChown===!0,this.win32=!!C.win32||ee,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=c(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",z=>this[p](z))}warn(C,z,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,z,X)}[R](){this[$]&&this[k]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[x](C){if(this.strip){let z=c(C.path).split("/");if(z.length<this.strip)return!1;if(C.path=z.slice(this.strip).join("/"),C.type==="Link"){let X=c(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=c(C.path),X=z.split("/");if(X.includes("..")||ee&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:z}),!1;let[re,ce]=u(z);re&&(C.path=ce,this.warn("TAR_ENTRY_INFO",`stripping ${re} from absolute path`,{entry:C,path:z}))}if(a.isAbsolute(C.path)?C.absolute=c(a.resolve(C.path)):C.absolute=c(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:c(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:z}=a.win32.parse(C.absolute);C.absolute=z+t.encode(C.absolute.slice(z.length));let{root:X}=a.win32.parse(C.path);C.path=X+t.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[x](C))return C.resume();switch(n.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[g](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[T](C,z){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:z}),this[I](),z.resume())}[L](C,z,X){r(c(C),{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:z,noChmod:this.noChmod},X)}[W](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Q](C){return te(this.uid,C.uid,this.processUid)}[P](C){return te(this.gid,C.gid,this.processGid)}[w](C,z){let X=C.mode&4095||this.fmode,re=new f.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});re.on("error",ne=>{re.fd&&s.close(re.fd,()=>{}),re.write=()=>!0,this[T](ne,C),z()});let ce=1,ie=ne=>{if(ne){re.fd&&s.close(re.fd,()=>{}),this[T](ne,C),z();return}--ce===0&&s.close(re.fd,he=>{he?this[T](he,C):this[I](),z()})};re.on("finish",ne=>{let he=C.absolute,be=re.fd;if(C.mtime&&!this.noMtime){ce++;let De=C.atime||new Date,Y=C.mtime;s.futimes(be,De,Y,U=>U?s.utimes(he,De,Y,oe=>ie(oe&&U)):ie())}if(this[W](C)){ce++;let De=this[Q](C),Y=this[P](C);s.fchown(be,De,Y,U=>U?s.chown(he,De,Y,oe=>ie(oe&&U)):ie())}ie()});let ue=this.transform&&this.transform(C)||C;ue!==C&&(ue.on("error",ne=>{this[T](ne,C),z()}),C.pipe(ue)),ue.pipe(re)}[v](C,z){let X=C.mode&4095||this.dmode;this[L](C.absolute,X,re=>{if(re){this[T](re,C),z();return}let ce=1,ie=ue=>{--ce===0&&(z(),this[I](),C.resume())};C.mtime&&!this.noMtime&&(ce++,s.utimes(C.absolute,C.atime||new Date,C.mtime,ie)),this[W](C)&&(ce++,s.chown(C.absolute,this[Q](C),this[P](C),ie)),ie()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[E](C,z){this[m](C,C.linkpath,"symlink",z)}[S](C,z){let X=c(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",z)}[O](){this[k]++}[I](){this[k]--,this[R]()}[G](C){this[I](),C.resume()}[y](C,z){return C.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!ee}[g](C){this[O]();let z=[C.path];C.linkpath&&z.push(C.linkpath),this.reservations.reserve(z,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?ye(this.dirCache):C.type!=="Directory"&&le(this.dirCache,C.absolute)}[b](C,z){this[_](C);let X=ue=>{this[_](C),z(ue)},re=()=>{this[L](this.cwd,this.dmode,ue=>{if(ue){this[T](ue,C),X();return}this[j]=!0,ce()})},ce=()=>{if(C.absolute!==this.cwd){let ue=c(a.dirname(C.absolute));if(ue!==this.cwd)return this[L](ue,this.dmode,ne=>{if(ne){this[T](ne,C),X();return}ie()})}ie()},ie=()=>{s.lstat(C.absolute,(ue,ne)=>{if(ne&&(this.keep||this.newer&&ne.mtime>C.mtime)){this[G](C),X();return}if(ue||this[y](C,ne))return this[D](null,C,X);if(ne.isDirectory()){if(C.type==="Directory"){let he=!this.noChmod&&C.mode&&(ne.mode&4095)!==C.mode,be=De=>this[D](De,C,X);return he?s.chmod(C.absolute,C.mode,be):be()}if(C.absolute!==this.cwd)return s.rmdir(C.absolute,he=>this[D](he,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);N(C.absolute,he=>this[D](he,C,X))})};this[j]?ce():re()}[D](C,z,X){if(C){this[T](C,z),X();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[w](z,X);case"Link":return this[S](z,X);case"SymbolicLink":return this[E](z,X);case"Directory":case"GNUDumpDir":return this[v](z,X)}}[m](C,z,X,re){s[X](z,C.absolute,ce=>{ce?this[T](ce,C):(this[I](),C.resume()),re()})}},H=C=>{try{return[null,C()]}catch(z){return[z,null]}},V=class extends de{[D](C,z){return super[D](C,z,()=>{})}[g](C){if(this[_](C),!this[j]){let ce=this[L](this.cwd,this.dmode);if(ce)return this[T](ce,C);this[j]=!0}if(C.absolute!==this.cwd){let ce=c(a.dirname(C.absolute));if(ce!==this.cwd){let ie=this[L](ce,this.dmode);if(ie)return this[T](ie,C)}}let[z,X]=H(()=>s.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[G](C);if(z||this[y](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let ie=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[ue]=ie?H(()=>{s.chmodSync(C.absolute,C.mode)}):[];return this[D](ue,C)}let[ce]=H(()=>s.rmdirSync(C.absolute));this[D](ce,C)}let[re]=C.absolute===this.cwd?[]:H(()=>K(C.absolute));this[D](re,C)}[w](C,z){let X=C.mode&4095||this.fmode,re=ue=>{let ne;try{s.closeSync(ce)}catch(he){ne=he}(ue||ne)&&this[T](ue||ne,C),z()},ce;try{ce=s.openSync(C.absolute,J(C.size),X)}catch(ue){return re(ue)}let ie=this.transform&&this.transform(C)||C;ie!==C&&(ie.on("error",ue=>this[T](ue,C)),C.pipe(ie)),ie.on("data",ue=>{try{s.writeSync(ce,ue,0,ue.length)}catch(ne){re(ne)}}),ie.on("end",ue=>{let ne=null;if(C.mtime&&!this.noMtime){let he=C.atime||new Date,be=C.mtime;try{s.futimesSync(ce,he,be)}catch(De){try{s.utimesSync(C.absolute,he,be)}catch{ne=De}}}if(this[W](C)){let he=this[Q](C),be=this[P](C);try{s.fchownSync(ce,he,be)}catch(De){try{s.chownSync(C.absolute,he,be)}catch{ne=ne||De}}}re(ne)})}[v](C,z){let X=C.mode&4095||this.dmode,re=this[L](C.absolute,X);if(re){this[T](re,C),z();return}if(C.mtime&&!this.noMtime)try{s.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{s.chownSync(C.absolute,this[Q](C),this[P](C))}catch{}z(),C.resume()}[L](C,z){try{return r.sync(c(C),{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:z})}catch(X){return X}}[m](C,z,X,re){try{s[X+"Sync"](z,C.absolute),re(),C.resume()}catch(ce){return this[T](ce,C)}}};de.Sync=V,l.exports=de}),_a=M((e,l)=>{"use strict";B();var n=At(),i=Rn(),s=Z("fs"),f=Ft(),a=Z("path"),r=kt();l.exports=(d,p,g)=>{typeof d=="function"?(g=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(g=p,p=null),p?p=Array.from(p):p=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return p.length&&t(b,p),b.file&&b.sync?h(b):b.file?u(b,g):b.sync?c(b):o(b)};var t=(d,p)=>{let g=new Map(p.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||a.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(a.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&_(r(y)):y=>_(r(y))},h=d=>{let p=new i.Sync(d),g=d.file,b=s.statSync(g),_=d.maxReadSize||16*1024*1024;new f.ReadStreamSync(g,{readSize:_,size:b.size}).pipe(p)},u=(d,p)=>{let g=new i(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("close",D),s.stat(_,(v,m)=>{if(v)w(v);else{let E=new f.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return p?y.then(p,p):y},c=d=>new i.Sync(d),o=d=>new i(d)}),Ea=M(e=>{"use strict";B(),e.c=e.create=ua(),e.r=e.replace=kn(),e.t=e.list=gr(),e.u=e.update=la(),e.x=e.extract=_a(),e.Pack=mr(),e.Unpack=Rn(),e.Parse=yr(),e.ReadEntry=pr(),e.WriteEntry=Cn(),e.Header=xt(),e.Pax=fr(),e.types=Dn()});B();var df=ke(na()),mf=ke(Ea()),bf=Da(wa.pipeline);var Sa=M((e,l)=>{B();var n=Z("constants"),i=process.cwd,s=null,f=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;l.exports=r;function r(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&h(t),t.lutimes||u(t),t.chown=d(t.chown),t.fchown=d(t.fchown),t.lchown=d(t.lchown),t.chmod=c(t.chmod),t.fchmod=c(t.fchmod),t.lchmod=c(t.lchmod),t.chownSync=p(t.chownSync),t.fchownSync=p(t.fchownSync),t.lchownSync=p(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=g(t.stat),t.fstat=g(t.fstat),t.lstat=g(t.lstat),t.statSync=b(t.statSync),t.fstatSync=b(t.fstatSync),t.lstatSync=b(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(y,D,w){w&&process.nextTick(w)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(y,D,w,v){v&&process.nextTick(v)},t.lchownSync=function(){}),f==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(y){function D(w,v,m){var E=Date.now(),S=0;y(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){t.stat(v,function(L,T){L&&L.code==="ENOENT"?y(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(y){function D(w,v,m,E,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,k,O){if(T&&T.code==="EAGAIN"&&L<10)return L++,y.call(t,w,v,m,E,S,x);A.apply(this,arguments)}}return y.call(t,w,v,m,E,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(y){return function(D,w,v,m,E){for(var S=0;;)try{return y.call(t,D,w,v,m,E)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(t.readSync);function h(y){y.lchmod=function(D,w,v){y.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,E){if(m){v&&v(m);return}y.fchmod(E,w,function(S){y.close(E,function(A){v&&v(S||A)})})})},y.lchmodSync=function(D,w){var v=y.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,E;try{E=y.fchmodSync(v,w),m=!1}finally{if(m)try{y.closeSync(v)}catch{}else y.closeSync(v)}return E}}function u(y){n.hasOwnProperty("O_SYMLINK")&&y.futimes?(y.lutimes=function(D,w,v,m){y.open(D,n.O_SYMLINK,function(E,S){if(E){m&&m(E);return}y.futimes(S,w,v,function(A){y.close(S,function(x){m&&m(A||x)})})})},y.lutimesSync=function(D,w,v){var m=y.openSync(D,n.O_SYMLINK),E,S=!0;try{E=y.futimesSync(m,w,v),S=!1}finally{if(S)try{y.closeSync(m)}catch{}else y.closeSync(m)}return E}):y.futimes&&(y.lutimes=function(D,w,v,m){m&&process.nextTick(m)},y.lutimesSync=function(){})}function c(y){return y&&function(D,w,v){return y.call(t,D,w,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(y){return y&&function(D,w){try{return y.call(t,D,w)}catch(v){if(!_(v))throw v}}}function d(y){return y&&function(D,w,v,m){return y.call(t,D,w,v,function(E){_(E)&&(E=null),m&&m.apply(this,arguments)})}}function p(y){return y&&function(D,w,v){try{return y.call(t,D,w,v)}catch(m){if(!_(m))throw m}}}function g(y){return y&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(E,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?y.call(t,D,w,m):y.call(t,D,m)}}function b(y){return y&&function(D,w){var v=w?y.call(t,D,w):y.call(t,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(y){if(!y||y.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(y.code==="EINVAL"||y.code==="EPERM"))}}}),Aa=M((e,l)=>{B();var n=Z("stream").Stream;l.exports=i;function i(s){return{ReadStream:f,WriteStream:a};function f(r,t){if(!(this instanceof f))return new f(r,t);n.call(this);var h=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,t=t||{};for(var u=Object.keys(t),c=0,o=u.length;c<o;c++){var d=u[c];this[d]=t[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(){h._read()});return}s.open(this.path,this.flags,this.mode,function(p,g){if(p){h.emit("error",p),h.readable=!1;return}h.fd=g,h.emit("open",g),h._read()})}function a(r,t){if(!(this instanceof a))return new a(r,t);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,t=t||{};for(var h=Object.keys(t),u=0,c=h.length;u<c;u++){var o=h[u];this[o]=t[o]}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=s.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ca=M((e,l)=>{"use strict";B(),l.exports=i;var n=Object.getPrototypeOf||function(s){return s.__proto__};function i(s){if(s===null||typeof s!="object")return s;if(s instanceof Object)var f={__proto__:n(s)};else var f=Object.create(null);return Object.getOwnPropertyNames(s).forEach(function(a){Object.defineProperty(f,a,Object.getOwnPropertyDescriptor(s,a))}),f}}),we=M((e,l)=>{B();var n=Z("fs"),i=Sa(),s=Aa(),f=Ca(),a=Z("util"),r,t;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",t="___graceful-fs.previous");function h(){}function u(y,D){Object.defineProperty(y,r,{get:function(){return D}})}var c=h;a.debuglog?c=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var y=a.format.apply(a,arguments);y="GFS4: "+y.split(/\n/).join(`
|
|
29
|
-
GFS4: `),console.error(y)}),n[r]||(o=global[r]||[],u(n,o),n.close=function(y){function D(w,v){return y.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,t,{value:y}),D}(n.close),n.closeSync=function(y){function D(w){y.apply(n,arguments),b()}return Object.defineProperty(D,t,{value:y}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||u(global,n[r]),l.exports=d(f(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(y){i(y),y.gracefulify=d,y.createReadStream=F,y.createWriteStream=J;var D=y.readFile;y.readFile=w;function w(N,K,te){return typeof K=="function"&&(te=K,K=null),se(N,K,te);function se(le,ye,de,H){return D(le,ye,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?p([se,[le,ye,de],V,H||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var v=y.writeFile;y.writeFile=m;function m(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return v(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var E=y.appendFile;E&&(y.appendFile=S);function S(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return E(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=y.copyFile;A&&(y.copyFile=x);function x(N,K,te,se){return typeof te=="function"&&(se=te,te=0),le(N,K,te,se);function le(ye,de,H,V,C){return A(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=y.readdir;y.readdir=k;var T=/^v[0-5]\./;function k(N,K,te){typeof K=="function"&&(te=K,K=null);var se=T.test(process.version)?function(ye,de,H,V){return L(ye,le(ye,de,H,V))}:function(ye,de,H,V){return L(ye,de,le(ye,de,H,V))};return se(N,K,te);function le(ye,de,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([se,[ye,de,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var O=s(y);W=O.ReadStream,P=O.WriteStream}var I=y.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=y.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(y,"ReadStream",{get:function(){return W},set:function(N){W=N},enumerable:!0,configurable:!0}),Object.defineProperty(y,"WriteStream",{get:function(){return P},set:function(N){P=N},enumerable:!0,configurable:!0});var R=W;Object.defineProperty(y,"FileReadStream",{get:function(){return R},set:function(N){R=N},enumerable:!0,configurable:!0});var G=P;Object.defineProperty(y,"FileWriteStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0});function W(N,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var N=this;ee(N.path,N.flags,N.mode,function(K,te){K?(N.autoClose&&N.destroy(),N.emit("error",K)):(N.fd=te,N.emit("open",te),N.read())})}function P(N,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var N=this;ee(N.path,N.flags,N.mode,function(K,te){K?(N.destroy(),N.emit("error",K)):(N.fd=te,N.emit("open",te))})}function F(N,K){return new y.ReadStream(N,K)}function J(N,K){return new y.WriteStream(N,K)}var q=y.open;y.open=ee;function ee(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return q(ye,de,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return y}function p(y){c("ENQUEUE",y[0].name,y[1]),n[r].push(y),_()}var g;function b(){for(var y=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=y,n[r][D][4]=y);_()}function _(){if(clearTimeout(g),g=void 0,n[r].length!==0){var y=n[r].shift(),D=y[0],w=y[1],v=y[2],m=y[3],E=y[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-E,x=Math.max(E-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(y)}g===void 0&&(g=setTimeout(_,0))}}});var He=M(e=>{"use strict";B(),e.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((i,s)=>{l.call(this,...n,(f,a)=>f!=null?s(f):i(a))})},"name",{value:l.name})},e.fromPromise=function(l){return Object.defineProperty(function(...n){let i=n[n.length-1];if(typeof i!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(s=>i(null,s),i)},"name",{value:l.name})}}),dt=M(e=>{"use strict";B();var l=He().fromCallback,n=we(),i=["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(s=>typeof n[s]=="function");Object.assign(e,n),i.forEach(s=>{e[s]=l(n[s])}),e.exists=function(s,f){return typeof f=="function"?n.exists(s,f):new Promise(a=>n.exists(s,a))},e.read=function(s,f,a,r,t,h){return typeof h=="function"?n.read(s,f,a,r,t,h):new Promise((u,c)=>{n.read(s,f,a,r,t,(o,d,p)=>{if(o)return c(o);u({bytesRead:d,buffer:p})})})},e.write=function(s,f,...a){return typeof a[a.length-1]=="function"?n.write(s,f,...a):new Promise((r,t)=>{n.write(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffer:c})})})},e.readv=function(s,f,...a){return typeof a[a.length-1]=="function"?n.readv(s,f,...a):new Promise((r,t)=>{n.readv(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesRead:u,buffers:c})})})},e.writev=function(s,f,...a){return typeof a[a.length-1]=="function"?n.writev(s,f,...a):new Promise((r,t)=>{n.writev(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffers:c})})})},typeof n.realpath.native=="function"?e.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),xa=M((e,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(i){if(process.platform==="win32"&&/[<>:"|?*]/.test(i.replace(n.parse(i).root,""))){let s=new Error(`Path contains invalid characters: ${i}`);throw s.code="EINVAL",s}}}),ka=M((e,l)=>{"use strict";B();var n=dt(),{checkPath:i}=xa(),s=f=>typeof f=="number"?f:{...{mode:511},...f}.mode;l.exports.makeDir=async(f,a)=>(i(f),n.mkdir(f,{mode:s(a),recursive:!0})),l.exports.makeDirSync=(f,a)=>(i(f),n.mkdirSync(f,{mode:s(a),recursive:!0}))}),ze=M((e,l)=>{"use strict";B();var n=He().fromPromise,{makeDir:i,makeDirSync:s}=ka(),f=n(i);l.exports={mkdirs:f,mkdirsSync:s,mkdirp:f,mkdirpSync:s,ensureDir:f,ensureDirSync:s}}),st=M((e,l)=>{"use strict";B();var n=He().fromPromise,i=dt();function s(f){return i.access(f).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(s),pathExistsSync:i.existsSync}}),Tn=M((e,l)=>{"use strict";B();var n=we();function i(f,a,r,t){n.open(f,"r+",(h,u)=>{if(h)return t(h);n.futimes(u,a,r,c=>{n.close(u,o=>{t&&t(c||o)})})})}function s(f,a,r){let t=n.openSync(f,"r+");return n.futimesSync(t,a,r),n.closeSync(t)}l.exports={utimesMillis:i,utimesMillisSync:s}}),mt=M((e,l)=>{"use strict";B();var n=dt(),i=Z("path"),s=Z("util");function f(p,g,b){let _=b.dereference?y=>n.stat(y,{bigint:!0}):y=>n.lstat(y,{bigint:!0});return Promise.all([_(p),_(g).catch(y=>{if(y.code==="ENOENT")return null;throw y})]).then(([y,D])=>({srcStat:y,destStat:D}))}function a(p,g,b){let _,y=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=y(p);try{_=y(g)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:_}}function r(p,g,b,_,y){s.callbackify(f)(p,g,_,(D,w)=>{if(D)return y(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let E=i.basename(p),S=i.basename(g);return b==="move"&&E!==S&&E.toLowerCase()===S.toLowerCase()?y(null,{srcStat:v,destStat:m,isChangingCase:!0}):y(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return y(new Error(`Cannot overwrite non-directory '${g}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return y(new Error(`Cannot overwrite directory '${g}' with non-directory '${p}'.`))}return v.isDirectory()&&o(p,g)?y(new Error(d(p,g,b))):y(null,{srcStat:v,destStat:m})})}function t(p,g,b,_){let{srcStat:y,destStat:D}=a(p,g,_);if(D){if(c(y,D)){let w=i.basename(p),v=i.basename(g);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:y,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(y.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${g}' with directory '${p}'.`);if(!y.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${g}' with non-directory '${p}'.`)}if(y.isDirectory()&&o(p,g))throw new Error(d(p,g,b));return{srcStat:y,destStat:D}}function h(p,g,b,_,y){let D=i.resolve(i.dirname(p)),w=i.resolve(i.dirname(b));if(w===D||w===i.parse(w).root)return y();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?y():y(v):c(g,m)?y(new Error(d(p,b,_))):h(p,g,w,_,y))}function u(p,g,b,_){let y=i.resolve(i.dirname(p)),D=i.resolve(i.dirname(b));if(D===y||D===i.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(g,w))throw new Error(d(p,b,_));return u(p,g,D,_)}function c(p,g){return g.ino&&g.dev&&g.ino===p.ino&&g.dev===p.dev}function o(p,g){let b=i.resolve(p).split(i.sep).filter(y=>y),_=i.resolve(g).split(i.sep).filter(y=>y);return b.reduce((y,D,w)=>y&&_[w]===D,!0)}function d(p,g,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${g}'.`}l.exports={checkPaths:r,checkPathsSync:t,checkParentPaths:h,checkParentPathsSync:u,isSrcSubdir:o,areIdentical:c}}),Fa=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=ze().mkdirs,f=st().pathExists,a=Tn().utimesMillis,r=mt();function t(T,k,O,I){typeof O=="function"&&!I?(I=O,O={}):typeof O=="function"&&(O={filter:O}),I=I||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;
|
|
28
|
+
`).reduce(r,Object.create(null)),r=(t,h)=>{let u=parseInt(h,10);if(u!==Buffer.byteLength(h)+1)return t;h=h.slice((u+" ").length);let c=h.split("="),o=c.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!o)return t;let d=c.join("=");return t[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,t};l.exports=s}),xt=M((e,l)=>{B(),l.exports=n=>{let i=n.length-1,s=-1;for(;i>-1&&n.charAt(i)==="/";)s=i,i--;return s===-1?n:n.slice(0,s)}}),dr=M((e,l)=>{"use strict";B(),l.exports=n=>class extends n{warn(i,s,f={}){this.file&&(f.file=this.file),this.cwd&&(f.cwd=this.cwd),f.code=s instanceof Error&&s.code||i,f.tarCode=i,!this.strict&&f.recoverable!==!1?(s instanceof Error&&(f=Object.assign(s,f),s=s.message),this.emit("warn",f.tarCode,s,f)):s instanceof Error?this.emit("error",Object.assign(s,f)):this.emit("error",Object.assign(new Error(`${i}: ${s}`),f))}}}),Sn=M((e,l)=>{"use strict";B();var n=["|","<",">","?",":"],i=n.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),s=new Map(n.map((a,r)=>[a,i[r]])),f=new Map(i.map((a,r)=>[a,n[r]]));l.exports={encode:a=>n.reduce((r,t)=>r.split(t).join(s.get(t)),a),decode:a=>i.reduce((r,t)=>r.split(t).join(f.get(t)),a)}}),An=M((e,l)=>{B();var{isAbsolute:n,parse:i}=Z("path").win32;l.exports=s=>{let f="",a=i(s);for(;n(s)||a.root;){let r=s.charAt(0)==="/"&&s.slice(0,4)!=="//?/"?"/":a.root;s=s.slice(r.length),f+=r,a=i(s)}return[f,s]}}),oa=M((e,l)=>{"use strict";B(),l.exports=(n,i,s)=>(n&=4095,s&&(n=(n|384)&-19),i&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),Cn=M((e,l)=>{"use strict";B();var n=hr(),i=fr(),s=kt(),f=Z("fs"),a=Z("path"),r=Ct(),t=xt(),h=(j,F)=>F?(j=r(j).replace(/^\.(\/|$)/,""),t(F)+"/"+j):r(j),u=16*1024*1024,c=Symbol("process"),o=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),g=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),y=Symbol("lstat"),D=Symbol("onlstat"),w=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),E=Symbol("onopenfile"),S=Symbol("close"),A=Symbol("mode"),k=Symbol("awaitDrain"),L=Symbol("ondrain"),T=Symbol("prefix"),x=Symbol("hadError"),O=dr(),I=Sn(),$=An(),R=oa(),G=O(class extends n{constructor(j,F){if(F=F||{},super(F),typeof j!="string")throw new TypeError("path is required");this.path=r(j),this.portable=!!F.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=F.maxReadSize||u,this.linkCache=F.linkCache||new Map,this.statCache=F.statCache||new Map,this.preservePaths=!!F.preservePaths,this.cwd=r(F.cwd||process.cwd()),this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.mtime=F.mtime||null,this.prefix=F.prefix?r(F.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 F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.win32=!!F.win32||process.platform==="win32",this.win32&&(this.path=I.decode(this.path.replace(/\\/g,"/")),j=j.replace(/\\/g,"/")),this.absolute=r(F.absolute||a.resolve(this.cwd,j)),this.path===""&&(this.path="./"),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.statCache.has(this.absolute)?this[D](this.statCache.get(this.absolute)):this[y]()}emit(j,...F){return j==="error"&&(this[x]=!0),super.emit(j,...F)}[y](){f.lstat(this.absolute,(j,F)=>{if(j)return this.emit("error",j);this[D](F)})}[D](j){this.statCache.set(this.absolute,j),this.stat=j,j.isFile()||(j.size=0),this.type=P(j),this.emit("stat",j),this[c]()}[c](){switch(this.type){case"File":return this[o]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[A](j){return R(j,this.type==="Directory",this.portable)}[T](j){return h(j,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new s({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[A](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[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](){f.readlink(this.absolute,(j,F)=>{if(j)return this.emit("error",j);this[v](F)})}[v](j){this.linkpath=r(j),this[b](),this.end()}[g](j){this.type="Link",this.linkpath=r(a.relative(this.cwd,j)),this.stat.size=0,this[b](),this.end()}[o](){if(this.stat.nlink>1){let j=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(j)){let F=this.linkCache.get(j);if(F.indexOf(this.cwd)===0)return this[g](F)}this.linkCache.set(j,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){f.open(this.absolute,"r",(j,F)=>{if(j)return this.emit("error",j);this[E](F)})}[E](j){if(this.fd=j,this[x])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let F=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(F),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:j,buf:F,offset:J,length:q,pos:ee}=this;f.read(j,F,J,q,ee,(N,K)=>{if(N)return this[S](()=>this.emit("error",N));this[w](K)})}[S](j){f.close(this.fd,j)}[w](j){if(j<=0&&this.remain>0){let J=new Error("encountered unexpected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j>this.remain){let J=new Error("did not encounter expected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j===this.remain)for(let J=j;J<this.length&&j<this.blockRemain;J++)this.buf[J+this.offset]=0,j++,this.remain++;let F=this.offset===0&&j===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+j);this.write(F)?this[L]():this[k](()=>this[L]())}[k](j){this.once("drain",j)}write(j){if(this.blockRemain<j.length){let F=new Error("writing more data than expected");return F.path=this.absolute,this.emit("error",F)}return this.remain-=j.length,this.blockRemain-=j.length,this.pos+=j.length,this.offset+=j.length,super.write(j)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](j=>j?this.emit("error",j):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[_]()}}),W=class extends G{[y](){this[D](f.lstatSync(this.absolute))}[p](){this[v](f.readlinkSync(this.absolute))}[m](){this[E](f.openSync(this.absolute,"r"))}[_](){let j=!0;try{let{fd:F,buf:J,offset:q,length:ee,pos:N}=this,K=f.readSync(F,J,q,ee,N);this[w](K),j=!1}finally{if(j)try{this[S](()=>{})}catch{}}}[k](j){j()}[S](j){f.closeSync(this.fd),j()}},Q=O(class extends n{constructor(j,F){F=F||{},super(F),this.preservePaths=!!F.preservePaths,this.portable=!!F.portable,this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.readEntry=j,this.type=j.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=F.prefix||null,this.path=r(j.path),this.mode=this[A](j.mode),this.uid=this.portable?null:j.uid,this.gid=this.portable?null:j.gid,this.uname=this.portable?null:j.uname,this.gname=this.portable?null:j.gname,this.size=j.size,this.mtime=this.noMtime?null:F.mtime||j.mtime,this.atime=this.portable?null:j.atime,this.ctime=this.portable?null:j.ctime,this.linkpath=r(j.linkpath),typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.remain=j.size,this.blockRemain=j.startBlockSize,this.header=new s({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}),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+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[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),j.pipe(this)}[T](j){return h(j,this.prefix)}[A](j){return R(j,this.type==="Directory",this.portable)}write(j){let F=j.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(j)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=W,G.Tar=Q;var P=j=>j.isFile()?"File":j.isDirectory()?"Directory":j.isSymbolicLink()?"SymbolicLink":"Unsupported";l.exports=G}),aa=M((e,l)=>{"use strict";B(),l.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),kn=M((e,l)=>{"use strict";B(),l.exports=n,n.Node=a,n.create=n;function n(r){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,r&&typeof r.forEach=="function")r.forEach(function(c){t.push(c)});else if(arguments.length>0)for(var h=0,u=arguments.length;h<u;h++)t.push(arguments[h]);return t}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var t=r.next,h=r.prev;return t&&(t.prev=h),h&&(h.next=t),r===this.head&&(this.head=t),r===this.tail&&(this.tail=h),r.list.length--,r.next=null,r.prev=null,r.list=null,t},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var t=this.head;r.list=this,r.next=t,t&&(t.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}},n.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var t=this.tail;r.list=this,r.prev=t,t&&(t.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,t=arguments.length;r<t;r++)s(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,t=arguments.length;r<t;r++)f(this,arguments[r]);return this.length},n.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}},n.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}},n.prototype.forEach=function(r,t){t=t||this;for(var h=this.head,u=0;h!==null;u++)r.call(t,h.value,u,this),h=h.next},n.prototype.forEachReverse=function(r,t){t=t||this;for(var h=this.tail,u=this.length-1;h!==null;u--)r.call(t,h.value,u,this),h=h.prev},n.prototype.get=function(r){for(var t=0,h=this.head;h!==null&&t<r;t++)h=h.next;if(t===r&&h!==null)return h.value},n.prototype.getReverse=function(r){for(var t=0,h=this.tail;h!==null&&t<r;t++)h=h.prev;if(t===r&&h!==null)return h.value},n.prototype.map=function(r,t){t=t||this;for(var h=new n,u=this.head;u!==null;)h.push(r.call(t,u.value,this)),u=u.next;return h},n.prototype.mapReverse=function(r,t){t=t||this;for(var h=new n,u=this.tail;u!==null;)h.push(r.call(t,u.value,this)),u=u.prev;return h},n.prototype.reduce=function(r,t){var h,u=this.head;if(arguments.length>1)h=t;else if(this.head)u=this.head.next,h=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;u!==null;c++)h=r(h,u.value,c),u=u.next;return h},n.prototype.reduceReverse=function(r,t){var h,u=this.tail;if(arguments.length>1)h=t;else if(this.tail)u=this.tail.prev,h=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;u!==null;c--)h=r(h,u.value,c),u=u.prev;return h},n.prototype.toArray=function(){for(var r=new Array(this.length),t=0,h=this.head;h!==null;t++)r[t]=h.value,h=h.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),t=0,h=this.tail;h!==null;t++)r[t]=h.value,h=h.prev;return r},n.prototype.slice=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(t<r||t<0)return h;r<0&&(r=0),t>this.length&&(t=this.length);for(var u=0,c=this.head;c!==null&&u<r;u++)c=c.next;for(;c!==null&&u<t;u++,c=c.next)h.push(c.value);return h},n.prototype.sliceReverse=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(t<r||t<0)return h;r<0&&(r=0),t>this.length&&(t=this.length);for(var u=this.length,c=this.tail;c!==null&&u>t;u--)c=c.prev;for(;c!==null&&u>r;u--,c=c.prev)h.push(c.value);return h},n.prototype.splice=function(r,t,...h){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var u=0,c=this.head;c!==null&&u<r;u++)c=c.next;for(var o=[],u=0;c&&u<t;u++)o.push(c.value),c=this.removeNode(c);c===null&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev);for(var u=0;u<h.length;u++)c=i(this,c,h[u]);return o},n.prototype.reverse=function(){for(var r=this.head,t=this.tail,h=r;h!==null;h=h.prev){var u=h.prev;h.prev=h.next,h.next=u}return this.head=t,this.tail=r,this};function i(r,t,h){var u=t===r.head?new a(h,null,t,r):new a(h,t,t.next,r);return u.next===null&&(r.tail=u),u.prev===null&&(r.head=u),r.length++,u}function s(r,t){r.tail=new a(t,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function f(r,t){r.head=new a(t,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function a(r,t,h,u){if(!(this instanceof a))return new a(r,t,h,u);this.list=u,this.value=r,t?(t.next=this,this.prev=t):this.prev=null,h?(h.prev=this,this.next=h):this.next=null}try{aa()(n)}catch{}}),mr=M((e,l)=>{"use strict";B();var n=class{constructor(P,j){this.path=P||"./",this.absolute=j,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=hr(),s=wn(),f=pr(),a=Cn(),r=a.Sync,t=a.Tar,h=kn(),u=Buffer.alloc(1024),c=Symbol("onStat"),o=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),g=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),y=Symbol("jobs"),D=Symbol("jobDone"),w=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),E=Symbol("readdir"),S=Symbol("onreaddir"),A=Symbol("pipe"),k=Symbol("entry"),L=Symbol("entryOpt"),T=Symbol("writeEntryClass"),x=Symbol("write"),O=Symbol("ondrain"),I=Z("fs"),$=Z("path"),R=dr(),G=Ct(),W=R(class extends i{constructor(P){super(P),P=P||Object.create(null),this.opt=P,this.file=P.file||"",this.cwd=P.cwd||process.cwd(),this.maxReadSize=P.maxReadSize,this.preservePaths=!!P.preservePaths,this.strict=!!P.strict,this.noPax=!!P.noPax,this.prefix=G(P.prefix||""),this.linkCache=P.linkCache||new Map,this.statCache=P.statCache||new Map,this.readdirCache=P.readdirCache||new Map,this[T]=a,typeof P.onwarn=="function"&&this.on("warn",P.onwarn),this.portable=!!P.portable,this.zip=null,P.gzip?(typeof P.gzip!="object"&&(P.gzip={}),this.portable&&(P.gzip.portable=!0),this.zip=new s.Gzip(P.gzip),this.zip.on("data",j=>super.write(j)),this.zip.on("end",j=>super.end()),this.zip.on("drain",j=>this[O]()),this.on("resume",j=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!P.noDirRecurse,this.follow=!!P.follow,this.noMtime=!!P.noMtime,this.mtime=P.mtime||null,this.filter=typeof P.filter=="function"?P.filter:j=>!0,this[d]=new h,this[y]=0,this.jobs=+P.jobs||4,this[b]=!1,this[o]=!1}[x](P){return super.write(P)}add(P){return this.write(P),this}end(P){return P&&this.write(P),this[o]=!0,this[g](),this}write(P){if(this[o])throw new Error("write after end");return P instanceof f?this[v](P):this[w](P),this.flowing}[v](P){let j=G($.resolve(this.cwd,P.path));if(!this.filter(P.path,P))P.resume();else{let F=new n(P.path,j,!1);F.entry=new t(P,this[L](F)),F.entry.on("end",J=>this[D](F)),this[y]+=1,this[d].push(F)}this[g]()}[w](P){let j=G($.resolve(this.cwd,P));this[d].push(new n(P,j)),this[g]()}[m](P){P.pending=!0,this[y]+=1;let j=this.follow?"stat":"lstat";I[j](P.absolute,(F,J)=>{P.pending=!1,this[y]-=1,F?this.emit("error",F):this[c](P,J)})}[c](P,j){this.statCache.set(P.absolute,j),P.stat=j,this.filter(P.path,j)||(P.ignore=!0),this[g]()}[E](P){P.pending=!0,this[y]+=1,I.readdir(P.absolute,(j,F)=>{if(P.pending=!1,this[y]-=1,j)return this.emit("error",j);this[S](P,F)})}[S](P,j){this.readdirCache.set(P.absolute,j),P.readdir=j,this[g]()}[g](){if(!this[b]){this[b]=!0;for(let P=this[d].head;P!==null&&this[y]<this.jobs;P=P.next)if(this[_](P.value),P.value.ignore){let j=P.next;this[d].removeNode(P),P.next=j}this[b]=!1,this[o]&&!this[d].length&&this[y]===0&&(this.zip?this.zip.end(u):(super.write(u),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[D](P){this[d].shift(),this[y]-=1,this[g]()}[_](P){if(!P.pending){if(P.entry){P===this[p]&&!P.piped&&this[A](P);return}if(P.stat||(this.statCache.has(P.absolute)?this[c](P,this.statCache.get(P.absolute)):this[m](P)),!!P.stat&&!P.ignore&&!(!this.noDirRecurse&&P.stat.isDirectory()&&!P.readdir&&(this.readdirCache.has(P.absolute)?this[S](P,this.readdirCache.get(P.absolute)):this[E](P),!P.readdir))){if(P.entry=this[k](P),!P.entry){P.ignore=!0;return}P===this[p]&&!P.piped&&this[A](P)}}}[L](P){return{onwarn:(j,F,J)=>this.warn(j,F,J),noPax:this.noPax,cwd:this.cwd,absolute:P.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[k](P){this[y]+=1;try{return new this[T](P.path,this[L](P)).on("end",()=>this[D](P)).on("error",j=>this.emit("error",j))}catch(j){this.emit("error",j)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[A](P){P.piped=!0,P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[w](ee+J)});let j=P.entry,F=this.zip;F?j.on("data",J=>{F.write(J)||j.pause()}):j.on("data",J=>{super.write(J)||j.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Q=class extends W{constructor(P){super(P),this[T]=r}pause(){}resume(){}[m](P){let j=this.follow?"statSync":"lstatSync";this[c](P,I[j](P.absolute))}[E](P,j){this[S](P,I.readdirSync(P.absolute))}[A](P){let j=P.entry,F=this.zip;P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[w](ee+J)}),F?j.on("data",J=>{F.write(J)}):j.on("data",J=>{super[x](J)})}};W.Sync=Q,l.exports=W}),Ft=M(e=>{"use strict";B();var l=_n(),n=Z("events").EventEmitter,i=Z("fs"),s=i.writev;if(!s){let P=process.binding("fs"),j=P.FSReqWrap||P.FSReqCallback;s=(F,J,q,ee)=>{let N=(te,se)=>ee(te,se,J),K=new j;K.oncomplete=N,P.writeBuffers(F,J,q,K)}}var f=Symbol("_autoClose"),a=Symbol("_close"),r=Symbol("_ended"),t=Symbol("_fd"),h=Symbol("_finished"),u=Symbol("_flags"),c=Symbol("_flush"),o=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),g=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),y=Symbol("_onread"),D=Symbol("_onwrite"),w=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),E=Symbol("_queue"),S=Symbol("_read"),A=Symbol("_readSize"),k=Symbol("_reading"),L=Symbol("_remain"),T=Symbol("_size"),x=Symbol("_write"),O=Symbol("_writing"),I=Symbol("_defaultFlag"),$=Symbol("_errored"),R=class extends l{constructor(P,j){if(j=j||{},super(j),this.readable=!0,this.writable=!1,typeof P!="string")throw new TypeError("path must be a string");this[$]=!1,this[t]=typeof j.fd=="number"?j.fd:null,this[v]=P,this[A]=j.readSize||16*1024*1024,this[k]=!1,this[T]=typeof j.size=="number"?j.size:1/0,this[L]=this[T],this[f]=typeof j.autoClose=="boolean"?j.autoClose:!0,typeof this[t]=="number"?this[S]():this[w]()}get fd(){return this[t]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){i.open(this[v],"r",(P,j)=>this[_](P,j))}[_](P,j){P?this[b](P):(this[t]=j,this.emit("open",j),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[L]))}[S](){if(!this[k]){this[k]=!0;let P=this[d]();if(P.length===0)return process.nextTick(()=>this[y](null,0,P));i.read(this[t],P,0,P.length,null,(j,F,J)=>this[y](j,F,J))}}[y](P,j,F){this[k]=!1,P?this[b](P):this[o](j,F)&&this[S]()}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.close(P,j=>j?this.emit("error",j):this.emit("close"))}}[b](P){this[k]=!0,this[a](),this.emit("error",P)}[o](P,j){let F=!1;return this[L]-=P,P>0&&(F=super.write(P<j.length?j.slice(0,P):j)),(P===0||this[L]<=0)&&(F=!1,this[a](),super.end()),F}emit(P,j){switch(P){case"prefinish":case"finish":break;case"drain":typeof this[t]=="number"&&this[S]();break;case"error":return this[$]?void 0:(this[$]=!0,super.emit(P,j));default:return super.emit(P,j)}}},G=class extends R{[w](){let P=!0;try{this[_](null,i.openSync(this[v],"r")),P=!1}finally{P&&this[a]()}}[S](){let P=!0;try{if(!this[k]){this[k]=!0;do{let j=this[d](),F=j.length===0?0:i.readSync(this[t],j,0,j.length,null);if(!this[o](F,j))break}while(!0);this[k]=!1}P=!1}finally{P&&this[a]()}}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.closeSync(P),this.emit("close")}}},W=class extends n{constructor(P,j){j=j||{},super(j),this.readable=!1,this.writable=!0,this[$]=!1,this[O]=!1,this[r]=!1,this[g]=!1,this[E]=[],this[v]=P,this[t]=typeof j.fd=="number"?j.fd:null,this[p]=j.mode===void 0?438:j.mode,this[m]=typeof j.start=="number"?j.start:null,this[f]=typeof j.autoClose=="boolean"?j.autoClose:!0;let F=this[m]!==null?"r+":"w";this[I]=j.flags===void 0,this[u]=this[I]?F:j.flags,this[t]===null&&this[w]()}emit(P,j){if(P==="error"){if(this[$])return;this[$]=!0}return super.emit(P,j)}get fd(){return this[t]}get path(){return this[v]}[b](P){this[a](),this[O]=!0,this.emit("error",P)}[w](){i.open(this[v],this[u],this[p],(P,j)=>this[_](P,j))}[_](P,j){this[I]&&this[u]==="r+"&&P&&P.code==="ENOENT"?(this[u]="w",this[w]()):P?this[b](P):(this[t]=j,this.emit("open",j),this[c]())}end(P,j){return P&&this.write(P,j),this[r]=!0,!this[O]&&!this[E].length&&typeof this[t]=="number"&&this[D](null,0),this}write(P,j){return typeof P=="string"&&(P=Buffer.from(P,j)),this[r]?(this.emit("error",new Error("write() after end()")),!1):this[t]===null||this[O]||this[E].length?(this[E].push(P),this[g]=!0,!1):(this[O]=!0,this[x](P),!0)}[x](P){i.write(this[t],P,0,P.length,this[m],(j,F)=>this[D](j,F))}[D](P,j){P?this[b](P):(this[m]!==null&&(this[m]+=j),this[E].length?this[c]():(this[O]=!1,this[r]&&!this[h]?(this[h]=!0,this[a](),this.emit("finish")):this[g]&&(this[g]=!1,this.emit("drain"))))}[c](){if(this[E].length===0)this[r]&&this[D](null,0);else if(this[E].length===1)this[x](this[E].pop());else{let P=this[E];this[E]=[],s(this[t],P,this[m],(j,F)=>this[D](j,F))}}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.close(P,j=>j?this.emit("error",j):this.emit("close"))}}},Q=class extends W{[w](){let P;if(this[I]&&this[u]==="r+")try{P=i.openSync(this[v],this[u],this[p])}catch(j){if(j.code==="ENOENT")return this[u]="w",this[w]();throw j}else P=i.openSync(this[v],this[u],this[p]);this[_](null,P)}[a](){if(this[f]&&typeof this[t]=="number"){let P=this[t];this[t]=null,i.closeSync(P),this.emit("close")}}[x](P){let j=!0;try{this[D](null,i.writeSync(this[t],P,0,P.length,this[m])),j=!1}finally{if(j)try{this[a]()}catch{}}}};e.ReadStream=R,e.ReadStreamSync=G,e.WriteStream=W,e.WriteStreamSync=Q}),yr=M((e,l)=>{"use strict";B();var n=dr(),i=kt(),s=Z("events"),f=kn(),a=1024*1024,r=pr(),t=fr(),h=wn(),{nextTick:u}=Z("process"),c=Buffer.from([31,139]),o=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),g=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),y=Symbol("globalExtendedHeader"),D=Symbol("meta"),w=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),E=Symbol("ended"),S=Symbol("emittedEnd"),A=Symbol("emit"),k=Symbol("unzip"),L=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),x=Symbol("consumeBody"),O=Symbol("consumeMeta"),I=Symbol("consumeHeader"),$=Symbol("consuming"),R=Symbol("bufferConcat"),G=Symbol("maybeEnd"),W=Symbol("writing"),Q=Symbol("aborted"),P=Symbol("onDone"),j=Symbol("sawValidEntry"),F=Symbol("sawNullBlock"),J=Symbol("sawEOF"),q=Symbol("closeStream"),ee=N=>!0;l.exports=n(class extends s{constructor(N){N=N||{},super(N),this.file=N.file||"",this[j]=null,this.on(P,K=>{(this[o]==="begin"||this[j]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(P,N.ondone):this.on(P,K=>{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:ee,this.writable=!0,this.readable=!1,this[m]=new f,this[v]=null,this[p]=null,this[d]=null,this[o]="begin",this[D]="",this[_]=null,this[y]=null,this[E]=!1,this[k]=null,this[Q]=!1,this[F]=!1,this[J]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[I](N,K){this[j]===null&&(this[j]=!1);let te;try{te=new i(N,K,this[_],this[y])}catch(se){return this.warn("TAR_ENTRY_INVALID",se)}if(te.nullBlock)this[F]?(this[J]=!0,this[o]==="begin"&&(this[o]="header"),this[A]("eof")):(this[F]=!0,this[A]("nullBlock"));else if(this[F]=!1,!te.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:te});else if(!te.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:te});else{let se=te.type;if(/^(Symbolic)?Link$/.test(se)&&!te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:te});else if(!/^(Symbolic)?Link$/.test(se)&&te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:te});else{let le=this[d]=new r(te,this[_],this[y]);if(!this[j])if(le.remain){let ye=()=>{le.invalid||(this[j]=!0)};le.on("end",ye)}else this[j]=!0;le.meta?le.size>this.maxMetaEntrySize?(le.ignore=!0,this[A]("ignoredEntry",le),this[o]="ignore",le.resume()):le.size>0&&(this[D]="",le.on("data",ye=>this[D]+=ye),this[o]="meta"):(this[_]=null,le.ignore=le.ignore||!this.filter(le.path,le),le.ignore?(this[A]("ignoredEntry",le),this[o]=le.remain?"ignore":"header",le.resume()):(le.remain?this[o]="body":(this[o]="header",le.end()),this[p]?this[m].push(le):(this[m].push(le),this[g]())))}}}[q](){u(()=>this.emit("close"))}[b](N){let K=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",te=>this[g]()),K=!1)):(this[p]=null,K=!1),K}[g](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[W]||this.emit("drain"):N.once("drain",K=>this.emit("drain"))}}[x](N,K){let te=this[d],se=te.blockRemain,le=se>=N.length&&K===0?N:N.slice(K,K+se);return te.write(le),te.blockRemain||(this[o]="header",this[d]=null,te.end()),le.length}[O](N,K){let te=this[d],se=this[x](N,K);return this[d]||this[w](te),se}[A](N,K,te){!this[m].length&&!this[p]?this.emit(N,K,te):this[m].push([N,K,te])}[w](N){switch(this[A]("meta",this[D]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=t.parse(this[D],this[_],!1);break;case"GlobalExtendedHeader":this[y]=t.parse(this[D],this[y],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[D].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[D].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[Q]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[Q])return;if(this[k]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<c.length)return this[v]=N,!0;for(let te=0;this[k]===null&&te<c.length;te++)N[te]!==c[te]&&(this[k]=!1);if(this[k]===null){let te=this[E];this[E]=!1,this[k]=new h.Unzip,this[k].on("data",le=>this[L](le)),this[k].on("error",le=>this.abort(le)),this[k].on("end",le=>{this[E]=!0,this[L]()}),this[W]=!0;let se=this[k][te?"end":"write"](N);return this[W]=!1,se}}this[W]=!0,this[k]?this[k].write(N):this[L](N),this[W]=!1;let K=this[m].length?!1:this[p]?this[p].flowing:!0;return!K&&!this[m].length&&this[p].once("drain",te=>this.emit("drain")),K}[R](N){N&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[G](){if(this[E]&&!this[S]&&!this[Q]&&!this[$]){this[S]=!0;let N=this[d];if(N&&N.blockRemain){let K=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${K} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[A](P)}}[L](N){if(this[$])this[R](N);else if(!N&&!this[v])this[G]();else{if(this[$]=!0,this[v]){this[R](N);let K=this[v];this[v]=null,this[T](K)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[Q]&&!this[J];){let K=this[v];this[v]=null,this[T](K)}this[$]=!1}(!this[v]||this[E])&&this[G]()}[T](N){let K=0,te=N.length;for(;K+512<=te&&!this[Q]&&!this[J];)switch(this[o]){case"begin":case"header":this[I](N,K),K+=512;break;case"ignore":case"body":K+=this[x](N,K);break;case"meta":K+=this[O](N,K);break;default:throw new Error("invalid state: "+this[o])}K<te&&(this[v]?this[v]=Buffer.concat([N.slice(K),this[v]]):this[v]=N.slice(K))}end(N){this[Q]||(this[k]?this[k].end(N):(this[E]=!0,this.write(N)))}})}),gr=M((e,l)=>{"use strict";B();var n=At(),i=yr(),s=Z("fs"),f=Ft(),a=Z("path"),r=xt();l.exports=(d,p,g)=>{typeof d=="function"?(g=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(g=p,p=null),p?p=Array.from(p):p=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return p.length&&h(b,p),b.noResume||t(b),b.file&&b.sync?u(b):b.file?c(b,g):o(b)};var t=d=>{let p=d.onentry;d.onentry=p?g=>{p(g),g.resume()}:g=>g.resume()},h=(d,p)=>{let g=new Map(p.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||a.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(a.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&_(r(y)):y=>_(r(y))},u=d=>{let p=o(d),g=d.file,b=!0,_;try{let y=s.statSync(g),D=d.maxReadSize||16*1024*1024;if(y.size<D)p.end(s.readFileSync(g));else{let w=0,v=Buffer.allocUnsafe(D);for(_=s.openSync(g,"r");w<y.size;){let m=s.readSync(_,v,0,D,w);w+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{s.closeSync(_)}catch{}}},c=(d,p)=>{let g=new i(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("end",D),s.stat(_,(v,m)=>{if(v)w(v);else{let E=new f.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return p?y.then(p,p):y},o=d=>new i(d)}),ua=M((e,l)=>{"use strict";B();var n=At(),i=mr(),s=Ft(),f=gr(),a=Z("path");l.exports=(d,p,g)=>{if(typeof p=="function"&&(g=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=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?r(b,p):b.file?t(b,p,g):b.sync?c(b,p):o(b,p)};var r=(d,p)=>{let g=new i.Sync(d),b=new s.WriteStreamSync(d.file,{mode:d.mode||438});g.pipe(b),h(g,p)},t=(d,p,g)=>{let b=new i(d),_=new s.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let y=new Promise((D,w)=>{_.on("error",w),_.on("close",D),b.on("error",w)});return u(b,p),g?y.then(g,g):y},h=(d,p)=>{p.forEach(g=>{g.charAt(0)==="@"?f({file:a.resolve(d.cwd,g.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(g)}),d.end()},u=(d,p)=>{for(;p.length;){let g=p.shift();if(g.charAt(0)==="@")return f({file:a.resolve(d.cwd,g.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>u(d,p));d.add(g)}d.end()},c=(d,p)=>{let g=new i.Sync(d);return h(g,p),g},o=(d,p)=>{let g=new i(d);return u(g,p),g}}),xn=M((e,l)=>{"use strict";B();var n=At(),i=mr(),s=Z("fs"),f=Ft(),a=gr(),r=Z("path"),t=kt();l.exports=(p,g,b)=>{let _=n(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");return g=Array.from(g),_.sync?h(_,g):c(_,g,b)};var h=(p,g)=>{let b=new i.Sync(p),_=!0,y,D;try{try{y=s.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")y=s.openSync(p.file,"w+");else throw m}let w=s.fstatSync(y),v=Buffer.alloc(512);e:for(D=0;D<w.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=s.readSync(y,v,S,v.length-S,D+S),D===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let m=new t(v);if(!m.cksumValid)break;let E=512*Math.ceil(m.size/512);if(D+E+512>w.size)break;D+=E,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,u(p,b,D,y,g)}finally{if(_)try{s.closeSync(y)}catch{}}},u=(p,g,b,_,y)=>{let D=new f.WriteStreamSync(p.file,{fd:_,start:b});g.pipe(D),o(g,y)},c=(p,g,b)=>{g=Array.from(g);let _=new i(p),y=(w,v,m)=>{let E=(T,x)=>{T?s.close(w,O=>m(T)):m(null,x)},S=0;if(v===0)return E(null,0);let A=0,k=Buffer.alloc(512),L=(T,x)=>{if(T)return E(T);if(A+=x,A<512&&x)return s.read(w,k,A,k.length-A,S+A,L);if(S===0&&k[0]===31&&k[1]===139)return E(new Error("cannot append to compressed archives"));if(A<512)return E(null,S);let O=new t(k);if(!O.cksumValid)return E(null,S);let I=512*Math.ceil(O.size/512);if(S+I+512>v||(S+=I+512,S>=v))return E(null,S);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),A=0,s.read(w,k,0,512,S,L)};s.read(w,k,0,512,S,L)},D=new Promise((w,v)=>{_.on("error",v);let m="r+",E=(S,A)=>{if(S&&S.code==="ENOENT"&&m==="r+")return m="w+",s.open(p.file,m,E);if(S)return v(S);s.fstat(A,(k,L)=>{if(k)return s.close(A,()=>v(k));y(A,L.size,(T,x)=>{if(T)return v(T);let O=new f.WriteStream(p.file,{fd:A,start:x});_.pipe(O),O.on("error",v),O.on("close",w),d(_,g)})})};s.open(p.file,m,E)});return b?D.then(b,b):D},o=(p,g)=>{g.forEach(b=>{b.charAt(0)==="@"?a({file:r.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,g)=>{for(;g.length;){let b=g.shift();if(b.charAt(0)==="@")return a({file:r.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,g));p.add(b)}p.end()}}),la=M((e,l)=>{"use strict";B();var n=At(),i=xn();l.exports=(f,a,r)=>{let t=n(f);if(!t.file)throw new TypeError("file is required");if(t.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),s(t),i(t,a,r)};var s=f=>{let a=f.filter;f.mtimeCache||(f.mtimeCache=new Map),f.filter=a?(r,t)=>a(r,t)&&!(f.mtimeCache.get(r)>t.mtime):(r,t)=>!(f.mtimeCache.get(r)>t.mtime)}}),ca=M((e,l)=>{B();var{promisify:n}=Z("util"),i=Z("fs"),s=f=>{if(!f)f={mode:511,fs:i};else if(typeof f=="object")f={mode:511,fs:i,...f};else if(typeof f=="number")f={mode:f,fs:i};else if(typeof f=="string")f={mode:parseInt(f,8),fs:i};else throw new TypeError("invalid options argument");return f.mkdir=f.mkdir||f.fs.mkdir||i.mkdir,f.mkdirAsync=n(f.mkdir),f.stat=f.stat||f.fs.stat||i.stat,f.statAsync=n(f.stat),f.statSync=f.statSync||f.fs.statSync||i.statSync,f.mkdirSync=f.mkdirSync||f.fs.mkdirSync||i.mkdirSync,f};l.exports=s}),ha=M((e,l)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:s}=Z("path"),f=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=i(a),n==="win32"){let r=/[*|"<>?:]/,{root:t}=s(a);if(r.test(a.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};l.exports=f}),pa=M((e,l)=>{B();var{dirname:n}=Z("path"),i=(f,a,r=void 0)=>r===a?Promise.resolve():f.statAsync(a).then(t=>t.isDirectory()?r:void 0,t=>t.code==="ENOENT"?i(f,n(a),a):void 0),s=(f,a,r=void 0)=>{if(r!==a)try{return f.statSync(a).isDirectory()?r:void 0}catch(t){return t.code==="ENOENT"?s(f,n(a),a):void 0}};l.exports={findMade:i,findMadeSync:s}}),Fn=M((e,l)=>{B();var{dirname:n}=Z("path"),i=(f,a,r)=>{a.recursive=!1;let t=n(f);return t===f?a.mkdirAsync(f,a).catch(h=>{if(h.code!=="EISDIR")throw h}):a.mkdirAsync(f,a).then(()=>r||f,h=>{if(h.code==="ENOENT")return i(t,a).then(u=>i(f,a,u));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;return a.statAsync(f).then(u=>{if(u.isDirectory())return r;throw h},()=>{throw h})})},s=(f,a,r)=>{let t=n(f);if(a.recursive=!1,t===f)try{return a.mkdirSync(f,a)}catch(h){if(h.code!=="EISDIR")throw h;return}try{return a.mkdirSync(f,a),r||f}catch(h){if(h.code==="ENOENT")return s(f,a,s(t,a,r));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;try{if(!a.statSync(f).isDirectory())throw h}catch{throw h}}};l.exports={mkdirpManual:i,mkdirpManualSync:s}}),fa=M((e,l)=>{B();var{dirname:n}=Z("path"),{findMade:i,findMadeSync:s}=pa(),{mkdirpManual:f,mkdirpManualSync:a}=Fn(),r=(h,u)=>(u.recursive=!0,n(h)===h?u.mkdirAsync(h,u):i(u,h).then(c=>u.mkdirAsync(h,u).then(()=>c).catch(o=>{if(o.code==="ENOENT")return f(h,u);throw o}))),t=(h,u)=>{if(u.recursive=!0,n(h)===h)return u.mkdirSync(h,u);let c=s(u,h);try{return u.mkdirSync(h,u),c}catch(o){if(o.code==="ENOENT")return a(h,u);throw o}};l.exports={mkdirpNative:r,mkdirpNativeSync:t}}),da=M((e,l)=>{B();var n=Z("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,s=i.replace(/^v/,"").split("."),f=+s[0]>10||+s[0]==10&&+s[1]>=12,a=f?t=>t.mkdir===n.mkdir:()=>!1,r=f?t=>t.mkdirSync===n.mkdirSync:()=>!1;l.exports={useNative:a,useNativeSync:r}}),ma=M((e,l)=>{B();var n=ca(),i=ha(),{mkdirpNative:s,mkdirpNativeSync:f}=fa(),{mkdirpManual:a,mkdirpManualSync:r}=Fn(),{useNative:t,useNativeSync:h}=da(),u=(o,d)=>(o=i(o),d=n(d),t(d)?s(o,d):a(o,d)),c=(o,d)=>(o=i(o),d=n(d),h(d)?f(o,d):r(o,d));u.sync=c,u.native=(o,d)=>s(i(o),n(d)),u.manual=(o,d)=>a(i(o),n(d)),u.nativeSync=(o,d)=>f(i(o),n(d)),u.manualSync=(o,d)=>r(i(o),n(d)),l.exports=u}),ya=M((e,l)=>{"use strict";B();var n=Z("fs"),i=Z("path"),s=n.lchown?"lchown":"chown",f=n.lchownSync?"lchownSync":"chownSync",a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,w,v)=>{try{return n[f](D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},t=(D,w,v)=>{try{return n.chownSync(D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},h=a?(D,w,v,m)=>E=>{!E||E.code!=="EISDIR"?m(E):n.chown(D,w,v,m)}:(D,w,v,m)=>m,u=a?(D,w,v)=>{try{return r(D,w,v)}catch(m){if(m.code!=="EISDIR")throw m;t(D,w,v)}}:(D,w,v)=>r(D,w,v),c=process.version,o=(D,w,v)=>n.readdir(D,w,v),d=(D,w)=>n.readdirSync(D,w);/^v4\./.test(c)&&(o=(D,w,v)=>n.readdir(D,v));var p=(D,w,v,m)=>{n[s](D,w,v,h(D,w,v,E=>{m(E&&E.code!=="ENOENT"?E:null)}))},g=(D,w,v,m,E)=>{if(typeof w=="string")return n.lstat(i.resolve(D,w),(S,A)=>{if(S)return E(S.code!=="ENOENT"?S:null);A.name=w,g(D,A,v,m,E)});if(w.isDirectory())b(i.resolve(D,w.name),v,m,S=>{if(S)return E(S);let A=i.resolve(D,w.name);p(A,v,m,E)});else{let S=i.resolve(D,w.name);p(S,v,m,E)}},b=(D,w,v,m)=>{o(D,{withFileTypes:!0},(E,S)=>{if(E){if(E.code==="ENOENT")return m();if(E.code!=="ENOTDIR"&&E.code!=="ENOTSUP")return m(E)}if(E||!S.length)return p(D,w,v,m);let A=S.length,k=null,L=T=>{if(!k){if(T)return m(k=T);if(--A===0)return p(D,w,v,m)}};S.forEach(T=>g(D,T,w,v,L))})},_=(D,w,v,m)=>{if(typeof w=="string")try{let E=n.lstatSync(i.resolve(D,w));E.name=w,w=E}catch(E){if(E.code==="ENOENT")return;throw E}w.isDirectory()&&y(i.resolve(D,w.name),v,m),u(i.resolve(D,w.name),v,m)},y=(D,w,v)=>{let m;try{m=d(D,{withFileTypes:!0})}catch(E){if(E.code==="ENOENT")return;if(E.code==="ENOTDIR"||E.code==="ENOTSUP")return u(D,w,v);throw E}return m&&m.length&&m.forEach(E=>_(D,E,w,v)),u(D,w,v)};l.exports=b,b.sync=y}),ga=M((e,l)=>{"use strict";B();var n=ma(),i=Z("fs"),s=Z("path"),f=ya(),a=Ct(),r=class extends Error{constructor(g,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=g}get name(){return"SylinkError"}},t=class extends Error{constructor(g,b){super(b+": Cannot cd into '"+g+"'"),this.path=g,this.code=b}get name(){return"CwdError"}},h=(g,b)=>g.get(a(b)),u=(g,b,_)=>g.set(a(b),_),c=(g,b)=>{i.stat(g,(_,y)=>{(_||!y.isDirectory())&&(_=new t(g,_&&_.code||"ENOTDIR")),b(_)})};l.exports=(g,b,_)=>{g=a(g);let y=b.umask,D=b.mode|448,w=(D&y)!==0,v=b.uid,m=b.gid,E=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),S=b.preserve,A=b.unlink,k=b.cache,L=a(b.cwd),T=(O,I)=>{O?_(O):(u(k,g,!0),I&&E?f(I,v,m,$=>T($)):w?i.chmod(g,D,_):_())};if(k&&h(k,g)===!0)return T();if(g===L)return c(g,T);if(S)return n(g,{mode:D}).then(O=>T(null,O),T);let x=a(s.relative(L,g)).split("/");o(L,x,D,k,A,L,null,T)};var o=(g,b,_,y,D,w,v,m)=>{if(!b.length)return m(null,v);let E=b.shift(),S=a(s.resolve(g+"/"+E));if(h(y,S))return o(S,b,_,y,D,w,v,m);i.mkdir(S,_,d(S,b,_,y,D,w,v,m))},d=(g,b,_,y,D,w,v,m)=>E=>{E?i.lstat(g,(S,A)=>{if(S)S.path=S.path&&a(S.path),m(S);else if(A.isDirectory())o(g,b,_,y,D,w,v,m);else if(D)i.unlink(g,k=>{if(k)return m(k);i.mkdir(g,_,d(g,b,_,y,D,w,v,m))});else{if(A.isSymbolicLink())return m(new r(g,g+"/"+b.join("/")));m(E)}}):(v=v||g,o(g,b,_,y,D,w,v,m))},p=g=>{let b=!1,_="ENOTDIR";try{b=i.statSync(g).isDirectory()}catch(y){_=y.code}finally{if(!b)throw new t(g,_)}};l.exports.sync=(g,b)=>{g=a(g);let _=b.umask,y=b.mode|448,D=(y&_)!==0,w=b.uid,v=b.gid,m=typeof w=="number"&&typeof v=="number"&&(w!==b.processUid||v!==b.processGid),E=b.preserve,S=b.unlink,A=b.cache,k=a(b.cwd),L=O=>{u(A,g,!0),O&&m&&f.sync(O,w,v),D&&i.chmodSync(g,y)};if(A&&h(A,g)===!0)return L();if(g===k)return p(k),L();if(E)return L(n.sync(g,y));let T=a(s.relative(k,g)).split("/"),x=null;for(let O=T.shift(),I=k;O&&(I+="/"+O);O=T.shift())if(I=a(s.resolve(I)),!h(A,I))try{i.mkdirSync(I,y),x=x||I,u(A,I,!0)}catch{let $=i.lstatSync(I);if($.isDirectory()){u(A,I,!0);continue}else if(S){i.unlinkSync(I),i.mkdirSync(I,y),x=x||I,u(A,I,!0);continue}else if($.isSymbolicLink())return new r(I,I+"/"+T.join("/"))}return L(x)}}),On=M((e,l)=>{B();var n=Object.create(null),{hasOwnProperty:i}=Object.prototype;l.exports=s=>(i.call(n,s)||(n[s]=s.normalize("NFKD")),n[s])}),ba=M((e,l)=>{B();var n=Z("assert"),i=On(),s=xt(),{join:f}=Z("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=a==="win32";l.exports=()=>{let t=new Map,h=new Map,u=b=>b.split("/").slice(0,-1).reduce((_,y)=>(_.length&&(y=f(_[_.length-1],y)),_.push(y||"/"),_),[]),c=new Set,o=b=>{let _=h.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(y=>t.get(y)),dirs:[..._.dirs].map(y=>t.get(y))}},d=b=>{let{paths:_,dirs:y}=o(b);return _.every(D=>D[0]===b)&&y.every(D=>D[0]instanceof Set&&D[0].has(b))},p=b=>c.has(b)||!d(b)?!1:(c.add(b),b(()=>g(b)),!0),g=b=>{if(!c.has(b))return!1;let{paths:_,dirs:y}=h.get(b),D=new Set;return _.forEach(w=>{let v=t.get(w);n.equal(v[0],b),v.length===1?t.delete(w):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),y.forEach(w=>{let v=t.get(w);n(v[0]instanceof Set),v[0].size===1&&v.length===1?t.delete(w):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),c.delete(b),D.forEach(w=>p(w)),!0};return{check:d,reserve:(b,_)=>{b=r?["win32 parallelization disabled"]:b.map(D=>i(s(f(D))).toLowerCase());let y=new Set(b.map(D=>u(D)).reduce((D,w)=>D.concat(w)));return h.set(_,{dirs:y,paths:b}),b.forEach(D=>{let w=t.get(D);w?w.push(_):t.set(D,[_])}),y.forEach(D=>{let w=t.get(D);w?w[w.length-1]instanceof Set?w[w.length-1].add(_):w.push(new Set([_])):t.set(D,[new Set([_])])}),p(_)}}}}),va=M((e,l)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,i=n==="win32",s=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:f,O_TRUNC:a,O_WRONLY:r,UV_FS_O_FILEMAP:t=0}=s.constants,h=i&&!!t,u=512*1024,c=t|a|f|r;l.exports=h?o=>o<u?c:"w":()=>"w"}),Rn=M((e,l)=>{"use strict";B();var n=Z("assert"),i=yr(),s=Z("fs"),f=Ft(),a=Z("path"),r=ga(),t=Sn(),h=ba(),u=An(),c=Ct(),o=xt(),d=On(),p=Symbol("onEntry"),g=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),y=Symbol("isReusable"),D=Symbol("makeFs"),w=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),E=Symbol("symlink"),S=Symbol("hardlink"),A=Symbol("unsupported"),k=Symbol("checkPath"),L=Symbol("mkdir"),T=Symbol("onError"),x=Symbol("pending"),O=Symbol("pend"),I=Symbol("unpend"),$=Symbol("ended"),R=Symbol("maybeClose"),G=Symbol("skip"),W=Symbol("doChown"),Q=Symbol("uid"),P=Symbol("gid"),j=Symbol("checkedCwd"),F=Z("crypto"),J=va(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ee=q==="win32",N=(C,z)=>{if(!ee)return s.unlink(C,z);let X=C+".DELETE."+F.randomBytes(16).toString("hex");s.rename(C,X,re=>{if(re)return z(re);s.unlink(X,z)})},K=C=>{if(!ee)return s.unlinkSync(C);let z=C+".DELETE."+F.randomBytes(16).toString("hex");s.renameSync(C,z),s.unlinkSync(z)},te=(C,z,X)=>C===C>>>0?C:z===z>>>0?z:X,se=C=>d(o(c(C))).toLowerCase(),le=(C,z)=>{z=se(z);for(let X of C.keys()){let re=se(X);(re===z||re.indexOf(z+"/")===0)&&C.delete(X)}},ye=C=>{for(let z of C.keys())C.delete(z)},de=class extends i{constructor(C){if(C||(C={}),C.ondone=z=>{this[$]=!0,this[R]()},super(C),this[j]=!1,this.reservations=h(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[x]=0,this[$]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.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=C.forceChown===!0,this.win32=!!C.win32||ee,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=c(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",z=>this[p](z))}warn(C,z,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,z,X)}[R](){this[$]&&this[x]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[k](C){if(this.strip){let z=c(C.path).split("/");if(z.length<this.strip)return!1;if(C.path=z.slice(this.strip).join("/"),C.type==="Link"){let X=c(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=c(C.path),X=z.split("/");if(X.includes("..")||ee&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:z}),!1;let[re,ce]=u(z);re&&(C.path=ce,this.warn("TAR_ENTRY_INFO",`stripping ${re} from absolute path`,{entry:C,path:z}))}if(a.isAbsolute(C.path)?C.absolute=c(a.resolve(C.path)):C.absolute=c(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:c(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:z}=a.win32.parse(C.absolute);C.absolute=z+t.encode(C.absolute.slice(z.length));let{root:X}=a.win32.parse(C.path);C.path=X+t.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[k](C))return C.resume();switch(n.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[g](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[T](C,z){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:z}),this[I](),z.resume())}[L](C,z,X){r(c(C),{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:z,noChmod:this.noChmod},X)}[W](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Q](C){return te(this.uid,C.uid,this.processUid)}[P](C){return te(this.gid,C.gid,this.processGid)}[w](C,z){let X=C.mode&4095||this.fmode,re=new f.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});re.on("error",ne=>{re.fd&&s.close(re.fd,()=>{}),re.write=()=>!0,this[T](ne,C),z()});let ce=1,ie=ne=>{if(ne){re.fd&&s.close(re.fd,()=>{}),this[T](ne,C),z();return}--ce===0&&s.close(re.fd,he=>{he?this[T](he,C):this[I](),z()})};re.on("finish",ne=>{let he=C.absolute,be=re.fd;if(C.mtime&&!this.noMtime){ce++;let De=C.atime||new Date,Y=C.mtime;s.futimes(be,De,Y,U=>U?s.utimes(he,De,Y,oe=>ie(oe&&U)):ie())}if(this[W](C)){ce++;let De=this[Q](C),Y=this[P](C);s.fchown(be,De,Y,U=>U?s.chown(he,De,Y,oe=>ie(oe&&U)):ie())}ie()});let ue=this.transform&&this.transform(C)||C;ue!==C&&(ue.on("error",ne=>{this[T](ne,C),z()}),C.pipe(ue)),ue.pipe(re)}[v](C,z){let X=C.mode&4095||this.dmode;this[L](C.absolute,X,re=>{if(re){this[T](re,C),z();return}let ce=1,ie=ue=>{--ce===0&&(z(),this[I](),C.resume())};C.mtime&&!this.noMtime&&(ce++,s.utimes(C.absolute,C.atime||new Date,C.mtime,ie)),this[W](C)&&(ce++,s.chown(C.absolute,this[Q](C),this[P](C),ie)),ie()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[E](C,z){this[m](C,C.linkpath,"symlink",z)}[S](C,z){let X=c(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",z)}[O](){this[x]++}[I](){this[x]--,this[R]()}[G](C){this[I](),C.resume()}[y](C,z){return C.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!ee}[g](C){this[O]();let z=[C.path];C.linkpath&&z.push(C.linkpath),this.reservations.reserve(z,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?ye(this.dirCache):C.type!=="Directory"&&le(this.dirCache,C.absolute)}[b](C,z){this[_](C);let X=ue=>{this[_](C),z(ue)},re=()=>{this[L](this.cwd,this.dmode,ue=>{if(ue){this[T](ue,C),X();return}this[j]=!0,ce()})},ce=()=>{if(C.absolute!==this.cwd){let ue=c(a.dirname(C.absolute));if(ue!==this.cwd)return this[L](ue,this.dmode,ne=>{if(ne){this[T](ne,C),X();return}ie()})}ie()},ie=()=>{s.lstat(C.absolute,(ue,ne)=>{if(ne&&(this.keep||this.newer&&ne.mtime>C.mtime)){this[G](C),X();return}if(ue||this[y](C,ne))return this[D](null,C,X);if(ne.isDirectory()){if(C.type==="Directory"){let he=!this.noChmod&&C.mode&&(ne.mode&4095)!==C.mode,be=De=>this[D](De,C,X);return he?s.chmod(C.absolute,C.mode,be):be()}if(C.absolute!==this.cwd)return s.rmdir(C.absolute,he=>this[D](he,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);N(C.absolute,he=>this[D](he,C,X))})};this[j]?ce():re()}[D](C,z,X){if(C){this[T](C,z),X();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[w](z,X);case"Link":return this[S](z,X);case"SymbolicLink":return this[E](z,X);case"Directory":case"GNUDumpDir":return this[v](z,X)}}[m](C,z,X,re){s[X](z,C.absolute,ce=>{ce?this[T](ce,C):(this[I](),C.resume()),re()})}},H=C=>{try{return[null,C()]}catch(z){return[z,null]}},V=class extends de{[D](C,z){return super[D](C,z,()=>{})}[g](C){if(this[_](C),!this[j]){let ce=this[L](this.cwd,this.dmode);if(ce)return this[T](ce,C);this[j]=!0}if(C.absolute!==this.cwd){let ce=c(a.dirname(C.absolute));if(ce!==this.cwd){let ie=this[L](ce,this.dmode);if(ie)return this[T](ie,C)}}let[z,X]=H(()=>s.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[G](C);if(z||this[y](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let ie=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[ue]=ie?H(()=>{s.chmodSync(C.absolute,C.mode)}):[];return this[D](ue,C)}let[ce]=H(()=>s.rmdirSync(C.absolute));this[D](ce,C)}let[re]=C.absolute===this.cwd?[]:H(()=>K(C.absolute));this[D](re,C)}[w](C,z){let X=C.mode&4095||this.fmode,re=ue=>{let ne;try{s.closeSync(ce)}catch(he){ne=he}(ue||ne)&&this[T](ue||ne,C),z()},ce;try{ce=s.openSync(C.absolute,J(C.size),X)}catch(ue){return re(ue)}let ie=this.transform&&this.transform(C)||C;ie!==C&&(ie.on("error",ue=>this[T](ue,C)),C.pipe(ie)),ie.on("data",ue=>{try{s.writeSync(ce,ue,0,ue.length)}catch(ne){re(ne)}}),ie.on("end",ue=>{let ne=null;if(C.mtime&&!this.noMtime){let he=C.atime||new Date,be=C.mtime;try{s.futimesSync(ce,he,be)}catch(De){try{s.utimesSync(C.absolute,he,be)}catch{ne=De}}}if(this[W](C)){let he=this[Q](C),be=this[P](C);try{s.fchownSync(ce,he,be)}catch(De){try{s.chownSync(C.absolute,he,be)}catch{ne=ne||De}}}re(ne)})}[v](C,z){let X=C.mode&4095||this.dmode,re=this[L](C.absolute,X);if(re){this[T](re,C),z();return}if(C.mtime&&!this.noMtime)try{s.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{s.chownSync(C.absolute,this[Q](C),this[P](C))}catch{}z(),C.resume()}[L](C,z){try{return r.sync(c(C),{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:z})}catch(X){return X}}[m](C,z,X,re){try{s[X+"Sync"](z,C.absolute),re(),C.resume()}catch(ce){return this[T](ce,C)}}};de.Sync=V,l.exports=de}),_a=M((e,l)=>{"use strict";B();var n=At(),i=Rn(),s=Z("fs"),f=Ft(),a=Z("path"),r=xt();l.exports=(d,p,g)=>{typeof d=="function"?(g=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(g=p,p=null),p?p=Array.from(p):p=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return p.length&&t(b,p),b.file&&b.sync?h(b):b.file?u(b,g):b.sync?c(b):o(b)};var t=(d,p)=>{let g=new Map(p.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||a.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(a.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&_(r(y)):y=>_(r(y))},h=d=>{let p=new i.Sync(d),g=d.file,b=s.statSync(g),_=d.maxReadSize||16*1024*1024;new f.ReadStreamSync(g,{readSize:_,size:b.size}).pipe(p)},u=(d,p)=>{let g=new i(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("close",D),s.stat(_,(v,m)=>{if(v)w(v);else{let E=new f.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return p?y.then(p,p):y},c=d=>new i.Sync(d),o=d=>new i(d)}),Ea=M(e=>{"use strict";B(),e.c=e.create=ua(),e.r=e.replace=xn(),e.t=e.list=gr(),e.u=e.update=la(),e.x=e.extract=_a(),e.Pack=mr(),e.Unpack=Rn(),e.Parse=yr(),e.ReadEntry=pr(),e.WriteEntry=Cn(),e.Header=kt(),e.Pax=fr(),e.types=Dn()});B();var df=xe(na()),mf=xe(Ea()),bf=Da(wa.pipeline);var Sa=M((e,l)=>{B();var n=Z("constants"),i=process.cwd,s=null,f=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;l.exports=r;function r(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&h(t),t.lutimes||u(t),t.chown=d(t.chown),t.fchown=d(t.fchown),t.lchown=d(t.lchown),t.chmod=c(t.chmod),t.fchmod=c(t.fchmod),t.lchmod=c(t.lchmod),t.chownSync=p(t.chownSync),t.fchownSync=p(t.fchownSync),t.lchownSync=p(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=g(t.stat),t.fstat=g(t.fstat),t.lstat=g(t.lstat),t.statSync=b(t.statSync),t.fstatSync=b(t.fstatSync),t.lstatSync=b(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(y,D,w){w&&process.nextTick(w)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(y,D,w,v){v&&process.nextTick(v)},t.lchownSync=function(){}),f==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(y){function D(w,v,m){var E=Date.now(),S=0;y(w,v,function A(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){t.stat(v,function(L,T){L&&L.code==="ENOENT"?y(w,v,A):m(k)})},S),S<100&&(S+=10);return}m&&m(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(y){function D(w,v,m,E,S,A){var k;if(A&&typeof A=="function"){var L=0;k=function(T,x,O){if(T&&T.code==="EAGAIN"&&L<10)return L++,y.call(t,w,v,m,E,S,k);A.apply(this,arguments)}}return y.call(t,w,v,m,E,S,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(y){return function(D,w,v,m,E){for(var S=0;;)try{return y.call(t,D,w,v,m,E)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(t.readSync);function h(y){y.lchmod=function(D,w,v){y.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,E){if(m){v&&v(m);return}y.fchmod(E,w,function(S){y.close(E,function(A){v&&v(S||A)})})})},y.lchmodSync=function(D,w){var v=y.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,E;try{E=y.fchmodSync(v,w),m=!1}finally{if(m)try{y.closeSync(v)}catch{}else y.closeSync(v)}return E}}function u(y){n.hasOwnProperty("O_SYMLINK")&&y.futimes?(y.lutimes=function(D,w,v,m){y.open(D,n.O_SYMLINK,function(E,S){if(E){m&&m(E);return}y.futimes(S,w,v,function(A){y.close(S,function(k){m&&m(A||k)})})})},y.lutimesSync=function(D,w,v){var m=y.openSync(D,n.O_SYMLINK),E,S=!0;try{E=y.futimesSync(m,w,v),S=!1}finally{if(S)try{y.closeSync(m)}catch{}else y.closeSync(m)}return E}):y.futimes&&(y.lutimes=function(D,w,v,m){m&&process.nextTick(m)},y.lutimesSync=function(){})}function c(y){return y&&function(D,w,v){return y.call(t,D,w,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(y){return y&&function(D,w){try{return y.call(t,D,w)}catch(v){if(!_(v))throw v}}}function d(y){return y&&function(D,w,v,m){return y.call(t,D,w,v,function(E){_(E)&&(E=null),m&&m.apply(this,arguments)})}}function p(y){return y&&function(D,w,v){try{return y.call(t,D,w,v)}catch(m){if(!_(m))throw m}}}function g(y){return y&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(E,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?y.call(t,D,w,m):y.call(t,D,m)}}function b(y){return y&&function(D,w){var v=w?y.call(t,D,w):y.call(t,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(y){if(!y||y.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(y.code==="EINVAL"||y.code==="EPERM"))}}}),Aa=M((e,l)=>{B();var n=Z("stream").Stream;l.exports=i;function i(s){return{ReadStream:f,WriteStream:a};function f(r,t){if(!(this instanceof f))return new f(r,t);n.call(this);var h=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,t=t||{};for(var u=Object.keys(t),c=0,o=u.length;c<o;c++){var d=u[c];this[d]=t[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(){h._read()});return}s.open(this.path,this.flags,this.mode,function(p,g){if(p){h.emit("error",p),h.readable=!1;return}h.fd=g,h.emit("open",g),h._read()})}function a(r,t){if(!(this instanceof a))return new a(r,t);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,t=t||{};for(var h=Object.keys(t),u=0,c=h.length;u<c;u++){var o=h[u];this[o]=t[o]}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=s.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ca=M((e,l)=>{"use strict";B(),l.exports=i;var n=Object.getPrototypeOf||function(s){return s.__proto__};function i(s){if(s===null||typeof s!="object")return s;if(s instanceof Object)var f={__proto__:n(s)};else var f=Object.create(null);return Object.getOwnPropertyNames(s).forEach(function(a){Object.defineProperty(f,a,Object.getOwnPropertyDescriptor(s,a))}),f}}),we=M((e,l)=>{B();var n=Z("fs"),i=Sa(),s=Aa(),f=Ca(),a=Z("util"),r,t;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",t="___graceful-fs.previous");function h(){}function u(y,D){Object.defineProperty(y,r,{get:function(){return D}})}var c=h;a.debuglog?c=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var y=a.format.apply(a,arguments);y="GFS4: "+y.split(/\n/).join(`
|
|
29
|
+
GFS4: `),console.error(y)}),n[r]||(o=global[r]||[],u(n,o),n.close=function(y){function D(w,v){return y.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,t,{value:y}),D}(n.close),n.closeSync=function(y){function D(w){y.apply(n,arguments),b()}return Object.defineProperty(D,t,{value:y}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||u(global,n[r]),l.exports=d(f(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(y){i(y),y.gracefulify=d,y.createReadStream=F,y.createWriteStream=J;var D=y.readFile;y.readFile=w;function w(N,K,te){return typeof K=="function"&&(te=K,K=null),se(N,K,te);function se(le,ye,de,H){return D(le,ye,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?p([se,[le,ye,de],V,H||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var v=y.writeFile;y.writeFile=m;function m(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return v(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var E=y.appendFile;E&&(y.appendFile=S);function S(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return E(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=y.copyFile;A&&(y.copyFile=k);function k(N,K,te,se){return typeof te=="function"&&(se=te,te=0),le(N,K,te,se);function le(ye,de,H,V,C){return A(ye,de,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=y.readdir;y.readdir=x;var T=/^v[0-5]\./;function x(N,K,te){typeof K=="function"&&(te=K,K=null);var se=T.test(process.version)?function(ye,de,H,V){return L(ye,le(ye,de,H,V))}:function(ye,de,H,V){return L(ye,de,le(ye,de,H,V))};return se(N,K,te);function le(ye,de,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([se,[ye,de,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var O=s(y);W=O.ReadStream,P=O.WriteStream}var I=y.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=y.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(y,"ReadStream",{get:function(){return W},set:function(N){W=N},enumerable:!0,configurable:!0}),Object.defineProperty(y,"WriteStream",{get:function(){return P},set:function(N){P=N},enumerable:!0,configurable:!0});var R=W;Object.defineProperty(y,"FileReadStream",{get:function(){return R},set:function(N){R=N},enumerable:!0,configurable:!0});var G=P;Object.defineProperty(y,"FileWriteStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0});function W(N,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var N=this;ee(N.path,N.flags,N.mode,function(K,te){K?(N.autoClose&&N.destroy(),N.emit("error",K)):(N.fd=te,N.emit("open",te),N.read())})}function P(N,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var N=this;ee(N.path,N.flags,N.mode,function(K,te){K?(N.destroy(),N.emit("error",K)):(N.fd=te,N.emit("open",te))})}function F(N,K){return new y.ReadStream(N,K)}function J(N,K){return new y.WriteStream(N,K)}var q=y.open;y.open=ee;function ee(N,K,te,se){return typeof te=="function"&&(se=te,te=null),le(N,K,te,se);function le(ye,de,H,V,C){return q(ye,de,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([le,[ye,de,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return y}function p(y){c("ENQUEUE",y[0].name,y[1]),n[r].push(y),_()}var g;function b(){for(var y=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=y,n[r][D][4]=y);_()}function _(){if(clearTimeout(g),g=void 0,n[r].length!==0){var y=n[r].shift(),D=y[0],w=y[1],v=y[2],m=y[3],E=y[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-E,k=Math.max(E-m,1),L=Math.min(k*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(y)}g===void 0&&(g=setTimeout(_,0))}}});var He=M(e=>{"use strict";B(),e.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((i,s)=>{l.call(this,...n,(f,a)=>f!=null?s(f):i(a))})},"name",{value:l.name})},e.fromPromise=function(l){return Object.defineProperty(function(...n){let i=n[n.length-1];if(typeof i!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(s=>i(null,s),i)},"name",{value:l.name})}}),dt=M(e=>{"use strict";B();var l=He().fromCallback,n=we(),i=["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(s=>typeof n[s]=="function");Object.assign(e,n),i.forEach(s=>{e[s]=l(n[s])}),e.exists=function(s,f){return typeof f=="function"?n.exists(s,f):new Promise(a=>n.exists(s,a))},e.read=function(s,f,a,r,t,h){return typeof h=="function"?n.read(s,f,a,r,t,h):new Promise((u,c)=>{n.read(s,f,a,r,t,(o,d,p)=>{if(o)return c(o);u({bytesRead:d,buffer:p})})})},e.write=function(s,f,...a){return typeof a[a.length-1]=="function"?n.write(s,f,...a):new Promise((r,t)=>{n.write(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffer:c})})})},e.readv=function(s,f,...a){return typeof a[a.length-1]=="function"?n.readv(s,f,...a):new Promise((r,t)=>{n.readv(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesRead:u,buffers:c})})})},e.writev=function(s,f,...a){return typeof a[a.length-1]=="function"?n.writev(s,f,...a):new Promise((r,t)=>{n.writev(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffers:c})})})},typeof n.realpath.native=="function"?e.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),ka=M((e,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(i){if(process.platform==="win32"&&/[<>:"|?*]/.test(i.replace(n.parse(i).root,""))){let s=new Error(`Path contains invalid characters: ${i}`);throw s.code="EINVAL",s}}}),xa=M((e,l)=>{"use strict";B();var n=dt(),{checkPath:i}=ka(),s=f=>typeof f=="number"?f:{...{mode:511},...f}.mode;l.exports.makeDir=async(f,a)=>(i(f),n.mkdir(f,{mode:s(a),recursive:!0})),l.exports.makeDirSync=(f,a)=>(i(f),n.mkdirSync(f,{mode:s(a),recursive:!0}))}),ze=M((e,l)=>{"use strict";B();var n=He().fromPromise,{makeDir:i,makeDirSync:s}=xa(),f=n(i);l.exports={mkdirs:f,mkdirsSync:s,mkdirp:f,mkdirpSync:s,ensureDir:f,ensureDirSync:s}}),st=M((e,l)=>{"use strict";B();var n=He().fromPromise,i=dt();function s(f){return i.access(f).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(s),pathExistsSync:i.existsSync}}),Tn=M((e,l)=>{"use strict";B();var n=we();function i(f,a,r,t){n.open(f,"r+",(h,u)=>{if(h)return t(h);n.futimes(u,a,r,c=>{n.close(u,o=>{t&&t(c||o)})})})}function s(f,a,r){let t=n.openSync(f,"r+");return n.futimesSync(t,a,r),n.closeSync(t)}l.exports={utimesMillis:i,utimesMillisSync:s}}),mt=M((e,l)=>{"use strict";B();var n=dt(),i=Z("path"),s=Z("util");function f(p,g,b){let _=b.dereference?y=>n.stat(y,{bigint:!0}):y=>n.lstat(y,{bigint:!0});return Promise.all([_(p),_(g).catch(y=>{if(y.code==="ENOENT")return null;throw y})]).then(([y,D])=>({srcStat:y,destStat:D}))}function a(p,g,b){let _,y=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=y(p);try{_=y(g)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:_}}function r(p,g,b,_,y){s.callbackify(f)(p,g,_,(D,w)=>{if(D)return y(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let E=i.basename(p),S=i.basename(g);return b==="move"&&E!==S&&E.toLowerCase()===S.toLowerCase()?y(null,{srcStat:v,destStat:m,isChangingCase:!0}):y(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return y(new Error(`Cannot overwrite non-directory '${g}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return y(new Error(`Cannot overwrite directory '${g}' with non-directory '${p}'.`))}return v.isDirectory()&&o(p,g)?y(new Error(d(p,g,b))):y(null,{srcStat:v,destStat:m})})}function t(p,g,b,_){let{srcStat:y,destStat:D}=a(p,g,_);if(D){if(c(y,D)){let w=i.basename(p),v=i.basename(g);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:y,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(y.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${g}' with directory '${p}'.`);if(!y.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${g}' with non-directory '${p}'.`)}if(y.isDirectory()&&o(p,g))throw new Error(d(p,g,b));return{srcStat:y,destStat:D}}function h(p,g,b,_,y){let D=i.resolve(i.dirname(p)),w=i.resolve(i.dirname(b));if(w===D||w===i.parse(w).root)return y();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?y():y(v):c(g,m)?y(new Error(d(p,b,_))):h(p,g,w,_,y))}function u(p,g,b,_){let y=i.resolve(i.dirname(p)),D=i.resolve(i.dirname(b));if(D===y||D===i.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(g,w))throw new Error(d(p,b,_));return u(p,g,D,_)}function c(p,g){return g.ino&&g.dev&&g.ino===p.ino&&g.dev===p.dev}function o(p,g){let b=i.resolve(p).split(i.sep).filter(y=>y),_=i.resolve(g).split(i.sep).filter(y=>y);return b.reduce((y,D,w)=>y&&_[w]===D,!0)}function d(p,g,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${g}'.`}l.exports={checkPaths:r,checkPathsSync:t,checkParentPaths:h,checkParentPathsSync:u,isSrcSubdir:o,areIdentical:c}}),Fa=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=ze().mkdirs,f=st().pathExists,a=Tn().utimesMillis,r=mt();function t(T,x,O,I){typeof O=="function"&&!I?(I=O,O={}):typeof O=="function"&&(O={filter:O}),I=I||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;
|
|
30
30
|
|
|
31
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,
|
|
31
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,x,"copy",O,($,R)=>{if($)return I($);let{srcStat:G,destStat:W}=R;r.checkParentPaths(T,G,x,"copy",Q=>{if(Q)return I(Q);u(T,x,O,(P,j)=>{if(P)return I(P);if(!j)return I();h(W,T,x,O,I)})})})}function h(T,x,O,I,$){let R=i.dirname(O);f(R,(G,W)=>{if(G)return $(G);if(W)return c(T,x,O,I,$);s(R,Q=>Q?$(Q):c(T,x,O,I,$))})}function u(T,x,O,I){if(!O.filter)return I(null,!0);Promise.resolve(O.filter(T,x)).then($=>I(null,$),$=>I($))}function c(T,x,O,I,$){(I.dereference?n.stat:n.lstat)(x,(R,G)=>R?$(R):G.isDirectory()?v(G,T,x,O,I,$):G.isFile()||G.isCharacterDevice()||G.isBlockDevice()?o(G,T,x,O,I,$):G.isSymbolicLink()?k(T,x,O,I,$):G.isSocket()?$(new Error(`Cannot copy a socket file: ${x}`)):G.isFIFO()?$(new Error(`Cannot copy a FIFO pipe: ${x}`)):$(new Error(`Unknown file: ${x}`)))}function o(T,x,O,I,$,R){return x?d(T,O,I,$,R):p(T,O,I,$,R)}function d(T,x,O,I,$){if(I.overwrite)n.unlink(O,R=>R?$(R):p(T,x,O,I,$));else return I.errorOnExist?$(new Error(`'${O}' already exists`)):$()}function p(T,x,O,I,$){n.copyFile(x,O,R=>R?$(R):I.preserveTimestamps?g(T.mode,x,O,$):D(O,T.mode,$))}function g(T,x,O,I){return b(T)?_(O,T,$=>$?I($):y(T,x,O,I)):y(T,x,O,I)}function b(T){return(T&128)===0}function _(T,x,O){return D(T,x|128,O)}function y(T,x,O,I){w(x,O,$=>$?I($):D(O,T,I))}function D(T,x,O){return n.chmod(T,x,O)}function w(T,x,O){n.stat(T,(I,$)=>I?O(I):a(x,$.atime,$.mtime,O))}function v(T,x,O,I,$,R){return x?E(O,I,$,R):m(T.mode,O,I,$,R)}function m(T,x,O,I,$){n.mkdir(O,R=>{if(R)return $(R);E(x,O,I,G=>G?$(G):D(O,T,$))})}function E(T,x,O,I){n.readdir(T,($,R)=>$?I($):S(R,T,x,O,I))}function S(T,x,O,I,$){let R=T.pop();return R?A(T,R,x,O,I,$):$()}function A(T,x,O,I,$,R){let G=i.join(O,x),W=i.join(I,x);u(G,W,$,(Q,P)=>{if(Q)return R(Q);if(!P)return S(T,O,I,$,R);r.checkPaths(G,W,"copy",$,(j,F)=>{if(j)return R(j);let{destStat:J}=F;c(J,G,W,$,q=>q?R(q):S(T,O,I,$,R))})})}function k(T,x,O,I,$){n.readlink(x,(R,G)=>{if(R)return $(R);if(I.dereference&&(G=i.resolve(process.cwd(),G)),T)n.readlink(O,(W,Q)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?n.symlink(G,O,$):$(W):(I.dereference&&(Q=i.resolve(process.cwd(),Q)),r.isSrcSubdir(G,Q)?$(new Error(`Cannot copy '${G}' to a subdirectory of itself, '${Q}'.`)):r.isSrcSubdir(Q,G)?$(new Error(`Cannot overwrite '${Q}' with '${G}'.`)):L(G,O,$)));else return n.symlink(G,O,$)})}function L(T,x,O){n.unlink(x,I=>I?O(I):n.symlink(T,x,O))}l.exports=t}),Oa=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=ze().mkdirsSync,f=Tn().utimesMillisSync,a=mt();function r(E,S,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
32
32
|
|
|
33
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:
|
|
34
|
-
`,finalEOL:a=!0,replacer:r=null,spaces:t}={}){let h=a?f:"";return JSON.stringify(s,r,t).replace(/\n/g,f)+h}function i(s){return Buffer.isBuffer(s)&&(s=s.toString("utf8")),s.replace(/^\uFEFF/,"")}l.exports={stringify:n,stripBom:i}}),ja=M((e,l)=>{B();var n;try{n=we()}catch{n=Z("fs")}var i=He(),{stringify:s,stripBom:f}=vr();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let g=p.fs||n,b="throws"in p?p.throws:!0,_=await i.fromCallback(g.readFile)(d,p);_=f(_);let y;try{y=JSON.parse(_,p?p.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return y}var r=i.fromPromise(a);function t(d,p={}){typeof p=="string"&&(p={encoding:p});let g=p.fs||n,b="throws"in p?p.throws:!0;try{let _=g.readFileSync(d,p);return _=f(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function h(d,p,g={}){let b=g.fs||n,_=s(p,g);await i.fromCallback(b.writeFile)(d,_,g)}var u=i.fromPromise(h);function c(d,p,g={}){let b=g.fs||n,_=s(p,g);return b.writeFileSync(d,_,g)}var o={readFile:r,readFileSync:t,writeFile:u,writeFileSync:c};l.exports=o}),Na=M((e,l)=>{"use strict";B();var n=ja();l.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),_r=M((e,l)=>{"use strict";B();var n=He().fromCallback,i=we(),s=Z("path"),f=ze(),a=st().pathExists;function r(h,u,c,o){typeof c=="function"&&(o=c,c="utf8");let d=s.dirname(h);a(d,(p,g)=>{if(p)return o(p);if(g)return i.writeFile(h,u,c,o);f.mkdirs(d,b=>{if(b)return o(b);i.writeFile(h,u,c,o)})})}function t(h,...u){let c=s.dirname(h);if(i.existsSync(c))return i.writeFileSync(h,...u);f.mkdirsSync(c),i.writeFileSync(h,...u)}l.exports={outputFile:n(r),outputFileSync:t}}),$a=M((e,l)=>{"use strict";B();var{stringify:n}=vr(),{outputFile:i}=_r();async function s(f,a,r={}){let t=n(a,r);await i(f,t,r)}l.exports=s}),Ha=M((e,l)=>{"use strict";B();var{stringify:n}=vr(),{outputFileSync:i}=_r();function s(f,a,r){let t=n(a,r);i(f,t,r)}l.exports=s}),Ua=M((e,l)=>{"use strict";B();var n=He().fromPromise,i=Na();i.outputJson=n($a()),i.outputJsonSync=Ha(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,l.exports=i}),Ga=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=br().copy,f=qt().remove,a=ze().mkdirp,r=st().pathExists,t=mt();function h(p,g,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let y=b.overwrite||b.clobber||!1;t.checkPaths(p,g,"move",b,(D,w)=>{if(D)return _(D);let{srcStat:v,isChangingCase:m=!1}=w;t.checkParentPaths(p,v,g,"move",E=>{if(E)return _(E);if(u(g))return c(p,g,y,m,_);a(i.dirname(g),S=>S?_(S):c(p,g,y,m,_))})})}function u(p){let g=i.dirname(p);return i.parse(g).root===g}function c(p,g,b,_,y){if(_)return o(p,g,b,y);if(b)return f(g,D=>D?y(D):o(p,g,b,y));r(g,(D,w)=>D?y(D):w?y(new Error("dest already exists.")):o(p,g,b,y))}function o(p,g,b,_){n.rename(p,g,y=>y?y.code!=="EXDEV"?_(y):d(p,g,b,_):_())}function d(p,g,b,_){s(p,g,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},y=>y?_(y):f(p,_))}l.exports=h}),qa=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=br().copySync,f=qt().removeSync,a=ze().mkdirpSync,r=mt();function t(d,p,g){g=g||{};let b=g.overwrite||g.clobber||!1,{srcStat:_,isChangingCase:y=!1}=r.checkPathsSync(d,p,"move",g);return r.checkParentPathsSync(d,_,p,"move"),h(p)||a(i.dirname(p)),u(d,p,b,y)}function h(d){let p=i.dirname(d);return i.parse(p).root===p}function u(d,p,g,b){if(b)return c(d,p,g);if(g)return f(p),c(d,p,g);if(n.existsSync(p))throw new Error("dest already exists.");return c(d,p,g)}function c(d,p,g){try{n.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return o(d,p,g)}}function o(d,p,g){return s(d,p,{overwrite:g,errorOnExist:!0,preserveTimestamps:!0}),f(d)}l.exports=t}),za=M((e,l)=>{"use strict";B();var n=He().fromCallback;l.exports={move:n(Ga()),moveSync:qa()}}),Qe=M((e,l)=>{"use strict";B(),l.exports={...dt(),...br(),...Ra(),...Ma(),...Ua(),...ze(),...za(),..._r(),...st(),...qt()}});B();var jd=ke(Qe());B();var Ud=ke(Qe());var Xa=M((e,l)=>{B();function n(i,s){typeof s=="boolean"&&(s={forever:s}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=s||{},this._maxRetryTime=s&&s.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))}l.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var s=new Date().getTime();if(i&&s-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var f=this._timeouts.shift();if(f===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),f=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)},f),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(i,s){this._fn=i,s&&(s.timeout&&(this._operationTimeout=s.timeout),s.cb&&(this._operationTimeoutCb=s.cb));var f=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){f._operationTimeoutCb()},f._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},n.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},s=null,f=0,a=0;a<this._errors.length;a++){var r=this._errors[a],t=r.message,h=(i[t]||0)+1;i[t]=h,h>=f&&(s=r,f=h)}return s}}),Qa=M(e=>{B();var l=Xa();e.operation=function(n){var i=e.timeouts(n);return new l(i,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in n)i[s]=n[s];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var f=[],a=0;a<i.retries;a++)f.push(this.createTimeout(a,i));return n&&n.forever&&!f.length&&f.push(this.createTimeout(a,i)),f.sort(function(r,t){return r-t}),f},e.createTimeout=function(n,i){var s=i.randomize?Math.random()+1:1,f=Math.round(s*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return f=Math.min(f,i.maxTimeout),f},e.wrap=function(n,i,s){if(i instanceof Array&&(s=i,i=null),!s){s=[];for(var f in n)typeof n[f]=="function"&&s.push(f)}for(var a=0;a<s.length;a++){var r=s[a],t=n[r];n[r]=function(h){var u=e.operation(i),c=Array.prototype.slice.call(arguments,1),o=c.pop();c.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),o.apply(this,arguments))}),u.attempt(function(){h.apply(n,c)})}.bind(n,t),n[r].options=i}}}),eu=M((e,l)=>{B(),l.exports=Qa()}),tu=M((e,l)=>{B();var n=eu();function i(s,f){function a(r,t){var h=f||{},u;"randomize"in h||(h.randomize=!0),u=n.operation(h);function c(p){t(p||new Error("Aborted"))}function o(p,g){if(p.bail){c(p);return}u.retry(p)?h.onRetry&&h.onRetry(p,g):t(u.mainError())}function d(p){var g;try{g=s(c,p)}catch(b){o(b,p);return}Promise.resolve(g).then(r).catch(function(b){o(b,p)})}u.attempt(d)}return new Promise(a)}l.exports=i});B();B();var Zd=ke(tu()),Xd=ke(it()),Qd=ke(Qe());B();var s0=ke(Qe()),o0=ke(it());B();B();var nu=M((e,l)=>{B();function n(i){return l.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},l.exports.__esModule=!0,l.exports.default=l.exports,n(i)}l.exports=n,l.exports.__esModule=!0,l.exports.default=l.exports}),iu=M((e,l)=>{B();var n=nu().default;function i(){"use strict";l.exports=i=function(){return s},l.exports.__esModule=!0,l.exports.default=l.exports;var s={},f=Object.prototype,a=f.hasOwnProperty,r=Object.defineProperty||function($,R,G){$[R]=G.value},t=typeof Symbol=="function"?Symbol:{},h=t.iterator||"@@iterator",u=t.asyncIterator||"@@asyncIterator",c=t.toStringTag||"@@toStringTag";function o($,R,G){return Object.defineProperty($,R,{value:G,enumerable:!0,configurable:!0,writable:!0}),$[R]}try{o({},"")}catch{o=function($,R,G){return $[R]=G}}function d($,R,G,W){var Q=R&&R.prototype instanceof b?R:b,P=Object.create(Q.prototype),j=new k(W||[]);return r(P,"_invoke",{value:A($,G,j)}),P}function p($,R,G){try{return{type:"normal",arg:$.call(R,G)}}catch(W){return{type:"throw",arg:W}}}s.wrap=d;var g={};function b(){}function _(){}function y(){}var D={};o(D,h,function(){return this});var w=Object.getPrototypeOf,v=w&&w(w(O([])));v&&v!==f&&a.call(v,h)&&(D=v);var m=y.prototype=b.prototype=Object.create(D);function E($){["next","throw","return"].forEach(function(R){o($,R,function(G){return this._invoke(R,G)})})}function S($,R){function G(Q,P,j,F){var J=p($[Q],$,P);if(J.type!=="throw"){var q=J.arg,ee=q.value;return ee&&n(ee)=="object"&&a.call(ee,"__await")?R.resolve(ee.__await).then(function(N){G("next",N,j,F)},function(N){G("throw",N,j,F)}):R.resolve(ee).then(function(N){q.value=N,j(q)},function(N){return G("throw",N,j,F)})}F(J.arg)}var W;r(this,"_invoke",{value:function(Q,P){function j(){return new R(function(F,J){G(Q,P,F,J)})}return W=W?W.then(j,j):j()}})}function A($,R,G){var W="suspendedStart";return function(Q,P){if(W==="executing")throw new Error("Generator is already running");if(W==="completed"){if(Q==="throw")throw P;return I()}for(G.method=Q,G.arg=P;;){var j=G.delegate;if(j){var F=x(j,G);if(F){if(F===g)continue;return F}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(W==="suspendedStart")throw W="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);W="executing";var J=p($,R,G);if(J.type==="normal"){if(W=G.done?"completed":"suspendedYield",J.arg===g)continue;return{value:J.arg,done:G.done}}J.type==="throw"&&(W="completed",G.method="throw",G.arg=J.arg)}}}function x($,R){var G=R.method,W=$.iterator[G];if(W===void 0)return R.delegate=null,G==="throw"&&$.iterator.return&&(R.method="return",R.arg=void 0,x($,R),R.method==="throw")||G!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+G+"' method")),g;var Q=p(W,$.iterator,R.arg);if(Q.type==="throw")return R.method="throw",R.arg=Q.arg,R.delegate=null,g;var P=Q.arg;return P?P.done?(R[$.resultName]=P.value,R.next=$.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,g):P:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,g)}function L($){var R={tryLoc:$[0]};1 in $&&(R.catchLoc=$[1]),2 in $&&(R.finallyLoc=$[2],R.afterLoc=$[3]),this.tryEntries.push(R)}function T($){var R=$.completion||{};R.type="normal",delete R.arg,$.completion=R}function k($){this.tryEntries=[{tryLoc:"root"}],$.forEach(L,this),this.reset(!0)}function O($){if($){var R=$[h];if(R)return R.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var G=-1,W=function Q(){for(;++G<$.length;)if(a.call($,G))return Q.value=$[G],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return W.next=W}}return{next:I}}function I(){return{value:void 0,done:!0}}return _.prototype=y,r(m,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:_,configurable:!0}),_.displayName=o(y,c,"GeneratorFunction"),s.isGeneratorFunction=function($){var R=typeof $=="function"&&$.constructor;return!!R&&(R===_||(R.displayName||R.name)==="GeneratorFunction")},s.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,y):($.__proto__=y,o($,c,"GeneratorFunction")),$.prototype=Object.create(m),$},s.awrap=function($){return{__await:$}},E(S.prototype),o(S.prototype,u,function(){return this}),s.AsyncIterator=S,s.async=function($,R,G,W,Q){Q===void 0&&(Q=Promise);var P=new S(d($,R,G,W),Q);return s.isGeneratorFunction(R)?P:P.next().then(function(j){return j.done?j.value:P.next()})},E(m),o(m,c,"Generator"),o(m,h,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),s.keys=function($){var R=Object($),G=[];for(var W in R)G.push(W);return G.reverse(),function Q(){for(;G.length;){var P=G.pop();if(P in R)return Q.value=P,Q.done=!1,Q}return Q.done=!0,Q}},s.values=O,k.prototype={constructor:k,reset:function($){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),!$)for(var R in this)R.charAt(0)==="t"&&a.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var R=this;function G(J,q){return P.type="throw",P.arg=$,R.next=J,q&&(R.method="next",R.arg=void 0),!!q}for(var W=this.tryEntries.length-1;W>=0;--W){var Q=this.tryEntries[W],P=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var j=a.call(Q,"catchLoc"),F=a.call(Q,"finallyLoc");if(j&&F){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(j){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function($,R){for(var G=this.tryEntries.length-1;G>=0;--G){var W=this.tryEntries[G];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Q=W;break}}Q&&($==="break"||$==="continue")&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);var P=Q?Q.completion:{};return P.type=$,P.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,g):this.complete(P)},complete:function($,R){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&R&&(this.next=R),g},finish:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.finallyLoc===$)return this.complete(G.completion,G.afterLoc),T(G),g}},catch:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.tryLoc===$){var W=G.completion;if(W.type==="throw"){var Q=W.arg;T(G)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function($,R,G){return this.delegate={iterator:O($),resultName:R,nextLoc:G},this.method==="next"&&(this.arg=void 0),g}},s}l.exports=i,l.exports.__esModule=!0,l.exports.default=l.exports}),su=M((e,l)=>{B();var n=iu()();l.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),ou=M((e,l)=>{"use strict";B();var n=(i,...s)=>new Promise(f=>{f(i(...s))});l.exports=n,l.exports.default=n}),au=M((e,l)=>{"use strict";B();var n=ou(),i=s=>{if(!((Number.isInteger(s)||s===1/0)&&s>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let f=[],a=0,r=()=>{a--,f.length>0&&f.shift()()},t=(c,o,...d)=>{a++;let p=n(c,...d);o(p),p.then(r,r)},h=(c,o,...d)=>{a<s?t(c,o,...d):f.push(t.bind(null,c,o,...d))},u=(c,...o)=>new Promise(d=>h(c,d,...o));return Object.defineProperties(u,{activeCount:{get:()=>a},pendingCount:{get:()=>f.length},clearQueue:{value:()=>{f.length=0}}}),u};l.exports=i,l.exports.default=i}),uu=M((e,l)=>{"use strict";B();var n=au(),i=class extends Error{constructor(r){super(),this.value=r}},s=async(r,t)=>t(await r),f=async r=>{let t=await Promise.all(r);if(t[1]===!0)throw new i(t[0]);return!1},a=async(r,t,h)=>{h={concurrency:1/0,preserveOrder:!0,...h};let u=n(h.concurrency),c=[...r].map(d=>[d,u(s,d,t)]),o=n(h.preserveOrder?1:1/0);try{await Promise.all(c.map(d=>o(f,d)))}catch(d){if(d instanceof i)return d.value;throw d}};l.exports=a,l.exports.default=a}),lu=M((e,l)=>{"use strict";B();var n=Z("path"),i=Z("fs"),{promisify:s}=Z("util"),f=uu(),a=s(i.stat),r=s(i.lstat),t={directory:"isDirectory",file:"isFile"};function h({type:c}){if(!(c in t))throw new Error(`Invalid type specified: ${c}`)}var u=(c,o)=>c===void 0||o[t[c]]();l.exports=async(c,o)=>{o={cwd:process.cwd(),type:"file",allowSymlinks:!0,...o},h(o);let d=o.allowSymlinks?a:r;return f(c,async p=>{try{let g=await d(n.resolve(o.cwd,p));return u(o.type,g)}catch{return!1}},o)},l.exports.sync=(c,o)=>{o={cwd:process.cwd(),allowSymlinks:!0,type:"file",...o},h(o);let d=o.allowSymlinks?i.statSync:i.lstatSync;for(let p of c)try{let g=d(n.resolve(o.cwd,p));if(u(o.type,g))return p}catch{}}}),cu=M((e,l)=>{"use strict";B();var n=Z("fs"),{promisify:i}=Z("util"),s=i(n.access);l.exports=async f=>{try{return await s(f),!0}catch{return!1}},l.exports.sync=f=>{try{return n.accessSync(f),!0}catch{return!1}}}),hu=M((e,l)=>{"use strict";B();var n=Z("path"),i=lu(),s=cu(),f=Symbol("findUp.stop");l.exports=async(a,r={})=>{let t=n.resolve(r.cwd||""),{root:h}=n.parse(t),u=[].concat(a),c=async o=>{if(typeof a!="function")return i(u,o);let d=await a(o.cwd);return typeof d=="string"?i([d],o):d};for(;;){let o=await c({...r,cwd:t});if(o===f)return;if(o)return n.resolve(t,o);if(t===h)return;t=n.dirname(t)}},l.exports.sync=(a,r={})=>{let t=n.resolve(r.cwd||""),{root:h}=n.parse(t),u=[].concat(a),c=o=>{if(typeof a!="function")return i.sync(u,o);let d=a(o.cwd);return typeof d=="string"?i.sync([d],o):d};for(;;){let o=c({...r,cwd:t});if(o===f)return;if(o)return n.resolve(t,o);if(t===h)return;t=n.dirname(t)}},l.exports.exists=s,l.exports.sync.exists=s.sync,l.exports.stop=f}),Ue=M(e=>{"use strict";B(),e.fromCallback=function(l){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")l.apply(this,arguments);else return new Promise((n,i)=>{arguments[arguments.length]=(s,f)=>{if(s)return i(s);n(f)},arguments.length++,l.apply(this,arguments)})},"name",{value:l.name})},e.fromPromise=function(l){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return l.apply(this,arguments);l.apply(this,arguments).then(i=>n(null,i),n)},"name",{value:l.name})}}),Pn=M(e=>{"use strict";B();var l=Ue().fromCallback,n=we(),i=["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(s=>typeof n[s]=="function");Object.keys(n).forEach(s=>{s!=="promises"&&(e[s]=n[s])}),i.forEach(s=>{e[s]=l(n[s])}),e.exists=function(s,f){return typeof f=="function"?n.exists(s,f):new Promise(a=>n.exists(s,a))},e.read=function(s,f,a,r,t,h){return typeof h=="function"?n.read(s,f,a,r,t,h):new Promise((u,c)=>{n.read(s,f,a,r,t,(o,d,p)=>{if(o)return c(o);u({bytesRead:d,buffer:p})})})},e.write=function(s,f,...a){return typeof a[a.length-1]=="function"?n.write(s,f,...a):new Promise((r,t)=>{n.write(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffer:c})})})},typeof n.realpath.native=="function"&&(e.realpath.native=l(n.realpath.native))}),Ln=M((e,l)=>{"use strict";B();var n=Z("path");function i(a){return a=n.normalize(n.resolve(a)).split(n.sep),a.length>0?a[0]:null}var s=/[<>:"|?*]/;function f(a){let r=i(a);return a=a.replace(r,""),s.test(a)}l.exports={getRootPath:i,invalidWin32Path:f}}),pu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ln().invalidWin32Path,f=parseInt("0777",8);function a(r,t,h,u){if(typeof t=="function"?(h=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&s(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",h(d)}let c=t.mode,o=t.fs||n;c===void 0&&(c=f&~process.umask()),u||(u=null),h=h||function(){},r=i.resolve(r),o.mkdir(r,c,d=>{if(!d)return u=u||r,h(null,u);switch(d.code){case"ENOENT":if(i.dirname(r)===r)return h(d);a(i.dirname(r),t,(p,g)=>{p?h(p,g):a(r,t,h,g)});break;default:o.stat(r,(p,g)=>{p||!g.isDirectory()?h(d,u):h(null,u)});break}})}l.exports=a}),fu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ln().invalidWin32Path,f=parseInt("0777",8);function a(r,t,h){(!t||typeof t!="object")&&(t={mode:t});let u=t.mode,c=t.fs||n;if(process.platform==="win32"&&s(r)){let o=new Error(r+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}u===void 0&&(u=f&~process.umask()),h||(h=null),r=i.resolve(r);try{c.mkdirSync(r,u),h=h||r}catch(o){if(o.code==="ENOENT"){if(i.dirname(r)===r)throw o;h=a(i.dirname(r),t,h),a(r,t,h)}else{let d;try{d=c.statSync(r)}catch{throw o}if(!d.isDirectory())throw o}}return h}l.exports=a}),Ge=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=n(pu()),s=fu();l.exports={mkdirs:i,mkdirsSync:s,mkdirp:i,mkdirpSync:s,ensureDir:i,ensureDirSync:s}}),In=M((e,l)=>{"use strict";B();var n=we(),i=Z("os"),s=Z("path");function f(){let u=s.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));u=s.join(i.tmpdir(),u);let c=new Date(1435410243862);n.writeFileSync(u,"https://github.com/jprichardson/node-fs-extra/pull/141");let o=n.openSync(u,"r+");return n.futimesSync(o,c,c),n.closeSync(o),n.statSync(u).mtime>1435410243e3}function a(u){let c=s.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));c=s.join(i.tmpdir(),c);let o=new Date(1435410243862);n.writeFile(c,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return u(d);n.open(c,"r+",(p,g)=>{if(p)return u(p);n.futimes(g,o,o,b=>{if(b)return u(b);n.close(g,_=>{if(_)return u(_);n.stat(c,(y,D)=>{if(y)return u(y);u(null,D.mtime>1435410243e3)})})})})})}function r(u){if(typeof u=="number")return Math.floor(u/1e3)*1e3;if(u instanceof Date)return new Date(Math.floor(u.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function t(u,c,o,d){n.open(u,"r+",(p,g)=>{if(p)return d(p);n.futimes(g,c,o,b=>{n.close(g,_=>{d&&d(b||_)})})})}function h(u,c,o){let d=n.openSync(u,"r+");return n.futimesSync(d,c,o),n.closeSync(d)}l.exports={hasMillisRes:a,hasMillisResSync:f,timeRemoveMillis:r,utimesMillis:t,utimesMillisSync:h}}),Vt=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=10,f=5,a=0,r=process.versions.node.split("."),t=Number.parseInt(r[0],10),h=Number.parseInt(r[1],10),u=Number.parseInt(r[2],10);function c(){return t>s||t===s&&(h>f||h===f&&u>=a)}function o(w,v,m){c()?n.stat(w,{bigint:!0},(E,S)=>{if(E)return m(E);n.stat(v,{bigint:!0},(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))}):n.stat(w,(E,S)=>{if(E)return m(E);n.stat(v,(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))})}function d(w,v){let m,E;c()?m=n.statSync(w,{bigint:!0}):m=n.statSync(w);try{c()?E=n.statSync(v,{bigint:!0}):E=n.statSync(v)}catch(S){if(S.code==="ENOENT")return{srcStat:m,destStat:null};throw S}return{srcStat:m,destStat:E}}function p(w,v,m,E){o(w,v,(S,A)=>{if(S)return E(S);let{srcStat:x,destStat:L}=A;return L&&L.ino&&L.dev&&L.ino===x.ino&&L.dev===x.dev?E(new Error("Source and destination must not be the same.")):x.isDirectory()&&y(w,v)?E(new Error(D(w,v,m))):E(null,{srcStat:x,destStat:L})})}function g(w,v,m){let{srcStat:E,destStat:S}=d(w,v);if(S&&S.ino&&S.dev&&S.ino===E.ino&&S.dev===E.dev)throw new Error("Source and destination must not be the same.");if(E.isDirectory()&&y(w,v))throw new Error(D(w,v,m));return{srcStat:E,destStat:S}}function b(w,v,m,E,S){let A=i.resolve(i.dirname(w)),x=i.resolve(i.dirname(m));if(x===A||x===i.parse(x).root)return S();c()?n.stat(x,{bigint:!0},(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,E))):b(w,v,x,E,S)):n.stat(x,(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,E))):b(w,v,x,E,S))}function _(w,v,m,E){let S=i.resolve(i.dirname(w)),A=i.resolve(i.dirname(m));if(A===S||A===i.parse(A).root)return;let x;try{c()?x=n.statSync(A,{bigint:!0}):x=n.statSync(A)}catch(L){if(L.code==="ENOENT")return;throw L}if(x.ino&&x.dev&&x.ino===v.ino&&x.dev===v.dev)throw new Error(D(w,m,E));return _(w,v,A,E)}function y(w,v){let m=i.resolve(w).split(i.sep).filter(S=>S),E=i.resolve(v).split(i.sep).filter(S=>S);return m.reduce((S,A,x)=>S&&E[x]===A,!0)}function D(w,v,m){return`Cannot ${m} '${w}' to a subdirectory of itself, '${v}'.`}l.exports={checkPaths:p,checkPathsSync:g,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:y}}),du=M((e,l)=>{"use strict";B(),l.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),mu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ge().mkdirsSync,f=In().utimesMillisSync,a=Vt();function r(v,m,E){typeof E=="function"&&(E={filter:E}),E=E||{},E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
33
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:k,destStat:L}=a.checkPathsSync(E,S,"copy",A);if(a.checkParentPathsSync(E,k,S,"copy"),A.filter&&!A.filter(E,S))return;let T=i.dirname(S);return n.existsSync(T)||s(T),t(L,E,S,A)}function t(E,S,A,k){let L=(k.dereference?n.statSync:n.lstatSync)(S);if(L.isDirectory())return _(L,E,S,A,k);if(L.isFile()||L.isCharacterDevice()||L.isBlockDevice())return h(L,E,S,A,k);if(L.isSymbolicLink())return v(E,S,A,k);throw L.isSocket()?new Error(`Cannot copy a socket file: ${S}`):L.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${S}`):new Error(`Unknown file: ${S}`)}function h(E,S,A,k,L){return S?u(E,A,k,L):c(E,A,k,L)}function u(E,S,A,k){if(k.overwrite)return n.unlinkSync(A),c(E,S,A,k);if(k.errorOnExist)throw new Error(`'${A}' already exists`)}function c(E,S,A,k){return n.copyFileSync(S,A),k.preserveTimestamps&&o(E.mode,S,A),g(A,E.mode)}function o(E,S,A){return d(E)&&p(A,E),b(S,A)}function d(E){return(E&128)===0}function p(E,S){return g(E,S|128)}function g(E,S){return n.chmodSync(E,S)}function b(E,S){let A=n.statSync(E);return f(S,A.atime,A.mtime)}function _(E,S,A,k,L){return S?D(A,k,L):y(E.mode,A,k,L)}function y(E,S,A,k){return n.mkdirSync(A),D(S,A,k),g(A,E)}function D(E,S,A){n.readdirSync(E).forEach(k=>w(k,E,S,A))}function w(E,S,A,k){let L=i.join(S,E),T=i.join(A,E);if(k.filter&&!k.filter(L,T))return;let{destStat:x}=a.checkPathsSync(L,T,"copy",k);return t(x,L,T,k)}function v(E,S,A,k){let L=n.readlinkSync(S);if(k.dereference&&(L=i.resolve(process.cwd(),L)),E){let T;try{T=n.readlinkSync(A)}catch(x){if(x.code==="EINVAL"||x.code==="UNKNOWN")return n.symlinkSync(L,A);throw x}if(k.dereference&&(T=i.resolve(process.cwd(),T)),a.isSrcSubdir(L,T))throw new Error(`Cannot copy '${L}' to a subdirectory of itself, '${T}'.`);if(a.isSrcSubdir(T,L))throw new Error(`Cannot overwrite '${T}' with '${L}'.`);return m(L,A)}else return n.symlinkSync(L,A)}function m(E,S){return n.unlinkSync(S),n.symlinkSync(E,S)}l.exports=r}),br=M((e,l)=>{"use strict";B();var n=He().fromCallback;l.exports={copy:n(Fa()),copySync:Oa()}}),qt=M((e,l)=>{"use strict";B();var n=we(),i=He().fromCallback;function s(a,r){n.rm(a,{recursive:!0,force:!0},r)}function f(a){n.rmSync(a,{recursive:!0,force:!0})}l.exports={remove:i(s),removeSync:f}}),Ra=M((e,l)=>{"use strict";B();var n=He().fromPromise,i=dt(),s=Z("path"),f=ze(),a=qt(),r=n(async function(h){let u;try{u=await i.readdir(h)}catch{return f.mkdirs(h)}return Promise.all(u.map(c=>a.remove(s.join(h,c))))});function t(h){let u;try{u=i.readdirSync(h)}catch{return f.mkdirsSync(h)}u.forEach(c=>{c=s.join(h,c),a.removeSync(c)})}l.exports={emptyDirSync:t,emptydirSync:t,emptyDir:r,emptydir:r}}),Ta=M((e,l)=>{"use strict";B();var n=He().fromCallback,i=Z("path"),s=we(),f=ze();function a(t,h){function u(){s.writeFile(t,"",c=>{if(c)return h(c);h()})}s.stat(t,(c,o)=>{if(!c&&o.isFile())return h();let d=i.dirname(t);s.stat(d,(p,g)=>{if(p)return p.code==="ENOENT"?f.mkdirs(d,b=>{if(b)return h(b);u()}):h(p);g.isDirectory()?u():s.readdir(d,b=>{if(b)return h(b)})})})}function r(t){let h;try{h=s.statSync(t)}catch{}if(h&&h.isFile())return;let u=i.dirname(t);try{s.statSync(u).isDirectory()||s.readdirSync(u)}catch(c){if(c&&c.code==="ENOENT")f.mkdirsSync(u);else throw c}s.writeFileSync(t,"")}l.exports={createFile:n(a),createFileSync:r}}),Ba=M((e,l)=>{"use strict";B();var n=He().fromCallback,i=Z("path"),s=we(),f=ze(),a=st().pathExists,{areIdentical:r}=mt();function t(u,c,o){function d(p,g){s.link(p,g,b=>{if(b)return o(b);o(null)})}s.lstat(c,(p,g)=>{s.lstat(u,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),o(b);if(g&&r(_,g))return o(null);let y=i.dirname(c);a(y,(D,w)=>{if(D)return o(D);if(w)return d(u,c);f.mkdirs(y,v=>{if(v)return o(v);d(u,c)})})})})}function h(u,c){let o;try{o=s.lstatSync(c)}catch{}try{let p=s.lstatSync(u);if(o&&r(p,o))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=i.dirname(c);return s.existsSync(d)||f.mkdirsSync(d),s.linkSync(u,c)}l.exports={createLink:n(t),createLinkSync:h}}),Pa=M((e,l)=>{"use strict";B();var n=Z("path"),i=we(),s=st().pathExists;function f(r,t,h){if(n.isAbsolute(r))return i.lstat(r,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),h(u)):h(null,{toCwd:r,toDst:r}));{let u=n.dirname(t),c=n.join(u,r);return s(c,(o,d)=>o?h(o):d?h(null,{toCwd:c,toDst:r}):i.lstat(r,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),h(p)):h(null,{toCwd:r,toDst:n.relative(u,r)})))}}function a(r,t){let h;if(n.isAbsolute(r)){if(h=i.existsSync(r),!h)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let u=n.dirname(t),c=n.join(u,r);if(h=i.existsSync(c),h)return{toCwd:c,toDst:r};if(h=i.existsSync(r),!h)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(u,r)}}}l.exports={symlinkPaths:f,symlinkPathsSync:a}}),La=M((e,l)=>{"use strict";B();var n=we();function i(f,a,r){if(r=typeof a=="function"?a:r,a=typeof a=="function"?!1:a,a)return r(null,a);n.lstat(f,(t,h)=>{if(t)return r(null,"file");a=h&&h.isDirectory()?"dir":"file",r(null,a)})}function s(f,a){let r;if(a)return a;try{r=n.lstatSync(f)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:i,symlinkTypeSync:s}}),Ia=M((e,l)=>{"use strict";B();var n=He().fromCallback,i=Z("path"),s=dt(),f=ze(),a=f.mkdirs,r=f.mkdirsSync,t=Pa(),h=t.symlinkPaths,u=t.symlinkPathsSync,c=La(),o=c.symlinkType,d=c.symlinkTypeSync,p=st().pathExists,{areIdentical:g}=mt();function b(D,w,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,s.lstat(w,(E,S)=>{!E&&S.isSymbolicLink()?Promise.all([s.stat(D),s.stat(w)]).then(([A,k])=>{if(g(A,k))return m(null);_(D,w,v,m)}):_(D,w,v,m)})}function _(D,w,v,m){h(D,w,(E,S)=>{if(E)return m(E);D=S.toDst,o(S.toCwd,v,(A,k)=>{if(A)return m(A);let L=i.dirname(w);p(L,(T,x)=>{if(T)return m(T);if(x)return s.symlink(D,w,k,m);a(L,O=>{if(O)return m(O);s.symlink(D,w,k,m)})})})})}function y(D,w,v){let m;try{m=s.lstatSync(w)}catch{}if(m&&m.isSymbolicLink()){let A=s.statSync(D),k=s.statSync(w);if(g(A,k))return}let E=u(D,w);D=E.toDst,v=d(E.toCwd,v);let S=i.dirname(w);return s.existsSync(S)||r(S),s.symlinkSync(D,w,v)}l.exports={createSymlink:n(b),createSymlinkSync:y}}),Ma=M((e,l)=>{"use strict";B();var{createFile:n,createFileSync:i}=Ta(),{createLink:s,createLinkSync:f}=Ba(),{createSymlink:a,createSymlinkSync:r}=Ia();l.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:f,ensureLink:s,ensureLinkSync:f,createSymlink:a,createSymlinkSync:r,ensureSymlink:a,ensureSymlinkSync:r}}),vr=M((e,l)=>{B();function n(s,{EOL:f=`
|
|
34
|
+
`,finalEOL:a=!0,replacer:r=null,spaces:t}={}){let h=a?f:"";return JSON.stringify(s,r,t).replace(/\n/g,f)+h}function i(s){return Buffer.isBuffer(s)&&(s=s.toString("utf8")),s.replace(/^\uFEFF/,"")}l.exports={stringify:n,stripBom:i}}),ja=M((e,l)=>{B();var n;try{n=we()}catch{n=Z("fs")}var i=He(),{stringify:s,stripBom:f}=vr();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let g=p.fs||n,b="throws"in p?p.throws:!0,_=await i.fromCallback(g.readFile)(d,p);_=f(_);let y;try{y=JSON.parse(_,p?p.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return y}var r=i.fromPromise(a);function t(d,p={}){typeof p=="string"&&(p={encoding:p});let g=p.fs||n,b="throws"in p?p.throws:!0;try{let _=g.readFileSync(d,p);return _=f(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function h(d,p,g={}){let b=g.fs||n,_=s(p,g);await i.fromCallback(b.writeFile)(d,_,g)}var u=i.fromPromise(h);function c(d,p,g={}){let b=g.fs||n,_=s(p,g);return b.writeFileSync(d,_,g)}var o={readFile:r,readFileSync:t,writeFile:u,writeFileSync:c};l.exports=o}),Na=M((e,l)=>{"use strict";B();var n=ja();l.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),_r=M((e,l)=>{"use strict";B();var n=He().fromCallback,i=we(),s=Z("path"),f=ze(),a=st().pathExists;function r(h,u,c,o){typeof c=="function"&&(o=c,c="utf8");let d=s.dirname(h);a(d,(p,g)=>{if(p)return o(p);if(g)return i.writeFile(h,u,c,o);f.mkdirs(d,b=>{if(b)return o(b);i.writeFile(h,u,c,o)})})}function t(h,...u){let c=s.dirname(h);if(i.existsSync(c))return i.writeFileSync(h,...u);f.mkdirsSync(c),i.writeFileSync(h,...u)}l.exports={outputFile:n(r),outputFileSync:t}}),$a=M((e,l)=>{"use strict";B();var{stringify:n}=vr(),{outputFile:i}=_r();async function s(f,a,r={}){let t=n(a,r);await i(f,t,r)}l.exports=s}),Ha=M((e,l)=>{"use strict";B();var{stringify:n}=vr(),{outputFileSync:i}=_r();function s(f,a,r){let t=n(a,r);i(f,t,r)}l.exports=s}),Ua=M((e,l)=>{"use strict";B();var n=He().fromPromise,i=Na();i.outputJson=n($a()),i.outputJsonSync=Ha(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,l.exports=i}),Ga=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=br().copy,f=qt().remove,a=ze().mkdirp,r=st().pathExists,t=mt();function h(p,g,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let y=b.overwrite||b.clobber||!1;t.checkPaths(p,g,"move",b,(D,w)=>{if(D)return _(D);let{srcStat:v,isChangingCase:m=!1}=w;t.checkParentPaths(p,v,g,"move",E=>{if(E)return _(E);if(u(g))return c(p,g,y,m,_);a(i.dirname(g),S=>S?_(S):c(p,g,y,m,_))})})}function u(p){let g=i.dirname(p);return i.parse(g).root===g}function c(p,g,b,_,y){if(_)return o(p,g,b,y);if(b)return f(g,D=>D?y(D):o(p,g,b,y));r(g,(D,w)=>D?y(D):w?y(new Error("dest already exists.")):o(p,g,b,y))}function o(p,g,b,_){n.rename(p,g,y=>y?y.code!=="EXDEV"?_(y):d(p,g,b,_):_())}function d(p,g,b,_){s(p,g,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},y=>y?_(y):f(p,_))}l.exports=h}),qa=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=br().copySync,f=qt().removeSync,a=ze().mkdirpSync,r=mt();function t(d,p,g){g=g||{};let b=g.overwrite||g.clobber||!1,{srcStat:_,isChangingCase:y=!1}=r.checkPathsSync(d,p,"move",g);return r.checkParentPathsSync(d,_,p,"move"),h(p)||a(i.dirname(p)),u(d,p,b,y)}function h(d){let p=i.dirname(d);return i.parse(p).root===p}function u(d,p,g,b){if(b)return c(d,p,g);if(g)return f(p),c(d,p,g);if(n.existsSync(p))throw new Error("dest already exists.");return c(d,p,g)}function c(d,p,g){try{n.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return o(d,p,g)}}function o(d,p,g){return s(d,p,{overwrite:g,errorOnExist:!0,preserveTimestamps:!0}),f(d)}l.exports=t}),za=M((e,l)=>{"use strict";B();var n=He().fromCallback;l.exports={move:n(Ga()),moveSync:qa()}}),Qe=M((e,l)=>{"use strict";B(),l.exports={...dt(),...br(),...Ra(),...Ma(),...Ua(),...ze(),...za(),..._r(),...st(),...qt()}});B();var jd=xe(Qe());B();var Ud=xe(Qe());var Xa=M((e,l)=>{B();function n(i,s){typeof s=="boolean"&&(s={forever:s}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=s||{},this._maxRetryTime=s&&s.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))}l.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var s=new Date().getTime();if(i&&s-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var f=this._timeouts.shift();if(f===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),f=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)},f),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(i,s){this._fn=i,s&&(s.timeout&&(this._operationTimeout=s.timeout),s.cb&&(this._operationTimeoutCb=s.cb));var f=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){f._operationTimeoutCb()},f._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},n.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},s=null,f=0,a=0;a<this._errors.length;a++){var r=this._errors[a],t=r.message,h=(i[t]||0)+1;i[t]=h,h>=f&&(s=r,f=h)}return s}}),Qa=M(e=>{B();var l=Xa();e.operation=function(n){var i=e.timeouts(n);return new l(i,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in n)i[s]=n[s];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var f=[],a=0;a<i.retries;a++)f.push(this.createTimeout(a,i));return n&&n.forever&&!f.length&&f.push(this.createTimeout(a,i)),f.sort(function(r,t){return r-t}),f},e.createTimeout=function(n,i){var s=i.randomize?Math.random()+1:1,f=Math.round(s*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return f=Math.min(f,i.maxTimeout),f},e.wrap=function(n,i,s){if(i instanceof Array&&(s=i,i=null),!s){s=[];for(var f in n)typeof n[f]=="function"&&s.push(f)}for(var a=0;a<s.length;a++){var r=s[a],t=n[r];n[r]=function(h){var u=e.operation(i),c=Array.prototype.slice.call(arguments,1),o=c.pop();c.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),o.apply(this,arguments))}),u.attempt(function(){h.apply(n,c)})}.bind(n,t),n[r].options=i}}}),eu=M((e,l)=>{B(),l.exports=Qa()}),tu=M((e,l)=>{B();var n=eu();function i(s,f){function a(r,t){var h=f||{},u;"randomize"in h||(h.randomize=!0),u=n.operation(h);function c(p){t(p||new Error("Aborted"))}function o(p,g){if(p.bail){c(p);return}u.retry(p)?h.onRetry&&h.onRetry(p,g):t(u.mainError())}function d(p){var g;try{g=s(c,p)}catch(b){o(b,p);return}Promise.resolve(g).then(r).catch(function(b){o(b,p)})}u.attempt(d)}return new Promise(a)}l.exports=i});B();B();var Zd=xe(tu()),Xd=xe(it()),Qd=xe(Qe());B();B();var o0=xe(Qe()),a0=xe(it());B();B();var nu=M((e,l)=>{B();function n(i){return l.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},l.exports.__esModule=!0,l.exports.default=l.exports,n(i)}l.exports=n,l.exports.__esModule=!0,l.exports.default=l.exports}),iu=M((e,l)=>{B();var n=nu().default;function i(){"use strict";l.exports=i=function(){return s},l.exports.__esModule=!0,l.exports.default=l.exports;var s={},f=Object.prototype,a=f.hasOwnProperty,r=Object.defineProperty||function($,R,G){$[R]=G.value},t=typeof Symbol=="function"?Symbol:{},h=t.iterator||"@@iterator",u=t.asyncIterator||"@@asyncIterator",c=t.toStringTag||"@@toStringTag";function o($,R,G){return Object.defineProperty($,R,{value:G,enumerable:!0,configurable:!0,writable:!0}),$[R]}try{o({},"")}catch{o=function($,R,G){return $[R]=G}}function d($,R,G,W){var Q=R&&R.prototype instanceof b?R:b,P=Object.create(Q.prototype),j=new x(W||[]);return r(P,"_invoke",{value:A($,G,j)}),P}function p($,R,G){try{return{type:"normal",arg:$.call(R,G)}}catch(W){return{type:"throw",arg:W}}}s.wrap=d;var g={};function b(){}function _(){}function y(){}var D={};o(D,h,function(){return this});var w=Object.getPrototypeOf,v=w&&w(w(O([])));v&&v!==f&&a.call(v,h)&&(D=v);var m=y.prototype=b.prototype=Object.create(D);function E($){["next","throw","return"].forEach(function(R){o($,R,function(G){return this._invoke(R,G)})})}function S($,R){function G(Q,P,j,F){var J=p($[Q],$,P);if(J.type!=="throw"){var q=J.arg,ee=q.value;return ee&&n(ee)=="object"&&a.call(ee,"__await")?R.resolve(ee.__await).then(function(N){G("next",N,j,F)},function(N){G("throw",N,j,F)}):R.resolve(ee).then(function(N){q.value=N,j(q)},function(N){return G("throw",N,j,F)})}F(J.arg)}var W;r(this,"_invoke",{value:function(Q,P){function j(){return new R(function(F,J){G(Q,P,F,J)})}return W=W?W.then(j,j):j()}})}function A($,R,G){var W="suspendedStart";return function(Q,P){if(W==="executing")throw new Error("Generator is already running");if(W==="completed"){if(Q==="throw")throw P;return I()}for(G.method=Q,G.arg=P;;){var j=G.delegate;if(j){var F=k(j,G);if(F){if(F===g)continue;return F}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(W==="suspendedStart")throw W="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);W="executing";var J=p($,R,G);if(J.type==="normal"){if(W=G.done?"completed":"suspendedYield",J.arg===g)continue;return{value:J.arg,done:G.done}}J.type==="throw"&&(W="completed",G.method="throw",G.arg=J.arg)}}}function k($,R){var G=R.method,W=$.iterator[G];if(W===void 0)return R.delegate=null,G==="throw"&&$.iterator.return&&(R.method="return",R.arg=void 0,k($,R),R.method==="throw")||G!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+G+"' method")),g;var Q=p(W,$.iterator,R.arg);if(Q.type==="throw")return R.method="throw",R.arg=Q.arg,R.delegate=null,g;var P=Q.arg;return P?P.done?(R[$.resultName]=P.value,R.next=$.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,g):P:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,g)}function L($){var R={tryLoc:$[0]};1 in $&&(R.catchLoc=$[1]),2 in $&&(R.finallyLoc=$[2],R.afterLoc=$[3]),this.tryEntries.push(R)}function T($){var R=$.completion||{};R.type="normal",delete R.arg,$.completion=R}function x($){this.tryEntries=[{tryLoc:"root"}],$.forEach(L,this),this.reset(!0)}function O($){if($){var R=$[h];if(R)return R.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var G=-1,W=function Q(){for(;++G<$.length;)if(a.call($,G))return Q.value=$[G],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return W.next=W}}return{next:I}}function I(){return{value:void 0,done:!0}}return _.prototype=y,r(m,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:_,configurable:!0}),_.displayName=o(y,c,"GeneratorFunction"),s.isGeneratorFunction=function($){var R=typeof $=="function"&&$.constructor;return!!R&&(R===_||(R.displayName||R.name)==="GeneratorFunction")},s.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,y):($.__proto__=y,o($,c,"GeneratorFunction")),$.prototype=Object.create(m),$},s.awrap=function($){return{__await:$}},E(S.prototype),o(S.prototype,u,function(){return this}),s.AsyncIterator=S,s.async=function($,R,G,W,Q){Q===void 0&&(Q=Promise);var P=new S(d($,R,G,W),Q);return s.isGeneratorFunction(R)?P:P.next().then(function(j){return j.done?j.value:P.next()})},E(m),o(m,c,"Generator"),o(m,h,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),s.keys=function($){var R=Object($),G=[];for(var W in R)G.push(W);return G.reverse(),function Q(){for(;G.length;){var P=G.pop();if(P in R)return Q.value=P,Q.done=!1,Q}return Q.done=!0,Q}},s.values=O,x.prototype={constructor:x,reset:function($){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),!$)for(var R in this)R.charAt(0)==="t"&&a.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var R=this;function G(J,q){return P.type="throw",P.arg=$,R.next=J,q&&(R.method="next",R.arg=void 0),!!q}for(var W=this.tryEntries.length-1;W>=0;--W){var Q=this.tryEntries[W],P=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var j=a.call(Q,"catchLoc"),F=a.call(Q,"finallyLoc");if(j&&F){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(j){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function($,R){for(var G=this.tryEntries.length-1;G>=0;--G){var W=this.tryEntries[G];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Q=W;break}}Q&&($==="break"||$==="continue")&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);var P=Q?Q.completion:{};return P.type=$,P.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,g):this.complete(P)},complete:function($,R){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&R&&(this.next=R),g},finish:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.finallyLoc===$)return this.complete(G.completion,G.afterLoc),T(G),g}},catch:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.tryLoc===$){var W=G.completion;if(W.type==="throw"){var Q=W.arg;T(G)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function($,R,G){return this.delegate={iterator:O($),resultName:R,nextLoc:G},this.method==="next"&&(this.arg=void 0),g}},s}l.exports=i,l.exports.__esModule=!0,l.exports.default=l.exports}),su=M((e,l)=>{B();var n=iu()();l.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),ou=M((e,l)=>{"use strict";B();var n=(i,...s)=>new Promise(f=>{f(i(...s))});l.exports=n,l.exports.default=n}),au=M((e,l)=>{"use strict";B();var n=ou(),i=s=>{if(!((Number.isInteger(s)||s===1/0)&&s>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let f=[],a=0,r=()=>{a--,f.length>0&&f.shift()()},t=(c,o,...d)=>{a++;let p=n(c,...d);o(p),p.then(r,r)},h=(c,o,...d)=>{a<s?t(c,o,...d):f.push(t.bind(null,c,o,...d))},u=(c,...o)=>new Promise(d=>h(c,d,...o));return Object.defineProperties(u,{activeCount:{get:()=>a},pendingCount:{get:()=>f.length},clearQueue:{value:()=>{f.length=0}}}),u};l.exports=i,l.exports.default=i}),uu=M((e,l)=>{"use strict";B();var n=au(),i=class extends Error{constructor(r){super(),this.value=r}},s=async(r,t)=>t(await r),f=async r=>{let t=await Promise.all(r);if(t[1]===!0)throw new i(t[0]);return!1},a=async(r,t,h)=>{h={concurrency:1/0,preserveOrder:!0,...h};let u=n(h.concurrency),c=[...r].map(d=>[d,u(s,d,t)]),o=n(h.preserveOrder?1:1/0);try{await Promise.all(c.map(d=>o(f,d)))}catch(d){if(d instanceof i)return d.value;throw d}};l.exports=a,l.exports.default=a}),lu=M((e,l)=>{"use strict";B();var n=Z("path"),i=Z("fs"),{promisify:s}=Z("util"),f=uu(),a=s(i.stat),r=s(i.lstat),t={directory:"isDirectory",file:"isFile"};function h({type:c}){if(!(c in t))throw new Error(`Invalid type specified: ${c}`)}var u=(c,o)=>c===void 0||o[t[c]]();l.exports=async(c,o)=>{o={cwd:process.cwd(),type:"file",allowSymlinks:!0,...o},h(o);let d=o.allowSymlinks?a:r;return f(c,async p=>{try{let g=await d(n.resolve(o.cwd,p));return u(o.type,g)}catch{return!1}},o)},l.exports.sync=(c,o)=>{o={cwd:process.cwd(),allowSymlinks:!0,type:"file",...o},h(o);let d=o.allowSymlinks?i.statSync:i.lstatSync;for(let p of c)try{let g=d(n.resolve(o.cwd,p));if(u(o.type,g))return p}catch{}}}),cu=M((e,l)=>{"use strict";B();var n=Z("fs"),{promisify:i}=Z("util"),s=i(n.access);l.exports=async f=>{try{return await s(f),!0}catch{return!1}},l.exports.sync=f=>{try{return n.accessSync(f),!0}catch{return!1}}}),hu=M((e,l)=>{"use strict";B();var n=Z("path"),i=lu(),s=cu(),f=Symbol("findUp.stop");l.exports=async(a,r={})=>{let t=n.resolve(r.cwd||""),{root:h}=n.parse(t),u=[].concat(a),c=async o=>{if(typeof a!="function")return i(u,o);let d=await a(o.cwd);return typeof d=="string"?i([d],o):d};for(;;){let o=await c({...r,cwd:t});if(o===f)return;if(o)return n.resolve(t,o);if(t===h)return;t=n.dirname(t)}},l.exports.sync=(a,r={})=>{let t=n.resolve(r.cwd||""),{root:h}=n.parse(t),u=[].concat(a),c=o=>{if(typeof a!="function")return i.sync(u,o);let d=a(o.cwd);return typeof d=="string"?i.sync([d],o):d};for(;;){let o=c({...r,cwd:t});if(o===f)return;if(o)return n.resolve(t,o);if(t===h)return;t=n.dirname(t)}},l.exports.exists=s,l.exports.sync.exists=s.sync,l.exports.stop=f}),Ue=M(e=>{"use strict";B(),e.fromCallback=function(l){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")l.apply(this,arguments);else return new Promise((n,i)=>{arguments[arguments.length]=(s,f)=>{if(s)return i(s);n(f)},arguments.length++,l.apply(this,arguments)})},"name",{value:l.name})},e.fromPromise=function(l){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return l.apply(this,arguments);l.apply(this,arguments).then(i=>n(null,i),n)},"name",{value:l.name})}}),Pn=M(e=>{"use strict";B();var l=Ue().fromCallback,n=we(),i=["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(s=>typeof n[s]=="function");Object.keys(n).forEach(s=>{s!=="promises"&&(e[s]=n[s])}),i.forEach(s=>{e[s]=l(n[s])}),e.exists=function(s,f){return typeof f=="function"?n.exists(s,f):new Promise(a=>n.exists(s,a))},e.read=function(s,f,a,r,t,h){return typeof h=="function"?n.read(s,f,a,r,t,h):new Promise((u,c)=>{n.read(s,f,a,r,t,(o,d,p)=>{if(o)return c(o);u({bytesRead:d,buffer:p})})})},e.write=function(s,f,...a){return typeof a[a.length-1]=="function"?n.write(s,f,...a):new Promise((r,t)=>{n.write(s,f,...a,(h,u,c)=>{if(h)return t(h);r({bytesWritten:u,buffer:c})})})},typeof n.realpath.native=="function"&&(e.realpath.native=l(n.realpath.native))}),Ln=M((e,l)=>{"use strict";B();var n=Z("path");function i(a){return a=n.normalize(n.resolve(a)).split(n.sep),a.length>0?a[0]:null}var s=/[<>:"|?*]/;function f(a){let r=i(a);return a=a.replace(r,""),s.test(a)}l.exports={getRootPath:i,invalidWin32Path:f}}),pu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ln().invalidWin32Path,f=parseInt("0777",8);function a(r,t,h,u){if(typeof t=="function"?(h=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&s(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",h(d)}let c=t.mode,o=t.fs||n;c===void 0&&(c=f&~process.umask()),u||(u=null),h=h||function(){},r=i.resolve(r),o.mkdir(r,c,d=>{if(!d)return u=u||r,h(null,u);switch(d.code){case"ENOENT":if(i.dirname(r)===r)return h(d);a(i.dirname(r),t,(p,g)=>{p?h(p,g):a(r,t,h,g)});break;default:o.stat(r,(p,g)=>{p||!g.isDirectory()?h(d,u):h(null,u)});break}})}l.exports=a}),fu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ln().invalidWin32Path,f=parseInt("0777",8);function a(r,t,h){(!t||typeof t!="object")&&(t={mode:t});let u=t.mode,c=t.fs||n;if(process.platform==="win32"&&s(r)){let o=new Error(r+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}u===void 0&&(u=f&~process.umask()),h||(h=null),r=i.resolve(r);try{c.mkdirSync(r,u),h=h||r}catch(o){if(o.code==="ENOENT"){if(i.dirname(r)===r)throw o;h=a(i.dirname(r),t,h),a(r,t,h)}else{let d;try{d=c.statSync(r)}catch{throw o}if(!d.isDirectory())throw o}}return h}l.exports=a}),Ge=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=n(pu()),s=fu();l.exports={mkdirs:i,mkdirsSync:s,mkdirp:i,mkdirpSync:s,ensureDir:i,ensureDirSync:s}}),In=M((e,l)=>{"use strict";B();var n=we(),i=Z("os"),s=Z("path");function f(){let u=s.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));u=s.join(i.tmpdir(),u);let c=new Date(1435410243862);n.writeFileSync(u,"https://github.com/jprichardson/node-fs-extra/pull/141");let o=n.openSync(u,"r+");return n.futimesSync(o,c,c),n.closeSync(o),n.statSync(u).mtime>1435410243e3}function a(u){let c=s.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));c=s.join(i.tmpdir(),c);let o=new Date(1435410243862);n.writeFile(c,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return u(d);n.open(c,"r+",(p,g)=>{if(p)return u(p);n.futimes(g,o,o,b=>{if(b)return u(b);n.close(g,_=>{if(_)return u(_);n.stat(c,(y,D)=>{if(y)return u(y);u(null,D.mtime>1435410243e3)})})})})})}function r(u){if(typeof u=="number")return Math.floor(u/1e3)*1e3;if(u instanceof Date)return new Date(Math.floor(u.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function t(u,c,o,d){n.open(u,"r+",(p,g)=>{if(p)return d(p);n.futimes(g,c,o,b=>{n.close(g,_=>{d&&d(b||_)})})})}function h(u,c,o){let d=n.openSync(u,"r+");return n.futimesSync(d,c,o),n.closeSync(d)}l.exports={hasMillisRes:a,hasMillisResSync:f,timeRemoveMillis:r,utimesMillis:t,utimesMillisSync:h}}),Vt=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=10,f=5,a=0,r=process.versions.node.split("."),t=Number.parseInt(r[0],10),h=Number.parseInt(r[1],10),u=Number.parseInt(r[2],10);function c(){return t>s||t===s&&(h>f||h===f&&u>=a)}function o(w,v,m){c()?n.stat(w,{bigint:!0},(E,S)=>{if(E)return m(E);n.stat(v,{bigint:!0},(A,k)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:k}))}):n.stat(w,(E,S)=>{if(E)return m(E);n.stat(v,(A,k)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:k}))})}function d(w,v){let m,E;c()?m=n.statSync(w,{bigint:!0}):m=n.statSync(w);try{c()?E=n.statSync(v,{bigint:!0}):E=n.statSync(v)}catch(S){if(S.code==="ENOENT")return{srcStat:m,destStat:null};throw S}return{srcStat:m,destStat:E}}function p(w,v,m,E){o(w,v,(S,A)=>{if(S)return E(S);let{srcStat:k,destStat:L}=A;return L&&L.ino&&L.dev&&L.ino===k.ino&&L.dev===k.dev?E(new Error("Source and destination must not be the same.")):k.isDirectory()&&y(w,v)?E(new Error(D(w,v,m))):E(null,{srcStat:k,destStat:L})})}function g(w,v,m){let{srcStat:E,destStat:S}=d(w,v);if(S&&S.ino&&S.dev&&S.ino===E.ino&&S.dev===E.dev)throw new Error("Source and destination must not be the same.");if(E.isDirectory()&&y(w,v))throw new Error(D(w,v,m));return{srcStat:E,destStat:S}}function b(w,v,m,E,S){let A=i.resolve(i.dirname(w)),k=i.resolve(i.dirname(m));if(k===A||k===i.parse(k).root)return S();c()?n.stat(k,{bigint:!0},(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,E))):b(w,v,k,E,S)):n.stat(k,(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,E))):b(w,v,k,E,S))}function _(w,v,m,E){let S=i.resolve(i.dirname(w)),A=i.resolve(i.dirname(m));if(A===S||A===i.parse(A).root)return;let k;try{c()?k=n.statSync(A,{bigint:!0}):k=n.statSync(A)}catch(L){if(L.code==="ENOENT")return;throw L}if(k.ino&&k.dev&&k.ino===v.ino&&k.dev===v.dev)throw new Error(D(w,m,E));return _(w,v,A,E)}function y(w,v){let m=i.resolve(w).split(i.sep).filter(S=>S),E=i.resolve(v).split(i.sep).filter(S=>S);return m.reduce((S,A,k)=>S&&E[k]===A,!0)}function D(w,v,m){return`Cannot ${m} '${w}' to a subdirectory of itself, '${v}'.`}l.exports={checkPaths:p,checkPathsSync:g,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:y}}),du=M((e,l)=>{"use strict";B(),l.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),mu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ge().mkdirsSync,f=In().utimesMillisSync,a=Vt();function r(v,m,E){typeof E=="function"&&(E={filter:E}),E=E||{},E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
35
35
|
|
|
36
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:S,destStat:A}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,S,m,"copy"),t(A,v,m,E)}function t(v,m,E,S){if(S.filter&&!S.filter(m,E))return;let A=i.dirname(E);return n.existsSync(A)||s(A),h(v,m,E,S)}function h(v,m,E,S){if(!(S.filter&&!S.filter(m,E)))return u(v,m,E,S)}function u(v,m,E,S){let A=(S.dereference?n.statSync:n.lstatSync)(m);if(A.isDirectory())return g(A,v,m,E,S);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return c(A,v,m,E,S);if(A.isSymbolicLink())return D(v,m,E,S)}function c(v,m,E,S,A){return m?o(v,E,S,A):d(v,E,S,A)}function o(v,m,E,S){if(S.overwrite)return n.unlinkSync(E),d(v,m,E,S);if(S.errorOnExist)throw new Error(`'${E}' already exists`)}function d(v,m,E,S){return typeof n.copyFileSync=="function"?(n.copyFileSync(m,E),n.chmodSync(E,v.mode),S.preserveTimestamps?f(E,v.atime,v.mtime):void 0):p(v,m,E,S)}function p(v,m,E,S){let A=du()(65536),
|
|
36
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:S,destStat:A}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,S,m,"copy"),t(A,v,m,E)}function t(v,m,E,S){if(S.filter&&!S.filter(m,E))return;let A=i.dirname(E);return n.existsSync(A)||s(A),h(v,m,E,S)}function h(v,m,E,S){if(!(S.filter&&!S.filter(m,E)))return u(v,m,E,S)}function u(v,m,E,S){let A=(S.dereference?n.statSync:n.lstatSync)(m);if(A.isDirectory())return g(A,v,m,E,S);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return c(A,v,m,E,S);if(A.isSymbolicLink())return D(v,m,E,S)}function c(v,m,E,S,A){return m?o(v,E,S,A):d(v,E,S,A)}function o(v,m,E,S){if(S.overwrite)return n.unlinkSync(E),d(v,m,E,S);if(S.errorOnExist)throw new Error(`'${E}' already exists`)}function d(v,m,E,S){return typeof n.copyFileSync=="function"?(n.copyFileSync(m,E),n.chmodSync(E,v.mode),S.preserveTimestamps?f(E,v.atime,v.mtime):void 0):p(v,m,E,S)}function p(v,m,E,S){let A=du()(65536),k=n.openSync(m,"r"),L=n.openSync(E,"w",v.mode),T=0;for(;T<v.size;){let x=n.readSync(k,A,0,65536,T);n.writeSync(L,A,0,x),T+=x}S.preserveTimestamps&&n.futimesSync(L,v.atime,v.mtime),n.closeSync(k),n.closeSync(L)}function g(v,m,E,S,A){if(!m)return b(v,E,S,A);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${S}' with directory '${E}'.`);return _(E,S,A)}function b(v,m,E,S){return n.mkdirSync(E),_(m,E,S),n.chmodSync(E,v.mode)}function _(v,m,E){n.readdirSync(v).forEach(S=>y(S,v,m,E))}function y(v,m,E,S){let A=i.join(m,v),k=i.join(E,v),{destStat:L}=a.checkPathsSync(A,k,"copy");return h(L,A,k,S)}function D(v,m,E,S){let A=n.readlinkSync(m);if(S.dereference&&(A=i.resolve(process.cwd(),A)),v){let k;try{k=n.readlinkSync(E)}catch(L){if(L.code==="EINVAL"||L.code==="UNKNOWN")return n.symlinkSync(A,E);throw L}if(S.dereference&&(k=i.resolve(process.cwd(),k)),a.isSrcSubdir(A,k))throw new Error(`Cannot copy '${A}' to a subdirectory of itself, '${k}'.`);if(n.statSync(E).isDirectory()&&a.isSrcSubdir(k,A))throw new Error(`Cannot overwrite '${k}' with '${A}'.`);return w(A,E)}else return n.symlinkSync(A,E)}function w(v,m){return n.unlinkSync(m),n.symlinkSync(v,m)}l.exports=r}),Mn=M((e,l)=>{"use strict";B(),l.exports={copySync:mu()}}),Ye=M((e,l)=>{"use strict";B();var n=Ue().fromPromise,i=Pn();function s(f){return i.access(f).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(s),pathExistsSync:i.existsSync}}),yu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ge().mkdirs,f=Ye().pathExists,a=In().utimesMillis,r=Vt();function t(A,k,L,T){typeof L=="function"&&!T?(T=L,L={}):typeof L=="function"&&(L={filter:L}),T=T||function(){},L=L||{},L.clobber="clobber"in L?!!L.clobber:!0,L.overwrite="overwrite"in L?!!L.overwrite:L.clobber,L.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
37
37
|
|
|
38
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,x,"copy",(k,O)=>{if(k)return T(k);let{srcStat:I,destStat:$}=O;r.checkParentPaths(A,I,x,"copy",R=>R?T(R):L.filter?u(h,$,A,x,L,T):h($,A,x,L,T))})}function h(A,x,L,T,k){let O=i.dirname(L);f(O,(I,$)=>{if(I)return k(I);if($)return c(A,x,L,T,k);s(O,R=>R?k(R):c(A,x,L,T,k))})}function u(A,x,L,T,k,O){Promise.resolve(k.filter(L,T)).then(I=>I?A(x,L,T,k,O):O(),I=>O(I))}function c(A,x,L,T,k){return T.filter?u(o,A,x,L,T,k):o(A,x,L,T,k)}function o(A,x,L,T,k){(T.dereference?n.stat:n.lstat)(x,(O,I)=>{if(O)return k(O);if(I.isDirectory())return y(I,A,x,L,T,k);if(I.isFile()||I.isCharacterDevice()||I.isBlockDevice())return d(I,A,x,L,T,k);if(I.isSymbolicLink())return E(A,x,L,T,k)})}function d(A,x,L,T,k,O){return x?p(A,L,T,k,O):g(A,L,T,k,O)}function p(A,x,L,T,k){if(T.overwrite)n.unlink(L,O=>O?k(O):g(A,x,L,T,k));else return T.errorOnExist?k(new Error(`'${L}' already exists`)):k()}function g(A,x,L,T,k){return typeof n.copyFile=="function"?n.copyFile(x,L,O=>O?k(O):_(A,L,T,k)):b(A,x,L,T,k)}function b(A,x,L,T,k){let O=n.createReadStream(x);O.on("error",I=>k(I)).once("open",()=>{let I=n.createWriteStream(L,{mode:A.mode});I.on("error",$=>k($)).on("open",()=>O.pipe(I)).once("close",()=>_(A,L,T,k))})}function _(A,x,L,T){n.chmod(x,A.mode,k=>k?T(k):L.preserveTimestamps?a(x,A.atime,A.mtime,T):T())}function y(A,x,L,T,k,O){return x?x&&!x.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${L}'.`)):w(L,T,k,O):D(A,L,T,k,O)}function D(A,x,L,T,k){n.mkdir(L,O=>{if(O)return k(O);w(x,L,T,I=>I?k(I):n.chmod(L,A.mode,k))})}function w(A,x,L,T){n.readdir(A,(k,O)=>k?T(k):v(O,A,x,L,T))}function v(A,x,L,T,k){let O=A.pop();return O?m(A,O,x,L,T,k):k()}function m(A,x,L,T,k,O){let I=i.join(L,x),$=i.join(T,x);r.checkPaths(I,$,"copy",(R,G)=>{if(R)return O(R);let{destStat:W}=G;c(W,I,$,k,Q=>Q?O(Q):v(A,L,T,k,O))})}function E(A,x,L,T,k){n.readlink(x,(O,I)=>{if(O)return k(O);if(T.dereference&&(I=i.resolve(process.cwd(),I)),A)n.readlink(L,($,R)=>$?$.code==="EINVAL"||$.code==="UNKNOWN"?n.symlink(I,L,k):k($):(T.dereference&&(R=i.resolve(process.cwd(),R)),r.isSrcSubdir(I,R)?k(new Error(`Cannot copy '${I}' to a subdirectory of itself, '${R}'.`)):A.isDirectory()&&r.isSrcSubdir(R,I)?k(new Error(`Cannot overwrite '${R}' with '${I}'.`)):S(I,L,k)));else return n.symlink(I,L,k)})}function S(A,x,L){n.unlink(x,T=>T?L(T):n.symlink(A,x,L))}l.exports=t}),jn=M((e,l)=>{"use strict";B();var n=Ue().fromCallback;l.exports={copy:n(yu())}}),gu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Z("assert"),f=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||n[_],_=_+"Sync",b[_]=b[_]||n[_]}),b.maxBusyTries=b.maxBusyTries||3}function r(b,_,y){let D=0;typeof _=="function"&&(y=_,_={}),s(b,"rimraf: missing path"),s.strictEqual(typeof b,"string","rimraf: path should be a string"),s.strictEqual(typeof y,"function","rimraf: callback function required"),s(_,"rimraf: invalid options argument provided"),s.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),t(b,_,function w(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&D<_.maxBusyTries){D++;let m=D*100;return setTimeout(()=>t(b,_,w),m)}v.code==="ENOENT"&&(v=null)}y(v)})}function t(b,_,y){s(b),s(_),s(typeof y=="function"),_.lstat(b,(D,w)=>{if(D&&D.code==="ENOENT")return y(null);if(D&&D.code==="EPERM"&&f)return h(b,_,D,y);if(w&&w.isDirectory())return c(b,_,D,y);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return y(null);if(v.code==="EPERM")return f?h(b,_,v,y):c(b,_,v,y);if(v.code==="EISDIR")return c(b,_,v,y)}return y(v)})})}function h(b,_,y,D){s(b),s(_),s(typeof D=="function"),y&&s(y instanceof Error),_.chmod(b,438,w=>{w?D(w.code==="ENOENT"?null:y):_.stat(b,(v,m)=>{v?D(v.code==="ENOENT"?null:y):m.isDirectory()?c(b,_,y,D):_.unlink(b,D)})})}function u(b,_,y){let D;s(b),s(_),y&&s(y instanceof Error);try{_.chmodSync(b,438)}catch(w){if(w.code==="ENOENT")return;throw y}try{D=_.statSync(b)}catch(w){if(w.code==="ENOENT")return;throw y}D.isDirectory()?p(b,_,y):_.unlinkSync(b)}function c(b,_,y,D){s(b),s(_),y&&s(y instanceof Error),s(typeof D=="function"),_.rmdir(b,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?o(b,_,D):w&&w.code==="ENOTDIR"?D(y):D(w)})}function o(b,_,y){s(b),s(_),s(typeof y=="function"),_.readdir(b,(D,w)=>{if(D)return y(D);let v=w.length,m;if(v===0)return _.rmdir(b,y);w.forEach(E=>{r(i.join(b,E),_,S=>{if(!m){if(S)return y(m=S);--v===0&&_.rmdir(b,y)}})})})}function d(b,_){let y;_=_||{},a(_),s(b,"rimraf: missing path"),s.strictEqual(typeof b,"string","rimraf: path should be a string"),s(_,"rimraf: missing options"),s.strictEqual(typeof _,"object","rimraf: options should be object");try{y=_.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&f&&u(b,_,D)}try{y&&y.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return f?u(b,_,D):p(b,_,D);if(D.code!=="EISDIR")throw D;p(b,_,D)}}function p(b,_,y){s(b),s(_),y&&s(y instanceof Error);try{_.rmdirSync(b)}catch(D){if(D.code==="ENOTDIR")throw y;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")g(b,_);else if(D.code!=="ENOENT")throw D}}function g(b,_){if(s(b),s(_),_.readdirSync(b).forEach(y=>d(i.join(b,y),_)),f){let y=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-y<500)}else return _.rmdirSync(b,_)}l.exports=r,r.sync=d}),Kt=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=gu();l.exports={remove:n(i),removeSync:i.sync}}),bu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=we(),s=Z("path"),f=Ge(),a=Kt(),r=n(function(h,u){u=u||function(){},i.readdir(h,(c,o)=>{if(c)return f.mkdirs(h,u);o=o.map(p=>s.join(h,p)),d();function d(){let p=o.pop();if(!p)return u();a.remove(p,g=>{if(g)return u(g);d()})}})});function t(h){let u;try{u=i.readdirSync(h)}catch{return f.mkdirsSync(h)}u.forEach(c=>{c=s.join(h,c),a.removeSync(c)})}l.exports={emptyDirSync:t,emptydirSync:t,emptyDir:r,emptydir:r}}),vu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=Ye().pathExists;function r(h,u){function c(){s.writeFile(h,"",o=>{if(o)return u(o);u()})}s.stat(h,(o,d)=>{if(!o&&d.isFile())return u();let p=i.dirname(h);a(p,(g,b)=>{if(g)return u(g);if(b)return c();f.mkdirs(p,_=>{if(_)return u(_);c()})})})}function t(h){let u;try{u=s.statSync(h)}catch{}if(u&&u.isFile())return;let c=i.dirname(h);s.existsSync(c)||f.mkdirsSync(c),s.writeFileSync(h,"")}l.exports={createFile:n(r),createFileSync:t}}),_u=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=Ye().pathExists;function r(h,u,c){function o(d,p){s.link(d,p,g=>{if(g)return c(g);c(null)})}a(u,(d,p)=>{if(d)return c(d);if(p)return c(null);s.lstat(h,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),c(g);let b=i.dirname(u);a(b,(_,y)=>{if(_)return c(_);if(y)return o(h,u);f.mkdirs(b,D=>{if(D)return c(D);o(h,u)})})})})}function t(h,u){if(s.existsSync(u))return;try{s.lstatSync(h)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let c=i.dirname(u);return s.existsSync(c)||f.mkdirsSync(c),s.linkSync(h,u)}l.exports={createLink:n(r),createLinkSync:t}}),Eu=M((e,l)=>{"use strict";B();var n=Z("path"),i=we(),s=Ye().pathExists;function f(r,t,h){if(n.isAbsolute(r))return i.lstat(r,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),h(u)):h(null,{toCwd:r,toDst:r}));{let u=n.dirname(t),c=n.join(u,r);return s(c,(o,d)=>o?h(o):d?h(null,{toCwd:c,toDst:r}):i.lstat(r,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),h(p)):h(null,{toCwd:r,toDst:n.relative(u,r)})))}}function a(r,t){let h;if(n.isAbsolute(r)){if(h=i.existsSync(r),!h)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let u=n.dirname(t),c=n.join(u,r);if(h=i.existsSync(c),h)return{toCwd:c,toDst:r};if(h=i.existsSync(r),!h)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(u,r)}}}l.exports={symlinkPaths:f,symlinkPathsSync:a}}),wu=M((e,l)=>{"use strict";B();var n=we();function i(f,a,r){if(r=typeof a=="function"?a:r,a=typeof a=="function"?!1:a,a)return r(null,a);n.lstat(f,(t,h)=>{if(t)return r(null,"file");a=h&&h.isDirectory()?"dir":"file",r(null,a)})}function s(f,a){let r;if(a)return a;try{r=n.lstatSync(f)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:i,symlinkTypeSync:s}}),Du=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=f.mkdirs,r=f.mkdirsSync,t=Eu(),h=t.symlinkPaths,u=t.symlinkPathsSync,c=wu(),o=c.symlinkType,d=c.symlinkTypeSync,p=Ye().pathExists;function g(_,y,D,w){w=typeof D=="function"?D:w,D=typeof D=="function"?!1:D,p(y,(v,m)=>{if(v)return w(v);if(m)return w(null);h(_,y,(E,S)=>{if(E)return w(E);_=S.toDst,o(S.toCwd,D,(A,x)=>{if(A)return w(A);let L=i.dirname(y);p(L,(T,k)=>{if(T)return w(T);if(k)return s.symlink(_,y,x,w);a(L,O=>{if(O)return w(O);s.symlink(_,y,x,w)})})})})})}function b(_,y,D){if(s.existsSync(y))return;let w=u(_,y);_=w.toDst,D=d(w.toCwd,D);let v=i.dirname(y);return s.existsSync(v)||r(v),s.symlinkSync(_,y,D)}l.exports={createSymlink:n(g),createSymlinkSync:b}}),Su=M((e,l)=>{"use strict";B();var n=vu(),i=_u(),s=Du();l.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}}),Au=M((e,l)=>{B();var n;try{n=we()}catch{n=Z("fs")}function i(u,c,o){o==null&&(o=c,c={}),typeof c=="string"&&(c={encoding:c}),c=c||{};var d=c.fs||n,p=!0;"throws"in c&&(p=c.throws),d.readFile(u,c,function(g,b){if(g)return o(g);b=t(b);var _;try{_=JSON.parse(b,c?c.reviver:null)}catch(y){return p?(y.message=u+": "+y.message,o(y)):o(null,null)}o(null,_)})}function s(u,c){c=c||{},typeof c=="string"&&(c={encoding:c});var o=c.fs||n,d=!0;"throws"in c&&(d=c.throws);try{var p=o.readFileSync(u,c);return p=t(p),JSON.parse(p,c.reviver)}catch(g){if(d)throw g.message=u+": "+g.message,g;return null}}function f(u,c){var o,d=`
|
|
39
|
-
`;typeof c=="object"&&c!==null&&(c.spaces&&(o=c.spaces),c.EOL&&(d=c.EOL));var p=JSON.stringify(u,c?c.replacer:null,o);return p.replace(/\n/g,d)+d}function a(u,c,o,d){d==null&&(d=o,o={}),o=o||{};var p=o.fs||n,g="";try{g=f(c,o)}catch(b){d&&d(b,null);return}p.writeFile(u,g,o,d)}function r(u,c,o){o=o||{};var d=o.fs||n,p=f(c,o);return d.writeFileSync(u,p,o)}function t(u){return Buffer.isBuffer(u)&&(u=u.toString("utf8")),u=u.replace(/^\uFEFF/,""),u}var h={readFile:i,readFileSync:s,writeFile:a,writeFileSync:r};l.exports=h}),Dr=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Au();l.exports={readJson:n(i.readFile),readJsonSync:i.readFileSync,writeJson:n(i.writeFile),writeJsonSync:i.writeFileSync}}),Cu=M((e,l)=>{"use strict";B();var n=Z("path"),i=Ge(),s=Ye().pathExists,f=Dr();function a(r,t,h,u){typeof h=="function"&&(u=h,h={});let c=n.dirname(r);s(c,(o,d)=>{if(o)return u(o);if(d)return f.writeJson(r,t,h,u);i.mkdirs(c,p=>{if(p)return u(p);f.writeJson(r,t,h,u)})})}l.exports=a}),xu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ge(),f=Dr();function a(r,t,h){let u=i.dirname(r);n.existsSync(u)||s.mkdirsSync(u),f.writeJsonSync(r,t,h)}l.exports=a}),ku=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Dr();i.outputJson=n(Cu()),i.outputJsonSync=xu(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,l.exports=i}),Fu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Mn().copySync,f=Kt().removeSync,a=Ge().mkdirpSync,r=Vt();function t(o,d,p){p=p||{};let g=p.overwrite||p.clobber||!1,{srcStat:b}=r.checkPathsSync(o,d,"move");return r.checkParentPathsSync(o,b,d,"move"),a(i.dirname(d)),h(o,d,g)}function h(o,d,p){if(p)return f(d),u(o,d,p);if(n.existsSync(d))throw new Error("dest already exists.");return u(o,d,p)}function u(o,d,p){try{n.renameSync(o,d)}catch(g){if(g.code!=="EXDEV")throw g;return c(o,d,p)}}function c(o,d,p){return s(o,d,{overwrite:p,errorOnExist:!0}),f(o)}l.exports=t}),Ou=M((e,l)=>{"use strict";B(),l.exports={moveSync:Fu()}}),Ru=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=jn().copy,f=Kt().remove,a=Ge().mkdirp,r=Ye().pathExists,t=Vt();function h(d,p,g,b){typeof g=="function"&&(b=g,g={});let _=g.overwrite||g.clobber||!1;t.checkPaths(d,p,"move",(y,D)=>{if(y)return b(y);let{srcStat:w}=D;t.checkParentPaths(d,w,p,"move",v=>{if(v)return b(v);a(i.dirname(p),m=>m?b(m):u(d,p,_,b))})})}function u(d,p,g,b){if(g)return f(p,_=>_?b(_):c(d,p,g,b));r(p,(_,y)=>_?b(_):y?b(new Error("dest already exists.")):c(d,p,g,b))}function c(d,p,g,b){n.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):o(d,p,g,b):b())}function o(d,p,g,b){s(d,p,{overwrite:g,errorOnExist:!0},_=>_?b(_):f(d,b))}l.exports=h}),Tu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback;l.exports={move:n(Ru())}}),Bu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=we(),s=Z("path"),f=Ge(),a=Ye().pathExists;function r(h,u,c,o){typeof c=="function"&&(o=c,c="utf8");let d=s.dirname(h);a(d,(p,g)=>{if(p)return o(p);if(g)return i.writeFile(h,u,c,o);f.mkdirs(d,b=>{if(b)return o(b);i.writeFile(h,u,c,o)})})}function t(h,...u){let c=s.dirname(h);if(i.existsSync(c))return i.writeFileSync(h,...u);f.mkdirsSync(c),i.writeFileSync(h,...u)}l.exports={outputFile:n(r),outputFileSync:t}}),Pu=M((e,l)=>{"use strict";B(),l.exports=Object.assign({},Pn(),Mn(),jn(),bu(),Su(),ku(),Ge(),Ou(),Tu(),Bu(),Ye(),Kt());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(l.exports,"promises",{get(){return n.promises}})});B();B();var m0=ke(su());B();B();function Lu(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}B();B();function Er(e){return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Er(e)}B();function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mu(e,l){if(l&&(Er(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iu(e)}B();function Wt(e){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},Wt(e)}B();B();function Ot(e,l){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ot(e,l)}function ju(e,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),l&&Ot(e,l)}B();B();function Nu(e){return Function.toString.call(e).indexOf("[native code]")!==-1}B();B();function $u(){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 zt(e,l,n){return $u()?zt=Reflect.construct.bind():zt=function(i,s,f){var a=[null];a.push.apply(a,s);var r=Function.bind.apply(i,a),t=new r;return f&&Ot(t,f.prototype),t},zt.apply(null,arguments)}function wr(e){var l=typeof Map=="function"?new Map:void 0;return wr=function(n){if(n===null||!Nu(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l<"u"){if(l.has(n))return l.get(n);l.set(n,i)}function i(){return zt(n,arguments,Wt(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ot(i,n)},wr(e)}var y0=ke(hu()),g0=ke(Pu()),b0=function(e){ju(l,e);function l(n){var i;return Lu(this,l),i=Mu(this,Wt(l).call(this,"No package.json could be found upwards from the directory ".concat(n))),i.directory=n,i}return l}(wr(Error));B();var Uu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function l(i){return i.reduce((s,f)=>[].concat(s,f),[])}e.flatten=l;function n(i,s){let f=[[]],a=0;for(let r of i)s(r)?(a++,f[a]=[]):f[a].push(r);return f}e.splitWhen=n}),Gu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function l(n){return n.code==="ENOENT"}e.isEnoentCodeError=l}),qu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var l=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function n(i,s){return new l(i,s)}e.createDirentFromStats=n}),zu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var l=Z("path"),n=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function s(t){return t.replace(/\\/g,"/")}e.unixify=s;function f(t,h){return l.resolve(t,h)}e.makeAbsolute=f;function a(t){return t.replace(i,"\\$2")}e.escape=a;function r(t){if(t.charAt(0)==="."){let h=t.charAt(1);if(h==="/"||h==="\\")return t.slice(n)}return t}e.removeLeadingDotSegment=r}),Wu=M((e,l)=>{B(),l.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}),Vu=M((e,l)=>{B();var n=Wu(),i={"{":"}","(":")","[":"]"},s=function(a){if(a[0]==="!")return!0;for(var r=0,t=-2,h=-2,u=-2,c=-2,o=-2;r<a.length;){if(a[r]==="*"||a[r+1]==="?"&&/[\].+)]/.test(a[r])||h!==-1&&a[r]==="["&&a[r+1]!=="]"&&(h<r&&(h=a.indexOf("]",r)),h>r&&(o===-1||o>h||(o=a.indexOf("\\",r),o===-1||o>h)))||u!==-1&&a[r]==="{"&&a[r+1]!=="}"&&(u=a.indexOf("}",r),u>r&&(o=a.indexOf("\\",r),o===-1||o>u))||c!==-1&&a[r]==="("&&a[r+1]==="?"&&/[:!=]/.test(a[r+2])&&a[r+3]!==")"&&(c=a.indexOf(")",r),c>r&&(o=a.indexOf("\\",r),o===-1||o>c))||t!==-1&&a[r]==="("&&a[r+1]!=="|"&&(t<r&&(t=a.indexOf("|",r)),t!==-1&&a[t+1]!==")"&&(c=a.indexOf(")",t),c>t&&(o=a.indexOf("\\",t),o===-1||o>c))))return!0;if(a[r]==="\\"){var d=a[r+1];r+=2;var p=i[d];if(p){var g=a.indexOf(p,r);g!==-1&&(r=g+1)}if(a[r]==="!")return!0}else r++}return!1},f=function(a){if(a[0]==="!")return!0;for(var r=0;r<a.length;){if(/[*?{}()[\]]/.test(a[r]))return!0;if(a[r]==="\\"){var t=a[r+1];r+=2;var h=i[t];if(h){var u=a.indexOf(h,r);u!==-1&&(r=u+1)}if(a[r]==="!")return!0}else r++}return!1};l.exports=function(a,r){if(typeof a!="string"||a==="")return!1;if(n(a))return!0;var t=s;return r&&r.strict===!1&&(t=f),t(a)}}),Ku=M((e,l)=>{"use strict";B();var n=Vu(),i=Z("path").posix.dirname,s=Z("os").platform()==="win32",f="/",a=/\\/g,r=/[\{\[].*[\}\]]$/,t=/(^|[^\\])([\{\[]|\([^\)]+$)/,h=/\\([\!\*\?\|\[\]\(\)\{\}])/g;l.exports=function(u,c){var o=Object.assign({flipBackslashes:!0},c);o.flipBackslashes&&s&&u.indexOf(f)<0&&(u=u.replace(a,f)),r.test(u)&&(u+=f),u+="a";do u=i(u);while(n(u)||t.test(u));return u.replace(h,"$1")}}),Tr=M(e=>{"use strict";B(),e.isInteger=l=>typeof l=="number"?Number.isInteger(l):typeof l=="string"&&l.trim()!==""?Number.isInteger(Number(l)):!1,e.find=(l,n)=>l.nodes.find(i=>i.type===n),e.exceedsLimit=(l,n,i=1,s)=>s===!1||!e.isInteger(l)||!e.isInteger(n)?!1:(Number(n)-Number(l))/Number(i)>=s,e.escapeNode=(l,n=0,i)=>{let s=l.nodes[n];!s||(i&&s.type===i||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},e.encloseBrace=l=>l.type!=="brace"?!1:l.commas>>0+l.ranges>>0===0?(l.invalid=!0,!0):!1,e.isInvalidBrace=l=>l.type!=="brace"?!1:l.invalid===!0||l.dollar?!0:l.commas>>0+l.ranges>>0===0||l.open!==!0||l.close!==!0?(l.invalid=!0,!0):!1,e.isOpenOrClose=l=>l.type==="open"||l.type==="close"?!0:l.open===!0||l.close===!0,e.reduce=l=>l.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]),e.flatten=(...l)=>{let n=[],i=s=>{for(let f=0;f<s.length;f++){let a=s[f];Array.isArray(a)?i(a,n):a!==void 0&&n.push(a)}return n};return i(l),n}}),Br=M((e,l)=>{"use strict";B();var n=Tr();l.exports=(i,s={})=>{let f=(a,r={})=>{let t=s.escapeInvalid&&n.isInvalidBrace(r),h=a.invalid===!0&&s.escapeInvalid===!0,u="";if(a.value)return(t||h)&&n.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let c of a.nodes)u+=f(c);return u};return f(i)}}),Yu=M((e,l)=>{"use strict";B(),l.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),Ju=M((e,l)=>{"use strict";B();var n=Yu(),i=(y,D,w)=>{if(n(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||y===D)return String(y);if(n(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...w};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),E=String(v.shorthand),S=String(v.capture),A=String(v.wrap),x=y+":"+D+"="+m+E+S+A;if(i.cache.hasOwnProperty(x))return i.cache[x].result;let L=Math.min(y,D),T=Math.max(y,D);if(Math.abs(L-T)===1){let R=y+"|"+D;return v.capture?`(${R})`:v.wrap===!1?R:`(?:${R})`}let k=b(y)||b(D),O={min:y,max:D,a:L,b:T},I=[],$=[];if(k&&(O.isPadded=k,O.maxLen=String(O.max).length),L<0){let R=T<0?Math.abs(T):1;$=r(R,Math.abs(L),O,v),L=O.a=0}return T>=0&&(I=r(L,T,O,v)),O.negatives=$,O.positives=I,O.result=s($,I,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&I.length+$.length>1&&(O.result=`(?:${O.result})`),i.cache[x]=O,O.result};function s(y,D,w){let v=t(y,D,"-",!1,w)||[],m=t(D,y,"",!1,w)||[],E=t(y,D,"-?",!0,w)||[];return v.concat(E).concat(m).join("|")}function f(y,D){let w=1,v=1,m=o(y,w),E=new Set([D]);for(;y<=m&&m<=D;)E.add(m),w+=1,m=o(y,w);for(m=d(D+1,v)-1;y<m&&m<=D;)E.add(m),v+=1,m=d(D+1,v)-1;return E=[...E],E.sort(u),E}function a(y,D,w){if(y===D)return{pattern:y,count:[],digits:0};let v=h(y,D),m=v.length,E="",S=0;for(let A=0;A<m;A++){let[x,L]=v[A];x===L?E+=x:x!=="0"||L!=="9"?E+=g(x,L,w):S++}return S&&(E+=w.shorthand===!0?"\\d":"[0-9]"),{pattern:E,count:[S],digits:m}}function r(y,D,w,v){let m=f(y,D),E=[],S=y,A;for(let x=0;x<m.length;x++){let L=m[x],T=a(String(S),String(L),v),k="";if(!w.isPadded&&A&&A.pattern===T.pattern){A.count.length>1&&A.count.pop(),A.count.push(T.count[0]),A.string=A.pattern+p(A.count),S=L+1;continue}w.isPadded&&(k=_(L,w,v)),T.string=k+T.pattern+p(T.count),E.push(T),S=L+1,A=T}return E}function t(y,D,w,v,m){let E=[];for(let S of y){let{string:A}=S;!v&&!c(D,"string",A)&&E.push(w+A),v&&c(D,"string",A)&&E.push(w+A)}return E}function h(y,D){let w=[];for(let v=0;v<y.length;v++)w.push([y[v],D[v]]);return w}function u(y,D){return y>D?1:D>y?-1:0}function c(y,D,w){return y.some(v=>v[D]===w)}function o(y,D){return Number(String(y).slice(0,-D)+"9".repeat(D))}function d(y,D){return y-y%Math.pow(10,D)}function p(y){let[D=0,w=""]=y;return w||D>1?`{${D+(w?","+w:"")}}`:""}function g(y,D,w){return`[${y}${D-y===1?"":"-"}${D}]`}function b(y){return/^-?(0+)\d/.test(y)}function _(y,D,w){if(!D.isPadded)return y;let v=Math.abs(D.maxLen-String(y).length),m=w.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}}`}}i.cache={},i.clearCache=()=>i.cache={},l.exports=i}),ei=M((e,l)=>{"use strict";B();var n=Z("util"),i=Ju(),s=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),f=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),t=v=>{let m=`${v}`,E=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++E]==="0";);return E>0},h=(v,m,E)=>typeof v=="string"||typeof m=="string"?!0:E.stringify===!0,u=(v,m,E)=>{if(m>0){let S=v[0]==="-"?"-":"";S&&(v=v.slice(1)),v=S+v.padStart(S?m-1:m,"0")}return E===!1?String(v):v},c=(v,m)=>{let E=v[0]==="-"?"-":"";for(E&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return E?"-"+v:v},o=(v,m)=>{v.negatives.sort((L,T)=>L<T?-1:L>T?1:0),v.positives.sort((L,T)=>L<T?-1:L>T?1:0);let E=m.capture?"":"?:",S="",A="",x;return v.positives.length&&(S=v.positives.join("|")),v.negatives.length&&(A=`-(${E}${v.negatives.join("|")})`),S&&A?x=`${S}|${A}`:x=S||A,m.wrap?`(${E}${x})`:x},d=(v,m,E,S)=>{if(E)return i(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let x=String.fromCharCode(m);return`[${A}-${x}]`},p=(v,m,E)=>{if(Array.isArray(v)){let S=E.wrap===!0,A=E.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return i(v,m,E)},g=(...v)=>new RangeError("Invalid range arguments: "+n.inspect(...v)),b=(v,m,E)=>{if(E.strictRanges===!0)throw g([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},y=(v,m,E=1,S={})=>{let A=Number(v),x=Number(m);if(!Number.isInteger(A)||!Number.isInteger(x)){if(S.strictRanges===!0)throw g([v,m]);return[]}A===0&&(A=0),x===0&&(x=0);let L=A>x,T=String(v),k=String(m),O=String(E);E=Math.max(Math.abs(E),1);let I=t(T)||t(k)||t(O),$=I?Math.max(T.length,k.length,O.length):0,R=I===!1&&h(v,m,S)===!1,G=S.transform||f(R);if(S.toRegex&&E===1)return d(c(v,$),c(m,$),!0,S);let W={negatives:[],positives:[]},Q=F=>W[F<0?"negatives":"positives"].push(Math.abs(F)),P=[],j=0;for(;L?A>=x:A<=x;)S.toRegex===!0&&E>1?Q(A):P.push(u(G(A,j),$,R)),A=L?A-E:A+E,j++;return S.toRegex===!0?E>1?o(W,S):p(P,null,{wrap:!1,...S}):P},D=(v,m,E=1,S={})=>{if(!r(v)&&v.length>1||!r(m)&&m.length>1)return b(v,m,S);let A=S.transform||(R=>String.fromCharCode(R)),x=`${v}`.charCodeAt(0),L=`${m}`.charCodeAt(0),T=x>L,k=Math.min(x,L),O=Math.max(x,L);if(S.toRegex&&E===1)return d(k,O,!1,S);let I=[],$=0;for(;T?x>=L:x<=L;)I.push(A(x,$)),x=T?x-E:x+E,$++;return S.toRegex===!0?p(I,null,{wrap:!1,options:S}):I},w=(v,m,E,S={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,S);if(typeof E=="function")return w(v,m,1,{transform:E});if(s(E))return w(v,m,0,E);let A={...S};return A.capture===!0&&(A.wrap=!0),E=E||A.step||1,r(E)?r(v)&&r(m)?y(v,m,E,A):D(v,m,Math.max(Math.abs(E),1),A):E!=null&&!s(E)?_(E,A):w(v,m,1,E)};l.exports=w}),Zu=M((e,l)=>{"use strict";B();var n=ei(),i=Tr(),s=(f,a={})=>{let r=(t,h={})=>{let u=i.isInvalidBrace(h),c=t.invalid===!0&&a.escapeInvalid===!0,o=u===!0||c===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(t.isOpen===!0||t.isClose===!0)return d+t.value;if(t.type==="open")return o?d+t.value:"(";if(t.type==="close")return o?d+t.value:")";if(t.type==="comma")return t.prev.type==="comma"?"":o?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){let g=i.reduce(t.nodes),b=n(...g,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return g.length>1&&b.length>1?`(${b})`:b}if(t.nodes)for(let g of t.nodes)p+=r(g,t);return p};return r(f)};l.exports=s}),Xu=M((e,l)=>{"use strict";B();var n=ei(),i=Br(),s=Tr(),f=(r="",t="",h=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return h?s.flatten(t).map(c=>`{${c}}`):t;for(let c of r)if(Array.isArray(c))for(let o of c)u.push(f(o,t,h));else for(let o of t)h===!0&&typeof o=="string"&&(o=`{${o}}`),u.push(Array.isArray(o)?f(c,o,h):c+o);return s.flatten(u)},a=(r,t={})=>{let h=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(c,o={})=>{c.queue=[];let d=o,p=o.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(c.invalid||c.dollar){p.push(f(p.pop(),i(c,t)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){p.push(f(p.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let y=s.reduce(c.nodes);if(s.exceedsLimit(...y,t.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...y,t);D.length===0&&(D=i(c,t)),p.push(f(p.pop(),D)),c.nodes=[];return}let g=s.encloseBrace(c),b=c.queue,_=c;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let y=0;y<c.nodes.length;y++){let D=c.nodes[y];if(D.type==="comma"&&c.type==="brace"){y===1&&b.push(""),b.push("");continue}if(D.type==="close"){p.push(f(p.pop(),b,g));continue}if(D.value&&D.type!=="open"){b.push(f(b.pop(),D.value));continue}D.nodes&&u(D,c)}return b};return s.flatten(u(r))};l.exports=a}),Qu=M((e,l)=>{"use strict";B(),l.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:`
|
|
40
|
-
`,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"}}),el=M((e,l)=>{"use strict";B();var n=Br(),{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:f,CHAR_COMMA:a,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:t,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Qu(),y=(D,w={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=w||{},m=typeof v.maxLength=="number"?Math.min(i,v.maxLength):i;if(D.length>m)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${m})`);let E={type:"root",input:D,nodes:[]},S=[E],A=E,x=E,L=0,T=D.length,k=0,O=0,I,$={},R=()=>D[k++],G=W=>{if(W.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&W.type==="text"){x.value+=W.value;return}return A.nodes.push(W),W.parent=A,W.prev=x,x=W,W};for(G({type:"bos"});k<T;)if(A=S[S.length-1],I=R(),!(I===_||I===b)){if(I===s){G({type:"text",value:(w.keepEscaping?I:"")+R()});continue}if(I===d){G({type:"text",value:"\\"+I});continue}if(I===o){L++;let W=!0,Q;for(;k<T&&(Q=R());){if(I+=Q,Q===o){L++;continue}if(Q===s){I+=R();continue}if(Q===d&&(L--,L===0))break}G({type:"text",value:I});continue}if(I===t){A=G({type:"paren",nodes:[]}),S.push(A),G({type:"text",value:I});continue}if(I===h){if(A.type!=="paren"){G({type:"text",value:I});continue}A=S.pop(),G({type:"text",value:I}),A=S[S.length-1];continue}if(I===p||I===g||I===f){let W=I,Q;for(w.keepQuotes!==!0&&(I="");k<T&&(Q=R());){if(Q===s){I+=Q+R();continue}if(Q===W){w.keepQuotes===!0&&(I+=Q);break}I+=Q}G({type:"text",value:I});continue}if(I===u){O++;let W=x.value&&x.value.slice(-1)==="$"||A.dollar===!0;A=G({type:"brace",open:!0,close:!1,dollar:W,depth:O,commas:0,ranges:0,nodes:[]}),S.push(A),G({type:"open",value:I});continue}if(I===c){if(A.type!=="brace"){G({type:"text",value:I});continue}let W="close";A=S.pop(),A.close=!0,G({type:W,value:I}),O--,A=S[S.length-1];continue}if(I===a&&O>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:n(A)}]}G({type:"comma",value:I}),A.commas++;continue}if(I===r&&O>0&&A.commas===0){let W=A.nodes;if(O===0||W.length===0){G({type:"text",value:I});continue}if(x.type==="dot"){if(A.range=[],x.value+=I,x.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,x.type="text";continue}A.ranges++,A.args=[];continue}if(x.type==="range"){W.pop();let Q=W[W.length-1];Q.value+=x.value+I,x=Q,A.ranges--;continue}G({type:"dot",value:I});continue}G({type:"text",value:I})}do if(A=S.pop(),A.type!=="root"){A.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let W=S[S.length-1],Q=W.nodes.indexOf(A);W.nodes.splice(Q,1,...A.nodes)}while(S.length>0);return G({type:"eos"}),E};l.exports=y}),tl=M((e,l)=>{"use strict";B();var n=Br(),i=Zu(),s=Xu(),f=el(),a=(r,t={})=>{let h=[];if(Array.isArray(r))for(let u of r){let c=a.create(u,t);Array.isArray(c)?h.push(...c):h.push(c)}else h=[].concat(a.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(h=[...new Set(h)]),h};a.parse=(r,t={})=>f(r,t),a.stringify=(r,t={})=>n(typeof r=="string"?a.parse(r,t):r,t),a.compile=(r,t={})=>(typeof r=="string"&&(r=a.parse(r,t)),i(r,t)),a.expand=(r,t={})=>{typeof r=="string"&&(r=a.parse(r,t));let h=s(r,t);return t.noempty===!0&&(h=h.filter(Boolean)),t.nodupes===!0&&(h=[...new Set(h)]),h},a.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?a.compile(r,t):a.expand(r,t),l.exports=a}),er=M((e,l)=>{"use strict";B();var n=Z("path"),i="\\\\/",s=`[^${i}]`,f="\\.",a="\\+",r="\\?",t="\\/",h="(?=.)",u="[^/]",c=`(?:${t}|$)`,o=`(?:^|${t})`,d=`${f}{1,2}${c}`,p=`(?!${f})`,g=`(?!${o}${d})`,b=`(?!${f}{0,1}${c})`,_=`(?!${d})`,y=`[^.${t}]`,D=`${u}*?`,w={DOT_LITERAL:f,PLUS_LITERAL:a,QMARK_LITERAL:r,SLASH_LITERAL:t,ONE_CHAR:h,QMARK:u,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:y,STAR:D,START_ANCHOR:o},v={...w,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${f}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${i}])${f}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},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"};l.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:n.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?v:w}}}),tr=M(e=>{"use strict";B();var l=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:a}=er();e.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),e.hasRegexChars=r=>f.test(r),e.isRegexChar=r=>r.length===1&&e.hasRegexChars(r),e.escapeRegex=r=>r.replace(a,"\\$1"),e.toPosixSlashes=r=>r.replace(i,"/"),e.removeBackslashes=r=>r.replace(s,t=>t==="\\"?"":t),e.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},e.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||l.sep==="\\",e.escapeLast=(r,t,h)=>{let u=r.lastIndexOf(t,h);return u===-1?r:r[u-1]==="\\"?e.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`},e.removePrefix=(r,t={})=>{let h=r;return h.startsWith("./")&&(h=h.slice(2),t.prefix="./"),h},e.wrapOutput=(r,t={},h={})=>{let u=h.contains?"":"^",c=h.contains?"":"$",o=`${u}(?:${r})${c}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}}),rl=M((e,l)=>{"use strict";B();var n=tr(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:a,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:t,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=er(),y=v=>v===h||v===f,D=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},w=(v,m)=>{let E=m||{},S=v.length-1,A=E.parts===!0||E.scanToEnd===!0,x=[],L=[],T=[],k=v,O=-1,I=0,$=0,R=!1,G=!1,W=!1,Q=!1,P=!1,j=!1,F=!1,J=!1,q=!1,ee=!1,N=0,K,te,se={value:"",depth:0,isGlob:!1},le=()=>O>=S,ye=()=>k.charCodeAt(O+1),de=()=>(K=te,k.charCodeAt(++O));for(;O<S;){te=de();let X;if(te===f){F=se.backslashes=!0,te=de(),te===u&&(j=!0);continue}if(j===!0||te===u){for(N++;le()!==!0&&(te=de());){if(te===f){F=se.backslashes=!0,de();continue}if(te===u){N++;continue}if(j!==!0&&te===r&&(te=de())===r){if(R=se.isBrace=!0,W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(j!==!0&&te===a){if(R=se.isBrace=!0,W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===g&&(N--,N===0)){j=!1,R=se.isBrace=!0,ee=!0;break}}if(A===!0)continue;break}if(te===h){if(x.push(O),L.push(se),se={value:"",depth:0,isGlob:!1},ee===!0)continue;if(K===r&&O===I+1){I+=2;continue}$=O+1;continue}if(E.noext!==!0&&(te===d||te===s||te===i||te===p||te===t)&&ye()===c){if(W=se.isGlob=!0,Q=se.isExtglob=!0,ee=!0,te===t&&O===I&&(q=!0),A===!0){for(;le()!==!0&&(te=de());){if(te===f){F=se.backslashes=!0,te=de();continue}if(te===b){W=se.isGlob=!0,ee=!0;break}}continue}break}if(te===i){if(K===i&&(P=se.isGlobstar=!0),W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===p){if(W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===o){for(;le()!==!0&&(X=de());){if(X===f){F=se.backslashes=!0,de();continue}if(X===_){G=se.isBracket=!0,W=se.isGlob=!0,ee=!0;break}}if(A===!0)continue;break}if(E.nonegate!==!0&&te===t&&O===I){J=se.negated=!0,I++;continue}if(E.noparen!==!0&&te===c){if(W=se.isGlob=!0,A===!0){for(;le()!==!0&&(te=de());){if(te===c){F=se.backslashes=!0,te=de();continue}if(te===b){ee=!0;break}}continue}break}if(W===!0){if(ee=!0,A===!0)continue;break}}E.noext===!0&&(Q=!1,W=!1);let H=k,V="",C="";I>0&&(V=k.slice(0,I),k=k.slice(I),$-=I),H&&W===!0&&$>0?(H=k.slice(0,$),C=k.slice($)):W===!0?(H="",C=k):H=k,H&&H!==""&&H!=="/"&&H!==k&&y(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),E.unescape===!0&&(C&&(C=n.removeBackslashes(C)),H&&F===!0&&(H=n.removeBackslashes(H)));let z={prefix:V,input:v,start:I,base:H,glob:C,isBrace:R,isBracket:G,isGlob:W,isExtglob:Q,isGlobstar:P,negated:J,negatedExtglob:q};if(E.tokens===!0&&(z.maxDepth=0,y(te)||L.push(se),z.tokens=L),E.parts===!0||E.tokens===!0){let X;for(let re=0;re<x.length;re++){let ce=X?X+1:I,ie=x[re],ue=v.slice(ce,ie);E.tokens&&(re===0&&I!==0?(L[re].isPrefix=!0,L[re].value=V):L[re].value=ue,D(L[re]),z.maxDepth+=L[re].depth),(re!==0||ue!=="")&&T.push(ue),X=ie}if(X&&X+1<v.length){let re=v.slice(X+1);T.push(re),E.tokens&&(L[L.length-1].value=re,D(L[L.length-1]),z.maxDepth+=L[L.length-1].depth)}z.slashes=x,z.parts=T}return z};l.exports=w}),nl=M((e,l)=>{"use strict";B();var n=er(),i=tr(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:t}=n,h=(o,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...o,d);o.sort();let p=`[${o.join("-")}]`;try{new RegExp(p)}catch{return o.map(g=>i.escapeRegex(g)).join("..")}return p},u=(o,d)=>`Missing ${o}: "${d}" - use "\\\\${d}" to match literal characters`,c=(o,d)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=t[o]||o;let p={...d},g=typeof p.maxLength=="number"?Math.min(s,p.maxLength):s,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);let _={type:"bos",value:"",output:p.prepend||""},y=[_],D=p.capture?"":"?:",w=i.isWindows(d),v=n.globChars(w),m=n.extglobChars(v),{DOT_LITERAL:E,PLUS_LITERAL:S,SLASH_LITERAL:A,ONE_CHAR:x,DOTS_SLASH:L,NO_DOT:T,NO_DOT_SLASH:k,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:$,STAR:R,START_ANCHOR:G}=v,W=ie=>`(${D}(?:(?!${G}${ie.dot?L:E}).)*?)`,Q=p.dot?"":T,P=p.dot?I:$,j=p.bash===!0?W(p):R;p.capture&&(j=`(${j})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let F={input:o,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:y};o=i.removePrefix(o,F),b=o.length;let J=[],q=[],ee=[],N=_,K,te=()=>F.index===b-1,se=F.peek=(ie=1)=>o[F.index+ie],le=F.advance=()=>o[++F.index]||"",ye=()=>o.slice(F.index+1),de=(ie="",ue=0)=>{F.consumed+=ie,F.index+=ue},H=ie=>{F.output+=ie.output!=null?ie.output:ie.value,de(ie.value)},V=()=>{let ie=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)le(),F.start++,ie++;return ie%2===0?!1:(F.negated=!0,F.start++,!0)},C=ie=>{F[ie]++,ee.push(ie)},z=ie=>{F[ie]--,ee.pop()},X=ie=>{if(N.type==="globstar"){let ue=F.braces>0&&(ie.type==="comma"||ie.type==="brace"),ne=ie.extglob===!0||J.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!ue&&!ne&&(F.output=F.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=j,F.output+=N.output)}if(J.length&&ie.type!=="paren"&&(J[J.length-1].inner+=ie.value),(ie.value||ie.output)&&H(ie),N&&N.type==="text"&&ie.type==="text"){N.value+=ie.value,N.output=(N.output||"")+ie.value;return}ie.prev=N,y.push(ie),N=ie},re=(ie,ue)=>{let ne={...m[ue],conditions:1,inner:""};ne.prev=N,ne.parens=F.parens,ne.output=F.output;let he=(p.capture?"(":"")+ne.open;C("parens"),X({type:ie,value:ue,output:F.output?"":x}),X({type:"paren",extglob:!0,value:le(),output:he}),J.push(ne)},ce=ie=>{let ue=ie.close+(p.capture?")":""),ne;if(ie.type==="negate"){let he=j;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(he=W(p)),(he!==j||te()||/^\)+$/.test(ye()))&&(ue=ie.close=`)$))${he}`),ie.inner.includes("*")&&(ne=ye())&&/^\.[^\\/.]+$/.test(ne)){let be=c(ne,{...d,fastpaths:!1}).output;ue=ie.close=`)${be})${he})`}ie.prev.type==="bos"&&(F.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:K,output:ue}),z("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let ie=!1,ue=o.replace(r,(ne,he,be,De,Y,U)=>De==="\\"?(ie=!0,ne):De==="?"?he?he+De+(Y?I.repeat(Y.length):""):U===0?P+(Y?I.repeat(Y.length):""):I.repeat(be.length):De==="."?E.repeat(be.length):De==="*"?he?he+De+(Y?j:""):j:he?ne:`\\${ne}`);return ie===!0&&(p.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),ue===o&&p.contains===!0?(F.output=o,F):(F.output=i.wrapOutput(ue,F,d),F)}for(;!te();){if(K=le(),K==="\0")continue;if(K==="\\"){let ne=se();if(ne==="/"&&p.bash!==!0||ne==="."||ne===";")continue;if(!ne){K+="\\",X({type:"text",value:K});continue}let he=/^\\+/.exec(ye()),be=0;if(he&&he[0].length>2&&(be=he[0].length,F.index+=be,be%2!==0&&(K+="\\")),p.unescape===!0?K=le():K+=le(),F.brackets===0){X({type:"text",value:K});continue}}if(F.brackets>0&&(K!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&K===":"){let ne=N.value.slice(1);if(ne.includes("[")&&(N.posix=!0,ne.includes(":"))){let he=N.value.lastIndexOf("["),be=N.value.slice(0,he),De=N.value.slice(he+2),Y=f[De];if(Y){N.value=be+Y,F.backtrack=!0,le(),!_.output&&y.indexOf(N)===1&&(_.output=x);continue}}}(K==="["&&se()!==":"||K==="-"&&se()==="]")&&(K=`\\${K}`),K==="]"&&(N.value==="["||N.value==="[^")&&(K=`\\${K}`),p.posix===!0&&K==="!"&&N.value==="["&&(K="^"),N.value+=K,H({value:K});continue}if(F.quotes===1&&K!=='"'){K=i.escapeRegex(K),N.value+=K,H({value:K});continue}if(K==='"'){F.quotes=F.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:K});continue}if(K==="("){C("parens"),X({type:"paren",value:K});continue}if(K===")"){if(F.parens===0&&p.strictBrackets===!0)throw new SyntaxError(u("opening","("));let ne=J[J.length-1];if(ne&&F.parens===ne.parens+1){ce(J.pop());continue}X({type:"paren",value:K,output:F.parens?")":"\\)"}),z("parens");continue}if(K==="["){if(p.nobracket===!0||!ye().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(u("closing","]"));K=`\\${K}`}else C("brackets");X({type:"bracket",value:K});continue}if(K==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:K,output:`\\${K}`});continue}if(F.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(u("opening","["));X({type:"text",value:K,output:`\\${K}`});continue}z("brackets");let ne=N.value.slice(1);if(N.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(K=`/${K}`),N.value+=K,H({value:K}),p.literalBrackets===!1||i.hasRegexChars(ne))continue;let he=i.escapeRegex(N.value);if(F.output=F.output.slice(0,-N.value.length),p.literalBrackets===!0){F.output+=he,N.value=he;continue}N.value=`(${D}${he}|${N.value})`,F.output+=N.value;continue}if(K==="{"&&p.nobrace!==!0){C("braces");let ne={type:"brace",value:K,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};q.push(ne),X(ne);continue}if(K==="}"){let ne=q[q.length-1];if(p.nobrace===!0||!ne){X({type:"text",value:K,output:K});continue}let he=")";if(ne.dots===!0){let be=y.slice(),De=[];for(let Y=be.length-1;Y>=0&&(y.pop(),be[Y].type!=="brace");Y--)be[Y].type!=="dots"&&De.unshift(be[Y].value);he=h(De,p),F.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let be=F.output.slice(0,ne.outputIndex),De=F.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",K=he="\\}",F.output=be;for(let Y of De)F.output+=Y.output||Y.value}X({type:"brace",value:K,output:he}),z("braces"),q.pop();continue}if(K==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:K});continue}if(K===","){let ne=K,he=q[q.length-1];he&&ee[ee.length-1]==="braces"&&(he.comma=!0,ne="|"),X({type:"comma",value:K,output:ne});continue}if(K==="/"){if(N.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",y.pop(),N=_;continue}X({type:"slash",value:K,output:A});continue}if(K==="."){if(F.braces>0&&N.type==="dot"){N.value==="."&&(N.output=E);let ne=q[q.length-1];N.type="dots",N.output+=K,N.value+=K,ne.dots=!0;continue}if(F.braces+F.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:K,output:E});continue}X({type:"dot",value:K,output:E});continue}if(K==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&se()==="("&&se(2)!=="?"){re("qmark",K);continue}if(N&&N.type==="paren"){let ne=se(),he=K;if(ne==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(ye()))&&(he=`\\${K}`),X({type:"text",value:K,output:he});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:K,output:$});continue}X({type:"qmark",value:K,output:I});continue}if(K==="!"){if(p.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){re("negate",K);continue}if(p.nonegate!==!0&&F.index===0){V();continue}}if(K==="+"){if(p.noextglob!==!0&&se()==="("&&se(2)!=="?"){re("plus",K);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:K,output:S});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||F.parens>0){X({type:"plus",value:K});continue}X({type:"plus",value:S});continue}if(K==="@"){if(p.noextglob!==!0&&se()==="("&&se(2)!=="?"){X({type:"at",extglob:!0,value:K,output:""});continue}X({type:"text",value:K});continue}if(K!=="*"){(K==="$"||K==="^")&&(K=`\\${K}`);let ne=a.exec(ye());ne&&(K+=ne[0],F.index+=ne[0].length),X({type:"text",value:K});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=K,N.output=j,F.backtrack=!0,F.globstar=!0,de(K);continue}let ie=ye();if(p.noextglob!==!0&&/^\([^?]/.test(ie)){re("star",K);continue}if(N.type==="star"){if(p.noglobstar===!0){de(K);continue}let ne=N.prev,he=ne.prev,be=ne.type==="slash"||ne.type==="bos",De=he&&(he.type==="star"||he.type==="globstar");if(p.bash===!0&&(!be||ie[0]&&ie[0]!=="/")){X({type:"star",value:K,output:""});continue}let Y=F.braces>0&&(ne.type==="comma"||ne.type==="brace"),U=J.length&&(ne.type==="pipe"||ne.type==="paren");if(!be&&ne.type!=="paren"&&!Y&&!U){X({type:"star",value:K,output:""});continue}for(;ie.slice(0,3)==="/**";){let oe=o[F.index+4];if(oe&&oe!=="/")break;ie=ie.slice(3),de("/**",3)}if(ne.type==="bos"&&te()){N.type="globstar",N.value+=K,N.output=W(p),F.output=N.output,F.globstar=!0,de(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!De&&te()){F.output=F.output.slice(0,-(ne.output+N.output).length),ne.output=`(?:${ne.output}`,N.type="globstar",N.output=W(p)+(p.strictSlashes?")":"|$)"),N.value+=K,F.globstar=!0,F.output+=ne.output+N.output,de(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ie[0]==="/"){let oe=ie[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(ne.output+N.output).length),ne.output=`(?:${ne.output}`,N.type="globstar",N.output=`${W(p)}${A}|${A}${oe})`,N.value+=K,F.output+=ne.output+N.output,F.globstar=!0,de(K+le()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ie[0]==="/"){N.type="globstar",N.value+=K,N.output=`(?:^|${A}|${W(p)}${A})`,F.output=N.output,F.globstar=!0,de(K+le()),X({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-N.output.length),N.type="globstar",N.output=W(p),N.value+=K,F.output+=N.output,F.globstar=!0,de(K);continue}let ue={type:"star",value:K,output:j};if(p.bash===!0){ue.output=".*?",(N.type==="bos"||N.type==="slash")&&(ue.output=Q+ue.output),X(ue);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){ue.output=K,X(ue);continue}(F.index===F.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(F.output+=k,N.output+=k):p.dot===!0?(F.output+=O,N.output+=O):(F.output+=Q,N.output+=Q),se()!=="*"&&(F.output+=x,N.output+=x)),X(ue)}for(;F.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing","]"));F.output=i.escapeLast(F.output,"["),z("brackets")}for(;F.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing",")"));F.output=i.escapeLast(F.output,"("),z("parens")}for(;F.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing","}"));F.output=i.escapeLast(F.output,"{"),z("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),F.backtrack===!0){F.output="";for(let ie of F.tokens)F.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(F.output+=ie.suffix)}return F};c.fastpaths=(o,d)=>{let p={...d},g=typeof p.maxLength=="number"?Math.min(s,p.maxLength):s,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);o=t[o]||o;let _=i.isWindows(d),{DOT_LITERAL:y,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:E,NO_DOTS_SLASH:S,STAR:A,START_ANCHOR:x}=n.globChars(_),L=p.dot?E:m,T=p.dot?S:m,k=p.capture?"":"?:",O={negated:!1,prefix:""},I=p.bash===!0?".*?":A;p.capture&&(I=`(${I})`);let $=Q=>Q.noglobstar===!0?I:`(${k}(?:(?!${x}${Q.dot?v:y}).)*?)`,R=Q=>{switch(Q){case"*":return`${L}${w}${I}`;case".*":return`${y}${w}${I}`;case"*.*":return`${L}${I}${y}${w}${I}`;case"*/*":return`${L}${I}${D}${w}${T}${I}`;case"**":return L+$(p);case"**/*":return`(?:${L}${$(p)}${D})?${T}${w}${I}`;case"**/*.*":return`(?:${L}${$(p)}${D})?${T}${I}${y}${w}${I}`;case"**/.*":return`(?:${L}${$(p)}${D})?${y}${w}${I}`;default:{let P=/^(.*?)\.(\w+)$/.exec(Q);if(!P)return;let j=R(P[1]);return j?j+y+P[2]:void 0}}},G=i.removePrefix(o,O),W=R(G);return W&&p.strictSlashes!==!0&&(W+=`${D}?`),W},l.exports=c}),il=M((e,l)=>{"use strict";B();var n=Z("path"),i=rl(),s=nl(),f=tr(),a=er(),r=h=>h&&typeof h=="object"&&!Array.isArray(h),t=(h,u,c=!1)=>{if(Array.isArray(h)){let D=h.map(w=>t(w,u,c));return w=>{for(let v of D){let m=v(w);if(m)return m}return!1}}let o=r(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=u||{},p=f.isWindows(u),g=o?t.compileRe(h,u):t.makeRe(h,u,!1,!0),b=g.state;delete g.state;let _=()=>!1;if(d.ignore){let D={...u,ignore:null,onMatch:null,onResult:null};_=t(d.ignore,D,c)}let y=(D,w=!1)=>{let{isMatch:v,match:m,output:E}=t.test(D,g,u,{glob:h,posix:p}),S={glob:h,state:b,regex:g,posix:p,input:D,output:E,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(S),v===!1?(S.isMatch=!1,w?S:!1):_(D)?(typeof d.onIgnore=="function"&&d.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof d.onMatch=="function"&&d.onMatch(S),w?S:!0)};return c&&(y.state=b),y};t.test=(h,u,c,{glob:o,posix:d}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};let p=c||{},g=p.format||(d?f.toPosixSlashes:null),b=h===o,_=b&&g?g(h):h;return b===!1&&(_=g?g(h):h,b=_===o),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=t.matchBase(h,u,c,d):b=u.exec(_)),{isMatch:Boolean(b),match:b,output:_}},t.matchBase=(h,u,c,o=f.isWindows(c))=>(u instanceof RegExp?u:t.makeRe(u,c)).test(n.basename(h)),t.isMatch=(h,u,c)=>t(u,c)(h),t.parse=(h,u)=>Array.isArray(h)?h.map(c=>t.parse(c,u)):s(h,{...u,fastpaths:!1}),t.scan=(h,u)=>i(h,u),t.compileRe=(h,u,c=!1,o=!1)=>{if(c===!0)return h.output;let d=u||{},p=d.contains?"":"^",g=d.contains?"":"$",b=`${p}(?:${h.output})${g}`;h&&h.negated===!0&&(b=`^(?!${b}).*$`);let _=t.toRegex(b,u);return o===!0&&(_.state=h),_},t.makeRe=(h,u={},c=!1,o=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(d.output=s.fastpaths(h,u)),d.output||(d=s(h,u)),t.compileRe(d,u,c,o)},t.toRegex=(h,u)=>{try{let c=u||{};return new RegExp(h,c.flags||(c.nocase?"i":""))}catch(c){if(u&&u.debug===!0)throw c;return/$^/}},t.constants=a,l.exports=t}),sl=M((e,l)=>{"use strict";B(),l.exports=il()}),ol=M((e,l)=>{"use strict";B();var n=Z("util"),i=tl(),s=sl(),f=tr(),a=t=>t===""||t==="./",r=(t,h,u)=>{h=[].concat(h),t=[].concat(t);let c=new Set,o=new Set,d=new Set,p=0,g=_=>{d.add(_.output),u&&u.onResult&&u.onResult(_)};for(let _=0;_<h.length;_++){let y=s(String(h[_]),{...u,onResult:g},!0),D=y.state.negated||y.state.negatedExtglob;D&&p++;for(let w of t){let v=y(w,!0);!(D?!v.isMatch:v.isMatch)||(D?c.add(v.output):(c.delete(v.output),o.add(v.output)))}}let b=(p===h.length?[...d]:[...o]).filter(_=>!c.has(_));if(u&&b.length===0){if(u.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(u.nonull===!0||u.nullglob===!0)return u.unescape?h.map(_=>_.replace(/\\/g,"")):h}return b};r.match=r,r.matcher=(t,h)=>s(t,h),r.isMatch=(t,h,u)=>s(h,u)(t),r.any=r.isMatch,r.not=(t,h,u={})=>{h=[].concat(h).map(String);let c=new Set,o=[],d=g=>{u.onResult&&u.onResult(g),o.push(g.output)},p=new Set(r(t,h,{...u,onResult:d}));for(let g of o)p.has(g)||c.add(g);return[...c]},r.contains=(t,h,u)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);if(Array.isArray(h))return h.some(c=>r.contains(t,c,u));if(typeof h=="string"){if(a(t)||a(h))return!1;if(t.includes(h)||t.startsWith("./")&&t.slice(2).includes(h))return!0}return r.isMatch(t,h,{...u,contains:!0})},r.matchKeys=(t,h,u)=>{if(!f.isObject(t))throw new TypeError("Expected the first argument to be an object");let c=r(Object.keys(t),h,u),o={};for(let d of c)o[d]=t[d];return o},r.some=(t,h,u)=>{let c=[].concat(t);for(let o of[].concat(h)){let d=s(String(o),u);if(c.some(p=>d(p)))return!0}return!1},r.every=(t,h,u)=>{let c=[].concat(t);for(let o of[].concat(h)){let d=s(String(o),u);if(!c.every(p=>d(p)))return!1}return!0},r.all=(t,h,u)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);return[].concat(h).every(c=>s(c,u)(t))},r.capture=(t,h,u)=>{let c=f.isWindows(u),o=s.makeRe(String(t),{...u,capture:!0}).exec(c?f.toPosixSlashes(h):h);if(o)return o.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...t)=>s.makeRe(...t),r.scan=(...t)=>s.scan(...t),r.parse=(t,h)=>{let u=[];for(let c of[].concat(t||[]))for(let o of i(String(c),h))u.push(s.parse(o,h));return u},r.braces=(t,h)=>{if(typeof t!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(t)?[t]:i(t,h)},r.braceExpand=(t,h)=>{if(typeof t!="string")throw new TypeError("Expected a string");return r.braces(t,{...h,expand:!0})},l.exports=r}),al=M(e=>{"use strict";B(),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 l=Z("path"),n=Ku(),i=ol(),s="**",f="\\",a=/[*?]|^!/,r=/\[[^[]*]/,t=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,h=/[!*+?@]\([^(]*\)/,u=/,|\.\./;function c(R,G={}){return!o(R,G)}e.isStaticPattern=c;function o(R,G={}){return R===""?!1:!!(G.caseSensitiveMatch===!1||R.includes(f)||a.test(R)||r.test(R)||t.test(R)||G.extglob!==!1&&h.test(R)||G.braceExpansion!==!1&&d(R))}e.isDynamicPattern=o;function d(R){let G=R.indexOf("{");if(G===-1)return!1;let W=R.indexOf("}",G+1);if(W===-1)return!1;let Q=R.slice(G,W);return u.test(Q)}function p(R){return b(R)?R.slice(1):R}e.convertToPositivePattern=p;function g(R){return"!"+R}e.convertToNegativePattern=g;function b(R){return R.startsWith("!")&&R[1]!=="("}e.isNegativePattern=b;function _(R){return!b(R)}e.isPositivePattern=_;function y(R){return R.filter(b)}e.getNegativePatterns=y;function D(R){return R.filter(_)}e.getPositivePatterns=D;function w(R){return R.filter(G=>!m(G))}e.getPatternsInsideCurrentDirectory=w;function v(R){return R.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(R){return R.startsWith("..")||R.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function E(R){return n(R,{flipBackslashes:!1})}e.getBaseDirectory=E;function S(R){return R.includes(s)}e.hasGlobStar=S;function A(R){return R.endsWith("/"+s)}e.endsWithSlashGlobStar=A;function x(R){let G=l.basename(R);return A(R)||c(G)}e.isAffectDepthOfReadingPattern=x;function L(R){return R.reduce((G,W)=>G.concat(T(W)),[])}e.expandPatternsWithBraceExpansion=L;function T(R){return i.braces(R,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function k(R,G){let{parts:W}=i.scan(R,Object.assign(Object.assign({},G),{parts:!0}));return W.length===0&&(W=[R]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}e.getPatternParts=k;function O(R,G){return i.makeRe(R,G)}e.makeRe=O;function I(R,G){return R.map(W=>O(W,G))}e.convertPatternsToRe=I;function $(R,G){return G.some(W=>W.test(R))}e.matchAny=$}),ul=M((e,l)=>{"use strict";B();var n=Z("stream"),i=n.PassThrough,s=Array.prototype.slice;l.exports=f;function f(){let r=[],t=s.call(arguments),h=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let c=u.end!==!1,o=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let d=i(u);function p(){for(let _=0,y=arguments.length;_<y;_++)r.push(a(arguments[_],u));return g(),this}function g(){if(h)return;h=!0;let _=r.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let y=_.length+1;function D(){--y>0||(h=!1,g())}function w(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),o&&v.removeListener("error",E),D()}function E(S){d.emit("error",S)}if(v._readableState.endEmitted)return D();v.on("merge2UnpipeEnd",m),v.on("end",m),o&&v.on("error",E),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)w(_[v]);D()}function b(){h=!1,d.emit("queueDrain"),c&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),t.length&&p.apply(null,t),d}function a(r,t){if(Array.isArray(r))for(let h=0,u=r.length;h<u;h++)r[h]=a(r[h],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(i(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),ll=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var l=ul();function n(s){let f=l(s);return s.forEach(a=>{a.once("error",r=>f.emit("error",r))}),f.once("close",()=>i(s)),f.once("end",()=>i(s)),f}e.merge=n;function i(s){s.forEach(f=>f.emit("close"))}}),cl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function l(i){return typeof i=="string"}e.isString=l;function n(i){return i===""}e.isEmpty=n}),rt=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var l=Uu();e.array=l;var n=Gu();e.errno=n;var i=qu();e.fs=i;var s=zu();e.path=s;var f=al();e.pattern=f;var a=ll();e.stream=a;var r=cl();e.string=r}),hl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var l=rt();function n(h,u){let c=s(h),o=f(h,u.ignore),d=c.filter(_=>l.pattern.isStaticPattern(_,u)),p=c.filter(_=>l.pattern.isDynamicPattern(_,u)),g=i(d,o,!1),b=i(p,o,!0);return g.concat(b)}e.generate=n;function i(h,u,c){let o=[],d=l.pattern.getPatternsOutsideCurrentDirectory(h),p=l.pattern.getPatternsInsideCurrentDirectory(h),g=a(d),b=a(p);return o.push(...r(g,u,c)),"."in b?o.push(t(".",p,u,c)):o.push(...r(b,u,c)),o}e.convertPatternsToTasks=i;function s(h){return l.pattern.getPositivePatterns(h)}e.getPositivePatterns=s;function f(h,u){return l.pattern.getNegativePatterns(h).concat(u).map(l.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=f;function a(h){let u={};return h.reduce((c,o)=>{let d=l.pattern.getBaseDirectory(o);return d in c?c[d].push(o):c[d]=[o],c},u)}e.groupPatternsByBaseDirectory=a;function r(h,u,c){return Object.keys(h).map(o=>t(o,h[o],u,c))}e.convertPatternGroupsToTasks=r;function t(h,u,c,o){return{dynamic:o,positive:u,negative:c,base:h,patterns:[].concat(u,c.map(l.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=t}),pl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var l=/(?!^)\/{2,}/g;function n(s){return s.map(f=>i(f))}e.transform=n;function i(s){return s.replace(l,"/")}e.removeDuplicateSlashes=i}),fl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function l(s,f,a){f.fs.lstat(s,(r,t)=>{if(r!==null){n(a,r);return}if(!t.isSymbolicLink()||!f.followSymbolicLink){i(a,t);return}f.fs.stat(s,(h,u)=>{if(h!==null){if(f.throwErrorOnBrokenSymbolicLink){n(a,h);return}i(a,t);return}f.markSymbolicLink&&(u.isSymbolicLink=()=>!0),i(a,u)})})}e.read=l;function n(s,f){s(f)}function i(s,f){s(null,f)}}),dl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function l(n,i){let s=i.fs.lstatSync(n);if(!s.isSymbolicLink()||!i.followSymbolicLink)return s;try{let f=i.fs.statSync(n);return i.markSymbolicLink&&(f.isSymbolicLink=()=>!0),f}catch(f){if(!i.throwErrorOnBrokenSymbolicLink)return s;throw f}}e.read=l}),ml=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}),yl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=ml(),n=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=l.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,s){return i!=null?i:s}};e.default=n}),_t=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var l=fl(),n=dl(),i=yl();e.Settings=i.default;function s(r,t,h){if(typeof t=="function"){l.read(r,a(),t);return}l.read(r,a(t),h)}e.stat=s;function f(r,t){let h=a(t);return n.read(r,h)}e.statSync=f;function a(r={}){return r instanceof i.default?r:new i.default(r)}}),gl=M((e,l)=>{B();var n;l.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(n||(n=Promise.resolve())).then(i).catch(s=>setTimeout(()=>{throw s},0))}),bl=M((e,l)=>{B(),l.exports=i;var n=gl();function i(s,f){let a,r,t,h=!0;Array.isArray(s)?(a=[],r=s.length):(t=Object.keys(s),a={},r=t.length);function u(o){function d(){f&&f(o,a),f=null}h?n(d):d()}function c(o,d,p){a[o]=p,(--r===0||d)&&u(d)}r?t?t.forEach(function(o){s[o](function(d,p){c(o,d,p)})}):s.forEach(function(o,d){o(function(p,g){c(d,p,g)})}):u(null),h=!1}}),ti=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var l=process.versions.node.split(".");if(l[0]===void 0||l[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(l[0],10),i=Number.parseInt(l[1],10),s=10,f=10,a=n>s,r=n===s&&i>=f;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||r}),vl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var l=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function n(i,s){return new l(i,s)}e.createDirentFromStats=n}),ri=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var l=vl();e.fs=l}),ni=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function l(n,i,s){return n.endsWith(s)?n+i:n+s+i}e.joinPathSegments=l}),_l=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var l=_t(),n=bl(),i=ti(),s=ri(),f=ni();function a(o,d,p){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(o,d,p);return}h(o,d,p)}e.read=a;function r(o,d,p){d.fs.readdir(o,{withFileTypes:!0},(g,b)=>{if(g!==null){u(p,g);return}let _=b.map(D=>({dirent:D,name:D.name,path:f.joinPathSegments(o,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){c(p,_);return}let y=_.map(D=>t(D,d));n(y,(D,w)=>{if(D!==null){u(p,D);return}c(p,w)})})}e.readdirWithFileTypes=r;function t(o,d){return p=>{if(!o.dirent.isSymbolicLink()){p(null,o);return}d.fs.stat(o.path,(g,b)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){p(g);return}p(null,o);return}o.dirent=s.fs.createDirentFromStats(o.name,b),p(null,o)})}}function h(o,d,p){d.fs.readdir(o,(g,b)=>{if(g!==null){u(p,g);return}let _=b.map(y=>{let D=f.joinPathSegments(o,y,d.pathSegmentSeparator);return w=>{l.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){w(v);return}let E={name:y,path:D,dirent:s.fs.createDirentFromStats(y,m)};d.stats&&(E.stats=m),w(null,E)})}});n(_,(y,D)=>{if(y!==null){u(p,y);return}c(p,D)})})}e.readdir=h;function u(o,d){o(d)}function c(o,d){o(null,d)}}),El=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var l=_t(),n=ti(),i=ri(),s=ni();function f(t,h){return!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(t,h):r(t,h)}e.read=f;function a(t,h){return h.fs.readdirSync(t,{withFileTypes:!0}).map(u=>{let c={dirent:u,name:u.name,path:s.joinPathSegments(t,u.name,h.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&h.followSymbolicLinks)try{let o=h.fs.statSync(c.path);c.dirent=i.fs.createDirentFromStats(c.name,o)}catch(o){if(h.throwErrorOnBrokenSymbolicLink)throw o}return c})}e.readdirWithFileTypes=a;function r(t,h){return h.fs.readdirSync(t).map(u=>{let c=s.joinPathSegments(t,u,h.pathSegmentSeparator),o=l.statSync(c,h.fsStatSettings),d={name:u,path:c,dirent:i.fs.createDirentFromStats(u,o)};return h.stats&&(d.stats=o),d})}e.readdir=r}),wl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}),Dl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=_t(),i=wl(),s=class{constructor(f={}){this._options=f,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(f,a){return f!=null?f:a}};e.default=s}),Pr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var l=_l(),n=El(),i=Dl();e.Settings=i.default;function s(r,t,h){if(typeof t=="function"){l.read(r,a(),t);return}l.read(r,a(t),h)}e.scandir=s;function f(r,t){let h=a(t);return n.read(r,h)}e.scandirSync=f;function a(r={}){return r instanceof i.default?r:new i.default(r)}}),Sl=M((e,l)=>{"use strict";B();function n(i){var s=new i,f=s;function a(){var t=s;return t.next?s=t.next:(s=new i,f=s),t.next=null,t}function r(t){f.next=t,f=t}return{get:a,release:r}}l.exports=n}),Al=M((e,l)=>{"use strict";B();var n=Sl();function i(r,t,h){if(typeof r=="function"&&(h=t,t=r,r=null),h<1)throw new Error("fastqueue concurrency must be greater than 1");var u=n(f),c=null,o=null,d=0,p=null,g={push:m,drain:s,saturated:s,pause:_,paused:!1,concurrency:h,running:b,resume:w,idle:v,length:y,getQueue:D,unshift:E,empty:s,kill:A,killAndDrain:x,error:L};return g;function b(){return d}function _(){g.paused=!0}function y(){for(var T=c,k=0;T;)T=T.next,k++;return k}function D(){for(var T=c,k=[];T;)k.push(T.value),T=T.next;return k}function w(){if(g.paused){g.paused=!1;for(var T=0;T<g.concurrency;T++)d++,S()}}function v(){return d===0&&g.length()===0}function m(T,k){var O=u.get();O.context=r,O.release=S,O.value=T,O.callback=k||s,O.errorHandler=p,d===g.concurrency||g.paused?o?(o.next=O,o=O):(c=O,o=O,g.saturated()):(d++,t.call(r,O.value,O.worked))}function E(T,k){var O=u.get();O.context=r,O.release=S,O.value=T,O.callback=k||s,d===g.concurrency||g.paused?c?(O.next=c,c=O):(c=O,o=O,g.saturated()):(d++,t.call(r,O.value,O.worked))}function S(T){T&&u.release(T);var k=c;k?g.paused?d--:(o===c&&(o=null),c=k.next,k.next=null,t.call(r,k.value,k.worked),o===null&&g.empty()):--d===0&&g.drain()}function A(){c=null,o=null,g.drain=s}function x(){c=null,o=null,g.drain(),g.drain=s}function L(T){p=T}}function s(){}function f(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null,this.errorHandler=null;var r=this;this.worked=function(t,h){var u=r.callback,c=r.errorHandler,o=r.value;r.value=null,r.callback=s,r.errorHandler&&c(t,o),u.call(r.context,t,h),r.release(r)}}function a(r,t,h){typeof r=="function"&&(h=t,t=r,r=null);function u(_,y){t.call(this,_).then(function(D){y(null,D)},y)}var c=i(r,u,h),o=c.push,d=c.unshift;return c.push=p,c.unshift=g,c.drained=b,c;function p(_){var y=new Promise(function(D,w){o(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(s),y}function g(_){var y=new Promise(function(D,w){d(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(s),y}function b(){var _=c.drain,y=new Promise(function(D){c.drain=function(){_(),D()}});return y}}l.exports=i,l.exports.promise=a}),Lr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function l(f,a){return f.errorFilter===null?!0:!f.errorFilter(a)}e.isFatalError=l;function n(f,a){return f===null||f(a)}e.isAppliedFilter=n;function i(f,a){return f.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=i;function s(f,a,r){return f===""?a:f.endsWith(r)?f+a:f+r+a}e.joinPathSegments=s}),ii=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Lr(),n=class{constructor(i,s){this._root=i,this._settings=s,this._root=l.replacePathSegmentSeparator(i,s.pathSegmentSeparator)}};e.default=n}),si=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("events"),n=Pr(),i=Al(),s=Lr(),f=ii(),a=class extends f.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=n.scandir,this._emitter=new l.EventEmitter,this._queue=i(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 h={directory:r,base:t};this._queue.push(h,u=>{u!==null&&this._handleError(u)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(h,u)=>{if(h!==null){t(h,void 0);return}for(let c of u)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!s.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 h=r.path;t!==void 0&&(r.path=s.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(h,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};e.default=a}),Cl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=si(),n=class{constructor(f,a){this._root=f,this._settings=a,this._reader=new l.default(this._root,this._settings),this._storage=[]}read(f){this._reader.onError(a=>{i(f,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{s(f,this._storage)}),this._reader.read()}};e.default=n;function i(f,a){f(a)}function s(f,a){f(null,a)}}),xl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=si(),i=class{constructor(s,f){this._root=s,this._settings=f,this._reader=new n.default(this._root,this._settings),this._stream=new l.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(s=>{this._stream.emit("error",s)}),this._reader.onEntry(s=>{this._stream.push(s)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),kl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Pr(),n=Lr(),i=ii(),s=class extends i.default{constructor(){super(...arguments),this._scandir=l.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(f,a){this._queue.add({directory:f,base:a})}_handleQueue(){for(let f of this._queue.values())this._handleDirectory(f.directory,f.base)}_handleDirectory(f,a){try{let r=this._scandir(f,this._settings.fsScandirSettings);for(let t of r)this._handleEntry(t,a)}catch(r){this._handleError(r)}}_handleError(f){if(n.isFatalError(this._settings,f))throw f}_handleEntry(f,a){let r=f.path;a!==void 0&&(f.path=n.joinPathSegments(a,f.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,f)&&this._pushToStorage(f),f.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,f)&&this._pushToQueue(r,a===void 0?void 0:f.path)}_pushToStorage(f){this._storage.push(f)}};e.default=s}),Fl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=kl(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new l.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=n}),Ol=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=Pr(),i=class{constructor(s={}){this._options=s,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,l.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(s,f){return s!=null?s:f}};e.default=i}),Ir=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var l=Cl(),n=xl(),i=Fl(),s=Ol();e.Settings=s.default;function f(h,u,c){if(typeof u=="function"){new l.default(h,t()).read(u);return}new l.default(h,t(u)).read(c)}e.walk=f;function a(h,u){let c=t(u);return new i.default(h,c).read()}e.walkSync=a;function r(h,u){let c=t(u);return new n.default(h,c).read()}e.walkStream=r;function t(h={}){return h instanceof s.default?h:new s.default(h)}}),Mr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=_t(),i=rt(),s=class{constructor(f){this._settings=f,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(f){return l.resolve(this._settings.cwd,f)}_makeEntry(f,a){let r={name:a,path:a,dirent:i.fs.createDirentFromStats(a,f)};return this._settings.stats&&(r.stats=f),r}_isFatalError(f){return!i.errno.isEnoentCodeError(f)&&!this._settings.suppressErrors}};e.default=s}),oi=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=_t(),i=Ir(),s=Mr(),f=class extends s.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=n.stat}dynamic(a,r){return this._walkStream(a,r)}static(a,r){let t=a.map(this._getFullEntryPath,this),h=new l.PassThrough({objectMode:!0});h._write=(u,c,o)=>this._getEntry(t[u],a[u],r).then(d=>{d!==null&&r.entryFilter(d)&&h.push(d),u===t.length-1&&h.end(),o()}).catch(o);for(let u=0;u<t.length;u++)h.write(u);return h}_getEntry(a,r,t){return this._getStat(a).then(h=>this._makeEntry(h,r)).catch(h=>{if(t.errorFilter(h))return null;throw h})}_getStat(a){return new Promise((r,t)=>{this._stat(a,this._fsStatSettings,(h,u)=>h===null?r(u):t(h))})}};e.default=f}),Rl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Ir(),n=Mr(),i=oi(),s=class extends n.default{constructor(){super(...arguments),this._walkAsync=l.walk,this._readerStream=new i.default(this._settings)}dynamic(f,a){return new Promise((r,t)=>{this._walkAsync(f,a,(h,u)=>{h===null?r(u):t(h)})})}async static(f,a){let r=[],t=this._readerStream.static(f,a);return new Promise((h,u)=>{t.once("error",u),t.on("data",c=>r.push(c)),t.once("end",()=>h(r))})}};e.default=s}),Tl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i,s,f){this._patterns=i,this._settings=s,this._micromatchOptions=f,this._storage=[],this._fillStorage()}_fillStorage(){let i=l.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let s of i){let f=this._getPatternSegments(s),a=this._splitSegmentsIntoSections(f);this._storage.push({complete:a.length<=1,pattern:s,segments:f,sections:a})}}_getPatternSegments(i){return l.pattern.getPatternParts(i,this._micromatchOptions).map(s=>l.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:l.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(i){return l.array.splitWhen(i,s=>s.dynamic&&l.pattern.hasGlobStar(s.pattern))}};e.default=n}),Bl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Tl(),n=class extends l.default{match(i){let s=i.split("/"),f=s.length,a=this._storage.filter(r=>!r.complete||r.segments.length>f);for(let r of a){let t=r.sections[0];if(!r.complete&&f>t.length||s.every((h,u)=>{let c=r.segments[u];return!!(c.dynamic&&c.patternRe.test(h)||!c.dynamic&&c.pattern===h)}))return!0}return!1}};e.default=n}),Pl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=Bl(),i=class{constructor(s,f){this._settings=s,this._micromatchOptions=f}getFilter(s,f,a){let r=this._getMatcher(f),t=this._getNegativePatternsRe(a);return h=>this._filter(s,h,r,t)}_getMatcher(s){return new n.default(s,this._settings,this._micromatchOptions)}_getNegativePatternsRe(s){let f=s.filter(l.pattern.isAffectDepthOfReadingPattern);return l.pattern.convertPatternsToRe(f,this._micromatchOptions)}_filter(s,f,a,r){if(this._isSkippedByDeep(s,f.path)||this._isSkippedSymbolicLink(f))return!1;let t=l.path.removeLeadingDotSegment(f.path);return this._isSkippedByPositivePatterns(t,a)?!1:this._isSkippedByNegativePatterns(t,r)}_isSkippedByDeep(s,f){return this._settings.deep===1/0?!1:this._getEntryLevel(s,f)>=this._settings.deep}_getEntryLevel(s,f){let a=f.split("/").length;if(s==="")return a;let r=s.split("/").length;return a-r}_isSkippedSymbolicLink(s){return!this._settings.followSymbolicLinks&&s.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(s,f){return!this._settings.baseNameMatch&&!f.match(s)}_isSkippedByNegativePatterns(s,f){return!l.pattern.matchAny(s,f)}};e.default=i}),Ll=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s,this.index=new Map}getFilter(i,s){let f=l.pattern.convertPatternsToRe(i,this._micromatchOptions),a=l.pattern.convertPatternsToRe(s,this._micromatchOptions);return r=>this._filter(r,f,a)}_filter(i,s,f){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,f))return!1;let a=this._settings.baseNameMatch?i.name:i.path,r=i.dirent.isDirectory(),t=this._isMatchToPatterns(a,s,r)&&!this._isMatchToPatterns(i.path,f,r);return this._settings.unique&&t&&this._createIndexRecord(i),t}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,s){if(!this._settings.absolute)return!1;let f=l.path.makeAbsolute(this._settings.cwd,i);return l.pattern.matchAny(f,s)}_isMatchToPatterns(i,s,f){let a=l.path.removeLeadingDotSegment(i),r=l.pattern.matchAny(a,s);return!r&&f?l.pattern.matchAny(a+"/",s):r}};e.default=n}),Il=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return l.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=n}),Ml=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let s=i.path;return this._settings.absolute&&(s=l.path.makeAbsolute(this._settings.cwd,s),s=l.path.unixify(s)),this._settings.markDirectories&&i.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:s}):s}};e.default=n}),jr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=Pl(),i=Ll(),s=Il(),f=Ml(),a=class{constructor(r){this._settings=r,this.errorFilter=new s.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new f.default(this._settings)}_getRootDirectory(r){return l.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}}};e.default=a}),jl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Rl(),n=jr(),i=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}async read(s){let f=this._getRootDirectory(s),a=this._getReaderOptions(s);return(await this.api(f,s,a)).map(r=>a.transform(r))}api(s,f,a){return f.dynamic?this._reader.dynamic(s,a):this._reader.static(f.patterns,a)}};e.default=i}),Nl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=oi(),i=jr(),s=class extends i.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(f){let a=this._getRootDirectory(f),r=this._getReaderOptions(f),t=this.api(a,f,r),h=new l.Readable({objectMode:!0,read:()=>{}});return t.once("error",u=>h.emit("error",u)).on("data",u=>h.emit("data",r.transform(u))).once("end",()=>h.emit("end")),h.once("close",()=>t.destroy()),h}api(f,a,r){return a.dynamic?this._reader.dynamic(f,r):this._reader.static(a.patterns,r)}};e.default=s}),$l=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=_t(),n=Ir(),i=Mr(),s=class extends i.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=l.statSync}dynamic(f,a){return this._walkSync(f,a)}static(f,a){let r=[];for(let t of f){let h=this._getFullEntryPath(t),u=this._getEntry(h,t,a);u===null||!a.entryFilter(u)||r.push(u)}return r}_getEntry(f,a,r){try{let t=this._getStat(f);return this._makeEntry(t,a)}catch(t){if(r.errorFilter(t))return null;throw t}}_getStat(f){return this._statSync(f,this._fsStatSettings)}};e.default=s}),Hl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=$l(),n=jr(),i=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}read(s){let f=this._getRootDirectory(s),a=this._getReaderOptions(s);return this.api(f,s,a).map(a.transform)}api(s,f,a){return f.dynamic?this._reader.dynamic(s,a):this._reader.static(f.patterns,a)}};e.default=i}),Ul=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs"),n=Z("os"),i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:l.lstat,lstatSync:l.lstatSync,stat:l.stat,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};var s=class{constructor(f={}){this._options=f,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,i),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(f,a){return f===void 0?a:f}_getFileSystemMethods(f={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),f)}};e.default=s}),Gl=M((e,l)=>{"use strict";B();var n=hl(),i=pl(),s=jl(),f=Nl(),a=Hl(),r=Ul(),t=rt();async function h(o,d){c(o);let p=u(o,s.default,d),g=await Promise.all(p);return t.array.flatten(g)}(function(o){function d(y,D){c(y);let w=u(y,a.default,D);return t.array.flatten(w)}o.sync=d;function p(y,D){c(y);let w=u(y,f.default,D);return t.stream.merge(w)}o.stream=p;function g(y,D){c(y);let w=i.transform([].concat(y)),v=new r.default(D);return n.generate(w,v)}o.generateTasks=g;function b(y,D){c(y);let w=new r.default(D);return t.pattern.isDynamicPattern(y,w)}o.isDynamicPattern=b;function _(y){return c(y),t.path.escape(y)}o.escapePath=_})(h||(h={}));function u(o,d,p){let g=i.transform([].concat(o)),b=new r.default(p),_=n.generate(g,b),y=new d(b);return _.map(y.read,y)}function c(o){if(![].concat(o).every(d=>t.string.isString(d)&&!t.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}l.exports=h});B();B();function ai(e){return typeof e>"u"||e===null}function ql(e){return typeof e=="object"&&e!==null}function zl(e){return Array.isArray(e)?e:ai(e)?[]:[e]}function Wl(e,l){var n,i,s,f;if(l)for(f=Object.keys(l),n=0,i=f.length;n<i;n+=1)s=f[n],e[s]=l[s];return e}function Vl(e,l){var n="",i;for(i=0;i<l;i+=1)n+=e;return n}function Kl(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Yl=ai,Jl=ql,Zl=zl,Xl=Vl,Ql=Kl,ec=Wl,Be={isNothing:Yl,isObject:Jl,toArray:Zl,repeat:Xl,isNegativeZero:Ql,extend:ec};function ui(e,l){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!l&&e.mark.snippet&&(n+=`
|
|
38
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,k,"copy",(x,O)=>{if(x)return T(x);let{srcStat:I,destStat:$}=O;r.checkParentPaths(A,I,k,"copy",R=>R?T(R):L.filter?u(h,$,A,k,L,T):h($,A,k,L,T))})}function h(A,k,L,T,x){let O=i.dirname(L);f(O,(I,$)=>{if(I)return x(I);if($)return c(A,k,L,T,x);s(O,R=>R?x(R):c(A,k,L,T,x))})}function u(A,k,L,T,x,O){Promise.resolve(x.filter(L,T)).then(I=>I?A(k,L,T,x,O):O(),I=>O(I))}function c(A,k,L,T,x){return T.filter?u(o,A,k,L,T,x):o(A,k,L,T,x)}function o(A,k,L,T,x){(T.dereference?n.stat:n.lstat)(k,(O,I)=>{if(O)return x(O);if(I.isDirectory())return y(I,A,k,L,T,x);if(I.isFile()||I.isCharacterDevice()||I.isBlockDevice())return d(I,A,k,L,T,x);if(I.isSymbolicLink())return E(A,k,L,T,x)})}function d(A,k,L,T,x,O){return k?p(A,L,T,x,O):g(A,L,T,x,O)}function p(A,k,L,T,x){if(T.overwrite)n.unlink(L,O=>O?x(O):g(A,k,L,T,x));else return T.errorOnExist?x(new Error(`'${L}' already exists`)):x()}function g(A,k,L,T,x){return typeof n.copyFile=="function"?n.copyFile(k,L,O=>O?x(O):_(A,L,T,x)):b(A,k,L,T,x)}function b(A,k,L,T,x){let O=n.createReadStream(k);O.on("error",I=>x(I)).once("open",()=>{let I=n.createWriteStream(L,{mode:A.mode});I.on("error",$=>x($)).on("open",()=>O.pipe(I)).once("close",()=>_(A,L,T,x))})}function _(A,k,L,T){n.chmod(k,A.mode,x=>x?T(x):L.preserveTimestamps?a(k,A.atime,A.mtime,T):T())}function y(A,k,L,T,x,O){return k?k&&!k.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${L}'.`)):w(L,T,x,O):D(A,L,T,x,O)}function D(A,k,L,T,x){n.mkdir(L,O=>{if(O)return x(O);w(k,L,T,I=>I?x(I):n.chmod(L,A.mode,x))})}function w(A,k,L,T){n.readdir(A,(x,O)=>x?T(x):v(O,A,k,L,T))}function v(A,k,L,T,x){let O=A.pop();return O?m(A,O,k,L,T,x):x()}function m(A,k,L,T,x,O){let I=i.join(L,k),$=i.join(T,k);r.checkPaths(I,$,"copy",(R,G)=>{if(R)return O(R);let{destStat:W}=G;c(W,I,$,x,Q=>Q?O(Q):v(A,L,T,x,O))})}function E(A,k,L,T,x){n.readlink(k,(O,I)=>{if(O)return x(O);if(T.dereference&&(I=i.resolve(process.cwd(),I)),A)n.readlink(L,($,R)=>$?$.code==="EINVAL"||$.code==="UNKNOWN"?n.symlink(I,L,x):x($):(T.dereference&&(R=i.resolve(process.cwd(),R)),r.isSrcSubdir(I,R)?x(new Error(`Cannot copy '${I}' to a subdirectory of itself, '${R}'.`)):A.isDirectory()&&r.isSrcSubdir(R,I)?x(new Error(`Cannot overwrite '${R}' with '${I}'.`)):S(I,L,x)));else return n.symlink(I,L,x)})}function S(A,k,L){n.unlink(k,T=>T?L(T):n.symlink(A,k,L))}l.exports=t}),jn=M((e,l)=>{"use strict";B();var n=Ue().fromCallback;l.exports={copy:n(yu())}}),gu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Z("assert"),f=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||n[_],_=_+"Sync",b[_]=b[_]||n[_]}),b.maxBusyTries=b.maxBusyTries||3}function r(b,_,y){let D=0;typeof _=="function"&&(y=_,_={}),s(b,"rimraf: missing path"),s.strictEqual(typeof b,"string","rimraf: path should be a string"),s.strictEqual(typeof y,"function","rimraf: callback function required"),s(_,"rimraf: invalid options argument provided"),s.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),t(b,_,function w(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&D<_.maxBusyTries){D++;let m=D*100;return setTimeout(()=>t(b,_,w),m)}v.code==="ENOENT"&&(v=null)}y(v)})}function t(b,_,y){s(b),s(_),s(typeof y=="function"),_.lstat(b,(D,w)=>{if(D&&D.code==="ENOENT")return y(null);if(D&&D.code==="EPERM"&&f)return h(b,_,D,y);if(w&&w.isDirectory())return c(b,_,D,y);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return y(null);if(v.code==="EPERM")return f?h(b,_,v,y):c(b,_,v,y);if(v.code==="EISDIR")return c(b,_,v,y)}return y(v)})})}function h(b,_,y,D){s(b),s(_),s(typeof D=="function"),y&&s(y instanceof Error),_.chmod(b,438,w=>{w?D(w.code==="ENOENT"?null:y):_.stat(b,(v,m)=>{v?D(v.code==="ENOENT"?null:y):m.isDirectory()?c(b,_,y,D):_.unlink(b,D)})})}function u(b,_,y){let D;s(b),s(_),y&&s(y instanceof Error);try{_.chmodSync(b,438)}catch(w){if(w.code==="ENOENT")return;throw y}try{D=_.statSync(b)}catch(w){if(w.code==="ENOENT")return;throw y}D.isDirectory()?p(b,_,y):_.unlinkSync(b)}function c(b,_,y,D){s(b),s(_),y&&s(y instanceof Error),s(typeof D=="function"),_.rmdir(b,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?o(b,_,D):w&&w.code==="ENOTDIR"?D(y):D(w)})}function o(b,_,y){s(b),s(_),s(typeof y=="function"),_.readdir(b,(D,w)=>{if(D)return y(D);let v=w.length,m;if(v===0)return _.rmdir(b,y);w.forEach(E=>{r(i.join(b,E),_,S=>{if(!m){if(S)return y(m=S);--v===0&&_.rmdir(b,y)}})})})}function d(b,_){let y;_=_||{},a(_),s(b,"rimraf: missing path"),s.strictEqual(typeof b,"string","rimraf: path should be a string"),s(_,"rimraf: missing options"),s.strictEqual(typeof _,"object","rimraf: options should be object");try{y=_.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&f&&u(b,_,D)}try{y&&y.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return f?u(b,_,D):p(b,_,D);if(D.code!=="EISDIR")throw D;p(b,_,D)}}function p(b,_,y){s(b),s(_),y&&s(y instanceof Error);try{_.rmdirSync(b)}catch(D){if(D.code==="ENOTDIR")throw y;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")g(b,_);else if(D.code!=="ENOENT")throw D}}function g(b,_){if(s(b),s(_),_.readdirSync(b).forEach(y=>d(i.join(b,y),_)),f){let y=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-y<500)}else return _.rmdirSync(b,_)}l.exports=r,r.sync=d}),Kt=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=gu();l.exports={remove:n(i),removeSync:i.sync}}),bu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=we(),s=Z("path"),f=Ge(),a=Kt(),r=n(function(h,u){u=u||function(){},i.readdir(h,(c,o)=>{if(c)return f.mkdirs(h,u);o=o.map(p=>s.join(h,p)),d();function d(){let p=o.pop();if(!p)return u();a.remove(p,g=>{if(g)return u(g);d()})}})});function t(h){let u;try{u=i.readdirSync(h)}catch{return f.mkdirsSync(h)}u.forEach(c=>{c=s.join(h,c),a.removeSync(c)})}l.exports={emptyDirSync:t,emptydirSync:t,emptyDir:r,emptydir:r}}),vu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=Ye().pathExists;function r(h,u){function c(){s.writeFile(h,"",o=>{if(o)return u(o);u()})}s.stat(h,(o,d)=>{if(!o&&d.isFile())return u();let p=i.dirname(h);a(p,(g,b)=>{if(g)return u(g);if(b)return c();f.mkdirs(p,_=>{if(_)return u(_);c()})})})}function t(h){let u;try{u=s.statSync(h)}catch{}if(u&&u.isFile())return;let c=i.dirname(h);s.existsSync(c)||f.mkdirsSync(c),s.writeFileSync(h,"")}l.exports={createFile:n(r),createFileSync:t}}),_u=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=Ye().pathExists;function r(h,u,c){function o(d,p){s.link(d,p,g=>{if(g)return c(g);c(null)})}a(u,(d,p)=>{if(d)return c(d);if(p)return c(null);s.lstat(h,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),c(g);let b=i.dirname(u);a(b,(_,y)=>{if(_)return c(_);if(y)return o(h,u);f.mkdirs(b,D=>{if(D)return c(D);o(h,u)})})})})}function t(h,u){if(s.existsSync(u))return;try{s.lstatSync(h)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let c=i.dirname(u);return s.existsSync(c)||f.mkdirsSync(c),s.linkSync(h,u)}l.exports={createLink:n(r),createLinkSync:t}}),Eu=M((e,l)=>{"use strict";B();var n=Z("path"),i=we(),s=Ye().pathExists;function f(r,t,h){if(n.isAbsolute(r))return i.lstat(r,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),h(u)):h(null,{toCwd:r,toDst:r}));{let u=n.dirname(t),c=n.join(u,r);return s(c,(o,d)=>o?h(o):d?h(null,{toCwd:c,toDst:r}):i.lstat(r,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),h(p)):h(null,{toCwd:r,toDst:n.relative(u,r)})))}}function a(r,t){let h;if(n.isAbsolute(r)){if(h=i.existsSync(r),!h)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let u=n.dirname(t),c=n.join(u,r);if(h=i.existsSync(c),h)return{toCwd:c,toDst:r};if(h=i.existsSync(r),!h)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(u,r)}}}l.exports={symlinkPaths:f,symlinkPathsSync:a}}),wu=M((e,l)=>{"use strict";B();var n=we();function i(f,a,r){if(r=typeof a=="function"?a:r,a=typeof a=="function"?!1:a,a)return r(null,a);n.lstat(f,(t,h)=>{if(t)return r(null,"file");a=h&&h.isDirectory()?"dir":"file",r(null,a)})}function s(f,a){let r;if(a)return a;try{r=n.lstatSync(f)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:i,symlinkTypeSync:s}}),Du=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Z("path"),s=we(),f=Ge(),a=f.mkdirs,r=f.mkdirsSync,t=Eu(),h=t.symlinkPaths,u=t.symlinkPathsSync,c=wu(),o=c.symlinkType,d=c.symlinkTypeSync,p=Ye().pathExists;function g(_,y,D,w){w=typeof D=="function"?D:w,D=typeof D=="function"?!1:D,p(y,(v,m)=>{if(v)return w(v);if(m)return w(null);h(_,y,(E,S)=>{if(E)return w(E);_=S.toDst,o(S.toCwd,D,(A,k)=>{if(A)return w(A);let L=i.dirname(y);p(L,(T,x)=>{if(T)return w(T);if(x)return s.symlink(_,y,k,w);a(L,O=>{if(O)return w(O);s.symlink(_,y,k,w)})})})})})}function b(_,y,D){if(s.existsSync(y))return;let w=u(_,y);_=w.toDst,D=d(w.toCwd,D);let v=i.dirname(y);return s.existsSync(v)||r(v),s.symlinkSync(_,y,D)}l.exports={createSymlink:n(g),createSymlinkSync:b}}),Su=M((e,l)=>{"use strict";B();var n=vu(),i=_u(),s=Du();l.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}}),Au=M((e,l)=>{B();var n;try{n=we()}catch{n=Z("fs")}function i(u,c,o){o==null&&(o=c,c={}),typeof c=="string"&&(c={encoding:c}),c=c||{};var d=c.fs||n,p=!0;"throws"in c&&(p=c.throws),d.readFile(u,c,function(g,b){if(g)return o(g);b=t(b);var _;try{_=JSON.parse(b,c?c.reviver:null)}catch(y){return p?(y.message=u+": "+y.message,o(y)):o(null,null)}o(null,_)})}function s(u,c){c=c||{},typeof c=="string"&&(c={encoding:c});var o=c.fs||n,d=!0;"throws"in c&&(d=c.throws);try{var p=o.readFileSync(u,c);return p=t(p),JSON.parse(p,c.reviver)}catch(g){if(d)throw g.message=u+": "+g.message,g;return null}}function f(u,c){var o,d=`
|
|
39
|
+
`;typeof c=="object"&&c!==null&&(c.spaces&&(o=c.spaces),c.EOL&&(d=c.EOL));var p=JSON.stringify(u,c?c.replacer:null,o);return p.replace(/\n/g,d)+d}function a(u,c,o,d){d==null&&(d=o,o={}),o=o||{};var p=o.fs||n,g="";try{g=f(c,o)}catch(b){d&&d(b,null);return}p.writeFile(u,g,o,d)}function r(u,c,o){o=o||{};var d=o.fs||n,p=f(c,o);return d.writeFileSync(u,p,o)}function t(u){return Buffer.isBuffer(u)&&(u=u.toString("utf8")),u=u.replace(/^\uFEFF/,""),u}var h={readFile:i,readFileSync:s,writeFile:a,writeFileSync:r};l.exports=h}),Dr=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Au();l.exports={readJson:n(i.readFile),readJsonSync:i.readFileSync,writeJson:n(i.writeFile),writeJsonSync:i.writeFileSync}}),Cu=M((e,l)=>{"use strict";B();var n=Z("path"),i=Ge(),s=Ye().pathExists,f=Dr();function a(r,t,h,u){typeof h=="function"&&(u=h,h={});let c=n.dirname(r);s(c,(o,d)=>{if(o)return u(o);if(d)return f.writeJson(r,t,h,u);i.mkdirs(c,p=>{if(p)return u(p);f.writeJson(r,t,h,u)})})}l.exports=a}),ku=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Ge(),f=Dr();function a(r,t,h){let u=i.dirname(r);n.existsSync(u)||s.mkdirsSync(u),f.writeJsonSync(r,t,h)}l.exports=a}),xu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=Dr();i.outputJson=n(Cu()),i.outputJsonSync=ku(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,l.exports=i}),Fu=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=Mn().copySync,f=Kt().removeSync,a=Ge().mkdirpSync,r=Vt();function t(o,d,p){p=p||{};let g=p.overwrite||p.clobber||!1,{srcStat:b}=r.checkPathsSync(o,d,"move");return r.checkParentPathsSync(o,b,d,"move"),a(i.dirname(d)),h(o,d,g)}function h(o,d,p){if(p)return f(d),u(o,d,p);if(n.existsSync(d))throw new Error("dest already exists.");return u(o,d,p)}function u(o,d,p){try{n.renameSync(o,d)}catch(g){if(g.code!=="EXDEV")throw g;return c(o,d,p)}}function c(o,d,p){return s(o,d,{overwrite:p,errorOnExist:!0}),f(o)}l.exports=t}),Ou=M((e,l)=>{"use strict";B(),l.exports={moveSync:Fu()}}),Ru=M((e,l)=>{"use strict";B();var n=we(),i=Z("path"),s=jn().copy,f=Kt().remove,a=Ge().mkdirp,r=Ye().pathExists,t=Vt();function h(d,p,g,b){typeof g=="function"&&(b=g,g={});let _=g.overwrite||g.clobber||!1;t.checkPaths(d,p,"move",(y,D)=>{if(y)return b(y);let{srcStat:w}=D;t.checkParentPaths(d,w,p,"move",v=>{if(v)return b(v);a(i.dirname(p),m=>m?b(m):u(d,p,_,b))})})}function u(d,p,g,b){if(g)return f(p,_=>_?b(_):c(d,p,g,b));r(p,(_,y)=>_?b(_):y?b(new Error("dest already exists.")):c(d,p,g,b))}function c(d,p,g,b){n.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):o(d,p,g,b):b())}function o(d,p,g,b){s(d,p,{overwrite:g,errorOnExist:!0},_=>_?b(_):f(d,b))}l.exports=h}),Tu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback;l.exports={move:n(Ru())}}),Bu=M((e,l)=>{"use strict";B();var n=Ue().fromCallback,i=we(),s=Z("path"),f=Ge(),a=Ye().pathExists;function r(h,u,c,o){typeof c=="function"&&(o=c,c="utf8");let d=s.dirname(h);a(d,(p,g)=>{if(p)return o(p);if(g)return i.writeFile(h,u,c,o);f.mkdirs(d,b=>{if(b)return o(b);i.writeFile(h,u,c,o)})})}function t(h,...u){let c=s.dirname(h);if(i.existsSync(c))return i.writeFileSync(h,...u);f.mkdirsSync(c),i.writeFileSync(h,...u)}l.exports={outputFile:n(r),outputFileSync:t}}),Pu=M((e,l)=>{"use strict";B(),l.exports=Object.assign({},Pn(),Mn(),jn(),bu(),Su(),xu(),Ge(),Ou(),Tu(),Bu(),Ye(),Kt());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(l.exports,"promises",{get(){return n.promises}})});B();B();var y0=xe(su());B();B();function Lu(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}B();B();function Er(e){return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Er(e)}B();function Iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mu(e,l){if(l&&(Er(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iu(e)}B();function Wt(e){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},Wt(e)}B();B();function Ot(e,l){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ot(e,l)}function ju(e,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),l&&Ot(e,l)}B();B();function Nu(e){return Function.toString.call(e).indexOf("[native code]")!==-1}B();B();function $u(){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 zt(e,l,n){return $u()?zt=Reflect.construct.bind():zt=function(i,s,f){var a=[null];a.push.apply(a,s);var r=Function.bind.apply(i,a),t=new r;return f&&Ot(t,f.prototype),t},zt.apply(null,arguments)}function wr(e){var l=typeof Map=="function"?new Map:void 0;return wr=function(n){if(n===null||!Nu(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l<"u"){if(l.has(n))return l.get(n);l.set(n,i)}function i(){return zt(n,arguments,Wt(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ot(i,n)},wr(e)}var g0=xe(hu()),b0=xe(Pu()),v0=function(e){ju(l,e);function l(n){var i;return Lu(this,l),i=Mu(this,Wt(l).call(this,"No package.json could be found upwards from the directory ".concat(n))),i.directory=n,i}return l}(wr(Error));B();var Uu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function l(i){return i.reduce((s,f)=>[].concat(s,f),[])}e.flatten=l;function n(i,s){let f=[[]],a=0;for(let r of i)s(r)?(a++,f[a]=[]):f[a].push(r);return f}e.splitWhen=n}),Gu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function l(n){return n.code==="ENOENT"}e.isEnoentCodeError=l}),qu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var l=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function n(i,s){return new l(i,s)}e.createDirentFromStats=n}),zu=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var l=Z("path"),n=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function s(t){return t.replace(/\\/g,"/")}e.unixify=s;function f(t,h){return l.resolve(t,h)}e.makeAbsolute=f;function a(t){return t.replace(i,"\\$2")}e.escape=a;function r(t){if(t.charAt(0)==="."){let h=t.charAt(1);if(h==="/"||h==="\\")return t.slice(n)}return t}e.removeLeadingDotSegment=r}),Wu=M((e,l)=>{B(),l.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}),Vu=M((e,l)=>{B();var n=Wu(),i={"{":"}","(":")","[":"]"},s=function(a){if(a[0]==="!")return!0;for(var r=0,t=-2,h=-2,u=-2,c=-2,o=-2;r<a.length;){if(a[r]==="*"||a[r+1]==="?"&&/[\].+)]/.test(a[r])||h!==-1&&a[r]==="["&&a[r+1]!=="]"&&(h<r&&(h=a.indexOf("]",r)),h>r&&(o===-1||o>h||(o=a.indexOf("\\",r),o===-1||o>h)))||u!==-1&&a[r]==="{"&&a[r+1]!=="}"&&(u=a.indexOf("}",r),u>r&&(o=a.indexOf("\\",r),o===-1||o>u))||c!==-1&&a[r]==="("&&a[r+1]==="?"&&/[:!=]/.test(a[r+2])&&a[r+3]!==")"&&(c=a.indexOf(")",r),c>r&&(o=a.indexOf("\\",r),o===-1||o>c))||t!==-1&&a[r]==="("&&a[r+1]!=="|"&&(t<r&&(t=a.indexOf("|",r)),t!==-1&&a[t+1]!==")"&&(c=a.indexOf(")",t),c>t&&(o=a.indexOf("\\",t),o===-1||o>c))))return!0;if(a[r]==="\\"){var d=a[r+1];r+=2;var p=i[d];if(p){var g=a.indexOf(p,r);g!==-1&&(r=g+1)}if(a[r]==="!")return!0}else r++}return!1},f=function(a){if(a[0]==="!")return!0;for(var r=0;r<a.length;){if(/[*?{}()[\]]/.test(a[r]))return!0;if(a[r]==="\\"){var t=a[r+1];r+=2;var h=i[t];if(h){var u=a.indexOf(h,r);u!==-1&&(r=u+1)}if(a[r]==="!")return!0}else r++}return!1};l.exports=function(a,r){if(typeof a!="string"||a==="")return!1;if(n(a))return!0;var t=s;return r&&r.strict===!1&&(t=f),t(a)}}),Ku=M((e,l)=>{"use strict";B();var n=Vu(),i=Z("path").posix.dirname,s=Z("os").platform()==="win32",f="/",a=/\\/g,r=/[\{\[].*[\}\]]$/,t=/(^|[^\\])([\{\[]|\([^\)]+$)/,h=/\\([\!\*\?\|\[\]\(\)\{\}])/g;l.exports=function(u,c){var o=Object.assign({flipBackslashes:!0},c);o.flipBackslashes&&s&&u.indexOf(f)<0&&(u=u.replace(a,f)),r.test(u)&&(u+=f),u+="a";do u=i(u);while(n(u)||t.test(u));return u.replace(h,"$1")}}),Tr=M(e=>{"use strict";B(),e.isInteger=l=>typeof l=="number"?Number.isInteger(l):typeof l=="string"&&l.trim()!==""?Number.isInteger(Number(l)):!1,e.find=(l,n)=>l.nodes.find(i=>i.type===n),e.exceedsLimit=(l,n,i=1,s)=>s===!1||!e.isInteger(l)||!e.isInteger(n)?!1:(Number(n)-Number(l))/Number(i)>=s,e.escapeNode=(l,n=0,i)=>{let s=l.nodes[n];!s||(i&&s.type===i||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},e.encloseBrace=l=>l.type!=="brace"?!1:l.commas>>0+l.ranges>>0===0?(l.invalid=!0,!0):!1,e.isInvalidBrace=l=>l.type!=="brace"?!1:l.invalid===!0||l.dollar?!0:l.commas>>0+l.ranges>>0===0||l.open!==!0||l.close!==!0?(l.invalid=!0,!0):!1,e.isOpenOrClose=l=>l.type==="open"||l.type==="close"?!0:l.open===!0||l.close===!0,e.reduce=l=>l.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]),e.flatten=(...l)=>{let n=[],i=s=>{for(let f=0;f<s.length;f++){let a=s[f];Array.isArray(a)?i(a,n):a!==void 0&&n.push(a)}return n};return i(l),n}}),Br=M((e,l)=>{"use strict";B();var n=Tr();l.exports=(i,s={})=>{let f=(a,r={})=>{let t=s.escapeInvalid&&n.isInvalidBrace(r),h=a.invalid===!0&&s.escapeInvalid===!0,u="";if(a.value)return(t||h)&&n.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let c of a.nodes)u+=f(c);return u};return f(i)}}),Yu=M((e,l)=>{"use strict";B(),l.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),Ju=M((e,l)=>{"use strict";B();var n=Yu(),i=(y,D,w)=>{if(n(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||y===D)return String(y);if(n(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...w};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),E=String(v.shorthand),S=String(v.capture),A=String(v.wrap),k=y+":"+D+"="+m+E+S+A;if(i.cache.hasOwnProperty(k))return i.cache[k].result;let L=Math.min(y,D),T=Math.max(y,D);if(Math.abs(L-T)===1){let R=y+"|"+D;return v.capture?`(${R})`:v.wrap===!1?R:`(?:${R})`}let x=b(y)||b(D),O={min:y,max:D,a:L,b:T},I=[],$=[];if(x&&(O.isPadded=x,O.maxLen=String(O.max).length),L<0){let R=T<0?Math.abs(T):1;$=r(R,Math.abs(L),O,v),L=O.a=0}return T>=0&&(I=r(L,T,O,v)),O.negatives=$,O.positives=I,O.result=s($,I,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&I.length+$.length>1&&(O.result=`(?:${O.result})`),i.cache[k]=O,O.result};function s(y,D,w){let v=t(y,D,"-",!1,w)||[],m=t(D,y,"",!1,w)||[],E=t(y,D,"-?",!0,w)||[];return v.concat(E).concat(m).join("|")}function f(y,D){let w=1,v=1,m=o(y,w),E=new Set([D]);for(;y<=m&&m<=D;)E.add(m),w+=1,m=o(y,w);for(m=d(D+1,v)-1;y<m&&m<=D;)E.add(m),v+=1,m=d(D+1,v)-1;return E=[...E],E.sort(u),E}function a(y,D,w){if(y===D)return{pattern:y,count:[],digits:0};let v=h(y,D),m=v.length,E="",S=0;for(let A=0;A<m;A++){let[k,L]=v[A];k===L?E+=k:k!=="0"||L!=="9"?E+=g(k,L,w):S++}return S&&(E+=w.shorthand===!0?"\\d":"[0-9]"),{pattern:E,count:[S],digits:m}}function r(y,D,w,v){let m=f(y,D),E=[],S=y,A;for(let k=0;k<m.length;k++){let L=m[k],T=a(String(S),String(L),v),x="";if(!w.isPadded&&A&&A.pattern===T.pattern){A.count.length>1&&A.count.pop(),A.count.push(T.count[0]),A.string=A.pattern+p(A.count),S=L+1;continue}w.isPadded&&(x=_(L,w,v)),T.string=x+T.pattern+p(T.count),E.push(T),S=L+1,A=T}return E}function t(y,D,w,v,m){let E=[];for(let S of y){let{string:A}=S;!v&&!c(D,"string",A)&&E.push(w+A),v&&c(D,"string",A)&&E.push(w+A)}return E}function h(y,D){let w=[];for(let v=0;v<y.length;v++)w.push([y[v],D[v]]);return w}function u(y,D){return y>D?1:D>y?-1:0}function c(y,D,w){return y.some(v=>v[D]===w)}function o(y,D){return Number(String(y).slice(0,-D)+"9".repeat(D))}function d(y,D){return y-y%Math.pow(10,D)}function p(y){let[D=0,w=""]=y;return w||D>1?`{${D+(w?","+w:"")}}`:""}function g(y,D,w){return`[${y}${D-y===1?"":"-"}${D}]`}function b(y){return/^-?(0+)\d/.test(y)}function _(y,D,w){if(!D.isPadded)return y;let v=Math.abs(D.maxLen-String(y).length),m=w.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}}`}}i.cache={},i.clearCache=()=>i.cache={},l.exports=i}),ei=M((e,l)=>{"use strict";B();var n=Z("util"),i=Ju(),s=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),f=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),t=v=>{let m=`${v}`,E=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++E]==="0";);return E>0},h=(v,m,E)=>typeof v=="string"||typeof m=="string"?!0:E.stringify===!0,u=(v,m,E)=>{if(m>0){let S=v[0]==="-"?"-":"";S&&(v=v.slice(1)),v=S+v.padStart(S?m-1:m,"0")}return E===!1?String(v):v},c=(v,m)=>{let E=v[0]==="-"?"-":"";for(E&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return E?"-"+v:v},o=(v,m)=>{v.negatives.sort((L,T)=>L<T?-1:L>T?1:0),v.positives.sort((L,T)=>L<T?-1:L>T?1:0);let E=m.capture?"":"?:",S="",A="",k;return v.positives.length&&(S=v.positives.join("|")),v.negatives.length&&(A=`-(${E}${v.negatives.join("|")})`),S&&A?k=`${S}|${A}`:k=S||A,m.wrap?`(${E}${k})`:k},d=(v,m,E,S)=>{if(E)return i(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let k=String.fromCharCode(m);return`[${A}-${k}]`},p=(v,m,E)=>{if(Array.isArray(v)){let S=E.wrap===!0,A=E.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return i(v,m,E)},g=(...v)=>new RangeError("Invalid range arguments: "+n.inspect(...v)),b=(v,m,E)=>{if(E.strictRanges===!0)throw g([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},y=(v,m,E=1,S={})=>{let A=Number(v),k=Number(m);if(!Number.isInteger(A)||!Number.isInteger(k)){if(S.strictRanges===!0)throw g([v,m]);return[]}A===0&&(A=0),k===0&&(k=0);let L=A>k,T=String(v),x=String(m),O=String(E);E=Math.max(Math.abs(E),1);let I=t(T)||t(x)||t(O),$=I?Math.max(T.length,x.length,O.length):0,R=I===!1&&h(v,m,S)===!1,G=S.transform||f(R);if(S.toRegex&&E===1)return d(c(v,$),c(m,$),!0,S);let W={negatives:[],positives:[]},Q=F=>W[F<0?"negatives":"positives"].push(Math.abs(F)),P=[],j=0;for(;L?A>=k:A<=k;)S.toRegex===!0&&E>1?Q(A):P.push(u(G(A,j),$,R)),A=L?A-E:A+E,j++;return S.toRegex===!0?E>1?o(W,S):p(P,null,{wrap:!1,...S}):P},D=(v,m,E=1,S={})=>{if(!r(v)&&v.length>1||!r(m)&&m.length>1)return b(v,m,S);let A=S.transform||(R=>String.fromCharCode(R)),k=`${v}`.charCodeAt(0),L=`${m}`.charCodeAt(0),T=k>L,x=Math.min(k,L),O=Math.max(k,L);if(S.toRegex&&E===1)return d(x,O,!1,S);let I=[],$=0;for(;T?k>=L:k<=L;)I.push(A(k,$)),k=T?k-E:k+E,$++;return S.toRegex===!0?p(I,null,{wrap:!1,options:S}):I},w=(v,m,E,S={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,S);if(typeof E=="function")return w(v,m,1,{transform:E});if(s(E))return w(v,m,0,E);let A={...S};return A.capture===!0&&(A.wrap=!0),E=E||A.step||1,r(E)?r(v)&&r(m)?y(v,m,E,A):D(v,m,Math.max(Math.abs(E),1),A):E!=null&&!s(E)?_(E,A):w(v,m,1,E)};l.exports=w}),Zu=M((e,l)=>{"use strict";B();var n=ei(),i=Tr(),s=(f,a={})=>{let r=(t,h={})=>{let u=i.isInvalidBrace(h),c=t.invalid===!0&&a.escapeInvalid===!0,o=u===!0||c===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(t.isOpen===!0||t.isClose===!0)return d+t.value;if(t.type==="open")return o?d+t.value:"(";if(t.type==="close")return o?d+t.value:")";if(t.type==="comma")return t.prev.type==="comma"?"":o?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){let g=i.reduce(t.nodes),b=n(...g,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return g.length>1&&b.length>1?`(${b})`:b}if(t.nodes)for(let g of t.nodes)p+=r(g,t);return p};return r(f)};l.exports=s}),Xu=M((e,l)=>{"use strict";B();var n=ei(),i=Br(),s=Tr(),f=(r="",t="",h=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return h?s.flatten(t).map(c=>`{${c}}`):t;for(let c of r)if(Array.isArray(c))for(let o of c)u.push(f(o,t,h));else for(let o of t)h===!0&&typeof o=="string"&&(o=`{${o}}`),u.push(Array.isArray(o)?f(c,o,h):c+o);return s.flatten(u)},a=(r,t={})=>{let h=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(c,o={})=>{c.queue=[];let d=o,p=o.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(c.invalid||c.dollar){p.push(f(p.pop(),i(c,t)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){p.push(f(p.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let y=s.reduce(c.nodes);if(s.exceedsLimit(...y,t.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...y,t);D.length===0&&(D=i(c,t)),p.push(f(p.pop(),D)),c.nodes=[];return}let g=s.encloseBrace(c),b=c.queue,_=c;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let y=0;y<c.nodes.length;y++){let D=c.nodes[y];if(D.type==="comma"&&c.type==="brace"){y===1&&b.push(""),b.push("");continue}if(D.type==="close"){p.push(f(p.pop(),b,g));continue}if(D.value&&D.type!=="open"){b.push(f(b.pop(),D.value));continue}D.nodes&&u(D,c)}return b};return s.flatten(u(r))};l.exports=a}),Qu=M((e,l)=>{"use strict";B(),l.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:`
|
|
40
|
+
`,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"}}),el=M((e,l)=>{"use strict";B();var n=Br(),{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:f,CHAR_COMMA:a,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:t,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Qu(),y=(D,w={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=w||{},m=typeof v.maxLength=="number"?Math.min(i,v.maxLength):i;if(D.length>m)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${m})`);let E={type:"root",input:D,nodes:[]},S=[E],A=E,k=E,L=0,T=D.length,x=0,O=0,I,$={},R=()=>D[x++],G=W=>{if(W.type==="text"&&k.type==="dot"&&(k.type="text"),k&&k.type==="text"&&W.type==="text"){k.value+=W.value;return}return A.nodes.push(W),W.parent=A,W.prev=k,k=W,W};for(G({type:"bos"});x<T;)if(A=S[S.length-1],I=R(),!(I===_||I===b)){if(I===s){G({type:"text",value:(w.keepEscaping?I:"")+R()});continue}if(I===d){G({type:"text",value:"\\"+I});continue}if(I===o){L++;let W=!0,Q;for(;x<T&&(Q=R());){if(I+=Q,Q===o){L++;continue}if(Q===s){I+=R();continue}if(Q===d&&(L--,L===0))break}G({type:"text",value:I});continue}if(I===t){A=G({type:"paren",nodes:[]}),S.push(A),G({type:"text",value:I});continue}if(I===h){if(A.type!=="paren"){G({type:"text",value:I});continue}A=S.pop(),G({type:"text",value:I}),A=S[S.length-1];continue}if(I===p||I===g||I===f){let W=I,Q;for(w.keepQuotes!==!0&&(I="");x<T&&(Q=R());){if(Q===s){I+=Q+R();continue}if(Q===W){w.keepQuotes===!0&&(I+=Q);break}I+=Q}G({type:"text",value:I});continue}if(I===u){O++;let W=k.value&&k.value.slice(-1)==="$"||A.dollar===!0;A=G({type:"brace",open:!0,close:!1,dollar:W,depth:O,commas:0,ranges:0,nodes:[]}),S.push(A),G({type:"open",value:I});continue}if(I===c){if(A.type!=="brace"){G({type:"text",value:I});continue}let W="close";A=S.pop(),A.close=!0,G({type:W,value:I}),O--,A=S[S.length-1];continue}if(I===a&&O>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:n(A)}]}G({type:"comma",value:I}),A.commas++;continue}if(I===r&&O>0&&A.commas===0){let W=A.nodes;if(O===0||W.length===0){G({type:"text",value:I});continue}if(k.type==="dot"){if(A.range=[],k.value+=I,k.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,k.type="text";continue}A.ranges++,A.args=[];continue}if(k.type==="range"){W.pop();let Q=W[W.length-1];Q.value+=k.value+I,k=Q,A.ranges--;continue}G({type:"dot",value:I});continue}G({type:"text",value:I})}do if(A=S.pop(),A.type!=="root"){A.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let W=S[S.length-1],Q=W.nodes.indexOf(A);W.nodes.splice(Q,1,...A.nodes)}while(S.length>0);return G({type:"eos"}),E};l.exports=y}),tl=M((e,l)=>{"use strict";B();var n=Br(),i=Zu(),s=Xu(),f=el(),a=(r,t={})=>{let h=[];if(Array.isArray(r))for(let u of r){let c=a.create(u,t);Array.isArray(c)?h.push(...c):h.push(c)}else h=[].concat(a.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(h=[...new Set(h)]),h};a.parse=(r,t={})=>f(r,t),a.stringify=(r,t={})=>n(typeof r=="string"?a.parse(r,t):r,t),a.compile=(r,t={})=>(typeof r=="string"&&(r=a.parse(r,t)),i(r,t)),a.expand=(r,t={})=>{typeof r=="string"&&(r=a.parse(r,t));let h=s(r,t);return t.noempty===!0&&(h=h.filter(Boolean)),t.nodupes===!0&&(h=[...new Set(h)]),h},a.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?a.compile(r,t):a.expand(r,t),l.exports=a}),er=M((e,l)=>{"use strict";B();var n=Z("path"),i="\\\\/",s=`[^${i}]`,f="\\.",a="\\+",r="\\?",t="\\/",h="(?=.)",u="[^/]",c=`(?:${t}|$)`,o=`(?:^|${t})`,d=`${f}{1,2}${c}`,p=`(?!${f})`,g=`(?!${o}${d})`,b=`(?!${f}{0,1}${c})`,_=`(?!${d})`,y=`[^.${t}]`,D=`${u}*?`,w={DOT_LITERAL:f,PLUS_LITERAL:a,QMARK_LITERAL:r,SLASH_LITERAL:t,ONE_CHAR:h,QMARK:u,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:y,STAR:D,START_ANCHOR:o},v={...w,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${f}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${i}])${f}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},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"};l.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:n.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?v:w}}}),tr=M(e=>{"use strict";B();var l=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:a}=er();e.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),e.hasRegexChars=r=>f.test(r),e.isRegexChar=r=>r.length===1&&e.hasRegexChars(r),e.escapeRegex=r=>r.replace(a,"\\$1"),e.toPosixSlashes=r=>r.replace(i,"/"),e.removeBackslashes=r=>r.replace(s,t=>t==="\\"?"":t),e.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},e.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||l.sep==="\\",e.escapeLast=(r,t,h)=>{let u=r.lastIndexOf(t,h);return u===-1?r:r[u-1]==="\\"?e.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`},e.removePrefix=(r,t={})=>{let h=r;return h.startsWith("./")&&(h=h.slice(2),t.prefix="./"),h},e.wrapOutput=(r,t={},h={})=>{let u=h.contains?"":"^",c=h.contains?"":"$",o=`${u}(?:${r})${c}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}}),rl=M((e,l)=>{"use strict";B();var n=tr(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:a,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:t,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=er(),y=v=>v===h||v===f,D=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},w=(v,m)=>{let E=m||{},S=v.length-1,A=E.parts===!0||E.scanToEnd===!0,k=[],L=[],T=[],x=v,O=-1,I=0,$=0,R=!1,G=!1,W=!1,Q=!1,P=!1,j=!1,F=!1,J=!1,q=!1,ee=!1,N=0,K,te,se={value:"",depth:0,isGlob:!1},le=()=>O>=S,ye=()=>x.charCodeAt(O+1),de=()=>(K=te,x.charCodeAt(++O));for(;O<S;){te=de();let X;if(te===f){F=se.backslashes=!0,te=de(),te===u&&(j=!0);continue}if(j===!0||te===u){for(N++;le()!==!0&&(te=de());){if(te===f){F=se.backslashes=!0,de();continue}if(te===u){N++;continue}if(j!==!0&&te===r&&(te=de())===r){if(R=se.isBrace=!0,W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(j!==!0&&te===a){if(R=se.isBrace=!0,W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===g&&(N--,N===0)){j=!1,R=se.isBrace=!0,ee=!0;break}}if(A===!0)continue;break}if(te===h){if(k.push(O),L.push(se),se={value:"",depth:0,isGlob:!1},ee===!0)continue;if(K===r&&O===I+1){I+=2;continue}$=O+1;continue}if(E.noext!==!0&&(te===d||te===s||te===i||te===p||te===t)&&ye()===c){if(W=se.isGlob=!0,Q=se.isExtglob=!0,ee=!0,te===t&&O===I&&(q=!0),A===!0){for(;le()!==!0&&(te=de());){if(te===f){F=se.backslashes=!0,te=de();continue}if(te===b){W=se.isGlob=!0,ee=!0;break}}continue}break}if(te===i){if(K===i&&(P=se.isGlobstar=!0),W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===p){if(W=se.isGlob=!0,ee=!0,A===!0)continue;break}if(te===o){for(;le()!==!0&&(X=de());){if(X===f){F=se.backslashes=!0,de();continue}if(X===_){G=se.isBracket=!0,W=se.isGlob=!0,ee=!0;break}}if(A===!0)continue;break}if(E.nonegate!==!0&&te===t&&O===I){J=se.negated=!0,I++;continue}if(E.noparen!==!0&&te===c){if(W=se.isGlob=!0,A===!0){for(;le()!==!0&&(te=de());){if(te===c){F=se.backslashes=!0,te=de();continue}if(te===b){ee=!0;break}}continue}break}if(W===!0){if(ee=!0,A===!0)continue;break}}E.noext===!0&&(Q=!1,W=!1);let H=x,V="",C="";I>0&&(V=x.slice(0,I),x=x.slice(I),$-=I),H&&W===!0&&$>0?(H=x.slice(0,$),C=x.slice($)):W===!0?(H="",C=x):H=x,H&&H!==""&&H!=="/"&&H!==x&&y(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),E.unescape===!0&&(C&&(C=n.removeBackslashes(C)),H&&F===!0&&(H=n.removeBackslashes(H)));let z={prefix:V,input:v,start:I,base:H,glob:C,isBrace:R,isBracket:G,isGlob:W,isExtglob:Q,isGlobstar:P,negated:J,negatedExtglob:q};if(E.tokens===!0&&(z.maxDepth=0,y(te)||L.push(se),z.tokens=L),E.parts===!0||E.tokens===!0){let X;for(let re=0;re<k.length;re++){let ce=X?X+1:I,ie=k[re],ue=v.slice(ce,ie);E.tokens&&(re===0&&I!==0?(L[re].isPrefix=!0,L[re].value=V):L[re].value=ue,D(L[re]),z.maxDepth+=L[re].depth),(re!==0||ue!=="")&&T.push(ue),X=ie}if(X&&X+1<v.length){let re=v.slice(X+1);T.push(re),E.tokens&&(L[L.length-1].value=re,D(L[L.length-1]),z.maxDepth+=L[L.length-1].depth)}z.slashes=k,z.parts=T}return z};l.exports=w}),nl=M((e,l)=>{"use strict";B();var n=er(),i=tr(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:t}=n,h=(o,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...o,d);o.sort();let p=`[${o.join("-")}]`;try{new RegExp(p)}catch{return o.map(g=>i.escapeRegex(g)).join("..")}return p},u=(o,d)=>`Missing ${o}: "${d}" - use "\\\\${d}" to match literal characters`,c=(o,d)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=t[o]||o;let p={...d},g=typeof p.maxLength=="number"?Math.min(s,p.maxLength):s,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);let _={type:"bos",value:"",output:p.prepend||""},y=[_],D=p.capture?"":"?:",w=i.isWindows(d),v=n.globChars(w),m=n.extglobChars(v),{DOT_LITERAL:E,PLUS_LITERAL:S,SLASH_LITERAL:A,ONE_CHAR:k,DOTS_SLASH:L,NO_DOT:T,NO_DOT_SLASH:x,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:$,STAR:R,START_ANCHOR:G}=v,W=ie=>`(${D}(?:(?!${G}${ie.dot?L:E}).)*?)`,Q=p.dot?"":T,P=p.dot?I:$,j=p.bash===!0?W(p):R;p.capture&&(j=`(${j})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let F={input:o,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:y};o=i.removePrefix(o,F),b=o.length;let J=[],q=[],ee=[],N=_,K,te=()=>F.index===b-1,se=F.peek=(ie=1)=>o[F.index+ie],le=F.advance=()=>o[++F.index]||"",ye=()=>o.slice(F.index+1),de=(ie="",ue=0)=>{F.consumed+=ie,F.index+=ue},H=ie=>{F.output+=ie.output!=null?ie.output:ie.value,de(ie.value)},V=()=>{let ie=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)le(),F.start++,ie++;return ie%2===0?!1:(F.negated=!0,F.start++,!0)},C=ie=>{F[ie]++,ee.push(ie)},z=ie=>{F[ie]--,ee.pop()},X=ie=>{if(N.type==="globstar"){let ue=F.braces>0&&(ie.type==="comma"||ie.type==="brace"),ne=ie.extglob===!0||J.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!ue&&!ne&&(F.output=F.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=j,F.output+=N.output)}if(J.length&&ie.type!=="paren"&&(J[J.length-1].inner+=ie.value),(ie.value||ie.output)&&H(ie),N&&N.type==="text"&&ie.type==="text"){N.value+=ie.value,N.output=(N.output||"")+ie.value;return}ie.prev=N,y.push(ie),N=ie},re=(ie,ue)=>{let ne={...m[ue],conditions:1,inner:""};ne.prev=N,ne.parens=F.parens,ne.output=F.output;let he=(p.capture?"(":"")+ne.open;C("parens"),X({type:ie,value:ue,output:F.output?"":k}),X({type:"paren",extglob:!0,value:le(),output:he}),J.push(ne)},ce=ie=>{let ue=ie.close+(p.capture?")":""),ne;if(ie.type==="negate"){let he=j;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(he=W(p)),(he!==j||te()||/^\)+$/.test(ye()))&&(ue=ie.close=`)$))${he}`),ie.inner.includes("*")&&(ne=ye())&&/^\.[^\\/.]+$/.test(ne)){let be=c(ne,{...d,fastpaths:!1}).output;ue=ie.close=`)${be})${he})`}ie.prev.type==="bos"&&(F.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:K,output:ue}),z("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let ie=!1,ue=o.replace(r,(ne,he,be,De,Y,U)=>De==="\\"?(ie=!0,ne):De==="?"?he?he+De+(Y?I.repeat(Y.length):""):U===0?P+(Y?I.repeat(Y.length):""):I.repeat(be.length):De==="."?E.repeat(be.length):De==="*"?he?he+De+(Y?j:""):j:he?ne:`\\${ne}`);return ie===!0&&(p.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),ue===o&&p.contains===!0?(F.output=o,F):(F.output=i.wrapOutput(ue,F,d),F)}for(;!te();){if(K=le(),K==="\0")continue;if(K==="\\"){let ne=se();if(ne==="/"&&p.bash!==!0||ne==="."||ne===";")continue;if(!ne){K+="\\",X({type:"text",value:K});continue}let he=/^\\+/.exec(ye()),be=0;if(he&&he[0].length>2&&(be=he[0].length,F.index+=be,be%2!==0&&(K+="\\")),p.unescape===!0?K=le():K+=le(),F.brackets===0){X({type:"text",value:K});continue}}if(F.brackets>0&&(K!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&K===":"){let ne=N.value.slice(1);if(ne.includes("[")&&(N.posix=!0,ne.includes(":"))){let he=N.value.lastIndexOf("["),be=N.value.slice(0,he),De=N.value.slice(he+2),Y=f[De];if(Y){N.value=be+Y,F.backtrack=!0,le(),!_.output&&y.indexOf(N)===1&&(_.output=k);continue}}}(K==="["&&se()!==":"||K==="-"&&se()==="]")&&(K=`\\${K}`),K==="]"&&(N.value==="["||N.value==="[^")&&(K=`\\${K}`),p.posix===!0&&K==="!"&&N.value==="["&&(K="^"),N.value+=K,H({value:K});continue}if(F.quotes===1&&K!=='"'){K=i.escapeRegex(K),N.value+=K,H({value:K});continue}if(K==='"'){F.quotes=F.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:K});continue}if(K==="("){C("parens"),X({type:"paren",value:K});continue}if(K===")"){if(F.parens===0&&p.strictBrackets===!0)throw new SyntaxError(u("opening","("));let ne=J[J.length-1];if(ne&&F.parens===ne.parens+1){ce(J.pop());continue}X({type:"paren",value:K,output:F.parens?")":"\\)"}),z("parens");continue}if(K==="["){if(p.nobracket===!0||!ye().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(u("closing","]"));K=`\\${K}`}else C("brackets");X({type:"bracket",value:K});continue}if(K==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:K,output:`\\${K}`});continue}if(F.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(u("opening","["));X({type:"text",value:K,output:`\\${K}`});continue}z("brackets");let ne=N.value.slice(1);if(N.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(K=`/${K}`),N.value+=K,H({value:K}),p.literalBrackets===!1||i.hasRegexChars(ne))continue;let he=i.escapeRegex(N.value);if(F.output=F.output.slice(0,-N.value.length),p.literalBrackets===!0){F.output+=he,N.value=he;continue}N.value=`(${D}${he}|${N.value})`,F.output+=N.value;continue}if(K==="{"&&p.nobrace!==!0){C("braces");let ne={type:"brace",value:K,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};q.push(ne),X(ne);continue}if(K==="}"){let ne=q[q.length-1];if(p.nobrace===!0||!ne){X({type:"text",value:K,output:K});continue}let he=")";if(ne.dots===!0){let be=y.slice(),De=[];for(let Y=be.length-1;Y>=0&&(y.pop(),be[Y].type!=="brace");Y--)be[Y].type!=="dots"&&De.unshift(be[Y].value);he=h(De,p),F.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let be=F.output.slice(0,ne.outputIndex),De=F.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",K=he="\\}",F.output=be;for(let Y of De)F.output+=Y.output||Y.value}X({type:"brace",value:K,output:he}),z("braces"),q.pop();continue}if(K==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:K});continue}if(K===","){let ne=K,he=q[q.length-1];he&&ee[ee.length-1]==="braces"&&(he.comma=!0,ne="|"),X({type:"comma",value:K,output:ne});continue}if(K==="/"){if(N.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",y.pop(),N=_;continue}X({type:"slash",value:K,output:A});continue}if(K==="."){if(F.braces>0&&N.type==="dot"){N.value==="."&&(N.output=E);let ne=q[q.length-1];N.type="dots",N.output+=K,N.value+=K,ne.dots=!0;continue}if(F.braces+F.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:K,output:E});continue}X({type:"dot",value:K,output:E});continue}if(K==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&se()==="("&&se(2)!=="?"){re("qmark",K);continue}if(N&&N.type==="paren"){let ne=se(),he=K;if(ne==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(ye()))&&(he=`\\${K}`),X({type:"text",value:K,output:he});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:K,output:$});continue}X({type:"qmark",value:K,output:I});continue}if(K==="!"){if(p.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){re("negate",K);continue}if(p.nonegate!==!0&&F.index===0){V();continue}}if(K==="+"){if(p.noextglob!==!0&&se()==="("&&se(2)!=="?"){re("plus",K);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:K,output:S});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||F.parens>0){X({type:"plus",value:K});continue}X({type:"plus",value:S});continue}if(K==="@"){if(p.noextglob!==!0&&se()==="("&&se(2)!=="?"){X({type:"at",extglob:!0,value:K,output:""});continue}X({type:"text",value:K});continue}if(K!=="*"){(K==="$"||K==="^")&&(K=`\\${K}`);let ne=a.exec(ye());ne&&(K+=ne[0],F.index+=ne[0].length),X({type:"text",value:K});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=K,N.output=j,F.backtrack=!0,F.globstar=!0,de(K);continue}let ie=ye();if(p.noextglob!==!0&&/^\([^?]/.test(ie)){re("star",K);continue}if(N.type==="star"){if(p.noglobstar===!0){de(K);continue}let ne=N.prev,he=ne.prev,be=ne.type==="slash"||ne.type==="bos",De=he&&(he.type==="star"||he.type==="globstar");if(p.bash===!0&&(!be||ie[0]&&ie[0]!=="/")){X({type:"star",value:K,output:""});continue}let Y=F.braces>0&&(ne.type==="comma"||ne.type==="brace"),U=J.length&&(ne.type==="pipe"||ne.type==="paren");if(!be&&ne.type!=="paren"&&!Y&&!U){X({type:"star",value:K,output:""});continue}for(;ie.slice(0,3)==="/**";){let oe=o[F.index+4];if(oe&&oe!=="/")break;ie=ie.slice(3),de("/**",3)}if(ne.type==="bos"&&te()){N.type="globstar",N.value+=K,N.output=W(p),F.output=N.output,F.globstar=!0,de(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!De&&te()){F.output=F.output.slice(0,-(ne.output+N.output).length),ne.output=`(?:${ne.output}`,N.type="globstar",N.output=W(p)+(p.strictSlashes?")":"|$)"),N.value+=K,F.globstar=!0,F.output+=ne.output+N.output,de(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ie[0]==="/"){let oe=ie[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(ne.output+N.output).length),ne.output=`(?:${ne.output}`,N.type="globstar",N.output=`${W(p)}${A}|${A}${oe})`,N.value+=K,F.output+=ne.output+N.output,F.globstar=!0,de(K+le()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ie[0]==="/"){N.type="globstar",N.value+=K,N.output=`(?:^|${A}|${W(p)}${A})`,F.output=N.output,F.globstar=!0,de(K+le()),X({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-N.output.length),N.type="globstar",N.output=W(p),N.value+=K,F.output+=N.output,F.globstar=!0,de(K);continue}let ue={type:"star",value:K,output:j};if(p.bash===!0){ue.output=".*?",(N.type==="bos"||N.type==="slash")&&(ue.output=Q+ue.output),X(ue);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){ue.output=K,X(ue);continue}(F.index===F.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(F.output+=x,N.output+=x):p.dot===!0?(F.output+=O,N.output+=O):(F.output+=Q,N.output+=Q),se()!=="*"&&(F.output+=k,N.output+=k)),X(ue)}for(;F.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing","]"));F.output=i.escapeLast(F.output,"["),z("brackets")}for(;F.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing",")"));F.output=i.escapeLast(F.output,"("),z("parens")}for(;F.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(u("closing","}"));F.output=i.escapeLast(F.output,"{"),z("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),F.backtrack===!0){F.output="";for(let ie of F.tokens)F.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(F.output+=ie.suffix)}return F};c.fastpaths=(o,d)=>{let p={...d},g=typeof p.maxLength=="number"?Math.min(s,p.maxLength):s,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);o=t[o]||o;let _=i.isWindows(d),{DOT_LITERAL:y,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:E,NO_DOTS_SLASH:S,STAR:A,START_ANCHOR:k}=n.globChars(_),L=p.dot?E:m,T=p.dot?S:m,x=p.capture?"":"?:",O={negated:!1,prefix:""},I=p.bash===!0?".*?":A;p.capture&&(I=`(${I})`);let $=Q=>Q.noglobstar===!0?I:`(${x}(?:(?!${k}${Q.dot?v:y}).)*?)`,R=Q=>{switch(Q){case"*":return`${L}${w}${I}`;case".*":return`${y}${w}${I}`;case"*.*":return`${L}${I}${y}${w}${I}`;case"*/*":return`${L}${I}${D}${w}${T}${I}`;case"**":return L+$(p);case"**/*":return`(?:${L}${$(p)}${D})?${T}${w}${I}`;case"**/*.*":return`(?:${L}${$(p)}${D})?${T}${I}${y}${w}${I}`;case"**/.*":return`(?:${L}${$(p)}${D})?${y}${w}${I}`;default:{let P=/^(.*?)\.(\w+)$/.exec(Q);if(!P)return;let j=R(P[1]);return j?j+y+P[2]:void 0}}},G=i.removePrefix(o,O),W=R(G);return W&&p.strictSlashes!==!0&&(W+=`${D}?`),W},l.exports=c}),il=M((e,l)=>{"use strict";B();var n=Z("path"),i=rl(),s=nl(),f=tr(),a=er(),r=h=>h&&typeof h=="object"&&!Array.isArray(h),t=(h,u,c=!1)=>{if(Array.isArray(h)){let D=h.map(w=>t(w,u,c));return w=>{for(let v of D){let m=v(w);if(m)return m}return!1}}let o=r(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=u||{},p=f.isWindows(u),g=o?t.compileRe(h,u):t.makeRe(h,u,!1,!0),b=g.state;delete g.state;let _=()=>!1;if(d.ignore){let D={...u,ignore:null,onMatch:null,onResult:null};_=t(d.ignore,D,c)}let y=(D,w=!1)=>{let{isMatch:v,match:m,output:E}=t.test(D,g,u,{glob:h,posix:p}),S={glob:h,state:b,regex:g,posix:p,input:D,output:E,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(S),v===!1?(S.isMatch=!1,w?S:!1):_(D)?(typeof d.onIgnore=="function"&&d.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof d.onMatch=="function"&&d.onMatch(S),w?S:!0)};return c&&(y.state=b),y};t.test=(h,u,c,{glob:o,posix:d}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};let p=c||{},g=p.format||(d?f.toPosixSlashes:null),b=h===o,_=b&&g?g(h):h;return b===!1&&(_=g?g(h):h,b=_===o),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=t.matchBase(h,u,c,d):b=u.exec(_)),{isMatch:Boolean(b),match:b,output:_}},t.matchBase=(h,u,c,o=f.isWindows(c))=>(u instanceof RegExp?u:t.makeRe(u,c)).test(n.basename(h)),t.isMatch=(h,u,c)=>t(u,c)(h),t.parse=(h,u)=>Array.isArray(h)?h.map(c=>t.parse(c,u)):s(h,{...u,fastpaths:!1}),t.scan=(h,u)=>i(h,u),t.compileRe=(h,u,c=!1,o=!1)=>{if(c===!0)return h.output;let d=u||{},p=d.contains?"":"^",g=d.contains?"":"$",b=`${p}(?:${h.output})${g}`;h&&h.negated===!0&&(b=`^(?!${b}).*$`);let _=t.toRegex(b,u);return o===!0&&(_.state=h),_},t.makeRe=(h,u={},c=!1,o=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(d.output=s.fastpaths(h,u)),d.output||(d=s(h,u)),t.compileRe(d,u,c,o)},t.toRegex=(h,u)=>{try{let c=u||{};return new RegExp(h,c.flags||(c.nocase?"i":""))}catch(c){if(u&&u.debug===!0)throw c;return/$^/}},t.constants=a,l.exports=t}),sl=M((e,l)=>{"use strict";B(),l.exports=il()}),ol=M((e,l)=>{"use strict";B();var n=Z("util"),i=tl(),s=sl(),f=tr(),a=t=>t===""||t==="./",r=(t,h,u)=>{h=[].concat(h),t=[].concat(t);let c=new Set,o=new Set,d=new Set,p=0,g=_=>{d.add(_.output),u&&u.onResult&&u.onResult(_)};for(let _=0;_<h.length;_++){let y=s(String(h[_]),{...u,onResult:g},!0),D=y.state.negated||y.state.negatedExtglob;D&&p++;for(let w of t){let v=y(w,!0);!(D?!v.isMatch:v.isMatch)||(D?c.add(v.output):(c.delete(v.output),o.add(v.output)))}}let b=(p===h.length?[...d]:[...o]).filter(_=>!c.has(_));if(u&&b.length===0){if(u.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(u.nonull===!0||u.nullglob===!0)return u.unescape?h.map(_=>_.replace(/\\/g,"")):h}return b};r.match=r,r.matcher=(t,h)=>s(t,h),r.isMatch=(t,h,u)=>s(h,u)(t),r.any=r.isMatch,r.not=(t,h,u={})=>{h=[].concat(h).map(String);let c=new Set,o=[],d=g=>{u.onResult&&u.onResult(g),o.push(g.output)},p=new Set(r(t,h,{...u,onResult:d}));for(let g of o)p.has(g)||c.add(g);return[...c]},r.contains=(t,h,u)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);if(Array.isArray(h))return h.some(c=>r.contains(t,c,u));if(typeof h=="string"){if(a(t)||a(h))return!1;if(t.includes(h)||t.startsWith("./")&&t.slice(2).includes(h))return!0}return r.isMatch(t,h,{...u,contains:!0})},r.matchKeys=(t,h,u)=>{if(!f.isObject(t))throw new TypeError("Expected the first argument to be an object");let c=r(Object.keys(t),h,u),o={};for(let d of c)o[d]=t[d];return o},r.some=(t,h,u)=>{let c=[].concat(t);for(let o of[].concat(h)){let d=s(String(o),u);if(c.some(p=>d(p)))return!0}return!1},r.every=(t,h,u)=>{let c=[].concat(t);for(let o of[].concat(h)){let d=s(String(o),u);if(!c.every(p=>d(p)))return!1}return!0},r.all=(t,h,u)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);return[].concat(h).every(c=>s(c,u)(t))},r.capture=(t,h,u)=>{let c=f.isWindows(u),o=s.makeRe(String(t),{...u,capture:!0}).exec(c?f.toPosixSlashes(h):h);if(o)return o.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...t)=>s.makeRe(...t),r.scan=(...t)=>s.scan(...t),r.parse=(t,h)=>{let u=[];for(let c of[].concat(t||[]))for(let o of i(String(c),h))u.push(s.parse(o,h));return u},r.braces=(t,h)=>{if(typeof t!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(t)?[t]:i(t,h)},r.braceExpand=(t,h)=>{if(typeof t!="string")throw new TypeError("Expected a string");return r.braces(t,{...h,expand:!0})},l.exports=r}),al=M(e=>{"use strict";B(),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 l=Z("path"),n=Ku(),i=ol(),s="**",f="\\",a=/[*?]|^!/,r=/\[[^[]*]/,t=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,h=/[!*+?@]\([^(]*\)/,u=/,|\.\./;function c(R,G={}){return!o(R,G)}e.isStaticPattern=c;function o(R,G={}){return R===""?!1:!!(G.caseSensitiveMatch===!1||R.includes(f)||a.test(R)||r.test(R)||t.test(R)||G.extglob!==!1&&h.test(R)||G.braceExpansion!==!1&&d(R))}e.isDynamicPattern=o;function d(R){let G=R.indexOf("{");if(G===-1)return!1;let W=R.indexOf("}",G+1);if(W===-1)return!1;let Q=R.slice(G,W);return u.test(Q)}function p(R){return b(R)?R.slice(1):R}e.convertToPositivePattern=p;function g(R){return"!"+R}e.convertToNegativePattern=g;function b(R){return R.startsWith("!")&&R[1]!=="("}e.isNegativePattern=b;function _(R){return!b(R)}e.isPositivePattern=_;function y(R){return R.filter(b)}e.getNegativePatterns=y;function D(R){return R.filter(_)}e.getPositivePatterns=D;function w(R){return R.filter(G=>!m(G))}e.getPatternsInsideCurrentDirectory=w;function v(R){return R.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(R){return R.startsWith("..")||R.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function E(R){return n(R,{flipBackslashes:!1})}e.getBaseDirectory=E;function S(R){return R.includes(s)}e.hasGlobStar=S;function A(R){return R.endsWith("/"+s)}e.endsWithSlashGlobStar=A;function k(R){let G=l.basename(R);return A(R)||c(G)}e.isAffectDepthOfReadingPattern=k;function L(R){return R.reduce((G,W)=>G.concat(T(W)),[])}e.expandPatternsWithBraceExpansion=L;function T(R){return i.braces(R,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function x(R,G){let{parts:W}=i.scan(R,Object.assign(Object.assign({},G),{parts:!0}));return W.length===0&&(W=[R]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}e.getPatternParts=x;function O(R,G){return i.makeRe(R,G)}e.makeRe=O;function I(R,G){return R.map(W=>O(W,G))}e.convertPatternsToRe=I;function $(R,G){return G.some(W=>W.test(R))}e.matchAny=$}),ul=M((e,l)=>{"use strict";B();var n=Z("stream"),i=n.PassThrough,s=Array.prototype.slice;l.exports=f;function f(){let r=[],t=s.call(arguments),h=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let c=u.end!==!1,o=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let d=i(u);function p(){for(let _=0,y=arguments.length;_<y;_++)r.push(a(arguments[_],u));return g(),this}function g(){if(h)return;h=!0;let _=r.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let y=_.length+1;function D(){--y>0||(h=!1,g())}function w(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),o&&v.removeListener("error",E),D()}function E(S){d.emit("error",S)}if(v._readableState.endEmitted)return D();v.on("merge2UnpipeEnd",m),v.on("end",m),o&&v.on("error",E),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)w(_[v]);D()}function b(){h=!1,d.emit("queueDrain"),c&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),t.length&&p.apply(null,t),d}function a(r,t){if(Array.isArray(r))for(let h=0,u=r.length;h<u;h++)r[h]=a(r[h],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(i(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),ll=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var l=ul();function n(s){let f=l(s);return s.forEach(a=>{a.once("error",r=>f.emit("error",r))}),f.once("close",()=>i(s)),f.once("end",()=>i(s)),f}e.merge=n;function i(s){s.forEach(f=>f.emit("close"))}}),cl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function l(i){return typeof i=="string"}e.isString=l;function n(i){return i===""}e.isEmpty=n}),rt=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var l=Uu();e.array=l;var n=Gu();e.errno=n;var i=qu();e.fs=i;var s=zu();e.path=s;var f=al();e.pattern=f;var a=ll();e.stream=a;var r=cl();e.string=r}),hl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var l=rt();function n(h,u){let c=s(h),o=f(h,u.ignore),d=c.filter(_=>l.pattern.isStaticPattern(_,u)),p=c.filter(_=>l.pattern.isDynamicPattern(_,u)),g=i(d,o,!1),b=i(p,o,!0);return g.concat(b)}e.generate=n;function i(h,u,c){let o=[],d=l.pattern.getPatternsOutsideCurrentDirectory(h),p=l.pattern.getPatternsInsideCurrentDirectory(h),g=a(d),b=a(p);return o.push(...r(g,u,c)),"."in b?o.push(t(".",p,u,c)):o.push(...r(b,u,c)),o}e.convertPatternsToTasks=i;function s(h){return l.pattern.getPositivePatterns(h)}e.getPositivePatterns=s;function f(h,u){return l.pattern.getNegativePatterns(h).concat(u).map(l.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=f;function a(h){let u={};return h.reduce((c,o)=>{let d=l.pattern.getBaseDirectory(o);return d in c?c[d].push(o):c[d]=[o],c},u)}e.groupPatternsByBaseDirectory=a;function r(h,u,c){return Object.keys(h).map(o=>t(o,h[o],u,c))}e.convertPatternGroupsToTasks=r;function t(h,u,c,o){return{dynamic:o,positive:u,negative:c,base:h,patterns:[].concat(u,c.map(l.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=t}),pl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var l=/(?!^)\/{2,}/g;function n(s){return s.map(f=>i(f))}e.transform=n;function i(s){return s.replace(l,"/")}e.removeDuplicateSlashes=i}),fl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function l(s,f,a){f.fs.lstat(s,(r,t)=>{if(r!==null){n(a,r);return}if(!t.isSymbolicLink()||!f.followSymbolicLink){i(a,t);return}f.fs.stat(s,(h,u)=>{if(h!==null){if(f.throwErrorOnBrokenSymbolicLink){n(a,h);return}i(a,t);return}f.markSymbolicLink&&(u.isSymbolicLink=()=>!0),i(a,u)})})}e.read=l;function n(s,f){s(f)}function i(s,f){s(null,f)}}),dl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function l(n,i){let s=i.fs.lstatSync(n);if(!s.isSymbolicLink()||!i.followSymbolicLink)return s;try{let f=i.fs.statSync(n);return i.markSymbolicLink&&(f.isSymbolicLink=()=>!0),f}catch(f){if(!i.throwErrorOnBrokenSymbolicLink)return s;throw f}}e.read=l}),ml=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}),yl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=ml(),n=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=l.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,s){return i!=null?i:s}};e.default=n}),_t=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var l=fl(),n=dl(),i=yl();e.Settings=i.default;function s(r,t,h){if(typeof t=="function"){l.read(r,a(),t);return}l.read(r,a(t),h)}e.stat=s;function f(r,t){let h=a(t);return n.read(r,h)}e.statSync=f;function a(r={}){return r instanceof i.default?r:new i.default(r)}}),gl=M((e,l)=>{B();var n;l.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(n||(n=Promise.resolve())).then(i).catch(s=>setTimeout(()=>{throw s},0))}),bl=M((e,l)=>{B(),l.exports=i;var n=gl();function i(s,f){let a,r,t,h=!0;Array.isArray(s)?(a=[],r=s.length):(t=Object.keys(s),a={},r=t.length);function u(o){function d(){f&&f(o,a),f=null}h?n(d):d()}function c(o,d,p){a[o]=p,(--r===0||d)&&u(d)}r?t?t.forEach(function(o){s[o](function(d,p){c(o,d,p)})}):s.forEach(function(o,d){o(function(p,g){c(d,p,g)})}):u(null),h=!1}}),ti=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var l=process.versions.node.split(".");if(l[0]===void 0||l[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(l[0],10),i=Number.parseInt(l[1],10),s=10,f=10,a=n>s,r=n===s&&i>=f;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||r}),vl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var l=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function n(i,s){return new l(i,s)}e.createDirentFromStats=n}),ri=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var l=vl();e.fs=l}),ni=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function l(n,i,s){return n.endsWith(s)?n+i:n+s+i}e.joinPathSegments=l}),_l=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var l=_t(),n=bl(),i=ti(),s=ri(),f=ni();function a(o,d,p){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(o,d,p);return}h(o,d,p)}e.read=a;function r(o,d,p){d.fs.readdir(o,{withFileTypes:!0},(g,b)=>{if(g!==null){u(p,g);return}let _=b.map(D=>({dirent:D,name:D.name,path:f.joinPathSegments(o,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){c(p,_);return}let y=_.map(D=>t(D,d));n(y,(D,w)=>{if(D!==null){u(p,D);return}c(p,w)})})}e.readdirWithFileTypes=r;function t(o,d){return p=>{if(!o.dirent.isSymbolicLink()){p(null,o);return}d.fs.stat(o.path,(g,b)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){p(g);return}p(null,o);return}o.dirent=s.fs.createDirentFromStats(o.name,b),p(null,o)})}}function h(o,d,p){d.fs.readdir(o,(g,b)=>{if(g!==null){u(p,g);return}let _=b.map(y=>{let D=f.joinPathSegments(o,y,d.pathSegmentSeparator);return w=>{l.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){w(v);return}let E={name:y,path:D,dirent:s.fs.createDirentFromStats(y,m)};d.stats&&(E.stats=m),w(null,E)})}});n(_,(y,D)=>{if(y!==null){u(p,y);return}c(p,D)})})}e.readdir=h;function u(o,d){o(d)}function c(o,d){o(null,d)}}),El=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var l=_t(),n=ti(),i=ri(),s=ni();function f(t,h){return!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(t,h):r(t,h)}e.read=f;function a(t,h){return h.fs.readdirSync(t,{withFileTypes:!0}).map(u=>{let c={dirent:u,name:u.name,path:s.joinPathSegments(t,u.name,h.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&h.followSymbolicLinks)try{let o=h.fs.statSync(c.path);c.dirent=i.fs.createDirentFromStats(c.name,o)}catch(o){if(h.throwErrorOnBrokenSymbolicLink)throw o}return c})}e.readdirWithFileTypes=a;function r(t,h){return h.fs.readdirSync(t).map(u=>{let c=s.joinPathSegments(t,u,h.pathSegmentSeparator),o=l.statSync(c,h.fsStatSettings),d={name:u,path:c,dirent:i.fs.createDirentFromStats(u,o)};return h.stats&&(d.stats=o),d})}e.readdir=r}),wl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}),Dl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=_t(),i=wl(),s=class{constructor(f={}){this._options=f,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(f,a){return f!=null?f:a}};e.default=s}),Pr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var l=_l(),n=El(),i=Dl();e.Settings=i.default;function s(r,t,h){if(typeof t=="function"){l.read(r,a(),t);return}l.read(r,a(t),h)}e.scandir=s;function f(r,t){let h=a(t);return n.read(r,h)}e.scandirSync=f;function a(r={}){return r instanceof i.default?r:new i.default(r)}}),Sl=M((e,l)=>{"use strict";B();function n(i){var s=new i,f=s;function a(){var t=s;return t.next?s=t.next:(s=new i,f=s),t.next=null,t}function r(t){f.next=t,f=t}return{get:a,release:r}}l.exports=n}),Al=M((e,l)=>{"use strict";B();var n=Sl();function i(r,t,h){if(typeof r=="function"&&(h=t,t=r,r=null),h<1)throw new Error("fastqueue concurrency must be greater than 1");var u=n(f),c=null,o=null,d=0,p=null,g={push:m,drain:s,saturated:s,pause:_,paused:!1,concurrency:h,running:b,resume:w,idle:v,length:y,getQueue:D,unshift:E,empty:s,kill:A,killAndDrain:k,error:L};return g;function b(){return d}function _(){g.paused=!0}function y(){for(var T=c,x=0;T;)T=T.next,x++;return x}function D(){for(var T=c,x=[];T;)x.push(T.value),T=T.next;return x}function w(){if(g.paused){g.paused=!1;for(var T=0;T<g.concurrency;T++)d++,S()}}function v(){return d===0&&g.length()===0}function m(T,x){var O=u.get();O.context=r,O.release=S,O.value=T,O.callback=x||s,O.errorHandler=p,d===g.concurrency||g.paused?o?(o.next=O,o=O):(c=O,o=O,g.saturated()):(d++,t.call(r,O.value,O.worked))}function E(T,x){var O=u.get();O.context=r,O.release=S,O.value=T,O.callback=x||s,d===g.concurrency||g.paused?c?(O.next=c,c=O):(c=O,o=O,g.saturated()):(d++,t.call(r,O.value,O.worked))}function S(T){T&&u.release(T);var x=c;x?g.paused?d--:(o===c&&(o=null),c=x.next,x.next=null,t.call(r,x.value,x.worked),o===null&&g.empty()):--d===0&&g.drain()}function A(){c=null,o=null,g.drain=s}function k(){c=null,o=null,g.drain(),g.drain=s}function L(T){p=T}}function s(){}function f(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null,this.errorHandler=null;var r=this;this.worked=function(t,h){var u=r.callback,c=r.errorHandler,o=r.value;r.value=null,r.callback=s,r.errorHandler&&c(t,o),u.call(r.context,t,h),r.release(r)}}function a(r,t,h){typeof r=="function"&&(h=t,t=r,r=null);function u(_,y){t.call(this,_).then(function(D){y(null,D)},y)}var c=i(r,u,h),o=c.push,d=c.unshift;return c.push=p,c.unshift=g,c.drained=b,c;function p(_){var y=new Promise(function(D,w){o(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(s),y}function g(_){var y=new Promise(function(D,w){d(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(s),y}function b(){var _=c.drain,y=new Promise(function(D){c.drain=function(){_(),D()}});return y}}l.exports=i,l.exports.promise=a}),Lr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function l(f,a){return f.errorFilter===null?!0:!f.errorFilter(a)}e.isFatalError=l;function n(f,a){return f===null||f(a)}e.isAppliedFilter=n;function i(f,a){return f.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=i;function s(f,a,r){return f===""?a:f.endsWith(r)?f+a:f+r+a}e.joinPathSegments=s}),ii=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Lr(),n=class{constructor(i,s){this._root=i,this._settings=s,this._root=l.replacePathSegmentSeparator(i,s.pathSegmentSeparator)}};e.default=n}),si=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("events"),n=Pr(),i=Al(),s=Lr(),f=ii(),a=class extends f.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=n.scandir,this._emitter=new l.EventEmitter,this._queue=i(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 h={directory:r,base:t};this._queue.push(h,u=>{u!==null&&this._handleError(u)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(h,u)=>{if(h!==null){t(h,void 0);return}for(let c of u)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!s.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 h=r.path;t!==void 0&&(r.path=s.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(h,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};e.default=a}),Cl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=si(),n=class{constructor(f,a){this._root=f,this._settings=a,this._reader=new l.default(this._root,this._settings),this._storage=[]}read(f){this._reader.onError(a=>{i(f,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{s(f,this._storage)}),this._reader.read()}};e.default=n;function i(f,a){f(a)}function s(f,a){f(null,a)}}),kl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=si(),i=class{constructor(s,f){this._root=s,this._settings=f,this._reader=new n.default(this._root,this._settings),this._stream=new l.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(s=>{this._stream.emit("error",s)}),this._reader.onEntry(s=>{this._stream.push(s)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),xl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Pr(),n=Lr(),i=ii(),s=class extends i.default{constructor(){super(...arguments),this._scandir=l.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(f,a){this._queue.add({directory:f,base:a})}_handleQueue(){for(let f of this._queue.values())this._handleDirectory(f.directory,f.base)}_handleDirectory(f,a){try{let r=this._scandir(f,this._settings.fsScandirSettings);for(let t of r)this._handleEntry(t,a)}catch(r){this._handleError(r)}}_handleError(f){if(n.isFatalError(this._settings,f))throw f}_handleEntry(f,a){let r=f.path;a!==void 0&&(f.path=n.joinPathSegments(a,f.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,f)&&this._pushToStorage(f),f.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,f)&&this._pushToQueue(r,a===void 0?void 0:f.path)}_pushToStorage(f){this._storage.push(f)}};e.default=s}),Fl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=xl(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new l.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=n}),Ol=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=Pr(),i=class{constructor(s={}){this._options=s,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,l.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(s,f){return s!=null?s:f}};e.default=i}),Ir=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var l=Cl(),n=kl(),i=Fl(),s=Ol();e.Settings=s.default;function f(h,u,c){if(typeof u=="function"){new l.default(h,t()).read(u);return}new l.default(h,t(u)).read(c)}e.walk=f;function a(h,u){let c=t(u);return new i.default(h,c).read()}e.walkSync=a;function r(h,u){let c=t(u);return new n.default(h,c).read()}e.walkStream=r;function t(h={}){return h instanceof s.default?h:new s.default(h)}}),Mr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=_t(),i=rt(),s=class{constructor(f){this._settings=f,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(f){return l.resolve(this._settings.cwd,f)}_makeEntry(f,a){let r={name:a,path:a,dirent:i.fs.createDirentFromStats(a,f)};return this._settings.stats&&(r.stats=f),r}_isFatalError(f){return!i.errno.isEnoentCodeError(f)&&!this._settings.suppressErrors}};e.default=s}),oi=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=_t(),i=Ir(),s=Mr(),f=class extends s.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=n.stat}dynamic(a,r){return this._walkStream(a,r)}static(a,r){let t=a.map(this._getFullEntryPath,this),h=new l.PassThrough({objectMode:!0});h._write=(u,c,o)=>this._getEntry(t[u],a[u],r).then(d=>{d!==null&&r.entryFilter(d)&&h.push(d),u===t.length-1&&h.end(),o()}).catch(o);for(let u=0;u<t.length;u++)h.write(u);return h}_getEntry(a,r,t){return this._getStat(a).then(h=>this._makeEntry(h,r)).catch(h=>{if(t.errorFilter(h))return null;throw h})}_getStat(a){return new Promise((r,t)=>{this._stat(a,this._fsStatSettings,(h,u)=>h===null?r(u):t(h))})}};e.default=f}),Rl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Ir(),n=Mr(),i=oi(),s=class extends n.default{constructor(){super(...arguments),this._walkAsync=l.walk,this._readerStream=new i.default(this._settings)}dynamic(f,a){return new Promise((r,t)=>{this._walkAsync(f,a,(h,u)=>{h===null?r(u):t(h)})})}async static(f,a){let r=[],t=this._readerStream.static(f,a);return new Promise((h,u)=>{t.once("error",u),t.on("data",c=>r.push(c)),t.once("end",()=>h(r))})}};e.default=s}),Tl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i,s,f){this._patterns=i,this._settings=s,this._micromatchOptions=f,this._storage=[],this._fillStorage()}_fillStorage(){let i=l.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let s of i){let f=this._getPatternSegments(s),a=this._splitSegmentsIntoSections(f);this._storage.push({complete:a.length<=1,pattern:s,segments:f,sections:a})}}_getPatternSegments(i){return l.pattern.getPatternParts(i,this._micromatchOptions).map(s=>l.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:l.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(i){return l.array.splitWhen(i,s=>s.dynamic&&l.pattern.hasGlobStar(s.pattern))}};e.default=n}),Bl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Tl(),n=class extends l.default{match(i){let s=i.split("/"),f=s.length,a=this._storage.filter(r=>!r.complete||r.segments.length>f);for(let r of a){let t=r.sections[0];if(!r.complete&&f>t.length||s.every((h,u)=>{let c=r.segments[u];return!!(c.dynamic&&c.patternRe.test(h)||!c.dynamic&&c.pattern===h)}))return!0}return!1}};e.default=n}),Pl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=Bl(),i=class{constructor(s,f){this._settings=s,this._micromatchOptions=f}getFilter(s,f,a){let r=this._getMatcher(f),t=this._getNegativePatternsRe(a);return h=>this._filter(s,h,r,t)}_getMatcher(s){return new n.default(s,this._settings,this._micromatchOptions)}_getNegativePatternsRe(s){let f=s.filter(l.pattern.isAffectDepthOfReadingPattern);return l.pattern.convertPatternsToRe(f,this._micromatchOptions)}_filter(s,f,a,r){if(this._isSkippedByDeep(s,f.path)||this._isSkippedSymbolicLink(f))return!1;let t=l.path.removeLeadingDotSegment(f.path);return this._isSkippedByPositivePatterns(t,a)?!1:this._isSkippedByNegativePatterns(t,r)}_isSkippedByDeep(s,f){return this._settings.deep===1/0?!1:this._getEntryLevel(s,f)>=this._settings.deep}_getEntryLevel(s,f){let a=f.split("/").length;if(s==="")return a;let r=s.split("/").length;return a-r}_isSkippedSymbolicLink(s){return!this._settings.followSymbolicLinks&&s.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(s,f){return!this._settings.baseNameMatch&&!f.match(s)}_isSkippedByNegativePatterns(s,f){return!l.pattern.matchAny(s,f)}};e.default=i}),Ll=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s,this.index=new Map}getFilter(i,s){let f=l.pattern.convertPatternsToRe(i,this._micromatchOptions),a=l.pattern.convertPatternsToRe(s,this._micromatchOptions);return r=>this._filter(r,f,a)}_filter(i,s,f){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,f))return!1;let a=this._settings.baseNameMatch?i.name:i.path,r=i.dirent.isDirectory(),t=this._isMatchToPatterns(a,s,r)&&!this._isMatchToPatterns(i.path,f,r);return this._settings.unique&&t&&this._createIndexRecord(i),t}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,s){if(!this._settings.absolute)return!1;let f=l.path.makeAbsolute(this._settings.cwd,i);return l.pattern.matchAny(f,s)}_isMatchToPatterns(i,s,f){let a=l.path.removeLeadingDotSegment(i),r=l.pattern.matchAny(a,s);return!r&&f?l.pattern.matchAny(a+"/",s):r}};e.default=n}),Il=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return l.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=n}),Ml=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=rt(),n=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let s=i.path;return this._settings.absolute&&(s=l.path.makeAbsolute(this._settings.cwd,s),s=l.path.unixify(s)),this._settings.markDirectories&&i.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:s}):s}};e.default=n}),jr=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("path"),n=Pl(),i=Ll(),s=Il(),f=Ml(),a=class{constructor(r){this._settings=r,this.errorFilter=new s.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new f.default(this._settings)}_getRootDirectory(r){return l.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}}};e.default=a}),jl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Rl(),n=jr(),i=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}async read(s){let f=this._getRootDirectory(s),a=this._getReaderOptions(s);return(await this.api(f,s,a)).map(r=>a.transform(r))}api(s,f,a){return f.dynamic?this._reader.dynamic(s,a):this._reader.static(f.patterns,a)}};e.default=i}),Nl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=Z("stream"),n=oi(),i=jr(),s=class extends i.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(f){let a=this._getRootDirectory(f),r=this._getReaderOptions(f),t=this.api(a,f,r),h=new l.Readable({objectMode:!0,read:()=>{}});return t.once("error",u=>h.emit("error",u)).on("data",u=>h.emit("data",r.transform(u))).once("end",()=>h.emit("end")),h.once("close",()=>t.destroy()),h}api(f,a,r){return a.dynamic?this._reader.dynamic(f,r):this._reader.static(a.patterns,r)}};e.default=s}),$l=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=_t(),n=Ir(),i=Mr(),s=class extends i.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=l.statSync}dynamic(f,a){return this._walkSync(f,a)}static(f,a){let r=[];for(let t of f){let h=this._getFullEntryPath(t),u=this._getEntry(h,t,a);u===null||!a.entryFilter(u)||r.push(u)}return r}_getEntry(f,a,r){try{let t=this._getStat(f);return this._makeEntry(t,a)}catch(t){if(r.errorFilter(t))return null;throw t}}_getStat(f){return this._statSync(f,this._fsStatSettings)}};e.default=s}),Hl=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var l=$l(),n=jr(),i=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}read(s){let f=this._getRootDirectory(s),a=this._getReaderOptions(s);return this.api(f,s,a).map(a.transform)}api(s,f,a){return f.dynamic?this._reader.dynamic(s,a):this._reader.static(f.patterns,a)}};e.default=i}),Ul=M(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs"),n=Z("os"),i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:l.lstat,lstatSync:l.lstatSync,stat:l.stat,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};var s=class{constructor(f={}){this._options=f,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,i),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(f,a){return f===void 0?a:f}_getFileSystemMethods(f={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),f)}};e.default=s}),Gl=M((e,l)=>{"use strict";B();var n=hl(),i=pl(),s=jl(),f=Nl(),a=Hl(),r=Ul(),t=rt();async function h(o,d){c(o);let p=u(o,s.default,d),g=await Promise.all(p);return t.array.flatten(g)}(function(o){function d(y,D){c(y);let w=u(y,a.default,D);return t.array.flatten(w)}o.sync=d;function p(y,D){c(y);let w=u(y,f.default,D);return t.stream.merge(w)}o.stream=p;function g(y,D){c(y);let w=i.transform([].concat(y)),v=new r.default(D);return n.generate(w,v)}o.generateTasks=g;function b(y,D){c(y);let w=new r.default(D);return t.pattern.isDynamicPattern(y,w)}o.isDynamicPattern=b;function _(y){return c(y),t.path.escape(y)}o.escapePath=_})(h||(h={}));function u(o,d,p){let g=i.transform([].concat(o)),b=new r.default(p),_=n.generate(g,b),y=new d(b);return _.map(y.read,y)}function c(o){if(![].concat(o).every(d=>t.string.isString(d)&&!t.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}l.exports=h});B();B();function ai(e){return typeof e>"u"||e===null}function ql(e){return typeof e=="object"&&e!==null}function zl(e){return Array.isArray(e)?e:ai(e)?[]:[e]}function Wl(e,l){var n,i,s,f;if(l)for(f=Object.keys(l),n=0,i=f.length;n<i;n+=1)s=f[n],e[s]=l[s];return e}function Vl(e,l){var n="",i;for(i=0;i<l;i+=1)n+=e;return n}function Kl(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Yl=ai,Jl=ql,Zl=zl,Xl=Vl,Ql=Kl,ec=Wl,Be={isNothing:Yl,isObject:Jl,toArray:Zl,repeat:Xl,isNegativeZero:Ql,extend:ec};function ui(e,l){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!l&&e.mark.snippet&&(n+=`
|
|
41
41
|
|
|
42
42
|
`+e.mark.snippet),i+" "+n):i}function Tt(e,l){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=l,this.message=ui(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Tt.prototype=Object.create(Error.prototype);Tt.prototype.constructor=Tt;Tt.prototype.toString=function(e){return this.name+": "+ui(this,e)};var Ne=Tt;function Sr(e,l,n,i,s){var f="",a="",r=Math.floor(s/2)-1;return i-l>r&&(f=" ... ",l=i-r+f.length),n-i>r&&(a=" ...",n=i+r-a.length),{str:f+e.slice(l,n).replace(/\t/g,"\u2192")+a,pos:i-l+f.length}}function Ar(e,l){return Be.repeat(" ",l-e.length)+e}function tc(e,l){if(l=Object.create(l||null),!e.buffer)return null;l.maxLength||(l.maxLength=79),typeof l.indent!="number"&&(l.indent=1),typeof l.linesBefore!="number"&&(l.linesBefore=3),typeof l.linesAfter!="number"&&(l.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],s=[],f,a=-1;f=n.exec(e.buffer);)s.push(f.index),i.push(f.index+f[0].length),e.position<=f.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var r="",t,h,u=Math.min(e.line+l.linesAfter,s.length).toString().length,c=l.maxLength-(l.indent+u+3);for(t=1;t<=l.linesBefore&&!(a-t<0);t++)h=Sr(e.buffer,i[a-t],s[a-t],e.position-(i[a]-i[a-t]),c),r=Be.repeat(" ",l.indent)+Ar((e.line-t+1).toString(),u)+" | "+h.str+`
|
|
43
43
|
`+r;for(h=Sr(e.buffer,i[a],s[a],e.position,c),r+=Be.repeat(" ",l.indent)+Ar((e.line+1).toString(),u)+" | "+h.str+`
|
|
44
44
|
`,r+=Be.repeat("-",l.indent+u+3+h.pos)+`^
|
|
45
45
|
`,t=1;t<=l.linesAfter&&!(a+t>=s.length);t++)h=Sr(e.buffer,i[a+t],s[a+t],e.position-(i[a]-i[a+t]),c),r+=Be.repeat(" ",l.indent)+Ar((e.line+t+1).toString(),u)+" | "+h.str+`
|
|
46
|
-
`;return r.replace(/\n$/,"")}var rc=tc,nc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ic=["scalar","sequence","mapping"];function sc(e){var l={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){l[String(i)]=n})}),l}function oc(e,l){if(l=l||{},Object.keys(l).forEach(function(n){if(nc.indexOf(n)===-1)throw new Ne('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=l,this.tag=e,this.kind=l.kind||null,this.resolve=l.resolve||function(){return!0},this.construct=l.construct||function(n){return n},this.instanceOf=l.instanceOf||null,this.predicate=l.predicate||null,this.represent=l.represent||null,this.representName=l.representName||null,this.defaultStyle=l.defaultStyle||null,this.multi=l.multi||!1,this.styleAliases=sc(l.styleAliases||null),ic.indexOf(this.kind)===-1)throw new Ne('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ie=oc;function Nn(e,l){var n=[];return e[l].forEach(function(i){var s=n.length;n.forEach(function(f,a){f.tag===i.tag&&f.kind===i.kind&&f.multi===i.multi&&(s=a)}),n[s]=i}),n}function ac(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},l,n;function i(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(l=0,n=arguments.length;l<n;l+=1)arguments[l].forEach(i);return e}function
|
|
46
|
+
`;return r.replace(/\n$/,"")}var rc=tc,nc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ic=["scalar","sequence","mapping"];function sc(e){var l={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){l[String(i)]=n})}),l}function oc(e,l){if(l=l||{},Object.keys(l).forEach(function(n){if(nc.indexOf(n)===-1)throw new Ne('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=l,this.tag=e,this.kind=l.kind||null,this.resolve=l.resolve||function(){return!0},this.construct=l.construct||function(n){return n},this.instanceOf=l.instanceOf||null,this.predicate=l.predicate||null,this.represent=l.represent||null,this.representName=l.representName||null,this.defaultStyle=l.defaultStyle||null,this.multi=l.multi||!1,this.styleAliases=sc(l.styleAliases||null),ic.indexOf(this.kind)===-1)throw new Ne('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ie=oc;function Nn(e,l){var n=[];return e[l].forEach(function(i){var s=n.length;n.forEach(function(f,a){f.tag===i.tag&&f.kind===i.kind&&f.multi===i.multi&&(s=a)}),n[s]=i}),n}function ac(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},l,n;function i(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(l=0,n=arguments.length;l<n;l+=1)arguments[l].forEach(i);return e}function kr(e){return this.extend(e)}kr.prototype.extend=function(e){var l=[],n=[];if(e instanceof Ie)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(l=l.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Ne("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(s){if(!(s instanceof Ie))throw new Ne("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ne("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 Ne("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Ie))throw new Ne("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(kr.prototype);return i.implicit=(this.implicit||[]).concat(l),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Nn(i,"implicit"),i.compiledExplicit=Nn(i,"explicit"),i.compiledTypeMap=ac(i.compiledImplicit,i.compiledExplicit),i};var uc=kr,lc=new Ie("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),cc=new Ie("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hc=new Ie("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pc=new uc({explicit:[lc,cc,hc]});function fc(e){if(e===null)return!0;var l=e.length;return l===1&&e==="~"||l===4&&(e==="null"||e==="Null"||e==="NULL")}function dc(){return null}function mc(e){return e===null}var yc=new Ie("tag:yaml.org,2002:null",{kind:"scalar",resolve:fc,construct:dc,predicate:mc,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function gc(e){if(e===null)return!1;var l=e.length;return l===4&&(e==="true"||e==="True"||e==="TRUE")||l===5&&(e==="false"||e==="False"||e==="FALSE")}function bc(e){return e==="true"||e==="True"||e==="TRUE"}function vc(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var _c=new Ie("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gc,construct:bc,predicate:vc,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 Ec(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function wc(e){return 48<=e&&e<=55}function Dc(e){return 48<=e&&e<=57}function Sc(e){if(e===null)return!1;var l=e.length,n=0,i=!1,s;if(!l)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===l)return!0;if(s=e[++n],s==="b"){for(n++;n<l;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(n++;n<l;n++)if(s=e[n],s!=="_"){if(!Ec(e.charCodeAt(n)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(n++;n<l;n++)if(s=e[n],s!=="_"){if(!wc(e.charCodeAt(n)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;n<l;n++)if(s=e[n],s!=="_"){if(!Dc(e.charCodeAt(n)))return!1;i=!0}return!(!i||s==="_")}function Ac(e){var l=e,n=1,i;if(l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),i=l[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),l=l.slice(1),i=l[0]),l==="0")return 0;if(i==="0"){if(l[1]==="b")return n*parseInt(l.slice(2),2);if(l[1]==="x")return n*parseInt(l.slice(2),16);if(l[1]==="o")return n*parseInt(l.slice(2),8)}return n*parseInt(l,10)}function Cc(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Be.isNegativeZero(e)}var kc=new Ie("tag:yaml.org,2002:int",{kind:"scalar",resolve:Sc,construct:Ac,predicate:Cc,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"]}}),xc=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Fc(e){return!(e===null||!xc.test(e)||e[e.length-1]==="_")}function Oc(e){var l,n;return l=e.replace(/_/g,"").toLowerCase(),n=l[0]==="-"?-1:1,"+-".indexOf(l[0])>=0&&(l=l.slice(1)),l===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:l===".nan"?NaN:n*parseFloat(l,10)}var Rc=/^[-+]?[0-9]+e/;function Tc(e,l){var n;if(isNaN(e))switch(l){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(l){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(l){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Be.isNegativeZero(e))return"-0.0";return n=e.toString(10),Rc.test(n)?n.replace("e",".e"):n}function Bc(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Be.isNegativeZero(e))}var Pc=new Ie("tag:yaml.org,2002:float",{kind:"scalar",resolve:Fc,construct:Oc,predicate:Bc,represent:Tc,defaultStyle:"lowercase"}),Lc=pc.extend({implicit:[yc,_c,kc,Pc]}),Ic=Lc,li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ci=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 Mc(e){return e===null?!1:li.exec(e)!==null||ci.exec(e)!==null}function jc(e){var l,n,i,s,f,a,r,t=0,h=null,u,c,o;if(l=li.exec(e),l===null&&(l=ci.exec(e)),l===null)throw new Error("Date resolve error");if(n=+l[1],i=+l[2]-1,s=+l[3],!l[4])return new Date(Date.UTC(n,i,s));if(f=+l[4],a=+l[5],r=+l[6],l[7]){for(t=l[7].slice(0,3);t.length<3;)t+="0";t=+t}return l[9]&&(u=+l[10],c=+(l[11]||0),h=(u*60+c)*6e4,l[9]==="-"&&(h=-h)),o=new Date(Date.UTC(n,i,s,f,a,r,t)),h&&o.setTime(o.getTime()-h),o}function Nc(e){return e.toISOString()}var $c=new Ie("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Mc,construct:jc,instanceOf:Date,represent:Nc});function Hc(e){return e==="<<"||e===null}var Uc=new Ie("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hc}),Nr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
47
47
|
\r`;function Gc(e){if(e===null)return!1;var l,n,i=0,s=e.length,f=Nr;for(n=0;n<s;n++)if(l=f.indexOf(e.charAt(n)),!(l>64)){if(l<0)return!1;i+=6}return i%8===0}function qc(e){var l,n,i=e.replace(/[\r\n=]/g,""),s=i.length,f=Nr,a=0,r=[];for(l=0;l<s;l++)l%4===0&&l&&(r.push(a>>16&255),r.push(a>>8&255),r.push(a&255)),a=a<<6|f.indexOf(i.charAt(l));return n=s%4*6,n===0?(r.push(a>>16&255),r.push(a>>8&255),r.push(a&255)):n===18?(r.push(a>>10&255),r.push(a>>2&255)):n===12&&r.push(a>>4&255),new Uint8Array(r)}function zc(e){var l="",n=0,i,s,f=e.length,a=Nr;for(i=0;i<f;i++)i%3===0&&i&&(l+=a[n>>18&63],l+=a[n>>12&63],l+=a[n>>6&63],l+=a[n&63]),n=(n<<8)+e[i];return s=f%3,s===0?(l+=a[n>>18&63],l+=a[n>>12&63],l+=a[n>>6&63],l+=a[n&63]):s===2?(l+=a[n>>10&63],l+=a[n>>4&63],l+=a[n<<2&63],l+=a[64]):s===1&&(l+=a[n>>2&63],l+=a[n<<4&63],l+=a[64],l+=a[64]),l}function Wc(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Vc=new Ie("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gc,construct:qc,predicate:Wc,represent:zc}),Kc=Object.prototype.hasOwnProperty,Yc=Object.prototype.toString;function Jc(e){if(e===null)return!0;var l=[],n,i,s,f,a,r=e;for(n=0,i=r.length;n<i;n+=1){if(s=r[n],a=!1,Yc.call(s)!=="[object Object]")return!1;for(f in s)if(Kc.call(s,f))if(!a)a=!0;else return!1;if(!a)return!1;if(l.indexOf(f)===-1)l.push(f);else return!1}return!0}function Zc(e){return e!==null?e:[]}var Xc=new Ie("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Jc,construct:Zc}),Qc=Object.prototype.toString;function eh(e){if(e===null)return!0;var l,n,i,s,f,a=e;for(f=new Array(a.length),l=0,n=a.length;l<n;l+=1){if(i=a[l],Qc.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;f[l]=[s[0],i[s[0]]]}return!0}function th(e){if(e===null)return[];var l,n,i,s,f,a=e;for(f=new Array(a.length),l=0,n=a.length;l<n;l+=1)i=a[l],s=Object.keys(i),f[l]=[s[0],i[s[0]]];return f}var rh=new Ie("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eh,construct:th}),nh=Object.prototype.hasOwnProperty;function ih(e){if(e===null)return!0;var l,n=e;for(l in n)if(nh.call(n,l)&&n[l]!==null)return!1;return!0}function sh(e){return e!==null?e:{}}var oh=new Ie("tag:yaml.org,2002:set",{kind:"mapping",resolve:ih,construct:sh}),hi=Ic.extend({implicit:[$c,Uc],explicit:[Vc,Xc,rh,oh]}),tt=Object.prototype.hasOwnProperty,Yt=1,pi=2,fi=3,Jt=4,Cr=1,ah=2,$n=3,uh=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lh=/[\x85\u2028\u2029]/,ch=/[,\[\]\{\}]/,di=/^(?:!|!!|![a-z\-]+!)$/i,mi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Hn(e){return Object.prototype.toString.call(e)}function We(e){return e===10||e===13}function at(e){return e===9||e===32}function $e(e){return e===9||e===32||e===10||e===13}function gt(e){return e===44||e===91||e===93||e===123||e===125}function hh(e){var l;return 48<=e&&e<=57?e-48:(l=e|32,97<=l&&l<=102?l-97+10:-1)}function ph(e){return e===120?2:e===117?4:e===85?8:0}function fh(e){return 48<=e&&e<=57?e-48:-1}function Un(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
48
48
|
`: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 dh(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var yi=new Array(256),gi=new Array(256);for(ot=0;ot<256;ot++)yi[ot]=Un(ot)?1:0,gi[ot]=Un(ot);var ot;function mh(e,l){this.input=e,this.filename=l.filename||null,this.schema=l.schema||hi,this.onWarning=l.onWarning||null,this.legacy=l.legacy||!1,this.json=l.json||!1,this.listener=l.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 bi(e,l){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=rc(n),new Ne(l,n)}function me(e,l){throw bi(e,l)}function Zt(e,l){e.onWarning&&e.onWarning.call(null,bi(e,l))}var Gn={YAML:function(e,l,n){var i,s,f;e.version!==null&&me(e,"duplication of %YAML directive"),n.length!==1&&me(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&me(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),f=parseInt(i[2],10),s!==1&&me(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=f<2,f!==1&&f!==2&&Zt(e,"unsupported YAML version of the document")},TAG:function(e,l,n){var i,s;n.length!==2&&me(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],di.test(i)||me(e,"ill-formed tag handle (first argument) of the TAG directive"),tt.call(e.tagMap,i)&&me(e,'there is a previously declared suffix for "'+i+'" tag handle'),mi.test(s)||me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{me(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function et(e,l,n,i){var s,f,a,r;if(l<n){if(r=e.input.slice(l,n),i)for(s=0,f=r.length;s<f;s+=1)a=r.charCodeAt(s),a===9||32<=a&&a<=1114111||me(e,"expected valid JSON character");else uh.test(r)&&me(e,"the stream contains non-printable characters");e.result+=r}}function qn(e,l,n,i){var s,f,a,r;for(Be.isObject(n)||me(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),a=0,r=s.length;a<r;a+=1)f=s[a],tt.call(l,f)||(l[f]=n[f],i[f]=!0)}function bt(e,l,n,i,s,f,a,r,t){var h,u;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),h=0,u=s.length;h<u;h+=1)Array.isArray(s[h])&&me(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Hn(s[h])==="[object Object]"&&(s[h]="[object Object]");if(typeof s=="object"&&Hn(s)==="[object Object]"&&(s="[object Object]"),s=String(s),l===null&&(l={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(f))for(h=0,u=f.length;h<u;h+=1)qn(e,l,f[h],n);else qn(e,l,f,n);else!e.json&&!tt.call(n,s)&&tt.call(l,s)&&(e.line=a||e.line,e.lineStart=r||e.lineStart,e.position=t||e.position,me(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(l,s,{configurable:!0,enumerable:!0,writable:!0,value:f}):l[s]=f,delete n[s];return l}function $r(e){var l;l=e.input.charCodeAt(e.position),l===10?e.position++:l===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Te(e,l,n){for(var i=0,s=e.input.charCodeAt(e.position);s!==0;){for(;at(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(l&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(We(s))for($r(e),s=e.input.charCodeAt(e.position),i++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Zt(e,"deficient indentation"),i}function rr(e){var l=e.position,n;return n=e.input.charCodeAt(l),!!((n===45||n===46)&&n===e.input.charCodeAt(l+1)&&n===e.input.charCodeAt(l+2)&&(l+=3,n=e.input.charCodeAt(l),n===0||$e(n)))}function Hr(e,l){l===1?e.result+=" ":l>1&&(e.result+=Be.repeat(`
|
|
49
49
|
`,l-1))}function yh(e,l,n){var i,s,f,a,r,t,h,u,c=e.kind,o=e.result,d;if(d=e.input.charCodeAt(e.position),$e(d)||gt(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)&&(s=e.input.charCodeAt(e.position+1),$e(s)||n&>(s)))return!1;for(e.kind="scalar",e.result="",f=a=e.position,r=!1;d!==0;){if(d===58){if(s=e.input.charCodeAt(e.position+1),$e(s)||n&>(s))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),$e(i))break}else{if(e.position===e.lineStart&&rr(e)||n&>(d))break;if(We(d))if(t=e.line,h=e.lineStart,u=e.lineIndent,Te(e,!1,-1),e.lineIndent>=l){r=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=t,e.lineStart=h,e.lineIndent=u;break}}r&&(et(e,f,a,!1),Hr(e,e.line-t),f=a=e.position,r=!1),at(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return et(e,f,a,!1),e.result?!0:(e.kind=c,e.result=o,!1)}function gh(e,l){var n,i,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(et(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,s=e.position;else return!0;else We(n)?(et(e,i,s,!0),Hr(e,Te(e,!1,l)),i=s=e.position):e.position===e.lineStart&&rr(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function bh(e,l){var n,i,s,f,a,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return et(e,n,e.position,!0),e.position++,!0;if(r===92){if(et(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),We(r))Te(e,!1,l);else if(r<256&&yi[r])e.result+=gi[r],e.position++;else if((a=ph(r))>0){for(s=a,f=0;s>0;s--)r=e.input.charCodeAt(++e.position),(a=hh(r))>=0?f=(f<<4)+a:me(e,"expected hexadecimal character");e.result+=dh(f),e.position++}else me(e,"unknown escape sequence");n=i=e.position}else We(r)?(et(e,n,i,!0),Hr(e,Te(e,!1,l)),n=i=e.position):e.position===e.lineStart&&rr(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function vh(e,l){var n=!0,i,s,f,a=e.tag,r,t=e.anchor,h,u,c,o,d,p=Object.create(null),g,b,_,y;if(y=e.input.charCodeAt(e.position),y===91)u=93,d=!1,r=[];else if(y===123)u=125,d=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),y=e.input.charCodeAt(++e.position);y!==0;){if(Te(e,!0,l),y=e.input.charCodeAt(e.position),y===u)return e.position++,e.tag=a,e.anchor=t,e.kind=d?"mapping":"sequence",e.result=r,!0;n?y===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),b=g=_=null,c=o=!1,y===63&&(h=e.input.charCodeAt(e.position+1),$e(h)&&(c=o=!0,e.position++,Te(e,!0,l))),i=e.line,s=e.lineStart,f=e.position,vt(e,l,Yt,!1,!0),b=e.tag,g=e.result,Te(e,!0,l),y=e.input.charCodeAt(e.position),(o||e.line===i)&&y===58&&(c=!0,y=e.input.charCodeAt(++e.position),Te(e,!0,l),vt(e,l,Yt,!1,!0),_=e.result),d?bt(e,r,p,b,g,_,i,s,f):c?r.push(bt(e,null,p,b,g,_,i,s,f)):r.push(g),Te(e,!0,l),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}me(e,"unexpected end of the stream within a flow collection")}function _h(e,l){var n,i,s=Cr,f=!1,a=!1,r=l,t=0,h=!1,u,c;if(c=e.input.charCodeAt(e.position),c===124)i=!1;else if(c===62)i=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)Cr===s?s=c===43?$n:ah:me(e,"repeat of a chomping mode identifier");else if((u=fh(c))>=0)u===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?me(e,"repeat of an indentation width identifier"):(r=l+u-1,a=!0);else break;if(at(c)){do c=e.input.charCodeAt(++e.position);while(at(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!We(c)&&c!==0)}for(;c!==0;){for($r(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!a||e.lineIndent<r)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>r&&(r=e.lineIndent),We(c)){t++;continue}if(e.lineIndent<r){s===$n?e.result+=Be.repeat(`
|
|
@@ -53,10 +53,10 @@ GFS4: `),console.error(y)}),n[r]||(o=global[r]||[],u(n,o),n.close=function(y){fu
|
|
|
53
53
|
`,t+1)):t===0?f&&(e.result+=" "):e.result+=Be.repeat(`
|
|
54
54
|
`,t):e.result+=Be.repeat(`
|
|
55
55
|
`,f?1+t:t),f=!0,a=!0,t=0,n=e.position;!We(c)&&c!==0;)c=e.input.charCodeAt(++e.position);et(e,n,e.position,!1)}return!0}function zn(e,l){var n,i=e.tag,s=e.anchor,f=[],a,r=!1,t;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),t=e.input.charCodeAt(e.position);t!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(t!==45||(a=e.input.charCodeAt(e.position+1),!$e(a))));){if(r=!0,e.position++,Te(e,!0,-1)&&e.lineIndent<=l){f.push(null),t=e.input.charCodeAt(e.position);continue}if(n=e.line,vt(e,l,fi,!1,!0),f.push(e.result),Te(e,!0,-1),t=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>l)&&t!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<l)break}return r?(e.tag=i,e.anchor=s,e.kind="sequence",e.result=f,!0):!1}function Eh(e,l,n){var i,s,f,a,r,t,h=e.tag,u=e.anchor,c={},o=Object.create(null),d=null,p=null,g=null,b=!1,_=!1,y;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),y=e.input.charCodeAt(e.position);y!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),f=e.line,(y===63||y===58)&&$e(i))y===63?(b&&(bt(e,c,o,d,p,null,a,r,t),d=p=g=null),_=!0,b=!0,s=!0):b?(b=!1,s=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,y=i;else{if(a=e.line,r=e.lineStart,t=e.position,!vt(e,n,pi,!1,!0))break;if(e.line===f){for(y=e.input.charCodeAt(e.position);at(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),$e(y)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(bt(e,c,o,d,p,null,a,r,t),d=p=g=null),_=!0,b=!1,s=!1,d=e.tag,p=e.result;else if(_)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=u,!0}else if(_)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=u,!0}if((e.line===f||e.lineIndent>l)&&(b&&(a=e.line,r=e.lineStart,t=e.position),vt(e,l,Jt,!0,s)&&(b?p=e.result:g=e.result),b||(bt(e,c,o,d,p,g,a,r,t),d=p=g=null),Te(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===f||e.lineIndent>l)&&y!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<l)break}return b&&bt(e,c,o,d,p,null,a,r,t),_&&(e.tag=h,e.anchor=u,e.kind="mapping",e.result=c),_}function wh(e){var l,n=!1,i=!1,s,f,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(i=!0,s="!!",a=e.input.charCodeAt(++e.position)):s="!",l=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(f=e.input.slice(l,e.position),a=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!$e(a);)a===33&&(i?me(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(l-1,e.position+1),di.test(s)||me(e,"named tag handle cannot contain such characters"),i=!0,l=e.position+1)),a=e.input.charCodeAt(++e.position);f=e.input.slice(l,e.position),ch.test(f)&&me(e,"tag suffix cannot contain flow indicator characters")}f&&!mi.test(f)&&me(e,"tag name cannot contain such characters: "+f);try{f=decodeURIComponent(f)}catch{me(e,"tag name is malformed: "+f)}return n?e.tag=f:tt.call(e.tagMap,s)?e.tag=e.tagMap[s]+f:s==="!"?e.tag="!"+f:s==="!!"?e.tag="tag:yaml.org,2002:"+f:me(e,'undeclared tag handle "'+s+'"'),!0}function Dh(e){var l,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),l=e.position;n!==0&&!$e(n)&&!gt(n);)n=e.input.charCodeAt(++e.position);return e.position===l&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(l,e.position),!0}function Sh(e){var l,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),l=e.position;i!==0&&!$e(i)&&!gt(i);)i=e.input.charCodeAt(++e.position);return e.position===l&&me(e,"name of an alias node must contain at least one character"),n=e.input.slice(l,e.position),tt.call(e.anchorMap,n)||me(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Te(e,!0,-1),!0}function vt(e,l,n,i,s){var f,a,r,t=1,h=!1,u=!1,c,o,d,p,g,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,f=a=r=Jt===n||fi===n,i&&Te(e,!0,-1)&&(h=!0,e.lineIndent>l?t=1:e.lineIndent===l?t=0:e.lineIndent<l&&(t=-1)),t===1)for(;wh(e)||Dh(e);)Te(e,!0,-1)?(h=!0,r=f,e.lineIndent>l?t=1:e.lineIndent===l?t=0:e.lineIndent<l&&(t=-1)):r=!1;if(r&&(r=h||s),(t===1||Jt===n)&&(Yt===n||pi===n?g=l:g=l+1,b=e.position-e.lineStart,t===1?r&&(zn(e,b)||Eh(e,b,g))||vh(e,g)?u=!0:(a&&_h(e,g)||gh(e,g)||bh(e,g)?u=!0:Sh(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):yh(e,g,Yt===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):t===0&&(u=r&&zn(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"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,o=e.implicitTypes.length;c<o;c+=1)if(p=e.implicitTypes[c],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(tt.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"],c=0,o=d.length;c<o;c+=1)if(e.tag.slice(0,d[c].tag.length)===d[c].tag){p=d[c];break}p||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&me(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)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function Ah(e){var l=e.position,n,i,s,f=!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&&(Te(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(f=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!$e(a);)a=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),s=[],i.length<1&&me(e,"directive name must not be less than one character in length");a!==0;){for(;at(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!We(a));break}if(We(a))break;for(n=e.position;a!==0&&!$e(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}a!==0&&$r(e),tt.call(Gn,i)?Gn[i](e,i,s):Zt(e,'unknown document directive "'+i+'"')}if(Te(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,Te(e,!0,-1)):f&&me(e,"directives end mark is expected"),vt(e,e.lineIndent-1,Jt,!1,!0),Te(e,!0,-1),e.checkLineBreaks&&lh.test(e.input.slice(l,e.position))&&Zt(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Te(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function vi(e,l){e=String(e),l=l||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
56
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new mh(e,l),i=e.indexOf("\0");for(i!==-1&&(n.position=i,me(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ah(n);return n.documents}function Ch(e,l,n){l!==null&&typeof l=="object"&&typeof n>"u"&&(n=l,l=null);var i=vi(e,n);if(typeof l!="function")return i;for(var s=0,f=i.length;s<f;s+=1)l(i[s])}function
|
|
56
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new mh(e,l),i=e.indexOf("\0");for(i!==-1&&(n.position=i,me(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ah(n);return n.documents}function Ch(e,l,n){l!==null&&typeof l=="object"&&typeof n>"u"&&(n=l,l=null);var i=vi(e,n);if(typeof l!="function")return i;for(var s=0,f=i.length;s<f;s+=1)l(i[s])}function kh(e,l){var n=vi(e,l);if(n.length!==0){if(n.length===1)return n[0];throw new Ne("expected a single document in the stream, but found more")}}var xh=Ch,Fh=kh,_i={loadAll:xh,load:Fh},Ei=Object.prototype.toString,wi=Object.prototype.hasOwnProperty,Ur=65279,Oh=9,Bt=10,Rh=13,Th=32,Bh=33,Ph=34,xr=35,Lh=37,Ih=38,Mh=39,jh=42,Di=44,Nh=45,Xt=58,$h=61,Hh=62,Uh=63,Gh=64,Si=91,Ai=93,qh=96,Ci=123,zh=124,ki=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var Wh=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Vh=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Kh(e,l){var n,i,s,f,a,r,t;if(l===null)return{};for(n={},i=Object.keys(l),s=0,f=i.length;s<f;s+=1)a=i[s],r=String(l[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),t=e.compiledTypeMap.fallback[a],t&&wi.call(t.styleAliases,r)&&(r=t.styleAliases[r]),n[a]=r;return n}function Yh(e){var l,n,i;if(l=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new Ne("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Be.repeat("0",i-l.length)+l}var Jh=1,Pt=2;function Zh(e){this.schema=e.schema||hi,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Be.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Kh(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==='"'?Pt:Jh,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 Wn(e,l){for(var n=Be.repeat(" ",l),i=0,s=-1,f="",a,r=e.length;i<r;)s=e.indexOf(`
|
|
57
57
|
`,i),s===-1?(a=e.slice(i),i=r):(a=e.slice(i,s+1),i=s+1),a.length&&a!==`
|
|
58
58
|
`&&(f+=n),f+=a;return f}function Fr(e,l){return`
|
|
59
|
-
`+Be.repeat(" ",e.indent*l)}function Xh(e,l){var n,i,s;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(s=e.implicitTypes[n],s.resolve(l))return!0;return!1}function Qt(e){return e===Th||e===Oh}function Lt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ur||65536<=e&&e<=1114111}function Vn(e){return Lt(e)&&e!==Ur&&e!==Rh&&e!==Bt}function Kn(e,l,n){var i=Vn(e),s=i&&!Qt(e);return(n?i:i&&e!==Di&&e!==Si&&e!==Ai&&e!==Ci&&e!==
|
|
59
|
+
`+Be.repeat(" ",e.indent*l)}function Xh(e,l){var n,i,s;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(s=e.implicitTypes[n],s.resolve(l))return!0;return!1}function Qt(e){return e===Th||e===Oh}function Lt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ur||65536<=e&&e<=1114111}function Vn(e){return Lt(e)&&e!==Ur&&e!==Rh&&e!==Bt}function Kn(e,l,n){var i=Vn(e),s=i&&!Qt(e);return(n?i:i&&e!==Di&&e!==Si&&e!==Ai&&e!==Ci&&e!==ki)&&e!==xr&&!(l===Xt&&!s)||Vn(l)&&!Qt(l)&&e===xr||l===Xt&&s}function Qh(e){return Lt(e)&&e!==Ur&&!Qt(e)&&e!==Nh&&e!==Uh&&e!==Xt&&e!==Di&&e!==Si&&e!==Ai&&e!==Ci&&e!==ki&&e!==xr&&e!==Ih&&e!==jh&&e!==Bh&&e!==zh&&e!==$h&&e!==Hh&&e!==Mh&&e!==Ph&&e!==Lh&&e!==Gh&&e!==qh}function ep(e){return!Qt(e)&&e!==Xt}function Rt(e,l){var n=e.charCodeAt(l),i;return n>=55296&&n<=56319&&l+1<e.length&&(i=e.charCodeAt(l+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function xi(e){var l=/^\n* /;return l.test(e)}var Fi=1,Or=2,Oi=3,Ri=4,yt=5;function tp(e,l,n,i,s,f,a,r){var t,h=0,u=null,c=!1,o=!1,d=i!==-1,p=-1,g=Qh(Rt(e,0))&&ep(Rt(e,e.length-1));if(l||a)for(t=0;t<e.length;h>=65536?t+=2:t++){if(h=Rt(e,t),!Lt(h))return yt;g=g&&Kn(h,u,r),u=h}else{for(t=0;t<e.length;h>=65536?t+=2:t++){if(h=Rt(e,t),h===Bt)c=!0,d&&(o=o||t-p-1>i&&e[p+1]!==" ",p=t);else if(!Lt(h))return yt;g=g&&Kn(h,u,r),u=h}o=o||d&&t-p-1>i&&e[p+1]!==" "}return!c&&!o?g&&!a&&!s(e)?Fi:f===Pt?yt:Or:n>9&&xi(e)?yt:a?f===Pt?yt:Or:o?Ri:Oi}function rp(e,l,n,i,s){e.dump=function(){if(l.length===0)return e.quotingType===Pt?'""':"''";if(!e.noCompatMode&&(Wh.indexOf(l)!==-1||Vh.test(l)))return e.quotingType===Pt?'"'+l+'"':"'"+l+"'";var f=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-f),r=i||e.flowLevel>-1&&n>=e.flowLevel;function t(h){return Xh(e,h)}switch(tp(l,r,e.indent,a,t,e.quotingType,e.forceQuotes&&!i,s)){case Fi:return l;case Or:return"'"+l.replace(/'/g,"''")+"'";case Oi:return"|"+Yn(l,e.indent)+Jn(Wn(l,f));case Ri:return">"+Yn(l,e.indent)+Jn(Wn(np(l,a),f));case yt:return'"'+ip(l)+'"';default:throw new Ne("impossible error: invalid scalar style")}}()}function Yn(e,l){var n=xi(e)?String(l):"",i=e[e.length-1]===`
|
|
60
60
|
`,s=i&&(e[e.length-2]===`
|
|
61
61
|
`||e===`
|
|
62
62
|
`),f=s?"+":i?"":"-";return n+f+`
|
|
@@ -68,11 +68,11 @@ GFS4: `),console.error(y)}),n[r]||(o=global[r]||[],u(n,o),n.close=function(y){fu
|
|
|
68
68
|
`+e.slice(s,f),s=f+1),a=r;return t+=`
|
|
69
69
|
`,e.length-s>l&&a>s?t+=e.slice(s,a)+`
|
|
70
70
|
`+e.slice(a+1):t+=e.slice(s),t.slice(1)}function ip(e){for(var l="",n=0,i,s=0;s<e.length;n>=65536?s+=2:s++)n=Rt(e,s),i=Me[n],!i&&Lt(n)?(l+=e[s],n>=65536&&(l+=e[s+1])):l+=i||Yh(n);return l}function sp(e,l,n){var i="",s=e.tag,f,a,r;for(f=0,a=n.length;f<a;f+=1)r=n[f],e.replacer&&(r=e.replacer.call(n,String(f),r)),(Je(e,l,r,!1,!1)||typeof r>"u"&&Je(e,l,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=s,e.dump="["+i+"]"}function Xn(e,l,n,i){var s="",f=e.tag,a,r,t;for(a=0,r=n.length;a<r;a+=1)t=n[a],e.replacer&&(t=e.replacer.call(n,String(a),t)),(Je(e,l+1,t,!0,!0,!1,!0)||typeof t>"u"&&Je(e,l+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=Fr(e,l)),e.dump&&Bt===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=f,e.dump=s||"[]"}function op(e,l,n){var i="",s=e.tag,f=Object.keys(n),a,r,t,h,u;for(a=0,r=f.length;a<r;a+=1)u="",i!==""&&(u+=", "),e.condenseFlow&&(u+='"'),t=f[a],h=n[t],e.replacer&&(h=e.replacer.call(n,t,h)),Je(e,l,t,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Je(e,l,h,!1,!1)&&(u+=e.dump,i+=u));e.tag=s,e.dump="{"+i+"}"}function ap(e,l,n,i){var s="",f=e.tag,a=Object.keys(n),r,t,h,u,c,o;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Ne("sortKeys must be a boolean or a function");for(r=0,t=a.length;r<t;r+=1)o="",(!i||s!=="")&&(o+=Fr(e,l)),h=a[r],u=n[h],e.replacer&&(u=e.replacer.call(n,h,u)),Je(e,l+1,h,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&Bt===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,c&&(o+=Fr(e,l)),Je(e,l+1,u,!0,c)&&(e.dump&&Bt===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,s+=o));e.tag=f,e.dump=s||"{}"}function Qn(e,l,n){var i,s,f,a,r,t;for(s=n?e.explicitTypes:e.implicitTypes,f=0,a=s.length;f<a;f+=1)if(r=s[f],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof l=="object"&&l instanceof r.instanceOf)&&(!r.predicate||r.predicate(l))){if(n?r.multi&&r.representName?e.tag=r.representName(l):e.tag=r.tag:e.tag="?",r.represent){if(t=e.styleMap[r.tag]||r.defaultStyle,Ei.call(r.represent)==="[object Function]")i=r.represent(l,t);else if(wi.call(r.represent,t))i=r.represent[t](l,t);else throw new Ne("!<"+r.tag+'> tag resolver accepts not "'+t+'" style');e.dump=i}return!0}return!1}function Je(e,l,n,i,s,f,a){e.tag=null,e.dump=n,Qn(e,n,!1)||Qn(e,n,!0);var r=Ei.call(e.dump),t=i,h;i&&(i=e.flowLevel<0||e.flowLevel>l);var u=r==="[object Object]"||r==="[object Array]",c,o;if(u&&(c=e.duplicates.indexOf(n),o=c!==-1),(e.tag!==null&&e.tag!=="?"||o||e.indent!==2&&l>0)&&(s=!1),o&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&o&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),r==="[object Object]")i&&Object.keys(e.dump).length!==0?(ap(e,l,e.dump,s),o&&(e.dump="&ref_"+c+e.dump)):(op(e,l,e.dump),o&&(e.dump="&ref_"+c+" "+e.dump));else if(r==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!a&&l>0?Xn(e,l-1,e.dump,s):Xn(e,l,e.dump,s),o&&(e.dump="&ref_"+c+e.dump)):(sp(e,l,e.dump),o&&(e.dump="&ref_"+c+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&rp(e,e.dump,l,f,t);else{if(r==="[object Undefined]"||e.skipInvalid)return!1;throw new Ne("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function up(e,l){var n=[],i=[],s,f;for(Rr(e,n,i),s=0,f=i.length;s<f;s+=1)l.duplicates.push(n[i[s]]);l.usedDuplicates=new Array(f)}function Rr(e,l,n){var i,s,f;if(e!==null&&typeof e=="object")if(s=l.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(l.push(e),Array.isArray(e))for(s=0,f=e.length;s<f;s+=1)Rr(e[s],l,n);else for(i=Object.keys(e),s=0,f=i.length;s<f;s+=1)Rr(e[i[s]],l,n)}function lp(e,l){l=l||{};var n=new Zh(l);n.noRefs||up(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Je(n,0,i,!0,!0)?n.dump+`
|
|
71
|
-
`:""}var cp=lp,hp={dump:cp};function Gr(e,l){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+l+" instead, which is now safe by default.")}}var
|
|
71
|
+
`:""}var cp=lp,hp={dump:cp};function Gr(e,l){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+l+" instead, which is now safe by default.")}}var A0=_i.load,C0=_i.loadAll,k0=hp.dump;var x0=Gr("safeLoad","load"),F0=Gr("safeLoadAll","loadAll"),O0=Gr("safeDump","dump");var R0=xe(Gl());var Fe=class extends Error{constructor(n,i){var s;super(n);this.name="ConvertError",this.type=(s=i==null?void 0:i.type)!=null?s:"unknown",Error.captureStackTrace(this,Fe)}};import Ke from"fs-extra";import It from"path";import vp from"execa";import mp from"fs-extra";import yp from"chalk";import gp from"path";import nr from"fs-extra";import ut from"path";import pp from"fast-glob";import fp from"js-yaml";var dp=/^(?!_)(.+)@(.+)$/;function je({workspaceRoot:e}){let l=ut.join(e,"package.json");try{return nr.readJsonSync(l,"utf8")}catch(n){if(n&&typeof n=="object"&&"code"in n){if(n.code==="ENOENT")throw new Fe(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(n.code==="EJSONPARSE")throw new Fe(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function Et({workspaceRoot:e}){let{packageManager:l}=je({workspaceRoot:e});if(l)try{let n=l.match(dp);if(n){let[i,s]=n;return s}}catch{}}function lt({workspaceRoot:e}){let l=je({workspaceRoot:e}),n=ut.basename(e),{name:i=n,description:s}=l;return{name:i,description:s}}function qr({workspaceRoot:e}){let l=ut.join(e,"pnpm-workspace.yaml");if(nr.existsSync(l))try{let n=fp.load(nr.readFileSync(l,"utf8"));if(n instanceof Object&&"packages"in n&&Array.isArray(n.packages))return n.packages}catch{throw new Fe(`failed to parse ${l}`,{type:"pnpm-workspace_parse_error"})}return[]}function wt({root:e,lockFile:l,workspaceConfig:n}){let i=f=>ut.join(e,f),s={root:e,lockfile:i(l),packageJson:i("package.json"),nodeModules:i("node_modules")};return n&&(s.workspaceConfig=i(n)),s}function ir({workspaces:e}){return e?"packages"in e?e.packages:e:[]}function Dt({workspaceRoot:e,workspaceGlobs:l}){return l?l.flatMap(n=>{let i=`${n}/package.json`;return pp.sync(i,{onlyFiles:!0,absolute:!0,cwd:e})}).map(n=>{let i=ut.dirname(n),{name:s,description:f}=lt({workspaceRoot:i});return{name:s,description:f,paths:{root:i,packageJson:n,nodeModules:ut.join(i,"node_modules")}}}):[]}function Ti({directory:e}){let l=ut.resolve(process.cwd(),e);return{exists:nr.existsSync(l),absolute:l}}function Ze({packageManager:e,action:l,project:n}){let i=n.workspaceData.globs.length>0;return`${l==="remove"?"Removing":"Adding"} ${e} ${i?"workspaces":""} ${l==="remove"?"from":"to"} ${n.name}`}function bp({dependencyList:e,project:l,to:n}){let i=[];return l.workspaceData.workspaces.forEach(s=>{let{name:f}=s;if(e[f]){let a=e[f],r=a.startsWith("workspace:")?a.slice(10):a;e[f]=n.name==="pnpm"?`workspace:${r}`:r,i.push(f)}}),{dependencyList:e,updated:i}}function Ve({project:e,workspace:l,to:n,logger:i,options:s}){if(["yarn","npm"].includes(n.name)&&["yarn","npm"].includes(e.packageManager))return;let f=je({workspaceRoot:l.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},r=["dependencies","devDependencies","peerDependencies","optionalDependencies"];r.forEach(c=>{let o=f[c];if(o){let{updated:d,dependencyList:p}=bp({dependencyList:o,project:e,to:n});f[c]=p,a[c]=d}});let t=c=>{let o=a[c].length;if(o>0)return`${yp.green(o.toString())} ${c}`},h=r.map(t).filter(Boolean),u=`./${gp.relative(e.paths.root,l.paths.packageJson)}`;if(h.length>=1){let c="updating";h.forEach((o,d)=>{h.length===1?c+=` ${o} in ${u}`:d===h.length-1?c+=`and ${o} in ${u}`:c+=` ${o}, `}),i.workspaceStep(c)}else i.workspaceStep(`no workspace dependencies found in ${u}`);s!=null&&s.dry||mp.writeJSONSync(l.paths.packageJson,f,{spaces:2})}async function Bi(e){let l=It.join(e.workspaceRoot,"pnpm-lock.yaml"),n=It.join(e.workspaceRoot,"pnpm-workspace.yaml"),i=Et({workspaceRoot:e.workspaceRoot});return Ke.existsSync(l)||Ke.existsSync(n)||i==="pnpm"}async function _p(e){if(!await Bi(e))throw new Fe("Not a pnpm project",{type:"package_manager-unexpected"});let{name:n,description:i}=lt(e);return{name:n,description:i,packageManager:"pnpm",paths:wt({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:qr(e),workspaces:Dt({workspaceGlobs:qr(e),...e})}}}async function Ep(e){let{project:l,to:n,logger:i,options:s}=e,f=l.workspaceData.globs.length>0;i.mainStep(Ze({action:"create",packageManager:"pnpm",project:l}));let a=je({workspaceRoot:l.paths.root});i.rootHeader(),a.packageManager=`${n.name}@${n.version}`,i.rootStep(`adding "packageManager" field to ${l.name} root "package.json"`),s!=null&&s.dry||(Ke.writeJSONSync(l.paths.packageJson,a,{spaces:2}),f&&(i.rootStep('adding "pnpm-workspace.yaml"'),Ke.writeFileSync(It.join(l.paths.root,"pnpm-workspace.yaml"),`packages:
|
|
72
72
|
${l.workspaceData.globs.map(r=>` - "${r}"`).join(`
|
|
73
|
-
`)}`))),f&&(Ve({workspace:{name:"root",paths:l.paths},project:l,to:n,logger:i,options:s}),i.workspaceHeader(),l.workspaceData.workspaces.forEach(r=>Ve({workspace:r,project:l,to:n,logger:i,options:s})))}async function wp(e){let{project:l,logger:n,options:i}=e,s=l.workspaceData.globs.length>0;n.mainStep(Ze({action:"remove",packageManager:"pnpm",project:l}));let f=je({workspaceRoot:l.paths.root});if(l.paths.workspaceConfig&&s&&(n.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||Ke.rmSync(l.paths.workspaceConfig,{force:!0})),n.subStep(`removing "packageManager" field in ${l.name} root "package.json"`),delete f.packageManager,!(i!=null&&i.dry)){Ke.writeJSONSync(l.paths.packageJson,f,{spaces:2});let a=[l.paths.nodeModules,...l.workspaceData.workspaces.map(r=>r.paths.nodeModules)];try{n.subStep('removing "node_modules"'),await Promise.all(a.map(r=>Ke.rm(r,{recursive:!0,force:!0})))}catch{throw new Fe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Dp(e){let{project:l,logger:n,options:i}=e;n.subStep(`removing ${It.relative(l.paths.root,l.paths.lockfile)}`),i!=null&&i.dry||Ke.rmSync(l.paths.lockfile,{force:!0})}async function Sp(e){let{project:l,logger:n,options:i}=e;if(l.packageManager!=="pnpm"&&(n.subStep(`converting ${It.relative(l.paths.root,l.paths.lockfile)} to pnpm-lock.yaml`),!(i!=null&&i.dry)&&Ke.existsSync(l.paths.lockfile)))try{await vp("pnpm",["import"],{stdio:"ignore",cwd:l.paths.root})}finally{Ke.rmSync(l.paths.lockfile,{force:!0})}}var Ap={detect:Bi,read:_p,create:Ep,remove:wp,clean:Dp,convertLock:Sp},Pi=Ap;import ct from"fs-extra";import sr from"path";async function Li(e){let l=sr.join(e.workspaceRoot,"package-lock.json"),n=Et({workspaceRoot:e.workspaceRoot});return ct.existsSync(l)||n==="npm"}async function Cp(e){if(!await Li(e))throw new Fe("Not an npm project",{type:"package_manager-unexpected"});let n=je(e),{name:i,description:s}=lt(e),f=ir({workspaces:n.workspaces});return{name:i,description:s,packageManager:"npm",paths:wt({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:f,workspaces:Dt({workspaceGlobs:f,...e})}}}async function
|
|
73
|
+
`)}`))),f&&(Ve({workspace:{name:"root",paths:l.paths},project:l,to:n,logger:i,options:s}),i.workspaceHeader(),l.workspaceData.workspaces.forEach(r=>Ve({workspace:r,project:l,to:n,logger:i,options:s})))}async function wp(e){let{project:l,logger:n,options:i}=e,s=l.workspaceData.globs.length>0;n.mainStep(Ze({action:"remove",packageManager:"pnpm",project:l}));let f=je({workspaceRoot:l.paths.root});if(l.paths.workspaceConfig&&s&&(n.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||Ke.rmSync(l.paths.workspaceConfig,{force:!0})),n.subStep(`removing "packageManager" field in ${l.name} root "package.json"`),delete f.packageManager,!(i!=null&&i.dry)){Ke.writeJSONSync(l.paths.packageJson,f,{spaces:2});let a=[l.paths.nodeModules,...l.workspaceData.workspaces.map(r=>r.paths.nodeModules)];try{n.subStep('removing "node_modules"'),await Promise.all(a.map(r=>Ke.rm(r,{recursive:!0,force:!0})))}catch{throw new Fe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Dp(e){let{project:l,logger:n,options:i}=e;n.subStep(`removing ${It.relative(l.paths.root,l.paths.lockfile)}`),i!=null&&i.dry||Ke.rmSync(l.paths.lockfile,{force:!0})}async function Sp(e){let{project:l,logger:n,options:i}=e;if(l.packageManager!=="pnpm"&&(n.subStep(`converting ${It.relative(l.paths.root,l.paths.lockfile)} to pnpm-lock.yaml`),!(i!=null&&i.dry)&&Ke.existsSync(l.paths.lockfile)))try{await vp("pnpm",["import"],{stdio:"ignore",cwd:l.paths.root})}finally{Ke.rmSync(l.paths.lockfile,{force:!0})}}var Ap={detect:Bi,read:_p,create:Ep,remove:wp,clean:Dp,convertLock:Sp},Pi=Ap;import ct from"fs-extra";import sr from"path";async function Li(e){let l=sr.join(e.workspaceRoot,"package-lock.json"),n=Et({workspaceRoot:e.workspaceRoot});return ct.existsSync(l)||n==="npm"}async function Cp(e){if(!await Li(e))throw new Fe("Not an npm project",{type:"package_manager-unexpected"});let n=je(e),{name:i,description:s}=lt(e),f=ir({workspaces:n.workspaces});return{name:i,description:s,packageManager:"npm",paths:wt({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:f,workspaces:Dt({workspaceGlobs:f,...e})}}}async function kp(e){let{project:l,options:n,to:i,logger:s}=e,f=l.workspaceData.globs.length>0;s.mainStep(Ze({packageManager:"npm",action:"create",project:l}));let a=je({workspaceRoot:l.paths.root});s.rootHeader(),s.rootStep(`adding "packageManager" field to ${sr.relative(l.paths.root,l.paths.packageJson)}`),a.packageManager=`${i.name}@${i.version}`,f?(s.rootStep(`adding "workspaces" field to ${sr.relative(l.paths.root,l.paths.packageJson)}`),a.workspaces=l.workspaceData.globs,n!=null&&n.dry||ct.writeJSONSync(l.paths.packageJson,a,{spaces:2}),Ve({workspace:{name:"root",paths:l.paths},project:l,to:i,logger:s,options:n}),s.workspaceHeader(),l.workspaceData.workspaces.forEach(r=>Ve({workspace:r,project:l,to:i,logger:s,options:n}))):n!=null&&n.dry||ct.writeJSONSync(l.paths.packageJson,a,{spaces:2})}async function xp(e){let{project:l,logger:n,options:i}=e,s=l.workspaceData.globs.length>0;n.mainStep(Ze({packageManager:"npm",action:"remove",project:l}));let f=je({workspaceRoot:l.paths.root});if(s&&(n.subStep(`removing "workspaces" field in ${l.name} root "package.json"`),delete f.workspaces),n.subStep(`removing "packageManager" field in ${l.name} root "package.json"`),delete f.packageManager,!(i!=null&&i.dry)){ct.writeJSONSync(l.paths.packageJson,f,{spaces:2});let a=[l.paths.nodeModules,...l.workspaceData.workspaces.map(r=>r.paths.nodeModules)];try{n.subStep('removing "node_modules"'),await Promise.all(a.map(r=>ct.rm(r,{recursive:!0,force:!0})))}catch{throw new Fe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Fp(e){let{project:l,logger:n,options:i}=e;n.subStep(`removing ${sr.relative(l.paths.root,l.paths.lockfile)}`),i!=null&&i.dry||ct.rmSync(l.paths.lockfile,{force:!0})}async function Op(e){let{project:l,options:n}=e;l.packageManager!=="npm"&&(n!=null&&n.dry||ct.rmSync(l.paths.lockfile,{force:!0}))}var Rp={detect:Li,read:Cp,create:kp,remove:xp,clean:Fp,convertLock:Op},Ii=Rp;import ht from"fs-extra";import or from"path";async function Mi(e){let l=or.join(e.workspaceRoot,"yarn.lock"),n=Et({workspaceRoot:e.workspaceRoot});return ht.existsSync(l)||n==="yarn"}async function Tp(e){if(!await Mi(e))throw new Fe("Not a yarn project",{type:"package_manager-unexpected"});let n=je(e),{name:i,description:s}=lt(e),f=ir({workspaces:n.workspaces});return{name:i,description:s,packageManager:"yarn",paths:wt({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:f,workspaces:Dt({workspaceGlobs:f,...e})}}}async function Bp(e){let{project:l,to:n,logger:i,options:s}=e,f=l.workspaceData.globs.length>0;i.mainStep(Ze({packageManager:"yarn",action:"create",project:l}));let a=je({workspaceRoot:l.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${or.relative(l.paths.root,l.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,f?(i.rootStep(`adding "workspaces" field to ${or.relative(l.paths.root,l.paths.packageJson)}`),a.workspaces=l.workspaceData.globs,s!=null&&s.dry||ht.writeJSONSync(l.paths.packageJson,a,{spaces:2}),Ve({workspace:{name:"root",paths:l.paths},project:l,to:n,logger:i,options:s}),i.workspaceHeader(),l.workspaceData.workspaces.forEach(r=>Ve({workspace:r,project:l,to:n,logger:i,options:s}))):s!=null&&s.dry||ht.writeJSONSync(l.paths.packageJson,a,{spaces:2})}async function Pp(e){let{project:l,logger:n,options:i}=e,s=l.workspaceData.globs.length>0;n.mainStep(Ze({packageManager:"yarn",action:"remove",project:l}));let f=je({workspaceRoot:l.paths.root});if(s&&(n.subStep(`removing "workspaces" field in ${l.name} root "package.json"`),delete f.workspaces),n.subStep(`removing "packageManager" field in ${l.name} root "package.json"`),delete f.packageManager,!(i!=null&&i.dry)){ht.writeJSONSync(l.paths.packageJson,f,{spaces:2});let a=[l.paths.nodeModules,...l.workspaceData.workspaces.map(r=>r.paths.nodeModules)];try{n.subStep('removing "node_modules"'),await Promise.all(a.map(r=>ht.rm(r,{recursive:!0,force:!0})))}catch{throw new Fe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Lp(e){let{project:l,logger:n,options:i}=e;n.subStep(`removing ${or.relative(l.paths.root,l.paths.lockfile)}`),i!=null&&i.dry||ht.rmSync(l.paths.lockfile,{force:!0})}async function Ip(e){let{project:l,options:n}=e;l.packageManager!=="yarn"&&(n!=null&&n.dry||ht.rmSync(l.paths.lockfile,{force:!0}))}var Mp={detect:Mi,read:Tp,create:Bp,remove:Pp,clean:Lp,convertLock:Ip},ji=Mp;var jp={pnpm:Pi,yarn:ji,npm:Ii},pt=jp;async function Np({root:e}){let{exists:l,absolute:n}=Ti({directory:e});if(!l)throw new Fe(`Could not find directory at ${n}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:s}of Object.values(pt))if(await i({workspaceRoot:n}))return s({workspaceRoot:n});throw new Fe("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}import qe from"chalk";import $p from"gradient-string";var St=2,ar=class{constructor({interactive:l,dry:n}={}){this.interactive=l!=null?l:!0,this.dry=n!=null?n:!1,this.step=1}logger(...l){this.interactive&&console.log(...l)}indented(l,...n){this.logger(" ".repeat(St*l),...n)}header(l){this.blankLine(),this.logger(qe.bold(l))}installerFrames(){let l=`${" ".repeat(St)} - ${this.dry?qe.yellow("SKIPPED | "):qe.green("OK | ")}`;return[`${l} `,`${l}> `,`${l}>> `,`${l}>>>`]}gradient(l){return $p("#0099F7","#F11712")(l.toString())}hero(){this.logger(qe.bold(this.gradient(`
|
|
74
74
|
>>> TURBOREPO
|
|
75
|
-
`)))}info(...l){this.logger(...l)}mainStep(l){this.blankLine(),this.logger(`${this.step}. ${qe.underline(l)}`),this.step+=1}subStep(...l){this.logger(" ".repeat(St),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}subStepFailure(...l){this.logger(" ".repeat(St),"-",qe.red("ERROR |"),...l)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...l){this.logger(" ".repeat(St*3),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...l){this.logger(" ".repeat(St*3),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}blankLine(){this.logger()}error(...l){console.error(...l)}};import Hp from"execa";import Up from"ora";import{satisfies as Gp}from"semver";var Ni={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function qp(e){let{version:l,name:n}=e;return l?Ni[n].find(i=>Gp(l,i.semver)):Ni[n].find(i=>i.default)}async function zr(e){let{to:l,logger:n,options:i}=e,s=n!=null?n:new ar(i),f=qp(l);if(!f)throw new Fe("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(s.subStep(`running "${f.command} ${f.installArgs}"`),!(i!=null&&i.dry)){let a;s!=null&&s.interactive&&(a=Up({text:"installing dependencies...",spinner:{frames:s.installerFrames()}}).start());try{await Hp(f.command,f.installArgs,{cwd:e.project.paths.root}),a&&a.stop(),s.subStep("dependencies installed")}catch(r){throw s.subStepFailure("failed to install dependencies"),r}}}import zp from"chalk";async function
|
|
75
|
+
`)))}info(...l){this.logger(...l)}mainStep(l){this.blankLine(),this.logger(`${this.step}. ${qe.underline(l)}`),this.step+=1}subStep(...l){this.logger(" ".repeat(St),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}subStepFailure(...l){this.logger(" ".repeat(St),"-",qe.red("ERROR |"),...l)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...l){this.logger(" ".repeat(St*3),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...l){this.logger(" ".repeat(St*3),"-",this.dry?qe.yellow("SKIPPED |"):qe.green("OK |"),...l)}blankLine(){this.logger()}error(...l){console.error(...l)}};import Hp from"execa";import Up from"ora";import{satisfies as Gp}from"semver";var Ni={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function qp(e){let{version:l,name:n}=e;return l?Ni[n].find(i=>Gp(l,i.semver)):Ni[n].find(i=>i.default)}async function zr(e){let{to:l,logger:n,options:i}=e,s=n!=null?n:new ar(i),f=qp(l);if(!f)throw new Fe("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(s.subStep(`running "${f.command} ${f.installArgs}"`),!(i!=null&&i.dry)){let a;s!=null&&s.interactive&&(a=Up({text:"installing dependencies...",spinner:{frames:s.installerFrames()}}).start());try{await Hp(f.command,f.installArgs,{cwd:e.project.paths.root}),a&&a.stop(),s.subStep("dependencies installed")}catch(r){throw s.subStepFailure("failed to install dependencies"),r}}}import zp from"chalk";async function x2({project:e,to:l,logger:n,options:i}){if(n.header(`Converting project from ${e.packageManager} to ${l.name}.`),e.packageManager==l.name)throw new Fe("You are already using this package manager",{type:"package_manager-already_in_use"});await pt[e.packageManager].remove({project:e,to:l,logger:n,options:i}),await pt[l.name].create({project:e,to:l,logger:n,options:i}),n.mainStep("Installing dependencies"),i!=null&&i.skipInstall?n.subStep(zp.yellow("Skipping install")):(await pt[l.name].convertLock({project:e,logger:n,options:i}),await zr({project:e,to:l,logger:n,options:i})),n.mainStep(`Cleaning up ${e.packageManager} workspaces`),await pt[e.packageManager].clean({project:e,logger:n})}export{Cs as a,Fe as b,Ti as c,pt as d,Np as e,ar as f,qp as g,zr as h,x2 as i};
|
|
76
76
|
/*!
|
|
77
77
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
78
78
|
*
|