@turbo/codemod 1.10.16 → 1.10.17-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +49 -215
- package/dist/transforms/add-package-manager.js +45 -211
- package/dist/transforms/clean-globs.js +100 -112
- package/dist/transforms/create-turbo-config.js +87 -99
- package/dist/transforms/migrate-env-var-dependencies.js +100 -112
- package/dist/transforms/set-default-outputs.js +100 -112
- package/dist/transforms/stabilize-env-mode.js +100 -112
- package/dist/transforms/transform-env-literals-to-wildcards.js +100 -112
- package/package.json +5 -5
@@ -1,105 +1,93 @@
|
|
1
|
-
"use strict";var Fi=Object.create;var ke=Object.defineProperty;var ki=Object.getOwnPropertyDescriptor;var Ri=Object.getOwnPropertyNames;var Oi=Object.getPrototypeOf,Ti=Object.prototype.hasOwnProperty;var Bi=(t,c)=>{for(var n in c)ke(t,n,{get:c[n],enumerable:!0})},Pr=(t,c,n,o)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of Ri(c))!Ti.call(t,i)&&i!==n&&ke(t,i,{get:()=>c[i],enumerable:!(o=ki(c,i))||o.enumerable});return t};var re=(t,c,n)=>(n=t!=null?Fi(Oi(t)):{},Pr(c||!t||!t.__esModule?ke(n,"default",{value:t,enumerable:!0}):n,t)),Pi=t=>Pr(ke({},"__esModule",{value:!0}),t);var of={};Bi(of,{default:()=>sf,transformer:()=>Ci});module.exports=Pi(of);var Br=re(require("path")),Ce=require("fs-extra");var Je=re(require("chalk"));var Li=Object.create,Ze=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Ni=Object.getOwnPropertyNames,ji=Object.getPrototypeOf,Mi=Object.prototype.hasOwnProperty,Z=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(c,n)=>(typeof require!="undefined"?require:c)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),$i=(t,c)=>()=>(t&&(c=t(t=0)),c),N=(t,c)=>()=>(c||t((c={exports:{}}).exports,c),c.exports),Lr=(t,c)=>{for(var n in c)Ze(t,n,{get:c[n],enumerable:!0})},Hi=(t,c,n,o)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of Ni(c))!Mi.call(t,i)&&i!==n&&Ze(t,i,{get:()=>c[i],enumerable:!(o=Ii(c,i))||o.enumerable});return t},Ct=(t,c,n)=>(n=t!=null?Li(ji(t)):{},Hi(c||!t||!t.__esModule?Ze(n,"default",{value:t,enumerable:!0}):n,t)),B=$i(()=>{});var Ui=N((t,c)=>{"use strict";B();var n=(o,i)=>{for(let p of Reflect.ownKeys(i))Object.defineProperty(o,p,Object.getOwnPropertyDescriptor(i,p));return o};c.exports=n,c.exports.default=n}),Re=N((t,c)=>{"use strict";B();var n=Ui(),o=new WeakMap,i=(p,u={})=>{if(typeof p!="function")throw new TypeError("Expected a function");let r,e=0,h=p.displayName||p.name||"<anonymous>",a=function(...l){if(o.set(a,++e),e===1)r=p.apply(this,l),p=null;else if(u.throw===!0)throw new Error(`Function \`${h}\` can only be called once`);return r};return n(a,p),o.set(a,e),a};c.exports=i,c.exports.default=i,c.exports.callCount=p=>{if(!o.has(p))throw new Error(`The given function \`${p.name}\` is not wrapped by the \`onetime\` package`);return o.get(p)}}),qi=N((t,c)=>{B(),c.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&c.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&c.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Oe=N((t,c)=>{B();var n=global.process,o=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"};o(n)?(i=Z("assert"),p=qi(),u=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?e=n.__signal_exit_emitter__:(e=n.__signal_exit_emitter__=new r,e.count=0,e.emitted={}),e.infinite||(e.setMaxListeners(1/0),e.infinite=!0),c.exports=function(y,D){if(!o(global.process))return function(){};i.equal(typeof y,"function","a callback must be provided for exit handler"),s===!1&&d();var w="exit";D&&D.alwaysLast&&(w="afterexit");var v=function(){e.removeListener(w,y),e.listeners("exit").length===0&&e.listeners("afterexit").length===0&&h()};return e.on(w,y),v},h=function(){!s||!o(global.process)||(s=!1,p.forEach(function(y){try{n.removeListener(y,l[y])}catch{}}),n.emit=b,n.reallyExit=f,e.count-=1)},c.exports.unload=h,a=function(y,D,w){e.emitted[y]||(e.emitted[y]=!0,e.emit(y,D,w))},l={},p.forEach(function(y){l[y]=function(){if(o(global.process)){var D=n.listeners(y);D.length===e.count&&(h(),a("exit",null,y),a("afterexit",null,y),u&&y==="SIGHUP"&&(y="SIGINT"),n.kill(n.pid,y))}}}),c.exports.signals=function(){return p},s=!1,d=function(){s||!o(global.process)||(s=!0,e.count+=1,p=p.filter(function(y){try{return n.on(y,l[y]),!0}catch{return!1}}),n.emit=_,n.reallyExit=g)},c.exports.load=d,f=n.reallyExit,g=function(y){!o(global.process)||(n.exitCode=y||0,a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),f.call(n,n.exitCode))},b=n.emit,_=function(y,D){if(y==="exit"&&o(global.process)){D!==void 0&&(n.exitCode=D);var w=b.apply(this,arguments);return a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),w}else return b.apply(this,arguments)}):c.exports=function(){return function(){}};var i,p,u,r,e,h,a,l,s,d,f,g,b,_});var Gi=N((t,c)=>{B(),c.exports=p,p.sync=u;var n=Z("fs");function o(r,e){var h=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!h||(h=h.split(";"),h.indexOf("")!==-1))return!0;for(var a=0;a<h.length;a++){var l=h[a].toLowerCase();if(l&&r.substr(-l.length).toLowerCase()===l)return!0}return!1}function i(r,e,h){return!r.isSymbolicLink()&&!r.isFile()?!1:o(e,h)}function p(r,e,h){n.stat(r,function(a,l){h(a,a?!1:i(l,r,e))})}function u(r,e){return i(n.statSync(r),r,e)}}),zi=N((t,c)=>{B(),c.exports=o,o.sync=i;var n=Z("fs");function o(r,e,h){n.stat(r,function(a,l){h(a,a?!1:p(l,e))})}function i(r,e){return p(n.statSync(r),e)}function p(r,e){return r.isFile()&&u(r,e)}function u(r,e){var h=r.mode,a=r.uid,l=r.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),d=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),f=parseInt("100",8),g=parseInt("010",8),b=parseInt("001",8),_=f|g,y=h&b||h&g&&l===d||h&f&&a===s||h&_&&s===0;return y}}),Wi=N((t,c)=>{B();var n=Z("fs"),o;process.platform==="win32"||global.TESTING_WINDOWS?o=Gi():o=zi(),c.exports=i,i.sync=p;function i(u,r,e){if(typeof r=="function"&&(e=r,r={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(h,a){i(u,r||{},function(l,s){l?a(l):h(s)})})}o(u,r||{},function(h,a){h&&(h.code==="EACCES"||r&&r.ignoreErrors)&&(h=null,a=!1),e(h,a)})}function p(u,r){try{return o.sync(u,r||{})}catch(e){if(r&&r.ignoreErrors||e.code==="EACCES")return!1;throw e}}}),Vi=N((t,c)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",o=Z("path"),i=n?";":":",p=Wi(),u=a=>Object.assign(new Error(`not found: ${a}`),{code:"ENOENT"}),r=(a,l)=>{let s=l.colon||i,d=a.match(/\//)||n&&a.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(s)],f=n?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=n?f.split(s):[""];return n&&a.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:f}},e=(a,l,s)=>{typeof l=="function"&&(s=l,l={}),l||(l={});let{pathEnv:d,pathExt:f,pathExtExe:g}=r(a,l),b=[],_=D=>new Promise((w,v)=>{if(D===d.length)return l.all&&b.length?w(b):v(u(a));let m=d[D],E=/^".*"$/.test(m)?m.slice(1,-1):m,S=o.join(E,a),A=!E&&/^\.[\\\/]/.test(a)?a.slice(0,2)+S:S;w(y(A,D,0))}),y=(D,w,v)=>new Promise((m,E)=>{if(v===f.length)return m(_(w+1));let S=f[v];p(D+S,{pathExt:g},(A,x)=>{if(!A&&x)if(l.all)b.push(D+S);else return m(D+S);return m(y(D,w,v+1))})});return s?_(0).then(D=>s(null,D),s):_(0)},h=(a,l)=>{l=l||{};let{pathEnv:s,pathExt:d,pathExtExe:f}=r(a,l),g=[];for(let b=0;b<s.length;b++){let _=s[b],y=/^".*"$/.test(_)?_.slice(1,-1):_,D=o.join(y,a),w=!y&&/^\.[\\\/]/.test(a)?a.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=w+d[v];try{if(p.sync(m,{pathExt:f}))if(l.all)g.push(m);else return m}catch{}}}if(l.all&&g.length)return g;if(l.nothrow)return null;throw u(a)};c.exports=e,e.sync=h}),Ir=N((t,c)=>{"use strict";B();var n=(o={})=>{let i=o.env||process.env;return(o.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(p=>p.toUpperCase()==="PATH")||"Path"};c.exports=n,c.exports.default=n}),Ki=N((t,c)=>{"use strict";B();var n=Z("path"),o=Vi(),i=Ir();function p(r,e){let h=r.options.env||process.env,a=process.cwd(),l=r.options.cwd!=null,s=l&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(r.options.cwd)}catch{}let d;try{d=o.sync(r.command,{path:h[i({env:h})],pathExt:e?n.delimiter:void 0})}catch{}finally{s&&process.chdir(a)}return d&&(d=n.resolve(l?r.options.cwd:"",d)),d}function u(r){return p(r)||p(r,!0)}c.exports=u}),Yi=N((t,c)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function o(p){return p=p.replace(n,"^$1"),p}function i(p,u){return p=`${p}`,p=p.replace(/(\\*)"/g,'$1$1\\"'),p=p.replace(/(\\*)$/,"$1$1"),p=`"${p}"`,p=p.replace(n,"^$1"),u&&(p=p.replace(n,"^$1")),p}c.exports.command=o,c.exports.argument=i}),Ji=N((t,c)=>{"use strict";B(),c.exports=/^#!(.*)/}),Zi=N((t,c)=>{"use strict";B();var n=Ji();c.exports=(o="")=>{let i=o.match(n);if(!i)return null;let[p,u]=i[0].replace(/#! ?/,"").split(" "),r=p.split("/").pop();return r==="env"?u:u?`${r} ${u}`:r}}),Xi=N((t,c)=>{"use strict";B();var n=Z("fs"),o=Zi();function i(p){let u=Buffer.alloc(150),r;try{r=n.openSync(p,"r"),n.readSync(r,u,0,150,0),n.closeSync(r)}catch{}return o(u.toString())}c.exports=i}),Qi=N((t,c)=>{"use strict";B();var n=Z("path"),o=Ki(),i=Yi(),p=Xi(),u=process.platform==="win32",r=/\.(?:com|exe)$/i,e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function h(s){s.file=o(s);let d=s.file&&p(s.file);return d?(s.args.unshift(s.file),s.command=d,o(s)):s.file}function a(s){if(!u)return s;let d=h(s),f=!r.test(d);if(s.options.forceShell||f){let g=e.test(d);s.command=n.normalize(s.command),s.command=i.command(s.command),s.args=s.args.map(_=>i.argument(_,g));let b=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${b}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}function l(s,d,f){d&&!Array.isArray(d)&&(f=d,d=null),d=d?d.slice(0):[],f=Object.assign({},f);let g={command:s,args:d,options:f,file:void 0,original:{command:s,args:d}};return f.shell?g:a(g)}c.exports=l}),ts=N((t,c)=>{"use strict";B();var n=process.platform==="win32";function o(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function i(r,e){if(!n)return;let h=r.emit;r.emit=function(a,l){if(a==="exit"){let s=p(l,e,"spawn");if(s)return h.call(r,"error",s)}return h.apply(r,arguments)}}function p(r,e){return n&&r===1&&!e.file?o(e.original,"spawn"):null}function u(r,e){return n&&r===1&&!e.file?o(e.original,"spawnSync"):null}c.exports={hookChildProcess:i,verifyENOENT:p,verifyENOENTSync:u,notFoundError:o}}),es=N((t,c)=>{"use strict";B();var n=Z("child_process"),o=Qi(),i=ts();function p(r,e,h){let a=o(r,e,h),l=n.spawn(a.command,a.args,a.options);return i.hookChildProcess(l,a),l}function u(r,e,h){let a=o(r,e,h),l=n.spawnSync(a.command,a.args,a.options);return l.error=l.error||i.verifyENOENTSync(l.status,a),l}c.exports=p,c.exports.spawn=p,c.exports.sync=u,c.exports._parse=o,c.exports._enoent=i}),rs=N((t,c)=>{"use strict";B(),c.exports=n=>{let o=typeof n=="string"?`
|
1
|
+
"use strict";var sD=Object.create;var rn=Object.defineProperty;var oD=Object.getOwnPropertyDescriptor;var uD=Object.getOwnPropertyNames;var aD=Object.getPrototypeOf,cD=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),El=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},Dl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uD(e))!cD.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(i=oD(e,n))||i.enumerable});return t};var G=(t,e,r)=>(r=t!=null?sD(aD(t)):{},Dl(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t)),lD=t=>Dl(rn({},"__esModule",{value:!0}),t);var yl=m((Qv,ut)=>{function ao(t){return ut.exports=ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut.exports.__esModule=!0,ut.exports.default=ut.exports,ao(t)}ut.exports=ao,ut.exports.__esModule=!0,ut.exports.default=ut.exports});var _l=m((eR,at)=>{var fD=yl().default;function Al(){"use strict";at.exports=Al=function(){return t},at.exports.__esModule=!0,at.exports.default=at.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(S,y,C){S[y]=C.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function a(S,y,C){return Object.defineProperty(S,y,{value:C,enumerable:!0,configurable:!0,writable:!0}),S[y]}try{a({},"")}catch{a=function(C,p,d){return C[p]=d}}function c(S,y,C,p){var d=y&&y.prototype instanceof h?y:h,v=Object.create(d.prototype),T=new k(p||[]);return i(v,"_invoke",{value:L(S,C,T)}),v}function l(S,y,C){try{return{type:"normal",arg:S.call(y,C)}}catch(p){return{type:"throw",arg:p}}}t.wrap=c;var f={};function h(){}function E(){}function g(){}var D={};a(D,s,function(){return this});var _=Object.getPrototypeOf,b=_&&_(_(J([])));b&&b!==e&&r.call(b,s)&&(D=b);var F=g.prototype=h.prototype=Object.create(D);function M(S){["next","throw","return"].forEach(function(y){a(S,y,function(C){return this._invoke(y,C)})})}function re(S,y){function C(d,v,T,j){var z=l(S[d],S,v);if(z.type!=="throw"){var Q=z.arg,xe=Q.value;return xe&&fD(xe)=="object"&&r.call(xe,"__await")?y.resolve(xe.__await).then(function(ot){C("next",ot,T,j)},function(ot){C("throw",ot,T,j)}):y.resolve(xe).then(function(ot){Q.value=ot,T(Q)},function(ot){return C("throw",ot,T,j)})}j(z.arg)}var p;i(this,"_invoke",{value:function(v,T){function j(){return new y(function(z,Q){C(v,T,z,Q)})}return p=p?p.then(j,j):j()}})}function L(S,y,C){var p="suspendedStart";return function(d,v){if(p==="executing")throw new Error("Generator is already running");if(p==="completed"){if(d==="throw")throw v;return A()}for(C.method=d,C.arg=v;;){var T=C.delegate;if(T){var j=$(T,C);if(j){if(j===f)continue;return j}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(p==="suspendedStart")throw p="completed",C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);p="executing";var z=l(S,y,C);if(z.type==="normal"){if(p=C.done?"completed":"suspendedYield",z.arg===f)continue;return{value:z.arg,done:C.done}}z.type==="throw"&&(p="completed",C.method="throw",C.arg=z.arg)}}}function $(S,y){var C=y.method,p=S.iterator[C];if(p===void 0)return y.delegate=null,C==="throw"&&S.iterator.return&&(y.method="return",y.arg=void 0,$(S,y),y.method==="throw")||C!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+C+"' method")),f;var d=l(p,S.iterator,y.arg);if(d.type==="throw")return y.method="throw",y.arg=d.arg,y.delegate=null,f;var v=d.arg;return v?v.done?(y[S.resultName]=v.value,y.next=S.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,f):v:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,f)}function P(S){var y={tryLoc:S[0]};1 in S&&(y.catchLoc=S[1]),2 in S&&(y.finallyLoc=S[2],y.afterLoc=S[3]),this.tryEntries.push(y)}function O(S){var y=S.completion||{};y.type="normal",delete y.arg,S.completion=y}function k(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(P,this),this.reset(!0)}function J(S){if(S){var y=S[s];if(y)return y.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var C=-1,p=function d(){for(;++C<S.length;)if(r.call(S,C))return d.value=S[C],d.done=!1,d;return d.value=void 0,d.done=!0,d};return p.next=p}}return{next:A}}function A(){return{value:void 0,done:!0}}return E.prototype=g,i(F,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:E,configurable:!0}),E.displayName=a(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(S){var y=typeof S=="function"&&S.constructor;return!!y&&(y===E||(y.displayName||y.name)==="GeneratorFunction")},t.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,g):(S.__proto__=g,a(S,u,"GeneratorFunction")),S.prototype=Object.create(F),S},t.awrap=function(S){return{__await:S}},M(re.prototype),a(re.prototype,o,function(){return this}),t.AsyncIterator=re,t.async=function(S,y,C,p,d){d===void 0&&(d=Promise);var v=new re(c(S,y,C,p),d);return t.isGeneratorFunction(y)?v:v.next().then(function(T){return T.done?T.value:v.next()})},M(F),a(F,u,"Generator"),a(F,s,function(){return this}),a(F,"toString",function(){return"[object Generator]"}),t.keys=function(S){var y=Object(S),C=[];for(var p in y)C.push(p);return C.reverse(),function d(){for(;C.length;){var v=C.pop();if(v in y)return d.value=v,d.done=!1,d}return d.done=!0,d}},t.values=J,k.prototype={constructor:k,reset:function(y){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(O),!y)for(var C in this)C.charAt(0)==="t"&&r.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var C=this;function p(Q,xe){return T.type="throw",T.arg=y,C.next=Q,xe&&(C.method="next",C.arg=void 0),!!xe}for(var d=this.tryEntries.length-1;d>=0;--d){var v=this.tryEntries[d],T=v.completion;if(v.tryLoc==="root")return p("end");if(v.tryLoc<=this.prev){var j=r.call(v,"catchLoc"),z=r.call(v,"finallyLoc");if(j&&z){if(this.prev<v.catchLoc)return p(v.catchLoc,!0);if(this.prev<v.finallyLoc)return p(v.finallyLoc)}else if(j){if(this.prev<v.catchLoc)return p(v.catchLoc,!0)}else{if(!z)throw new Error("try statement without catch or finally");if(this.prev<v.finallyLoc)return p(v.finallyLoc)}}}},abrupt:function(y,C){for(var p=this.tryEntries.length-1;p>=0;--p){var d=this.tryEntries[p];if(d.tryLoc<=this.prev&&r.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var v=d;break}}v&&(y==="break"||y==="continue")&&v.tryLoc<=C&&C<=v.finallyLoc&&(v=null);var T=v?v.completion:{};return T.type=y,T.arg=C,v?(this.method="next",this.next=v.finallyLoc,f):this.complete(T)},complete:function(y,C){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&C&&(this.next=C),f},finish:function(y){for(var C=this.tryEntries.length-1;C>=0;--C){var p=this.tryEntries[C];if(p.finallyLoc===y)return this.complete(p.completion,p.afterLoc),O(p),f}},catch:function(y){for(var C=this.tryEntries.length-1;C>=0;--C){var p=this.tryEntries[C];if(p.tryLoc===y){var d=p.completion;if(d.type==="throw"){var v=d.arg;O(p)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(y,C,p){return this.delegate={iterator:J(y),resultName:C,nextLoc:p},this.method==="next"&&(this.arg=void 0),f}},t}at.exports=Al,at.exports.__esModule=!0,at.exports.default=at.exports});var Cl=m((tR,Sl)=>{var nn=_l()();Sl.exports=nn;try{regeneratorRuntime=nn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=nn:Function("r","regeneratorRuntime = r")(nn)}});var hf=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.splitWhen=br.flatten=void 0;function HA(t){return t.reduce((e,r)=>[].concat(e,r),[])}br.flatten=HA;function $A(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}br.splitWhen=$A});var pf=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.isEnoentCodeError=void 0;function UA(t){return t.code==="ENOENT"}fn.isEnoentCodeError=UA});var df=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createDirentFromStats=void 0;var Ro=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function GA(t,e){return new Ro(t,e)}hn.createDirentFromStats=GA});var mf=m(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.removeLeadingDotSegment=Ye.escape=Ye.makeAbsolute=Ye.unixify=void 0;var jA=require("path"),WA=2,zA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function YA(t){return t.replace(/\\/g,"/")}Ye.unixify=YA;function KA(t,e){return jA.resolve(t,e)}Ye.makeAbsolute=KA;function VA(t){return t.replace(zA,"\\$2")}Ye.escape=VA;function XA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(WA)}return t}Ye.removeLeadingDotSegment=XA});var Ef=m((XR,gf)=>{gf.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Af=m((ZR,yf)=>{var ZA=Ef(),Df={"{":"}","(":")","[":"]"},JA=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var a=Df[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},QA=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Df[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};yf.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ZA(e))return!0;var i=JA;return r&&r.strict===!1&&(i=QA),i(e)}});var Sf=m((JR,_f)=>{"use strict";var e_=Af(),t_=require("path").posix.dirname,r_=require("os").platform()==="win32",To="/",i_=/\\/g,n_=/[\{\[].*[\}\]]$/,s_=/(^|[^\\])([\{\[]|\([^\)]+$)/,o_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;_f.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&r_&&e.indexOf(To)<0&&(e=e.replace(i_,To)),n_.test(e)&&(e+=To),e+="a";do e=t_(e);while(e_(e)||s_.test(e));return e.replace(o_,"$1")}});var pn=m(Le=>{"use strict";Le.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Le.find=(t,e)=>t.nodes.find(r=>r.type===e);Le.exceedsLimit=(t,e,r=1,i)=>i===!1||!Le.isInteger(t)||!Le.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Le.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Le.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Le.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Le.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Le.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Le.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var dn=m((eT,bf)=>{"use strict";var Cf=pn();bf.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Cf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Cf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Ff=m((tT,wf)=>{"use strict";wf.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var If=m((rT,Lf)=>{"use strict";var xf=Ff(),Qt=(t,e,r)=>{if(xf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(xf(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(Qt.cache.hasOwnProperty(a))return Qt.cache[a].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let D=t+"|"+e;return i.capture?`(${D})`:i.wrap===!1?D:`(?:${D})`}let f=Pf(t)||Pf(e),h={min:t,max:e,a:c,b:l},E=[],g=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let D=l<0?Math.abs(l):1;g=vf(D,Math.abs(c),h,i),c=h.a=0}return l>=0&&(E=vf(c,l,h,i)),h.negatives=g,h.positives=E,h.result=u_(g,E,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&E.length+g.length>1&&(h.result=`(?:${h.result})`),Qt.cache[a]=h,h.result};function u_(t,e,r){let i=Oo(t,e,"-",!1,r)||[],n=Oo(e,t,"",!1,r)||[],s=Oo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function a_(t,e){let r=1,i=1,n=Tf(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Tf(t,r);for(n=Of(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Of(e+1,i)-1;return s=[...s],s.sort(f_),s}function c_(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=l_(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,c]=i[u];a===c?s+=a:a!=="0"||c!=="9"?s+=h_(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function vf(t,e,r,i){let n=a_(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=c_(String(o),String(c),i),f="";if(!r.isPadded&&u&&u.pattern===l.pattern){u.count.length>1&&u.count.pop(),u.count.push(l.count[0]),u.string=u.pattern+Bf(u.count),o=c+1;continue}r.isPadded&&(f=p_(c,r,i)),l.string=f+l.pattern+Bf(l.count),s.push(l),o=c+1,u=l}return s}function Oo(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Rf(e,"string",u)&&s.push(r+u),i&&Rf(e,"string",u)&&s.push(r+u)}return s}function l_(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function f_(t,e){return t>e?1:e>t?-1:0}function Rf(t,e,r){return t.some(i=>i[e]===r)}function Tf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Of(t,e){return t-t%Math.pow(10,e)}function Bf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function h_(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Pf(t){return/^-?(0+)\d/.test(t)}function p_(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Qt.cache={};Qt.clearCache=()=>Qt.cache={};Lf.exports=Qt});var Lo=m((iT,Gf)=>{"use strict";var d_=require("util"),Mf=If(),Nf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),m_=t=>e=>t===!0?Number(e):String(e),Bo=t=>typeof t=="number"||typeof t=="string"&&t!=="",Si=t=>Number.isInteger(+t),Po=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},g_=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,E_=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},kf=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},D_=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},qf=(t,e,r,i)=>{if(r)return Mf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Hf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Mf(t,e,r)},$f=(...t)=>new RangeError("Invalid range arguments: "+d_.inspect(...t)),Uf=(t,e,r)=>{if(r.strictRanges===!0)throw $f([t,e]);return[]},y_=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},A_=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw $f([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Po(u)||Po(a)||Po(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&g_(t,e,i)===!1,E=i.transform||m_(h);if(i.toRegex&&r===1)return qf(kf(t,f),kf(e,f),!0,i);let g={negatives:[],positives:[]},D=F=>g[F<0?"negatives":"positives"].push(Math.abs(F)),_=[],b=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?D(n):_.push(E_(E(n,b),f,h)),n=o?n-r:n+r,b++;return i.toRegex===!0?r>1?D_(g,i):Hf(_,null,{wrap:!1,...i}):_},__=(t,e,r=1,i={})=>{if(!Si(t)&&t.length>1||!Si(e)&&e.length>1)return Uf(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return qf(a,c,!1,i);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(n(s,f)),s=u?s-r:s+r,f++;return i.toRegex===!0?Hf(l,null,{wrap:!1,options:i}):l},mn=(t,e,r,i={})=>{if(e==null&&Bo(t))return[t];if(!Bo(t)||!Bo(e))return Uf(t,e,i);if(typeof r=="function")return mn(t,e,1,{transform:r});if(Nf(r))return mn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Si(r)?Si(t)&&Si(e)?A_(t,e,r,n):__(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Nf(r)?y_(r,n):mn(t,e,1,r)};Gf.exports=mn});var zf=m((nT,Wf)=>{"use strict";var S_=Lo(),jf=pn(),C_=(t,e={})=>{let r=(i,n={})=>{let s=jf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=jf.reduce(i.nodes),f=S_(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};Wf.exports=C_});var Vf=m((sT,Kf)=>{"use strict";var b_=Lo(),Yf=dn(),wr=pn(),er=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?wr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(er(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?er(n,s,r):n+s);return wr.flatten(i)},w_=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(er(u.pop(),Yf(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(er(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=wr.reduce(n.nodes);if(wr.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=b_(...f,e);h.length===0&&(h=Yf(n,e)),u.push(er(u.pop(),h)),n.nodes=[];return}let a=wr.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){u.push(er(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(er(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return wr.flatten(i(t))};Kf.exports=w_});var Zf=m((oT,Xf)=>{"use strict";Xf.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:`
|
2
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var rh=m((uT,th)=>{"use strict";var F_=dn(),{MAX_LENGTH:Jf,CHAR_BACKSLASH:Io,CHAR_BACKTICK:x_,CHAR_COMMA:v_,CHAR_DOT:R_,CHAR_LEFT_PARENTHESES:T_,CHAR_RIGHT_PARENTHESES:O_,CHAR_LEFT_CURLY_BRACE:B_,CHAR_RIGHT_CURLY_BRACE:P_,CHAR_LEFT_SQUARE_BRACKET:Qf,CHAR_RIGHT_SQUARE_BRACKET:eh,CHAR_DOUBLE_QUOTE:L_,CHAR_SINGLE_QUOTE:I_,CHAR_NO_BREAK_SPACE:N_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:k_}=Zf(),M_=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Jf,r.maxLength):Jf;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,u=n,a=0,c=t.length,l=0,f=0,h,E={},g=()=>t[l++],D=_=>{if(_.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&_.type==="text"){u.value+=_.value;return}return o.nodes.push(_),_.parent=o,_.prev=u,u=_,_};for(D({type:"bos"});l<c;)if(o=s[s.length-1],h=g(),!(h===k_||h===N_)){if(h===Io){D({type:"text",value:(e.keepEscaping?h:"")+g()});continue}if(h===eh){D({type:"text",value:"\\"+h});continue}if(h===Qf){a++;let _=!0,b;for(;l<c&&(b=g());){if(h+=b,b===Qf){a++;continue}if(b===Io){h+=g();continue}if(b===eh&&(a--,a===0))break}D({type:"text",value:h});continue}if(h===T_){o=D({type:"paren",nodes:[]}),s.push(o),D({type:"text",value:h});continue}if(h===O_){if(o.type!=="paren"){D({type:"text",value:h});continue}o=s.pop(),D({type:"text",value:h}),o=s[s.length-1];continue}if(h===L_||h===I_||h===x_){let _=h,b;for(e.keepQuotes!==!0&&(h="");l<c&&(b=g());){if(b===Io){h+=b+g();continue}if(b===_){e.keepQuotes===!0&&(h+=b);break}h+=b}D({type:"text",value:h});continue}if(h===B_){f++;let b={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=D(b),s.push(o),D({type:"open",value:h});continue}if(h===P_){if(o.type!=="brace"){D({type:"text",value:h});continue}let _="close";o=s.pop(),o.close=!0,D({type:_,value:h}),f--,o=s[s.length-1];continue}if(h===v_&&f>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:F_(o)}]}D({type:"comma",value:h}),o.commas++;continue}if(h===R_&&f>0&&o.commas===0){let _=o.nodes;if(f===0||_.length===0){D({type:"text",value:h});continue}if(u.type==="dot"){if(o.range=[],u.value+=h,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){_.pop();let b=_[_.length-1];b.value+=u.value+h,u=b,o.ranges--;continue}D({type:"dot",value:h});continue}D({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let _=s[s.length-1],b=_.nodes.indexOf(o);_.nodes.splice(b,1,...o.nodes)}while(s.length>0);return D({type:"eos"}),n};th.exports=M_});var sh=m((aT,nh)=>{"use strict";var ih=dn(),q_=zf(),H_=Vf(),$_=rh(),ve=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=ve.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ve.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ve.parse=(t,e={})=>$_(t,e);ve.stringify=(t,e={})=>ih(typeof t=="string"?ve.parse(t,e):t,e);ve.compile=(t,e={})=>(typeof t=="string"&&(t=ve.parse(t,e)),q_(t,e));ve.expand=(t,e={})=>{typeof t=="string"&&(t=ve.parse(t,e));let r=H_(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ve.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ve.compile(t,e):ve.expand(t,e);nh.exports=ve});var Ci=m((cT,lh)=>{"use strict";var U_=require("path"),Ke="\\\\/",oh=`[^${Ke}]`,ft="\\.",G_="\\+",j_="\\?",gn="\\/",W_="(?=.)",uh="[^/]",No=`(?:${gn}|$)`,ah=`(?:^|${gn})`,ko=`${ft}{1,2}${No}`,z_=`(?!${ft})`,Y_=`(?!${ah}${ko})`,K_=`(?!${ft}{0,1}${No})`,V_=`(?!${ko})`,X_=`[^.${gn}]`,Z_=`${uh}*?`,ch={DOT_LITERAL:ft,PLUS_LITERAL:G_,QMARK_LITERAL:j_,SLASH_LITERAL:gn,ONE_CHAR:W_,QMARK:uh,END_ANCHOR:No,DOTS_SLASH:ko,NO_DOT:z_,NO_DOTS:Y_,NO_DOT_SLASH:K_,NO_DOTS_SLASH:V_,QMARK_NO_DOT:X_,STAR:Z_,START_ANCHOR:ah},J_={...ch,SLASH_LITERAL:`[${Ke}]`,QMARK:oh,STAR:`${oh}*?`,DOTS_SLASH:`${ft}{1,2}(?:[${Ke}]|$)`,NO_DOT:`(?!${ft})`,NO_DOTS:`(?!(?:^|[${Ke}])${ft}{1,2}(?:[${Ke}]|$))`,NO_DOT_SLASH:`(?!${ft}{0,1}(?:[${Ke}]|$))`,NO_DOTS_SLASH:`(?!${ft}{1,2}(?:[${Ke}]|$))`,QMARK_NO_DOT:`[^.${Ke}]`,START_ANCHOR:`(?:^|[${Ke}])`,END_ANCHOR:`(?:[${Ke}]|$)`},Q_={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"};lh.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Q_,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:U_.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?J_:ch}}});var bi=m(Se=>{"use strict";var eS=require("path"),tS=process.platform==="win32",{REGEX_BACKSLASH:rS,REGEX_REMOVE_BACKSLASH:iS,REGEX_SPECIAL_CHARS:nS,REGEX_SPECIAL_CHARS_GLOBAL:sS}=Ci();Se.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Se.hasRegexChars=t=>nS.test(t);Se.isRegexChar=t=>t.length===1&&Se.hasRegexChars(t);Se.escapeRegex=t=>t.replace(sS,"\\$1");Se.toPosixSlashes=t=>t.replace(rS,"/");Se.removeBackslashes=t=>t.replace(iS,e=>e==="\\"?"":e);Se.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Se.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:tS===!0||eS.sep==="\\";Se.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Se.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Se.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Se.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Dh=m((fT,Eh)=>{"use strict";var fh=bi(),{CHAR_ASTERISK:Mo,CHAR_AT:oS,CHAR_BACKWARD_SLASH:wi,CHAR_COMMA:uS,CHAR_DOT:qo,CHAR_EXCLAMATION_MARK:Ho,CHAR_FORWARD_SLASH:gh,CHAR_LEFT_CURLY_BRACE:$o,CHAR_LEFT_PARENTHESES:Uo,CHAR_LEFT_SQUARE_BRACKET:aS,CHAR_PLUS:cS,CHAR_QUESTION_MARK:hh,CHAR_RIGHT_CURLY_BRACE:lS,CHAR_RIGHT_PARENTHESES:ph,CHAR_RIGHT_SQUARE_BRACKET:fS}=Ci(),dh=t=>t===gh||t===wi,mh=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hS=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,c=-1,l=0,f=0,h=!1,E=!1,g=!1,D=!1,_=!1,b=!1,F=!1,M=!1,re=!1,L=!1,$=0,P,O,k={value:"",depth:0,isGlob:!1},J=()=>c>=i,A=()=>a.charCodeAt(c+1),S=()=>(P=O,a.charCodeAt(++c));for(;c<i;){O=S();let v;if(O===wi){F=k.backslashes=!0,O=S(),O===$o&&(b=!0);continue}if(b===!0||O===$o){for($++;J()!==!0&&(O=S());){if(O===wi){F=k.backslashes=!0,S();continue}if(O===$o){$++;continue}if(b!==!0&&O===qo&&(O=S())===qo){if(h=k.isBrace=!0,g=k.isGlob=!0,L=!0,n===!0)continue;break}if(b!==!0&&O===uS){if(h=k.isBrace=!0,g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===lS&&($--,$===0)){b=!1,h=k.isBrace=!0,L=!0;break}}if(n===!0)continue;break}if(O===gh){if(s.push(c),o.push(k),k={value:"",depth:0,isGlob:!1},L===!0)continue;if(P===qo&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(O===cS||O===oS||O===Mo||O===hh||O===Ho)===!0&&A()===Uo){if(g=k.isGlob=!0,D=k.isExtglob=!0,L=!0,O===Ho&&c===l&&(re=!0),n===!0){for(;J()!==!0&&(O=S());){if(O===wi){F=k.backslashes=!0,O=S();continue}if(O===ph){g=k.isGlob=!0,L=!0;break}}continue}break}if(O===Mo){if(P===Mo&&(_=k.isGlobstar=!0),g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===hh){if(g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===aS){for(;J()!==!0&&(v=S());){if(v===wi){F=k.backslashes=!0,S();continue}if(v===fS){E=k.isBracket=!0,g=k.isGlob=!0,L=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&O===Ho&&c===l){M=k.negated=!0,l++;continue}if(r.noparen!==!0&&O===Uo){if(g=k.isGlob=!0,n===!0){for(;J()!==!0&&(O=S());){if(O===Uo){F=k.backslashes=!0,O=S();continue}if(O===ph){L=!0;break}}continue}break}if(g===!0){if(L=!0,n===!0)continue;break}}r.noext===!0&&(D=!1,g=!1);let y=a,C="",p="";l>0&&(C=a.slice(0,l),a=a.slice(l),f-=l),y&&g===!0&&f>0?(y=a.slice(0,f),p=a.slice(f)):g===!0?(y="",p=a):y=a,y&&y!==""&&y!=="/"&&y!==a&&dh(y.charCodeAt(y.length-1))&&(y=y.slice(0,-1)),r.unescape===!0&&(p&&(p=fh.removeBackslashes(p)),y&&F===!0&&(y=fh.removeBackslashes(y)));let d={prefix:C,input:t,start:l,base:y,glob:p,isBrace:h,isBracket:E,isGlob:g,isExtglob:D,isGlobstar:_,negated:M,negatedExtglob:re};if(r.tokens===!0&&(d.maxDepth=0,dh(O)||o.push(k),d.tokens=o),r.parts===!0||r.tokens===!0){let v;for(let T=0;T<s.length;T++){let j=v?v+1:l,z=s[T],Q=t.slice(j,z);r.tokens&&(T===0&&l!==0?(o[T].isPrefix=!0,o[T].value=C):o[T].value=Q,mh(o[T]),d.maxDepth+=o[T].depth),(T!==0||Q!=="")&&u.push(Q),v=z}if(v&&v+1<t.length){let T=t.slice(v+1);u.push(T),r.tokens&&(o[o.length-1].value=T,mh(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=u}return d};Eh.exports=hS});var _h=m((hT,Ah)=>{"use strict";var En=Ci(),Re=bi(),{MAX_LENGTH:Dn,POSIX_REGEX_SOURCE:pS,REGEX_NON_SPECIAL_CHARS:dS,REGEX_SPECIAL_CHARS_BACKREF:mS,REPLACEMENTS:yh}=En,gS=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Re.escapeRegex(n)).join("..")}return r},Fr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Go=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=yh[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",a=Re.isWindows(e),c=En.globChars(a),l=En.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:D,NO_DOT:_,NO_DOT_SLASH:b,NO_DOTS_SLASH:F,QMARK:M,QMARK_NO_DOT:re,STAR:L,START_ANCHOR:$}=c,P=x=>`(${u}(?:(?!${$}${x.dot?D:f}).)*?)`,O=r.dot?"":_,k=r.dot?M:re,J=r.bash===!0?P(r):L;r.capture&&(J=`(${J})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Re.removePrefix(t,A),n=t.length;let S=[],y=[],C=[],p=s,d,v=()=>A.index===n-1,T=A.peek=(x=1)=>t[A.index+x],j=A.advance=()=>t[++A.index]||"",z=()=>t.slice(A.index+1),Q=(x="",Y=0)=>{A.consumed+=x,A.index+=Y},xe=x=>{A.output+=x.output!=null?x.output:x.value,Q(x.value)},ot=()=>{let x=1;for(;T()==="!"&&(T(2)!=="("||T(3)==="?");)j(),A.start++,x++;return x%2===0?!1:(A.negated=!0,A.start++,!0)},Qi=x=>{A[x]++,C.push(x)},Vt=x=>{A[x]--,C.pop()},N=x=>{if(p.type==="globstar"){let Y=A.braces>0&&(x.type==="comma"||x.type==="brace"),w=x.extglob===!0||S.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!Y&&!w&&(A.output=A.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=J,A.output+=p.output)}if(S.length&&x.type!=="paren"&&(S[S.length-1].inner+=x.value),(x.value||x.output)&&xe(x),p&&p.type==="text"&&x.type==="text"){p.value+=x.value,p.output=(p.output||"")+x.value;return}x.prev=p,o.push(x),p=x},en=(x,Y)=>{let w={...l[Y],conditions:1,inner:""};w.prev=p,w.parens=A.parens,w.output=A.output;let I=(r.capture?"(":"")+w.open;Qi("parens"),N({type:x,value:Y,output:A.output?"":g}),N({type:"paren",extglob:!0,value:j(),output:I}),S.push(w)},nD=x=>{let Y=x.close+(r.capture?")":""),w;if(x.type==="negate"){let I=J;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(I=P(r)),(I!==J||v()||/^\)+$/.test(z()))&&(Y=x.close=`)$))${I}`),x.inner.includes("*")&&(w=z())&&/^\.[^\\/.]+$/.test(w)){let Z=Go(w,{...e,fastpaths:!1}).output;Y=x.close=`)${Z})${I})`}x.prev.type==="bos"&&(A.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:d,output:Y}),Vt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let x=!1,Y=t.replace(mS,(w,I,Z,ye,ne,uo)=>ye==="\\"?(x=!0,w):ye==="?"?I?I+ye+(ne?M.repeat(ne.length):""):uo===0?k+(ne?M.repeat(ne.length):""):M.repeat(Z.length):ye==="."?f.repeat(Z.length):ye==="*"?I?I+ye+(ne?J:""):J:I?w:`\\${w}`);return x===!0&&(r.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),Y===t&&r.contains===!0?(A.output=t,A):(A.output=Re.wrapOutput(Y,A,e),A)}for(;!v();){if(d=j(),d==="\0")continue;if(d==="\\"){let w=T();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){d+="\\",N({type:"text",value:d});continue}let I=/^\\+/.exec(z()),Z=0;if(I&&I[0].length>2&&(Z=I[0].length,A.index+=Z,Z%2!==0&&(d+="\\")),r.unescape===!0?d=j():d+=j(),A.brackets===0){N({type:"text",value:d});continue}}if(A.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let w=p.value.slice(1);if(w.includes("[")&&(p.posix=!0,w.includes(":"))){let I=p.value.lastIndexOf("["),Z=p.value.slice(0,I),ye=p.value.slice(I+2),ne=pS[ye];if(ne){p.value=Z+ne,A.backtrack=!0,j(),!s.output&&o.indexOf(p)===1&&(s.output=g);continue}}}(d==="["&&T()!==":"||d==="-"&&T()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,xe({value:d});continue}if(A.quotes===1&&d!=='"'){d=Re.escapeRegex(d),p.value+=d,xe({value:d});continue}if(d==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:d});continue}if(d==="("){Qi("parens"),N({type:"paren",value:d});continue}if(d===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Fr("opening","("));let w=S[S.length-1];if(w&&A.parens===w.parens+1){nD(S.pop());continue}N({type:"paren",value:d,output:A.parens?")":"\\)"}),Vt("parens");continue}if(d==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Fr("closing","]"));d=`\\${d}`}else Qi("brackets");N({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){N({type:"text",value:d,output:`\\${d}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Fr("opening","["));N({type:"text",value:d,output:`\\${d}`});continue}Vt("brackets");let w=p.value.slice(1);if(p.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(d=`/${d}`),p.value+=d,xe({value:d}),r.literalBrackets===!1||Re.hasRegexChars(w))continue;let I=Re.escapeRegex(p.value);if(A.output=A.output.slice(0,-p.value.length),r.literalBrackets===!0){A.output+=I,p.value=I;continue}p.value=`(${u}${I}|${p.value})`,A.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){Qi("braces");let w={type:"brace",value:d,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};y.push(w),N(w);continue}if(d==="}"){let w=y[y.length-1];if(r.nobrace===!0||!w){N({type:"text",value:d,output:d});continue}let I=")";if(w.dots===!0){let Z=o.slice(),ye=[];for(let ne=Z.length-1;ne>=0&&(o.pop(),Z[ne].type!=="brace");ne--)Z[ne].type!=="dots"&&ye.unshift(Z[ne].value);I=gS(ye,r),A.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Z=A.output.slice(0,w.outputIndex),ye=A.tokens.slice(w.tokensIndex);w.value=w.output="\\{",d=I="\\}",A.output=Z;for(let ne of ye)A.output+=ne.output||ne.value}N({type:"brace",value:d,output:I}),Vt("braces"),y.pop();continue}if(d==="|"){S.length>0&&S[S.length-1].conditions++,N({type:"text",value:d});continue}if(d===","){let w=d,I=y[y.length-1];I&&C[C.length-1]==="braces"&&(I.comma=!0,w="|"),N({type:"comma",value:d,output:w});continue}if(d==="/"){if(p.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",o.pop(),p=s;continue}N({type:"slash",value:d,output:E});continue}if(d==="."){if(A.braces>0&&p.type==="dot"){p.value==="."&&(p.output=f);let w=y[y.length-1];p.type="dots",p.output+=d,p.value+=d,w.dots=!0;continue}if(A.braces+A.parens===0&&p.type!=="bos"&&p.type!=="slash"){N({type:"text",value:d,output:f});continue}N({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&T()==="("&&T(2)!=="?"){en("qmark",d);continue}if(p&&p.type==="paren"){let I=T(),Z=d;if(I==="<"&&!Re.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(z()))&&(Z=`\\${d}`),N({type:"text",value:d,output:Z});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){N({type:"qmark",value:d,output:re});continue}N({type:"qmark",value:d,output:M});continue}if(d==="!"){if(r.noextglob!==!0&&T()==="("&&(T(2)!=="?"||!/[!=<:]/.test(T(3)))){en("negate",d);continue}if(r.nonegate!==!0&&A.index===0){ot();continue}}if(d==="+"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){en("plus",d);continue}if(p&&p.value==="("||r.regex===!1){N({type:"plus",value:d,output:h});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||A.parens>0){N({type:"plus",value:d});continue}N({type:"plus",value:h});continue}if(d==="@"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){N({type:"at",extglob:!0,value:d,output:""});continue}N({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let w=dS.exec(z());w&&(d+=w[0],A.index+=w[0].length),N({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=J,A.backtrack=!0,A.globstar=!0,Q(d);continue}let x=z();if(r.noextglob!==!0&&/^\([^?]/.test(x)){en("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){Q(d);continue}let w=p.prev,I=w.prev,Z=w.type==="slash"||w.type==="bos",ye=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!Z||x[0]&&x[0]!=="/")){N({type:"star",value:d,output:""});continue}let ne=A.braces>0&&(w.type==="comma"||w.type==="brace"),uo=S.length&&(w.type==="pipe"||w.type==="paren");if(!Z&&w.type!=="paren"&&!ne&&!uo){N({type:"star",value:d,output:""});continue}for(;x.slice(0,3)==="/**";){let tn=t[A.index+4];if(tn&&tn!=="/")break;x=x.slice(3),Q("/**",3)}if(w.type==="bos"&&v()){p.type="globstar",p.value+=d,p.output=P(r),A.output=p.output,A.globstar=!0,Q(d);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!ye&&v()){A.output=A.output.slice(0,-(w.output+p.output).length),w.output=`(?:${w.output}`,p.type="globstar",p.output=P(r)+(r.strictSlashes?")":"|$)"),p.value+=d,A.globstar=!0,A.output+=w.output+p.output,Q(d);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&x[0]==="/"){let tn=x[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(w.output+p.output).length),w.output=`(?:${w.output}`,p.type="globstar",p.output=`${P(r)}${E}|${E}${tn})`,p.value+=d,A.output+=w.output+p.output,A.globstar=!0,Q(d+j()),N({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&x[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${E}|${P(r)}${E})`,A.output=p.output,A.globstar=!0,Q(d+j()),N({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-p.output.length),p.type="globstar",p.output=P(r),p.value+=d,A.output+=p.output,A.globstar=!0,Q(d);continue}let Y={type:"star",value:d,output:J};if(r.bash===!0){Y.output=".*?",(p.type==="bos"||p.type==="slash")&&(Y.output=O+Y.output),N(Y);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){Y.output=d,N(Y);continue}(A.index===A.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(A.output+=b,p.output+=b):r.dot===!0?(A.output+=F,p.output+=F):(A.output+=O,p.output+=O),T()!=="*"&&(A.output+=g,p.output+=g)),N(Y)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing","]"));A.output=Re.escapeLast(A.output,"["),Vt("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing",")"));A.output=Re.escapeLast(A.output,"("),Vt("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing","}"));A.output=Re.escapeLast(A.output,"{"),Vt("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${E}?`}),A.backtrack===!0){A.output="";for(let x of A.tokens)A.output+=x.output!=null?x.output:x.value,x.suffix&&(A.output+=x.suffix)}return A};Go.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=yh[t]||t;let s=Re.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:E,START_ANCHOR:g}=En.globChars(s),D=r.dot?f:l,_=r.dot?h:l,b=r.capture?"":"?:",F={negated:!1,prefix:""},M=r.bash===!0?".*?":E;r.capture&&(M=`(${M})`);let re=O=>O.noglobstar===!0?M:`(${b}(?:(?!${g}${O.dot?c:o}).)*?)`,L=O=>{switch(O){case"*":return`${D}${a}${M}`;case".*":return`${o}${a}${M}`;case"*.*":return`${D}${M}${o}${a}${M}`;case"*/*":return`${D}${M}${u}${a}${_}${M}`;case"**":return D+re(r);case"**/*":return`(?:${D}${re(r)}${u})?${_}${a}${M}`;case"**/*.*":return`(?:${D}${re(r)}${u})?${_}${M}${o}${a}${M}`;case"**/.*":return`(?:${D}${re(r)}${u})?${o}${a}${M}`;default:{let k=/^(.*?)\.(\w+)$/.exec(O);if(!k)return;let J=L(k[1]);return J?J+o+k[2]:void 0}}},$=Re.removePrefix(t,F),P=L($);return P&&r.strictSlashes!==!0&&(P+=`${u}?`),P};Ah.exports=Go});var Ch=m((pT,Sh)=>{"use strict";var ES=require("path"),DS=Dh(),jo=_h(),Wo=bi(),yS=Ci(),AS=t=>t&&typeof t=="object"&&!Array.isArray(t),ee=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>ee(h,e,r));return h=>{for(let E of l){let g=E(h);if(g)return g}return!1}}let i=AS(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Wo.isWindows(e),o=i?ee.compileRe(t,e):ee.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=ee(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:E,output:g}=ee.test(l,o,e,{glob:t,posix:s}),D={glob:t,state:u,regex:o,posix:s,input:l,output:g,match:E,isMatch:h};return typeof n.onResult=="function"&&n.onResult(D),h===!1?(D.isMatch=!1,f?D:!1):a(l)?(typeof n.onIgnore=="function"&&n.onIgnore(D),D.isMatch=!1,f?D:!1):(typeof n.onMatch=="function"&&n.onMatch(D),f?D:!0)};return r&&(c.state=u),c};ee.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Wo.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=ee.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};ee.matchBase=(t,e,r,i=Wo.isWindows(r))=>(e instanceof RegExp?e:ee.makeRe(e,r)).test(ES.basename(t));ee.isMatch=(t,e,r)=>ee(e,r)(t);ee.parse=(t,e)=>Array.isArray(t)?t.map(r=>ee.parse(r,e)):jo(t,{...e,fastpaths:!1});ee.scan=(t,e)=>DS(t,e);ee.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=ee.toRegex(u,e);return i===!0&&(a.state=t),a};ee.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=jo.fastpaths(t,e)),n.output||(n=jo(t,e)),ee.compileRe(n,e,r,i)};ee.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};ee.constants=yS;Sh.exports=ee});var wh=m((dT,bh)=>{"use strict";bh.exports=Ch()});var Th=m((mT,Rh)=>{"use strict";var xh=require("util"),vh=sh(),Ve=wh(),zo=bi(),Fh=t=>t===""||t==="./",V=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Ve(String(e[l]),{...r,onResult:u},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let E of t){let g=f(E,!0);(h?!g.isMatch:g.isMatch)&&(h?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};V.match=V;V.matcher=(t,e)=>Ve(t,e);V.isMatch=(t,e,r)=>Ve(e,r)(t);V.any=V.isMatch;V.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(V(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};V.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xh.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>V.contains(t,i,r));if(typeof e=="string"){if(Fh(t)||Fh(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return V.isMatch(t,e,{...r,contains:!0})};V.matchKeys=(t,e,r)=>{if(!zo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=V(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};V.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ve(String(n),r);if(i.some(o=>s(o)))return!0}return!1};V.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ve(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};V.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xh.inspect(t)}"`);return[].concat(e).every(i=>Ve(i,r)(t))};V.capture=(t,e,r)=>{let i=zo.isWindows(r),s=Ve.makeRe(String(t),{...r,capture:!0}).exec(i?zo.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};V.makeRe=(...t)=>Ve.makeRe(...t);V.scan=(...t)=>Ve.scan(...t);V.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of vh(String(i),e))r.push(Ve.parse(n,e));return r};V.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:vh(t,e)};V.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return V.braces(t,{...e,expand:!0})};Rh.exports=V});var Mh=m(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.matchAny=B.convertPatternsToRe=B.makeRe=B.getPatternParts=B.expandBraceExpansion=B.expandPatternsWithBraceExpansion=B.isAffectDepthOfReadingPattern=B.endsWithSlashGlobStar=B.hasGlobStar=B.getBaseDirectory=B.isPatternRelatedToParentDirectory=B.getPatternsOutsideCurrentDirectory=B.getPatternsInsideCurrentDirectory=B.getPositivePatterns=B.getNegativePatterns=B.isPositivePattern=B.isNegativePattern=B.convertToNegativePattern=B.convertToPositivePattern=B.isDynamicPattern=B.isStaticPattern=void 0;var _S=require("path"),SS=Sf(),Yo=Th(),Oh="**",CS="\\",bS=/[*?]|^!/,wS=/\[[^[]*]/,FS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xS=/[!*+?@]\([^(]*\)/,vS=/,|\.\./;function Bh(t,e={}){return!Ph(t,e)}B.isStaticPattern=Bh;function Ph(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(CS)||bS.test(t)||wS.test(t)||FS.test(t)||e.extglob!==!1&&xS.test(t)||e.braceExpansion!==!1&&RS(t))}B.isDynamicPattern=Ph;function RS(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return vS.test(i)}function TS(t){return yn(t)?t.slice(1):t}B.convertToPositivePattern=TS;function OS(t){return"!"+t}B.convertToNegativePattern=OS;function yn(t){return t.startsWith("!")&&t[1]!=="("}B.isNegativePattern=yn;function Lh(t){return!yn(t)}B.isPositivePattern=Lh;function BS(t){return t.filter(yn)}B.getNegativePatterns=BS;function PS(t){return t.filter(Lh)}B.getPositivePatterns=PS;function LS(t){return t.filter(e=>!Ko(e))}B.getPatternsInsideCurrentDirectory=LS;function IS(t){return t.filter(Ko)}B.getPatternsOutsideCurrentDirectory=IS;function Ko(t){return t.startsWith("..")||t.startsWith("./..")}B.isPatternRelatedToParentDirectory=Ko;function NS(t){return SS(t,{flipBackslashes:!1})}B.getBaseDirectory=NS;function kS(t){return t.includes(Oh)}B.hasGlobStar=kS;function Ih(t){return t.endsWith("/"+Oh)}B.endsWithSlashGlobStar=Ih;function MS(t){let e=_S.basename(t);return Ih(t)||Bh(e)}B.isAffectDepthOfReadingPattern=MS;function qS(t){return t.reduce((e,r)=>e.concat(Nh(r)),[])}B.expandPatternsWithBraceExpansion=qS;function Nh(t){return Yo.braces(t,{expand:!0,nodupes:!0})}B.expandBraceExpansion=Nh;function HS(t,e){let{parts:r}=Yo.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}B.getPatternParts=HS;function kh(t,e){return Yo.makeRe(t,e)}B.makeRe=kh;function $S(t,e){return t.map(r=>kh(r,e))}B.convertPatternsToRe=$S;function US(t,e){return e.some(r=>r.test(t))}B.matchAny=US});var Uh=m((ET,$h)=>{"use strict";var GS=require("stream"),qh=GS.PassThrough,jS=Array.prototype.slice;$h.exports=WS;function WS(){let t=[],e=jS.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=qh(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push(Hh(arguments[l],i));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,a())}function E(g){function D(){g.removeListener("merge2UnpipeEnd",D),g.removeListener("end",D),s&&g.removeListener("error",_),h()}function _(b){o.emit("error",b)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",D),g.on("end",D),s&&g.on("error",_),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)E(l[g]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function Hh(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Hh(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(qh(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jh=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.merge=void 0;var zS=Uh();function YS(t){let e=zS(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Gh(t)),e.once("end",()=>Gh(t)),e}An.merge=YS;function Gh(t){t.forEach(e=>e.emit("close"))}});var Wh=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.isEmpty=xr.isString=void 0;function KS(t){return typeof t=="string"}xr.isString=KS;function VS(t){return t===""}xr.isEmpty=VS});var ht=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.string=he.stream=he.pattern=he.path=he.fs=he.errno=he.array=void 0;var XS=hf();he.array=XS;var ZS=pf();he.errno=ZS;var JS=df();he.fs=JS;var QS=mf();he.path=QS;var eC=Mh();he.pattern=eC;var tC=jh();he.stream=tC;var rC=Wh();he.string=rC});var Kh=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.convertPatternGroupToTask=pe.convertPatternGroupsToTasks=pe.groupPatternsByBaseDirectory=pe.getNegativePatternsAsPositive=pe.getPositivePatterns=pe.convertPatternsToTasks=pe.generate=void 0;var pt=ht();function iC(t,e){let r=zh(t),i=Yh(t,e.ignore),n=r.filter(a=>pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>pt.pattern.isDynamicPattern(a,e)),o=Vo(n,i,!1),u=Vo(s,i,!0);return o.concat(u)}pe.generate=iC;function Vo(t,e,r){let i=[],n=pt.pattern.getPatternsOutsideCurrentDirectory(t),s=pt.pattern.getPatternsInsideCurrentDirectory(t),o=Xo(n),u=Xo(s);return i.push(...Zo(o,e,r)),"."in u?i.push(Jo(".",s,e,r)):i.push(...Zo(u,e,r)),i}pe.convertPatternsToTasks=Vo;function zh(t){return pt.pattern.getPositivePatterns(t)}pe.getPositivePatterns=zh;function Yh(t,e){return pt.pattern.getNegativePatterns(t).concat(e).map(pt.pattern.convertToPositivePattern)}pe.getNegativePatternsAsPositive=Yh;function Xo(t){let e={};return t.reduce((r,i)=>{let n=pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}pe.groupPatternsByBaseDirectory=Xo;function Zo(t,e,r){return Object.keys(t).map(i=>Jo(i,t[i],e,r))}pe.convertPatternGroupsToTasks=Zo;function Jo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(pt.pattern.convertToNegativePattern))}}pe.convertPatternGroupToTask=Jo});var Xh=m(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.removeDuplicateSlashes=vr.transform=void 0;var nC=/(?!^)\/{2,}/g;function sC(t){return t.map(e=>Vh(e))}vr.transform=sC;function Vh(t){return t.replace(nC,"/")}vr.removeDuplicateSlashes=Vh});var Jh=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.read=void 0;function oC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Zh(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Qo(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Zh(r,s);return}Qo(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Qo(r,o)})})}_n.read=oC;function Zh(t,e){t(e)}function Qo(t,e){t(null,e)}});var Qh=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.read=void 0;function uC(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Sn.read=uC});var ep=m(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createFileSystemAdapter=Rt.FILE_SYSTEM_ADAPTER=void 0;var Cn=require("fs");Rt.FILE_SYSTEM_ADAPTER={lstat:Cn.lstat,stat:Cn.stat,lstatSync:Cn.lstatSync,statSync:Cn.statSync};function aC(t){return t===void 0?Rt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rt.FILE_SYSTEM_ADAPTER),t)}Rt.createFileSystemAdapter=aC});var tp=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var cC=ep(),eu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=cC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};tu.default=eu});var tr=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.statSync=Tt.stat=Tt.Settings=void 0;var rp=Jh(),lC=Qh(),ru=tp();Tt.Settings=ru.default;function fC(t,e,r){if(typeof e=="function"){rp.read(t,iu(),e);return}rp.read(t,iu(e),r)}Tt.stat=fC;function hC(t,e){let r=iu(e);return lC.read(t,r)}Tt.statSync=hC;function iu(t={}){return t instanceof ru.default?t:new ru.default(t)}});var sp=m((vT,np)=>{var ip;np.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ip||(ip=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var up=m((RT,op)=>{op.exports=dC;var pC=sp();function dC(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(a){function c(){e&&e(a,r),e=null}s?pC(c):c()}function u(a,c,l){r[a]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(a){t[a](function(c,l){u(a,c,l)})}):t.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var nu=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bn=process.versions.node.split(".");if(bn[0]===void 0||bn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ap=Number.parseInt(bn[0],10),mC=Number.parseInt(bn[1],10),cp=10,gC=10,EC=ap>cp,DC=ap===cp&&mC>=gC;wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=EC||DC});var lp=m(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.createDirentFromStats=void 0;var su=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function yC(t,e){return new su(t,e)}Fn.createDirentFromStats=yC});var ou=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.fs=void 0;var AC=lp();xn.fs=AC});var uu=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.joinPathSegments=void 0;function _C(t,e,r){return t.endsWith(r)?t+e:t+r+e}vn.joinPathSegments=_C});var gp=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var SC=tr(),fp=up(),CC=nu(),hp=ou(),pp=uu();function bC(t,e,r){if(!e.stats&&CC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){dp(t,e,r);return}mp(t,e,r)}Ot.read=bC;function dp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:pp.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){au(r,s);return}let o=s.map(u=>wC(u,e));fp(o,(u,a)=>{if(u!==null){Rn(r,u);return}au(r,a)})})}Ot.readdirWithFileTypes=dp;function wC(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=hp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function mp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(o=>{let u=pp.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{SC.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:hp.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});fp(s,(o,u)=>{if(o!==null){Rn(r,o);return}au(r,u)})})}Ot.readdir=mp;function Rn(t,e){t(e)}function au(t,e){t(null,e)}});var _p=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.readdir=Bt.readdirWithFileTypes=Bt.read=void 0;var FC=tr(),xC=nu(),Ep=ou(),Dp=uu();function vC(t,e){return!e.stats&&xC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?yp(t,e):Ap(t,e)}Bt.read=vC;function yp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Dp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Ep.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Bt.readdirWithFileTypes=yp;function Ap(t,e){return e.fs.readdirSync(t).map(i=>{let n=Dp.joinPathSegments(t,i,e.pathSegmentSeparator),s=FC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Ep.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Bt.readdir=Ap});var Sp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var Rr=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:Rr.lstat,stat:Rr.stat,lstatSync:Rr.lstatSync,statSync:Rr.statSync,readdir:Rr.readdir,readdirSync:Rr.readdirSync};function RC(t){return t===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),t)}Pt.createFileSystemAdapter=RC});var Cp=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var TC=require("path"),OC=tr(),BC=Sp(),cu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=BC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,TC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new OC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};lu.default=cu});var Tn=m(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Settings=Lt.scandirSync=Lt.scandir=void 0;var bp=gp(),PC=_p(),fu=Cp();Lt.Settings=fu.default;function LC(t,e,r){if(typeof e=="function"){bp.read(t,hu(),e);return}bp.read(t,hu(e),r)}Lt.scandir=LC;function IC(t,e){let r=hu(e);return PC.read(t,r)}Lt.scandirSync=IC;function hu(t={}){return t instanceof fu.default?t:new fu.default(t)}});var Fp=m((qT,wp)=>{"use strict";function NC(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}wp.exports=NC});var vp=m((HT,pu)=>{"use strict";var kC=Fp();function xp(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=kC(MC),n=null,s=null,o=0,u=null,a={push:D,drain:Ie,saturated:Ie,pause:l,paused:!1,concurrency:r,running:c,resume:E,idle:g,length:f,getQueue:h,unshift:_,empty:Ie,kill:F,killAndDrain:M,error:re};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=n,$=0;L;)L=L.next,$++;return $}function h(){for(var L=n,$=[];L;)$.push(L.value),L=L.next;return $}function E(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,b()}}function g(){return o===0&&a.length()===0}function D(L,$){var P=i.get();P.context=t,P.release=b,P.value=L,P.callback=$||Ie,P.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=P,s=P):(n=P,s=P,a.saturated()):(o++,e.call(t,P.value,P.worked))}function _(L,$){var P=i.get();P.context=t,P.release=b,P.value=L,P.callback=$||Ie,o===a.concurrency||a.paused?n?(P.next=n,n=P):(n=P,s=P,a.saturated()):(o++,e.call(t,P.value,P.worked))}function b(L){L&&i.release(L);var $=n;$?a.paused?o--:(s===n&&(s=null),n=$.next,$.next=null,e.call(t,$.value,$.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=Ie}function M(){n=null,s=null,a.drain(),a.drain=Ie}function re(L){u=L}}function Ie(){}function MC(){this.value=null,this.callback=Ie,this.next=null,this.release=Ie,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ie,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function qC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var n=xp(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=c,n;function u(l){var f=new Promise(function(h,E){s(l,function(g,D){if(g){E(g);return}h(D)})});return f.catch(Ie),f}function a(l){var f=new Promise(function(h,E){o(l,function(g,D){if(g){E(g);return}h(D)})});return f.catch(Ie),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}pu.exports=xp;pu.exports.promise=qC});var On=m(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.joinPathSegments=Xe.replacePathSegmentSeparator=Xe.isAppliedFilter=Xe.isFatalError=void 0;function HC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Xe.isFatalError=HC;function $C(t,e){return t===null||t(e)}Xe.isAppliedFilter=$C;function UC(t,e){return t.split(/[/\\]/).join(e)}Xe.replacePathSegmentSeparator=UC;function GC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Xe.joinPathSegments=GC});var gu=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var jC=On(),du=class{constructor(e,r){this._root=e,this._settings=r,this._root=jC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};mu.default=du});var yu=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var WC=require("events"),zC=Tn(),YC=vp(),Bn=On(),KC=gu(),Eu=class extends KC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zC.scandir,this._emitter=new WC.EventEmitter,this._queue=YC(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Bn.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Bn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Du.default=Eu});var Rp=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var VC=yu(),Au=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{XC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZC(e,this._storage)}),this._reader.read()}};_u.default=Au;function XC(t,e){t(e)}function ZC(t,e){t(null,e)}});var Tp=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var JC=require("stream"),QC=yu(),Su=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QC.default(this._root,this._settings),this._stream=new JC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Cu.default=Su});var Op=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var eb=Tn(),Pn=On(),tb=gu(),bu=class extends tb.default{constructor(){super(...arguments),this._scandir=eb.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Pn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Pn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Pn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};wu.default=bu});var Bp=m(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var rb=Op(),Fu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new rb.default(this._root,this._settings)}read(){return this._reader.read()}};xu.default=Fu});var Pp=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var ib=require("path"),nb=Tn(),vu=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ib.sep),this.fsScandirSettings=new nb.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ru.default=vu});var In=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.Settings=Ze.walkStream=Ze.walkSync=Ze.walk=void 0;var Lp=Rp(),sb=Tp(),ob=Bp(),Tu=Pp();Ze.Settings=Tu.default;function ub(t,e,r){if(typeof e=="function"){new Lp.default(t,Ln()).read(e);return}new Lp.default(t,Ln(e)).read(r)}Ze.walk=ub;function ab(t,e){let r=Ln(e);return new ob.default(t,r).read()}Ze.walkSync=ab;function cb(t,e){let r=Ln(e);return new sb.default(t,r).read()}Ze.walkStream=cb;function Ln(t={}){return t instanceof Tu.default?t:new Tu.default(t)}});var Nn=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var lb=require("path"),fb=tr(),Ip=ht(),Ou=class{constructor(e){this._settings=e,this._fsStatSettings=new fb.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return lb.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Ip.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Ip.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Bu.default=Ou});var Iu=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var hb=require("stream"),pb=tr(),db=In(),mb=Nn(),Pu=class extends mb.default{constructor(){super(...arguments),this._walkStream=db.walkStream,this._stat=pb.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hb.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Lu.default=Pu});var Np=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var gb=In(),Eb=Nn(),Db=Iu(),Nu=class extends Eb.default{constructor(){super(...arguments),this._walkAsync=gb.walk,this._readerStream=new Db.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",u=>i.push(u)),n.once("end",()=>s(i))})}};ku.default=Nu});var kp=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Tr=ht(),Mu=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Tr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Tr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Tr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Tr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Tr.array.splitWhen(e,r=>r.dynamic&&Tr.pattern.hasGlobStar(r.pattern))}};qu.default=Mu});var Mp=m($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var yb=kp(),Hu=class extends yb.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};$u.default=Hu});var qp=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var kn=ht(),Ab=Mp(),Uu=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new Ab.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(kn.pattern.isAffectDepthOfReadingPattern);return kn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=kn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!kn.pattern.matchAny(e,r)}};Gu.default=Uu});var Hp=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var rr=ht(),ju=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=rr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=rr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=rr.path.makeAbsolute(this._settings.cwd,e);return rr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=rr.path.removeLeadingDotSegment(e),s=rr.pattern.matchAny(n,r);return!s&&i?rr.pattern.matchAny(n+"/",r):s}};Wu.default=ju});var $p=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var _b=ht(),zu=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return _b.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Yu.default=zu});var Gp=m(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var Up=ht(),Ku=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Up.path.makeAbsolute(this._settings.cwd,r),r=Up.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Vu.default=Ku});var Mn=m(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Sb=require("path"),Cb=qp(),bb=Hp(),wb=$p(),Fb=Gp(),Xu=class{constructor(e){this._settings=e,this.errorFilter=new wb.default(this._settings),this.entryFilter=new bb.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Cb.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fb.default(this._settings)}_getRootDirectory(e){return Sb.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Zu.default=Xu});var jp=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var xb=Np(),vb=Mn(),Ju=class extends vb.default{constructor(){super(...arguments),this._reader=new xb.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Qu.default=Ju});var Wp=m(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var Rb=require("stream"),Tb=Iu(),Ob=Mn(),ea=class extends Ob.default{constructor(){super(...arguments),this._reader=new Tb.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Rb.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};ta.default=ea});var zp=m(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var Bb=tr(),Pb=In(),Lb=Nn(),ra=class extends Lb.default{constructor(){super(...arguments),this._walkSync=Pb.walkSync,this._statSync=Bb.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};ia.default=ra});var Yp=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var Ib=zp(),Nb=Mn(),na=class extends Nb.default{constructor(){super(...arguments),this._reader=new Ib.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};sa.default=na});var Kp=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Or=require("fs"),kb=require("os"),Mb=Math.max(kb.cpus().length,1);Br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Or.lstat,lstatSync:Or.lstatSync,stat:Or.stat,statSync:Or.statSync,readdir:Or.readdir,readdirSync:Or.readdirSync};var oa=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Mb),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Br.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Br.default=oa});var Jp=m((fO,Zp)=>{"use strict";var Vp=Kh(),Xp=Xh(),qb=jp(),Hb=Wp(),$b=Yp(),ua=Kp(),ir=ht();async function aa(t,e){Pr(t);let r=ca(t,qb.default,e),i=await Promise.all(r);return ir.array.flatten(i)}(function(t){function e(o,u){Pr(o);let a=ca(o,$b.default,u);return ir.array.flatten(a)}t.sync=e;function r(o,u){Pr(o);let a=ca(o,Hb.default,u);return ir.stream.merge(a)}t.stream=r;function i(o,u){Pr(o);let a=Xp.transform([].concat(o)),c=new ua.default(u);return Vp.generate(a,c)}t.generateTasks=i;function n(o,u){Pr(o);let a=new ua.default(u);return ir.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return Pr(o),ir.path.escape(o)}t.escapePath=s})(aa||(aa={}));function ca(t,e,r){let i=Xp.transform([].concat(t)),n=new ua.default(r),s=Vp.generate(i,n),o=new e(n);return s.map(o.read,o)}function Pr(t){if(![].concat(t).every(i=>ir.string.isString(i)&&!ir.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Zp.exports=aa});var hd=m((EO,fd)=>{fd.exports=ld;ld.sync=Qb;var ad=require("fs");function Jb(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function cd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Jb(e,r)}function ld(t,e,r){ad.stat(t,function(i,n){r(i,i?!1:cd(n,t,e))})}function Qb(t,e){return cd(ad.statSync(t),t,e)}});var Ed=m((DO,gd)=>{gd.exports=dd;dd.sync=e1;var pd=require("fs");function dd(t,e,r){pd.stat(t,function(i,n){r(i,i?!1:md(n,e))})}function e1(t,e){return md(pd.statSync(t),e)}function md(t,e){return t.isFile()&&t1(t,e)}function t1(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=u|a,f=r&c||r&a&&n===o||r&u&&i===s||r&l&&s===0;return f}});var yd=m((AO,Dd)=>{var yO=require("fs"),qn;process.platform==="win32"||global.TESTING_WINDOWS?qn=hd():qn=Ed();Dd.exports=la;la.sync=r1;function la(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){la(t,e||{},function(s,o){s?n(s):i(o)})})}qn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function r1(t,e){try{return qn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Fd=m((_O,wd)=>{var kr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ad=require("path"),i1=kr?";":":",_d=yd(),Sd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Cd=(t,e)=>{let r=e.colon||i1,i=t.match(/\//)||kr&&t.match(/\\/)?[""]:[...kr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=kr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=kr?n.split(r):[""];return kr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},bd=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Cd(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Sd(t));let h=i[c],E=/^".*"$/.test(h)?h.slice(1,-1):h,g=Ad.join(E,t),D=!E&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;l(a(D,c,0))}),a=(c,l,f)=>new Promise((h,E)=>{if(f===n.length)return h(u(l+1));let g=n[f];_d(c+g,{pathExt:s},(D,_)=>{if(!D&&_)if(e.all)o.push(c+g);else return h(c+g);return h(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},n1=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Cd(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=Ad.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<i.length;f++){let h=l+i[f];try{if(_d.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Sd(t)};wd.exports=bd;bd.sync=n1});var ha=m((SO,fa)=>{"use strict";var xd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fa.exports=xd;fa.exports.default=xd});var Od=m((CO,Td)=>{"use strict";var vd=require("path"),s1=Fd(),o1=ha();function Rd(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=s1.sync(t.command,{path:r[o1({env:r})],pathExt:e?vd.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=vd.resolve(n?t.options.cwd:"",o)),o}function u1(t){return Rd(t)||Rd(t,!0)}Td.exports=u1});var Bd=m((bO,da)=>{"use strict";var pa=/([()\][%!^"`<>&|;, *?])/g;function a1(t){return t=t.replace(pa,"^$1"),t}function c1(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(pa,"^$1"),e&&(t=t.replace(pa,"^$1")),t}da.exports.command=a1;da.exports.argument=c1});var Ld=m((wO,Pd)=>{"use strict";Pd.exports=/^#!(.*)/});var Nd=m((FO,Id)=>{"use strict";var l1=Ld();Id.exports=(t="")=>{let e=t.match(l1);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Md=m((xO,kd)=>{"use strict";var ma=require("fs"),f1=Nd();function h1(t){let r=Buffer.alloc(150),i;try{i=ma.openSync(t,"r"),ma.readSync(i,r,0,150,0),ma.closeSync(i)}catch{}return f1(r.toString())}kd.exports=h1});var Ud=m((vO,$d)=>{"use strict";var p1=require("path"),qd=Od(),Hd=Bd(),d1=Md(),m1=process.platform==="win32",g1=/\.(?:com|exe)$/i,E1=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function D1(t){t.file=qd(t);let e=t.file&&d1(t.file);return e?(t.args.unshift(t.file),t.command=e,qd(t)):t.file}function y1(t){if(!m1)return t;let e=D1(t),r=!g1.test(e);if(t.options.forceShell||r){let i=E1.test(e);t.command=p1.normalize(t.command),t.command=Hd.command(t.command),t.args=t.args.map(s=>Hd.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function A1(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:y1(i)}$d.exports=A1});var Wd=m((RO,jd)=>{"use strict";var ga=process.platform==="win32";function Ea(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function _1(t,e){if(!ga)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Gd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Gd(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawn"):null}function S1(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawnSync"):null}jd.exports={hookChildProcess:_1,verifyENOENT:Gd,verifyENOENTSync:S1,notFoundError:Ea}});var Kd=m((TO,Mr)=>{"use strict";var zd=require("child_process"),Da=Ud(),ya=Wd();function Yd(t,e,r){let i=Da(t,e,r),n=zd.spawn(i.command,i.args,i.options);return ya.hookChildProcess(n,i),n}function C1(t,e,r){let i=Da(t,e,r),n=zd.spawnSync(i.command,i.args,i.options);return n.error=n.error||ya.verifyENOENTSync(n.status,i),n}Mr.exports=Yd;Mr.exports.spawn=Yd;Mr.exports.sync=C1;Mr.exports._parse=Da;Mr.exports._enoent=ya});var Xd=m((OO,Vd)=>{"use strict";Vd.exports=t=>{let e=typeof t=="string"?`
|
2
3
|
`:`
|
3
|
-
`.charCodeAt(),
|
4
|
-
${
|
5
|
-
`);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=l,e.escapedCommand=s,e.exitCode=a,e.signal=h,e.signalDescription=_,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=f,e.killed=g&&!d,e};c.exports=i}),as=N((t,c)=>{"use strict";B();var n=["stdin","stdout","stderr"],o=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(o(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,h)=>u[h])};c.exports=i,c.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),ls=N((t,c)=>{"use strict";B();var n=Z("os"),o=Oe(),i=1e3*5,p=(g,b="SIGTERM",_={})=>{let y=g(b);return u(g,b,_,y),y},u=(g,b,_,y)=>{if(!r(b,_,y))return;let D=h(_),w=setTimeout(()=>{g("SIGKILL")},D);w.unref&&w.unref()},r=(g,{forceKillAfterTimeout:b},_)=>e(g)&&b!==!1&&_,e=g=>g===n.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",h=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return i;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},a=(g,b)=>{g.kill()&&(b.isCanceled=!0)},l=(g,b,_)=>{g.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},s=(g,{timeout:b,killSignal:_="SIGTERM"},y)=>{if(b===0||b===void 0)return y;let D,w=new Promise((m,E)=>{D=setTimeout(()=>{l(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})`)},f=async(g,{cleanup:b,detached:_},y)=>{if(!b||_)return y;let D=o(()=>{g.kill()});return y.finally(()=>{D()})};c.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:s,validateTimeout:d,setExitHandler:f}}),cs=N((t,c)=>{"use strict";B();var n=o=>o!==null&&typeof o=="object"&&typeof o.pipe=="function";n.writable=o=>n(o)&&o.writable!==!1&&typeof o._write=="function"&&typeof o._writableState=="object",n.readable=o=>n(o)&&o.readable!==!1&&typeof o._read=="function"&&typeof o._readableState=="object",n.duplex=o=>n.writable(o)&&n.readable(o),n.transform=o=>n.duplex(o)&&typeof o._transform=="function",c.exports=n}),hs=N((t,c)=>{"use strict";B();var{PassThrough:n}=Z("stream");c.exports=o=>{o={...o};let{array:i}=o,{encoding:p}=o,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let h=0,a=[];return e.on("data",l=>{a.push(l),r?h=a.length:h+=l.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,h):a.join(""),e.getBufferedLength=()=>h,e}}),fs=N((t,c)=>{"use strict";B();var{constants:n}=Z("buffer"),o=Z("stream"),{promisify:i}=Z("util"),p=hs(),u=i(o.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(h,a){if(!h)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:l}=a,s=p(a);return await new Promise((d,f)=>{let g=b=>{b&&s.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=s.getBufferedValue()),f(b)};(async()=>{try{await u(h,s),d()}catch(b){g(b)}})(),s.on("data",()=>{s.getBufferedLength()>l&&g(new r)})}),s.getBufferedValue()}c.exports=e,c.exports.buffer=(h,a)=>e(h,{...a,encoding:"buffer"}),c.exports.array=(h,a)=>e(h,{...a,array:!0}),c.exports.MaxBufferError=r}),ps=N((t,c)=>{"use strict";B();var{PassThrough:n}=Z("stream");c.exports=function(){var o=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(o.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return o.length==0}function r(e){o=o.filter(function(h){return h!==e}),!o.length&&i.readable&&i.end()}}}),ds=N((t,c)=>{"use strict";B();var n=cs(),o=fs(),i=ps(),p=(l,s)=>{s===void 0||l.stdin===void 0||(n(s)?s.pipe(l.stdin):l.stdin.end(s))},u=(l,{all:s})=>{if(!s||!l.stdout&&!l.stderr)return;let d=i();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},r=async(l,s)=>{if(l){l.destroy();try{return await s}catch(d){return d.bufferedData}}},e=(l,{encoding:s,buffer:d,maxBuffer:f})=>{if(!(!l||!d))return s?o(l,{encoding:s,maxBuffer:f}):o.buffer(l,{maxBuffer:f})},h=async({stdout:l,stderr:s,all:d},{encoding:f,buffer:g,maxBuffer:b},_)=>{let y=e(l,{encoding:f,buffer:g,maxBuffer:b}),D=e(s,{encoding:f,buffer:g,maxBuffer:b}),w=e(d,{encoding:f,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(l,y),r(s,D),r(d,w)])}},a=({input:l})=>{if(n(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};c.exports={handleInput:p,makeAllStream:u,getSpawnedResult:h,validateInputSync:a}}),ms=N((t,c)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,o=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,h]of o){let a=typeof r=="function"?(...l)=>Reflect.apply(h.value,r(),l):h.value.bind(r);Reflect.defineProperty(u,e,{...h,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(h,a)=>{r({exitCode:h,signal:a})}),u.on("error",h=>{e(h)}),u.stdin&&u.stdin.on("error",h=>{e(h)})});c.exports={mergePromise:i,getSpawnedPromise:p}}),ys=N((t,c)=>{"use strict";B();var n=(a,l=[])=>Array.isArray(l)?[a,...l]:[a],o=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||o.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,l)=>n(a,l).join(" "),r=(a,l)=>n(a,l).map(s=>p(s)).join(" "),e=/ +/g,h=a=>{let l=[];for(let s of a.trim().split(e)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${s}`:l.push(s)}return l};c.exports={joinCommand:u,getEscapedCommand:r,parseCommand:h}}),gs=N((t,c)=>{"use strict";B();var n=Z("path"),o=Z("child_process"),i=es(),p=rs(),u=ns(),r=Re(),e=us(),h=as(),{spawnedKill:a,spawnedCancel:l,setupTimeout:s,validateTimeout:d,setExitHandler:f}=ls(),{handleInput:g,getSpawnedResult:b,makeAllStream:_,validateInputSync:y}=ds(),{mergePromise:D,getSpawnedPromise:w}=ms(),{joinCommand:v,parseCommand:m,getEscapedCommand:E}=ys(),S=1e3*1e3*100,A=({env:F,extendEnv:R,preferLocal:I,localDir:$,execPath:O})=>{let q=R?{...process.env,...F}:F;return I?u.env({env:q,cwd:$,execPath:O}):q},x=(F,R,I={})=>{let $=i._parse(F,R,I);return F=$.command,R=$.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(F,".exe")==="cmd"&&R.unshift("/q"),{file:F,args:R,options:I,parsed:$}},L=(F,R,I)=>typeof R!="string"&&!Buffer.isBuffer(R)?I===void 0?void 0:"":F.stripFinalNewline?p(R):R,T=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=E(F,R);d($.options);let W;try{W=o.spawn($.file,$.args,$.options)}catch(G){let tt=new o.ChildProcess,M=Promise.reject(e({error:G,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(tt,M)}let Q=w(W),P=s(W,$.options,Q),j=f(W,$.options,P),k={isCanceled:!1};W.kill=a.bind(null,W.kill.bind(W)),W.cancel=l.bind(null,W,k);let J=r(async()=>{let[{error:G,exitCode:tt,signal:M,timedOut:K},et,st,lt]=await b(W,$.options,j),yt=L($.options,et),dt=L($.options,st),H=L($.options,lt);if(G||tt!==0||M!==null){let V=e({error:G,exitCode:tt,signal:M,stdout:yt,stderr:dt,all:H,command:O,escapedCommand:q,parsed:$,timedOut:K,isCanceled:k.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:O,escapedCommand:q,exitCode:0,stdout:yt,stderr:dt,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(W,$.options.input),W.all=_(W,$.options),D(W,J)};c.exports=T,c.exports.sync=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=E(F,R);y($.options);let W;try{W=o.spawnSync($.file,$.args,$.options)}catch(j){throw e({error:j,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,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=e({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:O,escapedCommand:q,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:O,escapedCommand:q,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},c.exports.command=(F,R)=>{let[I,...$]=m(F);return T(I,$,R)},c.exports.commandSync=(F,R)=>{let[I,...$]=m(F);return T.sync(I,$,R)},c.exports.node=(F,R,I={})=>{R&&!Array.isArray(R)&&typeof R=="object"&&(I=R,R=[]);let $=h.node(I),O=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:q=process.execPath,nodeOptions:W=O}=I;return T(q,[...W,F,...Array.isArray(R)?R:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var pf=Ct(gs());B();var bs=N((t,c)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;c.exports=function(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(n,"\\$&")}}),vs=N((t,c)=>{"use strict";B(),c.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=N((t,c)=>{B();var n=vs(),o={};for(i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var i,p=c.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(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var l=a[0]/255,s=a[1]/255,d=a[2]/255,f=Math.min(l,s,d),g=Math.max(l,s,d),b=g-f,_,y,D;return g===f?_=0:l===g?_=(s-d)/b:s===g?_=2+(d-l)/b:d===g&&(_=4+(l-s)/b),_=Math.min(_*60,360),_<0&&(_+=360),D=(f+g)/2,g===f?y=0:D<=.5?y=b/(g+f):y=b/(2-g-f),[_,y*100,D*100]},p.rgb.hsv=function(a){var l,s,d,f,g,b=a[0]/255,_=a[1]/255,y=a[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?f=g=0:(g=w/D,l=v(b),s=v(_),d=v(y),b===D?f=d-s:_===D?f=1/3+l-d:y===D&&(f=2/3+s-l),f<0?f+=1:f>1&&(f-=1)),[f*360,g*100,D*100]},p.rgb.hwb=function(a){var l=a[0],s=a[1],d=a[2],f=p.rgb.hsl(a)[0],g=1/255*Math.min(l,Math.min(s,d));return d=1-1/255*Math.max(l,Math.max(s,d)),[f,g*100,d*100]},p.rgb.cmyk=function(a){var l=a[0]/255,s=a[1]/255,d=a[2]/255,f,g,b,_;return _=Math.min(1-l,1-s,1-d),f=(1-l-_)/(1-_)||0,g=(1-s-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[f*100,g*100,b*100,_*100]};function h(a,l){return Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)+Math.pow(a[2]-l[2],2)}p.rgb.keyword=function(a){var l=o[a];if(l)return l;var s=1/0,d;for(var f in n)if(n.hasOwnProperty(f)){var g=n[f],b=h(a,g);b<s&&(s=b,d=f)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var l=a[0]/255,s=a[1]/255,d=a[2]/255;l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var f=l*.4124+s*.3576+d*.1805,g=l*.2126+s*.7152+d*.0722,b=l*.0193+s*.1192+d*.9505;return[f*100,g*100,b*100]},p.rgb.lab=function(a){var l=p.rgb.xyz(a),s=l[0],d=l[1],f=l[2],g,b,_;return s/=95.047,d/=100,f/=108.883,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,g=116*d-16,b=500*(s-d),_=200*(d-f),[g,b,_]},p.hsl.rgb=function(a){var l=a[0]/360,s=a[1]/100,d=a[2]/100,f,g,b,_,y;if(s===0)return y=d*255,[y,y,y];d<.5?g=d*(1+s):g=d+s-d*s,f=2*d-g,_=[0,0,0];for(var D=0;D<3;D++)b=l+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?y=f+(g-f)*6*b:2*b<1?y=g:3*b<2?y=f+(g-f)*(2/3-b)*6:y=f,_[D]=y*255;return _},p.hsl.hsv=function(a){var l=a[0],s=a[1]/100,d=a[2]/100,f=s,g=Math.max(d,.01),b,_;return d*=2,s*=d<=1?d:2-d,f*=g<=1?g:2-g,_=(d+s)/2,b=d===0?2*f/(g+f):2*s/(d+s),[l,b*100,_*100]},p.hsv.rgb=function(a){var l=a[0]/60,s=a[1]/100,d=a[2]/100,f=Math.floor(l)%6,g=l-Math.floor(l),b=255*d*(1-s),_=255*d*(1-s*g),y=255*d*(1-s*(1-g));switch(d*=255,f){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,_]}},p.hsv.hsl=function(a){var l=a[0],s=a[1]/100,d=a[2]/100,f=Math.max(d,.01),g,b,_;return _=(2-s)*d,g=(2-s)*f,b=s*f,b/=g<=1?g:2-g,b=b||0,_/=2,[l,b*100,_*100]},p.hwb.rgb=function(a){var l=a[0]/360,s=a[1]/100,d=a[2]/100,f=s+d,g,b,_,y;f>1&&(s/=f,d/=f),g=Math.floor(6*l),b=1-d,_=6*l-g,g&1&&(_=1-_),y=s+_*(b-s);var D,w,v;switch(g){default:case 6:case 0:D=b,w=y,v=s;break;case 1:D=y,w=b,v=s;break;case 2:D=s,w=b,v=y;break;case 3:D=s,w=y,v=b;break;case 4:D=y,w=s,v=b;break;case 5:D=b,w=s,v=y;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var l=a[0]/100,s=a[1]/100,d=a[2]/100,f=a[3]/100,g,b,_;return g=1-Math.min(1,l*(1-f)+f),b=1-Math.min(1,s*(1-f)+f),_=1-Math.min(1,d*(1-f)+f),[g*255,b*255,_*255]},p.xyz.rgb=function(a){var l=a[0]/100,s=a[1]/100,d=a[2]/100,f,g,b;return f=l*3.2406+s*-1.5372+d*-.4986,g=l*-.9689+s*1.8758+d*.0415,b=l*.0557+s*-.204+d*1.057,f=f>.0031308?1.055*Math.pow(f,1/2.4)-.055:f*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,f=Math.min(Math.max(0,f),1),g=Math.min(Math.max(0,g),1),b=Math.min(Math.max(0,b),1),[f*255,g*255,b*255]},p.xyz.lab=function(a){var l=a[0],s=a[1],d=a[2],f,g,b;return l/=95.047,s/=100,d/=108.883,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=116*s-16,g=500*(l-s),b=200*(s-d),[f,g,b]},p.lab.xyz=function(a){var l=a[0],s=a[1],d=a[2],f,g,b;g=(l+16)/116,f=s/500+g,b=g-d/200;var _=Math.pow(g,3),y=Math.pow(f,3),D=Math.pow(b,3);return g=_>.008856?_:(g-16/116)/7.787,f=y>.008856?y:(f-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,f*=95.047,g*=100,b*=108.883,[f,g,b]},p.lab.lch=function(a){var l=a[0],s=a[1],d=a[2],f,g,b;return f=Math.atan2(d,s),g=f*360/2/Math.PI,g<0&&(g+=360),b=Math.sqrt(s*s+d*d),[l,b,g]},p.lch.lab=function(a){var l=a[0],s=a[1],d=a[2],f,g,b;return b=d/360*2*Math.PI,f=s*Math.cos(b),g=s*Math.sin(b),[l,f,g]},p.rgb.ansi16=function(a){var l=a[0],s=a[1],d=a[2],f=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(f=Math.round(f/50),f===0)return 30;var g=30+(Math.round(d/255)<<2|Math.round(s/255)<<1|Math.round(l/255));return f===2&&(g+=60),g},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var l=a[0],s=a[1],d=a[2];if(l===s&&s===d)return l<8?16:l>248?231:Math.round((l-8)/247*24)+232;var f=16+36*Math.round(l/255*5)+6*Math.round(s/255*5)+Math.round(d/255*5);return f},p.ansi16.rgb=function(a){var l=a%10;if(l===0||l===7)return a>50&&(l+=3.5),l=l/10.5*255,[l,l,l];var s=(~~(a>50)+1)*.5,d=(l&1)*s*255,f=(l>>1&1)*s*255,g=(l>>2&1)*s*255;return[d,f,g]},p.ansi256.rgb=function(a){if(a>=232){var l=(a-232)*10+8;return[l,l,l]}a-=16;var s,d=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,g=s%6/5*255;return[d,f,g]},p.rgb.hex=function(a){var l=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),s=l.toString(16).toUpperCase();return"000000".substring(s.length)+s},p.hex.rgb=function(a){var l=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];var s=l[0];l[0].length===3&&(s=s.split("").map(function(_){return _+_}).join(""));var d=parseInt(s,16),f=d>>16&255,g=d>>8&255,b=d&255;return[f,g,b]},p.rgb.hcg=function(a){var l=a[0]/255,s=a[1]/255,d=a[2]/255,f=Math.max(Math.max(l,s),d),g=Math.min(Math.min(l,s),d),b=f-g,_,y;return b<1?_=g/(1-b):_=0,b<=0?y=0:f===l?y=(s-d)/b%6:f===s?y=2+(d-l)/b:y=4+(l-s)/b+4,y/=6,y%=1,[y*360,b*100,_*100]},p.hsl.hcg=function(a){var l=a[1]/100,s=a[2]/100,d=1,f=0;return s<.5?d=2*l*s:d=2*l*(1-s),d<1&&(f=(s-.5*d)/(1-d)),[a[0],d*100,f*100]},p.hsv.hcg=function(a){var l=a[1]/100,s=a[2]/100,d=l*s,f=0;return d<1&&(f=(s-d)/(1-d)),[a[0],d*100,f*100]},p.hcg.rgb=function(a){var l=a[0]/360,s=a[1]/100,d=a[2]/100;if(s===0)return[d*255,d*255,d*255];var f=[0,0,0],g=l%1*6,b=g%1,_=1-b,y=0;switch(Math.floor(g)){case 0:f[0]=1,f[1]=b,f[2]=0;break;case 1:f[0]=_,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=b;break;case 3:f[0]=0,f[1]=_,f[2]=1;break;case 4:f[0]=b,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=_}return y=(1-s)*d,[(s*f[0]+y)*255,(s*f[1]+y)*255,(s*f[2]+y)*255]},p.hcg.hsv=function(a){var l=a[1]/100,s=a[2]/100,d=l+s*(1-l),f=0;return d>0&&(f=l/d),[a[0],f*100,d*100]},p.hcg.hsl=function(a){var l=a[1]/100,s=a[2]/100,d=s*(1-l)+.5*l,f=0;return d>0&&d<.5?f=l/(2*d):d>=.5&&d<1&&(f=l/(2*(1-d))),[a[0],f*100,d*100]},p.hcg.hwb=function(a){var l=a[1]/100,s=a[2]/100,d=l+s*(1-l);return[a[0],(d-l)*100,(1-d)*100]},p.hwb.hcg=function(a){var l=a[1]/100,s=a[2]/100,d=1-s,f=d-l,g=0;return f<1&&(g=(d-f)/(1-f)),[a[0],f*100,g*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var l=Math.round(a[0]/100*255)&255,s=(l<<16)+(l<<8)+l,d=s.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var l=(a[0]+a[1]+a[2])/3;return[l/255*100]}}),_s=N((t,c)=>{B();var n=jr();function o(){for(var r={},e=Object.keys(n),h=e.length,a=0;a<h;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=o(),h=[r];for(e[r].distance=0;h.length;)for(var a=h.pop(),l=Object.keys(n[a]),s=l.length,d=0;d<s;d++){var f=l[d],g=e[f];g.distance===-1&&(g.distance=e[a].distance+1,g.parent=a,h.unshift(f))}return e}function p(r,e){return function(h){return e(r(h))}}function u(r,e){for(var h=[e[r].parent,r],a=n[e[r].parent][r],l=e[r].parent;e[l].parent;)h.unshift(e[l].parent),a=p(n[e[l].parent][l],a),l=e[l].parent;return a.conversion=h,a}c.exports=function(r){for(var e=i(r),h={},a=Object.keys(e),l=a.length,s=0;s<l;s++){var d=a[s],f=e[d];f.parent!==null&&(h[d]=u(d,e))}return h}}),Es=N((t,c)=>{B();var n=jr(),o=_s(),i={},p=Object.keys(n);function u(e){var h=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(h.conversion=e.conversion),h}function r(e){var h=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var l=e(a);if(typeof l=="object")for(var s=l.length,d=0;d<s;d++)l[d]=Math.round(l[d]);return l};return"conversion"in e&&(h.conversion=e.conversion),h}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var h=o(e),a=Object.keys(h);a.forEach(function(l){var s=h[l];i[e][l]=r(s),i[e][l].raw=u(s)})}),c.exports=i}),ws=N((t,c)=>{"use strict";B();var n=Es(),o=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+e};5;${h}m`},p=(r,e)=>function(){let h=r.apply(n,arguments);return`\x1B[${38+e};2;${h[0]};${h[1]};${h[2]}m`};function u(){let r=new Map,e={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]}};e.color.grey=e.color.gray;for(let l of Object.keys(e)){let s=e[l];for(let d of Object.keys(s)){let f=s[d];e[d]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},s[d]=e[d],r.set(f[0],f[1])}Object.defineProperty(e,l,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let h=l=>l,a=(l,s,d)=>[l,s,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:o(h,0)},e.color.ansi256={ansi256:i(h,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:o(h,10)},e.bgColor.ansi256={ansi256:i(h,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let l of Object.keys(n)){if(typeof n[l]!="object")continue;let s=n[l];l==="ansi16"&&(l="ansi"),"ansi16"in s&&(e.color.ansi[l]=o(s.ansi16,0),e.bgColor.ansi[l]=o(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[l]=i(s.ansi256,0),e.bgColor.ansi256[l]=i(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[l]=p(s.rgb,0),e.bgColor.ansi16m[l]=p(s.rgb,10))}return e}Object.defineProperty(c,"exports",{enumerable:!0,get:u})}),Ds=N((t,c)=>{"use strict";B(),c.exports=(n,o)=>{o=o||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=o.indexOf(i+n),u=o.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),Ss=N((t,c)=>{"use strict";B();var n=Z("os"),o=Ds(),i=process.env,p;o("no-color")||o("no-colors")||o("color=false")?p=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(h){return h===0?!1:{level:h,hasBasic:!0,has256:h>=2,has16m:h>=3}}function r(h){if(p===!1)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(h&&!h.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let l=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(l=>l in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let l=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(h){let a=r(h);return u(a)}c.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),As=N((t,c)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
6
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(l){return l[0]==="u"&&l.length===5||l[0]==="x"&&l.length===3?String.fromCharCode(parseInt(l.slice(1),16)):u.get(l)||l}function e(l,s){let d=[],f=s.trim().split(/\s*,\s*/g),g;for(let b of f)if(!isNaN(b))d.push(Number(b));else if(g=b.match(i))d.push(g[2].replace(p,(_,y,D)=>y?r(y):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${l}')`);return d}function h(l){o.lastIndex=0;let s=[],d;for(;(d=o.exec(l))!==null;){let f=d[1];if(d[2]){let g=e(f,d[2]);s.push([f].concat(g))}else s.push([f])}return s}function a(l,s){let d={};for(let g of s)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let f=l;for(let g of Object.keys(d))if(Array.isArray(d[g])){if(!(g in f))throw new Error(`Unknown Chalk style: ${g}`);d[g].length>0?f=f[g].apply(f,d[g]):f=f[g]}return f}c.exports=(l,s)=>{let d=[],f=[],g=[];if(s.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],f.push(d.length===0?m:a(l,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");f.push(a(l,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),f.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 f.join("")}}),Xt=N((t,c)=>{"use strict";B();var n=bs(),o=ws(),i=Ss().stdout,p=As(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),h=Object.create(null);function a(b,_){_=_||{};let y=i?i.level:0;b.level=_.level===void 0?y:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function l(b){if(!this||!(this instanceof l)||this.template){let _={};return a(_,b),_.template=function(){let y=[].slice.call(arguments);return g.apply(null,[_.template].concat(y))},Object.setPrototypeOf(_,l.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=l,_.template}a(this,b)}u&&(o.blue.open="\x1B[94m");for(let b of Object.keys(o))o[b].closeRe=new RegExp(n(o[b].close),"g"),h[b]={get(){let _=o[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};h.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(let b of Object.keys(o.color.ansi))e.has(b)||(h[b]={get(){let _=this.level;return function(){let y={open:o.color[r[_]][b].apply(null,arguments),close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(y):[y],this._empty,b)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(let b of Object.keys(o.bgColor.ansi)){if(e.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);h[_]={get(){let y=this.level;return function(){let D={open:o.bgColor[r[y]][b].apply(null,arguments),close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var s=Object.defineProperties(()=>{},h);function d(b,_,y){let D=function(){return f.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__=s,D}function f(){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=o.dim.open;u&&this.hasGrey&&(o.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 o.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 p(b,D.join(""))}Object.defineProperties(l.prototype,h),c.exports=l(),c.exports.supportsColor=i,c.exports.default=c.exports});var Cs=N((t,c)=>{B();var n=Z("constants"),o=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=o.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;c.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&h(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=l(e.chmod),e.fchmod=l(e.fchmod),e.lchmod=l(e.lchmod),e.chownSync=f(e.chownSync),e.fchownSync=f(e.fchownSync),e.lchownSync=f(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=g(e.stat),e.fstat=g(e.fstat),e.lstat=g(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(y,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(y,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.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"||x.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){e.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}(e.rename)),e.read=typeof e.read!="function"?e.read:function(y){function D(w,v,m,E,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,y.call(e,w,v,m,E,S,x);A.apply(this,arguments)}}return y.call(e,w,v,m,E,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(y){return function(D,w,v,m,E){for(var S=0;;)try{return y.call(e,D,w,v,m,E)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.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 a(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 l(y){return y&&function(D,w,v){return y.call(e,D,w,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function s(y){return y&&function(D,w){try{return y.call(e,D,w)}catch(v){if(!_(v))throw v}}}function d(y){return y&&function(D,w,v,m){return y.call(e,D,w,v,function(E){_(E)&&(E=null),m&&m.apply(this,arguments)})}}function f(y){return y&&function(D,w,v){try{return y.call(e,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(e,D,w,m):y.call(e,D,m)}}function b(y){return y&&function(D,w){var v=w?y.call(e,D,w):y.call(e,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"))}}}),xs=N((t,c)=>{B();var n=Z("stream").Stream;c.exports=o;function o(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);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,e=e||{};for(var a=Object.keys(e),l=0,s=a.length;l<s;l++){var d=a[l];this[d]=e[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}i.open(this.path,this.flags,this.mode,function(f,g){if(f){h.emit("error",f),h.readable=!1;return}h.fd=g,h.emit("open",g),h._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var h=Object.keys(e),a=0,l=h.length;a<l;a++){var s=h[a];this[s]=e[s]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Fs=N((t,c)=>{"use strict";B(),c.exports=o;var n=Object.getPrototypeOf||function(i){return i.__proto__};function o(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),wt=N((t,c)=>{B();var n=Z("fs"),o=Cs(),i=xs(),p=Fs(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function h(){}function a(y,D){Object.defineProperty(y,r,{get:function(){return D}})}var l=h;u.debuglog?l=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var y=u.format.apply(u,arguments);y="GFS4: "+y.split(/\n/).join(`
|
7
|
-
GFS4: `),console.error(y)}),n[r]||(s=global[r]||[],a(n,s),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,e,{value:y}),D}(n.close),n.closeSync=function(y){function D(w){y.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:y}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(n[r]),Z("assert").equal(n[r].length,0)}));var s;global[r]||a(global,n[r]),c.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(c.exports=d(n),n.__patched=!0);function d(y){o(y),y.gracefulify=d,y.createReadStream=k,y.createWriteStream=J;var D=y.readFile;y.readFile=w;function w(M,K,et){return typeof K=="function"&&(et=K,K=null),st(M,K,et);function st(lt,yt,dt,H){return D(lt,yt,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?f([st,[lt,yt,dt],V,H||Date.now(),Date.now()]):typeof dt=="function"&&dt.apply(this,arguments)})}}var v=y.writeFile;y.writeFile=m;function m(M,K,et,st){return typeof et=="function"&&(st=et,et=null),lt(M,K,et,st);function lt(yt,dt,H,V,C){return v(yt,dt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?f([lt,[yt,dt,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(M,K,et,st){return typeof et=="function"&&(st=et,et=null),lt(M,K,et,st);function lt(yt,dt,H,V,C){return E(yt,dt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?f([lt,[yt,dt,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(M,K,et,st){return typeof et=="function"&&(st=et,et=0),lt(M,K,et,st);function lt(yt,dt,H,V,C){return A(yt,dt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?f([lt,[yt,dt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=y.readdir;y.readdir=F;var T=/^v[0-5]\./;function F(M,K,et){typeof K=="function"&&(et=K,K=null);var st=T.test(process.version)?function(yt,dt,H,V){return L(yt,lt(yt,dt,H,V))}:function(yt,dt,H,V){return L(yt,dt,lt(yt,dt,H,V))};return st(M,K,et);function lt(yt,dt,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?f([st,[yt,dt,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 R=i(y);W=R.ReadStream,P=R.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(M){W=M},enumerable:!0,configurable:!0}),Object.defineProperty(y,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var O=W;Object.defineProperty(y,"FileReadStream",{get:function(){return O},set:function(M){O=M},enumerable:!0,configurable:!0});var q=P;Object.defineProperty(y,"FileWriteStream",{get:function(){return q},set:function(M){q=M},enumerable:!0,configurable:!0});function W(M,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.autoClose&&M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et),M.read())})}function P(M,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et))})}function k(M,K){return new y.ReadStream(M,K)}function J(M,K){return new y.WriteStream(M,K)}var G=y.open;y.open=tt;function tt(M,K,et,st){return typeof et=="function"&&(st=et,et=null),lt(M,K,et,st);function lt(yt,dt,H,V,C){return G(yt,dt,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?f([lt,[yt,dt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return y}function f(y){l("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)l("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){l("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?(l("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(y)}g===void 0&&(g=setTimeout(_,0))}}});var Nt=N(t=>{"use strict";B(),t.fromCallback=function(c){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")c.apply(this,n);else return new Promise((o,i)=>{c.call(this,...n,(p,u)=>p!=null?i(p):o(u))})},"name",{value:c.name})},t.fromPromise=function(c){return Object.defineProperty(function(...n){let o=n[n.length-1];if(typeof o!="function")return c.apply(this,n);c.apply(this,n.slice(0,-1)).then(i=>o(null,i),o)},"name",{value:c.name})}}),ne=N(t=>{"use strict";B();var c=Nt().fromCallback,n=wt(),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),o.forEach(i=>{t[i]=c(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,h){return typeof h=="function"?n.read(i,p,u,r,e,h):new Promise((a,l)=>{n.read(i,p,u,r,e,(s,d,f)=>{if(s)return l(s);a({bytesRead:d,buffer:f})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(h,a,l)=>{if(h)return e(h);r({bytesWritten:a,buffer:l})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(h,a,l)=>{if(h)return e(h);r({bytesRead:a,buffers:l})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(h,a,l)=>{if(h)return e(h);r({bytesWritten:a,buffers:l})})})},typeof n.realpath.native=="function"?t.realpath.native=c(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),ks=N((t,c)=>{"use strict";B();var n=Z("path");c.exports.checkPath=function(o){if(process.platform==="win32"&&/[<>:"|?*]/.test(o.replace(n.parse(o).root,""))){let i=new Error(`Path contains invalid characters: ${o}`);throw i.code="EINVAL",i}}}),Rs=N((t,c)=>{"use strict";B();var n=ne(),{checkPath:o}=ks(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;c.exports.makeDir=async(p,u)=>(o(p),n.mkdir(p,{mode:i(u),recursive:!0})),c.exports.makeDirSync=(p,u)=>(o(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Ht=N((t,c)=>{"use strict";B();var n=Nt().fromPromise,{makeDir:o,makeDirSync:i}=Rs(),p=n(o);c.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),Qt=N((t,c)=>{"use strict";B();var n=Nt().fromPromise,o=ne();function i(p){return o.access(p).then(()=>!0).catch(()=>!1)}c.exports={pathExists:n(i),pathExistsSync:o.existsSync}}),Mr=N((t,c)=>{"use strict";B();var n=wt();function o(p,u,r,e){n.open(p,"r+",(h,a)=>{if(h)return e(h);n.futimes(a,u,r,l=>{n.close(a,s=>{e&&e(l||s)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}c.exports={utimesMillis:o,utimesMillisSync:i}}),ie=N((t,c)=>{"use strict";B();var n=ne(),o=Z("path"),i=Z("util");function p(f,g,b){let _=b.dereference?y=>n.stat(y,{bigint:!0}):y=>n.lstat(y,{bigint:!0});return Promise.all([_(f),_(g).catch(y=>{if(y.code==="ENOENT")return null;throw y})]).then(([y,D])=>({srcStat:y,destStat:D}))}function u(f,g,b){let _,y=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=y(f);try{_=y(g)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:_}}function r(f,g,b,_,y){i.callbackify(p)(f,g,_,(D,w)=>{if(D)return y(D);let{srcStat:v,destStat:m}=w;if(m){if(l(v,m)){let E=o.basename(f),S=o.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 '${f}'.`));if(!v.isDirectory()&&m.isDirectory())return y(new Error(`Cannot overwrite directory '${g}' with non-directory '${f}'.`))}return v.isDirectory()&&s(f,g)?y(new Error(d(f,g,b))):y(null,{srcStat:v,destStat:m})})}function e(f,g,b,_){let{srcStat:y,destStat:D}=u(f,g,_);if(D){if(l(y,D)){let w=o.basename(f),v=o.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 '${f}'.`);if(!y.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${g}' with non-directory '${f}'.`)}if(y.isDirectory()&&s(f,g))throw new Error(d(f,g,b));return{srcStat:y,destStat:D}}function h(f,g,b,_,y){let D=o.resolve(o.dirname(f)),w=o.resolve(o.dirname(b));if(w===D||w===o.parse(w).root)return y();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?y():y(v):l(g,m)?y(new Error(d(f,b,_))):h(f,g,w,_,y))}function a(f,g,b,_){let y=o.resolve(o.dirname(f)),D=o.resolve(o.dirname(b));if(D===y||D===o.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(l(g,w))throw new Error(d(f,b,_));return a(f,g,D,_)}function l(f,g){return g.ino&&g.dev&&g.ino===f.ino&&g.dev===f.dev}function s(f,g){let b=o.resolve(f).split(o.sep).filter(y=>y),_=o.resolve(g).split(o.sep).filter(y=>y);return b.reduce((y,D,w)=>y&&_[w]===D,!0)}function d(f,g,b){return`Cannot ${b} '${f}' to a subdirectory of itself, '${g}'.`}c.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:h,checkParentPathsSync:a,isSrcSubdir:s,areIdentical:l}}),Os=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Ht().mkdirs,p=Qt().pathExists,u=Mr().utimesMillis,r=ie();function e(T,F,R,I){typeof R=="function"&&!I?(I=R,R={}):typeof R=="function"&&(R={filter:R}),I=I||function(){},R=R||{},R.clobber="clobber"in R?!!R.clobber:!0,R.overwrite="overwrite"in R?!!R.overwrite:R.clobber,R.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
4
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Qd=m((BO,xi)=>{"use strict";var Fi=require("path"),Zd=ha(),Jd=t=>{t={cwd:process.cwd(),path:process.env[Zd()],execPath:process.execPath,...t};let e,r=Fi.resolve(t.cwd),i=[];for(;e!==r;)i.push(Fi.join(r,"node_modules/.bin")),e=r,r=Fi.resolve(r,"..");let n=Fi.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Fi.delimiter)};xi.exports=Jd;xi.exports.default=Jd;xi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Zd({env:e});return t.path=e[r],e[r]=xi.exports(t),e}});var tm=m((PO,Aa)=>{"use strict";var em=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Aa.exports=em;Aa.exports.default=em});var im=m((LO,$n)=>{"use strict";var b1=tm(),Hn=new WeakMap,rm=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Hn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return b1(s,t),Hn.set(s,i),s};$n.exports=rm;$n.exports.default=rm;$n.exports.callCount=t=>{if(!Hn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Hn.get(t)}});var nm=m(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.SIGNALS=void 0;var w1=[{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"}];Un.SIGNALS=w1});var _a=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.SIGRTMAX=qr.getRealtimeSignals=void 0;var F1=function(){let t=om-sm+1;return Array.from({length:t},x1)};qr.getRealtimeSignals=F1;var x1=function(t,e){return{name:`SIGRT${e+1}`,number:sm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},sm=34,om=64;qr.SIGRTMAX=om});var um=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getSignals=void 0;var v1=require("os"),R1=nm(),T1=_a(),O1=function(){let t=(0,T1.getRealtimeSignals)();return[...R1.SIGNALS,...t].map(B1)};Gn.getSignals=O1;var B1=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=v1.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var cm=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.signalsByNumber=Hr.signalsByName=void 0;var P1=require("os"),am=um(),L1=_a(),I1=function(){return(0,am.getSignals)().reduce(N1,{})},N1=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},k1=I1();Hr.signalsByName=k1;var M1=function(){let t=(0,am.getSignals)(),e=L1.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>q1(n,t));return Object.assign({},...r)},q1=function(t,e){let r=H1(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},H1=function(t,e){let r=e.find(({name:i})=>P1.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},$1=M1();Hr.signalsByNumber=$1});var fm=m((qO,lm)=>{"use strict";var{signalsByName:U1}=cm(),G1=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",j1=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let h=n===void 0?void 0:U1[n].description,E=i&&i.code,D=`Command ${G1({timedOut:a,timeout:f,errorCode:E,signal:n,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,_=Object.prototype.toString.call(i)==="[object Error]",b=_?`${D}
|
5
|
+
${i.message}`:D,F=[b,e,t].filter(Boolean).join(`
|
6
|
+
`);return _?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=b,i.command=o,i.escapedCommand=u,i.exitCode=s,i.signal=n,i.signalDescription=h,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=c,i.killed=l&&!a,i};lm.exports=j1});var pm=m((HO,Sa)=>{"use strict";var jn=["stdin","stdout","stderr"],W1=t=>jn.some(e=>t[e]!==void 0),hm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return jn.map(i=>t[i]);if(W1(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${jn.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,jn.length);return Array.from({length:r},(i,n)=>e[n])};Sa.exports=hm;Sa.exports.node=t=>{let e=hm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var dm=m(($O,Wn)=>{Wn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ym=m((UO,Gr)=>{var X=global.process,nr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};nr(X)?(mm=require("assert"),$r=dm(),gm=/^win/i.test(X.platform),vi=require("events"),typeof vi!="function"&&(vi=vi.EventEmitter),X.__signal_exit_emitter__?ue=X.__signal_exit_emitter__:(ue=X.__signal_exit_emitter__=new vi,ue.count=0,ue.emitted={}),ue.infinite||(ue.setMaxListeners(1/0),ue.infinite=!0),Gr.exports=function(t,e){if(!nr(global.process))return function(){};mm.equal(typeof t,"function","a callback must be provided for exit handler"),Ur===!1&&Ca();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ue.removeListener(r,t),ue.listeners("exit").length===0&&ue.listeners("afterexit").length===0&&zn()};return ue.on(r,t),i},zn=function(){!Ur||!nr(global.process)||(Ur=!1,$r.forEach(function(e){try{X.removeListener(e,Yn[e])}catch{}}),X.emit=Kn,X.reallyExit=ba,ue.count-=1)},Gr.exports.unload=zn,sr=function(e,r,i){ue.emitted[e]||(ue.emitted[e]=!0,ue.emit(e,r,i))},Yn={},$r.forEach(function(t){Yn[t]=function(){if(nr(global.process)){var r=X.listeners(t);r.length===ue.count&&(zn(),sr("exit",null,t),sr("afterexit",null,t),gm&&t==="SIGHUP"&&(t="SIGINT"),X.kill(X.pid,t))}}}),Gr.exports.signals=function(){return $r},Ur=!1,Ca=function(){Ur||!nr(global.process)||(Ur=!0,ue.count+=1,$r=$r.filter(function(e){try{return X.on(e,Yn[e]),!0}catch{return!1}}),X.emit=Dm,X.reallyExit=Em)},Gr.exports.load=Ca,ba=X.reallyExit,Em=function(e){nr(global.process)&&(X.exitCode=e||0,sr("exit",X.exitCode,null),sr("afterexit",X.exitCode,null),ba.call(X,X.exitCode))},Kn=X.emit,Dm=function(e,r){if(e==="exit"&&nr(global.process)){r!==void 0&&(X.exitCode=r);var i=Kn.apply(this,arguments);return sr("exit",X.exitCode,null),sr("afterexit",X.exitCode,null),i}else return Kn.apply(this,arguments)}):Gr.exports=function(){return function(){}};var mm,$r,gm,vi,ue,zn,sr,Yn,Ur,Ca,ba,Em,Kn,Dm});var _m=m((GO,Am)=>{"use strict";var z1=require("os"),Y1=ym(),K1=1e3*5,V1=(t,e="SIGTERM",r={})=>{let i=t(e);return X1(t,e,r,i),i},X1=(t,e,r,i)=>{if(!Z1(e,r,i))return;let n=Q1(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},Z1=(t,{forceKillAfterTimeout:e},r)=>J1(t)&&e!==!1&&r,J1=t=>t===z1.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Q1=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return K1;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},ew=(t,e)=>{t.kill()&&(e.isCanceled=!0)},tw=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},rw=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{tw(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},iw=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},nw=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=Y1(()=>{t.kill()});return i.finally(()=>{n()})};Am.exports={spawnedKill:V1,spawnedCancel:ew,setupTimeout:rw,validateTimeout:iw,setExitHandler:nw}});var Cm=m((jO,Sm)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";Sm.exports=Je});var wm=m((WO,bm)=>{"use strict";var{PassThrough:sw}=require("stream");bm.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new sw({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Fm=m((zO,Ri)=>{"use strict";var{constants:ow}=require("buffer"),uw=require("stream"),{promisify:aw}=require("util"),cw=wm(),lw=aw(uw.pipeline),Vn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function wa(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=cw(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=ow.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await lw(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Vn)})}),i.getBufferedValue()}Ri.exports=wa;Ri.exports.buffer=(t,e)=>wa(t,{...e,encoding:"buffer"});Ri.exports.array=(t,e)=>wa(t,{...e,array:!0});Ri.exports.MaxBufferError=Vn});var vm=m((YO,xm)=>{"use strict";var{PassThrough:fw}=require("stream");xm.exports=function(){var t=[],e=new fw({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Bm=m((KO,Om)=>{"use strict";var Tm=Cm(),Rm=Fm(),hw=vm(),pw=(t,e)=>{e===void 0||t.stdin===void 0||(Tm(e)?e.pipe(t.stdin):t.stdin.end(e))},dw=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=hw();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fa=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Rm(t,{encoding:e,maxBuffer:i}):Rm.buffer(t,{maxBuffer:i})},mw=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=xa(t,{encoding:i,buffer:n,maxBuffer:s}),a=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Fa(t,u),Fa(e,a),Fa(r,c)])}},gw=({input:t})=>{if(Tm(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Om.exports={handleInput:pw,makeAllStream:dw,getSpawnedResult:mw,validateInputSync:gw}});var Lm=m((VO,Pm)=>{"use strict";var Ew=(async()=>{})().constructor.prototype,Dw=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Ew,t)]),yw=(t,e)=>{for(let[r,i]of Dw){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},Aw=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});Pm.exports={mergePromise:yw,getSpawnedPromise:Aw}});var km=m((XO,Nm)=>{"use strict";var Im=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],_w=/^[\w.-]+$/,Sw=/"/g,Cw=t=>typeof t!="string"||_w.test(t)?t:`"${t.replace(Sw,'\\"')}"`,bw=(t,e)=>Im(t,e).join(" "),ww=(t,e)=>Im(t,e).map(r=>Cw(r)).join(" "),Fw=/ +/g,xw=t=>{let e=[];for(let r of t.trim().split(Fw)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Nm.exports={joinCommand:bw,getEscapedCommand:ww,parseCommand:xw}});var jm=m((ZO,jr)=>{"use strict";var vw=require("path"),va=require("child_process"),Rw=Kd(),Tw=Xd(),Ow=Qd(),Bw=im(),Xn=fm(),qm=pm(),{spawnedKill:Pw,spawnedCancel:Lw,setupTimeout:Iw,validateTimeout:Nw,setExitHandler:kw}=_m(),{handleInput:Mw,getSpawnedResult:qw,makeAllStream:Hw,validateInputSync:$w}=Bm(),{mergePromise:Mm,getSpawnedPromise:Uw}=Lm(),{joinCommand:Hm,parseCommand:$m,getEscapedCommand:Um}=km(),Gw=1e3*1e3*100,jw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?Ow.env({env:s,cwd:i,execPath:n}):s},Gm=(t,e,r={})=>{let i=Rw._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:Gw,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=jw(r),r.stdio=qm(r),process.platform==="win32"&&vw.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Ti=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Tw(e):e,Zn=(t,e,r)=>{let i=Gm(t,e,r),n=Hm(t,e),s=Um(t,e);Nw(i.options);let o;try{o=va.spawn(i.file,i.args,i.options)}catch(E){let g=new va.ChildProcess,D=Promise.reject(Xn({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Mm(g,D)}let u=Uw(o),a=Iw(o,i.options,u),c=kw(o,i.options,a),l={isCanceled:!1};o.kill=Pw.bind(null,o.kill.bind(o)),o.cancel=Lw.bind(null,o,l);let h=Bw(async()=>{let[{error:E,exitCode:g,signal:D,timedOut:_},b,F,M]=await qw(o,i.options,c),re=Ti(i.options,b),L=Ti(i.options,F),$=Ti(i.options,M);if(E||g!==0||D!==null){let P=Xn({error:E,exitCode:g,signal:D,stdout:re,stderr:L,all:$,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return P;throw P}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:L,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Mw(o,i.options.input),o.all=Hw(o,i.options),Mm(o,h)};jr.exports=Zn;jr.exports.sync=(t,e,r)=>{let i=Gm(t,e,r),n=Hm(t,e),s=Um(t,e);$w(i.options);let o;try{o=va.spawnSync(i.file,i.args,i.options)}catch(c){throw Xn({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Ti(i.options,o.stdout,o.error),a=Ti(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Xn({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};jr.exports.command=(t,e)=>{let[r,...i]=$m(t);return Zn(r,i,e)};jr.exports.commandSync=(t,e)=>{let[r,...i]=$m(t);return Zn.sync(r,i,e)};jr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=qm.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Zn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Wr=m((rB,Ym)=>{"use strict";var zm=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"]]);Ym.exports=t=>t?Object.keys(t).map(e=>[zm.has(e)?zm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var is=m((iB,r0)=>{"use strict";var Km=typeof process=="object"&&process?process:{stdout:null,stderr:null},Zw=require("events"),Vm=require("stream"),Xm=require("string_decoder").StringDecoder,dt=Symbol("EOF"),mt=Symbol("maybeEmitEnd"),It=Symbol("emittedEnd"),Jn=Symbol("emittingEnd"),Oi=Symbol("emittedError"),Qn=Symbol("closed"),Zm=Symbol("read"),es=Symbol("flush"),Jm=Symbol("flushChunk"),Ce=Symbol("encoding"),gt=Symbol("decoder"),ts=Symbol("flowing"),Bi=Symbol("paused"),zr=Symbol("resume"),te=Symbol("buffer"),Qe=Symbol("pipes"),ae=Symbol("bufferLength"),Ra=Symbol("bufferPush"),Ta=Symbol("bufferShift"),de=Symbol("objectMode"),me=Symbol("destroyed"),Oa=Symbol("emitData"),Qm=Symbol("emitEnd"),Ba=Symbol("emitEnd2"),Et=Symbol("async"),Pi=t=>Promise.resolve().then(t),e0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Jw=e0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Qw=e0&&Symbol.iterator||Symbol("iterator not implemented"),eF=t=>t==="end"||t==="finish"||t==="prefinish",tF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,rF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),rs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[zr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Pa=class extends rs{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};r0.exports=class t0 extends Vm{constructor(e){super(),this[ts]=!1,this[Bi]=!1,this[Qe]=[],this[te]=[],this[de]=e&&e.objectMode||!1,this[de]?this[Ce]=null:this[Ce]=e&&e.encoding||null,this[Ce]==="buffer"&&(this[Ce]=null),this[Et]=e&&!!e.async||!1,this[gt]=this[Ce]?new Xm(this[Ce]):null,this[dt]=!1,this[It]=!1,this[Jn]=!1,this[Qn]=!1,this[Oi]=null,this.writable=!0,this.readable=!0,this[ae]=0,this[me]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[te]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Qe]})}get bufferLength(){return this[ae]}get encoding(){return this[Ce]}set encoding(e){if(this[de])throw new Error("cannot set encoding in objectMode");if(this[Ce]&&e!==this[Ce]&&(this[gt]&&this[gt].lastNeed||this[ae]))throw new Error("cannot change encoding");this[Ce]!==e&&(this[gt]=e?new Xm(e):null,this[te].length&&(this[te]=this[te].map(r=>this[gt].write(r)))),this[Ce]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[de]}set objectMode(e){this[de]=this[de]||!!e}get async(){return this[Et]}set async(e){this[Et]=this[Et]||!!e}write(e,r,i){if(this[dt])throw new Error("write after end");if(this[me])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Et]?Pi:s=>s();return!this[de]&&!Buffer.isBuffer(e)&&(rF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):tF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[de]?(this.flowing&&this[ae]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ce]&&!this[gt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ce]&&(e=this[gt].write(e)),this.flowing&&this[ae]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[me])return null;if(this[ae]===0||e===0||e>this[ae])return this[mt](),null;this[de]&&(e=null),this[te].length>1&&!this[de]&&(this.encoding?this[te]=[this[te].join("")]:this[te]=[Buffer.concat(this[te],this[ae])]);let r=this[Zm](e||null,this[te][0]);return this[mt](),r}[Zm](e,r){return e===r.length||e===null?this[Ta]():(this[te][0]=r.slice(e),r=r.slice(0,e),this[ae]-=e),this.emit("data",r),!this[te].length&&!this[dt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[dt]=!0,this.writable=!1,(this.flowing||!this[Bi])&&this[mt](),this}[zr](){this[me]||(this[Bi]=!1,this[ts]=!0,this.emit("resume"),this[te].length?this[es]():this[dt]?this[mt]():this.emit("drain"))}resume(){return this[zr]()}pause(){this[ts]=!1,this[Bi]=!0}get destroyed(){return this[me]}get flowing(){return this[ts]}get paused(){return this[Bi]}[Ra](e){this[de]?this[ae]+=1:this[ae]+=e.length,this[te].push(e)}[Ta](){return this[te].length&&(this[de]?this[ae]-=1:this[ae]-=this[te][0].length),this[te].shift()}[es](e){do;while(this[Jm](this[Ta]()));!e&&!this[te].length&&!this[dt]&&this.emit("drain")}[Jm](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[me])return;let i=this[It];return r=r||{},e===Km.stdout||e===Km.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Qe].push(r.proxyErrors?new Pa(this,e,r):new rs(this,e,r)),this[Et]?Pi(()=>this[zr]()):this[zr]()),e}unpipe(e){let r=this[Qe].find(i=>i.dest===e);r&&(this[Qe].splice(this[Qe].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Qe].length&&!this.flowing?this[zr]():e==="readable"&&this[ae]!==0?super.emit("readable"):eF(e)&&this[It]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Oi]&&(this[Et]?Pi(()=>r.call(this,this[Oi])):r.call(this,this[Oi])),i}get emittedEnd(){return this[It]}[mt](){!this[Jn]&&!this[It]&&!this[me]&&this[te].length===0&&this[dt]&&(this[Jn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qn]&&this.emit("close"),this[Jn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==me&&this[me])return;if(e==="data")return r?this[Et]?Pi(()=>this[Oa](r)):this[Oa](r):!1;if(e==="end")return this[Qm]();if(e==="close"){if(this[Qn]=!0,!this[It]&&!this[me])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Oi]=r;let s=super.emit("error",r);return this[mt](),s}else if(e==="resume"){let s=super.emit("resume");return this[mt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[mt](),n}[Oa](e){for(let i of this[Qe])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[mt](),r}[Qm](){this[It]||(this[It]=!0,this.readable=!1,this[Et]?Pi(()=>this[Ba]()):this[Ba]())}[Ba](){if(this[gt]){let r=this[gt].end();if(r){for(let i of this[Qe])i.dest.write(r);super.emit("data",r)}}for(let r of this[Qe])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[de]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[de]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[de]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[de]?Promise.reject(new Error("cannot concat in objectMode")):this[Ce]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(me,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Jw](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[dt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[dt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(me,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Qw](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[me]?(e?this.emit("error",e):this.emit(me),this):(this[me]=!0,this[te].length=0,this[ae]=0,typeof this.close=="function"&&!this[Qn]&&this.close(),e?this.emit("error",e):this.emit(me),this)}static isStream(e){return!!e&&(e instanceof t0||e instanceof Vm||e instanceof Zw&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var n0=m((nB,i0)=>{var iF=require("zlib").constants||{ZLIB_VERNUM:4736};i0.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},iF))});var qa=m((sB,p0)=>{"use strict";var s0=typeof process=="object"&&process?process:{stdout:null,stderr:null},nF=require("events"),o0=require("stream"),u0=require("string_decoder").StringDecoder,Dt=Symbol("EOF"),yt=Symbol("maybeEmitEnd"),Nt=Symbol("emittedEnd"),ns=Symbol("emittingEnd"),Li=Symbol("emittedError"),ss=Symbol("closed"),a0=Symbol("read"),os=Symbol("flush"),c0=Symbol("flushChunk"),be=Symbol("encoding"),At=Symbol("decoder"),us=Symbol("flowing"),Ii=Symbol("paused"),Yr=Symbol("resume"),ce=Symbol("bufferLength"),La=Symbol("bufferPush"),Ia=Symbol("bufferShift"),ge=Symbol("objectMode"),Ee=Symbol("destroyed"),Na=Symbol("emitData"),l0=Symbol("emitEnd"),ka=Symbol("emitEnd2"),_t=Symbol("async"),Ni=t=>Promise.resolve().then(t),f0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",sF=f0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),oF=f0&&Symbol.iterator||Symbol("iterator not implemented"),uF=t=>t==="end"||t==="finish"||t==="prefinish",aF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,cF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),as=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Yr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ma=class extends as{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};p0.exports=class h0 extends o0{constructor(e){super(),this[us]=!1,this[Ii]=!1,this.pipes=[],this.buffer=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[be]=null:this[be]=e&&e.encoding||null,this[be]==="buffer"&&(this[be]=null),this[_t]=e&&!!e.async||!1,this[At]=this[be]?new u0(this[be]):null,this[Dt]=!1,this[Nt]=!1,this[ns]=!1,this[ss]=!1,this[Li]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[Ee]=!1}get bufferLength(){return this[ce]}get encoding(){return this[be]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[be]&&e!==this[be]&&(this[At]&&this[At].lastNeed||this[ce]))throw new Error("cannot change encoding");this[be]!==e&&(this[At]=e?new u0(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[At].write(r)))),this[be]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[_t]}set async(e){this[_t]=this[_t]||!!e}write(e,r,i){if(this[Dt])throw new Error("write after end");if(this[Ee])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[_t]?Ni:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(cF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[be]&&!this[At].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[be]&&(e=this[At].write(e)),this.flowing&&this[ce]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ce]===0||e===0||e>this[ce])return this[yt](),null;this[ge]&&(e=null),this.buffer.length>1&&!this[ge]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ce])]);let r=this[a0](e||null,this.buffer[0]);return this[yt](),r}[a0](e,r){return e===r.length||e===null?this[Ia]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this.buffer.length&&!this[Dt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Dt]=!0,this.writable=!1,(this.flowing||!this[Ii])&&this[yt](),this}[Yr](){this[Ee]||(this[Ii]=!1,this[us]=!0,this.emit("resume"),this.buffer.length?this[os]():this[Dt]?this[yt]():this.emit("drain"))}resume(){return this[Yr]()}pause(){this[us]=!1,this[Ii]=!0}get destroyed(){return this[Ee]}get flowing(){return this[us]}get paused(){return this[Ii]}[La](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this.buffer.push(e)}[Ia](){return this.buffer.length&&(this[ge]?this[ce]-=1:this[ce]-=this.buffer[0].length),this.buffer.shift()}[os](e){do;while(this[c0](this[Ia]()));!e&&!this.buffer.length&&!this[Dt]&&this.emit("drain")}[c0](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[Nt];return r=r||{},e===s0.stdout||e===s0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ma(this,e,r):new as(this,e,r)),this[_t]?Ni(()=>this[Yr]()):this[Yr]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Yr]():e==="readable"&&this[ce]!==0?super.emit("readable"):uF(e)&&this[Nt]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Li]&&(this[_t]?Ni(()=>r.call(this,this[Li])):r.call(this,this[Li])),i}get emittedEnd(){return this[Nt]}[yt](){!this[ns]&&!this[Nt]&&!this[Ee]&&this.buffer.length===0&&this[Dt]&&(this[ns]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ss]&&this.emit("close"),this[ns]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[_t]?Ni(()=>this[Na](r)):this[Na](r):!1;if(e==="end")return this[l0]();if(e==="close"){if(this[ss]=!0,!this[Nt]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Li]=r;let s=super.emit("error",r);return this[yt](),s}else if(e==="resume"){let s=super.emit("resume");return this[yt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[yt](),n}[Na](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[yt](),r}[l0](){this[Nt]||(this[Nt]=!0,this.readable=!1,this[_t]?Ni(()=>this[ka]()):this[ka]())}[ka](){if(this[At]){let r=this[At].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[be]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ee,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[sF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Dt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[Dt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ee,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[oF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ce]=0,typeof this.close=="function"&&!this[ss]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof h0||e instanceof o0||e instanceof nF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var tc=m(Te=>{"use strict";var ja=require("assert"),kt=require("buffer").Buffer,g0=require("zlib"),or=Te.constants=n0(),lF=qa(),d0=kt.concat,ur=Symbol("_superWrite"),Vr=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},fF=Symbol("opts"),ki=Symbol("flushFlag"),m0=Symbol("finishFlushFlag"),ec=Symbol("fullFlushFlag"),W=Symbol("handle"),cs=Symbol("onError"),Kr=Symbol("sawError"),Ha=Symbol("level"),$a=Symbol("strategy"),Ua=Symbol("ended"),oB=Symbol("_defaultFullFlush"),ls=class extends lF{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Kr]=!1,this[Ua]=!1,this[fF]=e,this[ki]=e.flush,this[m0]=e.finishFlush;try{this[W]=new g0[r](e)}catch(i){throw new Vr(i)}this[cs]=i=>{this[Kr]||(this[Kr]=!0,this.close(),this.emit("error",i))},this[W].on("error",i=>this[cs](new Vr(i))),this.once("end",()=>this.close)}close(){this[W]&&(this[W].close(),this[W]=null,this.emit("close"))}reset(){if(!this[Kr])return ja(this[W],"zlib binding closed"),this[W].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[ec]),this.write(Object.assign(kt.alloc(0),{[ki]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[m0]),this[Ua]=!0,super.end(null,null,i)}get ended(){return this[Ua]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=kt.from(e,r)),this[Kr])return;ja(this[W],"zlib binding closed");let n=this[W]._handle,s=n.close;n.close=()=>{};let o=this[W].close;this[W].close=()=>{},kt.concat=c=>c;let u;try{let c=typeof e[ki]=="number"?e[ki]:this[ki];u=this[W]._processChunk(e,c),kt.concat=d0}catch(c){kt.concat=d0,this[cs](new Vr(c))}finally{this[W]&&(this[W]._handle=n,n.close=s,this[W].close=o,this[W].removeAllListeners("error"))}this[W]&&this[W].on("error",c=>this[cs](new Vr(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[ur](kt.from(u[0]));for(let c=1;c<u.length;c++)a=this[ur](u[c])}else a=this[ur](kt.from(u));return i&&i(),a}[ur](e){return super.write(e)}},St=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||or.Z_NO_FLUSH,e.finishFlush=e.finishFlush||or.Z_FINISH,super(e,r),this[ec]=or.Z_FULL_FLUSH,this[Ha]=e.level,this[$a]=e.strategy}params(e,r){if(!this[Kr]){if(!this[W])throw new Error("cannot switch params when binding is closed");if(!this[W].params)throw new Error("not supported in this implementation");if(this[Ha]!==e||this[$a]!==r){this.flush(or.Z_SYNC_FLUSH),ja(this[W],"zlib binding closed");let i=this[W].flush;this[W].flush=(n,s)=>{this.flush(n),s()};try{this[W].params(e,r)}finally{this[W].flush=i}this[W]&&(this[Ha]=e,this[$a]=r)}}}},Wa=class extends St{constructor(e){super(e,"Deflate")}},za=class extends St{constructor(e){super(e,"Inflate")}},Ga=Symbol("_portable"),Ya=class extends St{constructor(e){super(e,"Gzip"),this[Ga]=e&&!!e.portable}[ur](e){return this[Ga]?(this[Ga]=!1,e[9]=255,super[ur](e)):super[ur](e)}},Ka=class extends St{constructor(e){super(e,"Gunzip")}},Va=class extends St{constructor(e){super(e,"DeflateRaw")}},Xa=class extends St{constructor(e){super(e,"InflateRaw")}},Za=class extends St{constructor(e){super(e,"Unzip")}},fs=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||or.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||or.BROTLI_OPERATION_FINISH,super(e,r),this[ec]=or.BROTLI_OPERATION_FLUSH}},Ja=class extends fs{constructor(e){super(e,"BrotliCompress")}},Qa=class extends fs{constructor(e){super(e,"BrotliDecompress")}};Te.Deflate=Wa;Te.Inflate=za;Te.Gzip=Ya;Te.Gunzip=Ka;Te.DeflateRaw=Va;Te.InflateRaw=Xa;Te.Unzip=Za;typeof g0.BrotliCompress=="function"?(Te.BrotliCompress=Ja,Te.BrotliDecompress=Qa):Te.BrotliCompress=Te.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Xr=m((cB,E0)=>{var hF=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;E0.exports=hF!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var hs=m((fB,D0)=>{"use strict";var pF=is(),rc=Xr(),ic=Symbol("slurp");D0.exports=class extends pF{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=rc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=rc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[ic](r),i&&this[ic](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[ic](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?rc(e[i]):e[i])}}});var nc=m(ps=>{"use strict";ps.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"]]);ps.code=new Map(Array.from(ps.name).map(t=>[t[1],t[0]]))});var S0=m((pB,_0)=>{"use strict";var dF=(t,e)=>{if(Number.isSafeInteger(t))t<0?gF(t,e):mF(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},mF=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},gF=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=y0(n):n===0?e[i-1]=0:(r=!0,e[i-1]=A0(n))}},EF=t=>{let e=t[0],r=e===128?yF(t.slice(1,t.length)):e===255?DF(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},DF=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=y0(s):s===0?o=s:(i=!0,o=A0(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},yF=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},y0=t=>(255^t)&255,A0=t=>(255^t)+1&255;_0.exports={encode:dF,parse:EF}});var Jr=m((dB,b0)=>{"use strict";var sc=nc(),Zr=require("path").posix,C0=S0(),oc=Symbol("slurp"),Oe=Symbol("type"),cc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Oe]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=ar(e,r,100),this.mode=Mt(e,r+100,8),this.uid=Mt(e,r+108,8),this.gid=Mt(e,r+116,8),this.size=Mt(e,r+124,12),this.mtime=uc(e,r+136,12),this.cksum=Mt(e,r+148,12),this[oc](i),this[oc](n,!0),this[Oe]=ar(e,r+156,1),this[Oe]===""&&(this[Oe]="0"),this[Oe]==="0"&&this.path.slice(-1)==="/"&&(this[Oe]="5"),this[Oe]==="5"&&(this.size=0),this.linkpath=ar(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=ar(e,r+265,32),this.gname=ar(e,r+297,32),this.devmaj=Mt(e,r+329,8),this.devmin=Mt(e,r+337,8),e[r+475]!==0){let o=ar(e,r+345,155);this.path=o+"/"+this.path}else{let o=ar(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=uc(e,r+476,12),this.ctime=uc(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[oc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=AF(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=cr(e,r,100,s)||this.needPax,this.needPax=qt(e,r+100,8,this.mode)||this.needPax,this.needPax=qt(e,r+108,8,this.uid)||this.needPax,this.needPax=qt(e,r+116,8,this.gid)||this.needPax,this.needPax=qt(e,r+124,12,this.size)||this.needPax,this.needPax=ac(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Oe].charCodeAt(0),this.needPax=cr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=cr(e,r+265,32,this.uname)||this.needPax,this.needPax=cr(e,r+297,32,this.gname)||this.needPax,this.needPax=qt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=qt(e,r+337,8,this.devmin)||this.needPax,this.needPax=cr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=cr(e,r+345,155,o)||this.needPax:(this.needPax=cr(e,r+345,130,o)||this.needPax,this.needPax=ac(e,r+476,12,this.atime)||this.needPax,this.needPax=ac(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,qt(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return sc.name.get(this[Oe])||this[Oe]}get typeKey(){return this[Oe]}set type(e){sc.code.has(e)?this[Oe]=sc.code.get(e):this[Oe]=e}},AF=(t,e)=>{let i=t,n="",s,o=Zr.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Zr.dirname(i),i=Zr.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=Zr.join(Zr.basename(n),i),n=Zr.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},ar=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),uc=(t,e,r)=>_F(Mt(t,e,r)),_F=t=>t===null?null:new Date(t*1e3),Mt=(t,e,r)=>t[e]&128?C0.parse(t.slice(e,e+r)):CF(t,e,r),SF=t=>isNaN(t)?null:t,CF=(t,e,r)=>SF(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),bF={12:8589934591,8:2097151},qt=(t,e,r,i)=>i===null?!1:i>bF[r]||i<0?(C0.encode(i,t.slice(e,e+r)),!0):(wF(t,e,r,i),!1),wF=(t,e,r,i)=>t.write(FF(i,r),e,r,"ascii"),FF=(t,e)=>xF(Math.floor(t).toString(8),e),xF=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",ac=(t,e,r,i)=>i===null?!1:qt(t,e,r,i.getTime()/1e3),vF=new Array(156).join("\0"),cr=(t,e,r,i)=>i===null?!1:(t.write(i+vF,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);b0.exports=cc});var ds=m((mB,w0)=>{"use strict";var RF=Jr(),TF=require("path"),Mi=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new RF({path:("PaxHeader/"+TF.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
7
|
+
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Mi.parse=(t,e,r)=>new Mi(OF(BF(t),e),r);var OF=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,BF=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(PF,Object.create(null)),PF=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};w0.exports=Mi});var Qr=m((gB,F0)=>{F0.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var ms=m((EB,x0)=>{"use strict";x0.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fc=m((yB,v0)=>{"use strict";var gs=["|","<",">","?",":"],lc=gs.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),LF=new Map(gs.map((t,e)=>[t,lc[e]])),IF=new Map(lc.map((t,e)=>[t,gs[e]]));v0.exports={encode:t=>gs.reduce((e,r)=>e.split(r).join(LF.get(r)),t),decode:t=>lc.reduce((e,r)=>e.split(r).join(IF.get(r)),t)}});var hc=m((AB,T0)=>{var{isAbsolute:NF,parse:R0}=require("path").win32;T0.exports=t=>{let e="",r=R0(t);for(;NF(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=R0(t)}return[e,t]}});var B0=m((_B,O0)=>{"use strict";O0.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Sc=m((bB,z0)=>{"use strict";var q0=is(),H0=ds(),$0=Jr(),tt=require("fs"),P0=require("path"),et=Xr(),kF=Qr(),U0=(t,e)=>e?(t=et(t).replace(/^\.(\/|$)/,""),kF(e)+"/"+t):et(t),MF=16*1024*1024,L0=Symbol("process"),I0=Symbol("file"),N0=Symbol("directory"),dc=Symbol("symlink"),k0=Symbol("hardlink"),qi=Symbol("header"),Es=Symbol("read"),mc=Symbol("lstat"),Ds=Symbol("onlstat"),gc=Symbol("onread"),Ec=Symbol("onreadlink"),Dc=Symbol("openfile"),yc=Symbol("onopenfile"),Ht=Symbol("close"),ys=Symbol("mode"),Ac=Symbol("awaitDrain"),pc=Symbol("ondrain"),rt=Symbol("prefix"),M0=Symbol("hadError"),G0=ms(),qF=fc(),j0=hc(),W0=B0(),As=G0(class extends q0{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=et(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||MF,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=et(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?et(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=j0(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=qF.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=et(r.absolute||P0.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ds](this.statCache.get(this.absolute)):this[mc]()}emit(e,...r){return e==="error"&&(this[M0]=!0),super.emit(e,...r)}[mc](){tt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ds](r)})}[Ds](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=$F(e),this.emit("stat",e),this[L0]()}[L0](){switch(this.type){case"File":return this[I0]();case"Directory":return this[N0]();case"SymbolicLink":return this[dc]();default:return this.end()}}[ys](e){return W0(e,this.type==="Directory",this.portable)}[rt](e){return U0(e,this.prefix)}[qi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $0({path:this[rt](this.path),linkpath:this.type==="Link"?this[rt](this.linkpath):this.linkpath,mode:this[ys](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 H0({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[rt](this.path),linkpath:this.type==="Link"?this[rt](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)}[N0](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[qi](),this.end()}[dc](){tt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){this.linkpath=et(e),this[qi](),this.end()}[k0](e){this.type="Link",this.linkpath=et(P0.relative(this.cwd,e)),this.stat.size=0,this[qi](),this.end()}[I0](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[k0](r)}this.linkCache.set(e,this.absolute)}if(this[qi](),this.stat.size===0)return this.end();this[Dc]()}[Dc](){tt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[yc](r)})}[yc](e){if(this.fd=e,this[M0])return this[Ht]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Es]()}[Es](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;tt.read(e,r,i,n,s,(o,u)=>{if(o)return this[Ht](()=>this.emit("error",o));this[gc](u)})}[Ht](e){tt.close(this.fd,e)}[gc](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Ht](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Ht](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[pc]():this[Ac](()=>this[pc]())}[Ac](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[pc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Ht](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Es]()}}),_c=class extends As{[mc](){this[Ds](tt.lstatSync(this.absolute))}[dc](){this[Ec](tt.readlinkSync(this.absolute))}[Dc](){this[yc](tt.openSync(this.absolute,"r"))}[Es](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=tt.readSync(r,i,n,s,o);this[gc](u),e=!1}finally{if(e)try{this[Ht](()=>{})}catch{}}}[Ac](e){e()}[Ht](e){tt.closeSync(this.fd),e()}},HF=G0(class extends q0{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=et(e.path),this.mode=this[ys](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=et(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=j0(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new $0({path:this[rt](this.path),linkpath:this.type==="Link"?this[rt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new H0({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[rt](this.path),linkpath:this.type==="Link"?this[rt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[rt](e){return U0(e,this.prefix)}[ys](e){return W0(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});As.Sync=_c;As.Tar=HF;var $F=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";z0.exports=As});var K0=m((wB,Y0)=>{"use strict";Y0.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Cc=m((FB,V0)=>{"use strict";V0.exports=q;q.Node=lr;q.create=q;function q(t){var e=this;if(e instanceof q||(e=new q),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}q.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};q.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};q.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};q.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)GF(this,arguments[t]);return this.length};q.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)jF(this,arguments[t]);return this.length};q.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};q.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};q.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};q.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};q.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};q.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};q.prototype.map=function(t,e){e=e||this;for(var r=new q,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};q.prototype.mapReverse=function(t,e){e=e||this;for(var r=new q,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};q.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};q.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};q.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};q.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};q.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new q;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};q.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new q;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};q.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=UF(this,n,r[i]);return s};q.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function UF(t,e,r){var i=e===t.head?new lr(r,null,e,t):new lr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function GF(t,e){t.tail=new lr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function jF(t,e){t.head=new lr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function lr(t,e,r,i){if(!(this instanceof lr))return new lr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{K0()(q)}catch{}});var Rs=m((vB,rg)=>{"use strict";var xs=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},WF=is(),zF=tc(),YF=hs(),Bc=Sc(),KF=Bc.Sync,VF=Bc.Tar,XF=Cc(),X0=Buffer.alloc(1024),Cs=Symbol("onStat"),_s=Symbol("ended"),it=Symbol("queue"),ei=Symbol("current"),fr=Symbol("process"),Ss=Symbol("processing"),Z0=Symbol("processJob"),nt=Symbol("jobs"),bc=Symbol("jobDone"),bs=Symbol("addFSEntry"),J0=Symbol("addTarEntry"),vc=Symbol("stat"),Rc=Symbol("readdir"),ws=Symbol("onreaddir"),Fs=Symbol("pipe"),Q0=Symbol("entry"),wc=Symbol("entryOpt"),Tc=Symbol("writeEntryClass"),tg=Symbol("write"),Fc=Symbol("ondrain"),vs=require("fs"),eg=require("path"),ZF=ms(),xc=Xr(),Pc=ZF(class extends WF{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=xc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Tc]=Bc,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new zF.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Fc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Fc]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[it]=new XF,this[nt]=0,this.jobs=+e.jobs||4,this[Ss]=!1,this[_s]=!1}[tg](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[_s]=!0,this[fr](),this}write(e){if(this[_s])throw new Error("write after end");return e instanceof YF?this[J0](e):this[bs](e),this.flowing}[J0](e){let r=xc(eg.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new xs(e.path,r,!1);i.entry=new VF(e,this[wc](i)),i.entry.on("end",n=>this[bc](i)),this[nt]+=1,this[it].push(i)}this[fr]()}[bs](e){let r=xc(eg.resolve(this.cwd,e));this[it].push(new xs(e,r)),this[fr]()}[vc](e){e.pending=!0,this[nt]+=1;let r=this.follow?"stat":"lstat";vs[r](e.absolute,(i,n)=>{e.pending=!1,this[nt]-=1,i?this.emit("error",i):this[Cs](e,n)})}[Cs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[fr]()}[Rc](e){e.pending=!0,this[nt]+=1,vs.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[nt]-=1,r)return this.emit("error",r);this[ws](e,i)})}[ws](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[fr]()}[fr](){if(!this[Ss]){this[Ss]=!0;for(let e=this[it].head;e!==null&&this[nt]<this.jobs;e=e.next)if(this[Z0](e.value),e.value.ignore){let r=e.next;this[it].removeNode(e),e.next=r}this[Ss]=!1,this[_s]&&!this[it].length&&this[nt]===0&&(this.zip?this.zip.end(X0):(super.write(X0),super.end()))}}get[ei](){return this[it]&&this[it].head&&this[it].head.value}[bc](e){this[it].shift(),this[nt]-=1,this[fr]()}[Z0](e){if(!e.pending){if(e.entry){e===this[ei]&&!e.piped&&this[Fs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Cs](e,this.statCache.get(e.absolute)):this[vc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ws](e,this.readdirCache.get(e.absolute)):this[Rc](e),!e.readdir))){if(e.entry=this[Q0](e),!e.entry){e.ignore=!0;return}e===this[ei]&&!e.piped&&this[Fs](e)}}}[wc](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Q0](e){this[nt]+=1;try{return new this[Tc](e.path,this[wc](e)).on("end",()=>this[bc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Fc](){this[ei]&&this[ei].entry&&this[ei].entry.resume()}[Fs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Oc=class extends Pc{constructor(e){super(e),this[Tc]=KF}pause(){}resume(){}[vc](e){let r=this.follow?"statSync":"lstatSync";this[Cs](e,vs[r](e.absolute))}[Rc](e,r){this[ws](e,vs.readdirSync(e.absolute))}[Fs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[tg](n)})}};Pc.Sync=Oc;rg.exports=Pc});var ai=m($i=>{"use strict";var JF=qa(),QF=require("events").EventEmitter,we=require("fs"),Nc=we.writev;if(!Nc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Nc=(r,i,n,s)=>{let o=(a,c)=>s(a,c,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var oi=Symbol("_autoClose"),Ge=Symbol("_close"),Hi=Symbol("_ended"),U=Symbol("_fd"),ig=Symbol("_finished"),Ut=Symbol("_flags"),Lc=Symbol("_flush"),kc=Symbol("_handleChunk"),Mc=Symbol("_makeBuf"),Ls=Symbol("_mode"),Ts=Symbol("_needDrain"),ni=Symbol("_onerror"),ui=Symbol("_onopen"),Ic=Symbol("_onread"),ri=Symbol("_onwrite"),Gt=Symbol("_open"),Ct=Symbol("_path"),hr=Symbol("_pos"),st=Symbol("_queue"),ii=Symbol("_read"),ng=Symbol("_readSize"),$t=Symbol("_reading"),Os=Symbol("_remain"),sg=Symbol("_size"),Bs=Symbol("_write"),ti=Symbol("_writing"),Ps=Symbol("_defaultFlag"),si=Symbol("_errored"),Is=class extends JF{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[si]=!1,this[U]=typeof r.fd=="number"?r.fd:null,this[Ct]=e,this[ng]=r.readSize||16*1024*1024,this[$t]=!1,this[sg]=typeof r.size=="number"?r.size:1/0,this[Os]=this[sg],this[oi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[U]=="number"?this[ii]():this[Gt]()}get fd(){return this[U]}get path(){return this[Ct]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Gt](){we.open(this[Ct],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ni](e):(this[U]=r,this.emit("open",r),this[ii]())}[Mc](){return Buffer.allocUnsafe(Math.min(this[ng],this[Os]))}[ii](){if(!this[$t]){this[$t]=!0;let e=this[Mc]();if(e.length===0)return process.nextTick(()=>this[Ic](null,0,e));we.read(this[U],e,0,e.length,null,(r,i,n)=>this[Ic](r,i,n))}}[Ic](e,r,i){this[$t]=!1,e?this[ni](e):this[kc](r,i)&&this[ii]()}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ni](e){this[$t]=!0,this[Ge](),this.emit("error",e)}[kc](e,r){let i=!1;return this[Os]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Os]<=0)&&(i=!1,this[Ge](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[U]=="number"&&this[ii]();break;case"error":return this[si]?void 0:(this[si]=!0,super.emit(e,r));default:return super.emit(e,r)}}},qc=class extends Is{[Gt](){let e=!0;try{this[ui](null,we.openSync(this[Ct],"r")),e=!1}finally{e&&this[Ge]()}}[ii](){let e=!0;try{if(!this[$t]){this[$t]=!0;do{let r=this[Mc](),i=r.length===0?0:we.readSync(this[U],r,0,r.length,null);if(!this[kc](i,r))break}while(!0);this[$t]=!1}e=!1}finally{e&&this[Ge]()}}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.closeSync(e),this.emit("close")}}},Ns=class extends QF{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[si]=!1,this[ti]=!1,this[Hi]=!1,this[Ts]=!1,this[st]=[],this[Ct]=e,this[U]=typeof r.fd=="number"?r.fd:null,this[Ls]=r.mode===void 0?438:r.mode,this[hr]=typeof r.start=="number"?r.start:null,this[oi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[hr]!==null?"r+":"w";this[Ps]=r.flags===void 0,this[Ut]=this[Ps]?i:r.flags,this[U]===null&&this[Gt]()}emit(e,r){if(e==="error"){if(this[si])return;this[si]=!0}return super.emit(e,r)}get fd(){return this[U]}get path(){return this[Ct]}[ni](e){this[Ge](),this[ti]=!0,this.emit("error",e)}[Gt](){we.open(this[Ct],this[Ut],this[Ls],(e,r)=>this[ui](e,r))}[ui](e,r){this[Ps]&&this[Ut]==="r+"&&e&&e.code==="ENOENT"?(this[Ut]="w",this[Gt]()):e?this[ni](e):(this[U]=r,this.emit("open",r),this[Lc]())}end(e,r){return e&&this.write(e,r),this[Hi]=!0,!this[ti]&&!this[st].length&&typeof this[U]=="number"&&this[ri](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Hi]?(this.emit("error",new Error("write() after end()")),!1):this[U]===null||this[ti]||this[st].length?(this[st].push(e),this[Ts]=!0,!1):(this[ti]=!0,this[Bs](e),!0)}[Bs](e){we.write(this[U],e,0,e.length,this[hr],(r,i)=>this[ri](r,i))}[ri](e,r){e?this[ni](e):(this[hr]!==null&&(this[hr]+=r),this[st].length?this[Lc]():(this[ti]=!1,this[Hi]&&!this[ig]?(this[ig]=!0,this[Ge](),this.emit("finish")):this[Ts]&&(this[Ts]=!1,this.emit("drain"))))}[Lc](){if(this[st].length===0)this[Hi]&&this[ri](null,0);else if(this[st].length===1)this[Bs](this[st].pop());else{let e=this[st];this[st]=[],Nc(this[U],e,this[hr],(r,i)=>this[ri](r,i))}}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Hc=class extends Ns{[Gt](){let e;if(this[Ps]&&this[Ut]==="r+")try{e=we.openSync(this[Ct],this[Ut],this[Ls])}catch(r){if(r.code==="ENOENT")return this[Ut]="w",this[Gt]();throw r}else e=we.openSync(this[Ct],this[Ut],this[Ls]);this[ui](null,e)}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.closeSync(e),this.emit("close")}}[Bs](e){let r=!0;try{this[ri](null,we.writeSync(this[U],e,0,e.length,this[hr])),r=!1}finally{if(r)try{this[Ge]()}catch{}}}};$i.ReadStream=Is;$i.ReadStreamSync=qc;$i.WriteStream=Ns;$i.WriteStreamSync=Hc});var Gs=m((OB,pg)=>{"use strict";var ex=ms(),tx=Jr(),rx=require("events"),ix=Cc(),nx=1024*1024,sx=hs(),og=ds(),ox=tc(),{nextTick:ux}=require("process"),$c=Buffer.from([31,139]),ke=Symbol("state"),pr=Symbol("writeEntry"),bt=Symbol("readEntry"),Uc=Symbol("nextEntry"),ug=Symbol("processEntry"),Me=Symbol("extendedHeader"),Ui=Symbol("globalExtendedHeader"),jt=Symbol("meta"),ag=Symbol("emitMeta"),K=Symbol("buffer"),wt=Symbol("queue"),dr=Symbol("ended"),cg=Symbol("emittedEnd"),mr=Symbol("emit"),Fe=Symbol("unzip"),ks=Symbol("consumeChunk"),Ms=Symbol("consumeChunkSub"),Gc=Symbol("consumeBody"),lg=Symbol("consumeMeta"),fg=Symbol("consumeHeader"),qs=Symbol("consuming"),jc=Symbol("bufferConcat"),Wc=Symbol("maybeEnd"),Gi=Symbol("writing"),Wt=Symbol("aborted"),Hs=Symbol("onDone"),gr=Symbol("sawValidEntry"),$s=Symbol("sawNullBlock"),Us=Symbol("sawEOF"),hg=Symbol("closeStream"),ax=t=>!0;pg.exports=ex(class extends rx{constructor(e){e=e||{},super(e),this.file=e.file||"",this[gr]=null,this.on(Hs,r=>{(this[ke]==="begin"||this[gr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Hs,e.ondone):this.on(Hs,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||nx,this.filter=typeof e.filter=="function"?e.filter:ax,this.writable=!0,this.readable=!1,this[wt]=new ix,this[K]=null,this[bt]=null,this[pr]=null,this[ke]="begin",this[jt]="",this[Me]=null,this[Ui]=null,this[dr]=!1,this[Fe]=null,this[Wt]=!1,this[$s]=!1,this[Us]=!1,this.on("end",()=>this[hg]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[fg](e,r){this[gr]===null&&(this[gr]=!1);let i;try{i=new tx(e,r,this[Me],this[Ui])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$s]?(this[Us]=!0,this[ke]==="begin"&&(this[ke]="header"),this[mr]("eof")):(this[$s]=!0,this[mr]("nullBlock"));else if(this[$s]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[pr]=new sx(i,this[Me],this[Ui]);if(!this[gr])if(s.remain){let o=()=>{s.invalid||(this[gr]=!0)};s.on("end",o)}else this[gr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[mr]("ignoredEntry",s),this[ke]="ignore",s.resume()):s.size>0&&(this[jt]="",s.on("data",o=>this[jt]+=o),this[ke]="meta"):(this[Me]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[mr]("ignoredEntry",s),this[ke]=s.remain?"ignore":"header",s.resume()):(s.remain?this[ke]="body":(this[ke]="header",s.end()),this[bt]?this[wt].push(s):(this[wt].push(s),this[Uc]())))}}}[hg](){ux(()=>this.emit("close"))}[ug](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[bt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Uc]()),r=!1)):(this[bt]=null,r=!1),r}[Uc](){do;while(this[ug](this[wt].shift()));if(!this[wt].length){let e=this[bt];!e||e.flowing||e.size===e.remain?this[Gi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Gc](e,r){let i=this[pr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[ke]="header",this[pr]=null,i.end()),s.length}[lg](e,r){let i=this[pr],n=this[Gc](e,r);return this[pr]||this[ag](i),n}[mr](e,r,i){!this[wt].length&&!this[bt]?this.emit(e,r,i):this[wt].push([e,r,i])}[ag](e){switch(this[mr]("meta",this[jt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Me]=og.parse(this[jt],this[Me],!1);break;case"GlobalExtendedHeader":this[Ui]=og.parse(this[jt],this[Ui],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Me]=this[Me]||Object.create(null),this[Me].path=this[jt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Me]=this[Me]||Object.create(null),this[Me].linkpath=this[jt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Wt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Wt])return;if(this[Fe]===null&&e){if(this[K]&&(e=Buffer.concat([this[K],e]),this[K]=null),e.length<$c.length)return this[K]=e,!0;for(let i=0;this[Fe]===null&&i<$c.length;i++)e[i]!==$c[i]&&(this[Fe]=!1);if(this[Fe]===null){let i=this[dr];this[dr]=!1,this[Fe]=new ox.Unzip,this[Fe].on("data",s=>this[ks](s)),this[Fe].on("error",s=>this.abort(s)),this[Fe].on("end",s=>{this[dr]=!0,this[ks]()}),this[Gi]=!0;let n=this[Fe][i?"end":"write"](e);return this[Gi]=!1,n}}this[Gi]=!0,this[Fe]?this[Fe].write(e):this[ks](e),this[Gi]=!1;let r=this[wt].length?!1:this[bt]?this[bt].flowing:!0;return!r&&!this[wt].length&&this[bt].once("drain",i=>this.emit("drain")),r}[jc](e){e&&!this[Wt]&&(this[K]=this[K]?Buffer.concat([this[K],e]):e)}[Wc](){if(this[dr]&&!this[cg]&&!this[Wt]&&!this[qs]){this[cg]=!0;let e=this[pr];if(e&&e.blockRemain){let r=this[K]?this[K].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[K]&&e.write(this[K]),e.end()}this[mr](Hs)}}[ks](e){if(this[qs])this[jc](e);else if(!e&&!this[K])this[Wc]();else{if(this[qs]=!0,this[K]){this[jc](e);let r=this[K];this[K]=null,this[Ms](r)}else this[Ms](e);for(;this[K]&&this[K].length>=512&&!this[Wt]&&!this[Us];){let r=this[K];this[K]=null,this[Ms](r)}this[qs]=!1}(!this[K]||this[dr])&&this[Wc]()}[Ms](e){let r=0,i=e.length;for(;r+512<=i&&!this[Wt]&&!this[Us];)switch(this[ke]){case"begin":case"header":this[fg](e,r),r+=512;break;case"ignore":case"body":r+=this[Gc](e,r);break;case"meta":r+=this[lg](e,r);break;default:throw new Error("invalid state: "+this[ke])}r<i&&(this[K]?this[K]=Buffer.concat([e.slice(r),this[K]]):this[K]=e.slice(r))}end(e){this[Wt]||(this[Fe]?this[Fe].end(e):(this[dr]=!0,this.write(e)))}})});var js=m((BB,Eg)=>{"use strict";var cx=Wr(),mg=Gs(),ci=require("fs"),lx=ai(),dg=require("path"),zc=Qr();Eg.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=cx(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&hx(i,e),i.noResume||fx(i),i.file&&i.sync?px(i):i.file?dx(i,r):gg(i)};var fx=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},hx=(t,e)=>{let r=new Map(e.map(s=>[zc(s),!0])),i=t.filter,n=(s,o)=>{let u=o||dg.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(dg.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(zc(s)):s=>n(zc(s))},px=t=>{let e=gg(t),r=t.file,i=!0,n;try{let s=ci.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(ci.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=ci.openSync(r,"r");u<s.size;){let c=ci.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{ci.closeSync(n)}catch{}}},dx=(t,e)=>{let r=new mg(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),ci.stat(n,(a,c)=>{if(a)u(a);else{let l=new lx.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},gg=t=>new mg(t)});var Cg=m((PB,Sg)=>{"use strict";var mx=Wr(),Ws=Rs(),Dg=ai(),yg=js(),Ag=require("path");Sg.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=mx(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?gx(i,e):i.file?Ex(i,e,r):i.sync?Dx(i,e):yx(i,e)};var gx=(t,e)=>{let r=new Ws.Sync(t),i=new Dg.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),_g(r,e)},Ex=(t,e,r)=>{let i=new Ws(t),n=new Dg.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return Yc(i,e),r?s.then(r,r):s},_g=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?yg({file:Ag.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Yc=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return yg({file:Ag.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Yc(t,e));t.add(r)}t.end()},Dx=(t,e)=>{let r=new Ws.Sync(t);return _g(r,e),r},yx=(t,e)=>{let r=new Ws(t);return Yc(r,e),r}});var Kc=m((LB,Tg)=>{"use strict";var Ax=Wr(),bg=Rs(),Be=require("fs"),wg=ai(),Fg=js(),xg=require("path"),vg=Jr();Tg.exports=(t,e,r)=>{let i=Ax(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?_x(i,e):Cx(i,e,r)};var _x=(t,e)=>{let r=new bg.Sync(t),i=!0,n,s;try{try{n=Be.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Be.openSync(t.file,"w+");else throw a}let o=Be.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=Be.readSync(n,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new vg(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,Sx(t,r,s,n,e)}finally{if(i)try{Be.closeSync(n)}catch{}}},Sx=(t,e,r,i,n)=>{let s=new wg.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),bx(e,n)},Cx=(t,e,r)=>{e=Array.from(e);let i=new bg(t),n=(o,u,a)=>{let c=(g,D)=>{g?Be.close(o,_=>a(g)):a(null,D)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),E=(g,D)=>{if(g)return c(g);if(f+=D,f<512&&D)return Be.read(o,h,f,h.length-f,l+f,E);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let _=new vg(h);if(!_.cksumValid)return c(null,l);let b=512*Math.ceil(_.size/512);if(l+b+512>u||(l+=b+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),f=0,Be.read(o,h,0,512,l,E)};Be.read(o,h,0,512,l,E)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",Be.open(t.file,a,c);if(l)return u(l);Be.fstat(f,(h,E)=>{if(h)return Be.close(f,()=>u(h));n(f,E.size,(g,D)=>{if(g)return u(g);let _=new wg.WriteStream(t.file,{fd:f,start:D});i.pipe(_),_.on("error",u),_.on("close",o),Rg(i,e)})})};Be.open(t.file,a,c)});return r?s.then(r,r):s},bx=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Fg({file:xg.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Rg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Fg({file:xg.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Rg(t,e));t.add(r)}t.end()}});var Bg=m((IB,Og)=>{"use strict";var wx=Wr(),Fx=Kc();Og.exports=(t,e,r)=>{let i=wx(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),xx(i),Fx(i,e,r)};var xx=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Ig=m((NB,Lg)=>{var{promisify:Pg}=require("util"),zt=require("fs"),vx=t=>{if(!t)t={mode:511,fs:zt};else if(typeof t=="object")t={mode:511,fs:zt,...t};else if(typeof t=="number")t={mode:t,fs:zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||zt.mkdir,t.mkdirAsync=Pg(t.mkdir),t.stat=t.stat||t.fs.stat||zt.stat,t.statAsync=Pg(t.stat),t.statSync=t.statSync||t.fs.statSync||zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||zt.mkdirSync,t};Lg.exports=vx});var kg=m((kB,Ng)=>{var Rx=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Tx,parse:Ox}=require("path"),Bx=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=Tx(t),Rx==="win32"){let e=/[*|"<>?:]/,{root:r}=Ox(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Ng.exports=Bx});var Ug=m((MB,$g)=>{var{dirname:Mg}=require("path"),qg=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?qg(t,Mg(e),e):void 0),Hg=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Hg(t,Mg(e),e):void 0}};$g.exports={findMade:qg,findMadeSync:Hg}});var Zc=m((qB,jg)=>{var{dirname:Gg}=require("path"),Vc=(t,e,r)=>{e.recursive=!1;let i=Gg(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return Vc(i,e).then(s=>Vc(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Xc=(t,e,r)=>{let i=Gg(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Xc(t,e,Xc(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};jg.exports={mkdirpManual:Vc,mkdirpManualSync:Xc}});var Yg=m((HB,zg)=>{var{dirname:Wg}=require("path"),{findMade:Px,findMadeSync:Lx}=Ug(),{mkdirpManual:Ix,mkdirpManualSync:Nx}=Zc(),kx=(t,e)=>(e.recursive=!0,Wg(t)===t?e.mkdirAsync(t,e):Px(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return Ix(t,e);throw n}))),Mx=(t,e)=>{if(e.recursive=!0,Wg(t)===t)return e.mkdirSync(t,e);let i=Lx(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return Nx(t,e);throw n}};zg.exports={mkdirpNative:kx,mkdirpNativeSync:Mx}});var Zg=m(($B,Xg)=>{var Kg=require("fs"),qx=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Jc=qx.replace(/^v/,"").split("."),Vg=+Jc[0]>10||+Jc[0]==10&&+Jc[1]>=12,Hx=Vg?t=>t.mkdir===Kg.mkdir:()=>!1,$x=Vg?t=>t.mkdirSync===Kg.mkdirSync:()=>!1;Xg.exports={useNative:Hx,useNativeSync:$x}});var iE=m((UB,rE)=>{var li=Ig(),fi=kg(),{mkdirpNative:Jg,mkdirpNativeSync:Qg}=Yg(),{mkdirpManual:eE,mkdirpManualSync:tE}=Zc(),{useNative:Ux,useNativeSync:Gx}=Zg(),hi=(t,e)=>(t=fi(t),e=li(e),Ux(e)?Jg(t,e):eE(t,e)),jx=(t,e)=>(t=fi(t),e=li(e),Gx(e)?Qg(t,e):tE(t,e));hi.sync=jx;hi.native=(t,e)=>Jg(fi(t),li(e));hi.manual=(t,e)=>eE(fi(t),li(e));hi.nativeSync=(t,e)=>Qg(fi(t),li(e));hi.manualSync=(t,e)=>tE(fi(t),li(e));rE.exports=hi});var lE=m((GB,cE)=>{"use strict";var qe=require("fs"),Er=require("path"),Wx=qe.lchown?"lchown":"chown",zx=qe.lchownSync?"lchownSync":"chownSync",sE=qe.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nE=(t,e,r)=>{try{return qe[zx](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Yx=(t,e,r)=>{try{return qe.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Kx=sE?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):qe.chown(t,e,r,i)}:(t,e,r,i)=>i,Qc=sE?(t,e,r)=>{try{return nE(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;Yx(t,e,r)}}:(t,e,r)=>nE(t,e,r),Vx=process.version,oE=(t,e,r)=>qe.readdir(t,e,r),Xx=(t,e)=>qe.readdirSync(t,e);/^v4\./.test(Vx)&&(oE=(t,e,r)=>qe.readdir(t,r));var zs=(t,e,r,i)=>{qe[Wx](t,e,r,Kx(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},uE=(t,e,r,i,n)=>{if(typeof e=="string")return qe.lstat(Er.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,uE(t,o,r,i,n)});if(e.isDirectory())el(Er.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Er.resolve(t,e.name);zs(o,r,i,n)});else{let s=Er.resolve(t,e.name);zs(s,r,i,n)}},el=(t,e,r,i)=>{oE(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return zs(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return zs(t,e,r,i)}};s.forEach(c=>uE(t,c,e,r,a))})},Zx=(t,e,r,i)=>{if(typeof e=="string")try{let n=qe.lstatSync(Er.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&aE(Er.resolve(t,e.name),r,i),Qc(Er.resolve(t,e.name),r,i)},aE=(t,e,r)=>{let i;try{i=Xx(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Qc(t,e,r);throw n}return i&&i.length&&i.forEach(n=>Zx(t,n,e,r)),Qc(t,e,r)};cE.exports=el;el.sync=aE});var dE=m((jB,tl)=>{"use strict";var fE=iE(),He=require("fs"),Ys=require("path"),hE=lE(),je=Xr(),Ks=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Xs=(t,e)=>t.get(je(e)),ji=(t,e,r)=>t.set(je(e),r),Jx=(t,e)=>{He.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vs(t,r&&r.code||"ENOTDIR")),e(r)})};tl.exports=(t,e,r)=>{t=je(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=je(e.cwd),E=(_,b)=>{_?r(_):(ji(f,t,!0),b&&a?hE(b,o,u,F=>E(F)):s?He.chmod(t,n,r):r())};if(f&&Xs(f,t)===!0)return E();if(t===h)return Jx(t,E);if(c)return fE(t,{mode:n}).then(_=>E(null,_),E);let D=je(Ys.relative(h,t)).split("/");Zs(h,D,n,f,l,h,null,E)};var Zs=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=je(Ys.resolve(t+"/"+a));if(Xs(i,c))return Zs(c,e,r,i,n,s,o,u);He.mkdir(c,r,pE(c,e,r,i,n,s,o,u))},pE=(t,e,r,i,n,s,o,u)=>a=>{a?He.lstat(t,(c,l)=>{if(c)c.path=c.path&&je(c.path),u(c);else if(l.isDirectory())Zs(t,e,r,i,n,s,o,u);else if(n)He.unlink(t,f=>{if(f)return u(f);He.mkdir(t,r,pE(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new Ks(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Zs(t,e,r,i,n,s,o,u))},Qx=t=>{let e=!1,r="ENOTDIR";try{e=He.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vs(t,r)}};tl.exports.sync=(t,e)=>{t=je(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,c=e.unlink,l=e.cache,f=je(e.cwd),h=_=>{ji(l,t,!0),_&&u&&hE.sync(_,s,o),n&&He.chmodSync(t,i)};if(l&&Xs(l,t)===!0)return h();if(t===f)return Qx(f),h();if(a)return h(fE.sync(t,i));let g=je(Ys.relative(f,t)).split("/"),D=null;for(let _=g.shift(),b=f;_&&(b+="/"+_);_=g.shift())if(b=je(Ys.resolve(b)),!Xs(l,b))try{He.mkdirSync(b,i),D=D||b,ji(l,b,!0)}catch{let M=He.lstatSync(b);if(M.isDirectory()){ji(l,b,!0);continue}else if(c){He.unlinkSync(b),He.mkdirSync(b,i),D=D||b,ji(l,b,!0);continue}else if(M.isSymbolicLink())return new Ks(b,b+"/"+g.join("/"))}return h(D)}});var il=m((WB,mE)=>{var rl=Object.create(null),{hasOwnProperty:ev}=Object.prototype;mE.exports=t=>(ev.call(rl,t)||(rl[t]=t.normalize("NFKD")),rl[t])});var yE=m((zB,DE)=>{var gE=require("assert"),tv=il(),rv=Qr(),{join:EE}=require("path"),iv=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,nv=iv==="win32";DE.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=EE(f[f.length-1],h)),f.push(h||"/"),f),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=n(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>u(c)),!0),u=c=>{if(!i.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(E=>{let g=t.get(E);gE.equal(g[0],c),g.length===1?t.delete(E):(g.shift(),typeof g[0]=="function"?h.add(g[0]):g[0].forEach(D=>h.add(D)))}),f.forEach(E=>{let g=t.get(E);gE(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(E):g[0].size===1?(g.shift(),h.add(g[0])):g[0].delete(c)}),i.delete(c),h.forEach(E=>o(E)),!0};return{check:s,reserve:(c,l)=>{c=nv?["win32 parallelization disabled"]:c.map(h=>tv(rv(EE(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,E)=>h.concat(E)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let E=t.get(h);E?E.push(l):t.set(h,[l])}),f.forEach(h=>{let E=t.get(h);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var SE=m((YB,_E)=>{var sv=process.env.__FAKE_PLATFORM__||process.platform,ov=sv==="win32",uv=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:av,O_TRUNC:cv,O_WRONLY:lv,UV_FS_O_FILEMAP:AE=0}=uv.constants,fv=ov&&!!AE,hv=512*1024,pv=AE|cv|av|lv;_E.exports=fv?t=>t<hv?pv:"w":()=>"w"});var hl=m((KB,NE)=>{"use strict";var dv=require("assert"),mv=Gs(),H=require("fs"),gv=ai(),Ft=require("path"),PE=dE(),CE=fc(),Ev=yE(),Dv=hc(),Pe=Xr(),yv=Qr(),Av=il(),bE=Symbol("onEntry"),ol=Symbol("checkFs"),wE=Symbol("checkFs2"),eo=Symbol("pruneCache"),ul=Symbol("isReusable"),$e=Symbol("makeFs"),al=Symbol("file"),cl=Symbol("directory"),to=Symbol("link"),FE=Symbol("symlink"),xE=Symbol("hardlink"),vE=Symbol("unsupported"),RE=Symbol("checkPath"),Yt=Symbol("mkdir"),De=Symbol("onError"),Js=Symbol("pending"),TE=Symbol("pend"),pi=Symbol("unpend"),nl=Symbol("ended"),sl=Symbol("maybeClose"),ll=Symbol("skip"),Wi=Symbol("doChown"),zi=Symbol("uid"),Yi=Symbol("gid"),Ki=Symbol("checkedCwd"),LE=require("crypto"),IE=SE(),_v=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Vi=_v==="win32",Sv=(t,e)=>{if(!Vi)return H.unlink(t,e);let r=t+".DELETE."+LE.randomBytes(16).toString("hex");H.rename(t,r,i=>{if(i)return e(i);H.unlink(r,e)})},Cv=t=>{if(!Vi)return H.unlinkSync(t);let e=t+".DELETE."+LE.randomBytes(16).toString("hex");H.renameSync(t,e),H.unlinkSync(e)},OE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,BE=t=>Av(yv(Pe(t))).toLowerCase(),bv=(t,e)=>{e=BE(e);for(let r of t.keys()){let i=BE(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},wv=t=>{for(let e of t.keys())t.delete(e)},Xi=class extends mv{constructor(e){if(e||(e={}),e.ondone=r=>{this[nl]=!0,this[sl]()},super(e),this[Ki]=!1,this.reservations=Ev(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Js]=0,this[nl]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Vi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Pe(Ft.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[bE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[sl](){this[nl]&&this[Js]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[RE](e){if(this.strip){let r=Pe(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Pe(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Pe(e.path),i=r.split("/");if(i.includes("..")||Vi&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=Dv(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ft.isAbsolute(e.path)?e.absolute=Pe(Ft.resolve(e.path)):e.absolute=Pe(Ft.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Pe(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Ft.win32.parse(e.absolute);e.absolute=r+CE.encode(e.absolute.slice(r.length));let{root:i}=Ft.win32.parse(e.path);e.path=i+CE.encode(e.path.slice(i.length))}return!0}[bE](e){if(!this[RE](e))return e.resume();switch(dv.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[ol](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[vE](e)}}[De](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[pi](),r.resume())}[Yt](e,r,i){PE(Pe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Wi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[zi](e){return OE(this.uid,e.uid,this.processUid)}[Yi](e){return OE(this.gid,e.gid,this.processGid)}[al](e,r){let i=e.mode&4095||this.fmode,n=new gv.WriteStream(e.absolute,{flags:IE(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&H.close(n.fd,()=>{}),n.write=()=>!0,this[De](a,e),r()});let s=1,o=a=>{if(a){n.fd&&H.close(n.fd,()=>{}),this[De](a,e),r();return}--s===0&&H.close(n.fd,c=>{c?this[De](c,e):this[pi](),r()})};n.on("finish",a=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;H.futimes(l,f,h,E=>E?H.utimes(c,f,h,g=>o(g&&E)):o())}if(this[Wi](e)){s++;let f=this[zi](e),h=this[Yi](e);H.fchown(l,f,h,E=>E?H.chown(c,f,h,g=>o(g&&E)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[De](a,e),r()}),e.pipe(u)),u.pipe(n)}[cl](e,r){let i=e.mode&4095||this.dmode;this[Yt](e.absolute,i,n=>{if(n){this[De](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[pi](),e.resume())};e.mtime&&!this.noMtime&&(s++,H.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Wi](e)&&(s++,H.chown(e.absolute,this[zi](e),this[Yi](e),o)),o()})}[vE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[FE](e,r){this[to](e,e.linkpath,"symlink",r)}[xE](e,r){let i=Pe(Ft.resolve(this.cwd,e.linkpath));this[to](e,i,"link",r)}[TE](){this[Js]++}[pi](){this[Js]--,this[sl]()}[ll](e){this[pi](),e.resume()}[ul](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Vi}[ol](e){this[TE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[wE](e,i))}[eo](e){e.type==="SymbolicLink"?wv(this.dirCache):e.type!=="Directory"&&bv(this.dirCache,e.absolute)}[wE](e,r){this[eo](e);let i=u=>{this[eo](e),r(u)},n=()=>{this[Yt](this.cwd,this.dmode,u=>{if(u){this[De](u,e),i();return}this[Ki]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=Pe(Ft.dirname(e.absolute));if(u!==this.cwd)return this[Yt](u,this.dmode,a=>{if(a){this[De](a,e),i();return}o()})}o()},o=()=>{H.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[ll](e),i();return}if(u||this[ul](e,a))return this[$e](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[$e](f,e,i);return c?H.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return H.rmdir(e.absolute,c=>this[$e](c,e,i))}if(e.absolute===this.cwd)return this[$e](null,e,i);Sv(e.absolute,c=>this[$e](c,e,i))})};this[Ki]?s():n()}[$e](e,r,i){if(e){this[De](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[al](r,i);case"Link":return this[xE](r,i);case"SymbolicLink":return this[FE](r,i);case"Directory":case"GNUDumpDir":return this[cl](r,i)}}[to](e,r,i,n){H[i](r,e.absolute,s=>{s?this[De](s,e):(this[pi](),e.resume()),n()})}},Qs=t=>{try{return[null,t()]}catch(e){return[e,null]}},fl=class extends Xi{[$e](e,r){return super[$e](e,r,()=>{})}[ol](e){if(this[eo](e),!this[Ki]){let s=this[Yt](this.cwd,this.dmode);if(s)return this[De](s,e);this[Ki]=!0}if(e.absolute!==this.cwd){let s=Pe(Ft.dirname(e.absolute));if(s!==this.cwd){let o=this[Yt](s,this.dmode);if(o)return this[De](o,e)}}let[r,i]=Qs(()=>H.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[ll](e);if(r||this[ul](e,i))return this[$e](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qs(()=>{H.chmodSync(e.absolute,e.mode)}):[];return this[$e](u,e)}let[s]=Qs(()=>H.rmdirSync(e.absolute));this[$e](s,e)}let[n]=e.absolute===this.cwd?[]:Qs(()=>Cv(e.absolute));this[$e](n,e)}[al](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{H.closeSync(s)}catch(c){a=c}(u||a)&&this[De](u||a,e),r()},s;try{s=H.openSync(e.absolute,IE(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[De](u,e)),e.pipe(o)),o.on("data",u=>{try{H.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{H.futimesSync(s,c,l)}catch(f){try{H.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[Wi](e)){let c=this[zi](e),l=this[Yi](e);try{H.fchownSync(s,c,l)}catch(f){try{H.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[cl](e,r){let i=e.mode&4095||this.dmode,n=this[Yt](e.absolute,i);if(n){this[De](n,e),r();return}if(e.mtime&&!this.noMtime)try{H.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Wi](e))try{H.chownSync(e.absolute,this[zi](e),this[Yi](e))}catch{}r(),e.resume()}[Yt](e,r){try{return PE.sync(Pe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[to](e,r,i,n){try{H[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[De](s,e)}}};Xi.Sync=fl;NE.exports=Xi});var $E=m((VB,HE)=>{"use strict";var Fv=Wr(),ro=hl(),ME=require("fs"),qE=ai(),kE=require("path"),pl=Qr();HE.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=Fv(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&xv(i,e),i.file&&i.sync?vv(i):i.file?Rv(i,r):i.sync?Tv(i):Ov(i)};var xv=(t,e)=>{let r=new Map(e.map(s=>[pl(s),!0])),i=t.filter,n=(s,o)=>{let u=o||kE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(kE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(pl(s)):s=>n(pl(s))},vv=t=>{let e=new ro.Sync(t),r=t.file,i=ME.statSync(r),n=t.maxReadSize||16*1024*1024;new qE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},Rv=(t,e)=>{let r=new ro(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),ME.stat(n,(a,c)=>{if(a)u(a);else{let l=new qE.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},Tv=t=>new ro.Sync(t),Ov=t=>new ro(t)});var UE=m(oe=>{"use strict";oe.c=oe.create=Cg();oe.r=oe.replace=Kc();oe.t=oe.list=js();oe.u=oe.update=Bg();oe.x=oe.extract=$E();oe.Pack=Rs();oe.Unpack=hl();oe.Parse=Gs();oe.ReadEntry=hs();oe.WriteEntry=Sc();oe.Header=Jr();oe.Pax=ds();oe.types=nc()});var KE=m((e2,YE)=>{function Ue(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}YE.exports=Ue;Ue.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ue.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ue.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ue.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ue.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ue.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ue.prototype.start=Ue.prototype.try;Ue.prototype.errors=function(){return this._errors};Ue.prototype.attempts=function(){return this._attempts};Ue.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var VE=m(Dr=>{var Iv=KE();Dr.operation=function(t){var e=Dr.timeouts(t);return new Iv(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Dr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Dr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Dr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(a){var c=Dr.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var ZE=m((r2,XE)=>{XE.exports=VE()});var QE=m((i2,JE)=>{var Nv=ZE();function kv(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Nv.operation(s);function u(l){n(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):n(o.mainError())}function c(l){var f;try{f=t(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(i).catch(function(E){a(E,l)})}o.attempt(c)}return new Promise(r)}JE.exports=kv});var Zv={};El(Zv,{default:()=>Xv,transformer:()=>iD});module.exports=lD(Zv);var gl=G(require("path")),Ji=require("fs-extra");var oo=G(require("chalk"));var hD=G(Cl());function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mi(t){return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(t)}function lo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fo(t,e){if(e&&(mi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lo(t)}function Xt(t){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xt(t)}function ct(t,e){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ct(t,e)}function ho(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ct(t,e)}function po(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yr(t,e,r){return mo()?yr=Reflect.construct.bind():yr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&ct(c,o.prototype),c},yr.apply(null,arguments)}function gi(t){var e=typeof Map=="function"?new Map:void 0;return gi=function(i){if(i===null||!po(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return yr(i,arguments,Xt(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ct(n,i)},gi(t)}var bl=G(require("find-up"));var pD=G(require("fs-extra")),TR=function(t){ho(e,t);function e(r){var i;return co(this,e),i=fo(this,Xt(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(gi(Error));var dD=G(require("fs")),mD=G(require("path"));var Vb=G(require("fs")),Xb=G(require("path"));function Hl(t){return typeof t=="undefined"||t===null}function DD(t){return typeof t=="object"&&t!==null}function yD(t){return Array.isArray(t)?t:Hl(t)?[]:[t]}function AD(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function _D(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function SD(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var CD=Hl,bD=DD,wD=yD,FD=_D,xD=SD,vD=AD,se={isNothing:CD,isObject:bD,toArray:wD,repeat:FD,isNegativeZero:xD,extend:vD};function $l(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
8
9
|
|
9
|
-
|
10
|
+
`+t.mark.snippet),i+" "+r):i}function Di(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=$l(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;Di.prototype.toString=function(e){return this.name+": "+$l(this,e)};var Ae=Di;function go(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Eo(t,e){return se.repeat(" ",e-t.length)+t}function RD(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var u="",a,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)c=go(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),f),u=se.repeat(" ",e.indent)+Eo((t.line-a+1).toString(),l)+" | "+c.str+`
|
11
|
+
`+u;for(c=go(t.buffer,i[o],n[o],t.position,f),u+=se.repeat(" ",e.indent)+Eo((t.line+1).toString(),l)+" | "+c.str+`
|
12
|
+
`,u+=se.repeat("-",e.indent+l+3+c.pos)+`^
|
13
|
+
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=go(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),f),u+=se.repeat(" ",e.indent)+Eo((t.line+a+1).toString(),l)+" | "+c.str+`
|
14
|
+
`;return u.replace(/\n$/,"")}var TD=RD,OD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],BD=["scalar","sequence","mapping"];function PD(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function LD(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(OD.indexOf(r)===-1)throw new Ae('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=PD(e.styleAliases||null),BD.indexOf(this.kind)===-1)throw new Ae('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var le=LD;function wl(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function ID(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function yo(t){return this.extend(t)}yo.prototype.extend=function(e){var r=[],i=[];if(e instanceof le)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Ae("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof le))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ae("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 Ae("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof le))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(yo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=wl(n,"implicit"),n.compiledExplicit=wl(n,"explicit"),n.compiledTypeMap=ID(n.compiledImplicit,n.compiledExplicit),n};var ND=yo,kD=new le("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),MD=new le("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),qD=new le("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),HD=new ND({explicit:[kD,MD,qD]});function $D(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function UD(){return null}function GD(t){return t===null}var jD=new le("tag:yaml.org,2002:null",{kind:"scalar",resolve:$D,construct:UD,predicate:GD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function WD(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function zD(t){return t==="true"||t==="True"||t==="TRUE"}function YD(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var KD=new le("tag:yaml.org,2002:bool",{kind:"scalar",resolve:WD,construct:zD,predicate:YD,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function VD(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function XD(t){return 48<=t&&t<=55}function ZD(t){return 48<=t&&t<=57}function JD(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!VD(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!XD(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!ZD(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function QD(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function ey(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!se.isNegativeZero(t)}var ty=new le("tag:yaml.org,2002:int",{kind:"scalar",resolve:JD,construct:QD,predicate:ey,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ry=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iy(t){return!(t===null||!ry.test(t)||t[t.length-1]==="_")}function ny(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var sy=/^[-+]?[0-9]+e/;function oy(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(se.isNegativeZero(t))return"-0.0";return r=t.toString(10),sy.test(r)?r.replace("e",".e"):r}function uy(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||se.isNegativeZero(t))}var ay=new le("tag:yaml.org,2002:float",{kind:"scalar",resolve:iy,construct:ny,predicate:uy,represent:oy,defaultStyle:"lowercase"}),cy=HD.extend({implicit:[jD,KD,ty,ay]}),ly=cy,Ul=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gl=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 fy(t){return t===null?!1:Ul.exec(t)!==null||Gl.exec(t)!==null}function hy(t){var e,r,i,n,s,o,u,a=0,c=null,l,f,h;if(e=Ul.exec(t),e===null&&(e=Gl.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(l=+e[10],f=+(e[11]||0),c=(l*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,i,n,s,o,u,a)),c&&h.setTime(h.getTime()-c),h}function py(t){return t.toISOString()}var dy=new le("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fy,construct:hy,instanceOf:Date,represent:py});function my(t){return t==="<<"||t===null}var gy=new le("tag:yaml.org,2002:merge",{kind:"scalar",resolve:my}),bo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
15
|
+
\r`;function Ey(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=bo;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Dy(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=bo,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function yy(t){var e="",r=0,i,n,s=t.length,o=bo;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Ay(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var _y=new le("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ey,construct:Dy,predicate:Ay,represent:yy}),Sy=Object.prototype.hasOwnProperty,Cy=Object.prototype.toString;function by(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,Cy.call(n)!=="[object Object]")return!1;for(s in n)if(Sy.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function wy(t){return t!==null?t:[]}var Fy=new le("tag:yaml.org,2002:omap",{kind:"sequence",resolve:by,construct:wy}),xy=Object.prototype.toString;function vy(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],xy.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Ry(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Ty=new le("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:vy,construct:Ry}),Oy=Object.prototype.hasOwnProperty;function By(t){if(t===null)return!0;var e,r=t;for(e in r)if(Oy.call(r,e)&&r[e]!==null)return!1;return!0}function Py(t){return t!==null?t:{}}var Ly=new le("tag:yaml.org,2002:set",{kind:"mapping",resolve:By,construct:Py}),jl=ly.extend({implicit:[dy,gy],explicit:[_y,Fy,Ty,Ly]}),vt=Object.prototype.hasOwnProperty,sn=1,Wl=2,zl=3,on=4,Do=1,Iy=2,Fl=3,Ny=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ky=/[\x85\u2028\u2029]/,My=/[,\[\]\{\}]/,Yl=/^(?:!|!!|![a-z\-]+!)$/i,Kl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xl(t){return Object.prototype.toString.call(t)}function ze(t){return t===10||t===13}function Jt(t){return t===9||t===32}function _e(t){return t===9||t===32||t===10||t===13}function _r(t){return t===44||t===91||t===93||t===123||t===125}function qy(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Hy(t){return t===120?2:t===117?4:t===85?8:0}function $y(t){return 48<=t&&t<=57?t-48:-1}function vl(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
16
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Uy(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Vl=new Array(256),Xl=new Array(256);for(Zt=0;Zt<256;Zt++)Vl[Zt]=vl(Zt)?1:0,Xl[Zt]=vl(Zt);var Zt;function Gy(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||jl,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Zl(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=TD(r),new Ae(e,r)}function R(t,e){throw Zl(t,e)}function un(t,e){t.onWarning&&t.onWarning.call(null,Zl(t,e))}var Rl={YAML:function(e,r,i){var n,s,o;e.version!==null&&R(e,"duplication of %YAML directive"),i.length!==1&&R(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&R(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&R(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&un(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&R(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Yl.test(n)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),vt.call(e.tagMap,n)&&R(e,'there is a previously declared suffix for "'+n+'" tag handle'),Kl.test(s)||R(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{R(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function xt(t,e,r,i){var n,s,o,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||R(t,"expected valid JSON character");else Ny.test(u)&&R(t,"the stream contains non-printable characters");t.result+=u}}function Tl(t,e,r,i){var n,s,o,u;for(se.isObject(r)||R(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;o+=1)s=n[o],vt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Sr(t,e,r,i,n,s,o,u,a){var c,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,l=n.length;c<l;c+=1)Array.isArray(n[c])&&R(t,"nested arrays are not supported inside keys"),typeof n=="object"&&xl(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&xl(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)Tl(t,e,s[c],r);else Tl(t,e,s,r);else!t.json&&!vt.call(r,n)&&vt.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,R(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function wo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):R(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ie(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Jt(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(ze(n))for(wo(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&un(t,"deficient indentation"),i}function ln(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||_e(r)))}function Fo(t,e){e===1?t.result+=" ":e>1&&(t.result+=se.repeat(`
|
17
|
+
`,e-1))}function jy(t,e,r){var i,n,s,o,u,a,c,l,f=t.kind,h=t.result,E;if(E=t.input.charCodeAt(t.position),_e(E)||_r(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(n=t.input.charCodeAt(t.position+1),_e(n)||r&&_r(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;E!==0;){if(E===58){if(n=t.input.charCodeAt(t.position+1),_e(n)||r&&_r(n))break}else if(E===35){if(i=t.input.charCodeAt(t.position-1),_e(i))break}else{if(t.position===t.lineStart&&ln(t)||r&&_r(E))break;if(ze(E))if(a=t.line,c=t.lineStart,l=t.lineIndent,ie(t,!1,-1),t.lineIndent>=e){u=!0,E=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=c,t.lineIndent=l;break}}u&&(xt(t,s,o,!1),Fo(t,t.line-a),s=o=t.position,u=!1),Jt(E)||(o=t.position+1),E=t.input.charCodeAt(++t.position)}return xt(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Wy(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(xt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else ze(r)?(xt(t,i,n,!0),Fo(t,ie(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ln(t)?R(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);R(t,"unexpected end of the stream within a single quoted scalar")}function zy(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return xt(t,r,t.position,!0),t.position++,!0;if(u===92){if(xt(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),ze(u))ie(t,!1,e);else if(u<256&&Vl[u])t.result+=Xl[u],t.position++;else if((o=Hy(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=qy(u))>=0?s=(s<<4)+o:R(t,"expected hexadecimal character");t.result+=Uy(s),t.position++}else R(t,"unknown escape sequence");r=i=t.position}else ze(u)?(xt(t,r,i,!0),Fo(t,ie(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ln(t)?R(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}R(t,"unexpected end of the stream within a double quoted scalar")}function Yy(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,c,l,f,h,E,g=Object.create(null),D,_,b,F;if(F=t.input.charCodeAt(t.position),F===91)l=93,E=!1,u=[];else if(F===123)l=125,E=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),F=t.input.charCodeAt(++t.position);F!==0;){if(ie(t,!0,e),F=t.input.charCodeAt(t.position),F===l)return t.position++,t.tag=o,t.anchor=a,t.kind=E?"mapping":"sequence",t.result=u,!0;r?F===44&&R(t,"expected the node content, but found ','"):R(t,"missed comma between flow collection entries"),_=D=b=null,f=h=!1,F===63&&(c=t.input.charCodeAt(t.position+1),_e(c)&&(f=h=!0,t.position++,ie(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Cr(t,e,sn,!1,!0),_=t.tag,D=t.result,ie(t,!0,e),F=t.input.charCodeAt(t.position),(h||t.line===i)&&F===58&&(f=!0,F=t.input.charCodeAt(++t.position),ie(t,!0,e),Cr(t,e,sn,!1,!0),b=t.result),E?Sr(t,u,g,_,D,b,i,n,s):f?u.push(Sr(t,null,g,_,D,b,i,n,s)):u.push(D),ie(t,!0,e),F=t.input.charCodeAt(t.position),F===44?(r=!0,F=t.input.charCodeAt(++t.position)):r=!1}R(t,"unexpected end of the stream within a flow collection")}function Ky(t,e){var r,i,n=Do,s=!1,o=!1,u=e,a=0,c=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Do===n?n=f===43?Fl:Iy:R(t,"repeat of a chomping mode identifier");else if((l=$y(f))>=0)l===0?R(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?R(t,"repeat of an indentation width identifier"):(u=e+l-1,o=!0);else break;if(Jt(f)){do f=t.input.charCodeAt(++t.position);while(Jt(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ze(f)&&f!==0)}for(;f!==0;){for(wo(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),ze(f)){a++;continue}if(t.lineIndent<u){n===Fl?t.result+=se.repeat(`
|
18
|
+
`,s?1+a:a):n===Do&&s&&(t.result+=`
|
19
|
+
`);break}for(i?Jt(f)?(c=!0,t.result+=se.repeat(`
|
20
|
+
`,s?1+a:a)):c?(c=!1,t.result+=se.repeat(`
|
21
|
+
`,a+1)):a===0?s&&(t.result+=" "):t.result+=se.repeat(`
|
22
|
+
`,a):t.result+=se.repeat(`
|
23
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!ze(f)&&f!==0;)f=t.input.charCodeAt(++t.position);xt(t,r,t.position,!1)}return!0}function Ol(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,R(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!_e(o))));){if(u=!0,t.position++,ie(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,Cr(t,e,zl,!1,!0),s.push(t.result),ie(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)R(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Vy(t,e,r){var i,n,s,o,u,a,c=t.tag,l=t.anchor,f={},h=Object.create(null),E=null,g=null,D=null,_=!1,b=!1,F;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),F=t.input.charCodeAt(t.position);F!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,R(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(F===63||F===58)&&_e(i))F===63?(_&&(Sr(t,f,h,E,g,null,o,u,a),E=g=D=null),b=!0,_=!0,n=!0):_?(_=!1,n=!0):R(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,F=i;else{if(o=t.line,u=t.lineStart,a=t.position,!Cr(t,r,Wl,!1,!0))break;if(t.line===s){for(F=t.input.charCodeAt(t.position);Jt(F);)F=t.input.charCodeAt(++t.position);if(F===58)F=t.input.charCodeAt(++t.position),_e(F)||R(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Sr(t,f,h,E,g,null,o,u,a),E=g=D=null),b=!0,_=!1,n=!1,E=t.tag,g=t.result;else if(b)R(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(b)R(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,u=t.lineStart,a=t.position),Cr(t,e,on,!0,n)&&(_?g=t.result:D=t.result),_||(Sr(t,f,h,E,g,D,o,u,a),E=g=D=null),ie(t,!0,-1),F=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&F!==0)R(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&Sr(t,f,h,E,g,null,o,u,a),b&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=f),b}function Xy(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&R(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):R(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!_e(o);)o===33&&(i?R(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Yl.test(n)||R(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),My.test(s)&&R(t,"tag suffix cannot contain flow indicator characters")}s&&!Kl.test(s)&&R(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{R(t,"tag name is malformed: "+s)}return r?t.tag=s:vt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:R(t,'undeclared tag handle "'+n+'"'),!0}function Zy(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&R(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_e(r)&&!_r(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&R(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Jy(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_e(i)&&!_r(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&R(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),vt.call(t.anchorMap,r)||R(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ie(t,!0,-1),!0}function Cr(t,e,r,i,n){var s,o,u,a=1,c=!1,l=!1,f,h,E,g,D,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=on===r||zl===r,i&&ie(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;Xy(t)||Zy(t);)ie(t,!0,-1)?(c=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=c||n),(a===1||on===r)&&(sn===r||Wl===r?D=e:D=e+1,_=t.position-t.lineStart,a===1?u&&(Ol(t,_)||Vy(t,_,D))||Yy(t,D)?l=!0:(o&&Ky(t,D)||Wy(t,D)||zy(t,D)?l=!0:Jy(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&R(t,"alias node should not have any properties")):jy(t,D,sn===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(l=u&&Ol(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&R(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(g=t.implicitTypes[f],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(vt.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,E=t.typeMap.multi[t.kind||"fallback"],f=0,h=E.length;f<h;f+=1)if(t.tag.slice(0,E[f].tag.length)===E[f].tag){g=E[f];break}g||R(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&R(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):R(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function Qy(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(ie(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!_e(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&R(t,"directive name must not be less than one character in length");o!==0;){for(;Jt(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!ze(o));break}if(ze(o))break;for(r=t.position;o!==0&&!_e(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&wo(t),vt.call(Rl,i)?Rl[i](t,i,n):un(t,'unknown document directive "'+i+'"')}if(ie(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,ie(t,!0,-1)):s&&R(t,"directives end mark is expected"),Cr(t,t.lineIndent-1,on,!1,!0),ie(t,!0,-1),t.checkLineBreaks&&ky.test(t.input.slice(e,t.position))&&un(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ln(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ie(t,!0,-1));return}if(t.position<t.length-1)R(t,"end of the stream or a document separator is expected");else return}function Jl(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
24
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Gy(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,R(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Qy(r);return r.documents}function eA(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Jl(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function tA(t,e){var r=Jl(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ae("expected a single document in the stream, but found more")}}var rA=eA,iA=tA,Ql={loadAll:rA,load:iA},ef=Object.prototype.toString,tf=Object.prototype.hasOwnProperty,xo=65279,nA=9,yi=10,sA=13,oA=32,uA=33,aA=34,Ao=35,cA=37,lA=38,fA=39,hA=42,rf=44,pA=45,an=58,dA=61,mA=62,gA=63,EA=64,nf=91,sf=93,DA=96,of=123,yA=124,uf=125,fe={};fe[0]="\\0";fe[7]="\\a";fe[8]="\\b";fe[9]="\\t";fe[10]="\\n";fe[11]="\\v";fe[12]="\\f";fe[13]="\\r";fe[27]="\\e";fe[34]='\\"';fe[92]="\\\\";fe[133]="\\N";fe[160]="\\_";fe[8232]="\\L";fe[8233]="\\P";var AA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_A=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function SA(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&tf.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function CA(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Ae("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+se.repeat("0",i-e.length)+e}var bA=1,Ai=2;function wA(t){this.schema=t.schema||jl,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=se.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=SA(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Ai:bA,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Bl(t,e){for(var r=se.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
|
25
|
+
`,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
26
|
+
`&&(s+=r),s+=o;return s}function _o(t,e){return`
|
27
|
+
`+se.repeat(" ",t.indent*e)}function FA(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function cn(t){return t===oA||t===nA}function _i(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==xo||65536<=t&&t<=1114111}function Pl(t){return _i(t)&&t!==xo&&t!==sA&&t!==yi}function Ll(t,e,r){var i=Pl(t),n=i&&!cn(t);return(r?i:i&&t!==rf&&t!==nf&&t!==sf&&t!==of&&t!==uf)&&t!==Ao&&!(e===an&&!n)||Pl(e)&&!cn(e)&&t===Ao||e===an&&n}function xA(t){return _i(t)&&t!==xo&&!cn(t)&&t!==pA&&t!==gA&&t!==an&&t!==rf&&t!==nf&&t!==sf&&t!==of&&t!==uf&&t!==Ao&&t!==lA&&t!==hA&&t!==uA&&t!==yA&&t!==dA&&t!==mA&&t!==fA&&t!==aA&&t!==cA&&t!==EA&&t!==DA}function vA(t){return!cn(t)&&t!==an}function Ei(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function af(t){var e=/^\n* /;return e.test(t)}var cf=1,So=2,lf=3,ff=4,Ar=5;function RA(t,e,r,i,n,s,o,u){var a,c=0,l=null,f=!1,h=!1,E=i!==-1,g=-1,D=xA(Ei(t,0))&&vA(Ei(t,t.length-1));if(e||o)for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=Ei(t,a),!_i(c))return Ar;D=D&&Ll(c,l,u),l=c}else{for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=Ei(t,a),c===yi)f=!0,E&&(h=h||a-g-1>i&&t[g+1]!==" ",g=a);else if(!_i(c))return Ar;D=D&&Ll(c,l,u),l=c}h=h||E&&a-g-1>i&&t[g+1]!==" "}return!f&&!h?D&&!o&&!n(t)?cf:s===Ai?Ar:So:r>9&&af(t)?Ar:o?s===Ai?Ar:So:h?ff:lf}function TA(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===Ai?'""':"''";if(!t.noCompatMode&&(AA.indexOf(e)!==-1||_A.test(e)))return t.quotingType===Ai?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(c){return FA(t,c)}switch(RA(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case cf:return e;case So:return"'"+e.replace(/'/g,"''")+"'";case lf:return"|"+Il(e,t.indent)+Nl(Bl(e,s));case ff:return">"+Il(e,t.indent)+Nl(Bl(OA(e,o),s));case Ar:return'"'+BA(e)+'"';default:throw new Ae("impossible error: invalid scalar style")}}()}function Il(t,e){var r=af(t)?String(e):"",i=t[t.length-1]===`
|
28
|
+
`,n=i&&(t[t.length-2]===`
|
29
|
+
`||t===`
|
30
|
+
`),s=n?"+":i?"":"-";return r+s+`
|
31
|
+
`}function Nl(t){return t[t.length-1]===`
|
32
|
+
`?t.slice(0,-1):t}function OA(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
33
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,kl(t.slice(0,c),e)}(),n=t[0]===`
|
34
|
+
`||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
|
35
|
+
`:"")+kl(a,e),n=s}return i}function kl(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
|
36
|
+
`+t.slice(n,s),n=s+1),o=u;return a+=`
|
37
|
+
`,t.length-n>e&&o>n?a+=t.slice(n,o)+`
|
38
|
+
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function BA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=Ei(t,n),i=fe[r],!i&&_i(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||CA(r);return e}function PA(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(lt(t,e,u,!1,!1)||typeof u=="undefined"&<(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Ml(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(lt(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&<(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=_o(t,e)),t.dump&&yi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function LA(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,c,l;for(o=0,u=s.length;o<u;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),a=s[o],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),lt(t,e,a,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),lt(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function IA(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,c,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ae("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)h="",(!i||n!=="")&&(h+=_o(t,e)),c=o[u],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),lt(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&yi===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=_o(t,e)),lt(t,e+1,l,!0,f)&&(t.dump&&yi===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function ql(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,ef.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(tf.call(u.represent,a))i=u.represent[a](e,a);else throw new Ae("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function lt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,ql(t,r,!1)||ql(t,r,!0);var u=ef.call(t.dump),a=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=u==="[object Object]"||u==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(IA(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(LA(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Ml(t,e-1,t.dump,n):Ml(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(PA(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&TA(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ae("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function NA(t,e){var r=[],i=[],n,s;for(Co(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Co(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Co(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Co(t[i[n]],e,r)}function kA(t,e){e=e||{};var r=new wA(e);r.noRefs||NA(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),lt(r,0,i,!0,!0)?r.dump+`
|
39
|
+
`:""}var MA=kA,qA={dump:MA};function vo(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var qR=Ql.load,HR=Ql.loadAll,$R=qA.dump;var UR=vo("safeLoad","load"),GR=vo("safeLoadAll","loadAll"),jR=vo("safeDump","dump");var Zb=G(Jp());var Ne={};El(Ne,{bold:()=>Wb,dimmed:()=>zb,error:()=>ud,info:()=>jb,item:()=>Yb,log:()=>Nr,turboBlue:()=>Lr,turboGradient:()=>Gb,turboLoader:()=>sd,turboRed:()=>id,warn:()=>od,yellow:()=>nd});var Ir=G(require("chalk")),Qp=G(require("ora")),ed=G(require("gradient-string")),td="#0099F7",rd="#F11712",Ub="#FFFF00",Gb=(0,ed.default)(td,rd),Lr=Ir.default.hex(td),id=Ir.default.hex(rd),nd=Ir.default.hex(Ub),sd=t=>(0,Qp.default)({text:t,spinner:{frames:[" ",Lr("> "),Lr(">> "),Lr(">>>")]}}),jb=(...t)=>{Nr(Lr.bold(">>>"),...t)},Wb=(...t)=>{Nr(Ir.default.bold(...t))},zb=(...t)=>{Nr(Ir.default.dim(...t))},Yb=(...t)=>{Nr(Lr.bold(" \u2022"),...t)},Nr=(...t)=>{console.log(...t)},od=(...t)=>{console.error(nd.bold(">>>"),...t)},ud=(...t)=>{console.error(id.bold(">>>"),...t)};var Ww=G(require("os")),zw=G(jm());var Yw=G(require("fs-extra"));var Kw=G(require("path")),Vw=G(require("fs-extra")),Xw=G(require("chalk"));var GE=require("stream"),jE=require("util"),Bv=require("path"),Pv=require("os"),WE=require("fs"),Lv=G(UE());var ZB=(0,jE.promisify)(GE.Stream.pipeline);var zE=require("fs-extra");var jv=G(require("path")),Wv=G(QE()),zv=G(require("chalk")),dl=require("fs-extra");var We=G(require("chalk")),di=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(We.default.green(" MODIFIED "),...e,this.dry?We.default.dim("(dry run)"):"")}unchanged(...e){this._log(We.default.gray(" UNCHANGED "),...e,this.dry?We.default.dim("(dry run)"):"")}skipped(...e){this._log(We.default.yellow(" SKIPPED "),...e,this.dry?We.default.dim("(dry run)"):"")}error(...e){this._log(We.default.red(" ERROR "),...e,this.dry?We.default.dim("(dry run)"):"")}info(...e){this._log(We.default.bold(" INFO "),...e,this.dry?We.default.dim("(dry run)"):"")}};var eD=G(require("os")),ml=G(require("path"));var io=G(require("chalk")),so=require("diff"),Kt=require("fs-extra"),no=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{ml.default.extname(e.filePath)===".json"?this.before=(0,Kt.readJsonSync)(e.filePath):this.before=(0,Kt.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,so.diffJson)(this.before,e.after):this.changes=(0,so.diffLines)(this.before,e.after):this.changes=[]}fileName(){return ml.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Kt.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Kt.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(io.default.green(r.value)):r.removed?process.stdout.write(io.default.red(r.value)):process.stdout.write(io.default.dim(r.value))}),Ne.log(eD.default.EOL)):Ne.log(this.after)}};var Zi=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new di(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new no({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(oo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(oo.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(oo.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(Ne.log(),r.length>0){Ne.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),Ne.log()}}};function tD({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new di(i),s=new Zi(i);return{log:n,runner:s}}var rD="create-turbo-config",Yv='Create the `turbo.json` file from an existing "turbo" key in `package.json`',Kv="1.1.0";function iD({root:t,options:e}){let{log:r,runner:i}=tD({transformer:rD,rootPath:t,options:e});r.info('Migrating "package.json" "turbo" key to "turbo.json" file...');let n=gl.default.join(t,"turbo.json"),s=gl.default.join(t,"package.json");if(!(0,Ji.existsSync)(s))return i.abortTransform({reason:`No package.json found at ${t}. Is the path correct?`});let o=(0,Ji.readJsonSync)(s),u=null;try{u=(0,Ji.readJsonSync)(n)}catch{u=null}let a=o,c=u;if(!u&&o.turbo){let{turbo:l,...f}=o;c=l,a=f}return i.modifyFile({filePath:n,after:c}),i.modifyFile({filePath:s,after:a}),i.finish()}var Vv={name:rD,description:Yv,introducedIn:Kv,transformer:iD},Xv=Vv;0&&(module.exports={transformer});
|
40
|
+
/*! Bundled license information:
|
10
41
|
|
11
|
-
|
12
|
-
`,finalEOL:u=!0,replacer:r=null,spaces:e}={}){let h=u?p:"";return JSON.stringify(i,r,e).replace(/\n/g,p)+h}function o(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}c.exports={stringify:n,stripBom:o}}),$s=N((t,c)=>{B();var n;try{n=wt()}catch{n=Z("fs")}var o=Nt(),{stringify:i,stripBom:p}=Qe();async function u(d,f={}){typeof f=="string"&&(f={encoding:f});let g=f.fs||n,b="throws"in f?f.throws:!0,_=await o.fromCallback(g.readFile)(d,f);_=p(_);let y;try{y=JSON.parse(_,f?f.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return y}var r=o.fromPromise(u);function e(d,f={}){typeof f=="string"&&(f={encoding:f});let g=f.fs||n,b="throws"in f?f.throws:!0;try{let _=g.readFileSync(d,f);return _=p(_),JSON.parse(_,f.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function h(d,f,g={}){let b=g.fs||n,_=i(f,g);await o.fromCallback(b.writeFile)(d,_,g)}var a=o.fromPromise(h);function l(d,f,g={}){let b=g.fs||n,_=i(f,g);return b.writeFileSync(d,_,g)}var s={readFile:r,readFileSync:e,writeFile:a,writeFileSync:l};c.exports=s}),Hs=N((t,c)=>{"use strict";B();var n=$s();c.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),tr=N((t,c)=>{"use strict";B();var n=Nt().fromCallback,o=wt(),i=Z("path"),p=Ht(),u=Qt().pathExists;function r(h,a,l,s){typeof l=="function"&&(s=l,l="utf8");let d=i.dirname(h);u(d,(f,g)=>{if(f)return s(f);if(g)return o.writeFile(h,a,l,s);p.mkdirs(d,b=>{if(b)return s(b);o.writeFile(h,a,l,s)})})}function e(h,...a){let l=i.dirname(h);if(o.existsSync(l))return o.writeFileSync(h,...a);p.mkdirsSync(l),o.writeFileSync(h,...a)}c.exports={outputFile:n(r),outputFileSync:e}}),Us=N((t,c)=>{"use strict";B();var{stringify:n}=Qe(),{outputFile:o}=tr();async function i(p,u,r={}){let e=n(u,r);await o(p,e,r)}c.exports=i}),qs=N((t,c)=>{"use strict";B();var{stringify:n}=Qe(),{outputFileSync:o}=tr();function i(p,u,r){let e=n(u,r);o(p,e,r)}c.exports=i}),Gs=N((t,c)=>{"use strict";B();var n=Nt().fromPromise,o=Hs();o.outputJson=n(Us()),o.outputJsonSync=qs(),o.outputJSON=o.outputJson,o.outputJSONSync=o.outputJsonSync,o.writeJSON=o.writeJson,o.writeJSONSync=o.writeJsonSync,o.readJSON=o.readJson,o.readJSONSync=o.readJsonSync,c.exports=o}),zs=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Xe().copy,p=Te().remove,u=Ht().mkdirp,r=Qt().pathExists,e=ie();function h(f,g,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let y=b.overwrite||b.clobber||!1;e.checkPaths(f,g,"move",b,(D,w)=>{if(D)return _(D);let{srcStat:v,isChangingCase:m=!1}=w;e.checkParentPaths(f,v,g,"move",E=>{if(E)return _(E);if(a(g))return l(f,g,y,m,_);u(o.dirname(g),S=>S?_(S):l(f,g,y,m,_))})})}function a(f){let g=o.dirname(f);return o.parse(g).root===g}function l(f,g,b,_,y){if(_)return s(f,g,b,y);if(b)return p(g,D=>D?y(D):s(f,g,b,y));r(g,(D,w)=>D?y(D):w?y(new Error("dest already exists.")):s(f,g,b,y))}function s(f,g,b,_){n.rename(f,g,y=>y?y.code!=="EXDEV"?_(y):d(f,g,b,_):_())}function d(f,g,b,_){i(f,g,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},y=>y?_(y):p(f,_))}c.exports=h}),Ws=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Xe().copySync,p=Te().removeSync,u=Ht().mkdirpSync,r=ie();function e(d,f,g){g=g||{};let b=g.overwrite||g.clobber||!1,{srcStat:_,isChangingCase:y=!1}=r.checkPathsSync(d,f,"move",g);return r.checkParentPathsSync(d,_,f,"move"),h(f)||u(o.dirname(f)),a(d,f,b,y)}function h(d){let f=o.dirname(d);return o.parse(f).root===f}function a(d,f,g,b){if(b)return l(d,f,g);if(g)return p(f),l(d,f,g);if(n.existsSync(f))throw new Error("dest already exists.");return l(d,f,g)}function l(d,f,g){try{n.renameSync(d,f)}catch(b){if(b.code!=="EXDEV")throw b;return s(d,f,g)}}function s(d,f,g){return i(d,f,{overwrite:g,errorOnExist:!0,preserveTimestamps:!0}),p(d)}c.exports=e}),Vs=N((t,c)=>{"use strict";B();var n=Nt().fromCallback;c.exports={move:n(zs()),moveSync:Ws()}}),Wt=N((t,c)=>{"use strict";B(),c.exports={...ne(),...Xe(),...Bs(),...Ms(),...Gs(),...Ht(),...Vs(),...tr(),...Qt(),...Te()}});B();var Cf=Ct(Wt());B();var Tf=Ct(Wt()),Bf=Ct(Xt());B();var pn=require("stream"),dn=require("util");var pe=N((t,c)=>{"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"]]);c.exports=o=>o?Object.keys(o).map(i=>[n.has(i)?n.get(i):i,o[i]]).reduce((i,p)=>(i[p[0]]=p[1],i),Object.create(null)):{}}),er=N((t,c)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},o=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),h=Symbol("emittingEnd"),a=Symbol("emittedError"),l=Symbol("closed"),s=Symbol("read"),d=Symbol("flush"),f=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"),F=Symbol("emitEnd2"),R=Symbol("async"),I=J=>Promise.resolve().then(J),$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",O=$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),q=$&&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,G,tt){this.src=J,this.dest=G,this.opts=tt,this.ondrain=()=>J[D](),G.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},k=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,G,tt){super(J,G,tt),this.proxyErrors=M=>G.emit("error",M),J.on("error",this.proxyErrors)}};c.exports=class Ur extends i{constructor(G){super(),this[_]=!1,this[y]=!1,this[v]=[],this[w]=[],this[A]=G&&G.objectMode||!1,this[A]?this[g]=null:this[g]=G&&G.encoding||null,this[g]==="buffer"&&(this[g]=null),this[R]=G&&!!G.async||!1,this[b]=this[g]?new p(this[g]):null,this[u]=!1,this[e]=!1,this[h]=!1,this[l]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[m]=0,this[x]=!1,G&&G.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[w]}),G&&G.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[g]}set encoding(G){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[g]&&G!==this[g]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[g]!==G&&(this[b]=G?new p(G):null,this[w].length&&(this[w]=this[w].map(tt=>this[b].write(tt)))),this[g]=G}setEncoding(G){this.encoding=G}get objectMode(){return this[A]}set objectMode(G){this[A]=this[A]||!!G}get async(){return this[R]}set async(G){this[R]=this[R]||!!G}write(G,tt,M){if(this[u])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 tt=="function"&&(M=tt,tt="utf8"),tt||(tt="utf8");let K=this[R]?I:et=>et();return!this[A]&&!Buffer.isBuffer(G)&&(P(G)?G=Buffer.from(G.buffer,G.byteOffset,G.byteLength):Q(G)?G=Buffer.from(G):typeof G!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[E](G),this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing):G.length?(typeof G=="string"&&!(tt===this[g]&&!this[b].lastNeed)&&(G=Buffer.from(G,tt)),Buffer.isBuffer(G)&&this[g]&&(G=this[b].write(G)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[E](G),this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing):(this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing)}read(G){if(this[x])return null;if(this[m]===0||G===0||G>this[m])return this[r](),null;this[A]&&(G=null),this[w].length>1&&!this[A]&&(this.encoding?this[w]=[this[w].join("")]:this[w]=[Buffer.concat(this[w],this[m])]);let tt=this[s](G||null,this[w][0]);return this[r](),tt}[s](G,tt){return G===tt.length||G===null?this[S]():(this[w][0]=tt.slice(G),tt=tt.slice(0,G),this[m]-=G),this.emit("data",tt),!this[w].length&&!this[u]&&this.emit("drain"),tt}end(G,tt,M){return typeof G=="function"&&(M=G,G=null),typeof tt=="function"&&(M=tt,tt="utf8"),G&&this.write(G,tt),M&&this.once("end",M),this[u]=!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[u]?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](G){this[A]?this[m]+=1:this[m]+=G.length,this[w].push(G)}[S](){return this[w].length&&(this[A]?this[m]-=1:this[m]-=this[w][0].length),this[w].shift()}[d](G){do;while(this[f](this[S]()));!G&&!this[w].length&&!this[u]&&this.emit("drain")}[f](G){return G?(this.emit("data",G),this.flowing):!1}pipe(G,tt){if(this[x])return;let M=this[e];return tt=tt||{},G===n.stdout||G===n.stderr?tt.end=!1:tt.end=tt.end!==!1,tt.proxyErrors=!!tt.proxyErrors,M?tt.end&&G.end():(this[v].push(tt.proxyErrors?new k(this,G,tt):new j(this,G,tt)),this[R]?I(()=>this[D]()):this[D]()),G}unpipe(G){let tt=this[v].find(M=>M.dest===G);tt&&(this[v].splice(this[v].indexOf(tt),1),tt.unpipe())}addListener(G,tt){return this.on(G,tt)}on(G,tt){let M=super.on(G,tt);return G==="data"&&!this[v].length&&!this.flowing?this[D]():G==="readable"&&this[m]!==0?super.emit("readable"):W(G)&&this[e]?(super.emit(G),this.removeAllListeners(G)):G==="error"&&this[a]&&(this[R]?I(()=>tt.call(this,this[a])):tt.call(this,this[a])),M}get emittedEnd(){return this[e]}[r](){!this[h]&&!this[e]&&!this[x]&&this[w].length===0&&this[u]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[l]&&this.emit("close"),this[h]=!1)}emit(G,tt,...M){if(G!=="error"&&G!=="close"&&G!==x&&this[x])return;if(G==="data")return tt?this[R]?I(()=>this[L](tt)):this[L](tt):!1;if(G==="end")return this[T]();if(G==="close"){if(this[l]=!0,!this[e]&&!this[x])return;let et=super.emit("close");return this.removeAllListeners("close"),et}else if(G==="error"){this[a]=tt;let et=super.emit("error",tt);return this[r](),et}else if(G==="resume"){let et=super.emit("resume");return this[r](),et}else if(G==="finish"||G==="prefinish"){let et=super.emit(G);return this.removeAllListeners(G),et}let K=super.emit(G,tt,...M);return this[r](),K}[L](G){for(let M of this[v])M.dest.write(G)===!1&&this.pause();let tt=super.emit("data",G);return this[r](),tt}[T](){this[e]||(this[e]=!0,this.readable=!1,this[R]?I(()=>this[F]()):this[F]())}[F](){if(this[b]){let tt=this[b].end();if(tt){for(let M of this[v])M.dest.write(tt);super.emit("data",tt)}}for(let tt of this[v])tt.end();let G=super.emit("end");return this.removeAllListeners("end"),G}collect(){let G=[];this[A]||(G.dataLength=0);let tt=this.promise();return this.on("data",M=>{G.push(M),this[A]||(G.dataLength+=M.length)}),tt.then(()=>G)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(G=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?G.join(""):Buffer.concat(G,G.dataLength))}promise(){return new Promise((G,tt)=>{this.on(x,()=>tt(new Error("stream destroyed"))),this.on("error",M=>tt(M)),this.on("end",()=>G())})}[O](){return{next:()=>{let G=this.read();if(G!==null)return Promise.resolve({done:!1,value:G});if(this[u])return Promise.resolve({done:!0});let tt=null,M=null,K=yt=>{this.removeListener("data",et),this.removeListener("end",st),M(yt)},et=yt=>{this.removeListener("error",K),this.removeListener("end",st),this.pause(),tt({value:yt,done:!!this[u]})},st=()=>{this.removeListener("error",K),this.removeListener("data",et),tt({done:!0})},lt=()=>K(new Error("stream destroyed"));return new Promise((yt,dt)=>{M=dt,tt=yt,this.once(x,lt),this.once("error",K),this.once("end",st),this.once("data",et)})}}}[q](){return{next:()=>{let G=this.read();return{value:G,done:G===null}}}}destroy(G){return this[x]?(G?this.emit("error",G):this.emit(x),this):(this[x]=!0,this[w].length=0,this[m]=0,typeof this.close=="function"&&!this[l]&&this.close(),G?this.emit("error",G):this.emit(x),this)}static isStream(G){return!!G&&(G instanceof Ur||G instanceof i||G instanceof o&&(typeof G.pipe=="function"||typeof G.write=="function"&&typeof G.end=="function"))}}}),Ks=N((t,c)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};c.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))}),qr=N((t,c)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},o=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),h=Symbol("emittingEnd"),a=Symbol("emittedError"),l=Symbol("closed"),s=Symbol("read"),d=Symbol("flush"),f=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"),F=j=>Promise.resolve().then(j),R=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=R&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=R&&Symbol.iterator||Symbol("iterator not implemented"),O=j=>j==="end"||j==="finish"||j==="prefinish",q=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,k,J){this.src=j,this.dest=k,this.opts=J,this.ondrain=()=>j[D](),k.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,k,J){super(j,k,J),this.proxyErrors=G=>k.emit("error",G),j.on("error",this.proxyErrors)}};c.exports=class Gr extends i{constructor(k){super(),this[_]=!1,this[y]=!1,this.pipes=[],this.buffer=[],this[E]=k&&k.objectMode||!1,this[E]?this[g]=null:this[g]=k&&k.encoding||null,this[g]==="buffer"&&(this[g]=null),this[T]=k&&!!k.async||!1,this[b]=this[g]?new p(this[g]):null,this[u]=!1,this[e]=!1,this[h]=!1,this[l]=!1,this[a]=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(k){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[g]&&k!==this[g]&&(this[b]&&this[b].lastNeed||this[w]))throw new Error("cannot change encoding");this[g]!==k&&(this[b]=k?new p(k):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[g]=k}setEncoding(k){this.encoding=k}get objectMode(){return this[E]}set objectMode(k){this[E]=this[E]||!!k}get async(){return this[T]}set async(k){this[T]=this[T]||!!k}write(k,J,G){if(this[u])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"&&(G=J,J="utf8"),J||(J="utf8");let tt=this[T]?F:M=>M();return!this[E]&&!Buffer.isBuffer(k)&&(W(k)?k=Buffer.from(k.buffer,k.byteOffset,k.byteLength):q(k)?k=Buffer.from(k):typeof k!="string"&&(this.objectMode=!0)),this[E]?(this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",k):this[v](k),this[w]!==0&&this.emit("readable"),G&&tt(G),this.flowing):k.length?(typeof k=="string"&&!(J===this[g]&&!this[b].lastNeed)&&(k=Buffer.from(k,J)),Buffer.isBuffer(k)&&this[g]&&(k=this[b].write(k)),this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",k):this[v](k),this[w]!==0&&this.emit("readable"),G&&tt(G),this.flowing):(this[w]!==0&&this.emit("readable"),G&&tt(G),this.flowing)}read(k){if(this[S])return null;if(this[w]===0||k===0||k>this[w])return this[r](),null;this[E]&&(k=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[s](k||null,this.buffer[0]);return this[r](),J}[s](k,J){return k===J.length||k===null?this[m]():(this.buffer[0]=J.slice(k),J=J.slice(0,k),this[w]-=k),this.emit("data",J),!this.buffer.length&&!this[u]&&this.emit("drain"),J}end(k,J,G){return typeof k=="function"&&(G=k,k=null),typeof J=="function"&&(G=J,J="utf8"),k&&this.write(k,J),G&&this.once("end",G),this[u]=!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[u]?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](k){this[E]?this[w]+=1:this[w]+=k.length,this.buffer.push(k)}[m](){return this.buffer.length&&(this[E]?this[w]-=1:this[w]-=this.buffer[0].length),this.buffer.shift()}[d](k){do;while(this[f](this[m]()));!k&&!this.buffer.length&&!this[u]&&this.emit("drain")}[f](k){return k?(this.emit("data",k),this.flowing):!1}pipe(k,J){if(this[S])return;let G=this[e];return J=J||{},k===n.stdout||k===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,G?J.end&&k.end():(this.pipes.push(J.proxyErrors?new P(this,k,J):new Q(this,k,J)),this[T]?F(()=>this[D]()):this[D]()),k}unpipe(k){let J=this.pipes.find(G=>G.dest===k);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(k,J){return this.on(k,J)}on(k,J){let G=super.on(k,J);return k==="data"&&!this.pipes.length&&!this.flowing?this[D]():k==="readable"&&this[w]!==0?super.emit("readable"):O(k)&&this[e]?(super.emit(k),this.removeAllListeners(k)):k==="error"&&this[a]&&(this[T]?F(()=>J.call(this,this[a])):J.call(this,this[a])),G}get emittedEnd(){return this[e]}[r](){!this[h]&&!this[e]&&!this[S]&&this.buffer.length===0&&this[u]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[l]&&this.emit("close"),this[h]=!1)}emit(k,J,...G){if(k!=="error"&&k!=="close"&&k!==S&&this[S])return;if(k==="data")return J?this[T]?F(()=>this[A](J)):this[A](J):!1;if(k==="end")return this[x]();if(k==="close"){if(this[l]=!0,!this[e]&&!this[S])return;let M=super.emit("close");return this.removeAllListeners("close"),M}else if(k==="error"){this[a]=J;let M=super.emit("error",J);return this[r](),M}else if(k==="resume"){let M=super.emit("resume");return this[r](),M}else if(k==="finish"||k==="prefinish"){let M=super.emit(k);return this.removeAllListeners(k),M}let tt=super.emit(k,J,...G);return this[r](),tt}[A](k){for(let G of this.pipes)G.dest.write(k)===!1&&this.pause();let J=super.emit("data",k);return this[r](),J}[x](){this[e]||(this[e]=!0,this.readable=!1,this[T]?F(()=>this[L]()):this[L]())}[L](){if(this[b]){let J=this[b].end();if(J){for(let G of this.pipes)G.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let k=super.emit("end");return this.removeAllListeners("end"),k}collect(){let k=[];this[E]||(k.dataLength=0);let J=this.promise();return this.on("data",G=>{k.push(G),this[E]||(k.dataLength+=G.length)}),J.then(()=>k)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(k=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?k.join(""):Buffer.concat(k,k.dataLength))}promise(){return new Promise((k,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",G=>J(G)),this.on("end",()=>k())})}[I](){return{next:()=>{let k=this.read();if(k!==null)return Promise.resolve({done:!1,value:k});if(this[u])return Promise.resolve({done:!0});let J=null,G=null,tt=st=>{this.removeListener("data",M),this.removeListener("end",K),G(st)},M=st=>{this.removeListener("error",tt),this.removeListener("end",K),this.pause(),J({value:st,done:!!this[u]})},K=()=>{this.removeListener("error",tt),this.removeListener("data",M),J({done:!0})},et=()=>tt(new Error("stream destroyed"));return new Promise((st,lt)=>{G=lt,J=st,this.once(S,et),this.once("error",tt),this.once("end",K),this.once("data",M)})}}}[$](){return{next:()=>{let k=this.read();return{value:k,done:k===null}}}}destroy(k){return this[S]?(k?this.emit("error",k):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[w]=0,typeof this.close=="function"&&!this[l]&&this.close(),k?this.emit("error",k):this.emit(S),this)}static isStream(k){return!!k&&(k instanceof Gr||k instanceof i||k instanceof o&&(typeof k.pipe=="function"||typeof k.write=="function"&&typeof k.end=="function"))}}}),zr=N(t=>{"use strict";B();var c=Z("assert"),n=Z("buffer").Buffer,o=Z("zlib"),i=t.constants=Ks(),p=qr(),u=n.concat,r=Symbol("_superWrite"),e=class extends Error{constructor(O){super("zlib: "+O.message),this.code=O.code,this.errno=O.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+O.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},h=Symbol("opts"),a=Symbol("flushFlag"),l=Symbol("finishFlushFlag"),s=Symbol("fullFlushFlag"),d=Symbol("handle"),f=Symbol("onError"),g=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),y=Symbol("ended"),D=Symbol("_defaultFullFlush"),w=class extends p{constructor(O,q){if(!O||typeof O!="object")throw new TypeError("invalid options for ZlibBase constructor");super(O),this[g]=!1,this[y]=!1,this[h]=O,this[a]=O.flush,this[l]=O.finishFlush;try{this[d]=new o[q](O)}catch(W){throw new e(W)}this[f]=W=>{this[g]||(this[g]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[f](new e(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[g])return c(this[d],"zlib binding closed"),this[d].reset()}flush(O){this.ended||(typeof O!="number"&&(O=this[s]),this.write(Object.assign(n.alloc(0),{[a]:O})))}end(O,q,W){return O&&this.write(O,q),this.flush(this[l]),this[y]=!0,super.end(null,null,W)}get ended(){return this[y]}write(O,q,W){if(typeof q=="function"&&(W=q,q="utf8"),typeof O=="string"&&(O=n.from(O,q)),this[g])return;c(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=G=>G;let k;try{let G=typeof O[a]=="number"?O[a]:this[a];k=this[d]._processChunk(O,G),n.concat=u}catch(G){n.concat=u,this[f](new e(G))}finally{this[d]&&(this[d]._handle=Q,Q.close=P,this[d].close=j,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",G=>this[f](new e(G)));let J;if(k)if(Array.isArray(k)&&k.length>0){J=this[r](n.from(k[0]));for(let G=1;G<k.length;G++)J=this[r](k[G])}else J=this[r](n.from(k));return W&&W(),J}[r](O){return super.write(O)}},v=class extends w{constructor(O,q){O=O||{},O.flush=O.flush||i.Z_NO_FLUSH,O.finishFlush=O.finishFlush||i.Z_FINISH,super(O,q),this[s]=i.Z_FULL_FLUSH,this[b]=O.level,this[_]=O.strategy}params(O,q){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]!==O||this[_]!==q){this.flush(i.Z_SYNC_FLUSH),c(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(Q,P)=>{this.flush(Q),P()};try{this[d].params(O,q)}finally{this[d].flush=W}this[d]&&(this[b]=O,this[_]=q)}}}},m=class extends v{constructor(O){super(O,"Deflate")}},E=class extends v{constructor(O){super(O,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(O){super(O,"Gzip"),this[S]=O&&!!O.portable}[r](O){return this[S]?(this[S]=!1,O[9]=255,super[r](O)):super[r](O)}},x=class extends v{constructor(O){super(O,"Gunzip")}},L=class extends v{constructor(O){super(O,"DeflateRaw")}},T=class extends v{constructor(O){super(O,"InflateRaw")}},F=class extends v{constructor(O){super(O,"Unzip")}},R=class extends w{constructor(O,q){O=O||{},O.flush=O.flush||i.BROTLI_OPERATION_PROCESS,O.finishFlush=O.finishFlush||i.BROTLI_OPERATION_FINISH,super(O,q),this[s]=i.BROTLI_OPERATION_FLUSH}},I=class extends R{constructor(O){super(O,"BrotliCompress")}},$=class extends R{constructor(O){super(O,"BrotliDecompress")}};t.Deflate=m,t.Inflate=E,t.Gzip=A,t.Gunzip=x,t.DeflateRaw=L,t.InflateRaw=T,t.Unzip=F,typeof o.BrotliCompress=="function"?(t.BrotliCompress=I,t.BrotliDecompress=$):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),de=N((t,c)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;c.exports=n!=="win32"?o=>o:o=>o&&o.replace(/\\/g,"/")}),rr=N((t,c)=>{"use strict";B();var n=er(),o=de(),i=Symbol("slurp");c.exports=class extends n{constructor(p,u,r){switch(super(),this.pause(),this.extended=u,this.globalExtended=r,this.header=p,this.startBlockSize=512*Math.ceil(p.size/512),this.blockRemain=this.startBlockSize,this.remain=p.size,this.type=p.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=o(p.path),this.mode=p.mode,this.mode&&(this.mode=this.mode&4095),this.uid=p.uid,this.gid=p.gid,this.uname=p.uname,this.gname=p.gname,this.size=p.size,this.mtime=p.mtime,this.atime=p.atime,this.ctime=p.ctime,this.linkpath=o(p.linkpath),this.uname=p.uname,this.gname=p.gname,u&&this[i](u),r&&this[i](r,!0)}write(p){let u=p.length;if(u>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,e=this.blockRemain;return this.remain=Math.max(0,r-u),this.blockRemain=Math.max(0,e-u),this.ignore?!0:r>=u?super.write(p):super.write(p.slice(0,r))}[i](p,u){for(let r in p)p[r]!==null&&p[r]!==void 0&&!(u&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?o(p[r]):p[r])}}}),Wr=N(t=>{"use strict";B(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(c=>[c[1],c[0]]))}),Ys=N((t,c)=>{"use strict";B();var n=(a,l)=>{if(Number.isSafeInteger(a))a<0?i(a,l):o(a,l);else throw Error("cannot encode number outside of javascript safe integer range");return l},o=(a,l)=>{l[0]=128;for(var s=l.length;s>1;s--)l[s-1]=a&255,a=Math.floor(a/256)},i=(a,l)=>{l[0]=255;var s=!1;a=a*-1;for(var d=l.length;d>1;d--){var f=a&255;a=Math.floor(a/256),s?l[d-1]=e(f):f===0?l[d-1]=0:(s=!0,l[d-1]=h(f))}},p=a=>{let l=a[0],s=l===128?r(a.slice(1,a.length)):l===255?u(a):null;if(s===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(s))throw Error("parsed number outside of javascript safe integer range");return s},u=a=>{for(var l=a.length,s=0,d=!1,f=l-1;f>-1;f--){var g=a[f],b;d?b=e(g):g===0?b=g:(d=!0,b=h(g)),b!==0&&(s-=b*Math.pow(256,l-f-1))}return s},r=a=>{for(var l=a.length,s=0,d=l-1;d>-1;d--){var f=a[d];f!==0&&(s+=f*Math.pow(256,l-d-1))}return s},e=a=>(255^a)&255,h=a=>(255^a)+1&255;c.exports={encode:n,parse:p}}),me=N((t,c)=>{"use strict";B();var n=Wr(),o=Z("path").posix,i=Ys(),p=Symbol("slurp"),u=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[u]="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=s(E,S+100,8),this.uid=s(E,S+108,8),this.gid=s(E,S+116,8),this.size=s(E,S+124,12),this.mtime=a(E,S+136,12),this.cksum=s(E,S+148,12),this[p](A),this[p](x,!0),this[u]=h(E,S+156,1),this[u]===""&&(this[u]="0"),this[u]==="0"&&this.path.slice(-1)==="/"&&(this[u]="5"),this[u]==="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=s(E,S+329,8),this.devmin=s(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=a(E,S+476,12),this.ctime=a(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)}[p](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=e(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[u].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 F=8*32;for(let R=S;R<S+148;R++)F+=E[R];for(let R=S+156;R<S+512;R++)F+=E[R];return this.cksum=F,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[u])||this[u]}get typeKey(){return this[u]}set type(E){n.code.has(E)?this[u]=n.code.get(E):this[u]=E}},e=(E,S)=>{let A=E,x="",L,T=o.parse(E).root||".";if(Buffer.byteLength(A)<100)L=[A,x,!1];else{x=o.dirname(A),A=o.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=o.join(o.basename(x),A),x=o.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.*/,""),a=(E,S,A)=>l(s(E,S,A)),l=E=>E===null?null:new Date(E*1e3),s=(E,S,A)=>E[S]&128?i.parse(E.slice(S,S+A)):f(E,S,A),d=E=>isNaN(E)?null:E,f=(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?(i.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);c.exports=r}),nr=N((t,c)=>{"use strict";B();var n=me(),o=Z("path"),i=class{constructor(e,h){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=h||!1}encode(){let e=this.encodeBody();if(e==="")return null;let h=Buffer.byteLength(e),a=512*Math.ceil(1+h/512),l=Buffer.allocUnsafe(a);for(let s=0;s<512;s++)l[s]=0;new n({path:("PaxHeader/"+o.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(l),l.write(e,512,h,"utf8");for(let s=h+512;s<l.length;s++)l[s]=0;return l}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let h=this[e]instanceof Date?this[e].getTime()/1e3:this[e],a=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+h+`
|
13
|
-
`,l=Buffer.byteLength(a),s=Math.floor(Math.log(l)/Math.log(10))+1;return l+s>=Math.pow(10,s)&&(s+=1),s+l+a}};i.parse=(e,h,a)=>new i(p(u(e),h),a);var p=(e,h)=>h?Object.keys(e).reduce((a,l)=>(a[l]=e[l],a),h):e,u=e=>e.replace(/\n$/,"").split(`
|
14
|
-
`).reduce(r,Object.create(null)),r=(e,h)=>{let a=parseInt(h,10);if(a!==Buffer.byteLength(h)+1)return e;h=h.slice((a+" ").length);let l=h.split("="),s=l.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return e;let d=l.join("=");return e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,e};c.exports=i}),ye=N((t,c)=>{B(),c.exports=n=>{let o=n.length-1,i=-1;for(;o>-1&&n.charAt(o)==="/";)i=o,o--;return i===-1?n:n.slice(0,i)}}),ir=N((t,c)=>{"use strict";B(),c.exports=n=>class extends n{warn(o,i,p={}){this.file&&(p.file=this.file),this.cwd&&(p.cwd=this.cwd),p.code=i instanceof Error&&i.code||o,p.tarCode=o,!this.strict&&p.recoverable!==!1?(i instanceof Error&&(p=Object.assign(i,p),i=i.message),this.emit("warn",p.tarCode,i,p)):i instanceof Error?this.emit("error",Object.assign(i,p)):this.emit("error",Object.assign(new Error(`${o}: ${i}`),p))}}}),Vr=N((t,c)=>{"use strict";B();var n=["|","<",">","?",":"],o=n.map(u=>String.fromCharCode(61440+u.charCodeAt(0))),i=new Map(n.map((u,r)=>[u,o[r]])),p=new Map(o.map((u,r)=>[u,n[r]]));c.exports={encode:u=>n.reduce((r,e)=>r.split(e).join(i.get(e)),u),decode:u=>o.reduce((r,e)=>r.split(e).join(p.get(e)),u)}}),Kr=N((t,c)=>{B();var{isAbsolute:n,parse:o}=Z("path").win32;c.exports=i=>{let p="",u=o(i);for(;n(i)||u.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":u.root;i=i.slice(r.length),p+=r,u=o(i)}return[p,i]}}),Js=N((t,c)=>{"use strict";B(),c.exports=(n,o,i)=>(n&=4095,i&&(n=(n|384)&-19),o&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),Yr=N((t,c)=>{"use strict";B();var n=er(),o=nr(),i=me(),p=Z("fs"),u=Z("path"),r=de(),e=ye(),h=(j,k)=>k?(j=r(j).replace(/^\.(\/|$)/,""),e(k)+"/"+j):r(j),a=16*1024*1024,l=Symbol("process"),s=Symbol("file"),d=Symbol("directory"),f=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"),F=Symbol("hadError"),R=ir(),I=Vr(),$=Kr(),O=Js(),q=R(class extends n{constructor(j,k){if(k=k||{},super(k),typeof j!="string")throw new TypeError("path is required");this.path=r(j),this.portable=!!k.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=k.maxReadSize||a,this.linkCache=k.linkCache||new Map,this.statCache=k.statCache||new Map,this.preservePaths=!!k.preservePaths,this.cwd=r(k.cwd||process.cwd()),this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.mtime=k.mtime||null,this.prefix=k.prefix?r(k.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 k.onwarn=="function"&&this.on("warn",k.onwarn);let J=!1;if(!this.preservePaths){let[G,tt]=$(this.path);G&&(this.path=tt,J=G)}this.win32=!!k.win32||process.platform==="win32",this.win32&&(this.path=I.decode(this.path.replace(/\\/g,"/")),j=j.replace(/\\/g,"/")),this.absolute=r(k.absolute||u.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,...k){return j==="error"&&(this[F]=!0),super.emit(j,...k)}[y](){p.lstat(this.absolute,(j,k)=>{if(j)return this.emit("error",j);this[D](k)})}[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[l]()}[l](){switch(this.type){case"File":return this[s]();case"Directory":return this[d]();case"SymbolicLink":return this[f]();default:return this.end()}}[A](j){return O(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 i({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 o({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()}[f](){p.readlink(this.absolute,(j,k)=>{if(j)return this.emit("error",j);this[v](k)})}[v](j){this.linkpath=r(j),this[b](),this.end()}[g](j){this.type="Link",this.linkpath=r(u.relative(this.cwd,j)),this.stat.size=0,this[b](),this.end()}[s](){if(this.stat.nlink>1){let j=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(j)){let k=this.linkCache.get(j);if(k.indexOf(this.cwd)===0)return this[g](k)}this.linkCache.set(j,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){p.open(this.absolute,"r",(j,k)=>{if(j)return this.emit("error",j);this[E](k)})}[E](j){if(this.fd=j,this[F])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let k=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(k),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:j,buf:k,offset:J,length:G,pos:tt}=this;p.read(j,k,J,G,tt,(M,K)=>{if(M)return this[S](()=>this.emit("error",M));this[w](K)})}[S](j){p.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 k=this.offset===0&&j===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+j);this.write(k)?this[L]():this[x](()=>this[L]())}[x](j){this.once("drain",j)}write(j){if(this.blockRemain<j.length){let k=new Error("writing more data than expected");return k.path=this.absolute,this.emit("error",k)}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 q{[y](){this[D](p.lstatSync(this.absolute))}[f](){this[v](p.readlinkSync(this.absolute))}[m](){this[E](p.openSync(this.absolute,"r"))}[_](){let j=!0;try{let{fd:k,buf:J,offset:G,length:tt,pos:M}=this,K=p.readSync(k,J,G,tt,M);this[w](K),j=!1}finally{if(j)try{this[S](()=>{})}catch{}}}[x](j){j()}[S](j){p.closeSync(this.fd),j()}},Q=R(class extends n{constructor(j,k){k=k||{},super(k),this.preservePaths=!!k.preservePaths,this.portable=!!k.portable,this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.readEntry=j,this.type=j.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=k.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:k.mtime||j.mtime,this.atime=this.portable?null:j.atime,this.ctime=this.portable?null:j.ctime,this.linkpath=r(j.linkpath),typeof k.onwarn=="function"&&this.on("warn",k.onwarn);let J=!1;if(!this.preservePaths){let[G,tt]=$(this.path);G&&(this.path=tt,J=G)}this.remain=j.size,this.blockRemain=j.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),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 o({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 O(j,this.type==="Directory",this.portable)}write(j){let k=j.length;if(k>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=k,super.write(j)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});q.Sync=W,q.Tar=Q;var P=j=>j.isFile()?"File":j.isDirectory()?"Directory":j.isSymbolicLink()?"SymbolicLink":"Unsupported";c.exports=q}),Zs=N((t,c)=>{"use strict";B(),c.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let o=this.head;o;o=o.next)yield o.value}}}),Jr=N((t,c)=>{"use strict";B(),c.exports=n,n.Node=u,n.create=n;function n(r){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(l){e.push(l)});else if(arguments.length>0)for(var h=0,a=arguments.length;h<a;h++)e.push(arguments[h]);return e}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,h=r.prev;return e&&(e.prev=h),h&&(h.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=h),r.list.length--,r.next=null,r.prev=null,r.list=null,e},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.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 e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)i(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)p(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,e){e=e||this;for(var h=this.head,a=0;h!==null;a++)r.call(e,h.value,a,this),h=h.next},n.prototype.forEachReverse=function(r,e){e=e||this;for(var h=this.tail,a=this.length-1;h!==null;a--)r.call(e,h.value,a,this),h=h.prev},n.prototype.get=function(r){for(var e=0,h=this.head;h!==null&&e<r;e++)h=h.next;if(e===r&&h!==null)return h.value},n.prototype.getReverse=function(r){for(var e=0,h=this.tail;h!==null&&e<r;e++)h=h.prev;if(e===r&&h!==null)return h.value},n.prototype.map=function(r,e){e=e||this;for(var h=new n,a=this.head;a!==null;)h.push(r.call(e,a.value,this)),a=a.next;return h},n.prototype.mapReverse=function(r,e){e=e||this;for(var h=new n,a=this.tail;a!==null;)h.push(r.call(e,a.value,this)),a=a.prev;return h},n.prototype.reduce=function(r,e){var h,a=this.head;if(arguments.length>1)h=e;else if(this.head)a=this.head.next,h=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;a!==null;l++)h=r(h,a.value,l),a=a.next;return h},n.prototype.reduceReverse=function(r,e){var h,a=this.tail;if(arguments.length>1)h=e;else if(this.tail)a=this.tail.prev,h=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;a!==null;l--)h=r(h,a.value,l),a=a.prev;return h},n.prototype.toArray=function(){for(var r=new Array(this.length),e=0,h=this.head;h!==null;e++)r[e]=h.value,h=h.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,h=this.tail;h!==null;e++)r[e]=h.value,h=h.prev;return r},n.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(e<r||e<0)return h;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=0,l=this.head;l!==null&&a<r;a++)l=l.next;for(;l!==null&&a<e;a++,l=l.next)h.push(l.value);return h},n.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var h=new n;if(e<r||e<0)return h;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=this.length,l=this.tail;l!==null&&a>e;a--)l=l.prev;for(;l!==null&&a>r;a--,l=l.prev)h.push(l.value);return h},n.prototype.splice=function(r,e,...h){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var a=0,l=this.head;l!==null&&a<r;a++)l=l.next;for(var s=[],a=0;l&&a<e;a++)s.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var a=0;a<h.length;a++)l=o(this,l,h[a]);return s},n.prototype.reverse=function(){for(var r=this.head,e=this.tail,h=r;h!==null;h=h.prev){var a=h.prev;h.prev=h.next,h.next=a}return this.head=e,this.tail=r,this};function o(r,e,h){var a=e===r.head?new u(h,null,e,r):new u(h,e,e.next,r);return a.next===null&&(r.tail=a),a.prev===null&&(r.head=a),r.length++,a}function i(r,e){r.tail=new u(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function p(r,e){r.head=new u(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function u(r,e,h,a){if(!(this instanceof u))return new u(r,e,h,a);this.list=a,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,h?(h.prev=this,this.next=h):this.next=null}try{Zs()(n)}catch{}}),sr=N((t,c)=>{"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}},o=er(),i=zr(),p=rr(),u=Yr(),r=u.Sync,e=u.Tar,h=Jr(),a=Buffer.alloc(1024),l=Symbol("onStat"),s=Symbol("ended"),d=Symbol("queue"),f=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"),F=Symbol("write"),R=Symbol("ondrain"),I=Z("fs"),$=Z("path"),O=ir(),q=de(),W=O(class extends o{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=q(P.prefix||""),this.linkCache=P.linkCache||new Map,this.statCache=P.statCache||new Map,this.readdirCache=P.readdirCache||new Map,this[T]=u,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 i.Gzip(P.gzip),this.zip.on("data",j=>super.write(j)),this.zip.on("end",j=>super.end()),this.zip.on("drain",j=>this[R]()),this.on("resume",j=>this.zip.resume())):this.on("drain",this[R]),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[s]=!1}[F](P){return super.write(P)}add(P){return this.write(P),this}end(P){return P&&this.write(P),this[s]=!0,this[g](),this}write(P){if(this[s])throw new Error("write after end");return P instanceof p?this[v](P):this[w](P),this.flowing}[v](P){let j=q($.resolve(this.cwd,P.path));if(!this.filter(P.path,P))P.resume();else{let k=new n(P.path,j,!1);k.entry=new e(P,this[L](k)),k.entry.on("end",J=>this[D](k)),this[y]+=1,this[d].push(k)}this[g]()}[w](P){let j=q($.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,(k,J)=>{P.pending=!1,this[y]-=1,k?this.emit("error",k):this[l](P,J)})}[l](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,k)=>{if(P.pending=!1,this[y]-=1,j)return this.emit("error",j);this[S](P,k)})}[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[s]&&!this[d].length&&this[y]===0&&(this.zip?this.zip.end(a):(super.write(a),super.end()))}}get[f](){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[f]&&!P.piped&&this[A](P);return}if(P.stat||(this.statCache.has(P.absolute)?this[l](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[f]&&!P.piped&&this[A](P)}}}[L](P){return{onwarn:(j,k,J)=>this.warn(j,k,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)}}[R](){this[f]&&this[f].entry&&this[f].entry.resume()}[A](P){P.piped=!0,P.readdir&&P.readdir.forEach(J=>{let G=P.path,tt=G==="./"?"":G.replace(/\/*$/,"/");this[w](tt+J)});let j=P.entry,k=this.zip;k?j.on("data",J=>{k.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[l](P,I[j](P.absolute))}[E](P,j){this[S](P,I.readdirSync(P.absolute))}[A](P){let j=P.entry,k=this.zip;P.readdir&&P.readdir.forEach(J=>{let G=P.path,tt=G==="./"?"":G.replace(/\/*$/,"/");this[w](tt+J)}),k?j.on("data",J=>{k.write(J)}):j.on("data",J=>{super[F](J)})}};W.Sync=Q,c.exports=W}),ge=N(t=>{"use strict";B();var c=qr(),n=Z("events").EventEmitter,o=Z("fs"),i=o.writev;if(!i){let P=process.binding("fs"),j=P.FSReqWrap||P.FSReqCallback;i=(k,J,G,tt)=>{let M=(et,st)=>tt(et,st,J),K=new j;K.oncomplete=M,P.writeBuffers(k,J,G,K)}}var p=Symbol("_autoClose"),u=Symbol("_close"),r=Symbol("_ended"),e=Symbol("_fd"),h=Symbol("_finished"),a=Symbol("_flags"),l=Symbol("_flush"),s=Symbol("_handleChunk"),d=Symbol("_makeBuf"),f=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"),F=Symbol("_write"),R=Symbol("_writing"),I=Symbol("_defaultFlag"),$=Symbol("_errored"),O=class extends c{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[e]=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[p]=typeof j.autoClose=="boolean"?j.autoClose:!0,typeof this[e]=="number"?this[S]():this[w]()}get fd(){return this[e]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){o.open(this[v],"r",(P,j)=>this[_](P,j))}[_](P,j){P?this[b](P):(this[e]=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));o.read(this[e],P,0,P.length,null,(j,k,J)=>this[y](j,k,J))}}[y](P,j,k){this[x]=!1,P?this[b](P):this[s](j,k)&&this[S]()}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,o.close(P,j=>j?this.emit("error",j):this.emit("close"))}}[b](P){this[x]=!0,this[u](),this.emit("error",P)}[s](P,j){let k=!1;return this[L]-=P,P>0&&(k=super.write(P<j.length?j.slice(0,P):j)),(P===0||this[L]<=0)&&(k=!1,this[u](),super.end()),k}emit(P,j){switch(P){case"prefinish":case"finish":break;case"drain":typeof this[e]=="number"&&this[S]();break;case"error":return this[$]?void 0:(this[$]=!0,super.emit(P,j));default:return super.emit(P,j)}}},q=class extends O{[w](){let P=!0;try{this[_](null,o.openSync(this[v],"r")),P=!1}finally{P&&this[u]()}}[S](){let P=!0;try{if(!this[x]){this[x]=!0;do{let j=this[d](),k=j.length===0?0:o.readSync(this[e],j,0,j.length,null);if(!this[s](k,j))break}while(!0);this[x]=!1}P=!1}finally{P&&this[u]()}}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,o.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[R]=!1,this[r]=!1,this[g]=!1,this[E]=[],this[v]=P,this[e]=typeof j.fd=="number"?j.fd:null,this[f]=j.mode===void 0?438:j.mode,this[m]=typeof j.start=="number"?j.start:null,this[p]=typeof j.autoClose=="boolean"?j.autoClose:!0;let k=this[m]!==null?"r+":"w";this[I]=j.flags===void 0,this[a]=this[I]?k:j.flags,this[e]===null&&this[w]()}emit(P,j){if(P==="error"){if(this[$])return;this[$]=!0}return super.emit(P,j)}get fd(){return this[e]}get path(){return this[v]}[b](P){this[u](),this[R]=!0,this.emit("error",P)}[w](){o.open(this[v],this[a],this[f],(P,j)=>this[_](P,j))}[_](P,j){this[I]&&this[a]==="r+"&&P&&P.code==="ENOENT"?(this[a]="w",this[w]()):P?this[b](P):(this[e]=j,this.emit("open",j),this[l]())}end(P,j){return P&&this.write(P,j),this[r]=!0,!this[R]&&!this[E].length&&typeof this[e]=="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[e]===null||this[R]||this[E].length?(this[E].push(P),this[g]=!0,!1):(this[R]=!0,this[F](P),!0)}[F](P){o.write(this[e],P,0,P.length,this[m],(j,k)=>this[D](j,k))}[D](P,j){P?this[b](P):(this[m]!==null&&(this[m]+=j),this[E].length?this[l]():(this[R]=!1,this[r]&&!this[h]?(this[h]=!0,this[u](),this.emit("finish")):this[g]&&(this[g]=!1,this.emit("drain"))))}[l](){if(this[E].length===0)this[r]&&this[D](null,0);else if(this[E].length===1)this[F](this[E].pop());else{let P=this[E];this[E]=[],i(this[e],P,this[m],(j,k)=>this[D](j,k))}}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,o.close(P,j=>j?this.emit("error",j):this.emit("close"))}}},Q=class extends W{[w](){let P;if(this[I]&&this[a]==="r+")try{P=o.openSync(this[v],this[a],this[f])}catch(j){if(j.code==="ENOENT")return this[a]="w",this[w]();throw j}else P=o.openSync(this[v],this[a],this[f]);this[_](null,P)}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,o.closeSync(P),this.emit("close")}}[F](P){let j=!0;try{this[D](null,o.writeSync(this[e],P,0,P.length,this[m])),j=!1}finally{if(j)try{this[u]()}catch{}}}};t.ReadStream=O,t.ReadStreamSync=q,t.WriteStream=W,t.WriteStreamSync=Q}),or=N((t,c)=>{"use strict";B();var n=ir(),o=me(),i=Z("events"),p=Jr(),u=1024*1024,r=rr(),e=nr(),h=zr(),{nextTick:a}=Z("process"),l=Buffer.from([31,139]),s=Symbol("state"),d=Symbol("writeEntry"),f=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"),F=Symbol("consumeBody"),R=Symbol("consumeMeta"),I=Symbol("consumeHeader"),$=Symbol("consuming"),O=Symbol("bufferConcat"),q=Symbol("maybeEnd"),W=Symbol("writing"),Q=Symbol("aborted"),P=Symbol("onDone"),j=Symbol("sawValidEntry"),k=Symbol("sawNullBlock"),J=Symbol("sawEOF"),G=Symbol("closeStream"),tt=M=>!0;c.exports=n(class extends i{constructor(M){M=M||{},super(M),this.file=M.file||"",this[j]=null,this.on(P,K=>{(this[s]==="begin"||this[j]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),M.ondone?this.on(P,M.ondone):this.on(P,K=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!M.strict,this.maxMetaEntrySize=M.maxMetaEntrySize||u,this.filter=typeof M.filter=="function"?M.filter:tt,this.writable=!0,this.readable=!1,this[m]=new p,this[v]=null,this[f]=null,this[d]=null,this[s]="begin",this[D]="",this[_]=null,this[y]=null,this[E]=!1,this[x]=null,this[Q]=!1,this[k]=!1,this[J]=!1,this.on("end",()=>this[G]()),typeof M.onwarn=="function"&&this.on("warn",M.onwarn),typeof M.onentry=="function"&&this.on("entry",M.onentry)}[I](M,K){this[j]===null&&(this[j]=!1);let et;try{et=new o(M,K,this[_],this[y])}catch(st){return this.warn("TAR_ENTRY_INVALID",st)}if(et.nullBlock)this[k]?(this[J]=!0,this[s]==="begin"&&(this[s]="header"),this[A]("eof")):(this[k]=!0,this[A]("nullBlock"));else if(this[k]=!1,!et.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:et});else if(!et.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:et});else{let st=et.type;if(/^(Symbolic)?Link$/.test(st)&&!et.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:et});else if(!/^(Symbolic)?Link$/.test(st)&&et.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:et});else{let lt=this[d]=new r(et,this[_],this[y]);if(!this[j])if(lt.remain){let yt=()=>{lt.invalid||(this[j]=!0)};lt.on("end",yt)}else this[j]=!0;lt.meta?lt.size>this.maxMetaEntrySize?(lt.ignore=!0,this[A]("ignoredEntry",lt),this[s]="ignore",lt.resume()):lt.size>0&&(this[D]="",lt.on("data",yt=>this[D]+=yt),this[s]="meta"):(this[_]=null,lt.ignore=lt.ignore||!this.filter(lt.path,lt),lt.ignore?(this[A]("ignoredEntry",lt),this[s]=lt.remain?"ignore":"header",lt.resume()):(lt.remain?this[s]="body":(this[s]="header",lt.end()),this[f]?this[m].push(lt):(this[m].push(lt),this[g]())))}}}[G](){a(()=>this.emit("close"))}[b](M){let K=!0;return M?Array.isArray(M)?this.emit.apply(this,M):(this[f]=M,this.emit("entry",M),M.emittedEnd||(M.on("end",et=>this[g]()),K=!1)):(this[f]=null,K=!1),K}[g](){do;while(this[b](this[m].shift()));if(!this[m].length){let M=this[f];!M||M.flowing||M.size===M.remain?this[W]||this.emit("drain"):M.once("drain",K=>this.emit("drain"))}}[F](M,K){let et=this[d],st=et.blockRemain,lt=st>=M.length&&K===0?M:M.slice(K,K+st);return et.write(lt),et.blockRemain||(this[s]="header",this[d]=null,et.end()),lt.length}[R](M,K){let et=this[d],st=this[F](M,K);return this[d]||this[w](et),st}[A](M,K,et){!this[m].length&&!this[f]?this.emit(M,K,et):this[m].push([M,K,et])}[w](M){switch(this[A]("meta",this[D]),M.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=e.parse(this[D],this[_],!1);break;case"GlobalExtendedHeader":this[y]=e.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: "+M.type)}}abort(M){this[Q]=!0,this.emit("abort",M),this.warn("TAR_ABORT",M,{recoverable:!1})}write(M){if(this[Q])return;if(this[x]===null&&M){if(this[v]&&(M=Buffer.concat([this[v],M]),this[v]=null),M.length<l.length)return this[v]=M,!0;for(let et=0;this[x]===null&&et<l.length;et++)M[et]!==l[et]&&(this[x]=!1);if(this[x]===null){let et=this[E];this[E]=!1,this[x]=new h.Unzip,this[x].on("data",lt=>this[L](lt)),this[x].on("error",lt=>this.abort(lt)),this[x].on("end",lt=>{this[E]=!0,this[L]()}),this[W]=!0;let st=this[x][et?"end":"write"](M);return this[W]=!1,st}}this[W]=!0,this[x]?this[x].write(M):this[L](M),this[W]=!1;let K=this[m].length?!1:this[f]?this[f].flowing:!0;return!K&&!this[m].length&&this[f].once("drain",et=>this.emit("drain")),K}[O](M){M&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],M]):M)}[q](){if(this[E]&&!this[S]&&!this[Q]&&!this[$]){this[S]=!0;let M=this[d];if(M&&M.blockRemain){let K=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${M.blockRemain} more bytes, only ${K} available)`,{entry:M}),this[v]&&M.write(this[v]),M.end()}this[A](P)}}[L](M){if(this[$])this[O](M);else if(!M&&!this[v])this[q]();else{if(this[$]=!0,this[v]){this[O](M);let K=this[v];this[v]=null,this[T](K)}else this[T](M);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[q]()}[T](M){let K=0,et=M.length;for(;K+512<=et&&!this[Q]&&!this[J];)switch(this[s]){case"begin":case"header":this[I](M,K),K+=512;break;case"ignore":case"body":K+=this[F](M,K);break;case"meta":K+=this[R](M,K);break;default:throw new Error("invalid state: "+this[s])}K<et&&(this[v]?this[v]=Buffer.concat([M.slice(K),this[v]]):this[v]=M.slice(K))}end(M){this[Q]||(this[x]?this[x].end(M):(this[E]=!0,this.write(M)))}})}),ur=N((t,c)=>{"use strict";B();var n=pe(),o=or(),i=Z("fs"),p=ge(),u=Z("path"),r=ye();c.exports=(d,f,g)=>{typeof d=="function"?(g=d,f=null,d={}):Array.isArray(d)&&(f=d,d={}),typeof f=="function"&&(g=f,f=null),f?f=Array.from(f):f=[];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 f.length&&h(b,f),b.noResume||e(b),b.file&&b.sync?a(b):b.file?l(b,g):s(b)};var e=d=>{let f=d.onentry;d.onentry=f?g=>{f(g),g.resume()}:g=>g.resume()},h=(d,f)=>{let g=new Map(f.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||u.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(u.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&_(r(y)):y=>_(r(y))},a=d=>{let f=s(d),g=d.file,b=!0,_;try{let y=i.statSync(g),D=d.maxReadSize||16*1024*1024;if(y.size<D)f.end(i.readFileSync(g));else{let w=0,v=Buffer.allocUnsafe(D);for(_=i.openSync(g,"r");w<y.size;){let m=i.readSync(_,v,0,D,w);w+=m,f.write(v.slice(0,m))}f.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},l=(d,f)=>{let g=new o(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("end",D),i.stat(_,(v,m)=>{if(v)w(v);else{let E=new p.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return f?y.then(f,f):y},s=d=>new o(d)}),Xs=N((t,c)=>{"use strict";B();var n=pe(),o=sr(),i=ge(),p=ur(),u=Z("path");c.exports=(d,f,g)=>{if(typeof f=="function"&&(g=f),Array.isArray(d)&&(f=d,d={}),!f||!Array.isArray(f)||!f.length)throw new TypeError("no files or directories specified");f=Array.from(f);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,f):b.file?e(b,f,g):b.sync?l(b,f):s(b,f)};var r=(d,f)=>{let g=new o.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});g.pipe(b),h(g,f)},e=(d,f,g)=>{let b=new o(d),_=new i.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 a(b,f),g?y.then(g,g):y},h=(d,f)=>{f.forEach(g=>{g.charAt(0)==="@"?p({file:u.resolve(d.cwd,g.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(g)}),d.end()},a=(d,f)=>{for(;f.length;){let g=f.shift();if(g.charAt(0)==="@")return p({file:u.resolve(d.cwd,g.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>a(d,f));d.add(g)}d.end()},l=(d,f)=>{let g=new o.Sync(d);return h(g,f),g},s=(d,f)=>{let g=new o(d);return a(g,f),g}}),Zr=N((t,c)=>{"use strict";B();var n=pe(),o=sr(),i=Z("fs"),p=ge(),u=ur(),r=Z("path"),e=me();c.exports=(f,g,b)=>{let _=n(f);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):l(_,g,b)};var h=(f,g)=>{let b=new o.Sync(f),_=!0,y,D;try{try{y=i.openSync(f.file,"r+")}catch(m){if(m.code==="ENOENT")y=i.openSync(f.file,"w+");else throw m}let w=i.fstatSync(y),v=Buffer.alloc(512);t:for(D=0;D<w.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=i.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 t}let m=new e(v);if(!m.cksumValid)break;let E=512*Math.ceil(m.size/512);if(D+E+512>w.size)break;D+=E,f.mtimeCache&&f.mtimeCache.set(m.path,m.mtime)}_=!1,a(f,b,D,y,g)}finally{if(_)try{i.closeSync(y)}catch{}}},a=(f,g,b,_,y)=>{let D=new p.WriteStreamSync(f.file,{fd:_,start:b});g.pipe(D),s(g,y)},l=(f,g,b)=>{g=Array.from(g);let _=new o(f),y=(w,v,m)=>{let E=(T,F)=>{T?i.close(w,R=>m(T)):m(null,F)},S=0;if(v===0)return E(null,0);let A=0,x=Buffer.alloc(512),L=(T,F)=>{if(T)return E(T);if(A+=F,A<512&&F)return i.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 R=new e(x);if(!R.cksumValid)return E(null,S);let I=512*Math.ceil(R.size/512);if(S+I+512>v||(S+=I+512,S>=v))return E(null,S);f.mtimeCache&&f.mtimeCache.set(R.path,R.mtime),A=0,i.read(w,x,0,512,S,L)};i.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+",i.open(f.file,m,E);if(S)return v(S);i.fstat(A,(x,L)=>{if(x)return i.close(A,()=>v(x));y(A,L.size,(T,F)=>{if(T)return v(T);let R=new p.WriteStream(f.file,{fd:A,start:F});_.pipe(R),R.on("error",v),R.on("close",w),d(_,g)})})};i.open(f.file,m,E)});return b?D.then(b,b):D},s=(f,g)=>{g.forEach(b=>{b.charAt(0)==="@"?u({file:r.resolve(f.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>f.add(_)}):f.add(b)}),f.end()},d=(f,g)=>{for(;g.length;){let b=g.shift();if(b.charAt(0)==="@")return u({file:r.resolve(f.cwd,b.slice(1)),noResume:!0,onentry:_=>f.add(_)}).then(_=>d(f,g));f.add(b)}f.end()}}),Qs=N((t,c)=>{"use strict";B();var n=pe(),o=Zr();c.exports=(p,u,r)=>{let e=n(p);if(!e.file)throw new TypeError("file is required");if(e.gzip)throw new TypeError("cannot append to compressed archives");if(!u||!Array.isArray(u)||!u.length)throw new TypeError("no files or directories specified");return u=Array.from(u),i(e),o(e,u,r)};var i=p=>{let u=p.filter;p.mtimeCache||(p.mtimeCache=new Map),p.filter=u?(r,e)=>u(r,e)&&!(p.mtimeCache.get(r)>e.mtime):(r,e)=>!(p.mtimeCache.get(r)>e.mtime)}}),to=N((t,c)=>{B();var{promisify:n}=Z("util"),o=Z("fs"),i=p=>{if(!p)p={mode:511,fs:o};else if(typeof p=="object")p={mode:511,fs:o,...p};else if(typeof p=="number")p={mode:p,fs:o};else if(typeof p=="string")p={mode:parseInt(p,8),fs:o};else throw new TypeError("invalid options argument");return p.mkdir=p.mkdir||p.fs.mkdir||o.mkdir,p.mkdirAsync=n(p.mkdir),p.stat=p.stat||p.fs.stat||o.stat,p.statAsync=n(p.stat),p.statSync=p.statSync||p.fs.statSync||o.statSync,p.mkdirSync=p.mkdirSync||p.fs.mkdirSync||o.mkdirSync,p};c.exports=i}),eo=N((t,c)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:o,parse:i}=Z("path"),p=u=>{if(/\0/.test(u))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:u,code:"ERR_INVALID_ARG_VALUE"});if(u=o(u),n==="win32"){let r=/[*|"<>?:]/,{root:e}=i(u);if(r.test(u.substr(e.length)))throw Object.assign(new Error("Illegal characters in path."),{path:u,code:"EINVAL"})}return u};c.exports=p}),ro=N((t,c)=>{B();var{dirname:n}=Z("path"),o=(p,u,r=void 0)=>r===u?Promise.resolve():p.statAsync(u).then(e=>e.isDirectory()?r:void 0,e=>e.code==="ENOENT"?o(p,n(u),u):void 0),i=(p,u,r=void 0)=>{if(r!==u)try{return p.statSync(u).isDirectory()?r:void 0}catch(e){return e.code==="ENOENT"?i(p,n(u),u):void 0}};c.exports={findMade:o,findMadeSync:i}}),Xr=N((t,c)=>{B();var{dirname:n}=Z("path"),o=(p,u,r)=>{u.recursive=!1;let e=n(p);return e===p?u.mkdirAsync(p,u).catch(h=>{if(h.code!=="EISDIR")throw h}):u.mkdirAsync(p,u).then(()=>r||p,h=>{if(h.code==="ENOENT")return o(e,u).then(a=>o(p,u,a));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;return u.statAsync(p).then(a=>{if(a.isDirectory())return r;throw h},()=>{throw h})})},i=(p,u,r)=>{let e=n(p);if(u.recursive=!1,e===p)try{return u.mkdirSync(p,u)}catch(h){if(h.code!=="EISDIR")throw h;return}try{return u.mkdirSync(p,u),r||p}catch(h){if(h.code==="ENOENT")return i(p,u,i(e,u,r));if(h.code!=="EEXIST"&&h.code!=="EROFS")throw h;try{if(!u.statSync(p).isDirectory())throw h}catch{throw h}}};c.exports={mkdirpManual:o,mkdirpManualSync:i}}),no=N((t,c)=>{B();var{dirname:n}=Z("path"),{findMade:o,findMadeSync:i}=ro(),{mkdirpManual:p,mkdirpManualSync:u}=Xr(),r=(h,a)=>(a.recursive=!0,n(h)===h?a.mkdirAsync(h,a):o(a,h).then(l=>a.mkdirAsync(h,a).then(()=>l).catch(s=>{if(s.code==="ENOENT")return p(h,a);throw s}))),e=(h,a)=>{if(a.recursive=!0,n(h)===h)return a.mkdirSync(h,a);let l=i(a,h);try{return a.mkdirSync(h,a),l}catch(s){if(s.code==="ENOENT")return u(h,a);throw s}};c.exports={mkdirpNative:r,mkdirpNativeSync:e}}),io=N((t,c)=>{B();var n=Z("fs"),o=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=o.replace(/^v/,"").split("."),p=+i[0]>10||+i[0]==10&&+i[1]>=12,u=p?e=>e.mkdir===n.mkdir:()=>!1,r=p?e=>e.mkdirSync===n.mkdirSync:()=>!1;c.exports={useNative:u,useNativeSync:r}}),so=N((t,c)=>{B();var n=to(),o=eo(),{mkdirpNative:i,mkdirpNativeSync:p}=no(),{mkdirpManual:u,mkdirpManualSync:r}=Xr(),{useNative:e,useNativeSync:h}=io(),a=(s,d)=>(s=o(s),d=n(d),e(d)?i(s,d):u(s,d)),l=(s,d)=>(s=o(s),d=n(d),h(d)?p(s,d):r(s,d));a.sync=l,a.native=(s,d)=>i(o(s),n(d)),a.manual=(s,d)=>u(o(s),n(d)),a.nativeSync=(s,d)=>p(o(s),n(d)),a.manualSync=(s,d)=>r(o(s),n(d)),c.exports=a}),oo=N((t,c)=>{"use strict";B();var n=Z("fs"),o=Z("path"),i=n.lchown?"lchown":"chown",p=n.lchownSync?"lchownSync":"chownSync",u=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,w,v)=>{try{return n[p](D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},e=(D,w,v)=>{try{return n.chownSync(D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},h=u?(D,w,v,m)=>E=>{!E||E.code!=="EISDIR"?m(E):n.chown(D,w,v,m)}:(D,w,v,m)=>m,a=u?(D,w,v)=>{try{return r(D,w,v)}catch(m){if(m.code!=="EISDIR")throw m;e(D,w,v)}}:(D,w,v)=>r(D,w,v),l=process.version,s=(D,w,v)=>n.readdir(D,w,v),d=(D,w)=>n.readdirSync(D,w);/^v4\./.test(l)&&(s=(D,w,v)=>n.readdir(D,v));var f=(D,w,v,m)=>{n[i](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(o.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(o.resolve(D,w.name),v,m,S=>{if(S)return E(S);let A=o.resolve(D,w.name);f(A,v,m,E)});else{let S=o.resolve(D,w.name);f(S,v,m,E)}},b=(D,w,v,m)=>{s(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 f(D,w,v,m);let A=S.length,x=null,L=T=>{if(!x){if(T)return m(x=T);if(--A===0)return f(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(o.resolve(D,w));E.name=w,w=E}catch(E){if(E.code==="ENOENT")return;throw E}w.isDirectory()&&y(o.resolve(D,w.name),v,m),a(o.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 a(D,w,v);throw E}return m&&m.length&&m.forEach(E=>_(D,E,w,v)),a(D,w,v)};c.exports=b,b.sync=y}),uo=N((t,c)=>{"use strict";B();var n=so(),o=Z("fs"),i=Z("path"),p=oo(),u=de(),r=class extends Error{constructor(g,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=g}get name(){return"SylinkError"}},e=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(u(b)),a=(g,b,_)=>g.set(u(b),_),l=(g,b)=>{o.stat(g,(_,y)=>{(_||!y.isDirectory())&&(_=new e(g,_&&_.code||"ENOTDIR")),b(_)})};c.exports=(g,b,_)=>{g=u(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=u(b.cwd),T=(R,I)=>{R?_(R):(a(x,g,!0),I&&E?p(I,v,m,$=>T($)):w?o.chmod(g,D,_):_())};if(x&&h(x,g)===!0)return T();if(g===L)return l(g,T);if(S)return n(g,{mode:D}).then(R=>T(null,R),T);let F=u(i.relative(L,g)).split("/");s(L,F,D,x,A,L,null,T)};var s=(g,b,_,y,D,w,v,m)=>{if(!b.length)return m(null,v);let E=b.shift(),S=u(i.resolve(g+"/"+E));if(h(y,S))return s(S,b,_,y,D,w,v,m);o.mkdir(S,_,d(S,b,_,y,D,w,v,m))},d=(g,b,_,y,D,w,v,m)=>E=>{E?o.lstat(g,(S,A)=>{if(S)S.path=S.path&&u(S.path),m(S);else if(A.isDirectory())s(g,b,_,y,D,w,v,m);else if(D)o.unlink(g,x=>{if(x)return m(x);o.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,s(g,b,_,y,D,w,v,m))},f=g=>{let b=!1,_="ENOTDIR";try{b=o.statSync(g).isDirectory()}catch(y){_=y.code}finally{if(!b)throw new e(g,_)}};c.exports.sync=(g,b)=>{g=u(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=u(b.cwd),L=R=>{a(A,g,!0),R&&m&&p.sync(R,w,v),D&&o.chmodSync(g,y)};if(A&&h(A,g)===!0)return L();if(g===x)return f(x),L();if(E)return L(n.sync(g,y));let T=u(i.relative(x,g)).split("/"),F=null;for(let R=T.shift(),I=x;R&&(I+="/"+R);R=T.shift())if(I=u(i.resolve(I)),!h(A,I))try{o.mkdirSync(I,y),F=F||I,a(A,I,!0)}catch{let $=o.lstatSync(I);if($.isDirectory()){a(A,I,!0);continue}else if(S){o.unlinkSync(I),o.mkdirSync(I,y),F=F||I,a(A,I,!0);continue}else if($.isSymbolicLink())return new r(I,I+"/"+T.join("/"))}return L(F)}}),Qr=N((t,c)=>{B();var n=Object.create(null),{hasOwnProperty:o}=Object.prototype;c.exports=i=>(o.call(n,i)||(n[i]=i.normalize("NFKD")),n[i])}),ao=N((t,c)=>{B();var n=Z("assert"),o=Qr(),i=ye(),{join:p}=Z("path"),u=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=u==="win32";c.exports=()=>{let e=new Map,h=new Map,a=b=>b.split("/").slice(0,-1).reduce((_,y)=>(_.length&&(y=p(_[_.length-1],y)),_.push(y||"/"),_),[]),l=new Set,s=b=>{let _=h.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(y=>e.get(y)),dirs:[..._.dirs].map(y=>e.get(y))}},d=b=>{let{paths:_,dirs:y}=s(b);return _.every(D=>D[0]===b)&&y.every(D=>D[0]instanceof Set&&D[0].has(b))},f=b=>l.has(b)||!d(b)?!1:(l.add(b),b(()=>g(b)),!0),g=b=>{if(!l.has(b))return!1;let{paths:_,dirs:y}=h.get(b),D=new Set;return _.forEach(w=>{let v=e.get(w);n.equal(v[0],b),v.length===1?e.delete(w):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),y.forEach(w=>{let v=e.get(w);n(v[0]instanceof Set),v[0].size===1&&v.length===1?e.delete(w):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),l.delete(b),D.forEach(w=>f(w)),!0};return{check:d,reserve:(b,_)=>{b=r?["win32 parallelization disabled"]:b.map(D=>o(i(p(D))).toLowerCase());let y=new Set(b.map(D=>a(D)).reduce((D,w)=>D.concat(w)));return h.set(_,{dirs:y,paths:b}),b.forEach(D=>{let w=e.get(D);w?w.push(_):e.set(D,[_])}),y.forEach(D=>{let w=e.get(D);w?w[w.length-1]instanceof Set?w[w.length-1].add(_):w.push(new Set([_])):e.set(D,[new Set([_])])}),f(_)}}}}),lo=N((t,c)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,o=n==="win32",i=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:p,O_TRUNC:u,O_WRONLY:r,UV_FS_O_FILEMAP:e=0}=i.constants,h=o&&!!e,a=512*1024,l=e|u|p|r;c.exports=h?s=>s<a?l:"w":()=>"w"}),tn=N((t,c)=>{"use strict";B();var n=Z("assert"),o=or(),i=Z("fs"),p=ge(),u=Z("path"),r=uo(),e=Vr(),h=ao(),a=Kr(),l=de(),s=ye(),d=Qr(),f=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"),F=Symbol("pending"),R=Symbol("pend"),I=Symbol("unpend"),$=Symbol("ended"),O=Symbol("maybeClose"),q=Symbol("skip"),W=Symbol("doChown"),Q=Symbol("uid"),P=Symbol("gid"),j=Symbol("checkedCwd"),k=Z("crypto"),J=lo(),G=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,tt=G==="win32",M=(C,z)=>{if(!tt)return i.unlink(C,z);let X=C+".DELETE."+k.randomBytes(16).toString("hex");i.rename(C,X,rt=>{if(rt)return z(rt);i.unlink(X,z)})},K=C=>{if(!tt)return i.unlinkSync(C);let z=C+".DELETE."+k.randomBytes(16).toString("hex");i.renameSync(C,z),i.unlinkSync(z)},et=(C,z,X)=>C===C>>>0?C:z===z>>>0?z:X,st=C=>d(s(l(C))).toLowerCase(),lt=(C,z)=>{z=st(z);for(let X of C.keys()){let rt=st(X);(rt===z||rt.indexOf(z+"/")===0)&&C.delete(X)}},yt=C=>{for(let z of C.keys())C.delete(z)},dt=class extends o{constructor(C){if(C||(C={}),C.ondone=z=>{this[$]=!0,this[O]()},super(C),this[j]=!1,this.reservations=h(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[F]=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||tt,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=l(u.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[f](z))}warn(C,z,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,z,X)}[O](){this[$]&&this[F]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[x](C){if(this.strip){let z=l(C.path).split("/");if(z.length<this.strip)return!1;if(C.path=z.slice(this.strip).join("/"),C.type==="Link"){let X=l(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=l(C.path),X=z.split("/");if(X.includes("..")||tt&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:z}),!1;let[rt,ct]=a(z);rt&&(C.path=ct,this.warn("TAR_ENTRY_INFO",`stripping ${rt} from absolute path`,{entry:C,path:z}))}if(u.isAbsolute(C.path)?C.absolute=l(u.resolve(C.path)):C.absolute=l(u.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:l(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}=u.win32.parse(C.absolute);C.absolute=z+e.encode(C.absolute.slice(z.length));let{root:X}=u.win32.parse(C.path);C.path=X+e.encode(C.path.slice(X.length))}return!0}[f](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(l(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 et(this.uid,C.uid,this.processUid)}[P](C){return et(this.gid,C.gid,this.processGid)}[w](C,z){let X=C.mode&4095||this.fmode,rt=new p.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});rt.on("error",nt=>{rt.fd&&i.close(rt.fd,()=>{}),rt.write=()=>!0,this[T](nt,C),z()});let ct=1,it=nt=>{if(nt){rt.fd&&i.close(rt.fd,()=>{}),this[T](nt,C),z();return}--ct===0&&i.close(rt.fd,ht=>{ht?this[T](ht,C):this[I](),z()})};rt.on("finish",nt=>{let ht=C.absolute,bt=rt.fd;if(C.mtime&&!this.noMtime){ct++;let Dt=C.atime||new Date,Y=C.mtime;i.futimes(bt,Dt,Y,U=>U?i.utimes(ht,Dt,Y,ot=>it(ot&&U)):it())}if(this[W](C)){ct++;let Dt=this[Q](C),Y=this[P](C);i.fchown(bt,Dt,Y,U=>U?i.chown(ht,Dt,Y,ot=>it(ot&&U)):it())}it()});let at=this.transform&&this.transform(C)||C;at!==C&&(at.on("error",nt=>{this[T](nt,C),z()}),C.pipe(at)),at.pipe(rt)}[v](C,z){let X=C.mode&4095||this.dmode;this[L](C.absolute,X,rt=>{if(rt){this[T](rt,C),z();return}let ct=1,it=at=>{--ct===0&&(z(),this[I](),C.resume())};C.mtime&&!this.noMtime&&(ct++,i.utimes(C.absolute,C.atime||new Date,C.mtime,it)),this[W](C)&&(ct++,i.chown(C.absolute,this[Q](C),this[P](C),it)),it()})}[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=l(u.resolve(this.cwd,C.linkpath));this[m](C,X,"link",z)}[R](){this[F]++}[I](){this[F]--,this[O]()}[q](C){this[I](),C.resume()}[y](C,z){return C.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!tt}[g](C){this[R]();let z=[C.path];C.linkpath&&z.push(C.linkpath),this.reservations.reserve(z,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?yt(this.dirCache):C.type!=="Directory"&<(this.dirCache,C.absolute)}[b](C,z){this[_](C);let X=at=>{this[_](C),z(at)},rt=()=>{this[L](this.cwd,this.dmode,at=>{if(at){this[T](at,C),X();return}this[j]=!0,ct()})},ct=()=>{if(C.absolute!==this.cwd){let at=l(u.dirname(C.absolute));if(at!==this.cwd)return this[L](at,this.dmode,nt=>{if(nt){this[T](nt,C),X();return}it()})}it()},it=()=>{i.lstat(C.absolute,(at,nt)=>{if(nt&&(this.keep||this.newer&&nt.mtime>C.mtime)){this[q](C),X();return}if(at||this[y](C,nt))return this[D](null,C,X);if(nt.isDirectory()){if(C.type==="Directory"){let ht=!this.noChmod&&C.mode&&(nt.mode&4095)!==C.mode,bt=Dt=>this[D](Dt,C,X);return ht?i.chmod(C.absolute,C.mode,bt):bt()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ht=>this[D](ht,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);M(C.absolute,ht=>this[D](ht,C,X))})};this[j]?ct():rt()}[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,rt){i[X](z,C.absolute,ct=>{ct?this[T](ct,C):(this[I](),C.resume()),rt()})}},H=C=>{try{return[null,C()]}catch(z){return[z,null]}},V=class extends dt{[D](C,z){return super[D](C,z,()=>{})}[g](C){if(this[_](C),!this[j]){let ct=this[L](this.cwd,this.dmode);if(ct)return this[T](ct,C);this[j]=!0}if(C.absolute!==this.cwd){let ct=l(u.dirname(C.absolute));if(ct!==this.cwd){let it=this[L](ct,this.dmode);if(it)return this[T](it,C)}}let[z,X]=H(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[q](C);if(z||this[y](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let it=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[at]=it?H(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[D](at,C)}let[ct]=H(()=>i.rmdirSync(C.absolute));this[D](ct,C)}let[rt]=C.absolute===this.cwd?[]:H(()=>K(C.absolute));this[D](rt,C)}[w](C,z){let X=C.mode&4095||this.fmode,rt=at=>{let nt;try{i.closeSync(ct)}catch(ht){nt=ht}(at||nt)&&this[T](at||nt,C),z()},ct;try{ct=i.openSync(C.absolute,J(C.size),X)}catch(at){return rt(at)}let it=this.transform&&this.transform(C)||C;it!==C&&(it.on("error",at=>this[T](at,C)),C.pipe(it)),it.on("data",at=>{try{i.writeSync(ct,at,0,at.length)}catch(nt){rt(nt)}}),it.on("end",at=>{let nt=null;if(C.mtime&&!this.noMtime){let ht=C.atime||new Date,bt=C.mtime;try{i.futimesSync(ct,ht,bt)}catch(Dt){try{i.utimesSync(C.absolute,ht,bt)}catch{nt=Dt}}}if(this[W](C)){let ht=this[Q](C),bt=this[P](C);try{i.fchownSync(ct,ht,bt)}catch(Dt){try{i.chownSync(C.absolute,ht,bt)}catch{nt=nt||Dt}}}rt(nt)})}[v](C,z){let X=C.mode&4095||this.dmode,rt=this[L](C.absolute,X);if(rt){this[T](rt,C),z();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{i.chownSync(C.absolute,this[Q](C),this[P](C))}catch{}z(),C.resume()}[L](C,z){try{return r.sync(l(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,rt){try{i[X+"Sync"](z,C.absolute),rt(),C.resume()}catch(ct){return this[T](ct,C)}}};dt.Sync=V,c.exports=dt}),co=N((t,c)=>{"use strict";B();var n=pe(),o=tn(),i=Z("fs"),p=ge(),u=Z("path"),r=ye();c.exports=(d,f,g)=>{typeof d=="function"?(g=d,f=null,d={}):Array.isArray(d)&&(f=d,d={}),typeof f=="function"&&(g=f,f=null),f?f=Array.from(f):f=[];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 f.length&&e(b,f),b.file&&b.sync?h(b):b.file?a(b,g):b.sync?l(b):s(b)};var e=(d,f)=>{let g=new Map(f.map(y=>[r(y),!0])),b=d.filter,_=(y,D)=>{let w=D||u.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):_(u.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 f=new o.Sync(d),g=d.file,b=i.statSync(g),_=d.maxReadSize||16*1024*1024;new p.ReadStreamSync(g,{readSize:_,size:b.size}).pipe(f)},a=(d,f)=>{let g=new o(d),b=d.maxReadSize||16*1024*1024,_=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("close",D),i.stat(_,(v,m)=>{if(v)w(v);else{let E=new p.ReadStream(_,{readSize:b,size:m.size});E.on("error",w),E.pipe(g)}})});return f?y.then(f,f):y},l=d=>new o.Sync(d),s=d=>new o(d)}),ho=N(t=>{"use strict";B(),t.c=t.create=Xs(),t.r=t.replace=Zr(),t.t=t.list=ur(),t.u=t.update=Qs(),t.x=t.extract=co(),t.Pack=sr(),t.Unpack=tn(),t.Parse=or(),t.ReadEntry=rr(),t.WriteEntry=Yr(),t.Header=me(),t.Pax=nr(),t.types=Wr()}),Vt=N((t,c)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function o(m){return n.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...n];function p(m){return i.includes(m)}var u=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return u.includes(m)}function e(m){return E=>typeof E===m}var{toString:h}=Object.prototype,a=m=>{let E=h.call(m).slice(8,-1);if(/HTML\w+Element/.test(E)&&s.domElement(m))return"HTMLElement";if(p(E))return E},l=m=>E=>a(E)===m;function s(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(s.observable(m))return"Observable";if(s.array(m))return"Array";if(s.buffer(m))return"Buffer";let E=a(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"}s.undefined=e("undefined"),s.string=e("string");var d=e("number");s.number=m=>d(m)&&!s.nan(m),s.bigint=e("bigint"),s.function_=e("function"),s.null_=m=>m===null,s.class_=m=>s.function_(m)&&m.toString().startsWith("class "),s.boolean=m=>m===!0||m===!1,s.symbol=e("symbol"),s.numericString=m=>s.string(m)&&!s.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),s.array=(m,E)=>Array.isArray(m)?s.function_(E)?m.every(E):!0:!1,s.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},s.blob=m=>l("Blob")(m),s.nullOrUndefined=m=>s.null_(m)||s.undefined(m),s.object=m=>!s.null_(m)&&(typeof m=="object"||s.function_(m)),s.iterable=m=>{var E;return s.function_((E=m)===null||E===void 0?void 0:E[Symbol.iterator])},s.asyncIterable=m=>{var E;return s.function_((E=m)===null||E===void 0?void 0:E[Symbol.asyncIterator])},s.generator=m=>{var E,S;return s.iterable(m)&&s.function_((E=m)===null||E===void 0?void 0:E.next)&&s.function_((S=m)===null||S===void 0?void 0:S.throw)},s.asyncGenerator=m=>s.asyncIterable(m)&&s.function_(m.next)&&s.function_(m.throw),s.nativePromise=m=>l("Promise")(m);var f=m=>{var E,S;return s.function_((E=m)===null||E===void 0?void 0:E.then)&&s.function_((S=m)===null||S===void 0?void 0:S.catch)};s.promise=m=>s.nativePromise(m)||f(m),s.generatorFunction=l("GeneratorFunction"),s.asyncGeneratorFunction=m=>a(m)==="AsyncGeneratorFunction",s.asyncFunction=m=>a(m)==="AsyncFunction",s.boundFunction=m=>s.function_(m)&&!m.hasOwnProperty("prototype"),s.regExp=l("RegExp"),s.date=l("Date"),s.error=l("Error"),s.map=m=>l("Map")(m),s.set=m=>l("Set")(m),s.weakMap=m=>l("WeakMap")(m),s.weakSet=m=>l("WeakSet")(m),s.int8Array=l("Int8Array"),s.uint8Array=l("Uint8Array"),s.uint8ClampedArray=l("Uint8ClampedArray"),s.int16Array=l("Int16Array"),s.uint16Array=l("Uint16Array"),s.int32Array=l("Int32Array"),s.uint32Array=l("Uint32Array"),s.float32Array=l("Float32Array"),s.float64Array=l("Float64Array"),s.bigInt64Array=l("BigInt64Array"),s.bigUint64Array=l("BigUint64Array"),s.arrayBuffer=l("ArrayBuffer"),s.sharedArrayBuffer=l("SharedArrayBuffer"),s.dataView=l("DataView"),s.enumCase=(m,E)=>Object.values(E).includes(m),s.directInstanceOf=(m,E)=>Object.getPrototypeOf(m)===E.prototype,s.urlInstance=m=>l("URL")(m),s.urlString=m=>{if(!s.string(m))return!1;try{return new URL(m),!0}catch{return!1}},s.truthy=m=>!!m,s.falsy=m=>!m,s.nan=m=>Number.isNaN(m),s.primitive=m=>s.null_(m)||r(typeof m),s.integer=m=>Number.isInteger(m),s.safeInteger=m=>Number.isSafeInteger(m),s.plainObject=m=>{if(h.call(m)!=="[object Object]")return!1;let E=Object.getPrototypeOf(m);return E===null||E===Object.getPrototypeOf({})},s.typedArray=m=>o(a(m));var g=m=>s.safeInteger(m)&&m>=0;s.arrayLike=m=>!s.nullOrUndefined(m)&&!s.function_(m)&&g(m.length),s.inRange=(m,E)=>{if(s.number(E))return m>=Math.min(0,E)&&m<=Math.max(E,0);if(s.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"];s.domElement=m=>s.object(m)&&m.nodeType===b&&s.string(m.nodeName)&&!s.plainObject(m)&&_.every(E=>E in m),s.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},s.nodeStream=m=>s.object(m)&&s.function_(m.pipe)&&!s.observable(m),s.infinite=m=>m===1/0||m===-1/0;var y=m=>E=>s.integer(E)&&Math.abs(E%2)===m;s.evenInteger=y(0),s.oddInteger=y(1),s.emptyArray=m=>s.array(m)&&m.length===0,s.nonEmptyArray=m=>s.array(m)&&m.length>0,s.emptyString=m=>s.string(m)&&m.length===0;var D=m=>s.string(m)&&!/\S/.test(m);s.emptyStringOrWhitespace=m=>s.emptyString(m)||D(m),s.nonEmptyString=m=>s.string(m)&&m.length>0,s.nonEmptyStringAndNotWhitespace=m=>s.string(m)&&!s.emptyStringOrWhitespace(m),s.emptyObject=m=>s.object(m)&&!s.map(m)&&!s.set(m)&&Object.keys(m).length===0,s.nonEmptyObject=m=>s.object(m)&&!s.map(m)&&!s.set(m)&&Object.keys(m).length>0,s.emptySet=m=>s.set(m)&&m.size===0,s.nonEmptySet=m=>s.set(m)&&m.size>0,s.emptyMap=m=>s.map(m)&&m.size===0,s.nonEmptyMap=m=>s.map(m)&&m.size>0,s.propertyKey=m=>s.any([s.string,s.number,s.symbol],m),s.formData=m=>l("FormData")(m),s.urlSearchParams=m=>l("URLSearchParams")(m);var w=(m,E,S)=>{if(!s.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)};s.any=(m,...E)=>(s.array(m)?m:[m]).some(S=>w(Array.prototype.some,S,E)),s.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=>`\`${s(T)}\``))].join(", ")}`:`received value of type \`${s(S)}\``;throw new TypeError(`Expected value which is \`${E}\`, ${L}.`)}};t.assert={undefined:m=>v(s.undefined(m),"undefined",m),string:m=>v(s.string(m),"string",m),number:m=>v(s.number(m),"number",m),bigint:m=>v(s.bigint(m),"bigint",m),function_:m=>v(s.function_(m),"Function",m),null_:m=>v(s.null_(m),"null",m),class_:m=>v(s.class_(m),"Class",m),boolean:m=>v(s.boolean(m),"boolean",m),symbol:m=>v(s.symbol(m),"symbol",m),numericString:m=>v(s.numericString(m),"string with a number",m),array:(m,E)=>{v(s.array(m),"Array",m),E&&m.forEach(E)},buffer:m=>v(s.buffer(m),"Buffer",m),blob:m=>v(s.blob(m),"Blob",m),nullOrUndefined:m=>v(s.nullOrUndefined(m),"null or undefined",m),object:m=>v(s.object(m),"Object",m),iterable:m=>v(s.iterable(m),"Iterable",m),asyncIterable:m=>v(s.asyncIterable(m),"AsyncIterable",m),generator:m=>v(s.generator(m),"Generator",m),asyncGenerator:m=>v(s.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(s.nativePromise(m),"native Promise",m),promise:m=>v(s.promise(m),"Promise",m),generatorFunction:m=>v(s.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(s.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(s.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(s.boundFunction(m),"Function",m),regExp:m=>v(s.regExp(m),"RegExp",m),date:m=>v(s.date(m),"Date",m),error:m=>v(s.error(m),"Error",m),map:m=>v(s.map(m),"Map",m),set:m=>v(s.set(m),"Set",m),weakMap:m=>v(s.weakMap(m),"WeakMap",m),weakSet:m=>v(s.weakSet(m),"WeakSet",m),int8Array:m=>v(s.int8Array(m),"Int8Array",m),uint8Array:m=>v(s.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(s.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(s.int16Array(m),"Int16Array",m),uint16Array:m=>v(s.uint16Array(m),"Uint16Array",m),int32Array:m=>v(s.int32Array(m),"Int32Array",m),uint32Array:m=>v(s.uint32Array(m),"Uint32Array",m),float32Array:m=>v(s.float32Array(m),"Float32Array",m),float64Array:m=>v(s.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(s.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(s.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(s.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(s.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(s.dataView(m),"DataView",m),enumCase:(m,E)=>v(s.enumCase(m,E),"EnumCase",m),urlInstance:m=>v(s.urlInstance(m),"URL",m),urlString:m=>v(s.urlString(m),"string with a URL",m),truthy:m=>v(s.truthy(m),"truthy",m),falsy:m=>v(s.falsy(m),"falsy",m),nan:m=>v(s.nan(m),"NaN",m),primitive:m=>v(s.primitive(m),"primitive",m),integer:m=>v(s.integer(m),"integer",m),safeInteger:m=>v(s.safeInteger(m),"integer",m),plainObject:m=>v(s.plainObject(m),"plain object",m),typedArray:m=>v(s.typedArray(m),"TypedArray",m),arrayLike:m=>v(s.arrayLike(m),"array-like",m),domElement:m=>v(s.domElement(m),"HTMLElement",m),observable:m=>v(s.observable(m),"Observable",m),nodeStream:m=>v(s.nodeStream(m),"Node.js Stream",m),infinite:m=>v(s.infinite(m),"infinite number",m),emptyArray:m=>v(s.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(s.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(s.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(s.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(s.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(s.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(s.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(s.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(s.emptySet(m),"empty set",m),nonEmptySet:m=>v(s.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(s.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(s.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(s.propertyKey(m),"PropertyKey",m),formData:m=>v(s.formData(m),"FormData",m),urlSearchParams:m=>v(s.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(s.evenInteger(m),"even integer",m),oddInteger:m=>v(s.oddInteger(m),"odd integer",m),directInstanceOf:(m,E)=>v(s.directInstanceOf(m,E),"T",m),inRange:(m,E)=>v(s.inRange(m,E),"in range",m),any:(m,...E)=>v(s.any(m,...E),"predicate returns truthy for any value",E,{multipleValues:!0}),all:(m,...E)=>v(s.all(m,...E),"predicate returns truthy for all values",E,{multipleValues:!0})},Object.defineProperties(s,{class:{value:s.class_},function:{value:s.function_},null:{value:s.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=s,c.exports=s,c.exports.default=s,c.exports.assert=t.assert}),fo=N((t,c)=>{"use strict";B();var n=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},o=class{static fn(i){return(...p)=>new o((u,r,e)=>{p.push(e),i(...p).then(u,r)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((p,u)=>{this._reject=u;let r=a=>{(!this._isCanceled||!h.shouldReject)&&(this._isPending=!1,p(a))},e=a=>{this._isPending=!1,u(a)},h=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(h,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),i(r,e,h)})}then(i,p){return this._promise.then(i,p)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let p of this._cancelHandlers)p()}catch(p){this._reject(p);return}this._rejectOnCancel&&this._reject(new n(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(o.prototype,Promise.prototype),c.exports=o,c.exports.CancelError=n}),po=N((t,c)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function n(i){return i.encrypted}var o=(i,p)=>{let u;typeof p=="function"?u={connect:p}:u=p;let r=typeof u.connect=="function",e=typeof u.secureConnect=="function",h=typeof u.close=="function",a=()=>{r&&u.connect(),n(i)&&e&&(i.authorized?u.secureConnect():i.authorizationError||i.once("secureConnect",u.secureConnect)),h&&i.once("close",u.close)};i.writable&&!i.connecting?a():i.connecting?i.once("connect",a):i.destroyed&&h&&u.close(i._hadError)};t.default=o,c.exports=o,c.exports.default=o}),mo=N((t,c)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=po(),o=Z("util"),i=Number(process.versions.node.split(".")[0]),p=u=>{if(u.timings)return u.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}};u.timings=r;let e=s=>{let d=s.emit.bind(s);s.emit=(f,...g)=>(f==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,s.emit=d),d(f,...g))};e(u);let h=()=>{r.abort=Date.now(),(!r.response||i>=13)&&(r.phases.total=Date.now()-r.start)};u.prependOnceListener("abort",h);let a=s=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,o.types.isProxy(s))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};s.prependOnceListener("lookup",d),n.default(s,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(s.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}})};u.socket?a(u.socket):u.prependOnceListener("socket",a);let l=()=>{var s;r.upload=Date.now(),r.phases.request=r.upload-((s=r.secureConnect)!==null&&s!==void 0?s:r.connect)};return(()=>typeof u.writableFinished=="boolean"?u.writableFinished:u.finished&&u.outputSize===0&&(!u.socket||u.socket.writableLength===0))()?l():u.prependOnceListener("finish",l),u.prependOnceListener("response",s=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,s.timings=r,e(s),s.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),s.prependOnceListener("aborted",h)}),r};t.default=p,c.exports=p,c.exports.default=p}),yo=N((t,c)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:o,ALL:i,promises:{Resolver:p},lookup:u}=Z("dns"),{promisify:r}=Z("util"),e=Z("os"),h=Symbol("cacheableLookupCreateConnection"),a=Symbol("cacheableLookupInstance"),l=Symbol("expires"),s=typeof i=="number",d=w=>{if(!(w&&typeof w.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},f=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(e.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 p,lookup:A=u}={}){if(this.maxTtl=v,this.errorTtl=E,this._cache=w,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof p?(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&&(s&&v.hints&i||E.length===0)?f(m):m=E}else v.family===4&&(m=m.filter(E=>E.family===4));if(v.hints&o){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(F){if(F.code==="ENODATA"||F.code==="ENOTFOUND")return[];throw F}},[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[l]=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[l];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[a]=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[a]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");w.createConnection=w[h],delete w[h],delete w[a]}}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()}};c.exports=D,c.exports.default=D}),go=N((t,c)=>{"use strict";B();var n="text/plain",o="us-ascii",i=(r,e)=>e.some(h=>h instanceof RegExp?h.test(r):h===r),p=(r,{stripHash:e})=>{let h=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!h)throw new Error(`Invalid URL: ${r}`);let{type:a,data:l,hash:s}=h.groups,d=a.split(";");s=e?"":s;let f=!1;d[d.length-1]==="base64"&&(d.pop(),f=!0);let g=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[y,D=""]=_.split("=").map(w=>w.trim());return y==="charset"&&(D=D.toLowerCase(),D===o)?"":`${y}${D?`=${D}`:""}`}).filter(Boolean)];return f&&b.push("base64"),(b.length!==0||g&&g!==n)&&b.unshift(g),`data:${b.join(";")},${f?l.trim():l}${s?`#${s}`:""}`},u=(r,e)=>{if(e={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,...e},r=r.trim(),/^data:/i.test(r))return p(r,e);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+:)?\/\/)|^\/\//,e.defaultProtocol));let a=new URL(r);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&a.protocol==="https:"&&(a.protocol="http:"),e.forceHttps&&a.protocol==="http:"&&(a.protocol="https:"),e.stripAuthentication&&(a.username="",a.password=""),e.stripHash?a.hash="":e.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname&&(a.pathname=a.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let s=a.pathname.split("/"),d=s[s.length-1];i(d,e.removeDirectoryIndex)&&(s=s.slice(0,s.length-1),a.pathname=s.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let s of[...a.searchParams.keys()])i(s,e.removeQueryParameters)&&a.searchParams.delete(s);e.removeQueryParameters===!0&&(a.search=""),e.sortQueryParameters&&a.searchParams.sort(),e.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));let l=r;return r=a.toString(),!e.removeSingleSlash&&a.pathname==="/"&&!l.endsWith("/")&&a.hash===""&&(r=r.replace(/\/$/,"")),(e.removeTrailingSlash||a.pathname==="/")&&a.hash===""&&e.removeSingleSlash&&(r=r.replace(/\/$/,"")),h&&!e.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),e.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};c.exports=u}),bo=N((t,c)=>{B(),c.exports=n;function n(o,i){if(o&&i)return n(o)(i);if(typeof o!="function")throw new TypeError("need wrapper function");return Object.keys(o).forEach(function(u){p[u]=o[u]}),p;function p(){for(var u=new Array(arguments.length),r=0;r<u.length;r++)u[r]=arguments[r];var e=o.apply(this,u),h=u[u.length-1];return typeof e=="function"&&e!==h&&Object.keys(h).forEach(function(a){e[a]=h[a]}),e}}}),en=N((t,c)=>{B();var n=bo();c.exports=n(o),c.exports.strict=n(i),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function o(p){var u=function(){return u.called?u.value:(u.called=!0,u.value=p.apply(this,arguments))};return u.called=!1,u}function i(p){var u=function(){if(u.called)throw new Error(u.onceError);return u.called=!0,u.value=p.apply(this,arguments)},r=p.name||"Function wrapped with `once`";return u.onceError=r+" shouldn't be called more than once",u.called=!1,u}}),vo=N((t,c)=>{B();var n=en(),o=function(){},i=function(r){return r.setHeader&&typeof r.abort=="function"},p=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},u=function(r,e,h){if(typeof e=="function")return u(r,null,e);e||(e={}),h=n(h||o);var a=r._writableState,l=r._readableState,s=e.readable||e.readable!==!1&&r.readable,d=e.writable||e.writable!==!1&&r.writable,f=!1,g=function(){r.writable||b()},b=function(){d=!1,s||h.call(r)},_=function(){s=!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(!f){if(s&&!(l&&l.ended&&!l.destroyed))return h.call(r,new Error("premature close"));if(d&&!(a&&a.ended&&!a.destroyed))return h.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return i(r)?(r.on("complete",b),r.on("abort",w),r.req?m():r.on("request",m)):d&&!a&&(r.on("end",g),r.on("close",g)),p(r)&&r.on("exit",y),r.on("end",_),r.on("finish",b),e.error!==!1&&r.on("error",D),r.on("close",w),function(){f=!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)}};c.exports=u}),_o=N((t,c)=>{B();var n=en(),o=vo(),i=Z("fs"),p=function(){},u=/^v?\.0/.test(process.version),r=function(f){return typeof f=="function"},e=function(f){return!u||!i?!1:(f instanceof(i.ReadStream||p)||f instanceof(i.WriteStream||p))&&r(f.close)},h=function(f){return f.setHeader&&r(f.abort)},a=function(f,g,b,_){_=n(_);var y=!1;f.on("close",function(){y=!0}),o(f,{readable:g,writable:b},function(w){if(w)return _(w);y=!0,_()});var D=!1;return function(w){if(!y&&!D){if(D=!0,e(f))return f.close(p);if(h(f))return f.abort();if(r(f.destroy))return f.destroy();_(w||new Error("stream was destroyed"))}}},l=function(f){f()},s=function(f,g){return f.pipe(g)},d=function(){var f=Array.prototype.slice.call(arguments),g=r(f[f.length-1]||p)&&f.pop()||p;if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new Error("pump requires two streams per minimum");var b,_=f.map(function(y,D){var w=D<f.length-1,v=D>0;return a(y,w,v,function(m){b||(b=m),m&&_.forEach(l),!w&&(_.forEach(l),g(b))})});return f.reduce(s)};c.exports=d}),Eo=N((t,c)=>{"use strict";B();var{PassThrough:n}=Z("stream");c.exports=o=>{o={...o};let{array:i}=o,{encoding:p}=o,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let h=0,a=[];return e.on("data",l=>{a.push(l),r?h=a.length:h+=l.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,h):a.join(""),e.getBufferedLength=()=>h,e}}),wo=N((t,c)=>{"use strict";B();var{constants:n}=Z("buffer"),o=_o(),i=Eo(),p=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function u(r,e){if(!r)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:h}=e,a;return await new Promise((l,s)=>{let d=f=>{f&&a.getBufferedLength()<=n.MAX_LENGTH&&(f.bufferedData=a.getBufferedValue()),s(f)};a=o(r,i(e),f=>{if(f){d(f);return}l()}),a.on("data",()=>{a.getBufferedLength()>h&&d(new p)})}),a.getBufferedValue()}c.exports=u,c.exports.default=u,c.exports.buffer=(r,e)=>u(r,{...e,encoding:"buffer"}),c.exports.array=(r,e)=>u(r,{...e,array:!0}),c.exports.MaxBufferError=p}),Do=N((t,c)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),o=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),p={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},u={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function r(l){let s=parseInt(l,10);return isFinite(s)?s:0}function e(l){return l?i.has(l.status):!0}function h(l){let s={};if(!l)return s;let d=l.trim().split(/,/);for(let f of d){let[g,b]=f.split(/=/,2);s[g.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return s}function a(l){let s=[];for(let d in l){let f=l[d];s.push(f===!0?d:d+"="+f)}if(s.length)return s.join(", ")}c.exports=class{constructor(l,s,{shared:d,cacheHeuristic:f,immutableMinTimeToLive:g,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!s||!s.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(l),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=f!==void 0?f:.1,this._immutableMinTtl=g!==void 0?g:24*3600*1e3,this._status="status"in s?s.status:200,this._resHeaders=s.headers,this._rescc=h(s.headers["cache-control"]),this._method="method"in l?l.method:"GET",this._url=l.url,this._host=l.headers.host,this._noAuthorization=!l.headers.authorization,this._reqHeaders=s.headers.vary?l.headers:null,this._reqcc=h(l.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":a(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),s.headers["cache-control"]==null&&/no-cache/.test(s.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())&&o.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(l){if(!l||!l.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(l){this._assertRequestHasHeaders(l);let s=h(l.headers["cache-control"]);return s["no-cache"]||/no-cache/.test(l.headers.pragma)||s["max-age"]&&this.age()>s["max-age"]||s["min-fresh"]&&this.timeToLive()<1e3*s["min-fresh"]||this.stale()&&!(s["max-stale"]&&!this._rescc["must-revalidate"]&&(s["max-stale"]===!0||s["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(l,!1)}_requestMatches(l,s){return(!this._url||this._url===l.url)&&this._host===l.headers.host&&(!l.method||this._method===l.method||s&&l.method==="HEAD")&&this._varyMatches(l)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(l){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let s=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of s)if(l.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(l){let s={};for(let d in l)p[d]||(s[d]=l[d]);if(l.connection){let d=l.connection.trim().split(/\s*,\s*/);for(let f of d)delete s[f]}if(s.warning){let d=s.warning.split(/,/).filter(f=>!/^\s*1[0-9][0-9]/.test(f));d.length?s.warning=d.join(",").trim():delete s.warning}return s}responseHeaders(){let l=this._copyWithoutHopByHopHeaders(this._resHeaders),s=this.age();return s>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(l.warning=(l.warning?`${l.warning}, `:"")+'113 - "rfc7234 5.5.4"'),l.age=`${Math.round(s)}`,l.date=new Date(this.now()).toUTCString(),l}date(){let l=Date.parse(this._resHeaders.date);return isFinite(l)?l:this._responseTime}age(){let l=this._ageValue(),s=(this.now()-this._responseTime)/1e3;return l+s}_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 l=this._rescc.immutable?this._immutableMinTtl:0,s=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<s?0:Math.max(l,(d-s)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&s>d)return Math.max(l,(s-d)/1e3*this._cacheHeuristic)}return l}timeToLive(){let l=this.maxAge()-this.age(),s=l+r(this._rescc["stale-if-error"]),d=l+r(this._rescc["stale-while-revalidate"]);return Math.max(0,l,s,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(l){return new this(void 0,void 0,{_fromObject:l})}_fromObject(l){if(this._responseTime)throw Error("Reinitialized");if(!l||l.v!==1)throw Error("Invalid serialization");this._responseTime=l.t,this._isShared=l.sh,this._cacheHeuristic=l.ch,this._immutableMinTtl=l.imm!==void 0?l.imm:24*3600*1e3,this._status=l.st,this._resHeaders=l.resh,this._rescc=l.rescc,this._method=l.m,this._url=l.u,this._host=l.h,this._noAuthorization=l.a,this._reqHeaders=l.reqh,this._reqcc=l.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(l){this._assertRequestHasHeaders(l);let s=this._copyWithoutHopByHopHeaders(l.headers);if(delete s["if-range"],!this._requestMatches(l,!0)||!this.storable())return delete s["if-none-match"],delete s["if-modified-since"],s;if(this._resHeaders.etag&&(s["if-none-match"]=s["if-none-match"]?`${s["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),s["accept-ranges"]||s["if-match"]||s["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete s["if-modified-since"],s["if-none-match"]){let d=s["if-none-match"].split(/,/).filter(f=>!/^\s*W\//.test(f));d.length?s["if-none-match"]=d.join(",").trim():delete s["if-none-match"]}}else this._resHeaders["last-modified"]&&!s["if-modified-since"]&&(s["if-modified-since"]=this._resHeaders["last-modified"]);return s}revalidatedPolicy(l,s){if(this._assertRequestHasHeaders(l),this._useStaleIfError()&&e(s))return{modified:!1,matches:!1,policy:this};if(!s||!s.headers)throw Error("Response headers missing");let d=!1;if(s.status!==void 0&&s.status!=304?d=!1:s.headers.etag&&!/^\s*W\//.test(s.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag:this._resHeaders.etag&&s.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===s.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!s.headers.etag&&!s.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(l,s),modified:s.status!=304,matches:!1};let f={};for(let b in this._resHeaders)f[b]=b in s.headers&&!u[b]?s.headers[b]:this._resHeaders[b];let g=Object.assign({},s,{status:this._status,method:this._method,headers:f});return{policy:new this.constructor(l,g,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),ar=N((t,c)=>{"use strict";B(),c.exports=n=>{let o={};for(let[i,p]of Object.entries(n))o[i.toLowerCase()]=p;return o}}),So=N((t,c)=>{"use strict";B();var n=Z("stream").Readable,o=ar(),i=class extends n{constructor(p,u,r,e){if(typeof p!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof u!="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 e!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=p,this.headers=o(u),this.body=r,this.url=e}_read(){this.push(this.body),this.push(null)}};c.exports=i}),Ao=N((t,c)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];c.exports=(o,i)=>{let p=new Set(Object.keys(o).concat(n));for(let u of p)u in i||(i[u]=typeof o[u]=="function"?o[u].bind(o):o[u])}}),Co=N((t,c)=>{"use strict";B();var n=Z("stream").PassThrough,o=Ao(),i=p=>{if(!(p&&p.pipe))throw new TypeError("Parameter `response` must be a response stream.");let u=new n;return o(p,u),p.pipe(u)};c.exports=i}),xo=N(t=>{B(),t.stringify=function c(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 o="",i=Array.isArray(n);o=i?"[":"{";var p=!0;for(var u in n){var r=typeof n[u]=="function"||!i&&typeof n[u]>"u";Object.hasOwnProperty.call(n,u)&&!r&&(p||(o+=","),p=!1,i?n[u]==null?o+="null":o+=c(n[u]):n[u]!==void 0&&(o+=c(u)+":"+c(n[u])))}return o+=i?"]":"}",o}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},t.parse=function(c){return JSON.parse(c,function(n,o){return typeof o=="string"?/^:base64:/.test(o)?Buffer.from(o.substring(8),"base64"):/^:/.test(o)?o.substring(1):o:o})}}),Fo=N((t,c)=>{"use strict";B();var n=Z("events"),o=xo(),i=r=>{let e={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(e[h]))(r)}return new Map},p=["sqlite","postgres","mysql","mongo","redis","tiered"],u=class extends n{constructor(r,{emitErrors:e=!0,...h}={}){if(super(),this.opts={namespace:"keyv",serialize:o.stringify,deserialize:o.parse,...typeof r=="string"?{uri:r}:r,...h},!this.opts.store){let l={...this.opts};this.opts.store=i(l)}if(this.opts.compression){let l=this.opts.compression;this.opts.serialize=l.serialize.bind(l),this.opts.deserialize=l.deserialize.bind(l)}typeof this.opts.store.on=="function"&&e&&this.opts.store.on("error",l=>this.emit("error",l)),this.opts.store.namespace=this.opts.namespace;let a=l=>async function*(){for await(let[s,d]of typeof l=="function"?l(this.opts.store.namespace):l){let f=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!s.includes(this.opts.store.namespace))){if(typeof f.expires=="number"&&Date.now()>f.expires){this.delete(s);continue}yield[this._getKeyUnprefix(s),f.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=a(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return p.includes(this.opts.store.opts.dialect)||p.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,e){let{store:h}=this.opts,a=Array.isArray(r),l=a?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(a&&h.getMany===void 0){let s=[];for(let d of l)s.push(Promise.resolve().then(()=>h.get(d)).then(f=>typeof f=="string"?this.opts.deserialize(f):this.opts.compression?this.opts.deserialize(f):f).then(f=>{if(f!=null)return typeof f.expires=="number"&&Date.now()>f.expires?this.delete(d).then(()=>{}):e&&e.raw?f:f.value}));return Promise.allSettled(s).then(d=>{let f=[];for(let g of d)f.push(g.value);return f})}return Promise.resolve().then(()=>a?h.getMany(l):h.get(l)).then(s=>typeof s=="string"?this.opts.deserialize(s):this.opts.compression?this.opts.deserialize(s):s).then(s=>{if(s!=null){if(a){let d=[];for(let f of s){if(typeof f=="string"&&(f=this.opts.deserialize(f)),f==null){d.push(void 0);continue}typeof f.expires=="number"&&Date.now()>f.expires?(this.delete(r).then(()=>{}),d.push(void 0)):d.push(e&&e.raw?f:f.value)}return d}return typeof s.expires=="number"&&Date.now()>s.expires?this.delete(r).then(()=>{}):e&&e.raw?s:s.value}})}set(r,e,h){let a=this._getKeyPrefix(r);typeof h>"u"&&(h=this.opts.ttl),h===0&&(h=void 0);let{store:l}=this.opts;return Promise.resolve().then(()=>{let s=typeof h=="number"?Date.now()+h:null;return typeof e=="symbol"&&this.emit("error","symbol cannot be serialized"),e={value:e,expires:s},this.opts.serialize(e)}).then(s=>l.set(a,s,h)).then(()=>!0)}delete(r){let{store:e}=this.opts;if(Array.isArray(r)){let a=this._getKeyPrefixArray(r);if(e.deleteMany===void 0){let l=[];for(let s of a)l.push(e.delete(s));return Promise.allSettled(l).then(s=>s.every(d=>d.value===!0))}return Promise.resolve().then(()=>e.deleteMany(a))}let h=this._getKeyPrefix(r);return Promise.resolve().then(()=>e.delete(h))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let e=this._getKeyPrefix(r),{store:h}=this.opts;return Promise.resolve().then(async()=>typeof h.has=="function"?h.has(e):await h.get(e)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};c.exports=u}),ko=N((t,c)=>{"use strict";B();var n=Z("events"),o=Z("url"),i=go(),p=wo(),u=Do(),r=So(),e=ar(),h=Co(),a=Fo(),l=class{constructor(f,g){if(typeof f!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new a({uri:typeof g=="string"&&g,store:typeof g!="string"&&g,namespace:"cacheable-request"}),this.createCacheableRequest(f)}createCacheableRequest(f){return(g,b)=>{let _;if(typeof g=="string")_=d(o.parse(g)),g={};else if(g instanceof o.URL)_=d(o.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,...s(_)},g.headers=e(g.headers);let y=new n,D=i(o.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(F=>{x=()=>{A||(A=!0,F())}}),T=F=>{if(v&&!S.forceRefresh){F.status=F.statusCode;let I=u.fromObject(v.cachePolicy).revalidatedPolicy(S,F);if(!I.modified){let $=I.policy.responseHeaders();F=new r(v.statusCode,$,v.body,v.url),F.cachePolicy=I.policy,F.fromCache=!0}}F.fromCache||(F.cachePolicy=new u(S,F,S),F.fromCache=!1);let R;S.cache&&F.cachePolicy.storable()?(R=h(F),(async()=>{try{let I=p.buffer(F);if(await Promise.race([L,new Promise(W=>F.once("end",W))]),A)return;let $=await I,O={cachePolicy:F.cachePolicy.toObject(),url:F.url,statusCode:F.fromCache?v.statusCode:F.statusCode,body:$},q=S.strictTtl?F.cachePolicy.timeToLive():void 0;S.maxTtl&&(q=q?Math.min(q,S.maxTtl):S.maxTtl),await this.cache.set(w,O,q)}catch(I){y.emit("error",new l.CacheError(I))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(w)}catch(I){y.emit("error",new l.CacheError(I))}})(),y.emit("response",R||F),typeof b=="function"&&b(R||F)};try{let F=f(S,T);F.once("error",x),F.once("abort",x),y.emit("request",F)}catch(F){y.emit("error",new l.RequestError(F))}};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=u.fromObject(L.cachePolicy);if(T.satisfiesWithoutRevalidation(x)&&!x.forceRefresh){let F=T.responseHeaders(),R=new r(L.statusCode,F,L.body,L.url);R.cachePolicy=T,R.fromCache=!0,y.emit("response",R),typeof b=="function"&&b(R)}else v=L,x.headers=T.revalidationHeaders(x),E(x)},A=x=>y.emit("error",new l.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 l.CacheError(x))}})(),y}}};function s(f){let g={...f};return g.path=`${f.pathname||"/"}${f.search||""}`,delete g.pathname,delete g.search,g}function d(f){return{protocol:f.protocol,auth:f.auth,hostname:f.hostname||f.host||"localhost",port:f.port,pathname:f.pathname,search:f.search}}l.RequestError=class extends Error{constructor(f){super(f.message),this.name="RequestError",Object.assign(this,f)}},l.CacheError=class extends Error{constructor(f){super(f.message),this.name="CacheError",Object.assign(this,f)}},c.exports=l}),Ro=N((t,c)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];c.exports=(o,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let p=new Set(Object.keys(o).concat(n)),u={};for(let r of p)r in i||(u[r]={get(){let e=o[r];return typeof e=="function"?e.bind(o):e},set(e){o[r]=e},enumerable:!0,configurable:!1});return Object.defineProperties(i,u),o.once("aborted",()=>{i.destroy(),i.emit("aborted")}),o.once("close",()=>{o.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),Oo=N((t,c)=>{"use strict";B();var{Transform:n,PassThrough:o}=Z("stream"),i=Z("zlib"),p=Ro();c.exports=u=>{let r=(u.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return u;let e=r==="br";if(e&&typeof i.createBrotliDecompress!="function")return u.destroy(new Error("Brotli is not supported on Node.js < 12")),u;let h=!0,a=new n({transform(d,f,g){h=!1,g(null,d)},flush(d){d()}}),l=new o({autoDestroy:!1,destroy(d,f){u.destroy(),f(d)}}),s=e?i.createBrotliDecompress():i.createUnzip();return s.once("error",d=>{if(h&&!u.readable){l.end();return}l.destroy(d)}),p(u,l),u.pipe(a).pipe(s).pipe(l),l}}),rn=N((t,c)=>{"use strict";B();var n=class{constructor(o={}){if(!(o.maxSize&&o.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=o.maxSize,this.onEviction=o.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(o,i){if(this.cache.set(o,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[p,u]of this.oldCache.entries())this.onEviction(p,u);this.oldCache=this.cache,this.cache=new Map}}get(o){if(this.cache.has(o))return this.cache.get(o);if(this.oldCache.has(o)){let i=this.oldCache.get(o);return this.oldCache.delete(o),this._set(o,i),i}}set(o,i){return this.cache.has(o)?this.cache.set(o,i):this._set(o,i),this}has(o){return this.cache.has(o)||this.oldCache.has(o)}peek(o){if(this.cache.has(o))return this.cache.get(o);if(this.oldCache.has(o))return this.oldCache.get(o)}delete(o){let i=this.cache.delete(o);return i&&this._size--,this.oldCache.delete(o)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[o]of this)yield o}*values(){for(let[,o]of this)yield o}*[Symbol.iterator](){for(let o of this.cache)yield o;for(let o of this.oldCache){let[i]=o;this.cache.has(i)||(yield o)}}get size(){let o=0;for(let i of this.oldCache.keys())this.cache.has(i)||o++;return Math.min(this._size+o,this.maxSize)}};c.exports=n}),nn=N((t,c)=>{"use strict";B();var n=Z("events"),o=Z("tls"),i=Z("http2"),p=rn(),u=Symbol("currentStreamsCount"),r=Symbol("request"),e=Symbol("cachedOriginSet"),h=Symbol("gracefullyClosing"),a=["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"],l=(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},s=(y,D)=>y.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(y,D)=>{for(let w of y)w[e].length<D[e].length&&w[e].every(v=>D[e].includes(v))&&w[u]+D[u]<=D.remoteSettings.maxConcurrentStreams&&b(w)},f=(y,D)=>{for(let w of y)D[e].length<w[e].length&&D[e].every(v=>w[e].includes(v))&&D[u]+w[u]<=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[u]===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 p({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 a)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,F=-1,R;for(let I of L){let $=I.remoteSettings.maxConcurrentStreams;if($<T)break;if(I[e].includes(S)){let O=I[u];if(O>=$||I[h]||I.destroyed)continue;R||(T=$),O>F&&(R=I,F=O)}}if(R){if(w.length!==1){for(let{reject:I}of w){let $=new Error(`Expected the length of listeners to be 1, got ${w.length}.
|
15
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);I($)}return}w[0].resolve(R);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 F=i.connect(y,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(L),...D});F[u]=0,F[h]=!1;let R=()=>F[u]<F.remoteSettings.maxConcurrentStreams,I=!0;F.socket.once("session",O=>{this.tlsSessionCache.set(L,O)}),F.once("error",O=>{for(let{reject:q}of w)q(O);this.tlsSessionCache.delete(L)}),F.setTimeout(this.timeout,()=>{F.destroy()}),F.once("close",()=>{if(T){I&&this._freeSessionsCount--,this._sessionsCount--;let O=this.sessions[E];O.splice(O.indexOf(F),1),O.length===0&&delete this.sessions[E]}else{let O=new Error("Session closed without receiving a SETTINGS frame");O.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:q}of w)q(O);A()}this._tryToCreateNewSession(E,S)});let $=()=>{if(!(!(E in this.queue)||!R())){for(let O of F[e])if(O in this.queue[E]){let{listeners:q}=this.queue[E][O];for(;q.length!==0&&R();)q.shift().resolve(F);let W=this.queue[E];if(W[O].listeners.length===0&&(delete W[O],Object.keys(W).length===0)){delete this.queue[E];break}if(!R())break}}};F.on("origin",()=>{F[e]=F.originSet,R()&&($(),d(this.sessions[E],F))}),F.once("remoteSettings",()=>{if(F.ref(),F.unref(),this._sessionsCount++,x.destroyed){let O=new Error("Agent has been destroyed");for(let q of w)q.reject(O);F.destroy();return}F[e]=F.originSet;{let O=this.sessions;if(E in O){let q=O[E];q.splice(l(q,F,s),0,F)}else O[E]=[F]}this._freeSessionsCount+=1,T=!0,this.emit("session",F),$(),A(),F[u]===0&&this._freeSessionsCount>this.maxFreeSessions&&F.close(),w.length!==0&&(this.getSession(S,D,w),w.length=0),F.on("remoteSettings",()=>{$(),d(this.sessions[E],F)})}),F[r]=F.request,F.request=(O,q)=>{if(F[h])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=F[r](O,q);return F.ref(),++F[u],F[u]===F.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(I=R(),--F[u],!F.destroyed&&!F.closed&&(f(this.sessions[E],F),R()&&!F.closed)){I||(this._freeSessionsCount++,I=!0);let Q=F[u]===0;Q&&F.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||F[h])?F.close():(d(this.sessions[E],F),$())}}),W}}catch(F){for(let R of w)R.reject(F);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),o.connect(w,v,D)}closeFreeSessions(){for(let y of Object.values(this.sessions))for(let D of y)D[u]===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=u,_.kGracefullyClosing=h,c.exports={Agent:_,globalAgent:new _}}),sn=N((t,c)=>{"use strict";B();var{Readable:n}=Z("stream"),o=class extends n{constructor(i,p){super({highWaterMark:p,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,p){return this.req.setTimeout(i,p),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};c.exports=o}),on=N((t,c)=>{"use strict";B(),c.exports=n=>{let o={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&&(o.port=Number(n.port)),(n.username||n.password)&&(o.auth=`${n.username||""}:${n.password||""}`),o}}),To=N((t,c)=>{"use strict";B(),c.exports=(n,o,i)=>{for(let p of i)n.on(p,(...u)=>o.emit(p,...u))}}),Bo=N((t,c)=>{"use strict";B(),c.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),Po=N((t,c)=>{"use strict";B();var n=(o,i,p)=>{c.exports[i]=class extends o{constructor(...u){super(typeof p=="string"?p:p(u)),this.name=`${super.name} [${i}]`,this.code=i}}};n(TypeError,"ERR_INVALID_ARG_TYPE",o=>{let i=o[0].includes(".")?"property":"argument",p=o[1],u=Array.isArray(p);return u&&(p=`${p.slice(0,-1).join(", ")} or ${p.slice(-1)}`),`The "${o[0]}" ${i} must be ${u?"one of":"of"} type ${p}. Received ${typeof o[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",o=>`Protocol "${o[0]}" not supported. Expected "${o[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",o=>`Cannot ${o[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",o=>`${o[0]} must be a valid HTTP token [${o[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",o=>`Invalid value "${o[0]} for header "${o[1]}"`),n(TypeError,"ERR_INVALID_CHAR",o=>`Invalid character in ${o[0]} [${o[1]}]`)}),un=N((t,c)=>{"use strict";B();var n=Z("http2"),{Writable:o}=Z("stream"),{Agent:i,globalAgent:p}=nn(),u=sn(),r=on(),e=To(),h=Bo(),{ERR_INVALID_ARG_TYPE:a,ERR_INVALID_PROTOCOL:l,ERR_HTTP_HEADERS_SENT:s,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:f,ERR_INVALID_CHAR:g}=Po(),{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 o{constructor(F,R,I){super({autoDestroy:!1});let $=typeof F=="string"||F instanceof URL;if($&&(F=r(F instanceof URL?F:new URL(F))),typeof R=="function"||R===void 0?(I=R,R=$?F:{...F}):R={...F,...R},R.h2session)this[m]=R.h2session;else if(R.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof R.agent>"u"||R.agent===null)typeof R.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=R.createConnection):this.agent=p;else if(typeof R.agent.request=="function")this.agent=R.agent;else throw new a("options.agent",["Agent-like Object","undefined","false"],R.agent);if(R.protocol&&R.protocol!=="https:")throw new l(R.protocol,"https:");let O=R.port||R.defaultPort||this.agent&&this.agent.defaultPort||443,q=R.hostname||R.host||"localhost";delete R.hostname,delete R.host,delete R.port;let{timeout:W}=R;if(R.timeout=void 0,this[w]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=R.method||"GET",this.path=R.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,R.headers)for(let[Q,P]of Object.entries(R.headers))this.setHeader(Q,P);R.auth&&!("authorization"in this[w])&&(this[w].authorization="Basic "+Buffer.from(R.auth).toString("base64")),R.session=R.tlsSession,R.path=R.socketPath,this[E]=R,O===443?(this[v]=`https://${q}`,":authority"in this[w]||(this[w][":authority"]=q)):(this[v]=`https://${q}:${O}`,":authority"in this[w]||(this[w][":authority"]=`${q}:${O}`)),W&&this.setTimeout(W),I&&this.once("response",I),this[S]=!1}get method(){return this[w][_]}set method(F){F&&(this[w][_]=F.toUpperCase())}get path(){return this[w][y]}set path(F){F&&(this[w][y]=F)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(F,R,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(F,R,I);this._request?$():this[A].push($)}_final(F){if(this.destroyed)return;this.flushHeaders();let R=()=>{if(this._mustNotHaveABody){F();return}this._request.end(F)};this._request?R():this[A].push(R)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(F,R){this.res&&this.res._dump(),this._request&&this._request.destroy(),R(F)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let F=this.method===D,R=I=>{if(this._request=I,this.destroyed){I.destroy();return}F||e(I,this,["timeout","continue","close","error"]);let $=q=>(...W)=>{!this.writable&&!this.destroyed?q(...W):this.once("finish",()=>{q(...W)})};I.once("response",$((q,W,Q)=>{let P=new u(this.socket,I.readableHighWaterMark);this.res=P,P.req=this,P.statusCode=q[b],P.headers=q,P.rawHeaders=Q,P.once("end",()=>{this.aborted?(P.aborted=!0,P.emit("aborted")):(P.complete=!0,P.socket=null,P.connection=null)}),F?(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",$(q=>this.emit("information",{statusCode:q[b]}))),I.once("trailers",$((q,W,Q)=>{let{res:P}=this;P.trailers=q,P.rawTrailers=Q}));let{socket:O}=I.session;this.socket=O,this.connection=O;for(let q of this[A])q();this.emit("socket",this.socket)};if(this[m])try{R(this[m].request(this[w]))}catch(I){this.emit("error",I)}else{this.reusedSocket=!0;try{R(await this.agent.request(this[v],this[E],this[w]))}catch(I){this.emit("error",I)}}}getHeader(F){if(typeof F!="string")throw new a("name","string",F);return this[w][F.toLowerCase()]}get headersSent(){return this[S]}removeHeader(F){if(typeof F!="string")throw new a("name","string",F);if(this.headersSent)throw new s("remove");delete this[w][F.toLowerCase()]}setHeader(F,R){if(this.headersSent)throw new s("set");if(typeof F!="string"||!x.test(F)&&!h(F))throw new d("Header name",F);if(typeof R>"u")throw new f(R,F);if(L.test(R))throw new g("header content",F);this[w][F.toLowerCase()]=R}setNoDelay(){}setSocketKeepAlive(){}setTimeout(F,R){let I=()=>this._request.setTimeout(F,R);return this._request?I():this[A].push(I),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(F){}};c.exports=T}),Lo=N((t,c)=>{"use strict";B();var n=Z("tls");c.exports=(o={},i=n.connect)=>new Promise((p,u)=>{let r=!1,e,h=async()=>{await l,e.off("timeout",a),e.off("error",u),o.resolveSocket?(p({alpnProtocol:e.alpnProtocol,socket:e,timeout:r}),r&&(await Promise.resolve(),e.emit("timeout"))):(e.destroy(),p({alpnProtocol:e.alpnProtocol,timeout:r}))},a=async()=>{r=!0,h()},l=(async()=>{try{e=await i(o,h),e.on("error",u),e.once("timeout",a)}catch(s){u(s)}})()})}),Io=N((t,c)=>{"use strict";B();var n=Z("net");c.exports=o=>{let i=o.host,p=o.headers&&o.headers.host;return p&&(p.startsWith("[")?p.indexOf("]")===-1?i=p:i=p.slice(1,-1):i=p.split(":",1)[0]),n.isIP(i)?"":i}}),No=N((t,c)=>{"use strict";B();var n=Z("http"),o=Z("https"),i=Lo(),p=rn(),u=un(),r=Io(),e=on(),h=new p({maxSize:100}),a=new Map,l=(d,f,g)=>{f._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",f,g)};f.on("free",b);let _=()=>{d.removeSocket(f,g)};f.on("close",_);let y=()=>{d.removeSocket(f,g),f.off("close",_),f.off("free",b),f.off("agentRemove",y)};f.on("agentRemove",y),d.emit("free",f,g)},s=async d=>{let f=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!h.has(f)){if(a.has(f))return(await a.get(f)).alpnProtocol;let{path:g,agent:b}=d;d.path=d.socketPath;let _=i(d);a.set(f,_);try{let{socket:y,alpnProtocol:D}=await _;if(h.set(f,D),d.path=g,D==="h2")y.destroy();else{let{globalAgent:w}=o,v=o.Agent.prototype.createConnection;b?b.createConnection===v?l(b,y,d):y.destroy():w.createConnection===v?l(w,y,d):y.destroy()}return a.delete(f),D}catch(y){throw a.delete(f),y}}return h.get(f)};c.exports=async(d,f,g)=>{if((typeof d=="string"||d instanceof URL)&&(d=e(new URL(d))),typeof f=="function"&&(g=f,f=void 0),f={ALPNProtocols:["h2","http/1.1"],...d,...f,resolveSocket:!0},!Array.isArray(f.ALPNProtocols)||f.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");f.protocol=f.protocol||"https:";let b=f.protocol==="https:";f.host=f.hostname||f.host||"localhost",f.session=f.tlsSession,f.servername=f.servername||r(f),f.port=f.port||(b?443:80),f._defaultAgent=b?o.globalAgent:n.globalAgent;let _=f.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");f.agent=_[b?"https":"http"]}return b&&await s(f)==="h2"?(_&&(f.agent=_.http2),new u(f,g)):n.request(f,g)},c.exports.protocolCache=h}),jo=N((t,c)=>{"use strict";B();var n=Z("http2"),o=nn(),i=un(),p=sn(),u=No(),r=(h,a,l)=>new i(h,a,l),e=(h,a,l)=>{let s=new i(h,a,l);return s.end(),s};c.exports={...n,ClientRequest:i,IncomingMessage:p,...o,request:r,get:e,auto:u}}),an=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Vt();t.default=n=>c.default.nodeStream(n)&&c.default.function_(n.getBoundary)}),Mo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("fs"),n=Z("util"),o=Vt(),i=an(),p=n.promisify(c.stat);t.default=async(u,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!u)return 0;if(o.default.string(u))return Buffer.byteLength(u);if(o.default.buffer(u))return u.length;if(i.default(u))return n.promisify(u.getLength.bind(u))();if(u instanceof c.ReadStream){let{size:e}=await p(u.path);return e===0?void 0:e}}}),ln=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function c(n,o,i){let p={};for(let u of i)p[u]=(...r)=>{o.emit(u,...r)},n.on(u,p[u]);return()=>{for(let u of i)n.off(u,p[u])}}t.default=c}),$o=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{let c=[];return{once(n,o,i){n.once(o,i),c.push({origin:n,event:o,fn:i})},unhandleAll(){for(let n of c){let{origin:o,event:i,fn:p}=n;o.removeListener(i,p)}c.length=0}}}}),Ho=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;var c=Z("net"),n=$o(),o=Symbol("reentry"),i=()=>{},p=class extends Error{constructor(u,r){super(`Timeout awaiting '${r}' for ${u}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};t.TimeoutError=p,t.default=(u,r,e)=>{if(o in u)return i;u[o]=!0;let h=[],{once:a,unhandleAll:l}=n.default(),s=(_,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:f}=e,g=(_,y)=>{u.destroy(new p(_,y))},b=()=>{for(let _ of h)_();l()};if(u.once("error",_=>{if(b(),u.listenerCount("error")===0)throw _}),u.once("close",b),a(u,"response",_=>{a(_,"end",b)}),typeof r.request<"u"&&s(r.request,g,"request"),typeof r.socket<"u"){let _=()=>{g(r.socket,"socket")};u.setTimeout(r.socket,_),h.push(()=>{u.removeListener("timeout",_)})}return a(u,"socket",_=>{var y;let{socketPath:D}=u;if(_.connecting){let w=!!(D!=null?D:c.isIP((y=f!=null?f:d)!==null&&y!==void 0?y:"")!==0);if(typeof r.lookup<"u"&&!w&&typeof _.address().address>"u"){let v=s(r.lookup,g,"lookup");a(_,"lookup",v)}if(typeof r.connect<"u"){let v=()=>s(r.connect,g,"connect");w?a(_,"connect",v()):a(_,"lookup",m=>{m===null&&a(_,"connect",v())})}typeof r.secureConnect<"u"&&e.protocol==="https:"&&a(_,"connect",()=>{let v=s(r.secureConnect,g,"secureConnect");a(_,"secureConnect",v)})}if(typeof r.send<"u"){let w=()=>s(r.send,g,"send");_.connecting?a(_,"connect",()=>{a(u,"upload-complete",w())}):a(u,"upload-complete",w())}}),typeof r.response<"u"&&a(u,"upload-complete",()=>{let _=s(r.response,g,"response");a(u,"response",_)}),b}}),Uo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Vt();t.default=n=>{n=n;let o={protocol:n.protocol,hostname:c.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 c.default.string(n.port)&&n.port.length>0&&(o.port=Number(n.port)),(n.username||n.password)&&(o.auth=`${n.username||""}:${n.password||""}`),o}}),qo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("url"),n=["protocol","host","hostname","port","pathname","search"];t.default=(o,i)=>{var p,u;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!o){if(!i.protocol)throw new TypeError("No URL protocol specified");o=`${i.protocol}//${(u=(p=i.hostname)!==null&&p!==void 0?p:i.host)!==null&&u!==void 0?u:""}`}let r=new c.URL(o);if(i.path){let e=i.path.indexOf("?");e===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,e),i.search=i.path.slice(e+1)),delete i.path}for(let e of n)i[e]&&(r[e]=i[e].toString());return r}}),Go=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,o){typeof n=="object"?this.weakMap.set(n,o):this.map.set(n,o)}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)}};t.default=c}),cn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=async n=>{let o=[],i=0;for await(let p of n)o.push(p),i+=Buffer.byteLength(p);return Buffer.isBuffer(o[0])?Buffer.concat(o,i):Buffer.from(o.join(""))};t.default=c}),zo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.dnsLookupIpVersionToFamily=t.isDnsLookupIpVersion=void 0;var c={auto:0,ipv4:4,ipv6:6};t.isDnsLookupIpVersion=n=>n in c,t.dnsLookupIpVersionToFamily=n=>{if(t.isDnsLookupIpVersion(n))return c[n];throw new Error("Invalid DNS lookup IP version")}}),hn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseOk=void 0,t.isResponseOk=c=>{let{statusCode:n}=c,o=c.request.options.followRedirect?299:399;return n>=200&&n<=o||n===304}}),Wo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=new Set;t.default=n=>{c.has(n)||(c.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),Vo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Vt(),n=(o,i)=>{if(c.default.null_(o.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");c.assert.any([c.default.string,c.default.undefined],o.encoding),c.assert.any([c.default.boolean,c.default.undefined],o.resolveBodyOnly),c.assert.any([c.default.boolean,c.default.undefined],o.methodRewriting),c.assert.any([c.default.boolean,c.default.undefined],o.isStream),c.assert.any([c.default.string,c.default.undefined],o.responseType),o.responseType===void 0&&(o.responseType="text");let{retry:p}=o;if(i?o.retry={...i.retry}:o.retry={calculateDelay:u=>u.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},c.default.object(p)?(o.retry={...o.retry,...p},o.retry.methods=[...new Set(o.retry.methods.map(u=>u.toUpperCase()))],o.retry.statusCodes=[...new Set(o.retry.statusCodes)],o.retry.errorCodes=[...new Set(o.retry.errorCodes)]):c.default.number(p)&&(o.retry.limit=p),c.default.undefined(o.retry.maxRetryAfter)&&(o.retry.maxRetryAfter=Math.min(...[o.timeout.request,o.timeout.connect].filter(c.default.number))),c.default.object(o.pagination)){i&&(o.pagination={...i.pagination,...o.pagination});let{pagination:u}=o;if(!c.default.function_(u.transform))throw new Error("`options.pagination.transform` must be implemented");if(!c.default.function_(u.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!c.default.function_(u.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!c.default.function_(u.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return o.responseType==="json"&&o.headers.accept===void 0&&(o.headers.accept="application/json"),o};t.default=n}),Ko=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.retryAfterStatusCodes=void 0,t.retryAfterStatusCodes=new Set([413,429,503]);var c=({attemptCount:n,retryOptions:o,error:i,retryAfter:p})=>{if(n>o.limit)return 0;let u=o.methods.includes(i.options.method),r=o.errorCodes.includes(i.code),e=i.response&&o.statusCodes.includes(i.response.statusCode);if(!u||!r&&!e)return 0;if(i.response){if(p)return o.maxRetryAfter===void 0||p>o.maxRetryAfter?0:p;if(i.response.statusCode===413)return 0}let h=Math.random()*100;return 2**(n-1)*1e3+h};t.default=c}),Be=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedProtocolError=t.ReadError=t.TimeoutError=t.UploadError=t.CacheError=t.HTTPError=t.MaxRedirectsError=t.RequestError=t.setNonEnumerableProperties=t.knownHookEvents=t.withoutBody=t.kIsNormalizedAlready=void 0;var c=Z("util"),n=Z("stream"),o=Z("fs"),i=Z("url"),p=Z("http"),u=Z("http"),r=Z("https"),e=mo(),h=yo(),a=ko(),l=Oo(),s=jo(),d=ar(),f=Vt(),g=Mo(),b=an(),_=ln(),y=Ho(),D=Uo(),w=qo(),v=Go(),m=cn(),E=zo(),S=hn(),A=Wo(),x=Vo(),L=Ko(),T,F=Symbol("request"),R=Symbol("response"),I=Symbol("responseSize"),$=Symbol("downloadedSize"),O=Symbol("bodySize"),q=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),P=Symbol("isFromCache"),j=Symbol("cancelTimeouts"),k=Symbol("startedReading"),J=Symbol("stopReading"),G=Symbol("triggerRead"),tt=Symbol("body"),M=Symbol("jobs"),K=Symbol("originalResponse"),et=Symbol("retryTimeout");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");var st=f.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]),t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function lt(Y){for(let U in Y){let ot=Y[U];if(!f.default.string(ot)&&!f.default.number(ot)&&!f.default.boolean(ot)&&!f.default.null_(ot)&&!f.default.undefined(ot))throw new TypeError(`The \`searchParams\` value '${String(ot)}' must be a string, number, boolean or null`)}}function yt(Y){return f.default.object(Y)&&!("statusCode"in Y)}var dt=new v.default,H=async Y=>new Promise((U,ot)=>{let gt=ft=>{ot(ft)};Y.pending||U(),Y.once("error",gt),Y.once("ready",()=>{Y.off("error",gt),U()})}),V=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];t.setNonEnumerableProperties=(Y,U)=>{let ot={};for(let gt of Y)if(gt)for(let ft of C)ft in gt&&(ot[ft]={writable:!0,configurable:!0,enumerable:!1,value:gt[ft]});Object.defineProperties(U,ot)};var z=class extends Error{constructor(Y,U,ot){var gt,ft;if(super(Y),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(gt=U.code)!==null&>!==void 0?gt:"ERR_GOT_REQUEST_ERROR",ot instanceof Dt?(Object.defineProperty(this,"request",{enumerable:!1,value:ot}),Object.defineProperty(this,"response",{enumerable:!1,value:ot[R]}),Object.defineProperty(this,"options",{enumerable:!1,value:ot.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ot}),this.timings=(ft=this.request)===null||ft===void 0?void 0:ft.timings,f.default.string(U.stack)&&f.default.string(this.stack)){let ut=this.stack.indexOf(this.message)+this.message.length,pt=this.stack.slice(ut).split(`
|
16
|
-
`).reverse(),vt=U.stack.slice(U.stack.indexOf(U.message)+U.message.length).split(`
|
17
|
-
`).reverse();for(;vt.length!==0&&vt[0]===pt[0];)pt.shift();this.stack=`${this.stack.slice(0,ut)}${pt.reverse().join(`
|
18
|
-
`)}${vt.reverse().join(`
|
19
|
-
`)}`}}};t.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"}};t.MaxRedirectsError=X;var rt=class extends z{constructor(Y){super(`Response code ${Y.statusCode} (${Y.statusMessage})`,{},Y.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};t.HTTPError=rt;var ct=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}};t.CacheError=ct;var it=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}};t.UploadError=it;var at=class extends z{constructor(Y,U,ot){super(Y.message,Y,ot),this.name="TimeoutError",this.event=Y.event,this.timings=U}};t.TimeoutError=at;var nt=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}};t.ReadError=nt;var ht=class extends z{constructor(Y){super(`Unsupported protocol "${Y.url.protocol}"`,{},Y),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};t.UnsupportedProtocolError=ht;var bt=["socket","connect","continue","information","upgrade","timeout"],Dt=class extends n.Duplex{constructor(Y,U={},ot){super({autoDestroy:!1,highWaterMark:0}),this[$]=0,this[q]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[J]=!1,this[G]=!1,this[M]=[],this.retryCount=0,this._progressCallbacks=[];let gt=()=>this._unlockWrite(),ft=()=>this._lockWrite();this.on("pipe",Et=>{Et.prependListener("data",gt),Et.on("data",ft),Et.prependListener("end",gt),Et.on("end",ft)}),this.on("unpipe",Et=>{Et.off("data",gt),Et.off("data",ft),Et.off("end",gt),Et.off("end",ft)}),this.on("pipe",Et=>{Et instanceof u.IncomingMessage&&(this.options.headers={...Et.headers,...this.options.headers})});let{json:ut,body:pt,form:vt}=U;if((ut||pt||vt)&&this._lockWrite(),t.kIsNormalizedAlready in U)this.options=U;else try{this.options=this.constructor.normalizeArguments(Y,U,ot)}catch(Et){f.default.nodeStream(U.body)&&U.body.destroy(),this.destroy(Et);return}(async()=>{var Et;try{this.options.body instanceof o.ReadStream&&await H(this.options.body);let{url:Tt}=this.options;if(!Tt)throw new TypeError("Missing `url` property");if(this.requestUrl=Tt.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Et=this[F])===null||Et===void 0||Et.destroy();return}for(let Ot of this[M])Ot();this[M].length=0,this.requestInitialized=!0}catch(Tt){if(Tt instanceof z){this._beforeError(Tt);return}this.destroyed||this.destroy(Tt)}})()}static normalizeArguments(Y,U,ot){var gt,ft,ut,pt,vt;let Et=U;if(f.default.object(Y)&&!f.default.urlInstance(Y))U={...ot,...Y,...U};else{if(Y&&U&&U.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");U={...ot,...U},Y!==void 0&&(U.url=Y),f.default.urlInstance(U.url)&&(U.url=new i.URL(U.url.toString()))}if(U.cache===!1&&(U.cache=void 0),U.dnsCache===!1&&(U.dnsCache=void 0),f.assert.any([f.default.string,f.default.undefined],U.method),f.assert.any([f.default.object,f.default.undefined],U.headers),f.assert.any([f.default.string,f.default.urlInstance,f.default.undefined],U.prefixUrl),f.assert.any([f.default.object,f.default.undefined],U.cookieJar),f.assert.any([f.default.object,f.default.string,f.default.undefined],U.searchParams),f.assert.any([f.default.object,f.default.string,f.default.undefined],U.cache),f.assert.any([f.default.object,f.default.number,f.default.undefined],U.timeout),f.assert.any([f.default.object,f.default.undefined],U.context),f.assert.any([f.default.object,f.default.undefined],U.hooks),f.assert.any([f.default.boolean,f.default.undefined],U.decompress),f.assert.any([f.default.boolean,f.default.undefined],U.ignoreInvalidCookies),f.assert.any([f.default.boolean,f.default.undefined],U.followRedirect),f.assert.any([f.default.number,f.default.undefined],U.maxRedirects),f.assert.any([f.default.boolean,f.default.undefined],U.throwHttpErrors),f.assert.any([f.default.boolean,f.default.undefined],U.http2),f.assert.any([f.default.boolean,f.default.undefined],U.allowGetBody),f.assert.any([f.default.string,f.default.undefined],U.localAddress),f.assert.any([E.isDnsLookupIpVersion,f.default.undefined],U.dnsLookupIpVersion),f.assert.any([f.default.object,f.default.undefined],U.https),f.assert.any([f.default.boolean,f.default.undefined],U.rejectUnauthorized),U.https&&(f.assert.any([f.default.boolean,f.default.undefined],U.https.rejectUnauthorized),f.assert.any([f.default.function_,f.default.undefined],U.https.checkServerIdentity),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.certificateAuthority),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.key),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.certificate),f.assert.any([f.default.string,f.default.undefined],U.https.passphrase),f.assert.any([f.default.string,f.default.buffer,f.default.array,f.default.undefined],U.https.pfx)),f.assert.any([f.default.object,f.default.undefined],U.cacheOptions),f.default.string(U.method)?U.method=U.method.toUpperCase():U.method="GET",U.headers===(ot==null?void 0:ot.headers)?U.headers={...U.headers}:U.headers=d({...ot==null?void 0:ot.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!==(ot==null?void 0:ot.searchParams)){let _t;if(f.default.string(U.searchParams)||U.searchParams instanceof i.URLSearchParams)_t=new i.URLSearchParams(U.searchParams);else{lt(U.searchParams),_t=new i.URLSearchParams;for(let xt in U.searchParams){let Ft=U.searchParams[xt];Ft===null?_t.append(xt,""):Ft!==void 0&&_t.append(xt,Ft)}}(gt=ot==null?void 0:ot.searchParams)===null||gt===void 0||gt.forEach((xt,Ft)=>{_t.has(Ft)||_t.append(Ft,xt)}),U.searchParams=_t}if(U.username=(ft=U.username)!==null&&ft!==void 0?ft:"",U.password=(ut=U.password)!==null&&ut!==void 0?ut:"",f.default.undefined(U.prefixUrl)?U.prefixUrl=(pt=ot==null?void 0:ot.prefixUrl)!==null&&pt!==void 0?pt:"":(U.prefixUrl=U.prefixUrl.toString(),U.prefixUrl!==""&&!U.prefixUrl.endsWith("/")&&(U.prefixUrl+="/")),f.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(f.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:_t}=U;Object.defineProperty(U,"prefixUrl",{set:Ft=>{let St=U.url;if(!St.href.startsWith(Ft))throw new Error(`Cannot change \`prefixUrl\` from ${_t} to ${Ft}: ${St.href}`);U.url=new i.URL(Ft+St.href.slice(_t.length)),_t=Ft},get:()=>_t});let{protocol:xt}=U.url;if(xt==="unix:"&&(xt="http:",U.url=new i.URL(`http://unix${U.url.pathname}${U.url.search}`)),U.searchParams&&(U.url.search=U.searchParams.toString()),xt!=="http:"&&xt!=="https:")throw new ht(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:Tt}=U;if(Tt){let{setCookie:_t,getCookieString:xt}=Tt;f.assert.function_(_t),f.assert.function_(xt),_t.length===4&&xt.length===0&&(_t=c.promisify(_t.bind(U.cookieJar)),xt=c.promisify(xt.bind(U.cookieJar)),U.cookieJar={setCookie:_t,getCookieString:xt})}let{cache:Ot}=U;if(Ot&&(dt.has(Ot)||dt.set(Ot,new a((_t,xt)=>{let Ft=_t[F](_t,xt);return f.default.promise(Ft)&&(Ft.once=(St,At)=>{if(St==="error")Ft.catch(At);else if(St==="abort")(async()=>{try{(await Ft).once("abort",At)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${St}`);return Ft}),Ft},Ot))),U.cacheOptions={...U.cacheOptions},U.dnsCache===!0)T||(T=new h.default),U.dnsCache=T;else if(!f.default.undefined(U.dnsCache)&&!U.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${f.default(U.dnsCache)}`);f.default.number(U.timeout)?U.timeout={request:U.timeout}:ot&&U.timeout!==ot.timeout?U.timeout={...ot.timeout,...U.timeout}:U.timeout={...U.timeout},U.context||(U.context={});let xe=U.hooks===(ot==null?void 0:ot.hooks);U.hooks={...U.hooks};for(let _t of t.knownHookEvents)if(_t in U.hooks)if(f.default.array(U.hooks[_t]))U.hooks[_t]=[...U.hooks[_t]];else throw new TypeError(`Parameter \`${_t}\` must be an Array, got ${f.default(U.hooks[_t])}`);else U.hooks[_t]=[];if(ot&&!xe)for(let _t of t.knownHookEvents)ot.hooks[_t].length>0&&(U.hooks[_t]=[...ot.hooks[_t],...U.hooks[_t]]);if("family"in U&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ot!=null&&ot.https&&(U.https={...ot.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 _t in U.agent)if(_t!=="http"&&_t!=="https"&&_t!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${_t}\``)}return U.maxRedirects=(vt=U.maxRedirects)!==null&&vt!==void 0?vt:0,t.setNonEnumerableProperties([ot,Et],U),x.default(U,ot)}_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,ot=!f.default.undefined(Y.form),gt=!f.default.undefined(Y.json),ft=!f.default.undefined(Y.body),ut=ot||gt||ft,pt=t.withoutBody.has(Y.method)&&!(Y.method==="GET"&&Y.allowGetBody);if(this._cannotHaveBody=pt,ut){if(pt)throw new TypeError(`The \`${Y.method}\` method cannot be used with a body`);if([ft,ot,gt].filter(vt=>vt).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ft&&!(Y.body instanceof n.Readable)&&!f.default.string(Y.body)&&!f.default.buffer(Y.body)&&!b.default(Y.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ot&&!f.default.object(Y.form))throw new TypeError("The `form` option must be an Object");{let vt=!f.default.string(U["content-type"]);ft?(b.default(Y.body)&&vt&&(U["content-type"]=`multipart/form-data; boundary=${Y.body.getBoundary()}`),this[tt]=Y.body):ot?(vt&&(U["content-type"]="application/x-www-form-urlencoded"),this[tt]=new i.URLSearchParams(Y.form).toString()):(vt&&(U["content-type"]="application/json"),this[tt]=Y.stringifyJson(Y.json));let Et=await g.default(this[tt],Y.headers);f.default.undefined(U["content-length"])&&f.default.undefined(U["transfer-encoding"])&&!pt&&!f.default.undefined(Et)&&(U["content-length"]=String(Et))}}else pt?this._lockWrite():this._unlockWrite();this[O]=Number(U["content-length"])||void 0}async _onResponseBase(Y){let{options:U}=this,{url:ot}=U;this[K]=Y,U.decompress&&(Y=l(Y));let gt=Y.statusCode,ft=Y;ft.statusMessage=ft.statusMessage?ft.statusMessage:p.STATUS_CODES[gt],ft.url=U.url.toString(),ft.requestUrl=this.requestUrl,ft.redirectUrls=this.redirects,ft.request=this,ft.isFromCache=Y.fromCache||!1,ft.ip=this.ip,ft.retryCount=this.retryCount,this[P]=ft.isFromCache,this[I]=Number(Y.headers["content-length"])||void 0,this[R]=Y,Y.once("end",()=>{this[I]=this[$],this.emit("downloadProgress",this.downloadProgress)}),Y.once("error",pt=>{Y.destroy(),this._beforeError(new nt(pt,this))}),Y.once("aborted",()=>{this._beforeError(new nt({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let ut=Y.headers["set-cookie"];if(f.default.object(U.cookieJar)&&ut){let pt=ut.map(async vt=>U.cookieJar.setCookie(vt,ot.toString()));U.ignoreInvalidCookies&&(pt=pt.map(async vt=>vt.catch(()=>{})));try{await Promise.all(pt)}catch(vt){this._beforeError(vt);return}}if(U.followRedirect&&Y.headers.location&&V.has(gt)){if(Y.resume(),this[F]&&(this[j](),delete this[F],this[Q]()),(gt===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[tt]=void 0,delete U.headers["content-length"]),this.redirects.length>=U.maxRedirects){this._beforeError(new X(this));return}try{let pt=function(Ot){return Ot.protocol==="unix:"||Ot.hostname==="unix"},vt=Buffer.from(Y.headers.location,"binary").toString(),Et=new i.URL(vt,ot),Tt=Et.toString();if(decodeURI(Tt),!pt(ot)&&pt(Et)){this._beforeError(new z("Cannot redirect to UNIX socket",{},this));return}Et.hostname!==ot.hostname||Et.port!==ot.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="")):(Et.username=U.username,Et.password=U.password),this.redirects.push(Tt),U.url=Et;for(let Ot of U.hooks.beforeRedirect)await Ot(U,ft);this.emit("redirect",ft,U),await this._makeRequest()}catch(pt){this._beforeError(pt);return}return}if(U.isStream&&U.throwHttpErrors&&!S.isResponseOk(ft)){this._beforeError(new rt(ft));return}Y.on("readable",()=>{this[G]&&this._read()}),this.on("resume",()=>{Y.resume()}),this.on("pause",()=>{Y.pause()}),Y.once("end",()=>{this.push(null)}),this.emit("response",Y);for(let pt of this[W])if(!pt.headersSent){for(let vt in Y.headers){let Et=U.decompress?vt!=="content-encoding":!0,Tt=Y.headers[vt];Et&&pt.setHeader(vt,Tt)}pt.statusCode=gt}}async _onResponse(Y){try{await this._onResponseBase(Y)}catch(U){this._beforeError(U)}}_onRequest(Y){let{options:U}=this,{timeout:ot,url:gt}=U;e.default(Y),this[j]=y.default(Y,ot,gt);let ft=U.cache?"cacheableResponse":"response";Y.once(ft,vt=>{this._onResponse(vt)}),Y.once("error",vt=>{var Et;Y.destroy(),(Et=Y.res)===null||Et===void 0||Et.removeAllListeners("end"),vt=vt instanceof y.TimeoutError?new at(vt,this.timings,this):new z(vt.message,vt,this),this._beforeError(vt)}),this[Q]=_.default(Y,this,bt),this[F]=Y,this.emit("uploadProgress",this.uploadProgress);let ut=this[tt],pt=this.redirects.length===0?this:Y;f.default.nodeStream(ut)?(ut.pipe(pt),ut.once("error",vt=>{this._beforeError(new it(vt,this))})):(this._unlockWrite(),f.default.undefined(ut)?(this._cannotHaveBody||this._noPipe)&&(pt.end(),this._lockWrite()):(this._writeRequest(ut,void 0,()=>{}),pt.end(),this._lockWrite())),this.emit("request",Y)}async _createCacheableRequest(Y,U){return new Promise((ot,gt)=>{Object.assign(U,D.default(Y)),delete U.url;let ft,ut=dt.get(U.cache)(U,async pt=>{pt._readableState.autoDestroy=!1,ft&&(await ft).emit("cacheableResponse",pt),ot(pt)});U.url=Y,ut.once("error",gt),ut.once("request",async pt=>{ft=pt,ot(ft)})})}async _makeRequest(){var Y,U,ot,gt,ft;let{options:ut}=this,{headers:pt}=ut;for(let At in pt)if(f.default.undefined(pt[At]))delete pt[At];else if(f.default.null_(pt[At]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${At}\` header`);if(ut.decompress&&f.default.undefined(pt["accept-encoding"])&&(pt["accept-encoding"]=st?"gzip, deflate, br":"gzip, deflate"),ut.cookieJar){let At=await ut.cookieJar.getCookieString(ut.url.toString());f.default.nonEmptyString(At)&&(ut.headers.cookie=At)}for(let At of ut.hooks.beforeRequest){let Fe=await At(ut);if(!f.default.undefined(Fe)){ut.request=()=>Fe;break}}ut.body&&this[tt]!==ut.body&&(this[tt]=ut.body);let{agent:vt,request:Et,timeout:Tt,url:Ot}=ut;if(ut.dnsCache&&!("lookup"in ut)&&(ut.lookup=ut.dnsCache.lookup),Ot.hostname==="unix"){let At=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Ot.pathname}${Ot.search}`);if(At!=null&&At.groups){let{socketPath:Fe,path:xi}=At.groups;Object.assign(ut,{socketPath:Fe,path:xi,host:""})}}let xe=Ot.protocol==="https:",_t;ut.http2?_t=s.auto:_t=xe?r.request:p.request;let xt=(Y=ut.request)!==null&&Y!==void 0?Y:_t,Ft=ut.cache?this._createCacheableRequest:xt;vt&&!ut.http2&&(ut.agent=vt[xe?"https":"http"]),ut[F]=xt,delete ut.request,delete ut.timeout;let St=ut;if(St.shared=(U=ut.cacheOptions)===null||U===void 0?void 0:U.shared,St.cacheHeuristic=(ot=ut.cacheOptions)===null||ot===void 0?void 0:ot.cacheHeuristic,St.immutableMinTimeToLive=(gt=ut.cacheOptions)===null||gt===void 0?void 0:gt.immutableMinTimeToLive,St.ignoreCargoCult=(ft=ut.cacheOptions)===null||ft===void 0?void 0:ft.ignoreCargoCult,ut.dnsLookupIpVersion!==void 0)try{St.family=E.dnsLookupIpVersionToFamily(ut.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}ut.https&&("rejectUnauthorized"in ut.https&&(St.rejectUnauthorized=ut.https.rejectUnauthorized),ut.https.checkServerIdentity&&(St.checkServerIdentity=ut.https.checkServerIdentity),ut.https.certificateAuthority&&(St.ca=ut.https.certificateAuthority),ut.https.certificate&&(St.cert=ut.https.certificate),ut.https.key&&(St.key=ut.https.key),ut.https.passphrase&&(St.passphrase=ut.https.passphrase),ut.https.pfx&&(St.pfx=ut.https.pfx));try{let At=await Ft(Ot,St);f.default.undefined(At)&&(At=_t(Ot,St)),ut.request=Et,ut.timeout=Tt,ut.agent=vt,ut.https&&("rejectUnauthorized"in ut.https&&delete St.rejectUnauthorized,ut.https.checkServerIdentity&&delete St.checkServerIdentity,ut.https.certificateAuthority&&delete St.ca,ut.https.certificate&&delete St.cert,ut.https.key&&delete St.key,ut.https.passphrase&&delete St.passphrase,ut.https.pfx&&delete St.pfx),yt(At)?this._onRequest(At):this.writable?(this.once("finish",()=>{this._onResponse(At)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(At)}catch(At){throw At instanceof a.CacheError?new ct(At,this):new z(At.message,At,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,ot=this.retryCount+1;this[J]=!0,Y instanceof z||(Y=new z(Y.message,Y,this));let gt=Y,{response:ft}=gt;(async()=>{if(ft&&!ft.body){ft.setEncoding(this._readableState.encoding);try{ft.rawBody=await m.default(ft),ft.body=ft.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let ut;try{let pt;ft&&"retry-after"in ft.headers&&(pt=Number(ft.headers["retry-after"]),Number.isNaN(pt)?(pt=Date.parse(ft.headers["retry-after"])-Date.now(),pt<=0&&(pt=1)):pt*=1e3),ut=await U.retry.calculateDelay({attemptCount:ot,retryOptions:U.retry,error:gt,retryAfter:pt,computedValue:L.default({attemptCount:ot,retryOptions:U.retry,error:gt,retryAfter:pt,computedValue:0})})}catch(pt){this._error(new z(pt.message,pt,this));return}if(ut){let pt=async()=>{try{for(let vt of this.options.hooks.beforeRetry)await vt(this.options,gt,ot)}catch(vt){this._error(new z(vt.message,Y,this));return}this.destroyed||(this.destroy(),this.emit("retry",ot,Y))};this[et]=setTimeout(pt,ut);return}}this._error(gt)})()}_read(){this[G]=!0;let Y=this[R];if(Y&&!this[J]){Y.readableLength&&(this[G]=!1);let U;for(;(U=Y.read())!==null;){this[$]+=U.length,this[k]=!0;let ot=this.downloadProgress;ot.percent<1&&this.emit("downloadProgress",ot),this.push(U)}}}_write(Y,U,ot){let gt=()=>{this._writeRequest(Y,U,ot)};this.requestInitialized?gt():this[M].push(gt)}_writeRequest(Y,U,ot){this[F].destroyed||(this._progressCallbacks.push(()=>{this[q]+=Buffer.byteLength(Y,U);let gt=this.uploadProgress;gt.percent<1&&this.emit("uploadProgress",gt)}),this[F].write(Y,U,gt=>{!gt&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ot(gt)}))}_final(Y){let U=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(F in this)){Y();return}if(this[F].destroyed){Y();return}this[F].end(ot=>{ot||(this[O]=this[q],this.emit("uploadProgress",this.uploadProgress),this[F].emit("upload-complete")),Y(ot)})};this.requestInitialized?U():this[M].push(U)}_destroy(Y,U){var ot;this[J]=!0,clearTimeout(this[et]),F in this&&(this[j](),!((ot=this[R])===null||ot===void 0)&&ot.complete||this[F].destroy()),Y!==null&&!f.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,ot;return((U=(Y=this[F])===null||Y===void 0?void 0:Y.destroyed)!==null&&U!==void 0?U:this.destroyed)&&!(!((ot=this[K])===null||ot===void 0)&&ot.complete)}get socket(){var Y,U;return(U=(Y=this[F])===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[O]?Y=this[q]/this[O]:this[O]===this[q]?Y=1:Y=0,{percent:Y,transferred:this[q],total:this[O]}}get timings(){var Y;return(Y=this[F])===null||Y===void 0?void 0:Y.timings}get isFromCache(){return this[P]}pipe(Y,U){if(this[k])throw new Error("Failed to pipe. The response has been emitted already.");return Y instanceof u.ServerResponse&&this[W].add(Y),super.pipe(Y,U)}unpipe(Y){return Y instanceof u.ServerResponse&&this[W].delete(Y),super.unpipe(Y),this}};t.default=Dt}),Pe=N(t=>{"use strict";B();var c=t&&t.__createBinding||(Object.create?function(u,r,e,h){h===void 0&&(h=e),Object.defineProperty(u,h,{enumerable:!0,get:function(){return r[e]}})}:function(u,r,e,h){h===void 0&&(h=e),u[h]=r[e]}),n=t&&t.__exportStar||function(u,r){for(var e in u)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&c(r,u,e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=t.ParseError=void 0;var o=Be(),i=class extends o.RequestError{constructor(u,r){let{options:e}=r.request;super(`${u.message} in "${e.url.toString()}"`,u,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};t.ParseError=i;var p=class extends o.RequestError{constructor(u){super("Promise was canceled",{},u),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};t.CancelError=p,n(Be(),t)}),Yo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Pe(),n=(o,i,p,u)=>{let{rawBody:r}=o;try{if(i==="text")return r.toString(u);if(i==="json")return r.length===0?"":p(r.toString());if(i==="buffer")return r;throw new c.ParseError({message:`Unknown body type '${i}'`,name:"Error"},o)}catch(e){throw new c.ParseError(e,o)}};t.default=n}),fn=N(t=>{"use strict";B();var c=t&&t.__createBinding||(Object.create?function(f,g,b,_){_===void 0&&(_=b),Object.defineProperty(f,_,{enumerable:!0,get:function(){return g[b]}})}:function(f,g,b,_){_===void 0&&(_=b),f[_]=g[b]}),n=t&&t.__exportStar||function(f,g){for(var b in f)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&c(g,f,b)};Object.defineProperty(t,"__esModule",{value:!0});var o=Z("events"),i=Vt(),p=fo(),u=Pe(),r=Yo(),e=Be(),h=ln(),a=cn(),l=hn(),s=["request","response","redirect","uploadProgress","downloadProgress"];function d(f){let g,b,_=new o.EventEmitter,y=new p((w,v,m)=>{let E=S=>{let A=new e.default(void 0,f);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new u.CancelError(A))),g=A,A.once("response",async T=>{var F;if(T.retryCount=S,T.request.aborted)return;let R;try{R=await a.default(A),T.rawBody=R}catch{return}if(A._isAboutToError)return;let I=((F=T.headers["content-encoding"])!==null&&F!==void 0?F:"").toLowerCase(),$=["gzip","deflate","br"].includes(I),{options:O}=A;if($&&!O.decompress)T.body=R;else try{T.body=r.default(T,O.responseType,O.parseJson,O.encoding)}catch(q){if(T.body=R.toString(),l.isResponseOk(T)){A._beforeError(q);return}}try{for(let[q,W]of O.hooks.afterResponse.entries())T=await W(T,async Q=>{let P=e.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},O);P.hooks.afterResponse=P.hooks.afterResponse.slice(0,q);for(let k of P.hooks.beforeRetry)await k(P);let j=d(P);return m(()=>{j.catch(()=>{}),j.cancel()}),j})}catch(q){A._beforeError(new u.RequestError(q.message,q,A));return}if(b=T,!l.isResponseOk(T)){A._beforeError(new u.HTTPError(T));return}A.destroy(),w(A.options.resolveBodyOnly?T.body:T)});let x=T=>{if(y.isCanceled)return;let{options:F}=A;if(T instanceof u.HTTPError&&!F.throwHttpErrors){let{response:R}=T;w(A.options.resolveBodyOnly?R.body:R);return}v(T)};A.once("error",x);let L=A.options.body;A.once("retry",(T,F)=>{var R,I;if(L===((R=F.request)===null||R===void 0?void 0:R.options.body)&&i.default.nodeStream((I=F.request)===null||I===void 0?void 0:I.options.body)){x(F);return}E(T)}),h.default(A,_,s)};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}t.default=d,n(Pe(),t)}),Jo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Pe();function n(o,...i){let p=(async()=>{if(o instanceof c.RequestError)try{for(let r of i)if(r)for(let e of r)o=await e(o)}catch(r){o=r}throw o})(),u=()=>p;return p.json=u,p.text=u,p.buffer=u,p.on=u,p}t.default=n}),Zo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Vt();function n(o){for(let i of Object.values(o))(c.default.plainObject(i)||c.default.array(i))&&n(i);return Object.freeze(o)}t.default=n}),Xo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0})}),Hr=N(t=>{"use strict";B();var c=t&&t.__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=t&&t.__exportStar||function(_,y){for(var D in _)D!=="default"&&!Object.prototype.hasOwnProperty.call(y,D)&&c(y,_,D)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHandler=void 0;var o=Vt(),i=fn(),p=Jo(),u=Be(),r=Zo(),e={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},h=async _=>new Promise(y=>{setTimeout(y,_)}),{normalizeArguments:a}=u.default,l=(..._)=>{let y;for(let D of _)y=a(void 0,D,y);return y},s=_=>_.isStream?new u.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,f=["get","post","put","patch","head","delete"];t.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?s:x);if(o.default.plainObject(w)){let L={...w,...v};u.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(F){L=F}let T=a(w,v,m!=null?m:_.options);if(T[u.kIsNormalizedAlready]=!0,L)throw new i.RequestError(L.message,L,T);return x(T)}catch(L){if(v.isStream)throw L;return p.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!==t.defaultHandler),m.length===0&&m.push(t.defaultHandler),b({options:l(...v),handlers:m,mutableDefaults:!!E})};let D=async function*(w,v){let m=a(w,v,_.options);m.resolveBodyOnly=!1;let E=m.pagination;if(!o.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),F=[];for(let I of T)if(E.filter(I,S,F)&&(!E.shouldContinue(I,S,F)||(yield I,E.stackAllItems&&S.push(I),F.push(I),--A<=0)))return;let R=E.paginate(L,S,F);if(R===!1)return;R===L.request.options?m=L.request.options:R!==void 0&&(m=a(void 0,R,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 f)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,e),Object.defineProperty(y,"defaults",{value:_.mutableDefaults?_:r.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),y.mergeOptions=l,y};t.default=b,n(Xo(),t)}),Qo=N((t,c)=>{"use strict";B();var n=t&&t.__createBinding||(Object.create?function(e,h,a,l){l===void 0&&(l=a),Object.defineProperty(e,l,{enumerable:!0,get:function(){return h[a]}})}:function(e,h,a,l){l===void 0&&(l=a),e[l]=h[a]}),o=t&&t.__exportStar||function(e,h){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(h,a)&&n(h,e,a)};Object.defineProperty(t,"__esModule",{value:!0});var i=Z("url"),p=Hr(),u={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:e})=>e},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:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let h=e.headers.link.split(","),a;for(let l of h){let s=l.split(";");if(s[1].includes("next")){a=s[0].trimStart().trim(),a=a.slice(1,-1);break}}return a?{url:new i.URL(a)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[p.defaultHandler],mutableDefaults:!1},r=p.default(u);t.default=r,c.exports=r,c.exports.default=r,c.exports.__esModule=!0,o(Hr(),t),o(fn(),t)});B();var jf=Ct(ho()),Mf=Ct(Qo()),$f=(0,dn.promisify)(pn.Stream.pipeline);var tu=N((t,c)=>{"use strict";B(),c.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]}}),mn=N((t,c)=>{B();var n=tu(),o={};for(let u of Object.keys(n))o[n[u]]=u;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};c.exports=i;for(let u of Object.keys(i)){if(!("channels"in i[u]))throw new Error("missing channels property: "+u);if(!("labels"in i[u]))throw new Error("missing channel labels property: "+u);if(i[u].labels.length!==i[u].channels)throw new Error("channel and label counts mismatch: "+u);let{channels:r,labels:e}=i[u];delete i[u].channels,delete i[u].labels,Object.defineProperty(i[u],"channels",{value:r}),Object.defineProperty(i[u],"labels",{value:e})}i.rgb.hsl=function(u){let r=u[0]/255,e=u[1]/255,h=u[2]/255,a=Math.min(r,e,h),l=Math.max(r,e,h),s=l-a,d,f;l===a?d=0:r===l?d=(e-h)/s:e===l?d=2+(h-r)/s:h===l&&(d=4+(r-e)/s),d=Math.min(d*60,360),d<0&&(d+=360);let g=(a+l)/2;return l===a?f=0:g<=.5?f=s/(l+a):f=s/(2-l-a),[d,f*100,g*100]},i.rgb.hsv=function(u){let r,e,h,a,l,s=u[0]/255,d=u[1]/255,f=u[2]/255,g=Math.max(s,d,f),b=g-Math.min(s,d,f),_=function(y){return(g-y)/6/b+1/2};return b===0?(a=0,l=0):(l=b/g,r=_(s),e=_(d),h=_(f),s===g?a=h-e:d===g?a=1/3+r-h:f===g&&(a=2/3+e-r),a<0?a+=1:a>1&&(a-=1)),[a*360,l*100,g*100]},i.rgb.hwb=function(u){let r=u[0],e=u[1],h=u[2],a=i.rgb.hsl(u)[0],l=1/255*Math.min(r,Math.min(e,h));return h=1-1/255*Math.max(r,Math.max(e,h)),[a,l*100,h*100]},i.rgb.cmyk=function(u){let r=u[0]/255,e=u[1]/255,h=u[2]/255,a=Math.min(1-r,1-e,1-h),l=(1-r-a)/(1-a)||0,s=(1-e-a)/(1-a)||0,d=(1-h-a)/(1-a)||0;return[l*100,s*100,d*100,a*100]};function p(u,r){return(u[0]-r[0])**2+(u[1]-r[1])**2+(u[2]-r[2])**2}i.rgb.keyword=function(u){let r=o[u];if(r)return r;let e=1/0,h;for(let a of Object.keys(n)){let l=n[a],s=p(u,l);s<e&&(e=s,h=a)}return h},i.keyword.rgb=function(u){return n[u]},i.rgb.xyz=function(u){let r=u[0]/255,e=u[1]/255,h=u[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,h=h>.04045?((h+.055)/1.055)**2.4:h/12.92;let a=r*.4124+e*.3576+h*.1805,l=r*.2126+e*.7152+h*.0722,s=r*.0193+e*.1192+h*.9505;return[a*100,l*100,s*100]},i.rgb.lab=function(u){let r=i.rgb.xyz(u),e=r[0],h=r[1],a=r[2];e/=95.047,h/=100,a/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,h=h>.008856?h**(1/3):7.787*h+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let l=116*h-16,s=500*(e-h),d=200*(h-a);return[l,s,d]},i.hsl.rgb=function(u){let r=u[0]/360,e=u[1]/100,h=u[2]/100,a,l,s;if(e===0)return s=h*255,[s,s,s];h<.5?a=h*(1+e):a=h+e-h*e;let d=2*h-a,f=[0,0,0];for(let g=0;g<3;g++)l=r+1/3*-(g-1),l<0&&l++,l>1&&l--,6*l<1?s=d+(a-d)*6*l:2*l<1?s=a:3*l<2?s=d+(a-d)*(2/3-l)*6:s=d,f[g]=s*255;return f},i.hsl.hsv=function(u){let r=u[0],e=u[1]/100,h=u[2]/100,a=e,l=Math.max(h,.01);h*=2,e*=h<=1?h:2-h,a*=l<=1?l:2-l;let s=(h+e)/2,d=h===0?2*a/(l+a):2*e/(h+e);return[r,d*100,s*100]},i.hsv.rgb=function(u){let r=u[0]/60,e=u[1]/100,h=u[2]/100,a=Math.floor(r)%6,l=r-Math.floor(r),s=255*h*(1-e),d=255*h*(1-e*l),f=255*h*(1-e*(1-l));switch(h*=255,a){case 0:return[h,f,s];case 1:return[d,h,s];case 2:return[s,h,f];case 3:return[s,d,h];case 4:return[f,s,h];case 5:return[h,s,d]}},i.hsv.hsl=function(u){let r=u[0],e=u[1]/100,h=u[2]/100,a=Math.max(h,.01),l,s;s=(2-e)*h;let d=(2-e)*a;return l=e*a,l/=d<=1?d:2-d,l=l||0,s/=2,[r,l*100,s*100]},i.hwb.rgb=function(u){let r=u[0]/360,e=u[1]/100,h=u[2]/100,a=e+h,l;a>1&&(e/=a,h/=a);let s=Math.floor(6*r),d=1-h;l=6*r-s,s&1&&(l=1-l);let f=e+l*(d-e),g,b,_;switch(s){default:case 6:case 0:g=d,b=f,_=e;break;case 1:g=f,b=d,_=e;break;case 2:g=e,b=d,_=f;break;case 3:g=e,b=f,_=d;break;case 4:g=f,b=e,_=d;break;case 5:g=d,b=e,_=f;break}return[g*255,b*255,_*255]},i.cmyk.rgb=function(u){let r=u[0]/100,e=u[1]/100,h=u[2]/100,a=u[3]/100,l=1-Math.min(1,r*(1-a)+a),s=1-Math.min(1,e*(1-a)+a),d=1-Math.min(1,h*(1-a)+a);return[l*255,s*255,d*255]},i.xyz.rgb=function(u){let r=u[0]/100,e=u[1]/100,h=u[2]/100,a,l,s;return a=r*3.2406+e*-1.5372+h*-.4986,l=r*-.9689+e*1.8758+h*.0415,s=r*.0557+e*-.204+h*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[a*255,l*255,s*255]},i.xyz.lab=function(u){let r=u[0],e=u[1],h=u[2];r/=95.047,e/=100,h/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,h=h>.008856?h**(1/3):7.787*h+16/116;let a=116*e-16,l=500*(r-e),s=200*(e-h);return[a,l,s]},i.lab.xyz=function(u){let r=u[0],e=u[1],h=u[2],a,l,s;l=(r+16)/116,a=e/500+l,s=l-h/200;let d=l**3,f=a**3,g=s**3;return l=d>.008856?d:(l-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,s=g>.008856?g:(s-16/116)/7.787,a*=95.047,l*=100,s*=108.883,[a,l,s]},i.lab.lch=function(u){let r=u[0],e=u[1],h=u[2],a;a=Math.atan2(h,e)*360/2/Math.PI,a<0&&(a+=360);let l=Math.sqrt(e*e+h*h);return[r,l,a]},i.lch.lab=function(u){let r=u[0],e=u[1],h=u[2]/360*2*Math.PI,a=e*Math.cos(h),l=e*Math.sin(h);return[r,a,l]},i.rgb.ansi16=function(u,r=null){let[e,h,a]=u,l=r===null?i.rgb.hsv(u)[2]:r;if(l=Math.round(l/50),l===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(h/255)<<1|Math.round(e/255));return l===2&&(s+=60),s},i.hsv.ansi16=function(u){return i.rgb.ansi16(i.hsv.rgb(u),u[2])},i.rgb.ansi256=function(u){let r=u[0],e=u[1],h=u[2];return r===e&&e===h?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(e/255*5)+Math.round(h/255*5)},i.ansi16.rgb=function(u){let r=u%10;if(r===0||r===7)return u>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let e=(~~(u>50)+1)*.5,h=(r&1)*e*255,a=(r>>1&1)*e*255,l=(r>>2&1)*e*255;return[h,a,l]},i.ansi256.rgb=function(u){if(u>=232){let l=(u-232)*10+8;return[l,l,l]}u-=16;let r,e=Math.floor(u/36)/5*255,h=Math.floor((r=u%36)/6)/5*255,a=r%6/5*255;return[e,h,a]},i.rgb.hex=function(u){let r=(((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.hex.rgb=function(u){let r=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let e=r[0];r[0].length===3&&(e=e.split("").map(d=>d+d).join(""));let h=parseInt(e,16),a=h>>16&255,l=h>>8&255,s=h&255;return[a,l,s]},i.rgb.hcg=function(u){let r=u[0]/255,e=u[1]/255,h=u[2]/255,a=Math.max(Math.max(r,e),h),l=Math.min(Math.min(r,e),h),s=a-l,d,f;return s<1?d=l/(1-s):d=0,s<=0?f=0:a===r?f=(e-h)/s%6:a===e?f=2+(h-r)/s:f=4+(r-e)/s,f/=6,f%=1,[f*360,s*100,d*100]},i.hsl.hcg=function(u){let r=u[1]/100,e=u[2]/100,h=e<.5?2*r*e:2*r*(1-e),a=0;return h<1&&(a=(e-.5*h)/(1-h)),[u[0],h*100,a*100]},i.hsv.hcg=function(u){let r=u[1]/100,e=u[2]/100,h=r*e,a=0;return h<1&&(a=(e-h)/(1-h)),[u[0],h*100,a*100]},i.hcg.rgb=function(u){let r=u[0]/360,e=u[1]/100,h=u[2]/100;if(e===0)return[h*255,h*255,h*255];let a=[0,0,0],l=r%1*6,s=l%1,d=1-s,f=0;switch(Math.floor(l)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=d,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=d,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=d}return f=(1-e)*h,[(e*a[0]+f)*255,(e*a[1]+f)*255,(e*a[2]+f)*255]},i.hcg.hsv=function(u){let r=u[1]/100,e=u[2]/100,h=r+e*(1-r),a=0;return h>0&&(a=r/h),[u[0],a*100,h*100]},i.hcg.hsl=function(u){let r=u[1]/100,e=u[2]/100*(1-r)+.5*r,h=0;return e>0&&e<.5?h=r/(2*e):e>=.5&&e<1&&(h=r/(2*(1-e))),[u[0],h*100,e*100]},i.hcg.hwb=function(u){let r=u[1]/100,e=u[2]/100,h=r+e*(1-r);return[u[0],(h-r)*100,(1-h)*100]},i.hwb.hcg=function(u){let r=u[1]/100,e=u[2]/100,h=1-e,a=h-r,l=0;return a<1&&(l=(h-a)/(1-a)),[u[0],a*100,l*100]},i.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},i.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},i.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},i.gray.hsl=function(u){return[0,0,u[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(u){return[0,100,u[0]]},i.gray.cmyk=function(u){return[0,0,0,u[0]]},i.gray.lab=function(u){return[u[0],0,0]},i.gray.hex=function(u){let r=Math.round(u[0]/100*255)&255,e=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.rgb.gray=function(u){return[(u[0]+u[1]+u[2])/3/255*100]}}),eu=N((t,c)=>{B();var n=mn();function o(){let r={},e=Object.keys(n);for(let h=e.length,a=0;a<h;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){let e=o(),h=[r];for(e[r].distance=0;h.length;){let a=h.pop(),l=Object.keys(n[a]);for(let s=l.length,d=0;d<s;d++){let f=l[d],g=e[f];g.distance===-1&&(g.distance=e[a].distance+1,g.parent=a,h.unshift(f))}}return e}function p(r,e){return function(h){return e(r(h))}}function u(r,e){let h=[e[r].parent,r],a=n[e[r].parent][r],l=e[r].parent;for(;e[l].parent;)h.unshift(e[l].parent),a=p(n[e[l].parent][l],a),l=e[l].parent;return a.conversion=h,a}c.exports=function(r){let e=i(r),h={},a=Object.keys(e);for(let l=a.length,s=0;s<l;s++){let d=a[s];e[d].parent!==null&&(h[d]=u(d,e))}return h}}),ru=N((t,c)=>{B();var n=mn(),o=eu(),i={},p=Object.keys(n);function u(e){let h=function(...a){let l=a[0];return l==null?l:(l.length>1&&(a=l),e(a))};return"conversion"in e&&(h.conversion=e.conversion),h}function r(e){let h=function(...a){let l=a[0];if(l==null)return l;l.length>1&&(a=l);let s=e(a);if(typeof s=="object")for(let d=s.length,f=0;f<d;f++)s[f]=Math.round(s[f]);return s};return"conversion"in e&&(h.conversion=e.conversion),h}p.forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let h=o(e);Object.keys(h).forEach(a=>{let l=h[a];i[e][a]=r(l),i[e][a].raw=u(l)})}),c.exports=i}),yn=N((t,c)=>{"use strict";B();var n=(l,s)=>(...d)=>`\x1B[${l(...d)+s}m`,o=(l,s)=>(...d)=>{let f=l(...d);return`\x1B[${38+s};5;${f}m`},i=(l,s)=>(...d)=>{let f=l(...d);return`\x1B[${38+s};2;${f[0]};${f[1]};${f[2]}m`},p=l=>l,u=(l,s,d)=>[l,s,d],r=(l,s,d)=>{Object.defineProperty(l,s,{get:()=>{let f=d();return Object.defineProperty(l,s,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})},e,h=(l,s,d,f)=>{e===void 0&&(e=ru());let g=f?10:0,b={};for(let[_,y]of Object.entries(e)){let D=_==="ansi16"?"ansi":_;_===s?b[D]=l(d,g):typeof y=="object"&&(b[D]=l(y[s],g))}return b};function a(){let l=new Map,s={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]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(let[d,f]of Object.entries(s)){for(let[g,b]of Object.entries(f))s[g]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},f[g]=s[g],l.set(b[0],b[1]);Object.defineProperty(s,d,{value:f,enumerable:!1})}return Object.defineProperty(s,"codes",{value:l,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",r(s.color,"ansi",()=>h(n,"ansi16",p,!1)),r(s.color,"ansi256",()=>h(o,"ansi256",p,!1)),r(s.color,"ansi16m",()=>h(i,"rgb",u,!1)),r(s.bgColor,"ansi",()=>h(n,"ansi16",p,!0)),r(s.bgColor,"ansi256",()=>h(o,"ansi256",p,!0)),r(s.bgColor,"ansi16m",()=>h(i,"rgb",u,!0)),s}Object.defineProperty(c,"exports",{enumerable:!0,get:a})}),nu=N((t,c)=>{"use strict";B(),c.exports=(n,o=process.argv)=>{let i=n.startsWith("-")?"":n.length===1?"-":"--",p=o.indexOf(i+n),u=o.indexOf("--");return p!==-1&&(u===-1||p<u)}}),gn=N((t,c)=>{"use strict";B();var n=Z("os"),o=Z("tty"),i=nu(),{env:p}=process,u;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?u=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(u=1),"FORCE_COLOR"in p&&(p.FORCE_COLOR==="true"?u=1:p.FORCE_COLOR==="false"?u=0:u=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3));function r(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function e(a,l){if(u===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(a&&!l&&u===void 0)return 0;let s=u||0;if(p.TERM==="dumb")return s;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 p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in p)||p.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if(p.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in p){let d=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:s}function h(a){let l=e(a,a&&a.isTTY);return r(l)}c.exports={supportsColor:h,stdout:r(e(!0,o.isatty(1))),stderr:r(e(!0,o.isatty(2)))}}),iu=N((t,c)=>{"use strict";B();var n=(i,p,u)=>{let r=i.indexOf(p);if(r===-1)return i;let e=p.length,h=0,a="";do a+=i.substr(h,r-h)+p+u,h=r+e,r=i.indexOf(p,h);while(r!==-1);return a+=i.substr(h),a},o=(i,p,u,r)=>{let e=0,h="";do{let a=i[r-1]==="\r";h+=i.substr(e,(a?r-1:r)-e)+p+(a?`\r
|
20
|
-
`:`
|
21
|
-
`)+u,e=r+1,r=i.indexOf(`
|
22
|
-
`,e)}while(r!==-1);return h+=i.substr(e),h};c.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:o}}),su=N((t,c)=>{"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,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
23
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(l){let s=l[0]==="u",d=l[1]==="{";return s&&!d&&l.length===5||l[0]==="x"&&l.length===3?String.fromCharCode(parseInt(l.slice(1),16)):s&&d?String.fromCodePoint(parseInt(l.slice(2,-1),16)):u.get(l)||l}function e(l,s){let d=[],f=s.trim().split(/\s*,\s*/g),g;for(let b of f){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(i))d.push(g[2].replace(p,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${l}')`)}return d}function h(l){o.lastIndex=0;let s=[],d;for(;(d=o.exec(l))!==null;){let f=d[1];if(d[2]){let g=e(f,d[2]);s.push([f].concat(g))}else s.push([f])}return s}function a(l,s){let d={};for(let g of s)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let f=l;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in f))throw new Error(`Unknown Chalk style: ${g}`);f=b.length>0?f[g](...b):f[g]}return f}c.exports=(l,s)=>{let d=[],f=[],g=[];if(s.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],f.push(d.length===0?m:a(l,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");f.push(a(l,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),f.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 f.join("")}}),ou=N((t,c)=>{"use strict";B();var n=yn(),{stdout:o,stderr:i}=gn(),{stringReplaceAll:p,stringEncaseCRLFWithFirstIndex:u}=iu(),r=["ansi","ansi","ansi256","ansi16m"],e=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=o?o.level:0;v.level=m.level===void 0?E:m.level},a=class{constructor(v){return l(v)}},l=v=>{let m={};return h(m,v),m.template=(...E)=>D(m.template,...E),Object.setPrototypeOf(m,s.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=a,m.template};function s(v){return l(v)}for(let[v,m]of Object.entries(n))e[v]={get(){let E=b(this,g(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:E}),E}};e.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)e[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);e[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 f=Object.defineProperties(()=>{},{...e,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__=f,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=p(m,E.close,E.open),E=E.parent;let x=m.indexOf(`
|
24
|
-
`);return x!==-1&&(m=u(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=su()),y(v,A.join(""))};Object.defineProperties(s.prototype,e);var w=s();w.supportsColor=o,w.stderr=s({level:i?i.level:0}),w.stderr.supportsColor=i,w.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},c.exports=w}),uu=N((t,c)=>{"use strict";B();var n=Re(),o=Oe();c.exports=n(()=>{o(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),au=N(t=>{"use strict";B();var c=uu(),n=!1;t.show=(o=process.stderr)=>{!o.isTTY||(n=!1,o.write("\x1B[?25h"))},t.hide=(o=process.stderr)=>{!o.isTTY||(c(),n=!0,o.write("\x1B[?25l"))},t.toggle=(o,i)=>{o!==void 0&&(n=o),n?t.show(i):t.hide(i)}}),lu=N((t,c)=>{c.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"]}}}),cu=N((t,c)=>{"use strict";B();var n=Object.assign({},lu()),o=Object.keys(n);Object.defineProperty(n,"random",{get(){let i=Math.floor(Math.random()*o.length),p=o[i];return n[p]}}),c.exports=n}),hu=N((t,c)=>{"use strict";B();var n=Xt(),o=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},p={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};c.exports=o?i:p}),fu=N((t,c)=>{"use strict";B(),c.exports=({onlyFirst:n=!1}={})=>{let o=["[\\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(o,n?void 0:"g")}}),pu=N((t,c)=>{"use strict";B();var n=fu();c.exports=o=>typeof o=="string"?o.replace(n(),""):o}),du=N((t,c)=>{B();var n=function(){"use strict";function o(h,a,l,s){var d;typeof a=="object"&&(l=a.depth,s=a.prototype,d=a.filter,a=a.circular);var f=[],g=[],b=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=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(o.__isArray(y))w=[];else if(o.__isRegExp(y))w=new RegExp(y.source,e(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(o.__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 s>"u"?(v=Object.getPrototypeOf(y),w=Object.create(v)):(w=Object.create(s),v=s)}if(a){var m=f.indexOf(y);if(m!=-1)return g[m];f.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,l)}o.clonePrototype=function(h){if(h===null)return null;var a=function(){};return a.prototype=h,new a};function i(h){return Object.prototype.toString.call(h)}o.__objToStr=i;function p(h){return typeof h=="object"&&i(h)==="[object Date]"}o.__isDate=p;function u(h){return typeof h=="object"&&i(h)==="[object Array]"}o.__isArray=u;function r(h){return typeof h=="object"&&i(h)==="[object RegExp]"}o.__isRegExp=r;function e(h){var a="";return h.global&&(a+="g"),h.ignoreCase&&(a+="i"),h.multiline&&(a+="m"),a}return o.__getRegExpFlags=e,o}();typeof c=="object"&&c.exports&&(c.exports=n)}),mu=N((t,c)=>{B();var n=du();c.exports=function(o,i){return o=o||{},Object.keys(i).forEach(function(p){typeof o[p]>"u"&&(o[p]=n(i[p]))}),o}}),yu=N((t,c)=>{B(),c.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]]}),gu=N((t,c)=>{"use strict";B();var n=mu(),o=yu(),i={nul:0,control:0};c.exports=function(e){return p(e,i)},c.exports.config=function(e){return e=n(e||{},i),function(h){return p(h,e)}};function p(e,h){if(typeof e!="string")return u(e,h);for(var a=0,l=0;l<e.length;l++){var s=u(e.charCodeAt(l),h);if(s<0)return-1;a+=s}return a}function u(e,h){return e===0?h.nul:e<32||e>=127&&e<160?h.control:r(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function r(e){var h=0,a=o.length-1,l;if(e<o[0][0]||e>o[a][1])return!1;for(;a>=h;)if(l=Math.floor((h+a)/2),e>o[l][1])h=l+1;else if(e<o[l][0])a=l-1;else return!0;return!1}}),bu=N((t,c)=>{"use strict";B(),c.exports=({stream:n=process.stdout}={})=>!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),vu=N((t,c)=>{B();var n=Z("stream");c.exports=o;function o(e){n.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}o.prototype=Object.create(n.prototype),Object.defineProperty(o.prototype,"constructor",{value:o,enumerable:!1}),o.prototype.mute=function(){this.muted=!0},o.prototype.unmute=function(){this.muted=!1},Object.defineProperty(o.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(e){this._src=e}Object.defineProperty(o.prototype,"isTTY",{get:p,set:u,enumerable:!0,configurable:!0});function p(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function u(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(o.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),o.prototype.pipe=function(e,h){return this._dest=e,n.prototype.pipe.call(this,e,h)},o.prototype.pause=function(){if(this._src)return this._src.pause()},o.prototype.resume=function(){if(this._src)return this._src.resume()},o.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)},o.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function r(e){return function(){var h=this._dest,a=this._src;h&&h[e]&&h[e].apply(h,arguments),a&&a[e]&&a[e].apply(a,arguments)}}o.prototype.destroy=r("destroy"),o.prototype.destroySoon=r("destroySoon"),o.prototype.close=r("close")}),_u=N((t,c)=>{"use strict";B();var n=Z("readline"),o=ou(),i=au(),p=cu(),u=hu(),r=pu(),e=gu(),h=bu(),a=vu(),l=Symbol("text"),s=Symbol("prefixText"),d=3,f=class{constructor(){this.requests=0,this.mutedStream=new a,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 f),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=p.line;else if(y===void 0)this._spinner=p.dots;else if(p[y])this._spinner=p[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[l]}get prefixText(){return this[s]}get isSpinning(){return this.id!==void 0}updateLineCount(){let y=this.stream.columns||80,D=typeof this[s]=="string"?this[s]+"-":"";this.lineCount=r(D+"--"+this[l]).split(`
|
25
|
-
`).reduce((w,v)=>w+Math.max(1,Math.ceil(e(v)/y)),0)}set text(y){this[l]=y,this.updateLineCount()}set prefixText(y){this[s]=y,this.updateLineCount()}frame(){let{frames:y}=this.spinner,D=y[this.frameIndex];this.color&&(D=o[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&&i.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}
|
26
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(g.stop(),this.isDiscardingStdin=!1),this):this}succeed(y){return this.stopAndPersist({symbol:u.success,text:y})}fail(y){return this.stopAndPersist({symbol:u.error,text:y})}warn(y){return this.stopAndPersist({symbol:u.warning,text:y})}info(y){return this.stopAndPersist({symbol:u.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}
|
27
|
-
`),this}},_=function(y){return new b(y)};c.exports=_,c.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}}),Eu=N((t,c)=>{"use strict";B();var n=(i,p,u)=>{let r=i.indexOf(p);if(r===-1)return i;let e=p.length,h=0,a="";do a+=i.substr(h,r-h)+p+u,h=r+e,r=i.indexOf(p,h);while(r!==-1);return a+=i.substr(h),a},o=(i,p,u,r)=>{let e=0,h="";do{let a=i[r-1]==="\r";h+=i.substr(e,(a?r-1:r)-e)+p+(a?`\r
|
28
|
-
`:`
|
29
|
-
`)+u,e=r+1,r=i.indexOf(`
|
30
|
-
`,e)}while(r!==-1);return h+=i.substr(e),h};c.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:o}}),wu=N((t,c)=>{"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,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
31
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(l){let s=l[0]==="u",d=l[1]==="{";return s&&!d&&l.length===5||l[0]==="x"&&l.length===3?String.fromCharCode(parseInt(l.slice(1),16)):s&&d?String.fromCodePoint(parseInt(l.slice(2,-1),16)):u.get(l)||l}function e(l,s){let d=[],f=s.trim().split(/\s*,\s*/g),g;for(let b of f){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(g=b.match(i))d.push(g[2].replace(p,(y,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${l}')`)}return d}function h(l){o.lastIndex=0;let s=[],d;for(;(d=o.exec(l))!==null;){let f=d[1];if(d[2]){let g=e(f,d[2]);s.push([f].concat(g))}else s.push([f])}return s}function a(l,s){let d={};for(let g of s)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let f=l;for(let[g,b]of Object.entries(d))if(Array.isArray(b)){if(!(g in f))throw new Error(`Unknown Chalk style: ${g}`);f=b.length>0?f[g](...b):f[g]}return f}c.exports=(l,s)=>{let d=[],f=[],g=[];if(s.replace(n,(b,_,y,D,w,v)=>{if(_)g.push(r(_));else if(D){let m=g.join("");g=[],f.push(d.length===0?m:a(l,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");f.push(a(l,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),f.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 f.join("")}}),Du=N((t,c)=>{"use strict";B();var n=yn(),{stdout:o,stderr:i}=gn(),{stringReplaceAll:p,stringEncaseCRLFWithFirstIndex:u}=Eu(),{isArray:r}=Array,e=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null),a=(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=o?o.level:0;m.level=E.level===void 0?S:E.level},l=class{constructor(m){return s(m)}},s=m=>{let E={};return a(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=l,E.template};function d(m){return s(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 f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of f)h[m]={get(){let{level:E}=this;return function(...S){let A=b(n.color[e[E]][m](...S),n.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of f){let E="bg"+m[0].toUpperCase()+m.slice(1);h[E]={get(){let{level:S}=this;return function(...A){let x=b(n.bgColor[e[S]][m](...A),n.bgColor.close,this._styler);return _(this,x,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,x;return S===void 0?(A=m,x=E):(A=S.openAll+m,x=E+S.closeAll),{open:m,close:E,openAll:A,closeAll:x,parent:S}},_=(m,E,S)=>{let A=(...x)=>r(x[0])&&r(x[0].raw)?y(A,w(A,...x)):y(A,x.length===1?""+x[0]:x.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:x}=S;if(E.indexOf("\x1B")!==-1)for(;S!==void 0;)E=p(E,S.close,S.open),S=S.parent;let L=E.indexOf(`
|
32
|
-
`);return L!==-1&&(E=u(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=wu()),D(m,x.join(""))};Object.defineProperties(d.prototype,h);var v=d();v.supportsColor=o,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,c.exports=v}),Su=N((t,c)=>{B(),function(n){var o=/^\s+/,i=/\s+$/,p=0,u=n.round,r=n.min,e=n.max,h=n.random;function a(H,V){if(H=H||"",V=V||{},H instanceof a)return H;if(!(this instanceof a))return new a(H,V);var C=l(H);this._originalInput=H,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=u(100*this._a)/100,this._format=V.format||C.format,this._gradientType=V.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=C.ok,this._tc_id=p++}a.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,rt,ct;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?rt=C/12.92:rt=n.pow((C+.055)/1.055,2.4),z<=.03928?ct=z/12.92:ct=n.pow((z+.055)/1.055,2.4),.2126*X+.7152*rt+.0722*ct},setAlpha:function(H){return this._a=Q(H),this._roundA=u(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=u(H.h*360),C=u(H.s*100),z=u(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=u(H.h*360),C=u(H.s*100),z=u(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:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(P(this._r,255)*100)+"%",g:u(P(this._g,255)*100)+"%",b:u(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%)":"rgba("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[_(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=a(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 a(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(R,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(F,arguments)}},a.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]=M(H[z]));H=C}return a(H,V)};function l(H){var V={r:0,g:0,b:0},C=1,z=null,X=null,rt=null,ct=!1,it=!1;return typeof H=="string"&&(H=yt(H)),typeof H=="object"&&(lt(H.r)&<(H.g)&<(H.b)?(V=s(H.r,H.g,H.b),ct=!0,it=String(H.r).substr(-1)==="%"?"prgb":"rgb"):lt(H.h)&<(H.s)&<(H.v)?(z=M(H.s),X=M(H.v),V=b(H.h,z,X),ct=!0,it="hsv"):lt(H.h)&<(H.s)&<(H.l)&&(z=M(H.s),rt=M(H.l),V=f(H.h,z,rt),ct=!0,it="hsl"),H.hasOwnProperty("a")&&(C=H.a)),C=Q(C),{ok:ct,format:H.format||it,r:r(255,e(V.r,0)),g:r(255,e(V.g,0)),b:r(255,e(V.b,0)),a:C}}function s(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=e(H,V,C),X=r(H,V,C),rt,ct,it=(z+X)/2;if(z==X)rt=ct=0;else{var at=z-X;switch(ct=it>.5?at/(2-z-X):at/(z+X),z){case H:rt=(V-C)/at+(V<C?6:0);break;case V:rt=(C-H)/at+2;break;case C:rt=(H-V)/at+4;break}rt/=6}return{h:rt,s:ct,l:it}}function f(H,V,C){var z,X,rt;H=P(H,360),V=P(V,100),C=P(C,100);function ct(nt,ht,bt){return bt<0&&(bt+=1),bt>1&&(bt-=1),bt<1/6?nt+(ht-nt)*6*bt:bt<1/2?ht:bt<2/3?nt+(ht-nt)*(2/3-bt)*6:nt}if(V===0)z=X=rt=C;else{var it=C<.5?C*(1+V):C+V-C*V,at=2*C-it;z=ct(at,it,H+1/3),X=ct(at,it,H),rt=ct(at,it,H-1/3)}return{r:z*255,g:X*255,b:rt*255}}function g(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=e(H,V,C),X=r(H,V,C),rt,ct,it=z,at=z-X;if(ct=z===0?0:at/z,z==X)rt=0;else{switch(z){case H:rt=(V-C)/at+(V<C?6:0);break;case V:rt=(C-H)/at+2;break;case C:rt=(H-V)/at+4;break}rt/=6}return{h:rt,s:ct,v:it}}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,rt=C*(1-V),ct=C*(1-X*V),it=C*(1-(1-X)*V),at=z%6,nt=[C,ct,rt,rt,it,C][at],ht=[it,C,C,ct,rt,rt][at],bt=[rt,rt,it,C,C,ct][at];return{r:nt*255,g:ht*255,b:bt*255}}function _(H,V,C,z){var X=[tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(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 rt=[tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(C).toString(16)),tt(K(z))];return X&&rt[0].charAt(0)==rt[0].charAt(1)&&rt[1].charAt(0)==rt[1].charAt(1)&&rt[2].charAt(0)==rt[2].charAt(1)&&rt[3].charAt(0)==rt[3].charAt(1)?rt[0].charAt(0)+rt[1].charAt(0)+rt[2].charAt(0)+rt[3].charAt(0):rt.join("")}function D(H,V,C,z){var X=[tt(K(z)),tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(C).toString(16))];return X.join("")}a.equals=function(H,V){return!H||!V?!1:a(H).toRgbString()==a(V).toRgbString()},a.random=function(){return a.fromRatio({r:h(),g:h(),b:h()})};function w(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.s-=V/100,C.s=j(C.s),a(C)}function v(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.s+=V/100,C.s=j(C.s),a(C)}function m(H){return a(H).desaturate(100)}function E(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.l+=V/100,C.l=j(C.l),a(C)}function S(H,V){V=V===0?0:V||10;var C=a(H).toRgb();return C.r=e(0,r(255,C.r-u(255*-(V/100)))),C.g=e(0,r(255,C.g-u(255*-(V/100)))),C.b=e(0,r(255,C.b-u(255*-(V/100)))),a(C)}function A(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.l-=V/100,C.l=j(C.l),a(C)}function x(H,V){var C=a(H).toHsl(),z=(C.h+V)%360;return C.h=z<0?360+z:z,a(C)}function L(H){var V=a(H).toHsl();return V.h=(V.h+180)%360,a(V)}function T(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+120)%360,s:V.s,l:V.l}),a({h:(C+240)%360,s:V.s,l:V.l})]}function F(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+90)%360,s:V.s,l:V.l}),a({h:(C+180)%360,s:V.s,l:V.l}),a({h:(C+270)%360,s:V.s,l:V.l})]}function R(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+72)%360,s:V.s,l:V.l}),a({h:(C+216)%360,s:V.s,l:V.l})]}function I(H,V,C){V=V||6,C=C||30;var z=a(H).toHsl(),X=360/C,rt=[a(H)];for(z.h=(z.h-(X*V>>1)+720)%360;--V;)z.h=(z.h+X)%360,rt.push(a(z));return rt}function $(H,V){V=V||6;for(var C=a(H).toHsv(),z=C.h,X=C.s,rt=C.v,ct=[],it=1/V;V--;)ct.push(a({h:z,s:X,v:rt})),rt=(rt+it)%1;return ct}a.mix=function(H,V,C){C=C===0?0:C||50;var z=a(H).toRgb(),X=a(V).toRgb(),rt=C/100,ct={r:(X.r-z.r)*rt+z.r,g:(X.g-z.g)*rt+z.g,b:(X.b-z.b)*rt+z.b,a:(X.a-z.a)*rt+z.a};return a(ct)},a.readability=function(H,V){var C=a(H),z=a(V);return(n.max(C.getLuminance(),z.getLuminance())+.05)/(n.min(C.getLuminance(),z.getLuminance())+.05)},a.isReadable=function(H,V,C){var z=a.readability(H,V),X,rt;switch(rt=!1,X=dt(C),X.level+X.size){case"AAsmall":case"AAAlarge":rt=z>=4.5;break;case"AAlarge":rt=z>=3;break;case"AAAsmall":rt=z>=7;break}return rt},a.mostReadable=function(H,V,C){var z=null,X=0,rt,ct,it,at;C=C||{},ct=C.includeFallbackColors,it=C.level,at=C.size;for(var nt=0;nt<V.length;nt++)rt=a.readability(H,V[nt]),rt>X&&(X=rt,z=a(V[nt]));return a.isReadable(H,z,{level:it,size:at})||!ct?z:(C.includeFallbackColors=!1,a.mostReadable(H,["#fff","#000"],C))};var O=a.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"},q=a.hexNames=W(O);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=G(H);return H=r(V,e(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,e(0,H))}function k(H){return parseInt(H,16)}function J(H){return typeof H=="string"&&H.indexOf(".")!=-1&&parseFloat(H)===1}function G(H){return typeof H=="string"&&H.indexOf("%")!=-1}function tt(H){return H.length==1?"0"+H:""+H}function M(H){return H<=1&&(H=H*100+"%"),H}function K(H){return n.round(parseFloat(H)*255).toString(16)}function et(H){return k(H)/255}var st=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 lt(H){return!!st.CSS_UNIT.exec(H)}function yt(H){H=H.replace(o,"").replace(i,"").toLowerCase();var V=!1;if(O[H])H=O[H],V=!0;else if(H=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=st.rgb.exec(H))?{r:C[1],g:C[2],b:C[3]}:(C=st.rgba.exec(H))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=st.hsl.exec(H))?{h:C[1],s:C[2],l:C[3]}:(C=st.hsla.exec(H))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=st.hsv.exec(H))?{h:C[1],s:C[2],v:C[3]}:(C=st.hsva.exec(H))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=st.hex8.exec(H))?{r:k(C[1]),g:k(C[2]),b:k(C[3]),a:et(C[4]),format:V?"name":"hex8"}:(C=st.hex6.exec(H))?{r:k(C[1]),g:k(C[2]),b:k(C[3]),format:V?"name":"hex"}:(C=st.hex4.exec(H))?{r:k(C[1]+""+C[1]),g:k(C[2]+""+C[2]),b:k(C[3]+""+C[3]),a:et(C[4]+""+C[4]),format:V?"name":"hex8"}:(C=st.hex3.exec(H))?{r:k(C[1]+""+C[1]),g:k(C[2]+""+C[2]),b:k(C[3]+""+C[3]),format:V?"name":"hex"}:!1}function dt(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 c<"u"&&c.exports?c.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a}(Math)}),Au=N((t,c)=>{B();var n=Su(),o={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function p(s,d,f){let g={};for(let b in s)s.hasOwnProperty(b)&&(g[b]=f===0?0:(d[b]-s[b])/f);return g}function u(s,d,f,g){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=s[_]*f+d[_],b[_]=b[_]<0?b[_]+g[_]:g[_]!==1?b[_]%g[_]:b[_]);return b}function r(s,d,f){let g=s.color.toRgb(),b=d.color.toRgb(),_=p(g,b,f),y=[s.color];for(let D=1;D<f;D++){let w=u(_,g,D,o);y.push(n(w))}return y}function e(s,d,f,g){let b=s.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return r(s,d,f);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=p(b,_,f),w=[s.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)/f;for(let m=1;m<f;m++){let E=u(D,b,m,i);w.push(n(E))}return w}function h(s,d){let f=s.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<f)throw new Error("Number of steps cannot be inferior to number of stops");let g=[];for(let _=1;_<f;_++){let y=(d-1)*(s[_].pos-s[_-1].pos);g.push(Math.max(1,Math.round(y)))}let b=1;for(let _=f-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 a(s,d,f,g){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let w=0,v=s.length;w<v-1;w++)if(d>=s[w].pos&&d<s[w+1].pos){b=s[w],_=s[w+1];break}b||(b=_=s[s.length-1]);let y=p(b.color[f](),_.color[f](),(_.pos-b.pos)*100),D=u(y,b.color[f](),(d-b.pos)*100,g);return n(D)}var l=class{constructor(s){if(s.length<2)throw new Error("Invalid number of stops (< 2)");let d=s[0].pos!==void 0,f=s.length,g=-1,b=!1;this.stops=s.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===f-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/(f-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),f++),this.stops[f-1].pos!==1&&this.stops.push({color:this.stops[f-1].color,pos:1})}reverse(){let s=[];return this.stops.forEach(function(d){s.push({color:d.color,pos:1-d.pos})}),new l(s.reverse())}loop(){let s=[],d=[];return this.stops.forEach(f=>{s.push({color:f.color,pos:f.pos/2})}),this.stops.slice(0,-1).forEach(f=>{d.push({color:f.color,pos:1-f.pos/2})}),new l(s.concat(d.reverse()))}rgb(s){let d=h(this.stops,s),f=[];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]);f.splice(f.length,0,..._)}return f.push(this.stops[this.stops.length-1].color),f}hsv(s,d){let f=h(this.stops,s),g=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=e(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let y=e(this.stops[b],this.stops[b+1],f[b],d);g.splice(g.length,0,...y)}return g.push(this.stops[this.stops.length-1].color),g}css(s,d){s=s||"linear",d=d||(s==="linear"?"to right":"ellipse at center");let f=s+"-gradient("+d;return this.stops.forEach(function(g){f+=", "+(g.colorLess?"":g.color.toRgbString()+" ")+g.pos*100+"%"}),f+=")",f}rgbAt(s){return a(this.stops,s,"toRgb",o)}hsvAt(s){return a(this.stops,s,"toHsv",i)}};c.exports=function(s){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');s=arguments[0]}else s=Array.prototype.slice.call(arguments);return new l(s)}}),Cu=N((t,c)=>{"use strict";B();var n=Du(),o=Au(),i=/\s/g;function p(...l){let s=o.apply(this,l),d=(f,g)=>r(f?f.toString():"",s,g);return d.multiline=(f,g)=>e(f?f.toString():"",s,g),d}var u=(l,s,d)=>s.interpolation.toLowerCase()==="hsv"?l.hsv(d,s.hsvSpin.toLowerCase()):l.rgb(d);function r(l,s,d){let f=h(d),g=Math.max(l.replace(i,"").length,s.stops.length),b=u(s,f,g),_="";for(let y of l)_+=y.match(i)?y:n.hex(b.shift().toHex())(y);return _}function e(l,s,d){let f=h(d),g=l.split(`
|
33
|
-
`),b=Math.max.apply(null,g.map(D=>D.length).concat([s.stops.length])),_=u(s,f,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(`
|
34
|
-
`)}function h(l){let s={interpolation:"rgb",hsvSpin:"short",...l};if(l!==void 0&&typeof l!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof l}\``);if(typeof s.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof s.interpolation}\``);if(s.interpolation.toLowerCase()==="hsv"&&typeof s.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof s.hsvSpin}\``);return s}var a={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"}}};c.exports=p;for(let l in a)c.exports[l]=s=>new p(a[l].colors)(s,a[l].options),c.exports[l].multiline=s=>new p(a[l].colors).multiline(s,a[l].options)}),qt={};Lr(qt,{bold:()=>Tu,dimmed:()=>Bu,error:()=>Sn,info:()=>Ou,item:()=>Pu,log:()=>oe,turboBlue:()=>se,turboGradient:()=>Ru,turboLoader:()=>wn,turboRed:()=>_n,warn:()=>Dn,yellow:()=>En});B();var be=Ct(Xt()),xu=Ct(_u()),Fu=Ct(Cu()),bn="#0099F7",vn="#F11712",ku="#FFFF00",Ru=(0,Fu.default)(bn,vn),se=be.default.hex(bn),_n=be.default.hex(vn),En=be.default.hex(ku),wn=t=>(0,xu.default)({text:t,spinner:{frames:[" ",se("> "),se(">> "),se(">>>")]}}),Ou=(...t)=>{oe(se.bold(">>>"),...t)},Tu=(...t)=>{oe(be.default.bold(...t))},Bu=(...t)=>{oe(be.default.dim(...t))},Pu=(...t)=>{oe(se.bold(" \u2022"),...t)},oe=(...t)=>{console.log(...t)},Dn=(...t)=>{console.error(En.bold(">>>"),...t)},Sn=(...t)=>{console.error(_n.bold(">>>"),...t)};B();var cd=Ct(Wt());var Hu=N((t,c)=>{B();function n(o,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(o)),this._timeouts=o,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}c.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(o){if(this._timeout&&clearTimeout(this._timeout),!o)return!1;var i=new Date().getTime();if(o&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(o),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(o);var p=this._timeouts.shift();if(p===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),p=this._cachedTimeouts.slice(-1);else return!1;var u=this;return this._timer=setTimeout(function(){u._attempts++,u._operationTimeoutCb&&(u._timeout=setTimeout(function(){u._operationTimeoutCb(u._attempts)},u._operationTimeout),u._options.unref&&u._timeout.unref()),u._fn(u._attempts)},p),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(o,i){this._fn=o,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var p=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){p._operationTimeoutCb()},p._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(o){console.log("Using RetryOperation.try() is deprecated"),this.attempt(o)},n.prototype.start=function(o){console.log("Using RetryOperation.start() is deprecated"),this.attempt(o)},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 o={},i=null,p=0,u=0;u<this._errors.length;u++){var r=this._errors[u],e=r.message,h=(o[e]||0)+1;o[e]=h,h>=p&&(i=r,p=h)}return i}}),Uu=N(t=>{B();var c=Hu();t.operation=function(n){var o=t.timeouts(n);return new c(o,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},t.timeouts=function(n){if(n instanceof Array)return[].concat(n);var o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)o[i]=n[i];if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var p=[],u=0;u<o.retries;u++)p.push(this.createTimeout(u,o));return n&&n.forever&&!p.length&&p.push(this.createTimeout(u,o)),p.sort(function(r,e){return r-e}),p},t.createTimeout=function(n,o){var i=o.randomize?Math.random()+1:1,p=Math.round(i*Math.max(o.minTimeout,1)*Math.pow(o.factor,n));return p=Math.min(p,o.maxTimeout),p},t.wrap=function(n,o,i){if(o instanceof Array&&(i=o,o=null),!i){i=[];for(var p in n)typeof n[p]=="function"&&i.push(p)}for(var u=0;u<i.length;u++){var r=i[u],e=n[r];n[r]=function(h){var a=t.operation(o),l=Array.prototype.slice.call(arguments,1),s=l.pop();l.push(function(d){a.retry(d)||(d&&(arguments[0]=a.mainError()),s.apply(this,arguments))}),a.attempt(function(){h.apply(n,l)})}.bind(n,e),n[r].options=o}}}),qu=N((t,c)=>{B(),c.exports=Uu()}),Gu=N((t,c)=>{B();var n=qu();function o(i,p){function u(r,e){var h=p||{},a;"randomize"in h||(h.randomize=!0),a=n.operation(h);function l(f){e(f||new Error("Aborted"))}function s(f,g){if(f.bail){l(f);return}a.retry(f)?h.onRetry&&h.onRetry(f,g):e(a.mainError())}function d(f){var g;try{g=i(l,f)}catch(b){s(b,f);return}Promise.resolve(g).then(r).catch(function(b){s(b,f)})}a.attempt(d)}return new Promise(u)}c.exports=o});B();var vd=Ct(Gu()),_d=Ct(Xt()),Ed=Ct(Wt());B();var Wu=N((t,c)=>{B();function n(o){return c.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},c.exports.__esModule=!0,c.exports.default=c.exports,n(o)}c.exports=n,c.exports.__esModule=!0,c.exports.default=c.exports}),Vu=N((t,c)=>{B();var n=Wu().default;function o(){"use strict";c.exports=o=function(){return i},c.exports.__esModule=!0,c.exports.default=c.exports;var i={},p=Object.prototype,u=p.hasOwnProperty,r=Object.defineProperty||function($,O,q){$[O]=q.value},e=typeof Symbol=="function"?Symbol:{},h=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",l=e.toStringTag||"@@toStringTag";function s($,O,q){return Object.defineProperty($,O,{value:q,enumerable:!0,configurable:!0,writable:!0}),$[O]}try{s({},"")}catch{s=function($,O,q){return $[O]=q}}function d($,O,q,W){var Q=O&&O.prototype instanceof b?O:b,P=Object.create(Q.prototype),j=new F(W||[]);return r(P,"_invoke",{value:A($,q,j)}),P}function f($,O,q){try{return{type:"normal",arg:$.call(O,q)}}catch(W){return{type:"throw",arg:W}}}i.wrap=d;var g={};function b(){}function _(){}function y(){}var D={};s(D,h,function(){return this});var w=Object.getPrototypeOf,v=w&&w(w(R([])));v&&v!==p&&u.call(v,h)&&(D=v);var m=y.prototype=b.prototype=Object.create(D);function E($){["next","throw","return"].forEach(function(O){s($,O,function(q){return this._invoke(O,q)})})}function S($,O){function q(Q,P,j,k){var J=f($[Q],$,P);if(J.type!=="throw"){var G=J.arg,tt=G.value;return tt&&n(tt)=="object"&&u.call(tt,"__await")?O.resolve(tt.__await).then(function(M){q("next",M,j,k)},function(M){q("throw",M,j,k)}):O.resolve(tt).then(function(M){G.value=M,j(G)},function(M){return q("throw",M,j,k)})}k(J.arg)}var W;r(this,"_invoke",{value:function(Q,P){function j(){return new O(function(k,J){q(Q,P,k,J)})}return W=W?W.then(j,j):j()}})}function A($,O,q){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(q.method=Q,q.arg=P;;){var j=q.delegate;if(j){var k=x(j,q);if(k){if(k===g)continue;return k}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(W==="suspendedStart")throw W="completed",q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);W="executing";var J=f($,O,q);if(J.type==="normal"){if(W=q.done?"completed":"suspendedYield",J.arg===g)continue;return{value:J.arg,done:q.done}}J.type==="throw"&&(W="completed",q.method="throw",q.arg=J.arg)}}}function x($,O){var q=O.method,W=$.iterator[q];if(W===void 0)return O.delegate=null,q==="throw"&&$.iterator.return&&(O.method="return",O.arg=void 0,x($,O),O.method==="throw")||q!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+q+"' method")),g;var Q=f(W,$.iterator,O.arg);if(Q.type==="throw")return O.method="throw",O.arg=Q.arg,O.delegate=null,g;var P=Q.arg;return P?P.done?(O[$.resultName]=P.value,O.next=$.nextLoc,O.method!=="return"&&(O.method="next",O.arg=void 0),O.delegate=null,g):P:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function L($){var O={tryLoc:$[0]};1 in $&&(O.catchLoc=$[1]),2 in $&&(O.finallyLoc=$[2],O.afterLoc=$[3]),this.tryEntries.push(O)}function T($){var O=$.completion||{};O.type="normal",delete O.arg,$.completion=O}function F($){this.tryEntries=[{tryLoc:"root"}],$.forEach(L,this),this.reset(!0)}function R($){if($){var O=$[h];if(O)return O.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var q=-1,W=function Q(){for(;++q<$.length;)if(u.call($,q))return Q.value=$[q],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=s(y,l,"GeneratorFunction"),i.isGeneratorFunction=function($){var O=typeof $=="function"&&$.constructor;return!!O&&(O===_||(O.displayName||O.name)==="GeneratorFunction")},i.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,y):($.__proto__=y,s($,l,"GeneratorFunction")),$.prototype=Object.create(m),$},i.awrap=function($){return{__await:$}},E(S.prototype),s(S.prototype,a,function(){return this}),i.AsyncIterator=S,i.async=function($,O,q,W,Q){Q===void 0&&(Q=Promise);var P=new S(d($,O,q,W),Q);return i.isGeneratorFunction(O)?P:P.next().then(function(j){return j.done?j.value:P.next()})},E(m),s(m,l,"Generator"),s(m,h,function(){return this}),s(m,"toString",function(){return"[object Generator]"}),i.keys=function($){var O=Object($),q=[];for(var W in O)q.push(W);return q.reverse(),function Q(){for(;q.length;){var P=q.pop();if(P in O)return Q.value=P,Q.done=!1,Q}return Q.done=!0,Q}},i.values=R,F.prototype={constructor:F,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 O in this)O.charAt(0)==="t"&&u.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=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 O=this;function q(J,G){return P.type="throw",P.arg=$,O.next=J,G&&(O.method="next",O.arg=void 0),!!G}for(var W=this.tryEntries.length-1;W>=0;--W){var Q=this.tryEntries[W],P=Q.completion;if(Q.tryLoc==="root")return q("end");if(Q.tryLoc<=this.prev){var j=u.call(Q,"catchLoc"),k=u.call(Q,"finallyLoc");if(j&&k){if(this.prev<Q.catchLoc)return q(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return q(Q.finallyLoc)}else if(j){if(this.prev<Q.catchLoc)return q(Q.catchLoc,!0)}else{if(!k)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return q(Q.finallyLoc)}}}},abrupt:function($,O){for(var q=this.tryEntries.length-1;q>=0;--q){var W=this.tryEntries[q];if(W.tryLoc<=this.prev&&u.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Q=W;break}}Q&&($==="break"||$==="continue")&&Q.tryLoc<=O&&O<=Q.finallyLoc&&(Q=null);var P=Q?Q.completion:{};return P.type=$,P.arg=O,Q?(this.method="next",this.next=Q.finallyLoc,g):this.complete(P)},complete:function($,O){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"&&O&&(this.next=O),g},finish:function($){for(var O=this.tryEntries.length-1;O>=0;--O){var q=this.tryEntries[O];if(q.finallyLoc===$)return this.complete(q.completion,q.afterLoc),T(q),g}},catch:function($){for(var O=this.tryEntries.length-1;O>=0;--O){var q=this.tryEntries[O];if(q.tryLoc===$){var W=q.completion;if(W.type==="throw"){var Q=W.arg;T(q)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function($,O,q){return this.delegate={iterator:R($),resultName:O,nextLoc:q},this.method==="next"&&(this.arg=void 0),g}},i}c.exports=o,c.exports.__esModule=!0,c.exports.default=c.exports}),Ku=N((t,c)=>{B();var n=Vu()();c.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),Yu=N((t,c)=>{"use strict";B();var n=(o,...i)=>new Promise(p=>{p(o(...i))});c.exports=n,c.exports.default=n}),Ju=N((t,c)=>{"use strict";B();var n=Yu(),o=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let p=[],u=0,r=()=>{u--,p.length>0&&p.shift()()},e=(l,s,...d)=>{u++;let f=n(l,...d);s(f),f.then(r,r)},h=(l,s,...d)=>{u<i?e(l,s,...d):p.push(e.bind(null,l,s,...d))},a=(l,...s)=>new Promise(d=>h(l,d,...s));return Object.defineProperties(a,{activeCount:{get:()=>u},pendingCount:{get:()=>p.length},clearQueue:{value:()=>{p.length=0}}}),a};c.exports=o,c.exports.default=o}),Zu=N((t,c)=>{"use strict";B();var n=Ju(),o=class extends Error{constructor(r){super(),this.value=r}},i=async(r,e)=>e(await r),p=async r=>{let e=await Promise.all(r);if(e[1]===!0)throw new o(e[0]);return!1},u=async(r,e,h)=>{h={concurrency:1/0,preserveOrder:!0,...h};let a=n(h.concurrency),l=[...r].map(d=>[d,a(i,d,e)]),s=n(h.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>s(p,d)))}catch(d){if(d instanceof o)return d.value;throw d}};c.exports=u,c.exports.default=u}),Xu=N((t,c)=>{"use strict";B();var n=Z("path"),o=Z("fs"),{promisify:i}=Z("util"),p=Zu(),u=i(o.stat),r=i(o.lstat),e={directory:"isDirectory",file:"isFile"};function h({type:l}){if(!(l in e))throw new Error(`Invalid type specified: ${l}`)}var a=(l,s)=>l===void 0||s[e[l]]();c.exports=async(l,s)=>{s={cwd:process.cwd(),type:"file",allowSymlinks:!0,...s},h(s);let d=s.allowSymlinks?u:r;return p(l,async f=>{try{let g=await d(n.resolve(s.cwd,f));return a(s.type,g)}catch{return!1}},s)},c.exports.sync=(l,s)=>{s={cwd:process.cwd(),allowSymlinks:!0,type:"file",...s},h(s);let d=s.allowSymlinks?o.statSync:o.lstatSync;for(let f of l)try{let g=d(n.resolve(s.cwd,f));if(a(s.type,g))return f}catch{}}}),Qu=N((t,c)=>{"use strict";B();var n=Z("fs"),{promisify:o}=Z("util"),i=o(n.access);c.exports=async p=>{try{return await i(p),!0}catch{return!1}},c.exports.sync=p=>{try{return n.accessSync(p),!0}catch{return!1}}}),ta=N((t,c)=>{"use strict";B();var n=Z("path"),o=Xu(),i=Qu(),p=Symbol("findUp.stop");c.exports=async(u,r={})=>{let e=n.resolve(r.cwd||""),{root:h}=n.parse(e),a=[].concat(u),l=async s=>{if(typeof u!="function")return o(a,s);let d=await u(s.cwd);return typeof d=="string"?o([d],s):d};for(;;){let s=await l({...r,cwd:e});if(s===p)return;if(s)return n.resolve(e,s);if(e===h)return;e=n.dirname(e)}},c.exports.sync=(u,r={})=>{let e=n.resolve(r.cwd||""),{root:h}=n.parse(e),a=[].concat(u),l=s=>{if(typeof u!="function")return o.sync(a,s);let d=u(s.cwd);return typeof d=="string"?o.sync([d],s):d};for(;;){let s=l({...r,cwd:e});if(s===p)return;if(s)return n.resolve(e,s);if(e===h)return;e=n.dirname(e)}},c.exports.exists=i,c.exports.sync.exists=i.sync,c.exports.stop=p}),jt=N(t=>{"use strict";B(),t.fromCallback=function(c){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")c.apply(this,arguments);else return new Promise((n,o)=>{arguments[arguments.length]=(i,p)=>{if(i)return o(i);n(p)},arguments.length++,c.apply(this,arguments)})},"name",{value:c.name})},t.fromPromise=function(c){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return c.apply(this,arguments);c.apply(this,arguments).then(o=>n(null,o),n)},"name",{value:c.name})}}),An=N(t=>{"use strict";B();var c=jt().fromCallback,n=wt(),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.keys(n).forEach(i=>{i!=="promises"&&(t[i]=n[i])}),o.forEach(i=>{t[i]=c(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,h){return typeof h=="function"?n.read(i,p,u,r,e,h):new Promise((a,l)=>{n.read(i,p,u,r,e,(s,d,f)=>{if(s)return l(s);a({bytesRead:d,buffer:f})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(h,a,l)=>{if(h)return e(h);r({bytesWritten:a,buffer:l})})})},typeof n.realpath.native=="function"&&(t.realpath.native=c(n.realpath.native))}),Cn=N((t,c)=>{"use strict";B();var n=Z("path");function o(u){return u=n.normalize(n.resolve(u)).split(n.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function p(u){let r=o(u);return u=u.replace(r,""),i.test(u)}c.exports={getRootPath:o,invalidWin32Path:p}}),ea=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Cn().invalidWin32Path,p=parseInt("0777",8);function u(r,e,h,a){if(typeof e=="function"?(h=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&i(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",h(d)}let l=e.mode,s=e.fs||n;l===void 0&&(l=p&~process.umask()),a||(a=null),h=h||function(){},r=o.resolve(r),s.mkdir(r,l,d=>{if(!d)return a=a||r,h(null,a);switch(d.code){case"ENOENT":if(o.dirname(r)===r)return h(d);u(o.dirname(r),e,(f,g)=>{f?h(f,g):u(r,e,h,g)});break;default:s.stat(r,(f,g)=>{f||!g.isDirectory()?h(d,a):h(null,a)});break}})}c.exports=u}),ra=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Cn().invalidWin32Path,p=parseInt("0777",8);function u(r,e,h){(!e||typeof e!="object")&&(e={mode:e});let a=e.mode,l=e.fs||n;if(process.platform==="win32"&&i(r)){let s=new Error(r+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}a===void 0&&(a=p&~process.umask()),h||(h=null),r=o.resolve(r);try{l.mkdirSync(r,a),h=h||r}catch(s){if(s.code==="ENOENT"){if(o.dirname(r)===r)throw s;h=u(o.dirname(r),e,h),u(r,e,h)}else{let d;try{d=l.statSync(r)}catch{throw s}if(!d.isDirectory())throw s}}return h}c.exports=u}),Mt=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=n(ea()),i=ra();c.exports={mkdirs:o,mkdirsSync:i,mkdirp:o,mkdirpSync:i,ensureDir:o,ensureDirSync:i}}),xn=N((t,c)=>{"use strict";B();var n=wt(),o=Z("os"),i=Z("path");function p(){let a=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));a=i.join(o.tmpdir(),a);let l=new Date(1435410243862);n.writeFileSync(a,"https://github.com/jprichardson/node-fs-extra/pull/141");let s=n.openSync(a,"r+");return n.futimesSync(s,l,l),n.closeSync(s),n.statSync(a).mtime>1435410243e3}function u(a){let l=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(o.tmpdir(),l);let s=new Date(1435410243862);n.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return a(d);n.open(l,"r+",(f,g)=>{if(f)return a(f);n.futimes(g,s,s,b=>{if(b)return a(b);n.close(g,_=>{if(_)return a(_);n.stat(l,(y,D)=>{if(y)return a(y);a(null,D.mtime>1435410243e3)})})})})})}function r(a){if(typeof a=="number")return Math.floor(a/1e3)*1e3;if(a instanceof Date)return new Date(Math.floor(a.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function e(a,l,s,d){n.open(a,"r+",(f,g)=>{if(f)return d(f);n.futimes(g,l,s,b=>{n.close(g,_=>{d&&d(b||_)})})})}function h(a,l,s){let d=n.openSync(a,"r+");return n.futimesSync(d,l,s),n.closeSync(d)}c.exports={hasMillisRes:u,hasMillisResSync:p,timeRemoveMillis:r,utimesMillis:e,utimesMillisSync:h}}),Ne=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=10,p=5,u=0,r=process.versions.node.split("."),e=Number.parseInt(r[0],10),h=Number.parseInt(r[1],10),a=Number.parseInt(r[2],10);function l(){return e>i||e===i&&(h>p||h===p&&a>=u)}function s(w,v,m){l()?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;l()?m=n.statSync(w,{bigint:!0}):m=n.statSync(w);try{l()?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 f(w,v,m,E){s(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=o.resolve(o.dirname(w)),x=o.resolve(o.dirname(m));if(x===A||x===o.parse(x).root)return S();l()?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=o.resolve(o.dirname(w)),A=o.resolve(o.dirname(m));if(A===S||A===o.parse(A).root)return;let x;try{l()?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=o.resolve(w).split(o.sep).filter(S=>S),E=o.resolve(v).split(o.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}'.`}c.exports={checkPaths:f,checkPathsSync:g,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:y}}),na=N((t,c)=>{"use strict";B(),c.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),ia=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Mt().mkdirsSync,p=xn().utimesMillisSync,u=Ne();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;
|
42
|
+
@babel/runtime/helpers/regeneratorRuntime.js:
|
43
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
35
44
|
|
36
|
-
|
45
|
+
is-extglob/index.js:
|
46
|
+
(*!
|
47
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
48
|
+
*
|
49
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
50
|
+
* Licensed under the MIT License.
|
51
|
+
*)
|
37
52
|
|
38
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,x,"copy",(F,R)=>{if(F)return T(F);let{srcStat:I,destStat:$}=R;r.checkParentPaths(A,I,x,"copy",O=>O?T(O):L.filter?a(h,$,A,x,L,T):h($,A,x,L,T))})}function h(A,x,L,T,F){let R=o.dirname(L);p(R,(I,$)=>{if(I)return F(I);if($)return l(A,x,L,T,F);i(R,O=>O?F(O):l(A,x,L,T,F))})}function a(A,x,L,T,F,R){Promise.resolve(F.filter(L,T)).then(I=>I?A(x,L,T,F,R):R(),I=>R(I))}function l(A,x,L,T,F){return T.filter?a(s,A,x,L,T,F):s(A,x,L,T,F)}function s(A,x,L,T,F){(T.dereference?n.stat:n.lstat)(x,(R,I)=>{if(R)return F(R);if(I.isDirectory())return y(I,A,x,L,T,F);if(I.isFile()||I.isCharacterDevice()||I.isBlockDevice())return d(I,A,x,L,T,F);if(I.isSymbolicLink())return E(A,x,L,T,F)})}function d(A,x,L,T,F,R){return x?f(A,L,T,F,R):g(A,L,T,F,R)}function f(A,x,L,T,F){if(T.overwrite)n.unlink(L,R=>R?F(R):g(A,x,L,T,F));else return T.errorOnExist?F(new Error(`'${L}' already exists`)):F()}function g(A,x,L,T,F){return typeof n.copyFile=="function"?n.copyFile(x,L,R=>R?F(R):_(A,L,T,F)):b(A,x,L,T,F)}function b(A,x,L,T,F){let R=n.createReadStream(x);R.on("error",I=>F(I)).once("open",()=>{let I=n.createWriteStream(L,{mode:A.mode});I.on("error",$=>F($)).on("open",()=>R.pipe(I)).once("close",()=>_(A,L,T,F))})}function _(A,x,L,T){n.chmod(x,A.mode,F=>F?T(F):L.preserveTimestamps?u(x,A.atime,A.mtime,T):T())}function y(A,x,L,T,F,R){return x?x&&!x.isDirectory()?R(new Error(`Cannot overwrite non-directory '${T}' with directory '${L}'.`)):w(L,T,F,R):D(A,L,T,F,R)}function D(A,x,L,T,F){n.mkdir(L,R=>{if(R)return F(R);w(x,L,T,I=>I?F(I):n.chmod(L,A.mode,F))})}function w(A,x,L,T){n.readdir(A,(F,R)=>F?T(F):v(R,A,x,L,T))}function v(A,x,L,T,F){let R=A.pop();return R?m(A,R,x,L,T,F):F()}function m(A,x,L,T,F,R){let I=o.join(L,x),$=o.join(T,x);r.checkPaths(I,$,"copy",(O,q)=>{if(O)return R(O);let{destStat:W}=q;l(W,I,$,F,Q=>Q?R(Q):v(A,L,T,F,R))})}function E(A,x,L,T,F){n.readlink(x,(R,I)=>{if(R)return F(R);if(T.dereference&&(I=o.resolve(process.cwd(),I)),A)n.readlink(L,($,O)=>$?$.code==="EINVAL"||$.code==="UNKNOWN"?n.symlink(I,L,F):F($):(T.dereference&&(O=o.resolve(process.cwd(),O)),r.isSrcSubdir(I,O)?F(new Error(`Cannot copy '${I}' to a subdirectory of itself, '${O}'.`)):A.isDirectory()&&r.isSrcSubdir(O,I)?F(new Error(`Cannot overwrite '${O}' with '${I}'.`)):S(I,L,F)));else return n.symlink(I,L,F)})}function S(A,x,L){n.unlink(x,T=>T?L(T):n.symlink(A,x,L))}c.exports=e}),kn=N((t,c)=>{"use strict";B();var n=jt().fromCallback;c.exports={copy:n(sa())}}),oa=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Z("assert"),p=process.platform==="win32";function u(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=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof y,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),u(_),e(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(()=>e(b,_,w),m)}v.code==="ENOENT"&&(v=null)}y(v)})}function e(b,_,y){i(b),i(_),i(typeof y=="function"),_.lstat(b,(D,w)=>{if(D&&D.code==="ENOENT")return y(null);if(D&&D.code==="EPERM"&&p)return h(b,_,D,y);if(w&&w.isDirectory())return l(b,_,D,y);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return y(null);if(v.code==="EPERM")return p?h(b,_,v,y):l(b,_,v,y);if(v.code==="EISDIR")return l(b,_,v,y)}return y(v)})})}function h(b,_,y,D){i(b),i(_),i(typeof D=="function"),y&&i(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()?l(b,_,y,D):_.unlink(b,D)})})}function a(b,_,y){let D;i(b),i(_),y&&i(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()?f(b,_,y):_.unlinkSync(b)}function l(b,_,y,D){i(b),i(_),y&&i(y instanceof Error),i(typeof D=="function"),_.rmdir(b,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?s(b,_,D):w&&w.code==="ENOTDIR"?D(y):D(w)})}function s(b,_,y){i(b),i(_),i(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(o.join(b,E),_,S=>{if(!m){if(S)return y(m=S);--v===0&&_.rmdir(b,y)}})})})}function d(b,_){let y;_=_||{},u(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{y=_.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&p&&a(b,_,D)}try{y&&y.isDirectory()?f(b,_,null):_.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return p?a(b,_,D):f(b,_,D);if(D.code!=="EISDIR")throw D;f(b,_,D)}}function f(b,_,y){i(b),i(_),y&&i(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(i(b),i(_),_.readdirSync(b).forEach(y=>d(o.join(b,y),_)),p){let y=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-y<500)}else return _.rmdirSync(b,_)}c.exports=r,r.sync=d}),je=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=oa();c.exports={remove:n(o),removeSync:o.sync}}),ua=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=wt(),i=Z("path"),p=Mt(),u=je(),r=n(function(h,a){a=a||function(){},o.readdir(h,(l,s)=>{if(l)return p.mkdirs(h,a);s=s.map(f=>i.join(h,f)),d();function d(){let f=s.pop();if(!f)return a();u.remove(f,g=>{if(g)return a(g);d()})}})});function e(h){let a;try{a=o.readdirSync(h)}catch{return p.mkdirsSync(h)}a.forEach(l=>{l=i.join(h,l),u.removeSync(l)})}c.exports={emptyDirSync:e,emptydirSync:e,emptyDir:r,emptydir:r}}),aa=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=Z("path"),i=wt(),p=Mt(),u=Gt().pathExists;function r(h,a){function l(){i.writeFile(h,"",s=>{if(s)return a(s);a()})}i.stat(h,(s,d)=>{if(!s&&d.isFile())return a();let f=o.dirname(h);u(f,(g,b)=>{if(g)return a(g);if(b)return l();p.mkdirs(f,_=>{if(_)return a(_);l()})})})}function e(h){let a;try{a=i.statSync(h)}catch{}if(a&&a.isFile())return;let l=o.dirname(h);i.existsSync(l)||p.mkdirsSync(l),i.writeFileSync(h,"")}c.exports={createFile:n(r),createFileSync:e}}),la=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=Z("path"),i=wt(),p=Mt(),u=Gt().pathExists;function r(h,a,l){function s(d,f){i.link(d,f,g=>{if(g)return l(g);l(null)})}u(a,(d,f)=>{if(d)return l(d);if(f)return l(null);i.lstat(h,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),l(g);let b=o.dirname(a);u(b,(_,y)=>{if(_)return l(_);if(y)return s(h,a);p.mkdirs(b,D=>{if(D)return l(D);s(h,a)})})})})}function e(h,a){if(i.existsSync(a))return;try{i.lstatSync(h)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let l=o.dirname(a);return i.existsSync(l)||p.mkdirsSync(l),i.linkSync(h,a)}c.exports={createLink:n(r),createLinkSync:e}}),ca=N((t,c)=>{"use strict";B();var n=Z("path"),o=wt(),i=Gt().pathExists;function p(r,e,h){if(n.isAbsolute(r))return o.lstat(r,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),h(a)):h(null,{toCwd:r,toDst:r}));{let a=n.dirname(e),l=n.join(a,r);return i(l,(s,d)=>s?h(s):d?h(null,{toCwd:l,toDst:r}):o.lstat(r,f=>f?(f.message=f.message.replace("lstat","ensureSymlink"),h(f)):h(null,{toCwd:r,toDst:n.relative(a,r)})))}}function u(r,e){let h;if(n.isAbsolute(r)){if(h=o.existsSync(r),!h)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let a=n.dirname(e),l=n.join(a,r);if(h=o.existsSync(l),h)return{toCwd:l,toDst:r};if(h=o.existsSync(r),!h)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(a,r)}}}c.exports={symlinkPaths:p,symlinkPathsSync:u}}),ha=N((t,c)=>{"use strict";B();var n=wt();function o(p,u,r){if(r=typeof u=="function"?u:r,u=typeof u=="function"?!1:u,u)return r(null,u);n.lstat(p,(e,h)=>{if(e)return r(null,"file");u=h&&h.isDirectory()?"dir":"file",r(null,u)})}function i(p,u){let r;if(u)return u;try{r=n.lstatSync(p)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}c.exports={symlinkType:o,symlinkTypeSync:i}}),fa=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=Z("path"),i=wt(),p=Mt(),u=p.mkdirs,r=p.mkdirsSync,e=ca(),h=e.symlinkPaths,a=e.symlinkPathsSync,l=ha(),s=l.symlinkType,d=l.symlinkTypeSync,f=Gt().pathExists;function g(_,y,D,w){w=typeof D=="function"?D:w,D=typeof D=="function"?!1:D,f(y,(v,m)=>{if(v)return w(v);if(m)return w(null);h(_,y,(E,S)=>{if(E)return w(E);_=S.toDst,s(S.toCwd,D,(A,x)=>{if(A)return w(A);let L=o.dirname(y);f(L,(T,F)=>{if(T)return w(T);if(F)return i.symlink(_,y,x,w);u(L,R=>{if(R)return w(R);i.symlink(_,y,x,w)})})})})})}function b(_,y,D){if(i.existsSync(y))return;let w=a(_,y);_=w.toDst,D=d(w.toCwd,D);let v=o.dirname(y);return i.existsSync(v)||r(v),i.symlinkSync(_,y,D)}c.exports={createSymlink:n(g),createSymlinkSync:b}}),pa=N((t,c)=>{"use strict";B();var n=aa(),o=la(),i=fa();c.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:o.createLink,createLinkSync:o.createLinkSync,ensureLink:o.createLink,ensureLinkSync:o.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),da=N((t,c)=>{B();var n;try{n=wt()}catch{n=Z("fs")}function o(a,l,s){s==null&&(s=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||n,f=!0;"throws"in l&&(f=l.throws),d.readFile(a,l,function(g,b){if(g)return s(g);b=e(b);var _;try{_=JSON.parse(b,l?l.reviver:null)}catch(y){return f?(y.message=a+": "+y.message,s(y)):s(null,null)}s(null,_)})}function i(a,l){l=l||{},typeof l=="string"&&(l={encoding:l});var s=l.fs||n,d=!0;"throws"in l&&(d=l.throws);try{var f=s.readFileSync(a,l);return f=e(f),JSON.parse(f,l.reviver)}catch(g){if(d)throw g.message=a+": "+g.message,g;return null}}function p(a,l){var s,d=`
|
39
|
-
`;typeof l=="object"&&l!==null&&(l.spaces&&(s=l.spaces),l.EOL&&(d=l.EOL));var f=JSON.stringify(a,l?l.replacer:null,s);return f.replace(/\n/g,d)+d}function u(a,l,s,d){d==null&&(d=s,s={}),s=s||{};var f=s.fs||n,g="";try{g=p(l,s)}catch(b){d&&d(b,null);return}f.writeFile(a,g,s,d)}function r(a,l,s){s=s||{};var d=s.fs||n,f=p(l,s);return d.writeFileSync(a,f,s)}function e(a){return Buffer.isBuffer(a)&&(a=a.toString("utf8")),a=a.replace(/^\uFEFF/,""),a}var h={readFile:o,readFileSync:i,writeFile:u,writeFileSync:r};c.exports=h}),hr=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=da();c.exports={readJson:n(o.readFile),readJsonSync:o.readFileSync,writeJson:n(o.writeFile),writeJsonSync:o.writeFileSync}}),ma=N((t,c)=>{"use strict";B();var n=Z("path"),o=Mt(),i=Gt().pathExists,p=hr();function u(r,e,h,a){typeof h=="function"&&(a=h,h={});let l=n.dirname(r);i(l,(s,d)=>{if(s)return a(s);if(d)return p.writeJson(r,e,h,a);o.mkdirs(l,f=>{if(f)return a(f);p.writeJson(r,e,h,a)})})}c.exports=u}),ya=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Mt(),p=hr();function u(r,e,h){let a=o.dirname(r);n.existsSync(a)||i.mkdirsSync(a),p.writeJsonSync(r,e,h)}c.exports=u}),ga=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=hr();o.outputJson=n(ma()),o.outputJsonSync=ya(),o.outputJSON=o.outputJson,o.outputJSONSync=o.outputJsonSync,o.writeJSON=o.writeJson,o.writeJSONSync=o.writeJsonSync,o.readJSON=o.readJson,o.readJSONSync=o.readJsonSync,c.exports=o}),ba=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=Fn().copySync,p=je().removeSync,u=Mt().mkdirpSync,r=Ne();function e(s,d,f){f=f||{};let g=f.overwrite||f.clobber||!1,{srcStat:b}=r.checkPathsSync(s,d,"move");return r.checkParentPathsSync(s,b,d,"move"),u(o.dirname(d)),h(s,d,g)}function h(s,d,f){if(f)return p(d),a(s,d,f);if(n.existsSync(d))throw new Error("dest already exists.");return a(s,d,f)}function a(s,d,f){try{n.renameSync(s,d)}catch(g){if(g.code!=="EXDEV")throw g;return l(s,d,f)}}function l(s,d,f){return i(s,d,{overwrite:f,errorOnExist:!0}),p(s)}c.exports=e}),va=N((t,c)=>{"use strict";B(),c.exports={moveSync:ba()}}),_a=N((t,c)=>{"use strict";B();var n=wt(),o=Z("path"),i=kn().copy,p=je().remove,u=Mt().mkdirp,r=Gt().pathExists,e=Ne();function h(d,f,g,b){typeof g=="function"&&(b=g,g={});let _=g.overwrite||g.clobber||!1;e.checkPaths(d,f,"move",(y,D)=>{if(y)return b(y);let{srcStat:w}=D;e.checkParentPaths(d,w,f,"move",v=>{if(v)return b(v);u(o.dirname(f),m=>m?b(m):a(d,f,_,b))})})}function a(d,f,g,b){if(g)return p(f,_=>_?b(_):l(d,f,g,b));r(f,(_,y)=>_?b(_):y?b(new Error("dest already exists.")):l(d,f,g,b))}function l(d,f,g,b){n.rename(d,f,_=>_?_.code!=="EXDEV"?b(_):s(d,f,g,b):b())}function s(d,f,g,b){i(d,f,{overwrite:g,errorOnExist:!0},_=>_?b(_):p(d,b))}c.exports=h}),Ea=N((t,c)=>{"use strict";B();var n=jt().fromCallback;c.exports={move:n(_a())}}),wa=N((t,c)=>{"use strict";B();var n=jt().fromCallback,o=wt(),i=Z("path"),p=Mt(),u=Gt().pathExists;function r(h,a,l,s){typeof l=="function"&&(s=l,l="utf8");let d=i.dirname(h);u(d,(f,g)=>{if(f)return s(f);if(g)return o.writeFile(h,a,l,s);p.mkdirs(d,b=>{if(b)return s(b);o.writeFile(h,a,l,s)})})}function e(h,...a){let l=i.dirname(h);if(o.existsSync(l))return o.writeFileSync(h,...a);p.mkdirsSync(l),o.writeFileSync(h,...a)}c.exports={outputFile:n(r),outputFileSync:e}}),Da=N((t,c)=>{"use strict";B(),c.exports=Object.assign({},An(),Fn(),kn(),ua(),pa(),ga(),Mt(),va(),Ea(),wa(),Gt(),je());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(c.exports,"promises",{get(){return n.promises}})});B();B();var Fd=Ct(Ku());B();B();function Sa(t,c){if(!(t instanceof c))throw new TypeError("Cannot call a class as a function")}B();B();function lr(t){return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},lr(t)}B();function Aa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ca(t,c){if(c&&(lr(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(t)}B();function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},Ie(t)}B();B();function ve(t,c){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ve(t,c)}function xa(t,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(c&&c.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),c&&ve(t,c)}B();B();function Fa(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function ka(){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 Le(t,c,n){return ka()?Le=Reflect.construct.bind():Le=function(o,i,p){var u=[null];u.push.apply(u,i);var r=Function.bind.apply(o,u),e=new r;return p&&ve(e,p.prototype),e},Le.apply(null,arguments)}function cr(t){var c=typeof Map=="function"?new Map:void 0;return cr=function(n){if(n===null||!Fa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof c<"u"){if(c.has(n))return c.get(n);c.set(n,o)}function o(){return Le(n,arguments,Ie(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ve(o,n)},cr(t)}var kd=Ct(ta()),Rd=Ct(Da()),Od=function(t){xa(c,t);function c(n){var o;return Sa(this,c),o=Ca(this,Ie(c).call(this,"No package.json could be found upwards from the directory ".concat(n))),o.directory=n,o}return c}(cr(Error));B();var Oa=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function c(o){return o.reduce((i,p)=>[].concat(i,p),[])}t.flatten=c;function n(o,i){let p=[[]],u=0;for(let r of o)i(r)?(u++,p[u]=[]):p[u].push(r);return p}t.splitWhen=n}),Ta=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function c(n){return n.code==="ENOENT"}t.isEnoentCodeError=c}),Ba=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var c=class{constructor(o,i){this.name=o,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(o,i){return new c(o,i)}t.createDirentFromStats=n}),Pa=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var c=Z("path"),n=2,o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(e){return e.replace(/\\/g,"/")}t.unixify=i;function p(e,h){return c.resolve(e,h)}t.makeAbsolute=p;function u(e){return e.replace(o,"\\$2")}t.escape=u;function r(e){if(e.charAt(0)==="."){let h=e.charAt(1);if(h==="/"||h==="\\")return e.slice(n)}return e}t.removeLeadingDotSegment=r}),La=N((t,c)=>{B(),c.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var o;o=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(o[2])return!0;n=n.slice(o.index+o[0].length)}return!1}}),Ia=N((t,c)=>{B();var n=La(),o={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var r=0,e=-2,h=-2,a=-2,l=-2,s=-2;r<u.length;){if(u[r]==="*"||u[r+1]==="?"&&/[\].+)]/.test(u[r])||h!==-1&&u[r]==="["&&u[r+1]!=="]"&&(h<r&&(h=u.indexOf("]",r)),h>r&&(s===-1||s>h||(s=u.indexOf("\\",r),s===-1||s>h)))||a!==-1&&u[r]==="{"&&u[r+1]!=="}"&&(a=u.indexOf("}",r),a>r&&(s=u.indexOf("\\",r),s===-1||s>a))||l!==-1&&u[r]==="("&&u[r+1]==="?"&&/[:!=]/.test(u[r+2])&&u[r+3]!==")"&&(l=u.indexOf(")",r),l>r&&(s=u.indexOf("\\",r),s===-1||s>l))||e!==-1&&u[r]==="("&&u[r+1]!=="|"&&(e<r&&(e=u.indexOf("|",r)),e!==-1&&u[e+1]!==")"&&(l=u.indexOf(")",e),l>e&&(s=u.indexOf("\\",e),s===-1||s>l))))return!0;if(u[r]==="\\"){var d=u[r+1];r+=2;var f=o[d];if(f){var g=u.indexOf(f,r);g!==-1&&(r=g+1)}if(u[r]==="!")return!0}else r++}return!1},p=function(u){if(u[0]==="!")return!0;for(var r=0;r<u.length;){if(/[*?{}()[\]]/.test(u[r]))return!0;if(u[r]==="\\"){var e=u[r+1];r+=2;var h=o[e];if(h){var a=u.indexOf(h,r);a!==-1&&(r=a+1)}if(u[r]==="!")return!0}else r++}return!1};c.exports=function(u,r){if(typeof u!="string"||u==="")return!1;if(n(u))return!0;var e=i;return r&&r.strict===!1&&(e=p),e(u)}}),Na=N((t,c)=>{"use strict";B();var n=Ia(),o=Z("path").posix.dirname,i=Z("os").platform()==="win32",p="/",u=/\\/g,r=/[\{\[].*[\}\]]$/,e=/(^|[^\\])([\{\[]|\([^\)]+$)/,h=/\\([\!\*\?\|\[\]\(\)\{\}])/g;c.exports=function(a,l){var s=Object.assign({flipBackslashes:!0},l);s.flipBackslashes&&i&&a.indexOf(p)<0&&(a=a.replace(u,p)),r.test(a)&&(a+=p),a+="a";do a=o(a);while(n(a)||e.test(a));return a.replace(h,"$1")}}),_r=N(t=>{"use strict";B(),t.isInteger=c=>typeof c=="number"?Number.isInteger(c):typeof c=="string"&&c.trim()!==""?Number.isInteger(Number(c)):!1,t.find=(c,n)=>c.nodes.find(o=>o.type===n),t.exceedsLimit=(c,n,o=1,i)=>i===!1||!t.isInteger(c)||!t.isInteger(n)?!1:(Number(n)-Number(c))/Number(o)>=i,t.escapeNode=(c,n=0,o)=>{let i=c.nodes[n];!i||(o&&i.type===o||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},t.encloseBrace=c=>c.type!=="brace"||c.commas>>0+c.ranges>>0?!1:(c.invalid=!0,!0),t.isInvalidBrace=c=>c.type!=="brace"?!1:c.invalid===!0||c.dollar?!0:!(c.commas>>0+c.ranges>>0)||c.open!==!0||c.close!==!0?(c.invalid=!0,!0):!1,t.isOpenOrClose=c=>c.type==="open"||c.type==="close"?!0:c.open===!0||c.close===!0,t.reduce=c=>c.reduce((n,o)=>(o.type==="text"&&n.push(o.value),o.type==="range"&&(o.type="text"),n),[]),t.flatten=(...c)=>{let n=[],o=i=>{for(let p=0;p<i.length;p++){let u=i[p];Array.isArray(u)?o(u,n):u!==void 0&&n.push(u)}return n};return o(c),n}}),Er=N((t,c)=>{"use strict";B();var n=_r();c.exports=(o,i={})=>{let p=(u,r={})=>{let e=i.escapeInvalid&&n.isInvalidBrace(r),h=u.invalid===!0&&i.escapeInvalid===!0,a="";if(u.value)return(e||h)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let l of u.nodes)a+=p(l);return a};return p(o)}}),ja=N((t,c)=>{"use strict";B(),c.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),Ma=N((t,c)=>{"use strict";B();var n=ja(),o=(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(o.cache.hasOwnProperty(x))return o.cache[x].result;let L=Math.min(y,D),T=Math.max(y,D);if(Math.abs(L-T)===1){let O=y+"|"+D;return v.capture?`(${O})`:v.wrap===!1?O:`(?:${O})`}let F=b(y)||b(D),R={min:y,max:D,a:L,b:T},I=[],$=[];if(F&&(R.isPadded=F,R.maxLen=String(R.max).length),L<0){let O=T<0?Math.abs(T):1;$=r(O,Math.abs(L),R,v),L=R.a=0}return T>=0&&(I=r(L,T,R,v)),R.negatives=$,R.positives=I,R.result=i($,I,v),v.capture===!0?R.result=`(${R.result})`:v.wrap!==!1&&I.length+$.length>1&&(R.result=`(?:${R.result})`),o.cache[x]=R,R.result};function i(y,D,w){let v=e(y,D,"-",!1,w)||[],m=e(D,y,"",!1,w)||[],E=e(y,D,"-?",!0,w)||[];return v.concat(E).concat(m).join("|")}function p(y,D){let w=1,v=1,m=s(y,w),E=new Set([D]);for(;y<=m&&m<=D;)E.add(m),w+=1,m=s(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(a),E}function u(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=p(y,D),E=[],S=y,A;for(let x=0;x<m.length;x++){let L=m[x],T=u(String(S),String(L),v),F="";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+f(A.count),S=L+1;continue}w.isPadded&&(F=_(L,w,v)),T.string=F+T.pattern+f(T.count),E.push(T),S=L+1,A=T}return E}function e(y,D,w,v,m){let E=[];for(let S of y){let{string:A}=S;!v&&!l(D,"string",A)&&E.push(w+A),v&&l(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 a(y,D){return y>D?1:D>y?-1:0}function l(y,D,w){return y.some(v=>v[D]===w)}function s(y,D){return Number(String(y).slice(0,-D)+"9".repeat(D))}function d(y,D){return y-y%Math.pow(10,D)}function f(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}}`}}o.cache={},o.clearCache=()=>o.cache={},c.exports=o}),zn=N((t,c)=>{"use strict";B();var n=Z("util"),o=Ma(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),p=v=>m=>v===!0?Number(m):String(m),u=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),e=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,a=(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},l=(v,m)=>{let E=v[0]==="-"?"-":"";for(E&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return E?"-"+v:v},s=(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 o(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let x=String.fromCharCode(m);return`[${A}-${x}]`},f=(v,m,E)=>{if(Array.isArray(v)){let S=E.wrap===!0,A=E.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return o(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),F=String(m),R=String(E);E=Math.max(Math.abs(E),1);let I=e(T)||e(F)||e(R),$=I?Math.max(T.length,F.length,R.length):0,O=I===!1&&h(v,m,S)===!1,q=S.transform||p(O);if(S.toRegex&&E===1)return d(l(v,$),l(m,$),!0,S);let W={negatives:[],positives:[]},Q=k=>W[k<0?"negatives":"positives"].push(Math.abs(k)),P=[],j=0;for(;L?A>=x:A<=x;)S.toRegex===!0&&E>1?Q(A):P.push(a(q(A,j),$,O)),A=L?A-E:A+E,j++;return S.toRegex===!0?E>1?s(W,S):f(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||(O=>String.fromCharCode(O)),x=`${v}`.charCodeAt(0),L=`${m}`.charCodeAt(0),T=x>L,F=Math.min(x,L),R=Math.max(x,L);if(S.toRegex&&E===1)return d(F,R,!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?f(I,null,{wrap:!1,options:S}):I},w=(v,m,E,S={})=>{if(m==null&&u(v))return[v];if(!u(v)||!u(m))return b(v,m,S);if(typeof E=="function")return w(v,m,1,{transform:E});if(i(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&&!i(E)?_(E,A):w(v,m,1,E)};c.exports=w}),$a=N((t,c)=>{"use strict";B();var n=zn(),o=_r(),i=(p,u={})=>{let r=(e,h={})=>{let a=o.isInvalidBrace(h),l=e.invalid===!0&&u.escapeInvalid===!0,s=a===!0||l===!0,d=u.escapeInvalid===!0?"\\":"",f="";if(e.isOpen===!0||e.isClose===!0)return d+e.value;if(e.type==="open")return s?d+e.value:"(";if(e.type==="close")return s?d+e.value:")";if(e.type==="comma")return e.prev.type==="comma"?"":s?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let g=o.reduce(e.nodes),b=n(...g,{...u,wrap:!1,toRegex:!0});if(b.length!==0)return g.length>1&&b.length>1?`(${b})`:b}if(e.nodes)for(let g of e.nodes)f+=r(g,e);return f};return r(p)};c.exports=i}),Ha=N((t,c)=>{"use strict";B();var n=zn(),o=Er(),i=_r(),p=(r="",e="",h=!1)=>{let a=[];if(r=[].concat(r),e=[].concat(e),!e.length)return r;if(!r.length)return h?i.flatten(e).map(l=>`{${l}}`):e;for(let l of r)if(Array.isArray(l))for(let s of l)a.push(p(s,e,h));else for(let s of e)h===!0&&typeof s=="string"&&(s=`{${s}}`),a.push(Array.isArray(s)?p(l,s,h):l+s);return i.flatten(a)},u=(r,e={})=>{let h=e.rangeLimit===void 0?1e3:e.rangeLimit,a=(l,s={})=>{l.queue=[];let d=s,f=s.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,f=d.queue;if(l.invalid||l.dollar){f.push(p(f.pop(),o(l,e)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){f.push(p(f.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let y=i.reduce(l.nodes);if(i.exceedsLimit(...y,e.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...y,e);D.length===0&&(D=o(l,e)),f.push(p(f.pop(),D)),l.nodes=[];return}let g=i.encloseBrace(l),b=l.queue,_=l;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let y=0;y<l.nodes.length;y++){let D=l.nodes[y];if(D.type==="comma"&&l.type==="brace"){y===1&&b.push(""),b.push("");continue}if(D.type==="close"){f.push(p(f.pop(),b,g));continue}if(D.value&&D.type!=="open"){b.push(p(b.pop(),D.value));continue}D.nodes&&a(D,l)}return b};return i.flatten(a(r))};c.exports=u}),Ua=N((t,c)=>{"use strict";B(),c.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"}}),qa=N((t,c)=>{"use strict";B();var n=Er(),{MAX_LENGTH:o,CHAR_BACKSLASH:i,CHAR_BACKTICK:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:e,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:a,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:s,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:f,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Ua(),y=(D,w={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=w||{},m=typeof v.maxLength=="number"?Math.min(o,v.maxLength):o;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,F=0,R=0,I,$={},O=()=>D[F++],q=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(q({type:"bos"});F<T;)if(A=S[S.length-1],I=O(),!(I===_||I===b)){if(I===i){q({type:"text",value:(w.keepEscaping?I:"")+O()});continue}if(I===d){q({type:"text",value:"\\"+I});continue}if(I===s){L++;let W=!0,Q;for(;F<T&&(Q=O());){if(I+=Q,Q===s){L++;continue}if(Q===i){I+=O();continue}if(Q===d&&(L--,L===0))break}q({type:"text",value:I});continue}if(I===e){A=q({type:"paren",nodes:[]}),S.push(A),q({type:"text",value:I});continue}if(I===h){if(A.type!=="paren"){q({type:"text",value:I});continue}A=S.pop(),q({type:"text",value:I}),A=S[S.length-1];continue}if(I===f||I===g||I===p){let W=I,Q;for(w.keepQuotes!==!0&&(I="");F<T&&(Q=O());){if(Q===i){I+=Q+O();continue}if(Q===W){w.keepQuotes===!0&&(I+=Q);break}I+=Q}q({type:"text",value:I});continue}if(I===a){R++;let W=x.value&&x.value.slice(-1)==="$"||A.dollar===!0;A=q({type:"brace",open:!0,close:!1,dollar:W,depth:R,commas:0,ranges:0,nodes:[]}),S.push(A),q({type:"open",value:I});continue}if(I===l){if(A.type!=="brace"){q({type:"text",value:I});continue}let W="close";A=S.pop(),A.close=!0,q({type:W,value:I}),R--,A=S[S.length-1];continue}if(I===u&&R>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:n(A)}]}q({type:"comma",value:I}),A.commas++;continue}if(I===r&&R>0&&A.commas===0){let W=A.nodes;if(R===0||W.length===0){q({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}q({type:"dot",value:I});continue}q({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 q({type:"eos"}),E};c.exports=y}),Ga=N((t,c)=>{"use strict";B();var n=Er(),o=$a(),i=Ha(),p=qa(),u=(r,e={})=>{let h=[];if(Array.isArray(r))for(let a of r){let l=u.create(a,e);Array.isArray(l)?h.push(...l):h.push(l)}else h=[].concat(u.create(r,e));return e&&e.expand===!0&&e.nodupes===!0&&(h=[...new Set(h)]),h};u.parse=(r,e={})=>p(r,e),u.stringify=(r,e={})=>n(typeof r=="string"?u.parse(r,e):r,e),u.compile=(r,e={})=>(typeof r=="string"&&(r=u.parse(r,e)),o(r,e)),u.expand=(r,e={})=>{typeof r=="string"&&(r=u.parse(r,e));let h=i(r,e);return e.noempty===!0&&(h=h.filter(Boolean)),e.nodupes===!0&&(h=[...new Set(h)]),h},u.create=(r,e={})=>r===""||r.length<3?[r]:e.expand!==!0?u.compile(r,e):u.expand(r,e),c.exports=u}),Ge=N((t,c)=>{"use strict";B();var n=Z("path"),o="\\\\/",i=`[^${o}]`,p="\\.",u="\\+",r="\\?",e="\\/",h="(?=.)",a="[^/]",l=`(?:${e}|$)`,s=`(?:^|${e})`,d=`${p}{1,2}${l}`,f=`(?!${p})`,g=`(?!${s}${d})`,b=`(?!${p}{0,1}${l})`,_=`(?!${d})`,y=`[^.${e}]`,D=`${a}*?`,w={DOT_LITERAL:p,PLUS_LITERAL:u,QMARK_LITERAL:r,SLASH_LITERAL:e,ONE_CHAR:h,QMARK:a,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:y,STAR:D,START_ANCHOR:s},v={...w,SLASH_LITERAL:`[${o}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${p}{1,2}(?:[${o}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${o}])${p}{1,2}(?:[${o}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${o}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${o}]|$))`,QMARK_NO_DOT:`[^.${o}]`,START_ANCHOR:`(?:^|[${o}])`,END_ANCHOR:`(?:[${o}]|$)`},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"};c.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}}}),ze=N(t=>{"use strict";B();var c=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:u}=Ge();t.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),t.hasRegexChars=r=>p.test(r),t.isRegexChar=r=>r.length===1&&t.hasRegexChars(r),t.escapeRegex=r=>r.replace(u,"\\$1"),t.toPosixSlashes=r=>r.replace(o,"/"),t.removeBackslashes=r=>r.replace(i,e=>e==="\\"?"":e),t.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},t.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||c.sep==="\\",t.escapeLast=(r,e,h)=>{let a=r.lastIndexOf(e,h);return a===-1?r:r[a-1]==="\\"?t.escapeLast(r,e,a-1):`${r.slice(0,a)}\\${r.slice(a)}`},t.removePrefix=(r,e={})=>{let h=r;return h.startsWith("./")&&(h=h.slice(2),e.prefix="./"),h},t.wrapOutput=(r,e={},h={})=>{let a=h.contains?"":"^",l=h.contains?"":"$",s=`${a}(?:${r})${l}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}}),za=N((t,c)=>{"use strict";B();var n=ze(),{CHAR_ASTERISK:o,CHAR_AT:i,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:e,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:s,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Ge(),y=v=>v===h||v===p,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=[],F=v,R=-1,I=0,$=0,O=!1,q=!1,W=!1,Q=!1,P=!1,j=!1,k=!1,J=!1,G=!1,tt=!1,M=0,K,et,st={value:"",depth:0,isGlob:!1},lt=()=>R>=S,yt=()=>F.charCodeAt(R+1),dt=()=>(K=et,F.charCodeAt(++R));for(;R<S;){et=dt();let X;if(et===p){k=st.backslashes=!0,et=dt(),et===a&&(j=!0);continue}if(j===!0||et===a){for(M++;lt()!==!0&&(et=dt());){if(et===p){k=st.backslashes=!0,dt();continue}if(et===a){M++;continue}if(j!==!0&&et===r&&(et=dt())===r){if(O=st.isBrace=!0,W=st.isGlob=!0,tt=!0,A===!0)continue;break}if(j!==!0&&et===u){if(O=st.isBrace=!0,W=st.isGlob=!0,tt=!0,A===!0)continue;break}if(et===g&&(M--,M===0)){j=!1,O=st.isBrace=!0,tt=!0;break}}if(A===!0)continue;break}if(et===h){if(x.push(R),L.push(st),st={value:"",depth:0,isGlob:!1},tt===!0)continue;if(K===r&&R===I+1){I+=2;continue}$=R+1;continue}if(E.noext!==!0&&(et===d||et===i||et===o||et===f||et===e)&&yt()===l){if(W=st.isGlob=!0,Q=st.isExtglob=!0,tt=!0,et===e&&R===I&&(G=!0),A===!0){for(;lt()!==!0&&(et=dt());){if(et===p){k=st.backslashes=!0,et=dt();continue}if(et===b){W=st.isGlob=!0,tt=!0;break}}continue}break}if(et===o){if(K===o&&(P=st.isGlobstar=!0),W=st.isGlob=!0,tt=!0,A===!0)continue;break}if(et===f){if(W=st.isGlob=!0,tt=!0,A===!0)continue;break}if(et===s){for(;lt()!==!0&&(X=dt());){if(X===p){k=st.backslashes=!0,dt();continue}if(X===_){q=st.isBracket=!0,W=st.isGlob=!0,tt=!0;break}}if(A===!0)continue;break}if(E.nonegate!==!0&&et===e&&R===I){J=st.negated=!0,I++;continue}if(E.noparen!==!0&&et===l){if(W=st.isGlob=!0,A===!0){for(;lt()!==!0&&(et=dt());){if(et===l){k=st.backslashes=!0,et=dt();continue}if(et===b){tt=!0;break}}continue}break}if(W===!0){if(tt=!0,A===!0)continue;break}}E.noext===!0&&(Q=!1,W=!1);let H=F,V="",C="";I>0&&(V=F.slice(0,I),F=F.slice(I),$-=I),H&&W===!0&&$>0?(H=F.slice(0,$),C=F.slice($)):W===!0?(H="",C=F):H=F,H&&H!==""&&H!=="/"&&H!==F&&y(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),E.unescape===!0&&(C&&(C=n.removeBackslashes(C)),H&&k===!0&&(H=n.removeBackslashes(H)));let z={prefix:V,input:v,start:I,base:H,glob:C,isBrace:O,isBracket:q,isGlob:W,isExtglob:Q,isGlobstar:P,negated:J,negatedExtglob:G};if(E.tokens===!0&&(z.maxDepth=0,y(et)||L.push(st),z.tokens=L),E.parts===!0||E.tokens===!0){let X;for(let rt=0;rt<x.length;rt++){let ct=X?X+1:I,it=x[rt],at=v.slice(ct,it);E.tokens&&(rt===0&&I!==0?(L[rt].isPrefix=!0,L[rt].value=V):L[rt].value=at,D(L[rt]),z.maxDepth+=L[rt].depth),(rt!==0||at!=="")&&T.push(at),X=it}if(X&&X+1<v.length){let rt=v.slice(X+1);T.push(rt),E.tokens&&(L[L.length-1].value=rt,D(L[L.length-1]),z.maxDepth+=L[L.length-1].depth)}z.slashes=x,z.parts=T}return z};c.exports=w}),Wa=N((t,c)=>{"use strict";B();var n=Ge(),o=ze(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:e}=n,h=(s,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...s,d);s.sort();let f=`[${s.join("-")}]`;try{new RegExp(f)}catch{return s.map(g=>o.escapeRegex(g)).join("..")}return f},a=(s,d)=>`Missing ${s}: "${d}" - use "\\\\${d}" to match literal characters`,l=(s,d)=>{if(typeof s!="string")throw new TypeError("Expected a string");s=e[s]||s;let f={...d},g=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i,b=s.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);let _={type:"bos",value:"",output:f.prepend||""},y=[_],D=f.capture?"":"?:",w=o.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:F,NO_DOTS_SLASH:R,QMARK:I,QMARK_NO_DOT:$,STAR:O,START_ANCHOR:q}=v,W=it=>`(${D}(?:(?!${q}${it.dot?L:E}).)*?)`,Q=f.dot?"":T,P=f.dot?I:$,j=f.bash===!0?W(f):O;f.capture&&(j=`(${j})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);let k={input:s,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};s=o.removePrefix(s,k),b=s.length;let J=[],G=[],tt=[],M=_,K,et=()=>k.index===b-1,st=k.peek=(it=1)=>s[k.index+it],lt=k.advance=()=>s[++k.index]||"",yt=()=>s.slice(k.index+1),dt=(it="",at=0)=>{k.consumed+=it,k.index+=at},H=it=>{k.output+=it.output!=null?it.output:it.value,dt(it.value)},V=()=>{let it=1;for(;st()==="!"&&(st(2)!=="("||st(3)==="?");)lt(),k.start++,it++;return it%2===0?!1:(k.negated=!0,k.start++,!0)},C=it=>{k[it]++,tt.push(it)},z=it=>{k[it]--,tt.pop()},X=it=>{if(M.type==="globstar"){let at=k.braces>0&&(it.type==="comma"||it.type==="brace"),nt=it.extglob===!0||J.length&&(it.type==="pipe"||it.type==="paren");it.type!=="slash"&&it.type!=="paren"&&!at&&!nt&&(k.output=k.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=j,k.output+=M.output)}if(J.length&&it.type!=="paren"&&(J[J.length-1].inner+=it.value),(it.value||it.output)&&H(it),M&&M.type==="text"&&it.type==="text"){M.value+=it.value,M.output=(M.output||"")+it.value;return}it.prev=M,y.push(it),M=it},rt=(it,at)=>{let nt={...m[at],conditions:1,inner:""};nt.prev=M,nt.parens=k.parens,nt.output=k.output;let ht=(f.capture?"(":"")+nt.open;C("parens"),X({type:it,value:at,output:k.output?"":x}),X({type:"paren",extglob:!0,value:lt(),output:ht}),J.push(nt)},ct=it=>{let at=it.close+(f.capture?")":""),nt;if(it.type==="negate"){let ht=j;if(it.inner&&it.inner.length>1&&it.inner.includes("/")&&(ht=W(f)),(ht!==j||et()||/^\)+$/.test(yt()))&&(at=it.close=`)$))${ht}`),it.inner.includes("*")&&(nt=yt())&&/^\.[^\\/.]+$/.test(nt)){let bt=l(nt,{...d,fastpaths:!1}).output;at=it.close=`)${bt})${ht})`}it.prev.type==="bos"&&(k.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:K,output:at}),z("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(s)){let it=!1,at=s.replace(r,(nt,ht,bt,Dt,Y,U)=>Dt==="\\"?(it=!0,nt):Dt==="?"?ht?ht+Dt+(Y?I.repeat(Y.length):""):U===0?P+(Y?I.repeat(Y.length):""):I.repeat(bt.length):Dt==="."?E.repeat(bt.length):Dt==="*"?ht?ht+Dt+(Y?j:""):j:ht?nt:`\\${nt}`);return it===!0&&(f.unescape===!0?at=at.replace(/\\/g,""):at=at.replace(/\\+/g,nt=>nt.length%2===0?"\\\\":nt?"\\":"")),at===s&&f.contains===!0?(k.output=s,k):(k.output=o.wrapOutput(at,k,d),k)}for(;!et();){if(K=lt(),K==="\0")continue;if(K==="\\"){let nt=st();if(nt==="/"&&f.bash!==!0||nt==="."||nt===";")continue;if(!nt){K+="\\",X({type:"text",value:K});continue}let ht=/^\\+/.exec(yt()),bt=0;if(ht&&ht[0].length>2&&(bt=ht[0].length,k.index+=bt,bt%2!==0&&(K+="\\")),f.unescape===!0?K=lt():K+=lt(),k.brackets===0){X({type:"text",value:K});continue}}if(k.brackets>0&&(K!=="]"||M.value==="["||M.value==="[^")){if(f.posix!==!1&&K===":"){let nt=M.value.slice(1);if(nt.includes("[")&&(M.posix=!0,nt.includes(":"))){let ht=M.value.lastIndexOf("["),bt=M.value.slice(0,ht),Dt=M.value.slice(ht+2),Y=p[Dt];if(Y){M.value=bt+Y,k.backtrack=!0,lt(),!_.output&&y.indexOf(M)===1&&(_.output=x);continue}}}(K==="["&&st()!==":"||K==="-"&&st()==="]")&&(K=`\\${K}`),K==="]"&&(M.value==="["||M.value==="[^")&&(K=`\\${K}`),f.posix===!0&&K==="!"&&M.value==="["&&(K="^"),M.value+=K,H({value:K});continue}if(k.quotes===1&&K!=='"'){K=o.escapeRegex(K),M.value+=K,H({value:K});continue}if(K==='"'){k.quotes=k.quotes===1?0:1,f.keepQuotes===!0&&X({type:"text",value:K});continue}if(K==="("){C("parens"),X({type:"paren",value:K});continue}if(K===")"){if(k.parens===0&&f.strictBrackets===!0)throw new SyntaxError(a("opening","("));let nt=J[J.length-1];if(nt&&k.parens===nt.parens+1){ct(J.pop());continue}X({type:"paren",value:K,output:k.parens?")":"\\)"}),z("parens");continue}if(K==="["){if(f.nobracket===!0||!yt().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(a("closing","]"));K=`\\${K}`}else C("brackets");X({type:"bracket",value:K});continue}if(K==="]"){if(f.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){X({type:"text",value:K,output:`\\${K}`});continue}if(k.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(a("opening","["));X({type:"text",value:K,output:`\\${K}`});continue}z("brackets");let nt=M.value.slice(1);if(M.posix!==!0&&nt[0]==="^"&&!nt.includes("/")&&(K=`/${K}`),M.value+=K,H({value:K}),f.literalBrackets===!1||o.hasRegexChars(nt))continue;let ht=o.escapeRegex(M.value);if(k.output=k.output.slice(0,-M.value.length),f.literalBrackets===!0){k.output+=ht,M.value=ht;continue}M.value=`(${D}${ht}|${M.value})`,k.output+=M.value;continue}if(K==="{"&&f.nobrace!==!0){C("braces");let nt={type:"brace",value:K,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};G.push(nt),X(nt);continue}if(K==="}"){let nt=G[G.length-1];if(f.nobrace===!0||!nt){X({type:"text",value:K,output:K});continue}let ht=")";if(nt.dots===!0){let bt=y.slice(),Dt=[];for(let Y=bt.length-1;Y>=0&&(y.pop(),bt[Y].type!=="brace");Y--)bt[Y].type!=="dots"&&Dt.unshift(bt[Y].value);ht=h(Dt,f),k.backtrack=!0}if(nt.comma!==!0&&nt.dots!==!0){let bt=k.output.slice(0,nt.outputIndex),Dt=k.tokens.slice(nt.tokensIndex);nt.value=nt.output="\\{",K=ht="\\}",k.output=bt;for(let Y of Dt)k.output+=Y.output||Y.value}X({type:"brace",value:K,output:ht}),z("braces"),G.pop();continue}if(K==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:K});continue}if(K===","){let nt=K,ht=G[G.length-1];ht&&tt[tt.length-1]==="braces"&&(ht.comma=!0,nt="|"),X({type:"comma",value:K,output:nt});continue}if(K==="/"){if(M.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",y.pop(),M=_;continue}X({type:"slash",value:K,output:A});continue}if(K==="."){if(k.braces>0&&M.type==="dot"){M.value==="."&&(M.output=E);let nt=G[G.length-1];M.type="dots",M.output+=K,M.value+=K,nt.dots=!0;continue}if(k.braces+k.parens===0&&M.type!=="bos"&&M.type!=="slash"){X({type:"text",value:K,output:E});continue}X({type:"dot",value:K,output:E});continue}if(K==="?"){if(!(M&&M.value==="(")&&f.noextglob!==!0&&st()==="("&&st(2)!=="?"){rt("qmark",K);continue}if(M&&M.type==="paren"){let nt=st(),ht=K;if(nt==="<"&&!o.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(M.value==="("&&!/[!=<:]/.test(nt)||nt==="<"&&!/<([!=]|\w+>)/.test(yt()))&&(ht=`\\${K}`),X({type:"text",value:K,output:ht});continue}if(f.dot!==!0&&(M.type==="slash"||M.type==="bos")){X({type:"qmark",value:K,output:$});continue}X({type:"qmark",value:K,output:I});continue}if(K==="!"){if(f.noextglob!==!0&&st()==="("&&(st(2)!=="?"||!/[!=<:]/.test(st(3)))){rt("negate",K);continue}if(f.nonegate!==!0&&k.index===0){V();continue}}if(K==="+"){if(f.noextglob!==!0&&st()==="("&&st(2)!=="?"){rt("plus",K);continue}if(M&&M.value==="("||f.regex===!1){X({type:"plus",value:K,output:S});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||k.parens>0){X({type:"plus",value:K});continue}X({type:"plus",value:S});continue}if(K==="@"){if(f.noextglob!==!0&&st()==="("&&st(2)!=="?"){X({type:"at",extglob:!0,value:K,output:""});continue}X({type:"text",value:K});continue}if(K!=="*"){(K==="$"||K==="^")&&(K=`\\${K}`);let nt=u.exec(yt());nt&&(K+=nt[0],k.index+=nt[0].length),X({type:"text",value:K});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=K,M.output=j,k.backtrack=!0,k.globstar=!0,dt(K);continue}let it=yt();if(f.noextglob!==!0&&/^\([^?]/.test(it)){rt("star",K);continue}if(M.type==="star"){if(f.noglobstar===!0){dt(K);continue}let nt=M.prev,ht=nt.prev,bt=nt.type==="slash"||nt.type==="bos",Dt=ht&&(ht.type==="star"||ht.type==="globstar");if(f.bash===!0&&(!bt||it[0]&&it[0]!=="/")){X({type:"star",value:K,output:""});continue}let Y=k.braces>0&&(nt.type==="comma"||nt.type==="brace"),U=J.length&&(nt.type==="pipe"||nt.type==="paren");if(!bt&&nt.type!=="paren"&&!Y&&!U){X({type:"star",value:K,output:""});continue}for(;it.slice(0,3)==="/**";){let ot=s[k.index+4];if(ot&&ot!=="/")break;it=it.slice(3),dt("/**",3)}if(nt.type==="bos"&&et()){M.type="globstar",M.value+=K,M.output=W(f),k.output=M.output,k.globstar=!0,dt(K);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&!Dt&&et()){k.output=k.output.slice(0,-(nt.output+M.output).length),nt.output=`(?:${nt.output}`,M.type="globstar",M.output=W(f)+(f.strictSlashes?")":"|$)"),M.value+=K,k.globstar=!0,k.output+=nt.output+M.output,dt(K);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&it[0]==="/"){let ot=it[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(nt.output+M.output).length),nt.output=`(?:${nt.output}`,M.type="globstar",M.output=`${W(f)}${A}|${A}${ot})`,M.value+=K,k.output+=nt.output+M.output,k.globstar=!0,dt(K+lt()),X({type:"slash",value:"/",output:""});continue}if(nt.type==="bos"&&it[0]==="/"){M.type="globstar",M.value+=K,M.output=`(?:^|${A}|${W(f)}${A})`,k.output=M.output,k.globstar=!0,dt(K+lt()),X({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-M.output.length),M.type="globstar",M.output=W(f),M.value+=K,k.output+=M.output,k.globstar=!0,dt(K);continue}let at={type:"star",value:K,output:j};if(f.bash===!0){at.output=".*?",(M.type==="bos"||M.type==="slash")&&(at.output=Q+at.output),X(at);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&f.regex===!0){at.output=K,X(at);continue}(k.index===k.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?(k.output+=F,M.output+=F):f.dot===!0?(k.output+=R,M.output+=R):(k.output+=Q,M.output+=Q),st()!=="*"&&(k.output+=x,M.output+=x)),X(at)}for(;k.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(a("closing","]"));k.output=o.escapeLast(k.output,"["),z("brackets")}for(;k.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(a("closing",")"));k.output=o.escapeLast(k.output,"("),z("parens")}for(;k.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(a("closing","}"));k.output=o.escapeLast(k.output,"{"),z("braces")}if(f.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),k.backtrack===!0){k.output="";for(let it of k.tokens)k.output+=it.output!=null?it.output:it.value,it.suffix&&(k.output+=it.suffix)}return k};l.fastpaths=(s,d)=>{let f={...d},g=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i,b=s.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);s=e[s]||s;let _=o.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=f.dot?E:m,T=f.dot?S:m,F=f.capture?"":"?:",R={negated:!1,prefix:""},I=f.bash===!0?".*?":A;f.capture&&(I=`(${I})`);let $=Q=>Q.noglobstar===!0?I:`(${F}(?:(?!${x}${Q.dot?v:y}).)*?)`,O=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+$(f);case"**/*":return`(?:${L}${$(f)}${D})?${T}${w}${I}`;case"**/*.*":return`(?:${L}${$(f)}${D})?${T}${I}${y}${w}${I}`;case"**/.*":return`(?:${L}${$(f)}${D})?${y}${w}${I}`;default:{let P=/^(.*?)\.(\w+)$/.exec(Q);if(!P)return;let j=O(P[1]);return j?j+y+P[2]:void 0}}},q=o.removePrefix(s,R),W=O(q);return W&&f.strictSlashes!==!0&&(W+=`${D}?`),W},c.exports=l}),Va=N((t,c)=>{"use strict";B();var n=Z("path"),o=za(),i=Wa(),p=ze(),u=Ge(),r=h=>h&&typeof h=="object"&&!Array.isArray(h),e=(h,a,l=!1)=>{if(Array.isArray(h)){let D=h.map(w=>e(w,a,l));return w=>{for(let v of D){let m=v(w);if(m)return m}return!1}}let s=r(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let d=a||{},f=p.isWindows(a),g=s?e.compileRe(h,a):e.makeRe(h,a,!1,!0),b=g.state;delete g.state;let _=()=>!1;if(d.ignore){let D={...a,ignore:null,onMatch:null,onResult:null};_=e(d.ignore,D,l)}let y=(D,w=!1)=>{let{isMatch:v,match:m,output:E}=e.test(D,g,a,{glob:h,posix:f}),S={glob:h,state:b,regex:g,posix:f,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 l&&(y.state=b),y};e.test=(h,a,l,{glob:s,posix:d}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};let f=l||{},g=f.format||(d?p.toPosixSlashes:null),b=h===s,_=b&&g?g(h):h;return b===!1&&(_=g?g(h):h,b=_===s),(b===!1||f.capture===!0)&&(f.matchBase===!0||f.basename===!0?b=e.matchBase(h,a,l,d):b=a.exec(_)),{isMatch:!!b,match:b,output:_}},e.matchBase=(h,a,l,s=p.isWindows(l))=>(a instanceof RegExp?a:e.makeRe(a,l)).test(n.basename(h)),e.isMatch=(h,a,l)=>e(a,l)(h),e.parse=(h,a)=>Array.isArray(h)?h.map(l=>e.parse(l,a)):i(h,{...a,fastpaths:!1}),e.scan=(h,a)=>o(h,a),e.compileRe=(h,a,l=!1,s=!1)=>{if(l===!0)return h.output;let d=a||{},f=d.contains?"":"^",g=d.contains?"":"$",b=`${f}(?:${h.output})${g}`;h&&h.negated===!0&&(b=`^(?!${b}).*$`);let _=e.toRegex(b,a);return s===!0&&(_.state=h),_},e.makeRe=(h,a={},l=!1,s=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(d.output=i.fastpaths(h,a)),d.output||(d=i(h,a)),e.compileRe(d,a,l,s)},e.toRegex=(h,a)=>{try{let l=a||{};return new RegExp(h,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},e.constants=u,c.exports=e}),Ka=N((t,c)=>{"use strict";B(),c.exports=Va()}),Ya=N((t,c)=>{"use strict";B();var n=Z("util"),o=Ga(),i=Ka(),p=ze(),u=e=>e===""||e==="./",r=(e,h,a)=>{h=[].concat(h),e=[].concat(e);let l=new Set,s=new Set,d=new Set,f=0,g=_=>{d.add(_.output),a&&a.onResult&&a.onResult(_)};for(let _=0;_<h.length;_++){let y=i(String(h[_]),{...a,onResult:g},!0),D=y.state.negated||y.state.negatedExtglob;D&&f++;for(let w of e){let v=y(w,!0);!(D?!v.isMatch:v.isMatch)||(D?l.add(v.output):(l.delete(v.output),s.add(v.output)))}}let b=(f===h.length?[...d]:[...s]).filter(_=>!l.has(_));if(a&&b.length===0){if(a.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(a.nonull===!0||a.nullglob===!0)return a.unescape?h.map(_=>_.replace(/\\/g,"")):h}return b};r.match=r,r.matcher=(e,h)=>i(e,h),r.isMatch=(e,h,a)=>i(h,a)(e),r.any=r.isMatch,r.not=(e,h,a={})=>{h=[].concat(h).map(String);let l=new Set,s=[],d=g=>{a.onResult&&a.onResult(g),s.push(g.output)},f=new Set(r(e,h,{...a,onResult:d}));for(let g of s)f.has(g)||l.add(g);return[...l]},r.contains=(e,h,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(h))return h.some(l=>r.contains(e,l,a));if(typeof h=="string"){if(u(e)||u(h))return!1;if(e.includes(h)||e.startsWith("./")&&e.slice(2).includes(h))return!0}return r.isMatch(e,h,{...a,contains:!0})},r.matchKeys=(e,h,a)=>{if(!p.isObject(e))throw new TypeError("Expected the first argument to be an object");let l=r(Object.keys(e),h,a),s={};for(let d of l)s[d]=e[d];return s},r.some=(e,h,a)=>{let l=[].concat(e);for(let s of[].concat(h)){let d=i(String(s),a);if(l.some(f=>d(f)))return!0}return!1},r.every=(e,h,a)=>{let l=[].concat(e);for(let s of[].concat(h)){let d=i(String(s),a);if(!l.every(f=>d(f)))return!1}return!0},r.all=(e,h,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(h).every(l=>i(l,a)(e))},r.capture=(e,h,a)=>{let l=p.isWindows(a),s=i.makeRe(String(e),{...a,capture:!0}).exec(l?p.toPosixSlashes(h):h);if(s)return s.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...e)=>i.makeRe(...e),r.scan=(...e)=>i.scan(...e),r.parse=(e,h)=>{let a=[];for(let l of[].concat(e||[]))for(let s of o(String(l),h))a.push(i.parse(s,h));return a},r.braces=(e,h)=>{if(typeof e!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(e)?[e]:o(e,h)},r.braceExpand=(e,h)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r.braces(e,{...h,expand:!0})},c.exports=r}),Ja=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var c=Z("path"),n=Na(),o=Ya(),i="**",p="\\",u=/[*?]|^!/,r=/\[[^[]*]/,e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,h=/[!*+?@]\([^(]*\)/,a=/,|\.\./;function l(O,q={}){return!s(O,q)}t.isStaticPattern=l;function s(O,q={}){return O===""?!1:!!(q.caseSensitiveMatch===!1||O.includes(p)||u.test(O)||r.test(O)||e.test(O)||q.extglob!==!1&&h.test(O)||q.braceExpansion!==!1&&d(O))}t.isDynamicPattern=s;function d(O){let q=O.indexOf("{");if(q===-1)return!1;let W=O.indexOf("}",q+1);if(W===-1)return!1;let Q=O.slice(q,W);return a.test(Q)}function f(O){return b(O)?O.slice(1):O}t.convertToPositivePattern=f;function g(O){return"!"+O}t.convertToNegativePattern=g;function b(O){return O.startsWith("!")&&O[1]!=="("}t.isNegativePattern=b;function _(O){return!b(O)}t.isPositivePattern=_;function y(O){return O.filter(b)}t.getNegativePatterns=y;function D(O){return O.filter(_)}t.getPositivePatterns=D;function w(O){return O.filter(q=>!m(q))}t.getPatternsInsideCurrentDirectory=w;function v(O){return O.filter(m)}t.getPatternsOutsideCurrentDirectory=v;function m(O){return O.startsWith("..")||O.startsWith("./..")}t.isPatternRelatedToParentDirectory=m;function E(O){return n(O,{flipBackslashes:!1})}t.getBaseDirectory=E;function S(O){return O.includes(i)}t.hasGlobStar=S;function A(O){return O.endsWith("/"+i)}t.endsWithSlashGlobStar=A;function x(O){let q=c.basename(O);return A(O)||l(q)}t.isAffectDepthOfReadingPattern=x;function L(O){return O.reduce((q,W)=>q.concat(T(W)),[])}t.expandPatternsWithBraceExpansion=L;function T(O){return o.braces(O,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function F(O,q){let{parts:W}=o.scan(O,Object.assign(Object.assign({},q),{parts:!0}));return W.length===0&&(W=[O]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}t.getPatternParts=F;function R(O,q){return o.makeRe(O,q)}t.makeRe=R;function I(O,q){return O.map(W=>R(W,q))}t.convertPatternsToRe=I;function $(O,q){return q.some(W=>W.test(O))}t.matchAny=$}),Za=N((t,c)=>{"use strict";B();var n=Z("stream"),o=n.PassThrough,i=Array.prototype.slice;c.exports=p;function p(){let r=[],e=i.call(arguments),h=!1,a=e[e.length-1];a&&!Array.isArray(a)&&a.pipe==null?e.pop():a={};let l=a.end!==!1,s=a.pipeError===!0;a.objectMode==null&&(a.objectMode=!0),a.highWaterMark==null&&(a.highWaterMark=64*1024);let d=o(a);function f(){for(let _=0,y=arguments.length;_<y;_++)r.push(u(arguments[_],a));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),s&&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),s&&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"),l&&d.end()}return d.setMaxListeners(0),d.add=f,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),e.length&&f.apply(null,e),d}function u(r,e){if(Array.isArray(r))for(let h=0,a=r.length;h<a;h++)r[h]=u(r[h],e);else{if(!r._readableState&&r.pipe&&(r=r.pipe(o(e))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),Xa=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var c=Za();function n(i){let p=c(i);return i.forEach(u=>{u.once("error",r=>p.emit("error",r))}),p.once("close",()=>o(i)),p.once("end",()=>o(i)),p}t.merge=n;function o(i){i.forEach(p=>p.emit("close"))}}),Qa=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function c(o){return typeof o=="string"}t.isString=c;function n(o){return o===""}t.isEmpty=n}),Jt=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var c=Oa();t.array=c;var n=Ta();t.errno=n;var o=Ba();t.fs=o;var i=Pa();t.path=i;var p=Ja();t.pattern=p;var u=Xa();t.stream=u;var r=Qa();t.string=r}),tl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var c=Jt();function n(h,a){let l=i(h),s=p(h,a.ignore),d=l.filter(_=>c.pattern.isStaticPattern(_,a)),f=l.filter(_=>c.pattern.isDynamicPattern(_,a)),g=o(d,s,!1),b=o(f,s,!0);return g.concat(b)}t.generate=n;function o(h,a,l){let s=[],d=c.pattern.getPatternsOutsideCurrentDirectory(h),f=c.pattern.getPatternsInsideCurrentDirectory(h),g=u(d),b=u(f);return s.push(...r(g,a,l)),"."in b?s.push(e(".",f,a,l)):s.push(...r(b,a,l)),s}t.convertPatternsToTasks=o;function i(h){return c.pattern.getPositivePatterns(h)}t.getPositivePatterns=i;function p(h,a){return c.pattern.getNegativePatterns(h).concat(a).map(c.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=p;function u(h){let a={};return h.reduce((l,s)=>{let d=c.pattern.getBaseDirectory(s);return d in l?l[d].push(s):l[d]=[s],l},a)}t.groupPatternsByBaseDirectory=u;function r(h,a,l){return Object.keys(h).map(s=>e(s,h[s],a,l))}t.convertPatternGroupsToTasks=r;function e(h,a,l,s){return{dynamic:s,positive:a,negative:l,base:h,patterns:[].concat(a,l.map(c.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=e}),el=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var c=/(?!^)\/{2,}/g;function n(i){return i.map(p=>o(p))}t.transform=n;function o(i){return i.replace(c,"/")}t.removeDuplicateSlashes=o}),rl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function c(i,p,u){p.fs.lstat(i,(r,e)=>{if(r!==null){n(u,r);return}if(!e.isSymbolicLink()||!p.followSymbolicLink){o(u,e);return}p.fs.stat(i,(h,a)=>{if(h!==null){if(p.throwErrorOnBrokenSymbolicLink){n(u,h);return}o(u,e);return}p.markSymbolicLink&&(a.isSymbolicLink=()=>!0),o(u,a)})})}t.read=c;function n(i,p){i(p)}function o(i,p){i(null,p)}}),nl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function c(n,o){let i=o.fs.lstatSync(n);if(!i.isSymbolicLink()||!o.followSymbolicLink)return i;try{let p=o.fs.statSync(n);return o.markSymbolicLink&&(p.isSymbolicLink=()=>!0),p}catch(p){if(!o.throwErrorOnBrokenSymbolicLink)return i;throw p}}t.read=c}),il=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var c=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:c.lstat,stat:c.stat,lstatSync:c.lstatSync,statSync:c.statSync};function n(o){return o===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),o)}t.createFileSystemAdapter=n}),sl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=il(),n=class{constructor(o={}){this._options=o,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=c.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(o,i){return o!=null?o:i}};t.default=n}),he=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var c=rl(),n=nl(),o=sl();t.Settings=o.default;function i(r,e,h){if(typeof e=="function"){c.read(r,u(),e);return}c.read(r,u(e),h)}t.stat=i;function p(r,e){let h=u(e);return n.read(r,h)}t.statSync=p;function u(r={}){return r instanceof o.default?r:new o.default(r)}}),ol=N((t,c)=>{B();var n;c.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):o=>(n||(n=Promise.resolve())).then(o).catch(i=>setTimeout(()=>{throw i},0))}),ul=N((t,c)=>{B(),c.exports=o;var n=ol();function o(i,p){let u,r,e,h=!0;Array.isArray(i)?(u=[],r=i.length):(e=Object.keys(i),u={},r=e.length);function a(s){function d(){p&&p(s,u),p=null}h?n(d):d()}function l(s,d,f){u[s]=f,(--r===0||d)&&a(d)}r?e?e.forEach(function(s){i[s](function(d,f){l(s,d,f)})}):i.forEach(function(s,d){s(function(f,g){l(d,f,g)})}):a(null),h=!1}}),Wn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var c=process.versions.node.split(".");if(c[0]===void 0||c[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(c[0],10),o=Number.parseInt(c[1],10),i=10,p=10,u=n>i,r=n===i&&o>=p;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||r}),al=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var c=class{constructor(o,i){this.name=o,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(o,i){return new c(o,i)}t.createDirentFromStats=n}),Vn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var c=al();t.fs=c}),Kn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function c(n,o,i){return n.endsWith(i)?n+o:n+i+o}t.joinPathSegments=c}),ll=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var c=he(),n=ul(),o=Wn(),i=Vn(),p=Kn();function u(s,d,f){if(!d.stats&&o.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(s,d,f);return}h(s,d,f)}t.read=u;function r(s,d,f){d.fs.readdir(s,{withFileTypes:!0},(g,b)=>{if(g!==null){a(f,g);return}let _=b.map(D=>({dirent:D,name:D.name,path:p.joinPathSegments(s,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(f,_);return}let y=_.map(D=>e(D,d));n(y,(D,w)=>{if(D!==null){a(f,D);return}l(f,w)})})}t.readdirWithFileTypes=r;function e(s,d){return f=>{if(!s.dirent.isSymbolicLink()){f(null,s);return}d.fs.stat(s.path,(g,b)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){f(g);return}f(null,s);return}s.dirent=i.fs.createDirentFromStats(s.name,b),f(null,s)})}}function h(s,d,f){d.fs.readdir(s,(g,b)=>{if(g!==null){a(f,g);return}let _=b.map(y=>{let D=p.joinPathSegments(s,y,d.pathSegmentSeparator);return w=>{c.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){w(v);return}let E={name:y,path:D,dirent:i.fs.createDirentFromStats(y,m)};d.stats&&(E.stats=m),w(null,E)})}});n(_,(y,D)=>{if(y!==null){a(f,y);return}l(f,D)})})}t.readdir=h;function a(s,d){s(d)}function l(s,d){s(null,d)}}),cl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var c=he(),n=Wn(),o=Vn(),i=Kn();function p(e,h){return!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(e,h):r(e,h)}t.read=p;function u(e,h){return h.fs.readdirSync(e,{withFileTypes:!0}).map(a=>{let l={dirent:a,name:a.name,path:i.joinPathSegments(e,a.name,h.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&h.followSymbolicLinks)try{let s=h.fs.statSync(l.path);l.dirent=o.fs.createDirentFromStats(l.name,s)}catch(s){if(h.throwErrorOnBrokenSymbolicLink)throw s}return l})}t.readdirWithFileTypes=u;function r(e,h){return h.fs.readdirSync(e).map(a=>{let l=i.joinPathSegments(e,a,h.pathSegmentSeparator),s=c.statSync(l,h.fsStatSettings),d={name:a,path:l,dirent:o.fs.createDirentFromStats(a,s)};return h.stats&&(d.stats=s),d})}t.readdir=r}),hl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var c=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:c.lstat,stat:c.stat,lstatSync:c.lstatSync,statSync:c.statSync,readdir:c.readdir,readdirSync:c.readdirSync};function n(o){return o===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),o)}t.createFileSystemAdapter=n}),fl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("path"),n=he(),o=hl(),i=class{constructor(p={}){this._options=p,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=o.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,c.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(p,u){return p!=null?p:u}};t.default=i}),wr=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var c=ll(),n=cl(),o=fl();t.Settings=o.default;function i(r,e,h){if(typeof e=="function"){c.read(r,u(),e);return}c.read(r,u(e),h)}t.scandir=i;function p(r,e){let h=u(e);return n.read(r,h)}t.scandirSync=p;function u(r={}){return r instanceof o.default?r:new o.default(r)}}),pl=N((t,c)=>{"use strict";B();function n(o){var i=new o,p=i;function u(){var e=i;return e.next?i=e.next:(i=new o,p=i),e.next=null,e}function r(e){p.next=e,p=e}return{get:u,release:r}}c.exports=n}),dl=N((t,c)=>{"use strict";B();var n=pl();function o(r,e,h){if(typeof r=="function"&&(h=e,e=r,r=null),h<1)throw new Error("fastqueue concurrency must be greater than 1");var a=n(p),l=null,s=null,d=0,f=null,g={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:h,running:b,resume:w,idle:v,length:y,getQueue:D,unshift:E,empty:i,kill:A,killAndDrain:x,error:L};return g;function b(){return d}function _(){g.paused=!0}function y(){for(var T=l,F=0;T;)T=T.next,F++;return F}function D(){for(var T=l,F=[];T;)F.push(T.value),T=T.next;return F}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,F){var R=a.get();R.context=r,R.release=S,R.value=T,R.callback=F||i,R.errorHandler=f,d===g.concurrency||g.paused?s?(s.next=R,s=R):(l=R,s=R,g.saturated()):(d++,e.call(r,R.value,R.worked))}function E(T,F){var R=a.get();R.context=r,R.release=S,R.value=T,R.callback=F||i,d===g.concurrency||g.paused?l?(R.next=l,l=R):(l=R,s=R,g.saturated()):(d++,e.call(r,R.value,R.worked))}function S(T){T&&a.release(T);var F=l;F?g.paused?d--:(s===l&&(s=null),l=F.next,F.next=null,e.call(r,F.value,F.worked),s===null&&g.empty()):--d===0&&g.drain()}function A(){l=null,s=null,g.drain=i}function x(){l=null,s=null,g.drain(),g.drain=i}function L(T){f=T}}function i(){}function p(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,h){var a=r.callback,l=r.errorHandler,s=r.value;r.value=null,r.callback=i,r.errorHandler&&l(e,s),a.call(r.context,e,h),r.release(r)}}function u(r,e,h){typeof r=="function"&&(h=e,e=r,r=null);function a(_,y){e.call(this,_).then(function(D){y(null,D)},y)}var l=o(r,a,h),s=l.push,d=l.unshift;return l.push=f,l.unshift=g,l.drained=b,l;function f(_){var y=new Promise(function(D,w){s(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(i),y}function g(_){var y=new Promise(function(D,w){d(_,function(v,m){if(v){w(v);return}D(m)})});return y.catch(i),y}function b(){var _=l.drain,y=new Promise(function(D){l.drain=function(){_(),D()}});return y}}c.exports=o,c.exports.promise=u}),Dr=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function c(p,u){return p.errorFilter===null?!0:!p.errorFilter(u)}t.isFatalError=c;function n(p,u){return p===null||p(u)}t.isAppliedFilter=n;function o(p,u){return p.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=o;function i(p,u,r){return p===""?u:p.endsWith(r)?p+u:p+r+u}t.joinPathSegments=i}),Yn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Dr(),n=class{constructor(o,i){this._root=o,this._settings=i,this._root=c.replacePathSegmentSeparator(o,i.pathSegmentSeparator)}};t.default=n}),Jn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("events"),n=wr(),o=dl(),i=Dr(),p=Yn(),u=class extends p.default{constructor(r,e){super(r,e),this._settings=e,this._scandir=n.scandir,this._emitter=new c.EventEmitter,this._queue=o(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,e){let h={directory:r,base:e};this._queue.push(h,a=>{a!==null&&this._handleError(a)})}_worker(r,e){this._scandir(r.directory,this._settings.fsScandirSettings,(h,a)=>{if(h!==null){e(h,void 0);return}for(let l of a)this._handleEntry(l,r.base);e(null,void 0)})}_handleError(r){this._isDestroyed||!i.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,e){if(this._isDestroyed||this._isFatalError)return;let h=r.path;e!==void 0&&(r.path=i.joinPathSegments(e,r.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(h,e===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};t.default=u}),ml=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jn(),n=class{constructor(p,u){this._root=p,this._settings=u,this._reader=new c.default(this._root,this._settings),this._storage=[]}read(p){this._reader.onError(u=>{o(p,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(p,this._storage)}),this._reader.read()}};t.default=n;function o(p,u){p(u)}function i(p,u){p(null,u)}}),yl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("stream"),n=Jn(),o=class{constructor(i,p){this._root=i,this._settings=p,this._reader=new n.default(this._root,this._settings),this._stream=new c.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=o}),gl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=wr(),n=Dr(),o=Yn(),i=class extends o.default{constructor(){super(...arguments),this._scandir=c.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(p,u){this._queue.add({directory:p,base:u})}_handleQueue(){for(let p of this._queue.values())this._handleDirectory(p.directory,p.base)}_handleDirectory(p,u){try{let r=this._scandir(p,this._settings.fsScandirSettings);for(let e of r)this._handleEntry(e,u)}catch(r){this._handleError(r)}}_handleError(p){if(n.isFatalError(this._settings,p))throw p}_handleEntry(p,u){let r=p.path;u!==void 0&&(p.path=n.joinPathSegments(u,p.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,p)&&this._pushToStorage(p),p.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(r,u===void 0?void 0:p.path)}_pushToStorage(p){this._storage.push(p)}};t.default=i}),bl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=gl(),n=class{constructor(o,i){this._root=o,this._settings=i,this._reader=new c.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=n}),vl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("path"),n=wr(),o=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,c.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(i,p){return i!=null?i:p}};t.default=o}),Sr=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var c=ml(),n=yl(),o=bl(),i=vl();t.Settings=i.default;function p(h,a,l){if(typeof a=="function"){new c.default(h,e()).read(a);return}new c.default(h,e(a)).read(l)}t.walk=p;function u(h,a){let l=e(a);return new o.default(h,l).read()}t.walkSync=u;function r(h,a){let l=e(a);return new n.default(h,l).read()}t.walkStream=r;function e(h={}){return h instanceof i.default?h:new i.default(h)}}),Ar=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("path"),n=he(),o=Jt(),i=class{constructor(p){this._settings=p,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(p){return c.resolve(this._settings.cwd,p)}_makeEntry(p,u){let r={name:u,path:u,dirent:o.fs.createDirentFromStats(u,p)};return this._settings.stats&&(r.stats=p),r}_isFatalError(p){return!o.errno.isEnoentCodeError(p)&&!this._settings.suppressErrors}};t.default=i}),Zn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("stream"),n=he(),o=Sr(),i=Ar(),p=class extends i.default{constructor(){super(...arguments),this._walkStream=o.walkStream,this._stat=n.stat}dynamic(u,r){return this._walkStream(u,r)}static(u,r){let e=u.map(this._getFullEntryPath,this),h=new c.PassThrough({objectMode:!0});h._write=(a,l,s)=>this._getEntry(e[a],u[a],r).then(d=>{d!==null&&r.entryFilter(d)&&h.push(d),a===e.length-1&&h.end(),s()}).catch(s);for(let a=0;a<e.length;a++)h.write(a);return h}_getEntry(u,r,e){return this._getStat(u).then(h=>this._makeEntry(h,r)).catch(h=>{if(e.errorFilter(h))return null;throw h})}_getStat(u){return new Promise((r,e)=>{this._stat(u,this._fsStatSettings,(h,a)=>h===null?r(a):e(h))})}};t.default=p}),_l=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Sr(),n=Ar(),o=Zn(),i=class extends n.default{constructor(){super(...arguments),this._walkAsync=c.walk,this._readerStream=new o.default(this._settings)}dynamic(p,u){return new Promise((r,e)=>{this._walkAsync(p,u,(h,a)=>{h===null?r(a):e(h)})})}async static(p,u){let r=[],e=this._readerStream.static(p,u);return new Promise((h,a)=>{e.once("error",a),e.on("data",l=>r.push(l)),e.once("end",()=>h(r))})}};t.default=i}),El=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jt(),n=class{constructor(o,i,p){this._patterns=o,this._settings=i,this._micromatchOptions=p,this._storage=[],this._fillStorage()}_fillStorage(){let o=c.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of o){let p=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(p);this._storage.push({complete:u.length<=1,pattern:i,segments:p,sections:u})}}_getPatternSegments(o){return c.pattern.getPatternParts(o,this._micromatchOptions).map(i=>c.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:c.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(o){return c.array.splitWhen(o,i=>i.dynamic&&c.pattern.hasGlobStar(i.pattern))}};t.default=n}),wl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=El(),n=class extends c.default{match(o){let i=o.split("/"),p=i.length,u=this._storage.filter(r=>!r.complete||r.segments.length>p);for(let r of u){let e=r.sections[0];if(!r.complete&&p>e.length||i.every((h,a)=>{let l=r.segments[a];return!!(l.dynamic&&l.patternRe.test(h)||!l.dynamic&&l.pattern===h)}))return!0}return!1}};t.default=n}),Dl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jt(),n=wl(),o=class{constructor(i,p){this._settings=i,this._micromatchOptions=p}getFilter(i,p,u){let r=this._getMatcher(p),e=this._getNegativePatternsRe(u);return h=>this._filter(i,h,r,e)}_getMatcher(i){return new n.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let p=i.filter(c.pattern.isAffectDepthOfReadingPattern);return c.pattern.convertPatternsToRe(p,this._micromatchOptions)}_filter(i,p,u,r){if(this._isSkippedByDeep(i,p.path)||this._isSkippedSymbolicLink(p))return!1;let e=c.path.removeLeadingDotSegment(p.path);return this._isSkippedByPositivePatterns(e,u)?!1:this._isSkippedByNegativePatterns(e,r)}_isSkippedByDeep(i,p){return this._settings.deep===1/0?!1:this._getEntryLevel(i,p)>=this._settings.deep}_getEntryLevel(i,p){let u=p.split("/").length;if(i==="")return u;let r=i.split("/").length;return u-r}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,p){return!this._settings.baseNameMatch&&!p.match(i)}_isSkippedByNegativePatterns(i,p){return!c.pattern.matchAny(i,p)}};t.default=o}),Sl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jt(),n=class{constructor(o,i){this._settings=o,this._micromatchOptions=i,this.index=new Map}getFilter(o,i){let p=c.pattern.convertPatternsToRe(o,this._micromatchOptions),u=c.pattern.convertPatternsToRe(i,this._micromatchOptions);return r=>this._filter(r,p,u)}_filter(o,i,p){if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(o)||this._onlyDirectoryFilter(o)||this._isSkippedByAbsoluteNegativePatterns(o.path,p))return!1;let u=this._settings.baseNameMatch?o.name:o.path,r=o.dirent.isDirectory(),e=this._isMatchToPatterns(u,i,r)&&!this._isMatchToPatterns(o.path,p,r);return this._settings.unique&&e&&this._createIndexRecord(o),e}_isDuplicateEntry(o){return this.index.has(o.path)}_createIndexRecord(o){this.index.set(o.path,void 0)}_onlyFileFilter(o){return this._settings.onlyFiles&&!o.dirent.isFile()}_onlyDirectoryFilter(o){return this._settings.onlyDirectories&&!o.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(o,i){if(!this._settings.absolute)return!1;let p=c.path.makeAbsolute(this._settings.cwd,o);return c.pattern.matchAny(p,i)}_isMatchToPatterns(o,i,p){let u=c.path.removeLeadingDotSegment(o),r=c.pattern.matchAny(u,i);return!r&&p?c.pattern.matchAny(u+"/",i):r}};t.default=n}),Al=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jt(),n=class{constructor(o){this._settings=o}getFilter(){return o=>this._isNonFatalError(o)}_isNonFatalError(o){return c.errno.isEnoentCodeError(o)||this._settings.suppressErrors}};t.default=n}),Cl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Jt(),n=class{constructor(o){this._settings=o}getTransformer(){return o=>this._transform(o)}_transform(o){let i=o.path;return this._settings.absolute&&(i=c.path.makeAbsolute(this._settings.cwd,i),i=c.path.unixify(i)),this._settings.markDirectories&&o.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},o),{path:i}):i}};t.default=n}),Cr=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("path"),n=Dl(),o=Sl(),i=Al(),p=Cl(),u=class{constructor(r){this._settings=r,this.errorFilter=new i.default(this._settings),this.entryFilter=new o.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new p.default(this._settings)}_getRootDirectory(r){return c.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let e=r.base==="."?"":r.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,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}}};t.default=u}),xl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=_l(),n=Cr(),o=class extends n.default{constructor(){super(...arguments),this._reader=new c.default(this._settings)}async read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(p,i,u)).map(r=>u.transform(r))}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=o}),Fl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=Z("stream"),n=Zn(),o=Cr(),i=class extends o.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(p){let u=this._getRootDirectory(p),r=this._getReaderOptions(p),e=this.api(u,p,r),h=new c.Readable({objectMode:!0,read:()=>{}});return e.once("error",a=>h.emit("error",a)).on("data",a=>h.emit("data",r.transform(a))).once("end",()=>h.emit("end")),h.once("close",()=>e.destroy()),h}api(p,u,r){return u.dynamic?this._reader.dynamic(p,r):this._reader.static(u.patterns,r)}};t.default=i}),kl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=he(),n=Sr(),o=Ar(),i=class extends o.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=c.statSync}dynamic(p,u){return this._walkSync(p,u)}static(p,u){let r=[];for(let e of p){let h=this._getFullEntryPath(e),a=this._getEntry(h,e,u);a===null||!u.entryFilter(a)||r.push(a)}return r}_getEntry(p,u,r){try{let e=this._getStat(p);return this._makeEntry(e,u)}catch(e){if(r.errorFilter(e))return null;throw e}}_getStat(p){return this._statSync(p,this._fsStatSettings)}};t.default=i}),Rl=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var c=kl(),n=Cr(),o=class extends n.default{constructor(){super(...arguments),this._reader=new c.default(this._settings)}read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(p,i,u).map(u.transform)}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=o}),Ol=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var c=Z("fs"),n=Z("os"),o=Math.max(n.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:c.lstat,lstatSync:c.lstatSync,stat:c.stat,statSync:c.statSync,readdir:c.readdir,readdirSync:c.readdirSync};var i=class{constructor(p={}){this._options=p,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,o),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(p,u){return p===void 0?u:p}_getFileSystemMethods(p={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),p)}};t.default=i}),Tl=N((t,c)=>{"use strict";B();var n=tl(),o=el(),i=xl(),p=Fl(),u=Rl(),r=Ol(),e=Jt();async function h(s,d){l(s);let f=a(s,i.default,d),g=await Promise.all(f);return e.array.flatten(g)}(function(s){function d(y,D){l(y);let w=a(y,u.default,D);return e.array.flatten(w)}s.sync=d;function f(y,D){l(y);let w=a(y,p.default,D);return e.stream.merge(w)}s.stream=f;function g(y,D){l(y);let w=o.transform([].concat(y)),v=new r.default(D);return n.generate(w,v)}s.generateTasks=g;function b(y,D){l(y);let w=new r.default(D);return e.pattern.isDynamicPattern(y,w)}s.isDynamicPattern=b;function _(y){return l(y),e.path.escape(y)}s.escapePath=_})(h||(h={}));function a(s,d,f){let g=o.transform([].concat(s)),b=new r.default(f),_=n.generate(g,b),y=new d(b);return _.map(y.read,y)}function l(s){if(![].concat(s).every(d=>e.string.isString(d)&&!e.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}c.exports=h});B();B();function Xn(t){return typeof t>"u"||t===null}function Bl(t){return typeof t=="object"&&t!==null}function Pl(t){return Array.isArray(t)?t:Xn(t)?[]:[t]}function Ll(t,c){var n,o,i,p;if(c)for(p=Object.keys(c),n=0,o=p.length;n<o;n+=1)i=p[n],t[i]=c[i];return t}function Il(t,c){var n="",o;for(o=0;o<c;o+=1)n+=t;return n}function Nl(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var jl=Xn,Ml=Bl,$l=Pl,Hl=Il,Ul=Nl,ql=Ll,Rt={isNothing:jl,isObject:Ml,toArray:$l,repeat:Hl,isNegativeZero:Ul,extend:ql};function Qn(t,c){var n="",o=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!c&&t.mark.snippet&&(n+=`
|
53
|
+
is-glob/index.js:
|
54
|
+
(*!
|
55
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
56
|
+
*
|
57
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
58
|
+
* Released under the MIT License.
|
59
|
+
*)
|
41
60
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
*
|
76
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
77
|
-
* Licensed under the MIT License.
|
78
|
-
*/
|
79
|
-
/*!
|
80
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
81
|
-
*
|
82
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
83
|
-
* Licensed under the MIT License.
|
84
|
-
*/
|
85
|
-
/*!
|
86
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
87
|
-
*
|
88
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
89
|
-
* Released under the MIT License.
|
90
|
-
*/
|
91
|
-
/*!
|
92
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
93
|
-
*
|
94
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
95
|
-
* Released under the MIT License.
|
96
|
-
*/
|
97
|
-
/*!
|
98
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
99
|
-
*
|
100
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
101
|
-
* Released under the MIT License.
|
102
|
-
*/
|
103
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
104
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
105
|
-
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
61
|
+
is-number/index.js:
|
62
|
+
(*!
|
63
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
64
|
+
*
|
65
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
66
|
+
* Released under the MIT License.
|
67
|
+
*)
|
68
|
+
|
69
|
+
to-regex-range/index.js:
|
70
|
+
(*!
|
71
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
72
|
+
*
|
73
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
74
|
+
* Released under the MIT License.
|
75
|
+
*)
|
76
|
+
|
77
|
+
fill-range/index.js:
|
78
|
+
(*!
|
79
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
80
|
+
*
|
81
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
82
|
+
* Licensed under the MIT License.
|
83
|
+
*)
|
84
|
+
|
85
|
+
queue-microtask/index.js:
|
86
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
87
|
+
|
88
|
+
run-parallel/index.js:
|
89
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
90
|
+
|
91
|
+
js-yaml/dist/js-yaml.mjs:
|
92
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
93
|
+
*/
|