@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
package/dist/cli.js
CHANGED
@@ -1,223 +1,57 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var jy=Object.create;var nc=Object.defineProperty;var $y=Object.getOwnPropertyDescriptor;var Hy=Object.getOwnPropertyNames;var qy=Object.getPrototypeOf,Gy=Object.prototype.hasOwnProperty;var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Uy=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Hy(r))!Gy.call(e,i)&&i!==t&&nc(e,i,{get:()=>r[i],enumerable:!(n=$y(r,i))||n.enumerable});return e};var Ie=(e,r,t)=>(t=e!=null?jy(qy(e)):{},Uy(r||!e||!e.__esModule?nc(t,"default",{value:e,enumerable:!0}):t,e));var Xh=ve((fN,Yh)=>{Yh.exports=Kh;Kh.sync=pE;var Wh=require("fs");function fE(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function Vh(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:fE(r,t)}function Kh(e,r,t){Wh.stat(e,function(n,i){t(n,n?!1:Vh(i,e,r))})}function pE(e,r){return Vh(Wh.statSync(e),e,r)}});var tf=ve((pN,ef)=>{ef.exports=Qh;Qh.sync=dE;var Zh=require("fs");function Qh(e,r,t){Zh.stat(e,function(n,i){t(n,n?!1:Jh(i,r))})}function dE(e,r){return Jh(Zh.statSync(e),r)}function Jh(e,r){return e.isFile()&&mE(e,r)}function mE(e,r){var t=e.mode,n=e.uid,i=e.gid,c=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),o=parseInt("010",8),f=parseInt("001",8),l=s|o,h=t&f||t&o&&i===a||t&s&&n===c||t&l&&c===0;return h}});var nf=ve((mN,rf)=>{var dN=require("fs"),zi;process.platform==="win32"||global.TESTING_WINDOWS?zi=Xh():zi=tf();rf.exports=ea;ea.sync=yE;function ea(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){ea(e,r||{},function(c,a){c?i(c):n(a)})})}zi(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function yE(e,r){try{return zi.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var hf=ve((yN,cf)=>{var tn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",sf=require("path"),gE=tn?";":":",of=nf(),af=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),uf=(e,r)=>{let t=r.colon||gE,n=e.match(/\//)||tn&&e.match(/\\/)?[""]:[...tn?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=tn?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=tn?i.split(t):[""];return tn&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},lf=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:c}=uf(e,r),a=[],s=f=>new Promise((l,h)=>{if(f===n.length)return r.all&&a.length?l(a):h(af(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=sf.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(o(y,f,0))}),o=(f,l,h)=>new Promise((u,d)=>{if(h===i.length)return u(s(l+1));let p=i[h];of(f+p,{pathExt:c},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(o(f,l,h+1))})});return t?s(0).then(f=>t(null,f),t):s(0)},bE=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=uf(e,r),c=[];for(let a=0;a<t.length;a++){let s=t[a],o=/^".*"$/.test(s)?s.slice(1,-1):s,f=sf.join(o,e),l=!o&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=l+n[h];try{if(of.sync(u,{pathExt:i}))if(r.all)c.push(u);else return u}catch{}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw af(e)};cf.exports=lf;lf.sync=bE});var ra=ve((gN,ta)=>{"use strict";var ff=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ta.exports=ff;ta.exports.default=ff});var yf=ve((bN,mf)=>{"use strict";var pf=require("path"),vE=hf(),_E=ra();function df(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,c=i&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let a;try{a=vE.sync(e.command,{path:t[_E({env:t})],pathExt:r?pf.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return a&&(a=pf.resolve(i?e.options.cwd:"",a)),a}function wE(e){return df(e)||df(e,!0)}mf.exports=wE});var gf=ve((vN,ia)=>{"use strict";var na=/([()\][%!^"`<>&|;, *?])/g;function EE(e){return e=e.replace(na,"^$1"),e}function SE(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(na,"^$1"),r&&(e=e.replace(na,"^$1")),e}ia.exports.command=EE;ia.exports.argument=SE});var vf=ve((_N,bf)=>{"use strict";bf.exports=/^#!(.*)/});var wf=ve((wN,_f)=>{"use strict";var AE=vf();_f.exports=(e="")=>{let r=e.match(AE);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Sf=ve((EN,Ef)=>{"use strict";var sa=require("fs"),xE=wf();function kE(e){let t=Buffer.alloc(150),n;try{n=sa.openSync(e,"r"),sa.readSync(n,t,0,150,0),sa.closeSync(n)}catch{}return xE(t.toString())}Ef.exports=kE});var Cf=ve((SN,kf)=>{"use strict";var CE=require("path"),Af=yf(),xf=gf(),DE=Sf(),RE=process.platform==="win32",OE=/\.(?:com|exe)$/i,TE=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function FE(e){e.file=Af(e);let r=e.file&&DE(e.file);return r?(e.args.unshift(e.file),e.command=r,Af(e)):e.file}function PE(e){if(!RE)return e;let r=FE(e),t=!OE.test(r);if(e.options.forceShell||t){let n=TE.test(r);e.command=CE.normalize(e.command),e.command=xf.command(e.command),e.args=e.args.map(c=>xf.argument(c,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function BE(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:PE(n)}kf.exports=BE});var Of=ve((AN,Rf)=>{"use strict";var oa=process.platform==="win32";function aa(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function LE(e,r){if(!oa)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let c=Df(i,r,"spawn");if(c)return t.call(e,"error",c)}return t.apply(e,arguments)}}function Df(e,r){return oa&&e===1&&!r.file?aa(r.original,"spawn"):null}function IE(e,r){return oa&&e===1&&!r.file?aa(r.original,"spawnSync"):null}Rf.exports={hookChildProcess:LE,verifyENOENT:Df,verifyENOENTSync:IE,notFoundError:aa}});var Pf=ve((xN,rn)=>{"use strict";var Tf=require("child_process"),ua=Cf(),la=Of();function Ff(e,r,t){let n=ua(e,r,t),i=Tf.spawn(n.command,n.args,n.options);return la.hookChildProcess(i,n),i}function ME(e,r,t){let n=ua(e,r,t),i=Tf.spawnSync(n.command,n.args,n.options);return i.error=i.error||la.verifyENOENTSync(i.status,n),i}rn.exports=Ff;rn.exports.spawn=Ff;rn.exports.sync=ME;rn.exports._parse=ua;rn.exports._enoent=la});var Lf=ve((kN,Bf)=>{"use strict";Bf.exports=e=>{let r=typeof e=="string"?`
|
2
|
+
"use strict";var Zb=Object.create;var _a=Object.defineProperty;var Jb=Object.getOwnPropertyDescriptor;var Xb=Object.getOwnPropertyNames;var Qb=Object.getPrototypeOf,e_=Object.prototype.hasOwnProperty;var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),t_=(t,e)=>{for(var r in e)_a(t,r,{get:e[r],enumerable:!0})},r_=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xb(e))!e_.call(t,n)&&n!==r&&_a(t,n,{get:()=>e[n],enumerable:!(i=Jb(e,n))||i.enumerable});return t};var J=(t,e,r)=>(r=t!=null?Zb(Qb(t)):{},r_(e||!t||!t.__esModule?_a(r,"default",{value:t,enumerable:!0}):r,t));var Zh=$((CL,Pt)=>{function wa(t){return Pt.exports=wa=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},Pt.exports.__esModule=!0,Pt.exports.default=Pt.exports,wa(t)}Pt.exports=wa,Pt.exports.__esModule=!0,Pt.exports.default=Pt.exports});var Xh=$((xL,It)=>{var i_=Zh().default;function Jh(){"use strict";It.exports=Jh=function(){return t},It.exports.__esModule=!0,It.exports.default=It.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(T,I,j){T[I]=j.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(T,I,j){return Object.defineProperty(T,I,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{u({},"")}catch{u=function(j,x,D){return j[x]=D}}function l(T,I,j,x){var D=I&&I.prototype instanceof h?I:h,A=Object.create(D.prototype),N=new M(x||[]);return i(A,"_invoke",{value:R(T,j,N)}),A}function c(T,I,j){try{return{type:"normal",arg:T.call(I,j)}}catch(x){return{type:"throw",arg:x}}}t.wrap=l;var f={};function h(){}function p(){}function d(){}var m={};u(m,s,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==e&&r.call(v,s)&&(m=v);var F=d.prototype=h.prototype=Object.create(m);function k(T){["next","throw","return"].forEach(function(I){u(T,I,function(j){return this._invoke(I,j)})})}function O(T,I){function j(D,A,N,Y){var W=c(T[D],T,A);if(W.type!=="throw"){var E=W.arg,y=E.value;return y&&i_(y)=="object"&&r.call(y,"__await")?I.resolve(y.__await).then(function(b){j("next",b,N,Y)},function(b){j("throw",b,N,Y)}):I.resolve(y).then(function(b){E.value=b,N(E)},function(b){return j("throw",b,N,Y)})}Y(W.arg)}var x;i(this,"_invoke",{value:function(A,N){function Y(){return new I(function(W,E){j(A,N,W,E)})}return x=x?x.then(Y,Y):Y()}})}function R(T,I,j){var x="suspendedStart";return function(D,A){if(x==="executing")throw new Error("Generator is already running");if(x==="completed"){if(D==="throw")throw A;return L()}for(j.method=D,j.arg=A;;){var N=j.delegate;if(N){var Y=B(N,j);if(Y){if(Y===f)continue;return Y}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(x==="suspendedStart")throw x="completed",j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);x="executing";var W=c(T,I,j);if(W.type==="normal"){if(x=j.done?"completed":"suspendedYield",W.arg===f)continue;return{value:W.arg,done:j.done}}W.type==="throw"&&(x="completed",j.method="throw",j.arg=W.arg)}}}function B(T,I){var j=I.method,x=T.iterator[j];if(x===void 0)return I.delegate=null,j==="throw"&&T.iterator.return&&(I.method="return",I.arg=void 0,B(T,I),I.method==="throw")||j!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+j+"' method")),f;var D=c(x,T.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,f;var A=D.arg;return A?A.done?(I[T.resultName]=A.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,f):A:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,f)}function _(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function S(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(_,this),this.reset(!0)}function U(T){if(T){var I=T[s];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,x=function D(){for(;++j<T.length;)if(r.call(T,j))return D.value=T[j],D.done=!1,D;return D.value=void 0,D.done=!0,D};return x.next=x}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=d,i(F,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,d):(T.__proto__=d,u(T,a,"GeneratorFunction")),T.prototype=Object.create(F),T},t.awrap=function(T){return{__await:T}},k(O.prototype),u(O.prototype,o,function(){return this}),t.AsyncIterator=O,t.async=function(T,I,j,x,D){D===void 0&&(D=Promise);var A=new O(l(T,I,j,x),D);return t.isGeneratorFunction(I)?A:A.next().then(function(N){return N.done?N.value:A.next()})},k(F),u(F,a,"Generator"),u(F,s,function(){return this}),u(F,"toString",function(){return"[object Generator]"}),t.keys=function(T){var I=Object(T),j=[];for(var x in I)j.push(x);return j.reverse(),function D(){for(;j.length;){var A=j.pop();if(A in I)return D.value=A,D.done=!1,D}return D.done=!0,D}},t.values=U,M.prototype={constructor:M,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!I)for(var j in this)j.charAt(0)==="t"&&r.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var j=this;function x(E,y){return N.type="throw",N.arg=I,j.next=E,y&&(j.method="next",j.arg=void 0),!!y}for(var D=this.tryEntries.length-1;D>=0;--D){var A=this.tryEntries[D],N=A.completion;if(A.tryLoc==="root")return x("end");if(A.tryLoc<=this.prev){var Y=r.call(A,"catchLoc"),W=r.call(A,"finallyLoc");if(Y&&W){if(this.prev<A.catchLoc)return x(A.catchLoc,!0);if(this.prev<A.finallyLoc)return x(A.finallyLoc)}else if(Y){if(this.prev<A.catchLoc)return x(A.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return x(A.finallyLoc)}}}},abrupt:function(I,j){for(var x=this.tryEntries.length-1;x>=0;--x){var D=this.tryEntries[x];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var A=D;break}}A&&(I==="break"||I==="continue")&&A.tryLoc<=j&&j<=A.finallyLoc&&(A=null);var N=A?A.completion:{};return N.type=I,N.arg=j,A?(this.method="next",this.next=A.finallyLoc,f):this.complete(N)},complete:function(I,j){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&j&&(this.next=j),f},finish:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var x=this.tryEntries[j];if(x.finallyLoc===I)return this.complete(x.completion,x.afterLoc),S(x),f}},catch:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var x=this.tryEntries[j];if(x.tryLoc===I){var D=x.completion;if(D.type==="throw"){var A=D.arg;S(x)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(I,j,x){return this.delegate={iterator:U(I),resultName:j,nextLoc:x},this.method==="next"&&(this.arg=void 0),f}},t}It.exports=Jh,It.exports.__esModule=!0,It.exports.default=It.exports});var ef=$((RL,Qh)=>{var rs=Xh()();Qh.exports=rs;try{regeneratorRuntime=rs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=rs:Function("r","regeneratorRuntime = r")(rs)}});var sp=$(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.splitWhen=ui.flatten=void 0;function OS(t){return t.reduce((e,r)=>[].concat(e,r),[])}ui.flatten=OS;function kS(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}ui.splitWhen=kS});var op=$(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.isEnoentCodeError=void 0;function TS(t){return t.code==="ENOENT"}ls.isEnoentCodeError=TS});var ap=$(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.createDirentFromStats=void 0;var Ga=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 LS(t,e){return new Ga(t,e)}cs.createDirentFromStats=LS});var up=$(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.removeLeadingDotSegment=Dt.escape=Dt.makeAbsolute=Dt.unixify=void 0;var BS=require("path"),PS=2,IS=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function NS(t){return t.replace(/\\/g,"/")}Dt.unixify=NS;function MS(t,e){return BS.resolve(t,e)}Dt.makeAbsolute=MS;function jS(t){return t.replace(IS,"\\$2")}Dt.escape=jS;function $S(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(PS)}return t}Dt.removeLeadingDotSegment=$S});var cp=$((yB,lp)=>{lp.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 pp=$((EB,fp)=>{var HS=cp(),hp={"{":"}","(":")","[":"]"},qS=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=hp[a];if(u){var l=t.indexOf(u,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},US=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=hp[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};fp.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(HS(e))return!0;var i=qS;return r&&r.strict===!1&&(i=US),i(e)}});var mp=$((DB,dp)=>{"use strict";var GS=pp(),zS=require("path").posix.dirname,WS=require("os").platform()==="win32",za="/",YS=/\\/g,VS=/[\{\[].*[\}\]]$/,KS=/(^|[^\\])([\{\[]|\([^\)]+$)/,ZS=/\\([\!\*\?\|\[\]\(\)\{\}])/g;dp.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&WS&&e.indexOf(za)<0&&(e=e.replace(YS,za)),VS.test(e)&&(e+=za),e+="a";do e=zS(e);while(GS(e)||KS.test(e));return e.replace(ZS,"$1")}});var hs=$(it=>{"use strict";it.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;it.find=(t,e)=>t.nodes.find(r=>r.type===e);it.exceedsLimit=(t,e,r=1,i)=>i===!1||!it.isInteger(t)||!it.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;it.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)};it.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);it.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;it.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;it.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);it.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 fs=$((_B,yp)=>{"use strict";var gp=hs();yp.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&gp.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&gp.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var Dp=$((wB,Ep)=>{"use strict";Ep.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Rp=$((SB,xp)=>{"use strict";var bp=Dp(),Lr=(t,e,r)=>{if(bp(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(bp(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(Lr.cache.hasOwnProperty(u))return Lr.cache[u].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let m=t+"|"+e;return i.capture?`(${m})`:i.wrap===!1?m:`(?:${m})`}let f=Cp(t)||Cp(e),h={min:t,max:e,a:l,b:c},p=[],d=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),l<0){let m=c<0?Math.abs(c):1;d=_p(m,Math.abs(l),h,i),l=h.a=0}return c>=0&&(p=_p(l,c,h,i)),h.negatives=d,h.positives=p,h.result=JS(d,p,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&p.length+d.length>1&&(h.result=`(?:${h.result})`),Lr.cache[u]=h,h.result};function JS(t,e,r){let i=Wa(t,e,"-",!1,r)||[],n=Wa(e,t,"",!1,r)||[],s=Wa(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function XS(t,e){let r=1,i=1,n=Sp(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Sp(t,r);for(n=Ap(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Ap(e+1,i)-1;return s=[...s],s.sort(tA),s}function QS(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=eA(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,l]=i[a];u===l?s+=u:u!=="0"||l!=="9"?s+=rA(u,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function _p(t,e,r,i){let n=XS(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let l=n[u],c=QS(String(o),String(l),i),f="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+vp(a.count),o=l+1;continue}r.isPadded&&(f=iA(l,r,i)),c.string=f+c.pattern+vp(c.count),s.push(c),o=l+1,a=c}return s}function Wa(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!wp(e,"string",a)&&s.push(r+a),i&&wp(e,"string",a)&&s.push(r+a)}return s}function eA(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function tA(t,e){return t>e?1:e>t?-1:0}function wp(t,e,r){return t.some(i=>i[e]===r)}function Sp(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Ap(t,e){return t-t%Math.pow(10,e)}function vp(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function rA(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Cp(t){return/^-?(0+)\d/.test(t)}function iA(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}}`}}Lr.cache={};Lr.clearCache=()=>Lr.cache={};xp.exports=Lr});var Ka=$((AB,Ip)=>{"use strict";var nA=require("util"),kp=Rp(),Fp=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),sA=t=>e=>t===!0?Number(e):String(e),Ya=t=>typeof t=="number"||typeof t=="string"&&t!=="",gn=t=>Number.isInteger(+t),Va=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},oA=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,aA=(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},Op=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},uA=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Tp=(t,e,r,i)=>{if(r)return kp(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Lp=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return kp(t,e,r)},Bp=(...t)=>new RangeError("Invalid range arguments: "+nA.inspect(...t)),Pp=(t,e,r)=>{if(r.strictRanges===!0)throw Bp([t,e]);return[]},lA=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},cA=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Bp([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Va(a)||Va(u)||Va(l),f=c?Math.max(a.length,u.length,l.length):0,h=c===!1&&oA(t,e,i)===!1,p=i.transform||sA(h);if(i.toRegex&&r===1)return Tp(Op(t,f),Op(e,f),!0,i);let d={negatives:[],positives:[]},m=F=>d[F<0?"negatives":"positives"].push(Math.abs(F)),g=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?m(n):g.push(aA(p(n,v),f,h)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?uA(d,i):Lp(g,null,{wrap:!1,...i}):g},hA=(t,e,r=1,i={})=>{if(!gn(t)&&t.length>1||!gn(e)&&e.length>1)return Pp(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Tp(u,l,!1,i);let c=[],f=0;for(;a?s>=o:s<=o;)c.push(n(s,f)),s=a?s-r:s+r,f++;return i.toRegex===!0?Lp(c,null,{wrap:!1,options:i}):c},ps=(t,e,r,i={})=>{if(e==null&&Ya(t))return[t];if(!Ya(t)||!Ya(e))return Pp(t,e,i);if(typeof r=="function")return ps(t,e,1,{transform:r});if(Fp(r))return ps(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,gn(r)?gn(t)&&gn(e)?cA(t,e,r,n):hA(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Fp(r)?lA(r,n):ps(t,e,1,r)};Ip.exports=ps});var jp=$((vB,Mp)=>{"use strict";var fA=Ka(),Np=hs(),pA=(t,e={})=>{let r=(i,n={})=>{let s=Np.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=Np.reduce(i.nodes),f=fA(...c,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};Mp.exports=pA});var qp=$((CB,Hp)=>{"use strict";var dA=Ka(),$p=fs(),li=hs(),Br=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?li.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Br(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Br(n,s,r):n+s);return li.flatten(i)},mA=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Br(a.pop(),$p(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Br(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=li.reduce(n.nodes);if(li.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=dA(...f,e);h.length===0&&(h=$p(n,e)),a.push(Br(a.pop(),h)),n.nodes=[];return}let u=li.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&l.push(""),l.push("");continue}if(h.type==="close"){a.push(Br(a.pop(),l,u));continue}if(h.value&&h.type!=="open"){l.push(Br(l.pop(),h.value));continue}h.nodes&&i(h,n)}return l};return li.flatten(i(t))};Hp.exports=mA});var Gp=$((xB,Up)=>{"use strict";Up.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:`
|
3
|
+
`,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 Kp=$((RB,Vp)=>{"use strict";var gA=fs(),{MAX_LENGTH:zp,CHAR_BACKSLASH:Za,CHAR_BACKTICK:yA,CHAR_COMMA:EA,CHAR_DOT:DA,CHAR_LEFT_PARENTHESES:bA,CHAR_RIGHT_PARENTHESES:_A,CHAR_LEFT_CURLY_BRACE:wA,CHAR_RIGHT_CURLY_BRACE:SA,CHAR_LEFT_SQUARE_BRACKET:Wp,CHAR_RIGHT_SQUARE_BRACKET:Yp,CHAR_DOUBLE_QUOTE:AA,CHAR_SINGLE_QUOTE:vA,CHAR_NO_BREAK_SPACE:CA,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xA}=Gp(),RA=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(zp,r.maxLength):zp;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,l=t.length,c=0,f=0,h,p={},d=()=>t[c++],m=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(m({type:"bos"});c<l;)if(o=s[s.length-1],h=d(),!(h===xA||h===CA)){if(h===Za){m({type:"text",value:(e.keepEscaping?h:"")+d()});continue}if(h===Yp){m({type:"text",value:"\\"+h});continue}if(h===Wp){u++;let g=!0,v;for(;c<l&&(v=d());){if(h+=v,v===Wp){u++;continue}if(v===Za){h+=d();continue}if(v===Yp&&(u--,u===0))break}m({type:"text",value:h});continue}if(h===bA){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===_A){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===AA||h===vA||h===yA){let g=h,v;for(e.keepQuotes!==!0&&(h="");c<l&&(v=d());){if(v===Za){h+=v+d();continue}if(v===g){e.keepQuotes===!0&&(h+=v);break}h+=v}m({type:"text",value:h});continue}if(h===wA){f++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=m(v),s.push(o),m({type:"open",value:h});continue}if(h===SA){if(o.type!=="brace"){m({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,m({type:g,value:h}),f--,o=s[s.length-1];continue}if(h===EA&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:gA(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===DA&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){m({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let v=g[g.length-1];v.value+=a.value+h,a=v,o.ranges--;continue}m({type:"dot",value:h});continue}m({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 g=s[s.length-1],v=g.nodes.indexOf(o);g.nodes.splice(v,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};Vp.exports=RA});var Xp=$((FB,Jp)=>{"use strict";var Zp=fs(),FA=jp(),OA=qp(),kA=Kp(),Ze=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ze.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ze.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ze.parse=(t,e={})=>kA(t,e);Ze.stringify=(t,e={})=>Zp(typeof t=="string"?Ze.parse(t,e):t,e);Ze.compile=(t,e={})=>(typeof t=="string"&&(t=Ze.parse(t,e)),FA(t,e));Ze.expand=(t,e={})=>{typeof t=="string"&&(t=Ze.parse(t,e));let r=OA(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ze.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ze.compile(t,e):Ze.expand(t,e);Jp.exports=Ze});var yn=$((OB,id)=>{"use strict";var TA=require("path"),bt="\\\\/",Qp=`[^${bt}]`,jt="\\.",LA="\\+",BA="\\?",ds="\\/",PA="(?=.)",ed="[^/]",Ja=`(?:${ds}|$)`,td=`(?:^|${ds})`,Xa=`${jt}{1,2}${Ja}`,IA=`(?!${jt})`,NA=`(?!${td}${Xa})`,MA=`(?!${jt}{0,1}${Ja})`,jA=`(?!${Xa})`,$A=`[^.${ds}]`,HA=`${ed}*?`,rd={DOT_LITERAL:jt,PLUS_LITERAL:LA,QMARK_LITERAL:BA,SLASH_LITERAL:ds,ONE_CHAR:PA,QMARK:ed,END_ANCHOR:Ja,DOTS_SLASH:Xa,NO_DOT:IA,NO_DOTS:NA,NO_DOT_SLASH:MA,NO_DOTS_SLASH:jA,QMARK_NO_DOT:$A,STAR:HA,START_ANCHOR:td},qA={...rd,SLASH_LITERAL:`[${bt}]`,QMARK:Qp,STAR:`${Qp}*?`,DOTS_SLASH:`${jt}{1,2}(?:[${bt}]|$)`,NO_DOT:`(?!${jt})`,NO_DOTS:`(?!(?:^|[${bt}])${jt}{1,2}(?:[${bt}]|$))`,NO_DOT_SLASH:`(?!${jt}{0,1}(?:[${bt}]|$))`,NO_DOTS_SLASH:`(?!${jt}{1,2}(?:[${bt}]|$))`,QMARK_NO_DOT:`[^.${bt}]`,START_ANCHOR:`(?:^|[${bt}])`,END_ANCHOR:`(?:[${bt}]|$)`},UA={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"};id.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:UA,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:TA.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?qA:rd}}});var En=$(Ge=>{"use strict";var GA=require("path"),zA=process.platform==="win32",{REGEX_BACKSLASH:WA,REGEX_REMOVE_BACKSLASH:YA,REGEX_SPECIAL_CHARS:VA,REGEX_SPECIAL_CHARS_GLOBAL:KA}=yn();Ge.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ge.hasRegexChars=t=>VA.test(t);Ge.isRegexChar=t=>t.length===1&&Ge.hasRegexChars(t);Ge.escapeRegex=t=>t.replace(KA,"\\$1");Ge.toPosixSlashes=t=>t.replace(WA,"/");Ge.removeBackslashes=t=>t.replace(YA,e=>e==="\\"?"":e);Ge.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ge.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:zA===!0||GA.sep==="\\";Ge.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Ge.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Ge.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ge.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var hd=$((TB,cd)=>{"use strict";var nd=En(),{CHAR_ASTERISK:Qa,CHAR_AT:ZA,CHAR_BACKWARD_SLASH:Dn,CHAR_COMMA:JA,CHAR_DOT:eu,CHAR_EXCLAMATION_MARK:tu,CHAR_FORWARD_SLASH:ld,CHAR_LEFT_CURLY_BRACE:ru,CHAR_LEFT_PARENTHESES:iu,CHAR_LEFT_SQUARE_BRACKET:XA,CHAR_PLUS:QA,CHAR_QUESTION_MARK:sd,CHAR_RIGHT_CURLY_BRACE:ev,CHAR_RIGHT_PARENTHESES:od,CHAR_RIGHT_SQUARE_BRACKET:tv}=yn(),ad=t=>t===ld||t===Dn,ud=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},rv=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,l=-1,c=0,f=0,h=!1,p=!1,d=!1,m=!1,g=!1,v=!1,F=!1,k=!1,O=!1,R=!1,B=0,_,S,M={value:"",depth:0,isGlob:!1},U=()=>l>=i,L=()=>u.charCodeAt(l+1),T=()=>(_=S,u.charCodeAt(++l));for(;l<i;){S=T();let A;if(S===Dn){F=M.backslashes=!0,S=T(),S===ru&&(v=!0);continue}if(v===!0||S===ru){for(B++;U()!==!0&&(S=T());){if(S===Dn){F=M.backslashes=!0,T();continue}if(S===ru){B++;continue}if(v!==!0&&S===eu&&(S=T())===eu){if(h=M.isBrace=!0,d=M.isGlob=!0,R=!0,n===!0)continue;break}if(v!==!0&&S===JA){if(h=M.isBrace=!0,d=M.isGlob=!0,R=!0,n===!0)continue;break}if(S===ev&&(B--,B===0)){v=!1,h=M.isBrace=!0,R=!0;break}}if(n===!0)continue;break}if(S===ld){if(s.push(l),o.push(M),M={value:"",depth:0,isGlob:!1},R===!0)continue;if(_===eu&&l===c+1){c+=2;continue}f=l+1;continue}if(r.noext!==!0&&(S===QA||S===ZA||S===Qa||S===sd||S===tu)===!0&&L()===iu){if(d=M.isGlob=!0,m=M.isExtglob=!0,R=!0,S===tu&&l===c&&(O=!0),n===!0){for(;U()!==!0&&(S=T());){if(S===Dn){F=M.backslashes=!0,S=T();continue}if(S===od){d=M.isGlob=!0,R=!0;break}}continue}break}if(S===Qa){if(_===Qa&&(g=M.isGlobstar=!0),d=M.isGlob=!0,R=!0,n===!0)continue;break}if(S===sd){if(d=M.isGlob=!0,R=!0,n===!0)continue;break}if(S===XA){for(;U()!==!0&&(A=T());){if(A===Dn){F=M.backslashes=!0,T();continue}if(A===tv){p=M.isBracket=!0,d=M.isGlob=!0,R=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===tu&&l===c){k=M.negated=!0,c++;continue}if(r.noparen!==!0&&S===iu){if(d=M.isGlob=!0,n===!0){for(;U()!==!0&&(S=T());){if(S===iu){F=M.backslashes=!0,S=T();continue}if(S===od){R=!0;break}}continue}break}if(d===!0){if(R=!0,n===!0)continue;break}}r.noext===!0&&(m=!1,d=!1);let I=u,j="",x="";c>0&&(j=u.slice(0,c),u=u.slice(c),f-=c),I&&d===!0&&f>0?(I=u.slice(0,f),x=u.slice(f)):d===!0?(I="",x=u):I=u,I&&I!==""&&I!=="/"&&I!==u&&ad(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&(x&&(x=nd.removeBackslashes(x)),I&&F===!0&&(I=nd.removeBackslashes(I)));let D={prefix:j,input:t,start:c,base:I,glob:x,isBrace:h,isBracket:p,isGlob:d,isExtglob:m,isGlobstar:g,negated:k,negatedExtglob:O};if(r.tokens===!0&&(D.maxDepth=0,ad(S)||o.push(M),D.tokens=o),r.parts===!0||r.tokens===!0){let A;for(let N=0;N<s.length;N++){let Y=A?A+1:c,W=s[N],E=t.slice(Y,W);r.tokens&&(N===0&&c!==0?(o[N].isPrefix=!0,o[N].value=j):o[N].value=E,ud(o[N]),D.maxDepth+=o[N].depth),(N!==0||E!=="")&&a.push(E),A=W}if(A&&A+1<t.length){let N=t.slice(A+1);a.push(N),r.tokens&&(o[o.length-1].value=N,ud(o[o.length-1]),D.maxDepth+=o[o.length-1].depth)}D.slashes=s,D.parts=a}return D};cd.exports=rv});var dd=$((LB,pd)=>{"use strict";var ms=yn(),Je=En(),{MAX_LENGTH:gs,POSIX_REGEX_SOURCE:iv,REGEX_NON_SPECIAL_CHARS:nv,REGEX_SPECIAL_CHARS_BACKREF:sv,REPLACEMENTS:fd}=ms,ov=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Je.escapeRegex(n)).join("..")}return r},ci=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,nu=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=fd[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(gs,r.maxLength):gs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=Je.isWindows(e),l=ms.globChars(u),c=ms.extglobChars(l),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:k,QMARK_NO_DOT:O,STAR:R,START_ANCHOR:B}=l,_=G=>`(${a}(?:(?!${B}${G.dot?m:f}).)*?)`,S=r.dot?"":g,M=r.dot?k:O,U=r.bash===!0?_(r):R;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let L={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Je.removePrefix(t,L),n=t.length;let T=[],I=[],j=[],x=s,D,A=()=>L.index===n-1,N=L.peek=(G=1)=>t[L.index+G],Y=L.advance=()=>t[++L.index]||"",W=()=>t.slice(L.index+1),E=(G="",te=0)=>{L.consumed+=G,L.index+=te},y=G=>{L.output+=G.output!=null?G.output:G.value,E(G.value)},b=()=>{let G=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Y(),L.start++,G++;return G%2===0?!1:(L.negated=!0,L.start++,!0)},P=G=>{L[G]++,j.push(G)},C=G=>{L[G]--,j.pop()},q=G=>{if(x.type==="globstar"){let te=L.braces>0&&(G.type==="comma"||G.type==="brace"),z=G.extglob===!0||T.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!te&&!z&&(L.output=L.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=U,L.output+=x.output)}if(T.length&&G.type!=="paren"&&(T[T.length-1].inner+=G.value),(G.value||G.output)&&y(G),x&&x.type==="text"&&G.type==="text"){x.value+=G.value,x.output=(x.output||"")+G.value;return}G.prev=x,o.push(G),x=G},H=(G,te)=>{let z={...c[te],conditions:1,inner:""};z.prev=x,z.parens=L.parens,z.output=L.output;let ie=(r.capture?"(":"")+z.open;P("parens"),q({type:G,value:te,output:L.output?"":d}),q({type:"paren",extglob:!0,value:Y(),output:ie}),T.push(z)},Z=G=>{let te=G.close+(r.capture?")":""),z;if(G.type==="negate"){let ie=U;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ie=_(r)),(ie!==U||A()||/^\)+$/.test(W()))&&(te=G.close=`)$))${ie}`),G.inner.includes("*")&&(z=W())&&/^\.[^\\/.]+$/.test(z)){let ce=nu(z,{...e,fastpaths:!1}).output;te=G.close=`)${ce})${ie})`}G.prev.type==="bos"&&(L.negatedExtglob=!0)}q({type:"paren",extglob:!0,value:D,output:te}),C("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let G=!1,te=t.replace(sv,(z,ie,ce,we,De,w)=>we==="\\"?(G=!0,z):we==="?"?ie?ie+we+(De?k.repeat(De.length):""):w===0?M+(De?k.repeat(De.length):""):k.repeat(ce.length):we==="."?f.repeat(ce.length):we==="*"?ie?ie+we+(De?U:""):U:ie?z:`\\${z}`);return G===!0&&(r.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),te===t&&r.contains===!0?(L.output=t,L):(L.output=Je.wrapOutput(te,L,e),L)}for(;!A();){if(D=Y(),D==="\0")continue;if(D==="\\"){let z=N();if(z==="/"&&r.bash!==!0||z==="."||z===";")continue;if(!z){D+="\\",q({type:"text",value:D});continue}let ie=/^\\+/.exec(W()),ce=0;if(ie&&ie[0].length>2&&(ce=ie[0].length,L.index+=ce,ce%2!==0&&(D+="\\")),r.unescape===!0?D=Y():D+=Y(),L.brackets===0){q({type:"text",value:D});continue}}if(L.brackets>0&&(D!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&D===":"){let z=x.value.slice(1);if(z.includes("[")&&(x.posix=!0,z.includes(":"))){let ie=x.value.lastIndexOf("["),ce=x.value.slice(0,ie),we=x.value.slice(ie+2),De=iv[we];if(De){x.value=ce+De,L.backtrack=!0,Y(),!s.output&&o.indexOf(x)===1&&(s.output=d);continue}}}(D==="["&&N()!==":"||D==="-"&&N()==="]")&&(D=`\\${D}`),D==="]"&&(x.value==="["||x.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&x.value==="["&&(D="^"),x.value+=D,y({value:D});continue}if(L.quotes===1&&D!=='"'){D=Je.escapeRegex(D),x.value+=D,y({value:D});continue}if(D==='"'){L.quotes=L.quotes===1?0:1,r.keepQuotes===!0&&q({type:"text",value:D});continue}if(D==="("){P("parens"),q({type:"paren",value:D});continue}if(D===")"){if(L.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ci("opening","("));let z=T[T.length-1];if(z&&L.parens===z.parens+1){Z(T.pop());continue}q({type:"paren",value:D,output:L.parens?")":"\\)"}),C("parens");continue}if(D==="["){if(r.nobracket===!0||!W().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));D=`\\${D}`}else P("brackets");q({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){q({type:"text",value:D,output:`\\${D}`});continue}if(L.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ci("opening","["));q({type:"text",value:D,output:`\\${D}`});continue}C("brackets");let z=x.value.slice(1);if(x.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(D=`/${D}`),x.value+=D,y({value:D}),r.literalBrackets===!1||Je.hasRegexChars(z))continue;let ie=Je.escapeRegex(x.value);if(L.output=L.output.slice(0,-x.value.length),r.literalBrackets===!0){L.output+=ie,x.value=ie;continue}x.value=`(${a}${ie}|${x.value})`,L.output+=x.value;continue}if(D==="{"&&r.nobrace!==!0){P("braces");let z={type:"brace",value:D,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};I.push(z),q(z);continue}if(D==="}"){let z=I[I.length-1];if(r.nobrace===!0||!z){q({type:"text",value:D,output:D});continue}let ie=")";if(z.dots===!0){let ce=o.slice(),we=[];for(let De=ce.length-1;De>=0&&(o.pop(),ce[De].type!=="brace");De--)ce[De].type!=="dots"&&we.unshift(ce[De].value);ie=ov(we,r),L.backtrack=!0}if(z.comma!==!0&&z.dots!==!0){let ce=L.output.slice(0,z.outputIndex),we=L.tokens.slice(z.tokensIndex);z.value=z.output="\\{",D=ie="\\}",L.output=ce;for(let De of we)L.output+=De.output||De.value}q({type:"brace",value:D,output:ie}),C("braces"),I.pop();continue}if(D==="|"){T.length>0&&T[T.length-1].conditions++,q({type:"text",value:D});continue}if(D===","){let z=D,ie=I[I.length-1];ie&&j[j.length-1]==="braces"&&(ie.comma=!0,z="|"),q({type:"comma",value:D,output:z});continue}if(D==="/"){if(x.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),x=s;continue}q({type:"slash",value:D,output:p});continue}if(D==="."){if(L.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let z=I[I.length-1];x.type="dots",x.output+=D,x.value+=D,z.dots=!0;continue}if(L.braces+L.parens===0&&x.type!=="bos"&&x.type!=="slash"){q({type:"text",value:D,output:f});continue}q({type:"dot",value:D,output:f});continue}if(D==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){H("qmark",D);continue}if(x&&x.type==="paren"){let ie=N(),ce=D;if(ie==="<"&&!Je.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(W()))&&(ce=`\\${D}`),q({type:"text",value:D,output:ce});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){q({type:"qmark",value:D,output:O});continue}q({type:"qmark",value:D,output:k});continue}if(D==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){H("negate",D);continue}if(r.nonegate!==!0&&L.index===0){b();continue}}if(D==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){H("plus",D);continue}if(x&&x.value==="("||r.regex===!1){q({type:"plus",value:D,output:h});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||L.parens>0){q({type:"plus",value:D});continue}q({type:"plus",value:h});continue}if(D==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q({type:"at",extglob:!0,value:D,output:""});continue}q({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let z=nv.exec(W());z&&(D+=z[0],L.index+=z[0].length),q({type:"text",value:D});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=D,x.output=U,L.backtrack=!0,L.globstar=!0,E(D);continue}let G=W();if(r.noextglob!==!0&&/^\([^?]/.test(G)){H("star",D);continue}if(x.type==="star"){if(r.noglobstar===!0){E(D);continue}let z=x.prev,ie=z.prev,ce=z.type==="slash"||z.type==="bos",we=ie&&(ie.type==="star"||ie.type==="globstar");if(r.bash===!0&&(!ce||G[0]&&G[0]!=="/")){q({type:"star",value:D,output:""});continue}let De=L.braces>0&&(z.type==="comma"||z.type==="brace"),w=T.length&&(z.type==="pipe"||z.type==="paren");if(!ce&&z.type!=="paren"&&!De&&!w){q({type:"star",value:D,output:""});continue}for(;G.slice(0,3)==="/**";){let K=t[L.index+4];if(K&&K!=="/")break;G=G.slice(3),E("/**",3)}if(z.type==="bos"&&A()){x.type="globstar",x.value+=D,x.output=_(r),L.output=x.output,L.globstar=!0,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!we&&A()){L.output=L.output.slice(0,-(z.output+x.output).length),z.output=`(?:${z.output}`,x.type="globstar",x.output=_(r)+(r.strictSlashes?")":"|$)"),x.value+=D,L.globstar=!0,L.output+=z.output+x.output,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&G[0]==="/"){let K=G[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(z.output+x.output).length),z.output=`(?:${z.output}`,x.type="globstar",x.output=`${_(r)}${p}|${p}${K})`,x.value+=D,L.output+=z.output+x.output,L.globstar=!0,E(D+Y()),q({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&G[0]==="/"){x.type="globstar",x.value+=D,x.output=`(?:^|${p}|${_(r)}${p})`,L.output=x.output,L.globstar=!0,E(D+Y()),q({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-x.output.length),x.type="globstar",x.output=_(r),x.value+=D,L.output+=x.output,L.globstar=!0,E(D);continue}let te={type:"star",value:D,output:U};if(r.bash===!0){te.output=".*?",(x.type==="bos"||x.type==="slash")&&(te.output=S+te.output),q(te);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){te.output=D,q(te);continue}(L.index===L.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(L.output+=v,x.output+=v):r.dot===!0?(L.output+=F,x.output+=F):(L.output+=S,x.output+=S),N()!=="*"&&(L.output+=d,x.output+=d)),q(te)}for(;L.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));L.output=Je.escapeLast(L.output,"["),C("brackets")}for(;L.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing",")"));L.output=Je.escapeLast(L.output,"("),C("parens")}for(;L.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","}"));L.output=Je.escapeLast(L.output,"{"),C("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&q({type:"maybe_slash",value:"",output:`${p}?`}),L.backtrack===!0){L.output="";for(let G of L.tokens)L.output+=G.output!=null?G.output:G.value,G.suffix&&(L.output+=G.suffix)}return L};nu.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(gs,r.maxLength):gs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=fd[t]||t;let s=Je.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:d}=ms.globChars(s),m=r.dot?f:c,g=r.dot?h:c,v=r.capture?"":"?:",F={negated:!1,prefix:""},k=r.bash===!0?".*?":p;r.capture&&(k=`(${k})`);let O=S=>S.noglobstar===!0?k:`(${v}(?:(?!${d}${S.dot?l:o}).)*?)`,R=S=>{switch(S){case"*":return`${m}${u}${k}`;case".*":return`${o}${u}${k}`;case"*.*":return`${m}${k}${o}${u}${k}`;case"*/*":return`${m}${k}${a}${u}${g}${k}`;case"**":return m+O(r);case"**/*":return`(?:${m}${O(r)}${a})?${g}${u}${k}`;case"**/*.*":return`(?:${m}${O(r)}${a})?${g}${k}${o}${u}${k}`;case"**/.*":return`(?:${m}${O(r)}${a})?${o}${u}${k}`;default:{let M=/^(.*?)\.(\w+)$/.exec(S);if(!M)return;let U=R(M[1]);return U?U+o+M[2]:void 0}}},B=Je.removePrefix(t,F),_=R(B);return _&&r.strictSlashes!==!0&&(_+=`${a}?`),_};pd.exports=nu});var gd=$((BB,md)=>{"use strict";var av=require("path"),uv=hd(),su=dd(),ou=En(),lv=yn(),cv=t=>t&&typeof t=="object"&&!Array.isArray(t),be=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(h=>be(h,e,r));return h=>{for(let p of c){let d=p(h);if(d)return d}return!1}}let i=cv(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=ou.isWindows(e),o=i?be.compileRe(t,e):be.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};u=be(n.ignore,c,r)}let l=(c,f=!1)=>{let{isMatch:h,match:p,output:d}=be.test(c,o,e,{glob:t,posix:s}),m={glob:t,state:a,regex:o,posix:s,input:c,output:d,match:p,isMatch:h};return typeof n.onResult=="function"&&n.onResult(m),h===!1?(m.isMatch=!1,f?m:!1):u(c)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),f?m:!0)};return r&&(l.state=a),l};be.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?ou.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=be.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};be.matchBase=(t,e,r,i=ou.isWindows(r))=>(e instanceof RegExp?e:be.makeRe(e,r)).test(av.basename(t));be.isMatch=(t,e,r)=>be(e,r)(t);be.parse=(t,e)=>Array.isArray(t)?t.map(r=>be.parse(r,e)):su(t,{...e,fastpaths:!1});be.scan=(t,e)=>uv(t,e);be.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=be.toRegex(a,e);return i===!0&&(u.state=t),u};be.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=su.fastpaths(t,e)),n.output||(n=su(t,e)),be.compileRe(n,e,r,i)};be.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};be.constants=lv;md.exports=be});var Ed=$((PB,yd)=>{"use strict";yd.exports=gd()});var Sd=$((IB,wd)=>{"use strict";var bd=require("util"),_d=Xp(),_t=Ed(),au=En(),Dd=t=>t===""||t==="./",ge=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let f=_t(String(e[c]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let p of t){let d=f(p,!0);(h?!d.isMatch:d.isMatch)&&(h?i.add(d.output):(i.delete(d.output),n.add(d.output)))}}let l=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(c=>c.replace(/\\/g,"")):e}return l};ge.match=ge;ge.matcher=(t,e)=>_t(t,e);ge.isMatch=(t,e,r)=>_t(e,r)(t);ge.any=ge.isMatch;ge.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(ge(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};ge.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${bd.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ge.contains(t,i,r));if(typeof e=="string"){if(Dd(t)||Dd(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ge.isMatch(t,e,{...r,contains:!0})};ge.matchKeys=(t,e,r)=>{if(!au.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ge(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ge.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=_t(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ge.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=_t(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ge.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${bd.inspect(t)}"`);return[].concat(e).every(i=>_t(i,r)(t))};ge.capture=(t,e,r)=>{let i=au.isWindows(r),s=_t.makeRe(String(t),{...r,capture:!0}).exec(i?au.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ge.makeRe=(...t)=>_t.makeRe(...t);ge.scan=(...t)=>_t.scan(...t);ge.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of _d(String(i),e))r.push(_t.parse(n,e));return r};ge.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:_d(t,e)};ge.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ge.braces(t,{...e,expand:!0})};wd.exports=ge});var kd=$(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var hv=require("path"),fv=mp(),uu=Sd(),Ad="**",pv="\\",dv=/[*?]|^!/,mv=/\[[^[]*]/,gv=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,yv=/[!*+?@]\([^(]*\)/,Ev=/,|\.\./;function vd(t,e={}){return!Cd(t,e)}se.isStaticPattern=vd;function Cd(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(pv)||dv.test(t)||mv.test(t)||gv.test(t)||e.extglob!==!1&&yv.test(t)||e.braceExpansion!==!1&&Dv(t))}se.isDynamicPattern=Cd;function Dv(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 Ev.test(i)}function bv(t){return ys(t)?t.slice(1):t}se.convertToPositivePattern=bv;function _v(t){return"!"+t}se.convertToNegativePattern=_v;function ys(t){return t.startsWith("!")&&t[1]!=="("}se.isNegativePattern=ys;function xd(t){return!ys(t)}se.isPositivePattern=xd;function wv(t){return t.filter(ys)}se.getNegativePatterns=wv;function Sv(t){return t.filter(xd)}se.getPositivePatterns=Sv;function Av(t){return t.filter(e=>!lu(e))}se.getPatternsInsideCurrentDirectory=Av;function vv(t){return t.filter(lu)}se.getPatternsOutsideCurrentDirectory=vv;function lu(t){return t.startsWith("..")||t.startsWith("./..")}se.isPatternRelatedToParentDirectory=lu;function Cv(t){return fv(t,{flipBackslashes:!1})}se.getBaseDirectory=Cv;function xv(t){return t.includes(Ad)}se.hasGlobStar=xv;function Rd(t){return t.endsWith("/"+Ad)}se.endsWithSlashGlobStar=Rd;function Rv(t){let e=hv.basename(t);return Rd(t)||vd(e)}se.isAffectDepthOfReadingPattern=Rv;function Fv(t){return t.reduce((e,r)=>e.concat(Fd(r)),[])}se.expandPatternsWithBraceExpansion=Fv;function Fd(t){return uu.braces(t,{expand:!0,nodupes:!0})}se.expandBraceExpansion=Fd;function Ov(t,e){let{parts:r}=uu.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}se.getPatternParts=Ov;function Od(t,e){return uu.makeRe(t,e)}se.makeRe=Od;function kv(t,e){return t.map(r=>Od(r,e))}se.convertPatternsToRe=kv;function Tv(t,e){return e.some(r=>r.test(t))}se.matchAny=Tv});var Pd=$((MB,Bd)=>{"use strict";var Lv=require("stream"),Td=Lv.PassThrough,Bv=Array.prototype.slice;Bd.exports=Pv;function Pv(){let t=[],e=Bv.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=Td(i);function a(){for(let c=0,f=arguments.length;c<f;c++)t.push(Ld(arguments[c],i));return u(),this}function u(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let f=c.length+1;function h(){--f>0||(r=!1,u())}function p(d){function m(){d.removeListener("merge2UnpipeEnd",m),d.removeListener("end",m),s&&d.removeListener("error",g),h()}function g(v){o.emit("error",v)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",m),d.on("end",m),s&&d.on("error",g),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<c.length;d++)p(c[d]);h()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ld(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Ld(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Td(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Nd=$(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.merge=void 0;var Iv=Pd();function Nv(t){let e=Iv(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Id(t)),e.once("end",()=>Id(t)),e}Es.merge=Nv;function Id(t){t.forEach(e=>e.emit("close"))}});var Md=$(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.isEmpty=hi.isString=void 0;function Mv(t){return typeof t=="string"}hi.isString=Mv;function jv(t){return t===""}hi.isEmpty=jv});var $t=$(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.string=Te.stream=Te.pattern=Te.path=Te.fs=Te.errno=Te.array=void 0;var $v=sp();Te.array=$v;var Hv=op();Te.errno=Hv;var qv=ap();Te.fs=qv;var Uv=up();Te.path=Uv;var Gv=kd();Te.pattern=Gv;var zv=Nd();Te.stream=zv;var Wv=Md();Te.string=Wv});var Hd=$(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.convertPatternGroupToTask=Le.convertPatternGroupsToTasks=Le.groupPatternsByBaseDirectory=Le.getNegativePatternsAsPositive=Le.getPositivePatterns=Le.convertPatternsToTasks=Le.generate=void 0;var Ht=$t();function Yv(t,e){let r=jd(t),i=$d(t,e.ignore),n=r.filter(u=>Ht.pattern.isStaticPattern(u,e)),s=r.filter(u=>Ht.pattern.isDynamicPattern(u,e)),o=cu(n,i,!1),a=cu(s,i,!0);return o.concat(a)}Le.generate=Yv;function cu(t,e,r){let i=[],n=Ht.pattern.getPatternsOutsideCurrentDirectory(t),s=Ht.pattern.getPatternsInsideCurrentDirectory(t),o=hu(n),a=hu(s);return i.push(...fu(o,e,r)),"."in a?i.push(pu(".",s,e,r)):i.push(...fu(a,e,r)),i}Le.convertPatternsToTasks=cu;function jd(t){return Ht.pattern.getPositivePatterns(t)}Le.getPositivePatterns=jd;function $d(t,e){return Ht.pattern.getNegativePatterns(t).concat(e).map(Ht.pattern.convertToPositivePattern)}Le.getNegativePatternsAsPositive=$d;function hu(t){let e={};return t.reduce((r,i)=>{let n=Ht.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Le.groupPatternsByBaseDirectory=hu;function fu(t,e,r){return Object.keys(t).map(i=>pu(i,t[i],e,r))}Le.convertPatternGroupsToTasks=fu;function pu(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ht.pattern.convertToNegativePattern))}}Le.convertPatternGroupToTask=pu});var Ud=$(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.removeDuplicateSlashes=fi.transform=void 0;var Vv=/(?!^)\/{2,}/g;function Kv(t){return t.map(e=>qd(e))}fi.transform=Kv;function qd(t){return t.replace(Vv,"/")}fi.removeDuplicateSlashes=qd});var zd=$(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.read=void 0;function Zv(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Gd(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){du(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Gd(r,s);return}du(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),du(r,o)})})}Ds.read=Zv;function Gd(t,e){t(e)}function du(t,e){t(null,e)}});var Wd=$(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.read=void 0;function Jv(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}}bs.read=Jv});var Yd=$(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.createFileSystemAdapter=sr.FILE_SYSTEM_ADAPTER=void 0;var _s=require("fs");sr.FILE_SYSTEM_ADAPTER={lstat:_s.lstat,stat:_s.stat,lstatSync:_s.lstatSync,statSync:_s.statSync};function Xv(t){return t===void 0?sr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},sr.FILE_SYSTEM_ADAPTER),t)}sr.createFileSystemAdapter=Xv});var Vd=$(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var Qv=Yd(),mu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qv.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}};gu.default=mu});var Pr=$(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.statSync=or.stat=or.Settings=void 0;var Kd=zd(),e1=Wd(),yu=Vd();or.Settings=yu.default;function t1(t,e,r){if(typeof e=="function"){Kd.read(t,Eu(),e);return}Kd.read(t,Eu(e),r)}or.stat=t1;function r1(t,e){let r=Eu(e);return e1.read(t,r)}or.statSync=r1;function Eu(t={}){return t instanceof yu.default?t:new yu.default(t)}});var Xd=$((KB,Jd)=>{var Zd;Jd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Zd||(Zd=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var em=$((ZB,Qd)=>{Qd.exports=n1;var i1=Xd();function n1(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(u){function l(){e&&e(u,r),e=null}s?i1(l):l()}function a(u,l,c){r[u]=c,(--i===0||l)&&o(l)}i?n?n.forEach(function(u){t[u](function(l,c){a(u,l,c)})}):t.forEach(function(u,l){u(function(c,f){a(l,c,f)})}):o(null),s=!1}});var Du=$(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ws=process.versions.node.split(".");if(ws[0]===void 0||ws[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var tm=Number.parseInt(ws[0],10),s1=Number.parseInt(ws[1],10),rm=10,o1=10,a1=tm>rm,u1=tm===rm&&s1>=o1;Ss.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a1||u1});var im=$(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.createDirentFromStats=void 0;var bu=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 l1(t,e){return new bu(t,e)}As.createDirentFromStats=l1});var _u=$(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fs=void 0;var c1=im();vs.fs=c1});var wu=$(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.joinPathSegments=void 0;function h1(t,e,r){return t.endsWith(r)?t+e:t+r+e}Cs.joinPathSegments=h1});var lm=$(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var f1=Pr(),nm=em(),p1=Du(),sm=_u(),om=wu();function d1(t,e,r){if(!e.stats&&p1.IS_SUPPORT_READDIR_WITH_FILE_TYPES){am(t,e,r);return}um(t,e,r)}ar.read=d1;function am(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){xs(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:om.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Su(r,s);return}let o=s.map(a=>m1(a,e));nm(o,(a,u)=>{if(a!==null){xs(r,a);return}Su(r,u)})})}ar.readdirWithFileTypes=am;function m1(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=sm.fs.createDirentFromStats(t.name,n),r(null,t)})}}function um(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){xs(r,i);return}let s=n.map(o=>{let a=om.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{f1.stat(a,e.fsStatSettings,(l,c)=>{if(l!==null){u(l);return}let f={name:o,path:a,dirent:sm.fs.createDirentFromStats(o,c)};e.stats&&(f.stats=c),u(null,f)})}});nm(s,(o,a)=>{if(o!==null){xs(r,o);return}Su(r,a)})})}ar.readdir=um;function xs(t,e){t(e)}function Su(t,e){t(null,e)}});var dm=$(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.readdir=ur.readdirWithFileTypes=ur.read=void 0;var g1=Pr(),y1=Du(),cm=_u(),hm=wu();function E1(t,e){return!e.stats&&y1.IS_SUPPORT_READDIR_WITH_FILE_TYPES?fm(t,e):pm(t,e)}ur.read=E1;function fm(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:hm.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=cm.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ur.readdirWithFileTypes=fm;function pm(t,e){return e.fs.readdirSync(t).map(i=>{let n=hm.joinPathSegments(t,i,e.pathSegmentSeparator),s=g1.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:cm.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ur.readdir=pm});var mm=$(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var pi=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:pi.lstat,stat:pi.stat,lstatSync:pi.lstatSync,statSync:pi.statSync,readdir:pi.readdir,readdirSync:pi.readdirSync};function D1(t){return t===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),t)}lr.createFileSystemAdapter=D1});var gm=$(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var b1=require("path"),_1=Pr(),w1=mm(),Au=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=w1.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,b1.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new _1.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};vu.default=Au});var Rs=$(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Settings=cr.scandirSync=cr.scandir=void 0;var ym=lm(),S1=dm(),Cu=gm();cr.Settings=Cu.default;function A1(t,e,r){if(typeof e=="function"){ym.read(t,xu(),e);return}ym.read(t,xu(e),r)}cr.scandir=A1;function v1(t,e){let r=xu(e);return S1.read(t,r)}cr.scandirSync=v1;function xu(t={}){return t instanceof Cu.default?t:new Cu.default(t)}});var Dm=$((o2,Em)=>{"use strict";function C1(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}}Em.exports=C1});var _m=$((a2,Ru)=>{"use strict";var x1=Dm();function bm(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=x1(R1),n=null,s=null,o=0,a=null,u={push:m,drain:nt,saturated:nt,pause:c,paused:!1,concurrency:r,running:l,resume:p,idle:d,length:f,getQueue:h,unshift:g,empty:nt,kill:F,killAndDrain:k,error:O};return u;function l(){return o}function c(){u.paused=!0}function f(){for(var R=n,B=0;R;)R=R.next,B++;return B}function h(){for(var R=n,B=[];R;)B.push(R.value),R=R.next;return B}function p(){if(u.paused){u.paused=!1;for(var R=0;R<u.concurrency;R++)o++,v()}}function d(){return o===0&&u.length()===0}function m(R,B){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=B||nt,_.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=_,s=_):(n=_,s=_,u.saturated()):(o++,e.call(t,_.value,_.worked))}function g(R,B){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=B||nt,o===u.concurrency||u.paused?n?(_.next=n,n=_):(n=_,s=_,u.saturated()):(o++,e.call(t,_.value,_.worked))}function v(R){R&&i.release(R);var B=n;B?u.paused?o--:(s===n&&(s=null),n=B.next,B.next=null,e.call(t,B.value,B.worked),s===null&&u.empty()):--o===0&&u.drain()}function F(){n=null,s=null,u.drain=nt}function k(){n=null,s=null,u.drain(),u.drain=nt}function O(R){a=R}}function nt(){}function R1(){this.value=null,this.callback=nt,this.next=null,this.release=nt,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=nt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function F1(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,f){e.call(this,c).then(function(h){f(null,h)},f)}var n=bm(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=l,n;function a(c){var f=new Promise(function(h,p){s(c,function(d,m){if(d){p(d);return}h(m)})});return f.catch(nt),f}function u(c){var f=new Promise(function(h,p){o(c,function(d,m){if(d){p(d);return}h(m)})});return f.catch(nt),f}function l(){var c=n.drain,f=new Promise(function(h){n.drain=function(){c(),h()}});return f}}Ru.exports=bm;Ru.exports.promise=F1});var Fs=$(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.joinPathSegments=wt.replacePathSegmentSeparator=wt.isAppliedFilter=wt.isFatalError=void 0;function O1(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}wt.isFatalError=O1;function k1(t,e){return t===null||t(e)}wt.isAppliedFilter=k1;function T1(t,e){return t.split(/[/\\]/).join(e)}wt.replacePathSegmentSeparator=T1;function L1(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}wt.joinPathSegments=L1});var ku=$(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var B1=Fs(),Fu=class{constructor(e,r){this._root=e,this._settings=r,this._root=B1.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ou.default=Fu});var Bu=$(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var P1=require("events"),I1=Rs(),N1=_m(),Os=Fs(),M1=ku(),Tu=class extends M1.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=I1.scandir,this._emitter=new P1.EventEmitter,this._queue=N1(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||!Os.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=Os.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Os.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Os.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Lu.default=Tu});var wm=$(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var j1=Bu(),Pu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new j1.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{$1(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{H1(e,this._storage)}),this._reader.read()}};Iu.default=Pu;function $1(t,e){t(e)}function H1(t,e){t(null,e)}});var Sm=$(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var q1=require("stream"),U1=Bu(),Nu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new U1.default(this._root,this._settings),this._stream=new q1.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}};Mu.default=Nu});var Am=$($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var G1=Rs(),ks=Fs(),z1=ku(),ju=class extends z1.default{constructor(){super(...arguments),this._scandir=G1.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(ks.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=ks.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ks.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&ks.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};$u.default=ju});var vm=$(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var W1=Am(),Hu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new W1.default(this._root,this._settings)}read(){return this._reader.read()}};qu.default=Hu});var Cm=$(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var Y1=require("path"),V1=Rs(),Uu=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,Y1.sep),this.fsScandirSettings=new V1.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}};Gu.default=Uu});var Ls=$(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.Settings=St.walkStream=St.walkSync=St.walk=void 0;var xm=wm(),K1=Sm(),Z1=vm(),zu=Cm();St.Settings=zu.default;function J1(t,e,r){if(typeof e=="function"){new xm.default(t,Ts()).read(e);return}new xm.default(t,Ts(e)).read(r)}St.walk=J1;function X1(t,e){let r=Ts(e);return new Z1.default(t,r).read()}St.walkSync=X1;function Q1(t,e){let r=Ts(e);return new K1.default(t,r).read()}St.walkStream=Q1;function Ts(t={}){return t instanceof zu.default?t:new zu.default(t)}});var Bs=$(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var eC=require("path"),tC=Pr(),Rm=$t(),Wu=class{constructor(e){this._settings=e,this._fsStatSettings=new tC.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return eC.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Rm.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Rm.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Yu.default=Wu});var Zu=$(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var rC=require("stream"),iC=Pr(),nC=Ls(),sC=Bs(),Vu=class extends sC.default{constructor(){super(...arguments),this._walkStream=nC.walkStream,this._stat=iC.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new rC.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Ku.default=Vu});var Fm=$(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var oC=Ls(),aC=Bs(),uC=Zu(),Ju=class extends aC.default{constructor(){super(...arguments),this._walkAsync=oC.walk,this._readerStream=new uC.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Xu.default=Ju});var Om=$(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var di=$t(),Qu=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=di.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return di.pattern.getPatternParts(e,this._micromatchOptions).map(i=>di.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:di.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return di.array.splitWhen(e,r=>r.dynamic&&di.pattern.hasGlobStar(r.pattern))}};el.default=Qu});var km=$(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var lC=Om(),tl=class extends lC.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((u,l)=>{let c=s.segments[l];return!!(c.dynamic&&c.patternRe.test(u)||!c.dynamic&&c.pattern===u)}))return!0}return!1}};rl.default=tl});var Tm=$(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var Ps=$t(),cC=km(),il=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 cC.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Ps.pattern.isAffectDepthOfReadingPattern);return Ps.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Ps.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!Ps.pattern.matchAny(e,r)}};nl.default=il});var Lm=$(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var Ir=$t(),sl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Ir.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Ir.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=Ir.path.makeAbsolute(this._settings.cwd,e);return Ir.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Ir.path.removeLeadingDotSegment(e),s=Ir.pattern.matchAny(n,r);return!s&&i?Ir.pattern.matchAny(n+"/",r):s}};ol.default=sl});var Bm=$(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var hC=$t(),al=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return hC.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ul.default=al});var Im=$(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var Pm=$t(),ll=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Pm.path.makeAbsolute(this._settings.cwd,r),r=Pm.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};cl.default=ll});var Is=$(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var fC=require("path"),pC=Tm(),dC=Lm(),mC=Bm(),gC=Im(),hl=class{constructor(e){this._settings=e,this.errorFilter=new mC.default(this._settings),this.entryFilter=new dC.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new pC.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new gC.default(this._settings)}_getRootDirectory(e){return fC.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}}};fl.default=hl});var Nm=$(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var yC=Fm(),EC=Is(),pl=class extends EC.default{constructor(){super(...arguments),this._reader=new yC.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)}};dl.default=pl});var Mm=$(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var DC=require("stream"),bC=Zu(),_C=Is(),ml=class extends _C.default{constructor(){super(...arguments),this._reader=new bC.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new DC.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)}};gl.default=ml});var jm=$(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var wC=Pr(),SC=Ls(),AC=Bs(),yl=class extends AC.default{constructor(){super(...arguments),this._walkSync=SC.walkSync,this._statSync=wC.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)}};El.default=yl});var $m=$(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var vC=jm(),CC=Is(),Dl=class extends CC.default{constructor(){super(...arguments),this._reader=new vC.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)}};bl.default=Dl});var Hm=$(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var mi=require("fs"),xC=require("os"),RC=Math.max(xC.cpus().length,1);gi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:mi.lstat,lstatSync:mi.lstatSync,stat:mi.stat,statSync:mi.statSync,readdir:mi.readdir,readdirSync:mi.readdirSync};var _l=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,RC),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},gi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};gi.default=_l});var Ns=$((T2,Gm)=>{"use strict";var qm=Hd(),Um=Ud(),FC=Nm(),OC=Mm(),kC=$m(),wl=Hm(),Nr=$t();async function Sl(t,e){yi(t);let r=Al(t,FC.default,e),i=await Promise.all(r);return Nr.array.flatten(i)}(function(t){function e(o,a){yi(o);let u=Al(o,kC.default,a);return Nr.array.flatten(u)}t.sync=e;function r(o,a){yi(o);let u=Al(o,OC.default,a);return Nr.stream.merge(u)}t.stream=r;function i(o,a){yi(o);let u=Um.transform([].concat(o)),l=new wl.default(a);return qm.generate(u,l)}t.generateTasks=i;function n(o,a){yi(o);let u=new wl.default(a);return Nr.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return yi(o),Nr.path.escape(o)}t.escapePath=s})(Sl||(Sl={}));function Al(t,e,r){let i=Um.transform([].concat(t)),n=new wl.default(r),s=qm.generate(i,n),o=new e(n);return s.map(o.read,o)}function yi(t){if(![].concat(t).every(i=>Nr.string.isString(i)&&!Nr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Gm.exports=Sl});var n0=$((N2,i0)=>{i0.exports=r0;r0.sync=UC;var e0=require("fs");function qC(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 t0(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:qC(e,r)}function r0(t,e,r){e0.stat(t,function(i,n){r(i,i?!1:t0(n,t,e))})}function UC(t,e){return t0(e0.statSync(t),t,e)}});var l0=$((M2,u0)=>{u0.exports=o0;o0.sync=GC;var s0=require("fs");function o0(t,e,r){s0.stat(t,function(i,n){r(i,i?!1:a0(n,e))})}function GC(t,e){return a0(s0.statSync(t),e)}function a0(t,e){return t.isFile()&&zC(t,e)}function zC(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&n===o||r&a&&i===s||r&c&&s===0;return f}});var h0=$(($2,c0)=>{var j2=require("fs"),Ms;process.platform==="win32"||global.TESTING_WINDOWS?Ms=n0():Ms=l0();c0.exports=vl;vl.sync=WC;function vl(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){vl(t,e||{},function(s,o){s?n(s):i(o)})})}Ms(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function WC(t,e){try{return Ms.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var E0=$((H2,y0)=>{var _i=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",f0=require("path"),YC=_i?";":":",p0=h0(),d0=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),m0=(t,e)=>{let r=e.colon||YC,i=t.match(/\//)||_i&&t.match(/\\/)?[""]:[..._i?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=_i?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=_i?n.split(r):[""];return _i&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},g0=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=m0(t,e),o=[],a=l=>new Promise((c,f)=>{if(l===i.length)return e.all&&o.length?c(o):f(d0(t));let h=i[l],p=/^".*"$/.test(h)?h.slice(1,-1):h,d=f0.join(p,t),m=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;c(u(m,l,0))}),u=(l,c,f)=>new Promise((h,p)=>{if(f===n.length)return h(a(c+1));let d=n[f];p0(l+d,{pathExt:s},(m,g)=>{if(!m&&g)if(e.all)o.push(l+d);else return h(l+d);return h(u(l,c,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},VC=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=m0(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=f0.join(u,t),c=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let f=0;f<i.length;f++){let h=c+i[f];try{if(p0.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 d0(t)};y0.exports=g0;g0.sync=VC});var xl=$((q2,Cl)=>{"use strict";var D0=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Cl.exports=D0;Cl.exports.default=D0});var S0=$((U2,w0)=>{"use strict";var b0=require("path"),KC=E0(),ZC=xl();function _0(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=KC.sync(t.command,{path:r[ZC({env:r})],pathExt:e?b0.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=b0.resolve(n?t.options.cwd:"",o)),o}function JC(t){return _0(t)||_0(t,!0)}w0.exports=JC});var A0=$((G2,Fl)=>{"use strict";var Rl=/([()\][%!^"`<>&|;, *?])/g;function XC(t){return t=t.replace(Rl,"^$1"),t}function QC(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Rl,"^$1"),e&&(t=t.replace(Rl,"^$1")),t}Fl.exports.command=XC;Fl.exports.argument=QC});var C0=$((z2,v0)=>{"use strict";v0.exports=/^#!(.*)/});var R0=$((W2,x0)=>{"use strict";var ex=C0();x0.exports=(t="")=>{let e=t.match(ex);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var O0=$((Y2,F0)=>{"use strict";var Ol=require("fs"),tx=R0();function rx(t){let r=Buffer.alloc(150),i;try{i=Ol.openSync(t,"r"),Ol.readSync(i,r,0,150,0),Ol.closeSync(i)}catch{}return tx(r.toString())}F0.exports=rx});var B0=$((V2,L0)=>{"use strict";var ix=require("path"),k0=S0(),T0=A0(),nx=O0(),sx=process.platform==="win32",ox=/\.(?:com|exe)$/i,ax=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ux(t){t.file=k0(t);let e=t.file&&nx(t.file);return e?(t.args.unshift(t.file),t.command=e,k0(t)):t.file}function lx(t){if(!sx)return t;let e=ux(t),r=!ox.test(e);if(t.options.forceShell||r){let i=ax.test(e);t.command=ix.normalize(t.command),t.command=T0.command(t.command),t.args=t.args.map(s=>T0.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 cx(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:lx(i)}L0.exports=cx});var N0=$((K2,I0)=>{"use strict";var kl=process.platform==="win32";function Tl(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 hx(t,e){if(!kl)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=P0(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function P0(t,e){return kl&&t===1&&!e.file?Tl(e.original,"spawn"):null}function fx(t,e){return kl&&t===1&&!e.file?Tl(e.original,"spawnSync"):null}I0.exports={hookChildProcess:hx,verifyENOENT:P0,verifyENOENTSync:fx,notFoundError:Tl}});var $0=$((Z2,wi)=>{"use strict";var M0=require("child_process"),Ll=B0(),Bl=N0();function j0(t,e,r){let i=Ll(t,e,r),n=M0.spawn(i.command,i.args,i.options);return Bl.hookChildProcess(n,i),n}function px(t,e,r){let i=Ll(t,e,r),n=M0.spawnSync(i.command,i.args,i.options);return n.error=n.error||Bl.verifyENOENTSync(n.status,i),n}wi.exports=j0;wi.exports.spawn=j0;wi.exports.sync=px;wi.exports._parse=Ll;wi.exports._enoent=Bl});var q0=$((J2,H0)=>{"use strict";H0.exports=t=>{let e=typeof t=="string"?`
|
3
4
|
`:`
|
4
|
-
`.charCodeAt(),
|
5
|
-
${
|
6
|
-
`);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=s,n.exitCode=c,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!o,n.isCanceled=f,n.killed=l&&!o,n};Yf.exports=iS});var Qf=ve((LN,fa)=>{"use strict";var Xi=["stdin","stdout","stderr"],sS=e=>Xi.some(r=>e[r]!==void 0),Zf=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return Xi.map(n=>e[n]);if(sS(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Xi.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,Xi.length);return Array.from({length:t},(n,i)=>r[i])};fa.exports=Zf;fa.exports.node=e=>{let r=Zf(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var Jf=ve((IN,Zi)=>{Zi.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Zi.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Zi.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ip=ve((MN,un)=>{var He=global.process,Or=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Or(He)?(ep=require("assert"),on=Jf(),tp=/^win/i.test(He.platform),Qn=require("events"),typeof Qn!="function"&&(Qn=Qn.EventEmitter),He.__signal_exit_emitter__?Xe=He.__signal_exit_emitter__:(Xe=He.__signal_exit_emitter__=new Qn,Xe.count=0,Xe.emitted={}),Xe.infinite||(Xe.setMaxListeners(1/0),Xe.infinite=!0),un.exports=function(e,r){if(!Or(global.process))return function(){};ep.equal(typeof e,"function","a callback must be provided for exit handler"),an===!1&&pa();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){Xe.removeListener(t,e),Xe.listeners("exit").length===0&&Xe.listeners("afterexit").length===0&&Qi()};return Xe.on(t,e),n},Qi=function(){!an||!Or(global.process)||(an=!1,on.forEach(function(r){try{He.removeListener(r,Ji[r])}catch{}}),He.emit=es,He.reallyExit=da,Xe.count-=1)},un.exports.unload=Qi,Tr=function(r,t,n){Xe.emitted[r]||(Xe.emitted[r]=!0,Xe.emit(r,t,n))},Ji={},on.forEach(function(e){Ji[e]=function(){if(Or(global.process)){var t=He.listeners(e);t.length===Xe.count&&(Qi(),Tr("exit",null,e),Tr("afterexit",null,e),tp&&e==="SIGHUP"&&(e="SIGINT"),He.kill(He.pid,e))}}}),un.exports.signals=function(){return on},an=!1,pa=function(){an||!Or(global.process)||(an=!0,Xe.count+=1,on=on.filter(function(r){try{return He.on(r,Ji[r]),!0}catch{return!1}}),He.emit=np,He.reallyExit=rp)},un.exports.load=pa,da=He.reallyExit,rp=function(r){Or(global.process)&&(He.exitCode=r||0,Tr("exit",He.exitCode,null),Tr("afterexit",He.exitCode,null),da.call(He,He.exitCode))},es=He.emit,np=function(r,t){if(r==="exit"&&Or(global.process)){t!==void 0&&(He.exitCode=t);var n=es.apply(this,arguments);return Tr("exit",He.exitCode,null),Tr("afterexit",He.exitCode,null),n}else return es.apply(this,arguments)}):un.exports=function(){return function(){}};var ep,on,tp,Qn,Xe,Qi,Tr,Ji,an,pa,da,rp,es,np});var op=ve((NN,sp)=>{"use strict";var oS=require("os"),aS=ip(),uS=1e3*5,lS=(e,r="SIGTERM",t={})=>{let n=e(r);return cS(e,r,t,n),n},cS=(e,r,t,n)=>{if(!hS(r,t,n))return;let i=pS(t),c=setTimeout(()=>{e("SIGKILL")},i);c.unref&&c.unref()},hS=(e,{forceKillAfterTimeout:r},t)=>fS(e)&&r!==!1&&t,fS=e=>e===oS.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",pS=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return uS;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},dS=(e,r)=>{e.kill()&&(r.isCanceled=!0)},mS=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},yS=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,c=new Promise((s,o)=>{i=setTimeout(()=>{mS(e,t,o)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([c,a])},gS=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},bS=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=aS(()=>{e.kill()});return n.finally(()=>{i()})};sp.exports={spawnedKill:lS,spawnedCancel:dS,setupTimeout:yS,validateTimeout:gS,setExitHandler:bS}});var up=ve((jN,ap)=>{"use strict";var Pt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Pt.writable=e=>Pt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Pt.readable=e=>Pt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Pt.duplex=e=>Pt.writable(e)&&Pt.readable(e);Pt.transform=e=>Pt.duplex(e)&&typeof e._transform=="function";ap.exports=Pt});var cp=ve(($N,lp)=>{"use strict";var{PassThrough:vS}=require("stream");lp.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let c=new vS({objectMode:i});t&&c.setEncoding(t);let a=0,s=[];return c.on("data",o=>{s.push(o),i?a=s.length:a+=o.length}),c.getBufferedValue=()=>r?s:n?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}});var hp=ve((HN,Jn)=>{"use strict";var{constants:_S}=require("buffer"),wS=require("stream"),{promisify:ES}=require("util"),SS=cp(),AS=ES(wS.pipeline),ts=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ma(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=SS(r);return await new Promise((i,c)=>{let a=s=>{s&&n.getBufferedLength()<=_S.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),c(s)};(async()=>{try{await AS(e,n),i()}catch(s){a(s)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new ts)})}),n.getBufferedValue()}Jn.exports=ma;Jn.exports.buffer=(e,r)=>ma(e,{...r,encoding:"buffer"});Jn.exports.array=(e,r)=>ma(e,{...r,array:!0});Jn.exports.MaxBufferError=ts});var pp=ve((qN,fp)=>{"use strict";var{PassThrough:xS}=require("stream");fp.exports=function(){var e=[],r=new xS({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(c){return Array.isArray(c)?(c.forEach(t),this):(e.push(c),c.once("end",i.bind(null,c)),c.once("error",r.emit.bind(r,"error")),c.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(c){e=e.filter(function(a){return a!==c}),!e.length&&r.readable&&r.end()}}});var gp=ve((GN,yp)=>{"use strict";var mp=up(),dp=hp(),kS=pp(),CS=(e,r)=>{r===void 0||e.stdin===void 0||(mp(r)?r.pipe(e.stdin):e.stdin.end(r))},DS=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=kS();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},ya=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},ga=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?dp(e,{encoding:r,maxBuffer:n}):dp.buffer(e,{maxBuffer:n})},RS=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:c},a)=>{let s=ga(e,{encoding:n,buffer:i,maxBuffer:c}),o=ga(r,{encoding:n,buffer:i,maxBuffer:c}),f=ga(t,{encoding:n,buffer:i,maxBuffer:c*2});try{return await Promise.all([a,s,o,f])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},ya(e,s),ya(r,o),ya(t,f)])}},OS=({input:e})=>{if(mp(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};yp.exports={handleInput:CS,makeAllStream:DS,getSpawnedResult:RS,validateInputSync:OS}});var vp=ve((UN,bp)=>{"use strict";var TS=(async()=>{})().constructor.prototype,FS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(TS,e)]),PS=(e,r)=>{for(let[t,n]of FS){let i=typeof r=="function"?(...c)=>Reflect.apply(n.value,r(),c):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},BS=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});bp.exports={mergePromise:PS,getSpawnedPromise:BS}});var Ep=ve((zN,wp)=>{"use strict";var _p=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],LS=/^[\w.-]+$/,IS=/"/g,MS=e=>typeof e!="string"||LS.test(e)?e:`"${e.replace(IS,'\\"')}"`,NS=(e,r)=>_p(e,r).join(" "),jS=(e,r)=>_p(e,r).map(t=>MS(t)).join(" "),$S=/ +/g,HS=e=>{let r=[];for(let t of e.trim().split($S)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};wp.exports={joinCommand:NS,getEscapedCommand:jS,parseCommand:HS}});var is=ve((WN,ln)=>{"use strict";var qS=require("path"),ba=require("child_process"),GS=Pf(),US=Lf(),zS=Nf(),WS=qf(),rs=Xf(),Ap=Qf(),{spawnedKill:VS,spawnedCancel:KS,setupTimeout:YS,validateTimeout:XS,setExitHandler:ZS}=op(),{handleInput:QS,getSpawnedResult:JS,makeAllStream:eA,validateInputSync:tA}=gp(),{mergePromise:Sp,getSpawnedPromise:rA}=vp(),{joinCommand:xp,parseCommand:kp,getEscapedCommand:Cp}=Ep(),nA=1e3*1e3*100,iA=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let c=r?{...process.env,...e}:e;return t?zS.env({env:c,cwd:n,execPath:i}):c},Dp=(e,r,t={})=>{let n=GS._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:nA,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=iA(t),t.stdio=Ap(t),process.platform==="win32"&&qS.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},ei=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?US(r):r,ns=(e,r,t)=>{let n=Dp(e,r,t),i=xp(e,r),c=Cp(e,r);XS(n.options);let a;try{a=ba.spawn(n.file,n.args,n.options)}catch(d){let p=new ba.ChildProcess,y=Promise.reject(rs({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Sp(p,y)}let s=rA(a),o=YS(a,n.options,s),f=ZS(a,n.options,o),l={isCanceled:!1};a.kill=VS.bind(null,a.kill.bind(a)),a.cancel=KS.bind(null,a,l);let u=WS(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await JS(a,n.options,f),E=ei(n.options,_),v=ei(n.options,g),m=ei(n.options,S);if(d||p!==0||y!==null){let w=rs({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:c,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:c,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return QS(a,n.options.input),a.all=eA(a,n.options),Sp(a,u)};ln.exports=ns;ln.exports.sync=(e,r,t)=>{let n=Dp(e,r,t),i=xp(e,r),c=Cp(e,r);tA(n.options);let a;try{a=ba.spawnSync(n.file,n.args,n.options)}catch(f){throw rs({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=ei(n.options,a.stdout,a.error),o=ei(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=rs({stdout:s,stderr:o,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:c,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:c,exitCode:0,stdout:s,stderr:o,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ln.exports.command=(e,r)=>{let[t,...n]=kp(e);return ns(t,n,r)};ln.exports.commandSync=(e,r)=>{let[t,...n]=kp(e);return ns.sync(t,n,r)};ln.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=Ap.node(t),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:a=i}=t;return ns(c,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Rp=ve(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.splitWhen=cn.flatten=void 0;function sA(e){return e.reduce((r,t)=>[].concat(r,t),[])}cn.flatten=sA;function oA(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}cn.splitWhen=oA});var Op=ve(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.isEnoentCodeError=void 0;function aA(e){return e.code==="ENOENT"}ss.isEnoentCodeError=aA});var Tp=ve(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.createDirentFromStats=void 0;var va=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function uA(e,r){return new va(e,r)}os.createDirentFromStats=uA});var Fp=ve(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeLeadingDotSegment=Bt.escape=Bt.makeAbsolute=Bt.unixify=void 0;var lA=require("path"),cA=2,hA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function fA(e){return e.replace(/\\/g,"/")}Bt.unixify=fA;function pA(e,r){return lA.resolve(e,r)}Bt.makeAbsolute=pA;function dA(e){return e.replace(hA,"\\$2")}Bt.escape=dA;function mA(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(cA)}return e}Bt.removeLeadingDotSegment=mA});var Bp=ve((ZN,Pp)=>{Pp.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var Mp=ve((QN,Ip)=>{var yA=Bp(),Lp={"{":"}","(":")","[":"]"},gA=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,c=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||c!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(c=e.indexOf(")",r),c>r&&(a=e.indexOf("\\",r),a===-1||a>c))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(c=e.indexOf(")",t),c>t&&(a=e.indexOf("\\",t),a===-1||a>c))))return!0;if(e[r]==="\\"){var s=e[r+1];r+=2;var o=Lp[s];if(o){var f=e.indexOf(o,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},bA=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=Lp[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};Ip.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(yA(r))return!0;var n=gA;return t&&t.strict===!1&&(n=bA),n(r)}});var jp=ve((JN,Np)=>{"use strict";var vA=Mp(),_A=require("path").posix.dirname,wA=require("os").platform()==="win32",_a="/",EA=/\\/g,SA=/[\{\[].*[\}\]]$/,AA=/(^|[^\\])([\{\[]|\([^\)]+$)/,xA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Np.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&wA&&r.indexOf(_a)<0&&(r=r.replace(EA,_a)),SA.test(r)&&(r+=_a),r+="a";do r=_A(r);while(vA(r)||AA.test(r));return r.replace(xA,"$1")}});var as=ve(xt=>{"use strict";xt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;xt.find=(e,r)=>e.nodes.find(t=>t.type===r);xt.exceedsLimit=(e,r,t=1,n)=>n===!1||!xt.isInteger(e)||!xt.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;xt.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};xt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);xt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;xt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;xt.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);xt.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let c=n[i];Array.isArray(c)?t(c,r):c!==void 0&&r.push(c)}return r};return t(e),r}});var us=ve((tj,Hp)=>{"use strict";var $p=as();Hp.exports=(e,r={})=>{let t=(n,i={})=>{let c=r.escapeInvalid&&$p.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s="";if(n.value)return(c||a)&&$p.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)s+=t(o);return s};return t(e)}});var Gp=ve((rj,qp)=>{"use strict";qp.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Qp=ve((nj,Zp)=>{"use strict";var Up=Gp(),Fr=(e,r,t)=>{if(Up(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(Up(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),c=String(n.shorthand),a=String(n.capture),s=String(n.wrap),o=e+":"+r+"="+i+c+a+s;if(Fr.cache.hasOwnProperty(o))return Fr.cache[o].result;let f=Math.min(e,r),l=Math.max(e,r);if(Math.abs(f-l)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=Xp(e)||Xp(r),u={min:e,max:r,a:f,b:l},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=l<0?Math.abs(l):1;p=zp(y,Math.abs(f),u,n),f=u.a=0}return l>=0&&(d=zp(f,l,u,n)),u.negatives=p,u.positives=d,u.result=kA(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),Fr.cache[o]=u,u.result};function kA(e,r,t){let n=wa(e,r,"-",!1,t)||[],i=wa(r,e,"",!1,t)||[],c=wa(e,r,"-?",!0,t)||[];return n.concat(c).concat(i).join("|")}function CA(e,r){let t=1,n=1,i=Vp(e,t),c=new Set([r]);for(;e<=i&&i<=r;)c.add(i),t+=1,i=Vp(e,t);for(i=Kp(r+1,n)-1;e<i&&i<=r;)c.add(i),n+=1,i=Kp(r+1,n)-1;return c=[...c],c.sort(OA),c}function DA(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=RA(e,r),i=n.length,c="",a=0;for(let s=0;s<i;s++){let[o,f]=n[s];o===f?c+=o:o!=="0"||f!=="9"?c+=TA(o,f,t):a++}return a&&(c+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:c,count:[a],digits:i}}function zp(e,r,t,n){let i=CA(e,r),c=[],a=e,s;for(let o=0;o<i.length;o++){let f=i[o],l=DA(String(a),String(f),n),h="";if(!t.isPadded&&s&&s.pattern===l.pattern){s.count.length>1&&s.count.pop(),s.count.push(l.count[0]),s.string=s.pattern+Yp(s.count),a=f+1;continue}t.isPadded&&(h=FA(f,t,n)),l.string=h+l.pattern+Yp(l.count),c.push(l),a=f+1,s=l}return c}function wa(e,r,t,n,i){let c=[];for(let a of e){let{string:s}=a;!n&&!Wp(r,"string",s)&&c.push(t+s),n&&Wp(r,"string",s)&&c.push(t+s)}return c}function RA(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function OA(e,r){return e>r?1:r>e?-1:0}function Wp(e,r,t){return e.some(n=>n[r]===t)}function Vp(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function Kp(e,r){return e-e%Math.pow(10,r)}function Yp(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function TA(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function Xp(e){return/^-?(0+)\d/.test(e)}function FA(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Fr.cache={};Fr.clearCache=()=>Fr.cache={};Zp.exports=Fr});var Aa=ve((ij,od)=>{"use strict";var PA=require("util"),td=Qp(),Jp=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),BA=e=>r=>e===!0?Number(r):String(r),Ea=e=>typeof e=="number"||typeof e=="string"&&e!=="",ti=e=>Number.isInteger(+e),Sa=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},LA=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,IA=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},ed=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},MA=(e,r)=>{e.negatives.sort((a,s)=>a<s?-1:a>s?1:0),e.positives.sort((a,s)=>a<s?-1:a>s?1:0);let t=r.capture?"":"?:",n="",i="",c;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?c=`${n}|${i}`:c=n||i,r.wrap?`(${t}${c})`:c},rd=(e,r,t,n)=>{if(t)return td(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let c=String.fromCharCode(r);return`[${i}-${c}]`},nd=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return td(e,r,t)},id=(...e)=>new RangeError("Invalid range arguments: "+PA.inspect(...e)),sd=(e,r,t)=>{if(t.strictRanges===!0)throw id([e,r]);return[]},NA=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},jA=(e,r,t=1,n={})=>{let i=Number(e),c=Number(r);if(!Number.isInteger(i)||!Number.isInteger(c)){if(n.strictRanges===!0)throw id([e,r]);return[]}i===0&&(i=0),c===0&&(c=0);let a=i>c,s=String(e),o=String(r),f=String(t);t=Math.max(Math.abs(t),1);let l=Sa(s)||Sa(o)||Sa(f),h=l?Math.max(s.length,o.length,f.length):0,u=l===!1&&LA(e,r,n)===!1,d=n.transform||BA(u);if(n.toRegex&&t===1)return rd(ed(e,h),ed(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=c:i<=c;)n.toRegex===!0&&t>1?y(i):b.push(IA(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?MA(p,n):nd(b,null,{wrap:!1,...n}):b},$A=(e,r,t=1,n={})=>{if(!ti(e)&&e.length>1||!ti(r)&&r.length>1)return sd(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),c=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),s=c>a,o=Math.min(c,a),f=Math.max(c,a);if(n.toRegex&&t===1)return rd(o,f,!1,n);let l=[],h=0;for(;s?c>=a:c<=a;)l.push(i(c,h)),c=s?c-t:c+t,h++;return n.toRegex===!0?nd(l,null,{wrap:!1,options:n}):l},ls=(e,r,t,n={})=>{if(r==null&&Ea(e))return[e];if(!Ea(e)||!Ea(r))return sd(e,r,n);if(typeof t=="function")return ls(e,r,1,{transform:t});if(Jp(t))return ls(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,ti(t)?ti(e)&&ti(r)?jA(e,r,t,i):$A(e,r,Math.max(Math.abs(t),1),i):t!=null&&!Jp(t)?NA(t,i):ls(e,r,1,t)};od.exports=ls});var ld=ve((sj,ud)=>{"use strict";var HA=Aa(),ad=as(),qA=(e,r={})=>{let t=(n,i={})=>{let c=ad.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s=c===!0||a===!0,o=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return s?o+n.value:"(";if(n.type==="close")return s?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=ad.reduce(n.nodes),h=HA(...l,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=t(l,n);return f};return t(e)};ud.exports=qA});var fd=ve((oj,hd)=>{"use strict";var GA=Aa(),cd=us(),hn=as(),Pr=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?hn.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let c of i)n.push(Pr(c,r,t));else for(let c of r)t===!0&&typeof c=="string"&&(c=`{${c}}`),n.push(Array.isArray(c)?Pr(i,c,t):i+c);return hn.flatten(n)},UA=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,c={})=>{i.queue=[];let a=c,s=c.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,s=a.queue;if(i.invalid||i.dollar){s.push(Pr(s.pop(),cd(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(Pr(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=hn.reduce(i.nodes);if(hn.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=GA(...h,r);u.length===0&&(u=cd(i,r)),s.push(Pr(s.pop(),u)),i.nodes=[];return}let o=hn.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){s.push(Pr(s.pop(),f,o));continue}if(u.value&&u.type!=="open"){f.push(Pr(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return hn.flatten(n(e))};hd.exports=UA});var dd=ve((aj,pd)=>{"use strict";pd.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:`
|
7
|
-
`,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 vd=ve((uj,bd)=>{"use strict";var zA=us(),{MAX_LENGTH:md,CHAR_BACKSLASH:xa,CHAR_BACKTICK:WA,CHAR_COMMA:VA,CHAR_DOT:KA,CHAR_LEFT_PARENTHESES:YA,CHAR_RIGHT_PARENTHESES:XA,CHAR_LEFT_CURLY_BRACE:ZA,CHAR_RIGHT_CURLY_BRACE:QA,CHAR_LEFT_SQUARE_BRACKET:yd,CHAR_RIGHT_SQUARE_BRACKET:gd,CHAR_DOUBLE_QUOTE:JA,CHAR_SINGLE_QUOTE:ex,CHAR_NO_BREAK_SPACE:tx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:rx}=dd(),nx=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(md,t.maxLength):md;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},c=[i],a=i,s=i,o=0,f=e.length,l=0,h=0,u,d={},p=()=>e[l++],y=b=>{if(b.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&b.type==="text"){s.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=s,s=b,b};for(y({type:"bos"});l<f;)if(a=c[c.length-1],u=p(),!(u===rx||u===tx)){if(u===xa){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===gd){y({type:"text",value:"\\"+u});continue}if(u===yd){o++;let b=!0,_;for(;l<f&&(_=p());){if(u+=_,_===yd){o++;continue}if(_===xa){u+=p();continue}if(_===gd&&(o--,o===0))break}y({type:"text",value:u});continue}if(u===YA){a=y({type:"paren",nodes:[]}),c.push(a),y({type:"text",value:u});continue}if(u===XA){if(a.type!=="paren"){y({type:"text",value:u});continue}a=c.pop(),y({type:"text",value:u}),a=c[c.length-1];continue}if(u===JA||u===ex||u===WA){let b=u,_;for(r.keepQuotes!==!0&&(u="");l<f&&(_=p());){if(_===xa){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===ZA){h++;let _={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),c.push(a),y({type:"open",value:u});continue}if(u===QA){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=c.pop(),a.close=!0,y({type:b,value:u}),h--,a=c[c.length-1];continue}if(u===VA&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:zA(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===KA&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(s.type==="dot"){if(a.range=[],s.value+=u,s.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,s.type="text";continue}a.ranges++,a.args=[];continue}if(s.type==="range"){b.pop();let _=b[b.length-1];_.value+=s.value+u,s=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=c.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=c[c.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(c.length>0);return y({type:"eos"}),i};bd.exports=nx});var Ed=ve((lj,wd)=>{"use strict";var _d=us(),ix=ld(),sx=fd(),ox=vd(),vt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=vt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(vt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};vt.parse=(e,r={})=>ox(e,r);vt.stringify=(e,r={})=>_d(typeof e=="string"?vt.parse(e,r):e,r);vt.compile=(e,r={})=>(typeof e=="string"&&(e=vt.parse(e,r)),ix(e,r));vt.expand=(e,r={})=>{typeof e=="string"&&(e=vt.parse(e,r));let t=sx(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};vt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?vt.compile(e,r):vt.expand(e,r);wd.exports=vt});var ri=ve((cj,Cd)=>{"use strict";var ax=require("path"),Lt="\\\\/",Sd=`[^${Lt}]`,Yt="\\.",ux="\\+",lx="\\?",cs="\\/",cx="(?=.)",Ad="[^/]",ka=`(?:${cs}|$)`,xd=`(?:^|${cs})`,Ca=`${Yt}{1,2}${ka}`,hx=`(?!${Yt})`,fx=`(?!${xd}${Ca})`,px=`(?!${Yt}{0,1}${ka})`,dx=`(?!${Ca})`,mx=`[^.${cs}]`,yx=`${Ad}*?`,kd={DOT_LITERAL:Yt,PLUS_LITERAL:ux,QMARK_LITERAL:lx,SLASH_LITERAL:cs,ONE_CHAR:cx,QMARK:Ad,END_ANCHOR:ka,DOTS_SLASH:Ca,NO_DOT:hx,NO_DOTS:fx,NO_DOT_SLASH:px,NO_DOTS_SLASH:dx,QMARK_NO_DOT:mx,STAR:yx,START_ANCHOR:xd},gx={...kd,SLASH_LITERAL:`[${Lt}]`,QMARK:Sd,STAR:`${Sd}*?`,DOTS_SLASH:`${Yt}{1,2}(?:[${Lt}]|$)`,NO_DOT:`(?!${Yt})`,NO_DOTS:`(?!(?:^|[${Lt}])${Yt}{1,2}(?:[${Lt}]|$))`,NO_DOT_SLASH:`(?!${Yt}{0,1}(?:[${Lt}]|$))`,NO_DOTS_SLASH:`(?!${Yt}{1,2}(?:[${Lt}]|$))`,QMARK_NO_DOT:`[^.${Lt}]`,START_ANCHOR:`(?:^|[${Lt}])`,END_ANCHOR:`(?:[${Lt}]|$)`},bx={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"};Cd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:bx,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:ax.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?gx:kd}}});var ni=ve(ft=>{"use strict";var vx=require("path"),_x=process.platform==="win32",{REGEX_BACKSLASH:wx,REGEX_REMOVE_BACKSLASH:Ex,REGEX_SPECIAL_CHARS:Sx,REGEX_SPECIAL_CHARS_GLOBAL:Ax}=ri();ft.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ft.hasRegexChars=e=>Sx.test(e);ft.isRegexChar=e=>e.length===1&&ft.hasRegexChars(e);ft.escapeRegex=e=>e.replace(Ax,"\\$1");ft.toPosixSlashes=e=>e.replace(wx,"/");ft.removeBackslashes=e=>e.replace(Ex,r=>r==="\\"?"":r);ft.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ft.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:_x===!0||vx.sep==="\\";ft.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?ft.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ft.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};ft.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",c=`${n}(?:${e})${i}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Ld=ve((fj,Bd)=>{"use strict";var Dd=ni(),{CHAR_ASTERISK:Da,CHAR_AT:xx,CHAR_BACKWARD_SLASH:ii,CHAR_COMMA:kx,CHAR_DOT:Ra,CHAR_EXCLAMATION_MARK:Oa,CHAR_FORWARD_SLASH:Pd,CHAR_LEFT_CURLY_BRACE:Ta,CHAR_LEFT_PARENTHESES:Fa,CHAR_LEFT_SQUARE_BRACKET:Cx,CHAR_PLUS:Dx,CHAR_QUESTION_MARK:Rd,CHAR_RIGHT_CURLY_BRACE:Rx,CHAR_RIGHT_PARENTHESES:Od,CHAR_RIGHT_SQUARE_BRACKET:Ox}=ri(),Td=e=>e===Pd||e===ii,Fd=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Tx=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,c=[],a=[],s=[],o=e,f=-1,l=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,A,x={value:"",depth:0,isGlob:!1},C=()=>f>=n,F=()=>o.charCodeAt(f+1),T=()=>(w=A,o.charCodeAt(++f));for(;f<n;){A=T();let B;if(A===ii){g=x.backslashes=!0,A=T(),A===Ta&&(_=!0);continue}if(_===!0||A===Ta){for(m++;C()!==!0&&(A=T());){if(A===ii){g=x.backslashes=!0,T();continue}if(A===Ta){m++;continue}if(_!==!0&&A===Ra&&(A=T())===Ra){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&A===kx){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===Rx&&(m--,m===0)){_=!1,u=x.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(A===Pd){if(c.push(f),a.push(x),x={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===Ra&&f===l+1){l+=2;continue}h=f+1;continue}if(t.noext!==!0&&(A===Dx||A===xx||A===Da||A===Rd||A===Oa)===!0&&F()===Fa){if(p=x.isGlob=!0,y=x.isExtglob=!0,v=!0,A===Oa&&f===l&&(E=!0),i===!0){for(;C()!==!0&&(A=T());){if(A===ii){g=x.backslashes=!0,A=T();continue}if(A===Od){p=x.isGlob=!0,v=!0;break}}continue}break}if(A===Da){if(w===Da&&(b=x.isGlobstar=!0),p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===Rd){if(p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===Cx){for(;C()!==!0&&(B=T());){if(B===ii){g=x.backslashes=!0,T();continue}if(B===Ox){d=x.isBracket=!0,p=x.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&A===Oa&&f===l){S=x.negated=!0,l++;continue}if(t.noparen!==!0&&A===Fa){if(p=x.isGlob=!0,i===!0){for(;C()!==!0&&(A=T());){if(A===Fa){g=x.backslashes=!0,A=T();continue}if(A===Od){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let D=o,O="",P="";l>0&&(O=o.slice(0,l),o=o.slice(l),h-=l),D&&p===!0&&h>0?(D=o.slice(0,h),P=o.slice(h)):p===!0?(D="",P=o):D=o,D&&D!==""&&D!=="/"&&D!==o&&Td(D.charCodeAt(D.length-1))&&(D=D.slice(0,-1)),t.unescape===!0&&(P&&(P=Dd.removeBackslashes(P)),D&&g===!0&&(D=Dd.removeBackslashes(D)));let I={prefix:O,input:e,start:l,base:D,glob:P,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(I.maxDepth=0,Td(A)||a.push(x),I.tokens=a),t.parts===!0||t.tokens===!0){let B;for(let H=0;H<c.length;H++){let G=B?B+1:l,J=c[H],L=e.slice(G,J);t.tokens&&(H===0&&l!==0?(a[H].isPrefix=!0,a[H].value=O):a[H].value=L,Fd(a[H]),I.maxDepth+=a[H].depth),(H!==0||L!=="")&&s.push(L),B=J}if(B&&B+1<e.length){let H=e.slice(B+1);s.push(H),t.tokens&&(a[a.length-1].value=H,Fd(a[a.length-1]),I.maxDepth+=a[a.length-1].depth)}I.slashes=c,I.parts=s}return I};Bd.exports=Tx});var Nd=ve((pj,Md)=>{"use strict";var hs=ri(),_t=ni(),{MAX_LENGTH:fs,POSIX_REGEX_SOURCE:Fx,REGEX_NON_SPECIAL_CHARS:Px,REGEX_SPECIAL_CHARS_BACKREF:Bx,REPLACEMENTS:Id}=hs,Lx=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>_t.escapeRegex(i)).join("..")}return t},fn=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,Pa=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Id[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min(fs,t.maxLength):fs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let c={type:"bos",value:"",output:t.prepend||""},a=[c],s=t.capture?"":"?:",o=_t.isWindows(r),f=hs.globChars(o),l=hs.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=ee=>`(${s}(?:(?!${m}${ee.dot?y:h}).)*?)`,A=t.dot?"":b,x=t.dot?S:E,C=t.bash===!0?w(t):v;t.capture&&(C=`(${C})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let F={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=_t.removePrefix(e,F),i=e.length;let T=[],D=[],O=[],P=c,I,B=()=>F.index===i-1,H=F.peek=(ee=1)=>e[F.index+ee],G=F.advance=()=>e[++F.index]||"",J=()=>e.slice(F.index+1),L=(ee="",ae=0)=>{F.consumed+=ee,F.index+=ae},M=ee=>{F.output+=ee.output!=null?ee.output:ee.value,L(ee.value)},R=()=>{let ee=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)G(),F.start++,ee++;return ee%2===0?!1:(F.negated=!0,F.start++,!0)},K=ee=>{F[ee]++,O.push(ee)},q=ee=>{F[ee]--,O.pop()},Z=ee=>{if(P.type==="globstar"){let ae=F.braces>0&&(ee.type==="comma"||ee.type==="brace"),oe=ee.extglob===!0||T.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!ae&&!oe&&(F.output=F.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=C,F.output+=P.output)}if(T.length&&ee.type!=="paren"&&(T[T.length-1].inner+=ee.value),(ee.value||ee.output)&&M(ee),P&&P.type==="text"&&ee.type==="text"){P.value+=ee.value,P.output=(P.output||"")+ee.value;return}ee.prev=P,a.push(ee),P=ee},N=(ee,ae)=>{let oe={...l[ae],conditions:1,inner:""};oe.prev=P,oe.parens=F.parens,oe.output=F.output;let de=(t.capture?"(":"")+oe.open;K("parens"),Z({type:ee,value:ae,output:F.output?"":p}),Z({type:"paren",extglob:!0,value:G(),output:de}),T.push(oe)},W=ee=>{let ae=ee.close+(t.capture?")":""),oe;if(ee.type==="negate"){let de=C;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(de=w(t)),(de!==C||B()||/^\)+$/.test(J()))&&(ae=ee.close=`)$))${de}`),ee.inner.includes("*")&&(oe=J())&&/^\.[^\\/.]+$/.test(oe)){let pe=Pa(oe,{...r,fastpaths:!1}).output;ae=ee.close=`)${pe})${de})`}ee.prev.type==="bos"&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:I,output:ae}),q("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ee=!1,ae=e.replace(Bx,(oe,de,pe,j,z,k)=>j==="\\"?(ee=!0,oe):j==="?"?de?de+j+(z?S.repeat(z.length):""):k===0?x+(z?S.repeat(z.length):""):S.repeat(pe.length):j==="."?h.repeat(pe.length):j==="*"?de?de+j+(z?C:""):C:de?oe:`\\${oe}`);return ee===!0&&(t.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),ae===e&&t.contains===!0?(F.output=e,F):(F.output=_t.wrapOutput(ae,F,r),F)}for(;!B();){if(I=G(),I==="\0")continue;if(I==="\\"){let oe=H();if(oe==="/"&&t.bash!==!0||oe==="."||oe===";")continue;if(!oe){I+="\\",Z({type:"text",value:I});continue}let de=/^\\+/.exec(J()),pe=0;if(de&&de[0].length>2&&(pe=de[0].length,F.index+=pe,pe%2!==0&&(I+="\\")),t.unescape===!0?I=G():I+=G(),F.brackets===0){Z({type:"text",value:I});continue}}if(F.brackets>0&&(I!=="]"||P.value==="["||P.value==="[^")){if(t.posix!==!1&&I===":"){let oe=P.value.slice(1);if(oe.includes("[")&&(P.posix=!0,oe.includes(":"))){let de=P.value.lastIndexOf("["),pe=P.value.slice(0,de),j=P.value.slice(de+2),z=Fx[j];if(z){P.value=pe+z,F.backtrack=!0,G(),!c.output&&a.indexOf(P)===1&&(c.output=p);continue}}}(I==="["&&H()!==":"||I==="-"&&H()==="]")&&(I=`\\${I}`),I==="]"&&(P.value==="["||P.value==="[^")&&(I=`\\${I}`),t.posix===!0&&I==="!"&&P.value==="["&&(I="^"),P.value+=I,M({value:I});continue}if(F.quotes===1&&I!=='"'){I=_t.escapeRegex(I),P.value+=I,M({value:I});continue}if(I==='"'){F.quotes=F.quotes===1?0:1,t.keepQuotes===!0&&Z({type:"text",value:I});continue}if(I==="("){K("parens"),Z({type:"paren",value:I});continue}if(I===")"){if(F.parens===0&&t.strictBrackets===!0)throw new SyntaxError(fn("opening","("));let oe=T[T.length-1];if(oe&&F.parens===oe.parens+1){W(T.pop());continue}Z({type:"paren",value:I,output:F.parens?")":"\\)"}),q("parens");continue}if(I==="["){if(t.nobracket===!0||!J().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(fn("closing","]"));I=`\\${I}`}else K("brackets");Z({type:"bracket",value:I});continue}if(I==="]"){if(t.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){Z({type:"text",value:I,output:`\\${I}`});continue}if(F.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(fn("opening","["));Z({type:"text",value:I,output:`\\${I}`});continue}q("brackets");let oe=P.value.slice(1);if(P.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(I=`/${I}`),P.value+=I,M({value:I}),t.literalBrackets===!1||_t.hasRegexChars(oe))continue;let de=_t.escapeRegex(P.value);if(F.output=F.output.slice(0,-P.value.length),t.literalBrackets===!0){F.output+=de,P.value=de;continue}P.value=`(${s}${de}|${P.value})`,F.output+=P.value;continue}if(I==="{"&&t.nobrace!==!0){K("braces");let oe={type:"brace",value:I,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};D.push(oe),Z(oe);continue}if(I==="}"){let oe=D[D.length-1];if(t.nobrace===!0||!oe){Z({type:"text",value:I,output:I});continue}let de=")";if(oe.dots===!0){let pe=a.slice(),j=[];for(let z=pe.length-1;z>=0&&(a.pop(),pe[z].type!=="brace");z--)pe[z].type!=="dots"&&j.unshift(pe[z].value);de=Lx(j,t),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let pe=F.output.slice(0,oe.outputIndex),j=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",I=de="\\}",F.output=pe;for(let z of j)F.output+=z.output||z.value}Z({type:"brace",value:I,output:de}),q("braces"),D.pop();continue}if(I==="|"){T.length>0&&T[T.length-1].conditions++,Z({type:"text",value:I});continue}if(I===","){let oe=I,de=D[D.length-1];de&&O[O.length-1]==="braces"&&(de.comma=!0,oe="|"),Z({type:"comma",value:I,output:oe});continue}if(I==="/"){if(P.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",a.pop(),P=c;continue}Z({type:"slash",value:I,output:d});continue}if(I==="."){if(F.braces>0&&P.type==="dot"){P.value==="."&&(P.output=h);let oe=D[D.length-1];P.type="dots",P.output+=I,P.value+=I,oe.dots=!0;continue}if(F.braces+F.parens===0&&P.type!=="bos"&&P.type!=="slash"){Z({type:"text",value:I,output:h});continue}Z({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(P&&P.value==="(")&&t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("qmark",I);continue}if(P&&P.type==="paren"){let de=H(),pe=I;if(de==="<"&&!_t.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(J()))&&(pe=`\\${I}`),Z({type:"text",value:I,output:pe});continue}if(t.dot!==!0&&(P.type==="slash"||P.type==="bos")){Z({type:"qmark",value:I,output:E});continue}Z({type:"qmark",value:I,output:S});continue}if(I==="!"){if(t.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){N("negate",I);continue}if(t.nonegate!==!0&&F.index===0){R();continue}}if(I==="+"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("plus",I);continue}if(P&&P.value==="("||t.regex===!1){Z({type:"plus",value:I,output:u});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||F.parens>0){Z({type:"plus",value:I});continue}Z({type:"plus",value:u});continue}if(I==="@"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){Z({type:"at",extglob:!0,value:I,output:""});continue}Z({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let oe=Px.exec(J());oe&&(I+=oe[0],F.index+=oe[0].length),Z({type:"text",value:I});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=I,P.output=C,F.backtrack=!0,F.globstar=!0,L(I);continue}let ee=J();if(t.noextglob!==!0&&/^\([^?]/.test(ee)){N("star",I);continue}if(P.type==="star"){if(t.noglobstar===!0){L(I);continue}let oe=P.prev,de=oe.prev,pe=oe.type==="slash"||oe.type==="bos",j=de&&(de.type==="star"||de.type==="globstar");if(t.bash===!0&&(!pe||ee[0]&&ee[0]!=="/")){Z({type:"star",value:I,output:""});continue}let z=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),k=T.length&&(oe.type==="pipe"||oe.type==="paren");if(!pe&&oe.type!=="paren"&&!z&&!k){Z({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let U=e[F.index+4];if(U&&U!=="/")break;ee=ee.slice(3),L("/**",3)}if(oe.type==="bos"&&B()){P.type="globstar",P.value+=I,P.output=w(t),F.output=P.output,F.globstar=!0,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!j&&B()){F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=w(t)+(t.strictSlashes?")":"|$)"),P.value+=I,F.globstar=!0,F.output+=oe.output+P.output,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ee[0]==="/"){let U=ee[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=`${w(t)}${d}|${d}${U})`,P.value+=I,F.output+=oe.output+P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ee[0]==="/"){P.type="globstar",P.value+=I,P.output=`(?:^|${d}|${w(t)}${d})`,F.output=P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-P.output.length),P.type="globstar",P.output=w(t),P.value+=I,F.output+=P.output,F.globstar=!0,L(I);continue}let ae={type:"star",value:I,output:C};if(t.bash===!0){ae.output=".*?",(P.type==="bos"||P.type==="slash")&&(ae.output=A+ae.output),Z(ae);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&t.regex===!0){ae.output=I,Z(ae);continue}(F.index===F.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(F.output+=_,P.output+=_):t.dot===!0?(F.output+=g,P.output+=g):(F.output+=A,P.output+=A),H()!=="*"&&(F.output+=p,P.output+=p)),Z(ae)}for(;F.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(fn("closing","]"));F.output=_t.escapeLast(F.output,"["),q("brackets")}for(;F.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(fn("closing",")"));F.output=_t.escapeLast(F.output,"("),q("parens")}for(;F.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(fn("closing","}"));F.output=_t.escapeLast(F.output,"{"),q("braces")}if(t.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${d}?`}),F.backtrack===!0){F.output="";for(let ee of F.tokens)F.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(F.output+=ee.suffix)}return F};Pa.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min(fs,t.maxLength):fs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Id[e]||e;let c=_t.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:o,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=hs.globChars(c),y=t.dot?h:l,b=t.dot?u:l,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=A=>A.noglobstar===!0?S:`(${_}(?:(?!${p}${A.dot?f:a}).)*?)`,v=A=>{switch(A){case"*":return`${y}${o}${S}`;case".*":return`${a}${o}${S}`;case"*.*":return`${y}${S}${a}${o}${S}`;case"*/*":return`${y}${S}${s}${o}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${s})?${b}${o}${S}`;case"**/*.*":return`(?:${y}${E(t)}${s})?${b}${S}${a}${o}${S}`;case"**/.*":return`(?:${y}${E(t)}${s})?${a}${o}${S}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let C=v(x[1]);return C?C+a+x[2]:void 0}}},m=_t.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${s}?`),w};Md.exports=Pa});var $d=ve((dj,jd)=>{"use strict";var Ix=require("path"),Mx=Ld(),Ba=Nd(),La=ni(),Nx=ri(),jx=e=>e&&typeof e=="object"&&!Array.isArray(e),Ge=(e,r,t=!1)=>{if(Array.isArray(e)){let l=e.map(u=>Ge(u,r,t));return u=>{for(let d of l){let p=d(u);if(p)return p}return!1}}let n=jx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},c=La.isWindows(r),a=n?Ge.compileRe(e,r):Ge.makeRe(e,r,!1,!0),s=a.state;delete a.state;let o=()=>!1;if(i.ignore){let l={...r,ignore:null,onMatch:null,onResult:null};o=Ge(i.ignore,l,t)}let f=(l,h=!1)=>{let{isMatch:u,match:d,output:p}=Ge.test(l,a,r,{glob:e,posix:c}),y={glob:e,state:s,regex:a,posix:c,input:l,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):o(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=s),f};Ge.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=t||{},a=c.format||(i?La.toPosixSlashes:null),s=e===n,o=s&&a?a(e):e;return s===!1&&(o=a?a(e):e,s=o===n),(s===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?s=Ge.matchBase(e,r,t,i):s=r.exec(o)),{isMatch:!!s,match:s,output:o}};Ge.matchBase=(e,r,t,n=La.isWindows(t))=>(r instanceof RegExp?r:Ge.makeRe(r,t)).test(Ix.basename(e));Ge.isMatch=(e,r,t)=>Ge(r,t)(e);Ge.parse=(e,r)=>Array.isArray(e)?e.map(t=>Ge.parse(t,r)):Ba(e,{...r,fastpaths:!1});Ge.scan=(e,r)=>Mx(e,r);Ge.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},c=i.contains?"":"^",a=i.contains?"":"$",s=`${c}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let o=Ge.toRegex(s,r);return n===!0&&(o.state=e),o};Ge.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Ba.fastpaths(e,r)),i.output||(i=Ba(e,r)),Ge.compileRe(i,r,t,n)};Ge.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};Ge.constants=Nx;jd.exports=Ge});var qd=ve((mj,Hd)=>{"use strict";Hd.exports=$d()});var Vd=ve((yj,Wd)=>{"use strict";var Ud=require("util"),zd=Ed(),It=qd(),Ia=ni(),Gd=e=>e===""||e==="./",qe=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,c=new Set,a=0,s=l=>{c.add(l.output),t&&t.onResult&&t.onResult(l)};for(let l=0;l<r.length;l++){let h=It(String(r[l]),{...t,onResult:s},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...c]:[...i]).filter(l=>!n.has(l));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(l=>l.replace(/\\/g,"")):r}return f};qe.match=qe;qe.matcher=(e,r)=>It(e,r);qe.isMatch=(e,r,t)=>It(r,t)(e);qe.any=qe.isMatch;qe.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],c=s=>{t.onResult&&t.onResult(s),i.push(s.output)},a=new Set(qe(e,r,{...t,onResult:c}));for(let s of i)a.has(s)||n.add(s);return[...n]};qe.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ud.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>qe.contains(e,n,t));if(typeof r=="string"){if(Gd(e)||Gd(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return qe.isMatch(e,r,{...t,contains:!0})};qe.matchKeys=(e,r,t)=>{if(!Ia.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=qe(Object.keys(e),r,t),i={};for(let c of n)i[c]=e[c];return i};qe.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=It(String(i),t);if(n.some(a=>c(a)))return!0}return!1};qe.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=It(String(i),t);if(!n.every(a=>c(a)))return!1}return!0};qe.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ud.inspect(e)}"`);return[].concat(r).every(n=>It(n,t)(e))};qe.capture=(e,r,t)=>{let n=Ia.isWindows(t),c=It.makeRe(String(e),{...t,capture:!0}).exec(n?Ia.toPosixSlashes(r):r);if(c)return c.slice(1).map(a=>a===void 0?"":a)};qe.makeRe=(...e)=>It.makeRe(...e);qe.scan=(...e)=>It.scan(...e);qe.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of zd(String(n),r))t.push(It.parse(i,r));return t};qe.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:zd(e,r)};qe.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return qe.braces(e,{...r,expand:!0})};Wd.exports=qe});var tm=ve(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.matchAny=Te.convertPatternsToRe=Te.makeRe=Te.getPatternParts=Te.expandBraceExpansion=Te.expandPatternsWithBraceExpansion=Te.isAffectDepthOfReadingPattern=Te.endsWithSlashGlobStar=Te.hasGlobStar=Te.getBaseDirectory=Te.isPatternRelatedToParentDirectory=Te.getPatternsOutsideCurrentDirectory=Te.getPatternsInsideCurrentDirectory=Te.getPositivePatterns=Te.getNegativePatterns=Te.isPositivePattern=Te.isNegativePattern=Te.convertToNegativePattern=Te.convertToPositivePattern=Te.isDynamicPattern=Te.isStaticPattern=void 0;var $x=require("path"),Hx=jp(),Ma=Vd(),Kd="**",qx="\\",Gx=/[*?]|^!/,Ux=/\[[^[]*]/,zx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Wx=/[!*+?@]\([^(]*\)/,Vx=/,|\.\./;function Yd(e,r={}){return!Xd(e,r)}Te.isStaticPattern=Yd;function Xd(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(qx)||Gx.test(e)||Ux.test(e)||zx.test(e)||r.extglob!==!1&&Wx.test(e)||r.braceExpansion!==!1&&Kx(e))}Te.isDynamicPattern=Xd;function Kx(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return Vx.test(n)}function Yx(e){return ps(e)?e.slice(1):e}Te.convertToPositivePattern=Yx;function Xx(e){return"!"+e}Te.convertToNegativePattern=Xx;function ps(e){return e.startsWith("!")&&e[1]!=="("}Te.isNegativePattern=ps;function Zd(e){return!ps(e)}Te.isPositivePattern=Zd;function Zx(e){return e.filter(ps)}Te.getNegativePatterns=Zx;function Qx(e){return e.filter(Zd)}Te.getPositivePatterns=Qx;function Jx(e){return e.filter(r=>!Na(r))}Te.getPatternsInsideCurrentDirectory=Jx;function ek(e){return e.filter(Na)}Te.getPatternsOutsideCurrentDirectory=ek;function Na(e){return e.startsWith("..")||e.startsWith("./..")}Te.isPatternRelatedToParentDirectory=Na;function tk(e){return Hx(e,{flipBackslashes:!1})}Te.getBaseDirectory=tk;function rk(e){return e.includes(Kd)}Te.hasGlobStar=rk;function Qd(e){return e.endsWith("/"+Kd)}Te.endsWithSlashGlobStar=Qd;function nk(e){let r=$x.basename(e);return Qd(e)||Yd(r)}Te.isAffectDepthOfReadingPattern=nk;function ik(e){return e.reduce((r,t)=>r.concat(Jd(t)),[])}Te.expandPatternsWithBraceExpansion=ik;function Jd(e){return Ma.braces(e,{expand:!0,nodupes:!0})}Te.expandBraceExpansion=Jd;function sk(e,r){let{parts:t}=Ma.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Te.getPatternParts=sk;function em(e,r){return Ma.makeRe(e,r)}Te.makeRe=em;function ok(e,r){return e.map(t=>em(t,r))}Te.convertPatternsToRe=ok;function ak(e,r){return r.some(t=>t.test(e))}Te.matchAny=ak});var sm=ve((bj,im)=>{"use strict";var uk=require("stream"),rm=uk.PassThrough,lk=Array.prototype.slice;im.exports=ck;function ck(){let e=[],r=lk.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,c=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=rm(n);function s(){for(let l=0,h=arguments.length;l<h;l++)e.push(nm(arguments[l],n));return o(),this}function o(){if(t)return;t=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function u(){--h>0||(t=!1,o())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),c&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),c&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=s,a.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),r.length&&s.apply(null,r),a}function nm(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=nm(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(rm(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var am=ve(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.merge=void 0;var hk=sm();function fk(e){let r=hk(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>om(e)),r.once("end",()=>om(e)),r}ds.merge=fk;function om(e){e.forEach(r=>r.emit("close"))}});var um=ve(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.isEmpty=pn.isString=void 0;function pk(e){return typeof e=="string"}pn.isString=pk;function dk(e){return e===""}pn.isEmpty=dk});var Xt=ve(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.string=tt.stream=tt.pattern=tt.path=tt.fs=tt.errno=tt.array=void 0;var mk=Rp();tt.array=mk;var yk=Op();tt.errno=yk;var gk=Tp();tt.fs=gk;var bk=Fp();tt.path=bk;var vk=tm();tt.pattern=vk;var _k=am();tt.stream=_k;var wk=um();tt.string=wk});var hm=ve(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.convertPatternGroupToTask=rt.convertPatternGroupsToTasks=rt.groupPatternsByBaseDirectory=rt.getNegativePatternsAsPositive=rt.getPositivePatterns=rt.convertPatternsToTasks=rt.generate=void 0;var Zt=Xt();function Ek(e,r){let t=lm(e),n=cm(e,r.ignore),i=t.filter(o=>Zt.pattern.isStaticPattern(o,r)),c=t.filter(o=>Zt.pattern.isDynamicPattern(o,r)),a=ja(i,n,!1),s=ja(c,n,!0);return a.concat(s)}rt.generate=Ek;function ja(e,r,t){let n=[],i=Zt.pattern.getPatternsOutsideCurrentDirectory(e),c=Zt.pattern.getPatternsInsideCurrentDirectory(e),a=$a(i),s=$a(c);return n.push(...Ha(a,r,t)),"."in s?n.push(qa(".",c,r,t)):n.push(...Ha(s,r,t)),n}rt.convertPatternsToTasks=ja;function lm(e){return Zt.pattern.getPositivePatterns(e)}rt.getPositivePatterns=lm;function cm(e,r){return Zt.pattern.getNegativePatterns(e).concat(r).map(Zt.pattern.convertToPositivePattern)}rt.getNegativePatternsAsPositive=cm;function $a(e){let r={};return e.reduce((t,n)=>{let i=Zt.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}rt.groupPatternsByBaseDirectory=$a;function Ha(e,r,t){return Object.keys(e).map(n=>qa(n,e[n],r,t))}rt.convertPatternGroupsToTasks=Ha;function qa(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(Zt.pattern.convertToNegativePattern))}}rt.convertPatternGroupToTask=qa});var pm=ve(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.removeDuplicateSlashes=dn.transform=void 0;var Sk=/(?!^)\/{2,}/g;function Ak(e){return e.map(r=>fm(r))}dn.transform=Ak;function fm(e){return e.replace(Sk,"/")}dn.removeDuplicateSlashes=fm});var mm=ve(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.read=void 0;function xk(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){dm(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){Ga(t,i);return}r.fs.stat(e,(c,a)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){dm(t,c);return}Ga(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Ga(t,a)})})}ms.read=xk;function dm(e,r){e(r)}function Ga(e,r){e(null,r)}});var ym=ve(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.read=void 0;function kk(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}ys.read=kk});var gm=ve(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.createFileSystemAdapter=lr.FILE_SYSTEM_ADAPTER=void 0;var gs=require("fs");lr.FILE_SYSTEM_ADAPTER={lstat:gs.lstat,stat:gs.stat,lstatSync:gs.lstatSync,statSync:gs.statSync};function Ck(e){return e===void 0?lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},lr.FILE_SYSTEM_ADAPTER),e)}lr.createFileSystemAdapter=Ck});var bm=ve(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var Dk=gm(),Ua=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Dk.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};za.default=Ua});var Br=ve(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.statSync=cr.stat=cr.Settings=void 0;var vm=mm(),Rk=ym(),Wa=bm();cr.Settings=Wa.default;function Ok(e,r,t){if(typeof r=="function"){vm.read(e,Va(),r);return}vm.read(e,Va(r),t)}cr.stat=Ok;function Tk(e,r){let t=Va(r);return Rk.read(e,t)}cr.statSync=Tk;function Va(e={}){return e instanceof Wa.default?e:new Wa.default(e)}});var Em=ve((Rj,wm)=>{var _m;wm.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(_m||(_m=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var Am=ve((Oj,Sm)=>{Sm.exports=Pk;var Fk=Em();function Pk(e,r){let t,n,i,c=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(o){function f(){r&&r(o,t),r=null}c?Fk(f):f()}function s(o,f,l){t[o]=l,(--n===0||f)&&a(f)}n?i?i.forEach(function(o){e[o](function(f,l){s(o,f,l)})}):e.forEach(function(o,f){o(function(l,h){s(f,l,h)})}):a(null),c=!1}});var Ka=ve(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bs=process.versions.node.split(".");if(bs[0]===void 0||bs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var xm=Number.parseInt(bs[0],10),Bk=Number.parseInt(bs[1],10),km=10,Lk=10,Ik=xm>km,Mk=xm===km&&Bk>=Lk;vs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ik||Mk});var Cm=ve(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.createDirentFromStats=void 0;var Ya=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function Nk(e,r){return new Ya(e,r)}_s.createDirentFromStats=Nk});var Xa=ve(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.fs=void 0;var jk=Cm();ws.fs=jk});var Za=ve(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.joinPathSegments=void 0;function $k(e,r,t){return e.endsWith(t)?e+r:e+t+r}Es.joinPathSegments=$k});var Pm=ve(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.readdir=hr.readdirWithFileTypes=hr.read=void 0;var Hk=Br(),Dm=Am(),qk=Ka(),Rm=Xa(),Om=Za();function Gk(e,r,t){if(!r.stats&&qk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Tm(e,r,t);return}Fm(e,r,t)}hr.read=Gk;function Tm(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Ss(t,n);return}let c=i.map(s=>({dirent:s,name:s.name,path:Om.joinPathSegments(e,s.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){Qa(t,c);return}let a=c.map(s=>Uk(s,r));Dm(a,(s,o)=>{if(s!==null){Ss(t,s);return}Qa(t,o)})})}hr.readdirWithFileTypes=Tm;function Uk(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=Rm.fs.createDirentFromStats(e.name,i),t(null,e)})}}function Fm(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){Ss(t,n);return}let c=i.map(a=>{let s=Om.joinPathSegments(e,a,r.pathSegmentSeparator);return o=>{Hk.stat(s,r.fsStatSettings,(f,l)=>{if(f!==null){o(f);return}let h={name:a,path:s,dirent:Rm.fs.createDirentFromStats(a,l)};r.stats&&(h.stats=l),o(null,h)})}});Dm(c,(a,s)=>{if(a!==null){Ss(t,a);return}Qa(t,s)})})}hr.readdir=Fm;function Ss(e,r){e(r)}function Qa(e,r){e(null,r)}});var Nm=ve(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.readdir=fr.readdirWithFileTypes=fr.read=void 0;var zk=Br(),Wk=Ka(),Bm=Xa(),Lm=Za();function Vk(e,r){return!r.stats&&Wk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Im(e,r):Mm(e,r)}fr.read=Vk;function Im(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Lm.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(i.path);i.dirent=Bm.fs.createDirentFromStats(i.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return i})}fr.readdirWithFileTypes=Im;function Mm(e,r){return r.fs.readdirSync(e).map(n=>{let i=Lm.joinPathSegments(e,n,r.pathSegmentSeparator),c=zk.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:Bm.fs.createDirentFromStats(n,c)};return r.stats&&(a.stats=c),a})}fr.readdir=Mm});var jm=ve(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.createFileSystemAdapter=pr.FILE_SYSTEM_ADAPTER=void 0;var mn=require("fs");pr.FILE_SYSTEM_ADAPTER={lstat:mn.lstat,stat:mn.stat,lstatSync:mn.lstatSync,statSync:mn.statSync,readdir:mn.readdir,readdirSync:mn.readdirSync};function Kk(e){return e===void 0?pr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},pr.FILE_SYSTEM_ADAPTER),e)}pr.createFileSystemAdapter=Kk});var $m=ve(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Yk=require("path"),Xk=Br(),Zk=jm(),Ja=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Zk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Yk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Xk.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};eu.default=Ja});var As=ve(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.Settings=dr.scandirSync=dr.scandir=void 0;var Hm=Pm(),Qk=Nm(),tu=$m();dr.Settings=tu.default;function Jk(e,r,t){if(typeof r=="function"){Hm.read(e,ru(),r);return}Hm.read(e,ru(r),t)}dr.scandir=Jk;function eC(e,r){let t=ru(r);return Qk.read(e,t)}dr.scandirSync=eC;function ru(e={}){return e instanceof tu.default?e:new tu.default(e)}});var Gm=ve(($j,qm)=>{"use strict";function tC(e){var r=new e,t=r;function n(){var c=r;return c.next?r=c.next:(r=new e,t=r),c.next=null,c}function i(c){t.next=c,t=c}return{get:n,release:i}}qm.exports=tC});var zm=ve((Hj,nu)=>{"use strict";var rC=Gm();function Um(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=rC(nC),i=null,c=null,a=0,s=null,o={push:y,drain:kt,saturated:kt,pause:l,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:kt,kill:g,killAndDrain:S,error:E};return o;function f(){return a}function l(){o.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(o.paused){o.paused=!1;for(var v=0;v<o.concurrency;v++)a++,_()}}function p(){return a===0&&o.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||kt,w.errorHandler=s,a===o.concurrency||o.paused?c?(c.next=w,c=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||kt,a===o.concurrency||o.paused?i?(w.next=i,i=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?o.paused?a--:(c===i&&(c=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),c===null&&o.empty()):--a===0&&o.drain()}function g(){i=null,c=null,o.drain=kt}function S(){i=null,c=null,o.drain(),o.drain=kt}function E(v){s=v}}function kt(){}function nC(){this.value=null,this.callback=kt,this.next=null,this.release=kt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,c=e.errorHandler,a=e.value;e.value=null,e.callback=kt,e.errorHandler&&c(t,a),i.call(e.context,t,n),e.release(e)}}function iC(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(l,h){r.call(this,l).then(function(u){h(null,u)},h)}var i=Um(e,n,t),c=i.push,a=i.unshift;return i.push=s,i.unshift=o,i.drained=f,i;function s(l){var h=new Promise(function(u,d){c(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(kt),h}function o(l){var h=new Promise(function(u,d){a(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(kt),h}function f(){var l=i.drain,h=new Promise(function(u){i.drain=function(){l(),u()}});return h}}nu.exports=Um;nu.exports.promise=iC});var xs=ve(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.joinPathSegments=Mt.replacePathSegmentSeparator=Mt.isAppliedFilter=Mt.isFatalError=void 0;function sC(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Mt.isFatalError=sC;function oC(e,r){return e===null||e(r)}Mt.isAppliedFilter=oC;function aC(e,r){return e.split(/[/\\]/).join(r)}Mt.replacePathSegmentSeparator=aC;function uC(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Mt.joinPathSegments=uC});var ou=ve(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var lC=xs(),iu=class{constructor(r,t){this._root=r,this._settings=t,this._root=lC.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};su.default=iu});var lu=ve(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var cC=require("events"),hC=As(),fC=zm(),ks=xs(),pC=ou(),au=class extends pC.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=hC.scandir,this._emitter=new cC.EventEmitter,this._queue=fC(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let c of i)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!ks.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=ks.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),ks.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&ks.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};uu.default=au});var Wm=ve(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var dC=lu(),cu=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new dC.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{mC(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{yC(r,this._storage)}),this._reader.read()}};hu.default=cu;function mC(e,r){e(r)}function yC(e,r){e(null,r)}});var Vm=ve(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var gC=require("stream"),bC=lu(),fu=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new bC.default(this._root,this._settings),this._stream=new gC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};pu.default=fu});var Km=ve(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var vC=As(),Cs=xs(),_C=ou(),du=class extends _C.default{constructor(){super(...arguments),this._scandir=vC.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(Cs.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=Cs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),Cs.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&Cs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};mu.default=du});var Ym=ve(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var wC=Km(),yu=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new wC.default(this._root,this._settings)}read(){return this._reader.read()}};gu.default=yu});var Xm=ve(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var EC=require("path"),SC=As(),bu=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,EC.sep),this.fsScandirSettings=new SC.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};vu.default=bu});var Rs=ve(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.Settings=Nt.walkStream=Nt.walkSync=Nt.walk=void 0;var Zm=Wm(),AC=Vm(),xC=Ym(),_u=Xm();Nt.Settings=_u.default;function kC(e,r,t){if(typeof r=="function"){new Zm.default(e,Ds()).read(r);return}new Zm.default(e,Ds(r)).read(t)}Nt.walk=kC;function CC(e,r){let t=Ds(r);return new xC.default(e,t).read()}Nt.walkSync=CC;function DC(e,r){let t=Ds(r);return new AC.default(e,t).read()}Nt.walkStream=DC;function Ds(e={}){return e instanceof _u.default?e:new _u.default(e)}});var Os=ve(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var RC=require("path"),OC=Br(),Qm=Xt(),wu=class{constructor(r){this._settings=r,this._fsStatSettings=new OC.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return RC.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:Qm.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!Qm.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Eu.default=wu});var xu=ve(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var TC=require("stream"),FC=Br(),PC=Rs(),BC=Os(),Su=class extends BC.default{constructor(){super(...arguments),this._walkStream=PC.walkStream,this._stat=FC.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new TC.PassThrough({objectMode:!0});i._write=(c,a,s)=>this._getEntry(n[c],r[c],t).then(o=>{o!==null&&t.entryFilter(o)&&i.push(o),c===n.length-1&&i.end(),s()}).catch(s);for(let c=0;c<n.length;c++)i.write(c);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,c)=>i===null?t(c):n(i))})}};Au.default=Su});var Jm=ve(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var LC=Rs(),IC=Os(),MC=xu(),ku=class extends IC.default{constructor(){super(...arguments),this._walkAsync=LC.walk,this._readerStream=new MC.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(c,a)=>{c===null?n(a):i(c)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((c,a)=>{i.once("error",a),i.on("data",s=>n.push(s)),i.once("end",()=>c(n))})}};Cu.default=ku});var e0=ve(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var yn=Xt(),Du=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=yn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return yn.pattern.getPatternParts(r,this._micromatchOptions).map(n=>yn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:yn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return yn.array.splitWhen(r,t=>t.dynamic&&yn.pattern.hasGlobStar(t.pattern))}};Ru.default=Du});var t0=ve(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var NC=e0(),Ou=class extends NC.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(c=>!c.complete||c.segments.length>n);for(let c of i){let a=c.sections[0];if(!c.complete&&n>a.length||t.every((o,f)=>{let l=c.segments[f];return!!(l.dynamic&&l.patternRe.test(o)||!l.dynamic&&l.pattern===o)}))return!0}return!1}};Tu.default=Ou});var r0=ve(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Ts=Xt(),jC=t0(),Fu=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),c=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,c)}_getMatcher(r){return new jC.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(Ts.pattern.isAffectDepthOfReadingPattern);return Ts.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let c=Ts.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(c,n)?!1:this._isSkippedByNegativePatterns(c,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!Ts.pattern.matchAny(r,t)}};Pu.default=Fu});var n0=ve(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Lr=Xt(),Bu=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=Lr.pattern.convertPatternsToRe(r,this._micromatchOptions),i=Lr.pattern.convertPatternsToRe(t,this._micromatchOptions);return c=>this._filter(c,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,c=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,c)&&!this._isMatchToPatterns(r.path,n,c);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=Lr.path.makeAbsolute(this._settings.cwd,r);return Lr.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=Lr.path.removeLeadingDotSegment(r),c=Lr.pattern.matchAny(i,t);return!c&&n?Lr.pattern.matchAny(i+"/",t):c}};Lu.default=Bu});var i0=ve(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var $C=Xt(),Iu=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return $C.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};Mu.default=Iu});var o0=ve(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var s0=Xt(),Nu=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=s0.path.makeAbsolute(this._settings.cwd,t),t=s0.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};ju.default=Nu});var Fs=ve(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var HC=require("path"),qC=r0(),GC=n0(),UC=i0(),zC=o0(),$u=class{constructor(r){this._settings=r,this.errorFilter=new UC.default(this._settings),this.entryFilter=new GC.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new qC.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zC.default(this._settings)}_getRootDirectory(r){return HC.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Hu.default=$u});var a0=ve(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var WC=Jm(),VC=Fs(),qu=class extends VC.default{constructor(){super(...arguments),this._reader=new WC.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(c=>n.transform(c))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Gu.default=qu});var u0=ve(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var KC=require("stream"),YC=xu(),XC=Fs(),Uu=class extends XC.default{constructor(){super(...arguments),this._reader=new YC.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),c=new KC.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>c.emit("error",a)).on("data",a=>c.emit("data",n.transform(a))).once("end",()=>c.emit("end")),c.once("close",()=>i.destroy()),c}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};zu.default=Uu});var l0=ve(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var ZC=Br(),QC=Rs(),JC=Os(),Wu=class extends JC.default{constructor(){super(...arguments),this._walkSync=QC.walkSync,this._statSync=ZC.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let c=this._getFullEntryPath(i),a=this._getEntry(c,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Vu.default=Wu});var c0=ve(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var eD=l0(),tD=Fs(),Ku=class extends tD.default{constructor(){super(...arguments),this._reader=new eD.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Yu.default=Ku});var h0=ve(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gn=require("fs"),rD=require("os"),nD=Math.max(rD.cpus().length,1);bn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gn.lstat,lstatSync:gn.lstatSync,stat:gn.stat,statSync:gn.statSync,readdir:gn.readdir,readdirSync:gn.readdirSync};var Xu=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,nD),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},bn.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};bn.default=Xu});var m0=ve((f$,d0)=>{"use strict";var f0=hm(),p0=pm(),iD=a0(),sD=u0(),oD=c0(),Zu=h0(),Ir=Xt();async function Qu(e,r){vn(e);let t=Ju(e,iD.default,r),n=await Promise.all(t);return Ir.array.flatten(n)}(function(e){function r(a,s){vn(a);let o=Ju(a,oD.default,s);return Ir.array.flatten(o)}e.sync=r;function t(a,s){vn(a);let o=Ju(a,sD.default,s);return Ir.stream.merge(o)}e.stream=t;function n(a,s){vn(a);let o=p0.transform([].concat(a)),f=new Zu.default(s);return f0.generate(o,f)}e.generateTasks=n;function i(a,s){vn(a);let o=new Zu.default(s);return Ir.pattern.isDynamicPattern(a,o)}e.isDynamicPattern=i;function c(a){return vn(a),Ir.path.escape(a)}e.escapePath=c})(Qu||(Qu={}));function Ju(e,r,t){let n=p0.transform([].concat(e)),i=new Zu.default(t),c=f0.generate(n,i),a=new r(i);return c.map(a.read,a)}function vn(e){if(![].concat(e).every(n=>Ir.string.isString(n)&&!Ir.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}d0.exports=Qu});var My=Ie(require("chalk"));var zy=Object.create,go=Object.defineProperty,Wy=Object.getOwnPropertyDescriptor,Vy=Object.getOwnPropertyNames,Ky=Object.getPrototypeOf,Yy=Object.prototype.hasOwnProperty,le=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Xy=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ic=(e,r)=>{for(var t in r)go(e,t,{get:r[t],enumerable:!0})},Zy=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Vy(r))!Yy.call(e,i)&&i!==t&&go(e,i,{get:()=>r[i],enumerable:!(n=Wy(r,i))||n.enumerable});return e},$e=(e,r,t)=>(t=e!=null?zy(Ky(e)):{},Zy(r||!e||!e.__esModule?go(t,"default",{value:e,enumerable:!0}):t,e)),Y=Xy(()=>{});var Qy=te((e,r)=>{"use strict";Y();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),Ci=te((e,r)=>{"use strict";Y();var t=Qy(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),Jy=te((e,r)=>{Y(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Di=te((e,r)=>{Y();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=le("assert"),c=Jy(),a=/^win/i.test(t.platform),s=le("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_});var ac=Ie(require("os"),1),eg=te((e,r)=>{Y(),r.exports=c,c.sync=a;var t=le("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),tg=te((e,r)=>{Y(),r.exports=n,n.sync=i;var t=le("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),rg=te((e,r)=>{Y();var t=le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=eg():n=tg(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),ng=te((e,r)=>{Y();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=le("path"),i=t?";":":",c=rg(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,C)=>{if(!x&&C)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),sc=te((e,r)=>{"use strict";Y();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),ig=te((e,r)=>{"use strict";Y();var t=le("path"),n=ng(),i=sc();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),sg=te((e,r)=>{"use strict";Y();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),og=te((e,r)=>{"use strict";Y(),r.exports=/^#!(.*)/}),ag=te((e,r)=>{"use strict";Y();var t=og();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),ug=te((e,r)=>{"use strict";Y();var t=le("fs"),n=ag();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),lg=te((e,r)=>{"use strict";Y();var t=le("path"),n=ig(),i=sg(),c=ug(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),cg=te((e,r)=>{"use strict";Y();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),hg=te((e,r)=>{"use strict";Y();var t=le("child_process"),n=lg(),i=cg();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),fg=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n=typeof t=="string"?`
|
8
|
-
`:`
|
9
|
-
|
10
|
-
|
11
|
-
`);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),bg=te((e,r)=>{"use strict";Y();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),vg=te((e,r)=>{"use strict";Y();var t=le("os"),n=Di(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),_g=te((e,r)=>{"use strict";Y();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),wg=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),Eg=te((e,r)=>{"use strict";Y();var{constants:t}=le("buffer"),n=le("stream"),{promisify:i}=le("util"),c=wg(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),Sg=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),Ag=te((e,r)=>{"use strict";Y();var t=_g(),n=Eg(),i=Sg(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),xg=te((e,r)=>{"use strict";Y();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),kg=te((e,r)=>{"use strict";Y();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),Cg=te((e,r)=>{"use strict";Y();var t=le("path"),n=le("child_process"),i=hg(),c=fg(),a=pg(),s=Ci(),o=gg(),f=bg(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=vg(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=Ag(),{mergePromise:S,getSpawnedPromise:E}=xg(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=kg(),A=1e3*1e3*100,x=({env:D,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...D}:D;return P?a.env({env:H,cwd:I,execPath:B}):H},C=(D,O,P={})=>{let I=i._parse(D,O,P);return D=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(D,".exe")==="cmd"&&O.unshift("/q"),{file:D,args:O,options:P,parsed:I}},F=(D,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":D.stripFinalNewline?c(O):O,T=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let J=E(G),L=u(G,I.options,J),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:W},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let z=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:W,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return z;throw z}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let J=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:J,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:J,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(D,O)=>{let[P,...I]=m(D);return T(P,I,O)},r.exports.commandSync=(D,O)=>{let[P,...I]=m(D);return T.sync(P,I,O)},r.exports.node=(D,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(J=>!J.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,D,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});Y();var Dg=$e(Cg());async function nr(e,r=[],t){let n={cwd:ac.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...t};try{let{stdout:i}=await(0,Dg.default)(e,r,n);return i.trim()}catch{return}}async function bo(){let[e,r,t,n]=await Promise.all([nr("yarnpkg",["--version"]),nr("npm",["--version"]),nr("pnpm",["--version"]),nr("bun",["--version"])]);return{yarn:e,pnpm:t,npm:r,bun:n}}async function vo(){let[e,r,t,n]=await Promise.all([nr("yarnpkg",["global","bin"]),nr("npm",["config","get","prefix"]),nr("pnpm",["bin","--global"]),nr("bun",["pm","--g","bin"])]);return{yarn:e,pnpm:t,npm:r,bun:n}}Y();var Rg=te((e,r)=>{"use strict";Y();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),Og=te((e,r)=>{"use strict";Y(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),uc=te((e,r)=>{Y();var t=Og(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),Tg=te((e,r)=>{Y();var t=uc();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),Fg=te((e,r)=>{Y();var t=uc(),n=Tg(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),Pg=te((e,r)=>{"use strict";Y();var t=Fg(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),Bg=te((e,r)=>{"use strict";Y(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),Lg=te((e,r)=>{"use strict";Y();var t=le("os"),n=Bg(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),Ig=te((e,r)=>{"use strict";Y();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
12
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),kr=te((e,r)=>{"use strict";Y();var t=Rg(),n=Pg(),i=Lg().stdout,c=Ig(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var Mg=te((e,r)=>{Y();var t=le("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(F,T){F&&F.code==="ENOENT"?g(E,v,x):m(C)})},A),A<100&&(A+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var C;if(x&&typeof x=="function"){var F=0;C=function(T,D,O){if(T&&T.code==="EAGAIN"&&F<10)return F++,g.call(o,E,v,m,w,A,C);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(C){m&&m(x||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Ng=te((e,r)=>{Y();var t=le("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),jg=te((e,r)=>{"use strict";Y(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),Me=te((e,r)=>{Y();var t=le("fs"),n=Mg(),i=Ng(),c=jg(),a=le("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
13
|
-
GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),le("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=R,g.createWriteStream=K;var S=g.readFile;g.readFile=E;function E(N,W,ee){return typeof W=="function"&&(ee=W,W=null),ae(N,W,ee);function ae(oe,de,pe,j){return S(oe,de,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([ae,[oe,de,pe],z,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return v(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return w(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=C);function C(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=0),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return x(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var F=g.readdir;g.readdir=D;var T=/^v[0-5]\./;function D(N,W,ee){typeof W=="function"&&(ee=W,W=null);var ae=T.test(process.version)?function(de,pe,j,z){return F(de,oe(de,pe,j,z))}:function(de,pe,j,z){return F(de,pe,oe(de,pe,j,z))};return ae(N,W,ee);function oe(de,pe,j,z){return function(k,U){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([ae,[de,pe,j],k,z||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof j=="function"&&j.call(this,k,U))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);G=O.ReadStream,L=O.WriteStream}var P=g.ReadStream;P&&(G.prototype=Object.create(P.prototype),G.prototype.open=J);var I=g.WriteStream;I&&(L.prototype=Object.create(I.prototype),L.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return L},set:function(N){L=N},enumerable:!0,configurable:!0});var B=G;Object.defineProperty(g,"FileReadStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var H=L;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function G(N,W){return this instanceof G?(P.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function J(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee),N.read())})}function L(N,W){return this instanceof L?(I.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function M(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee))})}function R(N,W){return new g.ReadStream(N,W)}function K(N,W){return new g.WriteStream(N,W)}var q=g.open;g.open=Z;function Z(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return q(de,pe,j,function(U,X){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,C=Math.max(w-m,1),F=Math.min(C*1.2,100);x>=F?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var gt=te(e=>{"use strict";Y(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),Wr=te(e=>{"use strict";Y();var r=gt().fromCallback,t=Me(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),$g=te((e,r)=>{"use strict";Y();var t=le("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),Hg=te((e,r)=>{"use strict";Y();var t=Wr(),{checkPath:n}=$g(),i=c=>typeof c=="number"?c:{...{mode:511},...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),Tt=te((e,r)=>{"use strict";Y();var t=gt().fromPromise,{makeDir:n,makeDirSync:i}=Hg(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Cr=te((e,r)=>{"use strict";Y();var t=gt().fromPromise,n=Wr();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),lc=te((e,r)=>{"use strict";Y();var t=Me();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),Vr=te((e,r)=>{"use strict";Y();var t=Wr(),n=le("path"),i=le("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),qg=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=Tt().mkdirs,c=Cr().pathExists,a=lc().utimesMillis,s=Vr();function o(T,D,O,P){typeof O=="function"&&!P?(P=O,O={}):typeof O=="function"&&(O={filter:O}),P=P||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
`,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),Zg=te((e,r)=>{Y();var t;try{t=Me()}catch{t=le("fs")}var n=gt(),{stringify:i,stripBom:c}=wo();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),Qg=te((e,r)=>{"use strict";Y();var t=Zg();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),Eo=te((e,r)=>{"use strict";Y();var t=gt().fromCallback,n=Me(),i=le("path"),c=Tt(),a=Cr().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),Jg=te((e,r)=>{"use strict";Y();var{stringify:t}=wo(),{outputFile:n}=Eo();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),e8=te((e,r)=>{"use strict";Y();var{stringify:t}=wo(),{outputFileSync:n}=Eo();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),t8=te((e,r)=>{"use strict";Y();var t=gt().fromPromise,n=Qg();n.outputJson=t(Jg()),n.outputJsonSync=e8(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),r8=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=_o().copy,c=Ri().remove,a=Tt().mkdirp,s=Cr().pathExists,o=Vr();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),n8=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=_o().copySync,c=Ri().removeSync,a=Tt().mkdirpSync,s=Vr();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),i8=te((e,r)=>{"use strict";Y();var t=gt().fromCallback;r.exports={move:t(r8()),moveSync:n8()}}),ir=te((e,r)=>{"use strict";Y(),r.exports={...Wr(),..._o(),...Ug(),...Xg(),...t8(),...Tt(),...i8(),...Eo(),...Cr(),...Ri()}});Y();var KI=$e(ir());Y();var e9=$e(ir()),t9=$e(kr());Y();var Ic=require("stream"),Mc=require("util");var Nn=te((e,r)=>{"use strict";Y();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),So=te((e,r)=>{"use strict";Y();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),C=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),D=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",J=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class fc extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[C]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[C])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let W=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):J(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(q){if(this[C])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[C]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[C]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[C])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[C]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==C&&this[C])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[C])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let W=super.emit(q,Z,...N);return this[s](),W}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[D]()):this[D]())}[D](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(C,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,W=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",ee),Z({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(C,oe),this.once("error",W),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[C]?(q?this.emit("error",q):this.emit(C),this):(this[C]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(C),this)}static isStream(q){return!!q&&(q instanceof fc||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),s8=te((e,r)=>{Y();var t=le("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),pc=te((e,r)=>{"use strict";Y();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),C=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),D=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),J=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends J{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class dc extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?D:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new J(this,R,K)),this[T]?D(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?D(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?D(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[C]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[C](){this[o]||(this[o]=!0,this.readable=!1,this[T]?D(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",W),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",W),this.pause(),K({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",W),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof dc||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),mc=te(e=>{"use strict";Y();var r=le("assert"),t=le("buffer").Buffer,n=le("zlib"),i=e.constants=s8(),c=pc(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let J=this[d]._handle,L=J.close;J.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=J,J.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(J,L)=>{this.flush(J),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},C=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},D=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=C,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=D,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),jn=te((e,r)=>{Y();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),Ao=te((e,r)=>{"use strict";Y();var t=So(),n=jn(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),yc=te(e=>{"use strict";Y(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),o8=te((e,r)=>{"use strict";Y();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),$n=te((e,r)=>{"use strict";Y();var t=yc(),n=le("path").posix,i=o8(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,C){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,C):w&&this.set(w)}decode(w,A,x,C){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](C,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,C=o(this.path||"",x),F=C[0],T=C[1];this.needPax=C[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let D=8*32;for(let O=A;O<A+148;O++)D+=w[O];for(let O=A+156;O<A+512;O++)D+=w[O];return this.cksum=D,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,C="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,C,!1];else{C=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(C)<=A?F=[x,C,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(C)<=A?F=[x.slice(0,100-1),C,!0]:(x=n.join(n.basename(C),x),C=n.dirname(C));while(C!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,C)=>C===null?!1:C>y[x]||C<0?(i.encode(C,w.slice(A,A+x)),!0):(_(w,A,x,C),!1),_=(w,A,x,C)=>w.write(g(C,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,C)=>C===null?!1:b(w,A,x,C.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,C)=>C===null?!1:(w.write(C+v,A,x,"utf8"),C.length!==Buffer.byteLength(C)||C.length>x);r.exports=s}),xo=te((e,r)=>{"use strict";Y();var t=$n(),n=le("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
|
19
|
-
|
20
|
-
`).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),Hn=te((e,r)=>{Y(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),ko=te((e,r)=>{"use strict";Y(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),gc=te((e,r)=>{"use strict";Y();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),bc=te((e,r)=>{Y();var{isAbsolute:t,parse:n}=le("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),a8=te((e,r)=>{"use strict";Y(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),vc=te((e,r)=>{"use strict";Y();var t=So(),n=xo(),i=$n(),c=le("fs"),a=le("path"),s=jn(),o=Hn(),f=(M,R)=>R?(M=s(M).replace(/^\.(\/|$)/,""),o(R)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),C=Symbol("awaitDrain"),F=Symbol("ondrain"),T=Symbol("prefix"),D=Symbol("hadError"),O=ko(),P=gc(),I=bc(),B=a8(),H=O(class extends t{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||l,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=s(R.cwd||process.cwd()),this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.mtime=R.mtime||null,this.prefix=R.prefix?s(R.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(R.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...R){return M==="error"&&(this[D]=!0),super.emit(M,...R)}[g](){c.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[S](R)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=L(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return B(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){c.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[y](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[w](R)})}[w](M){if(this.fd=M,this[D])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let R=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(R),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:M,buf:R,offset:K,length:q,pos:Z}=this;c.read(M,R,K,q,Z,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let K=new Error("encountered unexpected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M>this.remain){let K=new Error("did not encounter expected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M===this.remain)for(let K=M;K<this.length&&M<this.blockRemain;K++)this.buf[K+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[F]():this[C](()=>this[F]())}[C](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[F](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),G=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:R,buf:K,offset:q,length:Z,pos:N}=this,W=c.readSync(R,K,q,Z,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[C](M){M()}[A](M){c.closeSync(this.fd),M()}},J=O(class extends t{constructor(M,R){R=R||{},super(R),this.preservePaths=!!R.preservePaths,this.portable=!!R.portable,this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=s(M.path),this.mode=this[x](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[T](M){return f(M,this.prefix)}[x](M){return B(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=G,H.Tar=J;var L=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),u8=te((e,r)=>{"use strict";Y(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),_c=te((e,r)=>{"use strict";Y(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{u8()(t)}catch{}}),Co=te((e,r)=>{"use strict";Y();var t=class{constructor(L,M){this.path=L||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=So(),i=mc(),c=Ao(),a=vc(),s=a.Sync,o=a.Tar,f=_c(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),C=Symbol("entry"),F=Symbol("entryOpt"),T=Symbol("writeEntryClass"),D=Symbol("write"),O=Symbol("ondrain"),P=le("fs"),I=le("path"),B=ko(),H=jn(),G=B(class extends n{constructor(L){super(L),L=L||Object.create(null),this.opt=L,this.file=L.file||"",this.cwd=L.cwd||process.cwd(),this.maxReadSize=L.maxReadSize,this.preservePaths=!!L.preservePaths,this.strict=!!L.strict,this.noPax=!!L.noPax,this.prefix=H(L.prefix||""),this.linkCache=L.linkCache||new Map,this.statCache=L.statCache||new Map,this.readdirCache=L.readdirCache||new Map,this[T]=a,typeof L.onwarn=="function"&&this.on("warn",L.onwarn),this.portable=!!L.portable,this.zip=null,L.gzip?(typeof L.gzip!="object"&&(L.gzip={}),this.portable&&(L.gzip.portable=!0),this.zip=new i.Gzip(L.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[O]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!L.noDirRecurse,this.follow=!!L.follow,this.noMtime=!!L.noMtime,this.mtime=L.mtime||null,this.filter=typeof L.filter=="function"?L.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+L.jobs||4,this[b]=!1,this[u]=!1}[D](L){return super.write(L)}add(L){return this.write(L),this}end(L){return L&&this.write(L),this[u]=!0,this[y](),this}write(L){if(this[u])throw new Error("write after end");return L instanceof c?this[v](L):this[E](L),this.flowing}[v](L){let M=H(I.resolve(this.cwd,L.path));if(!this.filter(L.path,L))L.resume();else{let R=new t(L.path,M,!1);R.entry=new o(L,this[F](R)),R.entry.on("end",K=>this[S](R)),this[g]+=1,this[d].push(R)}this[y]()}[E](L){let M=H(I.resolve(this.cwd,L));this[d].push(new t(L,M)),this[y]()}[m](L){L.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";P[M](L.absolute,(R,K)=>{L.pending=!1,this[g]-=1,R?this.emit("error",R):this[h](L,K)})}[h](L,M){this.statCache.set(L.absolute,M),L.stat=M,this.filter(L.path,M)||(L.ignore=!0),this[y]()}[w](L){L.pending=!0,this[g]+=1,P.readdir(L.absolute,(M,R)=>{if(L.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](L,R)})}[A](L,M){this.readdirCache.set(L.absolute,M),L.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let L=this[d].head;L!==null&&this[g]<this.jobs;L=L.next)if(this[_](L.value),L.value.ignore){let M=L.next;this[d].removeNode(L),L.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](L){this[d].shift(),this[g]-=1,this[y]()}[_](L){if(!L.pending){if(L.entry){L===this[p]&&!L.piped&&this[x](L);return}if(L.stat||(this.statCache.has(L.absolute)?this[h](L,this.statCache.get(L.absolute)):this[m](L)),!!L.stat&&!L.ignore&&!(!this.noDirRecurse&&L.stat.isDirectory()&&!L.readdir&&(this.readdirCache.has(L.absolute)?this[A](L,this.readdirCache.get(L.absolute)):this[w](L),!L.readdir))){if(L.entry=this[C](L),!L.entry){L.ignore=!0;return}L===this[p]&&!L.piped&&this[x](L)}}}[F](L){return{onwarn:(M,R,K)=>this.warn(M,R,K),noPax:this.noPax,cwd:this.cwd,absolute:L.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[C](L){this[g]+=1;try{return new this[T](L.path,this[F](L)).on("end",()=>this[S](L)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](L){L.piped=!0,L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)});let M=L.entry,R=this.zip;R?M.on("data",K=>{R.write(K)||M.pause()}):M.on("data",K=>{super.write(K)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J=class extends G{constructor(L){super(L),this[T]=s}pause(){}resume(){}[m](L){let M=this.follow?"statSync":"lstatSync";this[h](L,P[M](L.absolute))}[w](L,M){this[A](L,P.readdirSync(L.absolute))}[x](L){let M=L.entry,R=this.zip;L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)}),R?M.on("data",K=>{R.write(K)}):M.on("data",K=>{super[D](K)})}};G.Sync=J,r.exports=G}),qn=te(e=>{"use strict";Y();var r=pc(),t=le("events").EventEmitter,n=le("fs"),i=n.writev;if(!i){let L=process.binding("fs"),M=L.FSReqWrap||L.FSReqCallback;i=(R,K,q,Z)=>{let N=(ee,ae)=>Z(ee,ae,K),W=new M;W.oncomplete=N,L.writeBuffers(R,K,q,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),C=Symbol("_reading"),F=Symbol("_remain"),T=Symbol("_size"),D=Symbol("_write"),O=Symbol("_writing"),P=Symbol("_defaultFlag"),I=Symbol("_errored"),B=class extends r{constructor(L,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof L!="string")throw new TypeError("path must be a string");this[I]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=L,this[x]=M.readSize||16*1024*1024,this[C]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[F]=this[T],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(L,M)=>this[_](L,M))}[_](L,M){L?this[b](L):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[F]))}[A](){if(!this[C]){this[C]=!0;let L=this[d]();if(L.length===0)return process.nextTick(()=>this[g](null,0,L));n.read(this[o],L,0,L.length,null,(M,R,K)=>this[g](M,R,K))}}[g](L,M,R){this[C]=!1,L?this[b](L):this[u](M,R)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}[b](L){this[C]=!0,this[a](),this.emit("error",L)}[u](L,M){let R=!1;return this[F]-=L,L>0&&(R=super.write(L<M.length?M.slice(0,L):M)),(L===0||this[F]<=0)&&(R=!1,this[a](),super.end()),R}emit(L,M){switch(L){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(L,M));default:return super.emit(L,M)}}},H=class extends B{[E](){let L=!0;try{this[_](null,n.openSync(this[v],"r")),L=!1}finally{L&&this[a]()}}[A](){let L=!0;try{if(!this[C]){this[C]=!0;do{let M=this[d](),R=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](R,M))break}while(!0);this[C]=!1}L=!1}finally{L&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}},G=class extends t{constructor(L,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[I]=!1,this[O]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=L,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[P]=M.flags===void 0,this[l]=this[P]?R:M.flags,this[o]===null&&this[E]()}emit(L,M){if(L==="error"){if(this[I])return;this[I]=!0}return super.emit(L,M)}get fd(){return this[o]}get path(){return this[v]}[b](L){this[a](),this[O]=!0,this.emit("error",L)}[E](){n.open(this[v],this[l],this[p],(L,M)=>this[_](L,M))}[_](L,M){this[P]&&this[l]==="r+"&&L&&L.code==="ENOENT"?(this[l]="w",this[E]()):L?this[b](L):(this[o]=M,this.emit("open",M),this[h]())}end(L,M){return L&&this.write(L,M),this[s]=!0,!this[O]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(L,M){return typeof L=="string"&&(L=Buffer.from(L,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[O]||this[w].length?(this[w].push(L),this[y]=!0,!1):(this[O]=!0,this[D](L),!0)}[D](L){n.write(this[o],L,0,L.length,this[m],(M,R)=>this[S](M,R))}[S](L,M){L?this[b](L):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[O]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[D](this[w].pop());else{let L=this[w];this[w]=[],i(this[o],L,this[m],(M,R)=>this[S](M,R))}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}},J=class extends G{[E](){let L;if(this[P]&&this[l]==="r+")try{L=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else L=n.openSync(this[v],this[l],this[p]);this[_](null,L)}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}[D](L){let M=!0;try{this[S](null,n.writeSync(this[o],L,0,L.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=H,e.WriteStream=G,e.WriteStreamSync=J}),Do=te((e,r)=>{"use strict";Y();var t=ko(),n=$n(),i=le("events"),c=_c(),a=1024*1024,s=Ao(),o=xo(),f=mc(),{nextTick:l}=le("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),C=Symbol("unzip"),F=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),D=Symbol("consumeBody"),O=Symbol("consumeMeta"),P=Symbol("consumeHeader"),I=Symbol("consuming"),B=Symbol("bufferConcat"),H=Symbol("maybeEnd"),G=Symbol("writing"),J=Symbol("aborted"),L=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),K=Symbol("sawEOF"),q=Symbol("closeStream"),Z=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(L,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(L,N.ondone):this.on(L,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Z,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[C]=null,this[J]=!1,this[R]=!1,this[K]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[P](N,W){this[M]===null&&(this[M]=!1);let ee;try{ee=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(ee.nullBlock)this[R]?(this[K]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[R]=!0,this[x]("nullBlock"));else if(this[R]=!1,!ee.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:ee});else if(!ee.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:ee});else{let ae=ee.type;if(/^(Symbolic)?Link$/.test(ae)&&!ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:ee});else if(!/^(Symbolic)?Link$/.test(ae)&&ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:ee});else{let oe=this[d]=new s(ee,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",ee=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[G]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[D](N,W){let ee=this[d],ae=ee.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return ee.write(oe),ee.blockRemain||(this[u]="header",this[d]=null,ee.end()),oe.length}[O](N,W){let ee=this[d],ae=this[D](N,W);return this[d]||this[E](ee),ae}[x](N,W,ee){!this[m].length&&!this[p]?this.emit(N,W,ee):this[m].push([N,W,ee])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[J]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[J])return;if(this[C]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let ee=0;this[C]===null&&ee<h.length;ee++)N[ee]!==h[ee]&&(this[C]=!1);if(this[C]===null){let ee=this[w];this[w]=!1,this[C]=new f.Unzip,this[C].on("data",oe=>this[F](oe)),this[C].on("error",oe=>this.abort(oe)),this[C].on("end",oe=>{this[w]=!0,this[F]()}),this[G]=!0;let ae=this[C][ee?"end":"write"](N);return this[G]=!1,ae}}this[G]=!0,this[C]?this[C].write(N):this[F](N),this[G]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",ee=>this.emit("drain")),W}[B](N){N&&!this[J]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[J]&&!this[I]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](L)}}[F](N){if(this[I])this[B](N);else if(!N&&!this[v])this[H]();else{if(this[I]=!0,this[v]){this[B](N);let W=this[v];this[v]=null,this[T](W)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[J]&&!this[K];){let W=this[v];this[v]=null,this[T](W)}this[I]=!1}(!this[v]||this[w])&&this[H]()}[T](N){let W=0,ee=N.length;for(;W+512<=ee&&!this[J]&&!this[K];)switch(this[u]){case"begin":case"header":this[P](N,W),W+=512;break;case"ignore":case"body":W+=this[D](N,W);break;case"meta":W+=this[O](N,W);break;default:throw new Error("invalid state: "+this[u])}W<ee&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[J]||(this[C]?this[C].end(N):(this[w]=!0,this.write(N)))}})}),Ro=te((e,r)=>{"use strict";Y();var t=Nn(),n=Do(),i=le("fs"),c=qn(),a=le("path"),s=Hn();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),l8=te((e,r)=>{"use strict";Y();var t=Nn(),n=Co(),i=qn(),c=Ro(),a=le("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),wc=te((e,r)=>{"use strict";Y();var t=Nn(),n=Co(),i=le("fs"),c=qn(),a=Ro(),s=le("path"),o=$n();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(T,D)=>{T?i.close(E,O=>m(T)):m(null,D)},A=0;if(v===0)return w(null,0);let x=0,C=Buffer.alloc(512),F=(T,D)=>{if(T)return w(T);if(x+=D,x<512&&D)return i.read(E,C,x,C.length-x,A+x,F);if(A===0&&C[0]===31&&C[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let O=new o(C);if(!O.cksumValid)return w(null,A);let P=512*Math.ceil(O.size/512);if(A+P+512>v||(A+=P+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),x=0,i.read(E,C,0,512,A,F)};i.read(E,C,0,512,A,F)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(C,F)=>{if(C)return i.close(x,()=>v(C));g(x,F.size,(T,D)=>{if(T)return v(T);let O=new c.WriteStream(p.file,{fd:x,start:D});_.pipe(O),O.on("error",v),O.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),c8=te((e,r)=>{"use strict";Y();var t=Nn(),n=wc();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),h8=te((e,r)=>{Y();var{promisify:t}=le("util"),n=le("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),f8=te((e,r)=>{Y();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=le("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),p8=te((e,r)=>{Y();var{dirname:t}=le("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),Ec=te((e,r)=>{Y();var{dirname:t}=le("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),d8=te((e,r)=>{Y();var{dirname:t}=le("path"),{findMade:n,findMadeSync:i}=p8(),{mkdirpManual:c,mkdirpManualSync:a}=Ec(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),m8=te((e,r)=>{Y();var t=le("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),y8=te((e,r)=>{Y();var t=h8(),n=f8(),{mkdirpNative:i,mkdirpNativeSync:c}=d8(),{mkdirpManual:a,mkdirpManualSync:s}=Ec(),{useNative:o,useNativeSync:f}=m8(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),g8=te((e,r)=>{"use strict";Y();var t=le("fs"),n=le("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,C=null,F=T=>{if(!C){if(T)return m(C=T);if(--x===0)return p(S,E,v,m)}};A.forEach(T=>y(S,T,E,v,F))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),b8=te((e,r)=>{"use strict";Y();var t=y8(),n=le("fs"),i=le("path"),c=g8(),a=jn(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,C=b.cache,F=a(b.cwd),T=(O,P)=>{O?_(O):(l(C,y,!0),P&&w?c(P,v,m,I=>T(I)):E?n.chmod(y,S,_):_())};if(C&&f(C,y)===!0)return T();if(y===F)return h(y,T);if(A)return t(y,{mode:S}).then(O=>T(null,O),T);let D=a(i.relative(F,y)).split("/");u(F,D,S,C,x,F,null,T)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,C=>{if(C)return m(C);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,C=a(b.cwd),F=O=>{l(x,y,!0),O&&m&&c.sync(O,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return F();if(y===C)return p(C),F();if(w)return F(t.sync(y,g));let T=a(i.relative(C,y)).split("/"),D=null;for(let O=T.shift(),P=C;O&&(P+="/"+O);O=T.shift())if(P=a(i.resolve(P)),!f(x,P))try{n.mkdirSync(P,g),D=D||P,l(x,P,!0)}catch{let I=n.lstatSync(P);if(I.isDirectory()){l(x,P,!0);continue}else if(A){n.unlinkSync(P),n.mkdirSync(P,g),D=D||P,l(x,P,!0);continue}else if(I.isSymbolicLink())return new s(P,P+"/"+T.join("/"))}return F(D)}}),Sc=te((e,r)=>{Y();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),v8=te((e,r)=>{Y();var t=le("assert"),n=Sc(),i=Hn(),{join:c}=le("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),_8=te((e,r)=>{Y();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||le("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),Ac=te((e,r)=>{"use strict";Y();var t=le("assert"),n=Do(),i=le("fs"),c=qn(),a=le("path"),s=b8(),o=gc(),f=v8(),l=bc(),h=jn(),u=Hn(),d=Sc(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),C=Symbol("checkPath"),F=Symbol("mkdir"),T=Symbol("onError"),D=Symbol("pending"),O=Symbol("pend"),P=Symbol("unpend"),I=Symbol("ended"),B=Symbol("maybeClose"),H=Symbol("skip"),G=Symbol("doChown"),J=Symbol("uid"),L=Symbol("gid"),M=Symbol("checkedCwd"),R=le("crypto"),K=_8(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Z=q==="win32",N=(k,U)=>{if(!Z)return i.unlink(k,U);let X=k+".DELETE."+R.randomBytes(16).toString("hex");i.rename(k,X,ne=>{if(ne)return U(ne);i.unlink(X,U)})},W=k=>{if(!Z)return i.unlinkSync(k);let U=k+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(k,U),i.unlinkSync(U)},ee=(k,U,X)=>k===k>>>0?k:U===U>>>0?U:X,ae=k=>d(u(h(k))).toLowerCase(),oe=(k,U)=>{U=ae(U);for(let X of k.keys()){let ne=ae(X);(ne===U||ne.indexOf(U+"/")===0)&&k.delete(X)}},de=k=>{for(let U of k.keys())k.delete(U)},pe=class extends n{constructor(k){if(k||(k={}),k.ondone=U=>{this[I]=!0,this[B]()},super(k),this[M]=!1,this.reservations=f(),this.transform=typeof k.transform=="function"?k.transform:null,this.writable=!0,this.readable=!1,this[D]=0,this[I]=!1,this.dirCache=k.dirCache||new Map,typeof k.uid=="number"||typeof k.gid=="number"){if(typeof k.uid!="number"||typeof k.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(k.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=k.uid,this.gid=k.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;k.preserveOwner===void 0&&typeof k.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!k.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=k.forceChown===!0,this.win32=!!k.win32||Z,this.newer=!!k.newer,this.keep=!!k.keep,this.noMtime=!!k.noMtime,this.preservePaths=!!k.preservePaths,this.unlink=!!k.unlink,this.cwd=h(a.resolve(k.cwd||process.cwd())),this.strip=+k.strip||0,this.processUmask=k.noChmod?0:process.umask(),this.umask=typeof k.umask=="number"?k.umask:this.processUmask,this.dmode=k.dmode||511&~this.umask,this.fmode=k.fmode||438&~this.umask,this.on("entry",U=>this[p](U))}warn(k,U,X={}){return(k==="TAR_BAD_ARCHIVE"||k==="TAR_ABORT")&&(X.recoverable=!1),super.warn(k,U,X)}[B](){this[I]&&this[D]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[C](k){if(this.strip){let U=h(k.path).split("/");if(U.length<this.strip)return!1;if(k.path=U.slice(this.strip).join("/"),k.type==="Link"){let X=h(k.linkpath).split("/");if(X.length>=this.strip)k.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let U=h(k.path),X=U.split("/");if(X.includes("..")||Z&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:k,path:U}),!1;let[ne,me]=l(U);ne&&(k.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:k,path:U}))}if(a.isAbsolute(k.path)?k.absolute=h(a.resolve(k.path)):k.absolute=h(a.resolve(this.cwd,k.path)),!this.preservePaths&&k.absolute.indexOf(this.cwd+"/")!==0&&k.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:k,path:h(k.path),resolvedPath:k.absolute,cwd:this.cwd}),!1;if(k.absolute===this.cwd&&k.type!=="Directory"&&k.type!=="GNUDumpDir")return!1;if(this.win32){let{root:U}=a.win32.parse(k.absolute);k.absolute=U+o.encode(k.absolute.slice(U.length));let{root:X}=a.win32.parse(k.path);k.path=X+o.encode(k.path.slice(X.length))}return!0}[p](k){if(!this[C](k))return k.resume();switch(t.equal(typeof k.absolute,"string"),k.type){case"Directory":case"GNUDumpDir":k.mode&&(k.mode=k.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](k);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](k)}}[T](k,U){k.name==="CwdError"?this.emit("error",k):(this.warn("TAR_ENTRY_ERROR",k,{entry:U}),this[P](),U.resume())}[F](k,U,X){s(h(k),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U,noChmod:this.noChmod},X)}[G](k){return this.forceChown||this.preserveOwner&&(typeof k.uid=="number"&&k.uid!==this.processUid||typeof k.gid=="number"&&k.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[J](k){return ee(this.uid,k.uid,this.processUid)}[L](k){return ee(this.gid,k.gid,this.processGid)}[E](k,U){let X=k.mode&4095||this.fmode,ne=new c.WriteStream(k.absolute,{flags:K(k.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[T](ie,k),U()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[T](ie,k),U();return}--me===0&&i.close(ne.fd,ye=>{ye?this[T](ye,k):this[P](),U()})};ne.on("finish",ie=>{let ye=k.absolute,we=ne.fd;if(k.mtime&&!this.noMtime){me++;let xe=k.atime||new Date,V=k.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[G](k)){me++;let xe=this[J](k),V=this[L](k);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(k)||k;fe!==k&&(fe.on("error",ie=>{this[T](ie,k),U()}),k.pipe(fe)),fe.pipe(ne)}[v](k,U){let X=k.mode&4095||this.dmode;this[F](k.absolute,X,ne=>{if(ne){this[T](ne,k),U();return}let me=1,se=fe=>{--me===0&&(U(),this[P](),k.resume())};k.mtime&&!this.noMtime&&(me++,i.utimes(k.absolute,k.atime||new Date,k.mtime,se)),this[G](k)&&(me++,i.chown(k.absolute,this[J](k),this[L](k),se)),se()})}[x](k){k.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${k.type}`,{entry:k}),k.resume()}[w](k,U){this[m](k,k.linkpath,"symlink",U)}[A](k,U){let X=h(a.resolve(this.cwd,k.linkpath));this[m](k,X,"link",U)}[O](){this[D]++}[P](){this[D]--,this[B]()}[H](k){this[P](),k.resume()}[g](k,U){return k.type==="File"&&!this.unlink&&U.isFile()&&U.nlink<=1&&!Z}[y](k){this[O]();let U=[k.path];k.linkpath&&U.push(k.linkpath),this.reservations.reserve(U,X=>this[b](k,X))}[_](k){k.type==="SymbolicLink"?de(this.dirCache):k.type!=="Directory"&&oe(this.dirCache,k.absolute)}[b](k,U){this[_](k);let X=fe=>{this[_](k),U(fe)},ne=()=>{this[F](this.cwd,this.dmode,fe=>{if(fe){this[T](fe,k),X();return}this[M]=!0,me()})},me=()=>{if(k.absolute!==this.cwd){let fe=h(a.dirname(k.absolute));if(fe!==this.cwd)return this[F](fe,this.dmode,ie=>{if(ie){this[T](ie,k),X();return}se()})}se()},se=()=>{i.lstat(k.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>k.mtime)){this[H](k),X();return}if(fe||this[g](k,ie))return this[S](null,k,X);if(ie.isDirectory()){if(k.type==="Directory"){let ye=!this.noChmod&&k.mode&&(ie.mode&4095)!==k.mode,we=xe=>this[S](xe,k,X);return ye?i.chmod(k.absolute,k.mode,we):we()}if(k.absolute!==this.cwd)return i.rmdir(k.absolute,ye=>this[S](ye,k,X))}if(k.absolute===this.cwd)return this[S](null,k,X);N(k.absolute,ye=>this[S](ye,k,X))})};this[M]?me():ne()}[S](k,U,X){if(k){this[T](k,U),X();return}switch(U.type){case"File":case"OldFile":case"ContiguousFile":return this[E](U,X);case"Link":return this[A](U,X);case"SymbolicLink":return this[w](U,X);case"Directory":case"GNUDumpDir":return this[v](U,X)}}[m](k,U,X,ne){i[X](U,k.absolute,me=>{me?this[T](me,k):(this[P](),k.resume()),ne()})}},j=k=>{try{return[null,k()]}catch(U){return[U,null]}},z=class extends pe{[S](k,U){return super[S](k,U,()=>{})}[y](k){if(this[_](k),!this[M]){let me=this[F](this.cwd,this.dmode);if(me)return this[T](me,k);this[M]=!0}if(k.absolute!==this.cwd){let me=h(a.dirname(k.absolute));if(me!==this.cwd){let se=this[F](me,this.dmode);if(se)return this[T](se,k)}}let[U,X]=j(()=>i.lstatSync(k.absolute));if(X&&(this.keep||this.newer&&X.mtime>k.mtime))return this[H](k);if(U||this[g](k,X))return this[S](null,k);if(X.isDirectory()){if(k.type==="Directory"){let se=!this.noChmod&&k.mode&&(X.mode&4095)!==k.mode,[fe]=se?j(()=>{i.chmodSync(k.absolute,k.mode)}):[];return this[S](fe,k)}let[me]=j(()=>i.rmdirSync(k.absolute));this[S](me,k)}let[ne]=k.absolute===this.cwd?[]:j(()=>W(k.absolute));this[S](ne,k)}[E](k,U){let X=k.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[T](fe||ie,k),U()},me;try{me=i.openSync(k.absolute,K(k.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(k)||k;se!==k&&(se.on("error",fe=>this[T](fe,k)),k.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(k.mtime&&!this.noMtime){let ye=k.atime||new Date,we=k.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(k.absolute,ye,we)}catch{ie=xe}}}if(this[G](k)){let ye=this[J](k),we=this[L](k);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(k.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](k,U){let X=k.mode&4095||this.dmode,ne=this[F](k.absolute,X);if(ne){this[T](ne,k),U();return}if(k.mtime&&!this.noMtime)try{i.utimesSync(k.absolute,k.atime||new Date,k.mtime)}catch{}if(this[G](k))try{i.chownSync(k.absolute,this[J](k),this[L](k))}catch{}U(),k.resume()}[F](k,U){try{return s.sync(h(k),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U})}catch(X){return X}}[m](k,U,X,ne){try{i[X+"Sync"](U,k.absolute),ne(),k.resume()}catch(me){return this[T](me,k)}}};pe.Sync=z,r.exports=pe}),w8=te((e,r)=>{"use strict";Y();var t=Nn(),n=Ac(),i=le("fs"),c=qn(),a=le("path"),s=Hn();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),E8=te(e=>{"use strict";Y(),e.c=e.create=l8(),e.r=e.replace=wc(),e.t=e.list=Ro(),e.u=e.update=c8(),e.x=e.extract=w8(),e.Pack=Co(),e.Unpack=Ac(),e.Parse=Do(),e.ReadEntry=Ao(),e.WriteEntry=vc(),e.Header=$n(),e.Pax=xo(),e.types=yc()}),sr=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,C;return(C=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&C!==void 0?C:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,C;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((C=(x=m)["@@observable"])===null||C===void 0?void 0:C.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:C}=x,F=C?`received values of types ${[...new Set(A.map(T=>`\`${u(T)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${F}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),S8=te((e,r)=>{"use strict";Y();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),A8=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),x8=te((e,r)=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var t=A8(),n=le("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),k8=te((e,r)=>{"use strict";Y();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=le("dns"),{promisify:s}=le("util"),o=le("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let C=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);C.unref&&C.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(D){if(D.code==="ENODATA"||D.code==="ENOTFOUND")return[];throw D}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(T=>v(T))),A=0,x=0,C=0,F=Date.now();for(let T of m)T.family=4,T.expires=F+T.ttl*1e3,A=Math.max(A,T.ttl);for(let T of w)T.family=6,T.expires=F+T.ttl*1e3,x=Math.max(x,T.ttl);return m.length>0?w.length>0?C=Math.min(A,x):C=A:C=x,{entries:[...m,...w],cacheTtl:C}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let C=x[h];w>=C?this._cache.delete(A):C<m&&(m=C)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),C8=te((e,r)=>{"use strict";Y();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),D8=te((e,r)=>{Y(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),xc=te((e,r)=>{Y();var t=D8();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),R8=te((e,r)=>{Y();var t=xc(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),O8=te((e,r)=>{Y();var t=xc(),n=R8(),i=le("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),T8=te((e,r)=>{"use strict";Y();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),F8=te((e,r)=>{"use strict";Y();var{constants:t}=le("buffer"),n=O8(),i=T8(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),P8=te((e,r)=>{"use strict";Y();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),Oo=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),B8=te((e,r)=>{"use strict";Y();var t=le("stream").Readable,n=Oo(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),L8=te((e,r)=>{"use strict";Y();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),I8=te((e,r)=>{"use strict";Y();var t=le("stream").PassThrough,n=L8(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),M8=te(e=>{Y(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),N8=te((e,r)=>{"use strict";Y();var t=le("events"),n=M8(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(le(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),j8=te((e,r)=>{"use strict";Y();var t=le("events"),n=le("url"),i=C8(),c=F8(),a=P8(),s=B8(),o=Oo(),f=I8(),l=N8(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),C=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:C})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,C,F=new Promise(D=>{C=()=>{x||(x=!0,D())}}),T=D=>{if(v&&!A.forceRefresh){D.status=D.statusCode;let P=a.fromObject(v.cachePolicy).revalidatedPolicy(A,D);if(!P.modified){let I=P.policy.responseHeaders();D=new s(v.statusCode,I,v.body,v.url),D.cachePolicy=P.policy,D.fromCache=!0}}D.fromCache||(D.cachePolicy=new a(A,D,A),D.fromCache=!1);let O;A.cache&&D.cachePolicy.storable()?(O=f(D),(async()=>{try{let P=c.buffer(D);if(await Promise.race([F,new Promise(G=>D.once("end",G))]),x)return;let I=await P,B={cachePolicy:D.cachePolicy.toObject(),url:D.url,statusCode:D.fromCache?v.statusCode:D.statusCode,body:I},H=A.strictTtl?D.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,B,H)}catch(P){g.emit("error",new h.CacheError(P))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(P){g.emit("error",new h.CacheError(P))}})(),g.emit("response",O||D),typeof b=="function"&&b(O||D)};try{let D=p(A,T);D.once("error",C),D.once("abort",C),g.emit("request",D)}catch(D){g.emit("error",new h.RequestError(D))}};return(async()=>{let A=async C=>{await Promise.resolve();let F=C.cache?await this.cache.get(E):void 0;if(typeof F>"u")return w(C);let T=a.fromObject(F.cachePolicy);if(T.satisfiesWithoutRevalidation(C)&&!C.forceRefresh){let D=T.responseHeaders(),O=new s(F.statusCode,D,F.body,F.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=F,C.headers=T.revalidationHeaders(C),w(C)},x=C=>g.emit("error",new h.CacheError(C));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(C){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(C))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),$8=te((e,r)=>{"use strict";Y();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),H8=te((e,r)=>{"use strict";Y();var{Transform:t,PassThrough:n}=le("stream"),i=le("zlib"),c=$8();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),kc=te((e,r)=>{"use strict";Y();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),Cc=te((e,r)=>{"use strict";Y();var t=le("events"),n=le("tls"),i=le("http2"),c=kc(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:F}of E)F(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let F=this.sessions[w],T=-1,D=-1,O;for(let P of F){let I=P.remoteSettings.maxConcurrentStreams;if(I<T)break;if(P[o].includes(A)){let B=P[a];if(B>=I||P[f]||P.destroyed)continue;O||(T=I),B>D&&(O=P,D=B)}}if(O){if(E.length!==1){for(let{reject:P}of E){let I=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
21
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}E[0].resolve(O);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===C&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},C=()=>{let F=`${A}:${w}`,T=!1;try{let D=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(F),...S});D[a]=0,D[f]=!1;let O=()=>D[a]<D.remoteSettings.maxConcurrentStreams,P=!0;D.socket.once("session",B=>{this.tlsSessionCache.set(F,B)}),D.once("error",B=>{for(let{reject:H}of E)H(B);this.tlsSessionCache.delete(F)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(T){P&&this._freeSessionsCount--,this._sessionsCount--;let B=this.sessions[w];B.splice(B.indexOf(D),1),B.length===0&&delete this.sessions[w]}else{let B=new Error("Session closed without receiving a SETTINGS frame");B.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(B);x()}this._tryToCreateNewSession(w,A)});let I=()=>{if(!(!(w in this.queue)||!O())){for(let B of D[o])if(B in this.queue[w]){let{listeners:H}=this.queue[w][B];for(;H.length!==0&&O();)H.shift().resolve(D);let G=this.queue[w];if(G[B].listeners.length===0&&(delete G[B],Object.keys(G).length===0)){delete this.queue[w];break}if(!O())break}}};D.on("origin",()=>{D[o]=D.originSet,O()&&(I(),d(this.sessions[w],D))}),D.once("remoteSettings",()=>{if(D.ref(),D.unref(),this._sessionsCount++,C.destroyed){let B=new Error("Agent has been destroyed");for(let H of E)H.reject(B);D.destroy();return}D[o]=D.originSet;{let B=this.sessions;if(w in B){let H=B[w];H.splice(h(H,D,u),0,D)}else B[w]=[D]}this._freeSessionsCount+=1,T=!0,this.emit("session",D),I(),x(),D[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&D.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),D.on("remoteSettings",()=>{I(),d(this.sessions[w],D)})}),D[s]=D.request,D.request=(B,H)=>{if(D[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let G=D[s](B,H);return D.ref(),++D[a],D[a]===D.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,G.once("close",()=>{if(P=O(),--D[a],!D.destroyed&&!D.closed&&(p(this.sessions[w],D),O()&&!D.closed)){P||(this._freeSessionsCount++,P=!0);let J=D[a]===0;J&&D.unref(),J&&(this._freeSessionsCount>this.maxFreeSessions||D[f])?D.close():(d(this.sessions[w],D),I())}}),G}}catch(D){for(let O of E)O.reject(D);x()}};C.listeners=E,C.completed=!1,C.destroyed=!1,this.queue[w][A]=C,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),Dc=te((e,r)=>{"use strict";Y();var{Readable:t}=le("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),Rc=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),q8=te((e,r)=>{"use strict";Y(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),G8=te((e,r)=>{"use strict";Y(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),U8=te((e,r)=>{"use strict";Y();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),Oc=te((e,r)=>{"use strict";Y();var t=le("http2"),{Writable:n}=le("stream"),{Agent:i,globalAgent:c}=Cc(),a=Dc(),s=Rc(),o=q8(),f=G8(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=U8(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),C=/^[\^`\-\w!#$%&*+.|~]+$/,F=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends n{constructor(D,O,P){super({autoDestroy:!1});let I=typeof D=="string"||D instanceof URL;if(I&&(D=s(D instanceof URL?D:new URL(D))),typeof O=="function"||O===void 0?(P=O,O=I?D:{...D}):O={...D,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=c;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new h(O.protocol,"https:");let B=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,H=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:G}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[J,L]of Object.entries(O.headers))this.setHeader(J,L);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[w]=O,B===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${B}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${B}`)),G&&this.setTimeout(G),P&&this.once("response",P),this[A]=!1}get method(){return this[E][_]}set method(D){D&&(this[E][_]=D.toUpperCase())}get path(){return this[E][g]}set path(D){D&&(this[E][g]=D)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(D,O,P){if(this._mustNotHaveABody){P(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let I=()=>this._request.write(D,O,P);this._request?I():this[x].push(I)}_final(D){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){D();return}this._request.end(D)};this._request?O():this[x].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(D,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(D)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let D=this.method===S,O=P=>{if(this._request=P,this.destroyed){P.destroy();return}D||o(P,this,["timeout","continue","close","error"]);let I=H=>(...G)=>{!this.writable&&!this.destroyed?H(...G):this.once("finish",()=>{H(...G)})};P.once("response",I((H,G,J)=>{let L=new a(this.socket,P.readableHighWaterMark);this.res=L,L.req=this,L.statusCode=H[b],L.headers=H,L.rawHeaders=J,L.once("end",()=>{this.aborted?(L.aborted=!0,L.emit("aborted")):(L.complete=!0,L.socket=null,L.connection=null)}),D?(L.upgrade=!0,this.emit("connect",L,P,Buffer.alloc(0))?this.emit("close"):P.destroy()):(P.on("data",M=>{!L._dumped&&!L.push(M)&&P.pause()}),P.once("end",()=>{L.push(null)}),this.emit("response",L)||L._dump())})),P.once("headers",I(H=>this.emit("information",{statusCode:H[b]}))),P.once("trailers",I((H,G,J)=>{let{res:L}=this;L.trailers=H,L.rawTrailers=J}));let{socket:B}=P.session;this.socket=B,this.connection=B;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(P){this.emit("error",P)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[w],this[E]))}catch(P){this.emit("error",P)}}}getHeader(D){if(typeof D!="string")throw new l("name","string",D);return this[E][D.toLowerCase()]}get headersSent(){return this[A]}removeHeader(D){if(typeof D!="string")throw new l("name","string",D);if(this.headersSent)throw new u("remove");delete this[E][D.toLowerCase()]}setHeader(D,O){if(this.headersSent)throw new u("set");if(typeof D!="string"||!C.test(D)&&!f(D))throw new d("Header name",D);if(typeof O>"u")throw new p(O,D);if(F.test(O))throw new y("header content",D);this[E][D.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(D,O){let P=()=>this._request.setTimeout(D,O);return this._request?P():this[x].push(P),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(D){}};r.exports=T}),z8=te((e,r)=>{"use strict";Y();var t=le("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),W8=te((e,r)=>{"use strict";Y();var t=le("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),V8=te((e,r)=>{"use strict";Y();var t=le("http"),n=le("https"),i=z8(),c=kc(),a=Oc(),s=W8(),o=Rc(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),K8=te((e,r)=>{"use strict";Y();var t=le("http2"),n=Cc(),i=Oc(),c=Dc(),a=V8(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),Tc=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=sr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),Y8=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("fs"),t=le("util"),n=sr(),i=Tc(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),Fc=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),X8=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),Z8=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=le("net"),t=X8(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),Q8=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=sr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),J8=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),e5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),Pc=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),t5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),Bc=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),r5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),n5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=sr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),i5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),Oi=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=le("util"),t=le("stream"),n=le("fs"),i=le("url"),c=le("http"),a=le("http"),s=le("https"),o=x8(),f=k8(),l=j8(),h=H8(),u=K8(),d=Oo(),p=sr(),y=Y8(),b=Tc(),_=Fc(),g=Z8(),S=Q8(),E=J8(),v=e5(),m=Pc(),w=t5(),A=Bc(),x=r5(),C=n5(),F=i5(),T,D=Symbol("request"),O=Symbol("response"),P=Symbol("responseSize"),I=Symbol("downloadedSize"),B=Symbol("bodySize"),H=Symbol("uploadedSize"),G=Symbol("serverResponsesPiped"),J=Symbol("unproxyEvents"),L=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),K=Symbol("stopReading"),q=Symbol("triggerRead"),Z=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),ee=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),z=new Set([300,301,302,303,304,307,308]),k=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of k)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var U=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
|
22
|
-
|
23
|
-
|
24
|
-
`)}
|
25
|
-
`)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ne}=this.options;if(!Ne)throw new TypeError("Missing `url` property");if(this.requestUrl=Ne.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[D])===null||Ae===void 0||Ae.destroy();return}for(let Le of this[N])Le();this[N].length=0,this.requestInitialized=!0}catch(Ne){if(Ne instanceof U){this._beforeError(Ne);return}this.destroyed||this.destroy(Ne)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let ke=$.url;if(!ke.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${ke.href}`);$.url=new i.URL(Be+ke.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ne}=$;if(Ne){let{setCookie:Se,getCookieString:Fe}=Ne;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Le}=$;if(Le&&(pe.has(Le)||pe.set(Le,new l((Se,Fe)=>{let Be=Se[D](Se,Fe);return p.default.promise(Be)&&(Be.once=(ke,Ce)=>{if(ke==="error")Be.catch(Ce);else if(ke==="abort")(async()=>{try{(await Be).once("abort",Ce)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Be}),Be},Le))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let zt=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!zt)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),C.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&z.has(_e)){if(V.resume(),this[D]&&(this[M](),delete this[D],this[J]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Le){return Le.protocol==="unix:"||Le.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ne=Ae.toString();if(decodeURI(Ne),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ne),$.url=Ae;for(let Le of $.hooks.beforeRedirect)await Le($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ne=V.headers[Ee];Ae&&be.setHeader(Ee,Ne)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[J]=_.default(V,this,we),this[D]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let Ce in be)if(p.default.undefined(be[Ce]))delete be[Ce];else if(p.default.null_(be[Ce]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ce}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let Ce=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(Ce)&&(he.headers.cookie=Ce)}for(let Ce of he.hooks.beforeRequest){let Wt=await Ce(he);if(!p.default.undefined(Wt)){he.request=()=>Wt;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ne,url:Le}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Le.hostname==="unix"){let Ce=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Le.pathname}${Le.search}`);if(Ce!=null&&Ce.groups){let{socketPath:Wt,path:yo}=Ce.groups;Object.assign(he,{socketPath:Wt,path:yo,host:""})}}let zt=Le.protocol==="https:",Se;he.http2?Se=u.auto:Se=zt?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[zt?"https":"http"]),he[D]=Fe,delete he.request,delete he.timeout;let ke=he;if(ke.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,ke.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,ke.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(ke.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(ke.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(ke.ca=he.https.certificateAuthority),he.https.certificate&&(ke.cert=he.https.certificate),he.https.key&&(ke.key=he.https.key),he.https.passphrase&&(ke.passphrase=he.https.passphrase),he.https.pfx&&(ke.pfx=he.https.pfx));try{let Ce=await Be(Le,ke);p.default.undefined(Ce)&&(Ce=Se(Le,ke)),he.request=Ae,he.timeout=Ne,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete ke.rejectUnauthorized,he.https.checkServerIdentity&&delete ke.checkServerIdentity,he.https.certificateAuthority&&delete ke.ca,he.https.certificate&&delete ke.cert,he.https.key&&delete ke.key,he.https.passphrase&&delete ke.passphrase,he.https.pfx&&delete ke.pfx),de(Ce)?this._onRequest(Ce):this.writable?(this.once("finish",()=>{this._onResponse(Ce)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ce)}catch(Ce){throw Ce instanceof l.CacheError?new me(Ce,this):new U(Ce.message,Ce,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[D].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[D].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(D in this)){V();return}if(this[D].destroyed){V();return}this[D].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[D].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),D in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[D].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[D])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[D])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[D])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),Ti=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Oi(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(Oi(),e)}),s5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ti(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),Lc=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=le("events"),i=sr(),c=S8(),a=Ti(),s=s5(),o=Oi(),f=Fc(),l=Pc(),h=Bc(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var D;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((D=T.headers["content-encoding"])!==null&&D!==void 0?D:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async J=>{let L=o.default.normalizeArguments(void 0,{...J,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let C=T=>{if(g.isCanceled)return;let{options:D}=x;if(T instanceof a.HTTPError&&!D.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",C);let F=x.options.body;x.once("retry",(T,D)=>{var O,P;if(F===((O=D.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=D.request)===null||P===void 0?void 0:P.options.body)){C(D);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Ti(),e)}),o5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ti();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),a5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=sr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),u5=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0})}),hc=te(e=>{"use strict";Y();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=sr(),i=Lc(),c=o5(),a=Oi(),s=a5(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:C,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=C,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,C=F=>_.handlers[x++](F,x===_.handlers.length?u:C);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(D){F=D}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return C(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,C=0;for(;C<w.requestLimit;){C!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),D=[];for(let P of T)if(w.filter(P,A,D)&&(!w.shouldContinue(P,A,D)||(yield P,w.stackAllItems&&A.push(P),D.push(P),--x<=0)))return;let O=w.paginate(F,A,D);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),C++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(u5(),e)}),l5=te((e,r)=>{"use strict";Y();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=le("url"),c=hc(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(hc(),e),n(Lc(),e)});Y();var o9=$e(E8()),a9=$e(l5()),u9=(0,Mc.promisify)(Ic.Stream.pipeline);var c5=te((e,r)=>{"use strict";Y(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Nc=te((e,r)=>{Y();var t=c5(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),h5=te((e,r)=>{Y();var t=Nc();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),f5=te((e,r)=>{Y();var t=Nc(),n=h5(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),jc=te((e,r)=>{"use strict";Y();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=f5());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),p5=te((e,r)=>{"use strict";Y(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),$c=te((e,r)=>{"use strict";Y();var t=le("os"),n=le("tty"),i=p5(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),d5=te((e,r)=>{"use strict";Y();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
26
|
-
|
27
|
-
|
28
|
-
`,
|
29
|
-
|
30
|
-
`);return C!==-1&&(m=a(m,x,A,C)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let C=1;C<w.length;C++)x.push(String(A[C-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[C]));return g===void 0&&(g=m5()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),g5=te((e,r)=>{"use strict";Y();var t=Ci(),n=Di();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),b5=te(e=>{"use strict";Y();var r=g5(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),v5=te((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),_5=te((e,r)=>{"use strict";Y();var t=Object.assign({},v5()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),w5=te((e,r)=>{"use strict";Y();var t=kr(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),E5=te((e,r)=>{"use strict";Y(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),S5=te((e,r)=>{"use strict";Y();var t=E5();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),A5=te((e,r)=>{Y();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),x5=te((e,r)=>{Y();var t=A5();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),k5=te((e,r)=>{Y(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),C5=te((e,r)=>{"use strict";Y();var t=x5(),n=k5(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),D5=te((e,r)=>{"use strict";Y(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),R5=te((e,r)=>{Y();var t=le("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),O5=te((e,r)=>{"use strict";Y();var t=le("readline"),n=y5(),i=b5(),c=_5(),a=w5(),s=S5(),o=C5(),f=D5(),l=R5(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
|
31
|
-
`
|
32
|
-
|
33
|
-
`)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
`);return F!==-1&&(w=a(w,C,x,F)),x+w+C},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),C=[A.raw[0]];for(let F=1;F<A.length;F++)C.push(String(x[F-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[F]));return S===void 0&&(S=F5()),S(m,C.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),B5=te((e,r)=>{Y(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,z){if(j=j||"",z=z||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,z);var k=h(j);this._originalInput=j,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=z.format||k.format,this._gradientType=z.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=k.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),z,k,U,X,ne,me;return z=j.r/255,k=j.g/255,U=j.b/255,z<=.03928?X=z/12.92:X=t.pow((z+.055)/1.055,2.4),k<=.03928?ne=k/12.92:ne=t.pow((k+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=t.pow((U+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=J(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.v*100);return this._a==1?"hsv("+z+", "+k+"%, "+U+"%)":"hsva("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.l*100);return this._a==1?"hsl("+z+", "+k+"%, "+U+"%)":"hsla("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(L(this._r,255)*100)+"%",g:a(L(this._g,255)*100)+"%",b:a(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%)":"rgba("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var z="#"+S(this._r,this._g,this._b,this._a),k=z,U=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);k="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+U+"startColorstr="+z+",endColorstr="+k+")"},toString:function(j){var z=!!j;j=j||this._format;var k=!1,U=this._a<1&&this._a>=0,X=!z&&U&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(k=this.toRgbString()),j==="prgb"&&(k=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(k=this.toHexString()),j==="hex3"&&(k=this.toHexString(!0)),j==="hex4"&&(k=this.toHex8String(!0)),j==="hex8"&&(k=this.toHex8String()),j==="name"&&(k=this.toName()),j==="hsl"&&(k=this.toHslString()),j==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,z){var k=j.apply(null,[this].concat([].slice.call(z)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(j,z){return j.apply(null,[this].concat([].slice.call(z)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},l.fromRatio=function(j,z){if(typeof j=="object"){var k={};for(var U in j)j.hasOwnProperty(U)&&(U==="a"?k[U]=j[U]:k[U]=N(j[U]));j=k}return l(j,z)};function h(j){var z={r:0,g:0,b:0},k=1,U=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(z=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(U=N(j.s),X=N(j.v),z=b(j.h,U,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(U=N(j.s),ne=N(j.l),z=p(j.h,U,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(k=j.a)),k=J(k),{ok:me,format:j.format||se,r:s(255,o(z.r,0)),g:s(255,o(z.g,0)),b:s(255,o(z.b,0)),a:k}}function u(j,z,k){return{r:L(j,255)*255,g:L(z,255)*255,b:L(k,255)*255}}function d(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=(U+X)/2;if(U==X)ne=me=0;else{var fe=U-X;switch(me=se>.5?fe/(2-U-X):fe/(U+X),U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,z,k){var U,X,ne;j=L(j,360),z=L(z,100),k=L(k,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(z===0)U=X=ne=k;else{var se=k<.5?k*(1+z):k+z-k*z,fe=2*k-se;U=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:U*255,g:X*255,b:ne*255}}function y(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=U,fe=U-X;if(me=U===0?0:fe/U,U==X)ne=0;else{switch(U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,z,k){j=L(j,360)*6,z=L(z,100),k=L(k,100);var U=t.floor(j),X=j-U,ne=k*(1-z),me=k*(1-X*z),se=k*(1-(1-X)*z),fe=U%6,ie=[k,me,ne,ne,se,k][fe],ye=[se,k,k,me,ne,ne][fe],we=[ne,ne,se,k,k,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,z,k,U){var X=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return U&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,z,k,U,X){var ne=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16)),Z(W(U))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,z,k,U){var X=[Z(W(U)),Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return X.join("")}l.equals=function(j,z){return!j||!z?!1:l(j).toRgbString()==l(z).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s-=z/100,k.s=M(k.s),l(k)}function v(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s+=z/100,k.s=M(k.s),l(k)}function m(j){return l(j).desaturate(100)}function w(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l+=z/100,k.l=M(k.l),l(k)}function A(j,z){z=z===0?0:z||10;var k=l(j).toRgb();return k.r=o(0,s(255,k.r-a(255*-(z/100)))),k.g=o(0,s(255,k.g-a(255*-(z/100)))),k.b=o(0,s(255,k.b-a(255*-(z/100)))),l(k)}function x(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l-=z/100,k.l=M(k.l),l(k)}function C(j,z){var k=l(j).toHsl(),U=(k.h+z)%360;return k.h=U<0?360+U:U,l(k)}function F(j){var z=l(j).toHsl();return z.h=(z.h+180)%360,l(z)}function T(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+120)%360,s:z.s,l:z.l}),l({h:(k+240)%360,s:z.s,l:z.l})]}function D(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+90)%360,s:z.s,l:z.l}),l({h:(k+180)%360,s:z.s,l:z.l}),l({h:(k+270)%360,s:z.s,l:z.l})]}function O(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+72)%360,s:z.s,l:z.l}),l({h:(k+216)%360,s:z.s,l:z.l})]}function P(j,z,k){z=z||6,k=k||30;var U=l(j).toHsl(),X=360/k,ne=[l(j)];for(U.h=(U.h-(X*z>>1)+720)%360;--z;)U.h=(U.h+X)%360,ne.push(l(U));return ne}function I(j,z){z=z||6;for(var k=l(j).toHsv(),U=k.h,X=k.s,ne=k.v,me=[],se=1/z;z--;)me.push(l({h:U,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,z,k){k=k===0?0:k||50;var U=l(j).toRgb(),X=l(z).toRgb(),ne=k/100,me={r:(X.r-U.r)*ne+U.r,g:(X.g-U.g)*ne+U.g,b:(X.b-U.b)*ne+U.b,a:(X.a-U.a)*ne+U.a};return l(me)},l.readability=function(j,z){var k=l(j),U=l(z);return(t.max(k.getLuminance(),U.getLuminance())+.05)/(t.min(k.getLuminance(),U.getLuminance())+.05)},l.isReadable=function(j,z,k){var U=l.readability(j,z),X,ne;switch(ne=!1,X=pe(k),X.level+X.size){case"AAsmall":case"AAAlarge":ne=U>=4.5;break;case"AAlarge":ne=U>=3;break;case"AAAsmall":ne=U>=7;break}return ne},l.mostReadable=function(j,z,k){var U=null,X=0,ne,me,se,fe;k=k||{},me=k.includeFallbackColors,se=k.level,fe=k.size;for(var ie=0;ie<z.length;ie++)ne=l.readability(j,z[ie]),ne>X&&(X=ne,U=l(z[ie]));return l.isReadable(j,U,{level:se,size:fe})||!me?U:(k.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],k))};var B=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=G(B);function G(j){var z={};for(var k in j)j.hasOwnProperty(k)&&(z[j[k]]=k);return z}function J(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function L(j,z){K(j)&&(j="100%");var k=q(j);return j=s(z,o(0,parseFloat(j))),k&&(j=parseInt(j*z,10)/100),t.abs(j-z)<1e-6?1:j%z/parseFloat(z)}function M(j){return s(1,o(0,j))}function R(j){return parseInt(j,16)}function K(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function q(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Z(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function ee(j){return R(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",z="[-\\+]?\\d*\\.\\d+%?",k="(?:"+z+")|(?:"+j+")",U="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",X="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var z=!1;if(B[j])j=B[j],z=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=ae.rgb.exec(j))?{r:k[1],g:k[2],b:k[3]}:(k=ae.rgba.exec(j))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=ae.hsl.exec(j))?{h:k[1],s:k[2],l:k[3]}:(k=ae.hsla.exec(j))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=ae.hsv.exec(j))?{h:k[1],s:k[2],v:k[3]}:(k=ae.hsva.exec(j))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=ae.hex8.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),a:ee(k[4]),format:z?"name":"hex8"}:(k=ae.hex6.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),format:z?"name":"hex"}:(k=ae.hex4.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),a:ee(k[4]+""+k[4]),format:z?"name":"hex8"}:(k=ae.hex3.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),format:z?"name":"hex"}:!1}function pe(j){var z,k;return j=j||{level:"AA",size:"small"},z=(j.level||"AA").toUpperCase(),k=(j.size||"small").toLowerCase(),z!=="AA"&&z!=="AAA"&&(z="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:z,size:k}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),L5=te((e,r)=>{Y();var t=B5(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),I5=te((e,r)=>{"use strict";Y();var t=P5(),n=L5(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
|
39
|
-
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
40
|
-
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),Pe={};ic(Pe,{bold:()=>q5,dimmed:()=>G5,error:()=>Vc,info:()=>H5,item:()=>U5,log:()=>Yr,turboBlue:()=>Kr,turboGradient:()=>$5,turboLoader:()=>zc,turboRed:()=>Gc,warn:()=>Wc,yellow:()=>Uc});Y();var Gn=$e(kr()),M5=$e(O5()),N5=$e(I5()),Hc="#0099F7",qc="#F11712",j5="#FFFF00",$5=(0,N5.default)(Hc,qc),Kr=Gn.default.hex(Hc),Gc=Gn.default.hex(qc),Uc=Gn.default.hex(j5),zc=e=>(0,M5.default)({text:e,spinner:{frames:[" ",Kr("> "),Kr(">> "),Kr(">>>")]}}),H5=(...e)=>{Yr(Kr.bold(">>>"),...e)},q5=(...e)=>{Yr(Gn.default.bold(...e))},G5=(...e)=>{Yr(Gn.default.dim(...e))},U5=(...e)=>{Yr(Kr.bold(" \u2022"),...e)},Yr=(...e)=>{console.log(...e)},Wc=(...e)=>{console.error(Uc.bold(">>>"),...e)},Vc=(...e)=>{console.error(Gc.bold(">>>"),...e)};Y();var F4=$e(ir());var Z5=te((e,r)=>{Y();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),Q5=te(e=>{Y();var r=Z5();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),J5=te((e,r)=>{Y(),r.exports=Q5()}),eb=te((e,r)=>{Y();var t=J5();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});Y();var H4=$e(eb()),q4=$e(kr()),G4=$e(ir());Y();var rb=te((e,r)=>{Y();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),nb=te((e,r)=>{Y();var t=rb().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var J=B&&B.prototype instanceof b?B:b,L=Object.create(J.prototype),M=new D(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(J,L,M,R){var K=p(I[J],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(J,L){function M(){return new B(function(R,K){H(J,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(J,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(J==="throw")throw L;return P()}for(H.method=J,H.arg=L;;){var M=H.delegate;if(M){var R=C(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function C(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,C(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var J=p(G,I.iterator,B.arg);if(J.type==="throw")return B.method="throw",B.arg=J.arg,B.delegate=null,y;var L=J.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function D(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function J(){for(;++H<I.length;)if(a.call(I,H))return J.value=I[H],J.done=!1,J;return J.value=void 0,J.done=!0,J};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,J){J===void 0&&(J=Promise);var L=new A(d(I,B,H,G),J);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function J(){for(;H.length;){var L=H.pop();if(L in B)return J.value=L,J.done=!1,J}return J.done=!0,J}},i.values=O,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G],L=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var M=a.call(J,"catchLoc"),R=a.call(J,"finallyLoc");if(M&&R){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(M){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var J=G;break}}J&&(I==="break"||I==="continue")&&J.tryLoc<=B&&B<=J.finallyLoc&&(J=null);var L=J?J.completion:{};return L.type=I,L.arg=B,J?(this.method="next",this.next=J.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var J=G.arg;T(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),ib=te((e,r)=>{Y();var t=nb()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),sb=te((e,r)=>{"use strict";Y();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),ob=te((e,r)=>{"use strict";Y();var t=sb(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),ab=te((e,r)=>{"use strict";Y();var t=ob(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),ub=te((e,r)=>{"use strict";Y();var t=le("path"),n=le("fs"),{promisify:i}=le("util"),c=ab(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),lb=te((e,r)=>{"use strict";Y();var t=le("fs"),{promisify:n}=le("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),cb=te((e,r)=>{"use strict";Y();var t=le("path"),n=ub(),i=lb(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),bt=te(e=>{"use strict";Y(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),Kc=te(e=>{"use strict";Y();var r=bt().fromCallback,t=Me(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),Yc=te((e,r)=>{"use strict";Y();var t=le("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),hb=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=Yc().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),fb=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=Yc().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),At=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=t(hb()),i=fb();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),Xc=te((e,r)=>{"use strict";Y();var t=Me(),n=le("os"),i=le("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),Bi=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:C,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===C.ino&&F.dev===C.dev?w(new Error("Source and destination must not be the same.")):C.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:C,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),C=n.resolve(n.dirname(m));if(C===x||C===n.parse(C).root)return A();h()?t.stat(C,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A)):t.stat(C,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let C;try{h()?C=t.statSync(x,{bigint:!0}):C=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(C.ino&&C.dev&&C.ino===v.ino&&C.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,C)=>A&&w[C]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),pb=te((e,r)=>{"use strict";Y(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),db=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=At().mkdirsSync,c=Xc().utimesMillisSync,a=Bi();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,C,"copy",(D,O)=>{if(D)return T(D);let{srcStat:P,destStat:I}=O;s.checkParentPaths(x,P,C,"copy",B=>B?T(B):F.filter?l(f,I,x,C,F,T):f(I,x,C,F,T))})}function f(x,C,F,T,D){let O=n.dirname(F);c(O,(P,I)=>{if(P)return D(P);if(I)return h(x,C,F,T,D);i(O,B=>B?D(B):h(x,C,F,T,D))})}function l(x,C,F,T,D,O){Promise.resolve(D.filter(F,T)).then(P=>P?x(C,F,T,D,O):O(),P=>O(P))}function h(x,C,F,T,D){return T.filter?l(u,x,C,F,T,D):u(x,C,F,T,D)}function u(x,C,F,T,D){(T.dereference?t.stat:t.lstat)(C,(O,P)=>{if(O)return D(O);if(P.isDirectory())return g(P,x,C,F,T,D);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return d(P,x,C,F,T,D);if(P.isSymbolicLink())return w(x,C,F,T,D)})}function d(x,C,F,T,D,O){return C?p(x,F,T,D,O):y(x,F,T,D,O)}function p(x,C,F,T,D){if(T.overwrite)t.unlink(F,O=>O?D(O):y(x,C,F,T,D));else return T.errorOnExist?D(new Error(`'${F}' already exists`)):D()}function y(x,C,F,T,D){return typeof t.copyFile=="function"?t.copyFile(C,F,O=>O?D(O):_(x,F,T,D)):b(x,C,F,T,D)}function b(x,C,F,T,D){let O=t.createReadStream(C);O.on("error",P=>D(P)).once("open",()=>{let P=t.createWriteStream(F,{mode:x.mode});P.on("error",I=>D(I)).on("open",()=>O.pipe(P)).once("close",()=>_(x,F,T,D))})}function _(x,C,F,T){t.chmod(C,x.mode,D=>D?T(D):F.preserveTimestamps?a(C,x.atime,x.mtime,T):T())}function g(x,C,F,T,D,O){return C?C&&!C.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${F}'.`)):E(F,T,D,O):S(x,F,T,D,O)}function S(x,C,F,T,D){t.mkdir(F,O=>{if(O)return D(O);E(C,F,T,P=>P?D(P):t.chmod(F,x.mode,D))})}function E(x,C,F,T){t.readdir(x,(D,O)=>D?T(D):v(O,x,C,F,T))}function v(x,C,F,T,D){let O=x.pop();return O?m(x,O,C,F,T,D):D()}function m(x,C,F,T,D,O){let P=n.join(F,C),I=n.join(T,C);s.checkPaths(P,I,"copy",(B,H)=>{if(B)return O(B);let{destStat:G}=H;h(G,P,I,D,J=>J?O(J):v(x,F,T,D,O))})}function w(x,C,F,T,D){t.readlink(C,(O,P)=>{if(O)return D(O);if(T.dereference&&(P=n.resolve(process.cwd(),P)),x)t.readlink(F,(I,B)=>I?I.code==="EINVAL"||I.code==="UNKNOWN"?t.symlink(P,F,D):D(I):(T.dereference&&(B=n.resolve(process.cwd(),B)),s.isSrcSubdir(P,B)?D(new Error(`Cannot copy '${P}' to a subdirectory of itself, '${B}'.`)):x.isDirectory()&&s.isSrcSubdir(B,P)?D(new Error(`Cannot overwrite '${B}' with '${P}'.`)):A(P,F,D)));else return t.symlink(P,F,D)})}function A(x,C,F){t.unlink(C,T=>T?F(T):t.symlink(x,C,F))}r.exports=o}),Qc=te((e,r)=>{"use strict";Y();var t=bt().fromCallback;r.exports={copy:t(mb())}}),yb=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=le("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Li=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=yb();r.exports={remove:t(n),removeSync:n.sync}}),gb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=Me(),i=le("path"),c=At(),a=Li(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),bb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=le("path"),i=Me(),c=At(),a=Vt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),vb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=le("path"),i=Me(),c=At(),a=Vt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),_b=te((e,r)=>{"use strict";Y();var t=le("path"),n=Me(),i=Vt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),wb=te((e,r)=>{"use strict";Y();var t=Me();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),Eb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=le("path"),i=Me(),c=At(),a=c.mkdirs,s=c.mkdirsSync,o=_b(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=wb(),u=h.symlinkType,d=h.symlinkTypeSync,p=Vt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,C)=>{if(x)return E(x);let F=n.dirname(g);p(F,(T,D)=>{if(T)return E(T);if(D)return i.symlink(_,g,C,E);a(F,O=>{if(O)return E(O);i.symlink(_,g,C,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),Sb=te((e,r)=>{"use strict";Y();var t=bb(),n=vb(),i=Eb();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),Ab=te((e,r)=>{Y();var t;try{t=Me()}catch{t=le("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
|
45
|
-
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Po=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=Ab();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),xb=te((e,r)=>{"use strict";Y();var t=le("path"),n=At(),i=Vt().pathExists,c=Po();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),kb=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=At(),c=Po();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),Cb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=Po();n.outputJson=t(xb()),n.outputJsonSync=kb(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),Db=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=Zc().copySync,c=Li().removeSync,a=At().mkdirpSync,s=Bi();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),Rb=te((e,r)=>{"use strict";Y(),r.exports={moveSync:Db()}}),Ob=te((e,r)=>{"use strict";Y();var t=Me(),n=le("path"),i=Qc().copy,c=Li().remove,a=At().mkdirp,s=Vt().pathExists,o=Bi();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),Tb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback;r.exports={move:t(Ob())}}),Fb=te((e,r)=>{"use strict";Y();var t=bt().fromCallback,n=Me(),i=le("path"),c=At(),a=Vt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),Pb=te((e,r)=>{"use strict";Y(),r.exports=Object.assign({},Kc(),Zc(),Qc(),gb(),Sb(),Cb(),At(),Rb(),Tb(),Fb(),Vt(),Li());var t=le("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Y();Y();var X4=$e(ib());Y();Y();function Bb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Y();Y();function To(e){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}Y();function Lb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ib(e,r){if(r&&(To(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lb(e)}Y();function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}Y();Y();function Un(e,r){return Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Un(e,r)}function Mb(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Un(e,r)}Y();Y();function Nb(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Y();Y();function jb(){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 Fi(e,r,t){return jb()?Fi=Reflect.construct.bind():Fi=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&Un(o,c.prototype),o},Fi.apply(null,arguments)}function Fo(e){var r=typeof Map=="function"?new Map:void 0;return Fo=function(t){if(t===null||!Nb(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return Fi(t,arguments,Pi(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Un(n,t)},Fo(e)}var Z4=$e(cb()),Q4=$e(Pb()),J4=function(e){Mb(r,e);function r(t){var n;return Bb(this,r),n=Ib(this,Pi(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(Fo(Error));Y();var Hb=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),qb=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),Gb=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),Ub=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=le("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),zb=te((e,r)=>{Y(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),Wb=te((e,r)=>{Y();var t=zb(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),Vb=te((e,r)=>{"use strict";Y();var t=Wb(),n=le("path").posix.dirname,i=le("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),qo=te(e=>{"use strict";Y(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Go=te((e,r)=>{"use strict";Y();var t=qo();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),Kb=te((e,r)=>{"use strict";Y(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),Yb=te((e,r)=>{"use strict";Y();var t=Kb(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),C=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(C))return n.cache[C].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let D=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(D&&(O.isPadded=D,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[C]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[C,F]=v[x];C===F?w+=C:C!=="0"||F!=="9"?w+=y(C,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let C=0;C<m.length;C++){let F=m[C],T=a(String(A),String(F),v),D="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(D=_(F,E,v)),T.string=D+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),dh=te((e,r)=>{"use strict";Y();var t=le("util"),n=Yb(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",C;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?C=`${A}|${x}`:C=A||x,m.wrap?`(${w}${C})`:C},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let C=String.fromCharCode(m);return`[${x}-${C}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),C=Number(m);if(!Number.isInteger(x)||!Number.isInteger(C)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),C===0&&(C=0);let F=x>C,T=String(v),D=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(D)||o(O),I=P?Math.max(T.length,D.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},J=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=C:x<=C;)A.toRegex===!0&&w>1?J(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),C=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=C>F,D=Math.min(C,F),O=Math.max(C,F);if(A.toRegex&&w===1)return d(D,O,!1,A);let P=[],I=0;for(;T?C>=F:C<=F;)P.push(x(C,I)),C=T?C-w:C+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),Xb=te((e,r)=>{"use strict";Y();var t=dh(),n=qo(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),Zb=te((e,r)=>{"use strict";Y();var t=dh(),n=Go(),i=qo(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),Qb=te((e,r)=>{"use strict";Y(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
46
|
-
`,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"}}),Jb=te((e,r)=>{"use strict";Y();var t=Go(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Qb(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,C=w,F=0,T=S.length,D=0,O=0,P,I={},B=()=>S[D++],H=G=>{if(G.type==="text"&&C.type==="dot"&&(C.type="text"),C&&C.type==="text"&&G.type==="text"){C.value+=G.value;return}return x.nodes.push(G),G.parent=x,G.prev=C,C=G,G};for(H({type:"bos"});D<T;)if(x=A[A.length-1],P=B(),!(P===_||P===b)){if(P===i){H({type:"text",value:(E.keepEscaping?P:"")+B()});continue}if(P===d){H({type:"text",value:"\\"+P});continue}if(P===u){F++;let G=!0,J;for(;D<T&&(J=B());){if(P+=J,J===u){F++;continue}if(J===i){P+=B();continue}if(J===d&&(F--,F===0))break}H({type:"text",value:P});continue}if(P===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:P});continue}if(P===f){if(x.type!=="paren"){H({type:"text",value:P});continue}x=A.pop(),H({type:"text",value:P}),x=A[A.length-1];continue}if(P===p||P===y||P===c){let G=P,J;for(E.keepQuotes!==!0&&(P="");D<T&&(J=B());){if(J===i){P+=J+B();continue}if(J===G){E.keepQuotes===!0&&(P+=J);break}P+=J}H({type:"text",value:P});continue}if(P===l){O++;let G=C.value&&C.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:G,depth:O,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:P});continue}if(P===h){if(x.type!=="brace"){H({type:"text",value:P});continue}let G="close";x=A.pop(),x.close=!0,H({type:G,value:P}),O--,x=A[A.length-1];continue}if(P===a&&O>0){if(x.ranges>0){x.ranges=0;let G=x.nodes.shift();x.nodes=[G,{type:"text",value:t(x)}]}H({type:"comma",value:P}),x.commas++;continue}if(P===s&&O>0&&x.commas===0){let G=x.nodes;if(O===0||G.length===0){H({type:"text",value:P});continue}if(C.type==="dot"){if(x.range=[],C.value+=P,C.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,C.type="text";continue}x.ranges++,x.args=[];continue}if(C.type==="range"){G.pop();let J=G[G.length-1];J.value+=C.value+P,C=J,x.ranges--;continue}H({type:"dot",value:P});continue}H({type:"text",value:P})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let G=A[A.length-1],J=G.nodes.indexOf(x);G.nodes.splice(J,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),ev=te((e,r)=>{"use strict";Y();var t=Go(),n=Xb(),i=Zb(),c=Jb(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Hi=te((e,r)=>{"use strict";Y();var t=le("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),qi=te(e=>{"use strict";Y();var r=le("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Hi();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),tv=te((e,r)=>{"use strict";Y();var t=qi(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Hi(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,C=[],F=[],T=[],D=v,O=-1,P=0,I=0,B=!1,H=!1,G=!1,J=!1,L=!1,M=!1,R=!1,K=!1,q=!1,Z=!1,N=0,W,ee,ae={value:"",depth:0,isGlob:!1},oe=()=>O>=A,de=()=>D.charCodeAt(O+1),pe=()=>(W=ee,D.charCodeAt(++O));for(;O<A;){ee=pe();let X;if(ee===c){R=ae.backslashes=!0,ee=pe(),ee===l&&(M=!0);continue}if(M===!0||ee===l){for(N++;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,pe();continue}if(ee===l){N++;continue}if(M!==!0&&ee===s&&(ee=pe())===s){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(M!==!0&&ee===a){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===y&&(N--,N===0)){M=!1,B=ae.isBrace=!0,Z=!0;break}}if(x===!0)continue;break}if(ee===f){if(C.push(O),F.push(ae),ae={value:"",depth:0,isGlob:!1},Z===!0)continue;if(W===s&&O===P+1){P+=2;continue}I=O+1;continue}if(w.noext!==!0&&(ee===d||ee===i||ee===n||ee===p||ee===o)&&de()===h){if(G=ae.isGlob=!0,J=ae.isExtglob=!0,Z=!0,ee===o&&O===P&&(q=!0),x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){G=ae.isGlob=!0,Z=!0;break}}continue}break}if(ee===n){if(W===n&&(L=ae.isGlobstar=!0),G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===p){if(G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===u){for(;oe()!==!0&&(X=pe());){if(X===c){R=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,G=ae.isGlob=!0,Z=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&ee===o&&O===P){K=ae.negated=!0,P++;continue}if(w.noparen!==!0&&ee===h){if(G=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===h){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){Z=!0;break}}continue}break}if(G===!0){if(Z=!0,x===!0)continue;break}}w.noext===!0&&(J=!1,G=!1);let j=D,z="",k="";P>0&&(z=D.slice(0,P),D=D.slice(P),I-=P),j&&G===!0&&I>0?(j=D.slice(0,I),k=D.slice(I)):G===!0?(j="",k=D):j=D,j&&j!==""&&j!=="/"&&j!==D&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(k&&(k=t.removeBackslashes(k)),j&&R===!0&&(j=t.removeBackslashes(j)));let U={prefix:z,input:v,start:P,base:j,glob:k,isBrace:B,isBracket:H,isGlob:G,isExtglob:J,isGlobstar:L,negated:K,negatedExtglob:q};if(w.tokens===!0&&(U.maxDepth=0,g(ee)||F.push(ae),U.tokens=F),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<C.length;ne++){let me=X?X+1:P,se=C[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&P!==0?(F[ne].isPrefix=!0,F[ne].value=z):F[ne].value=fe,S(F[ne]),U.maxDepth+=F[ne].depth),(ne!==0||fe!=="")&&T.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);T.push(ne),w.tokens&&(F[F.length-1].value=ne,S(F[F.length-1]),U.maxDepth+=F[F.length-1].depth)}U.slashes=C,U.parts=T}return U};r.exports=E}),rv=te((e,r)=>{"use strict";Y();var t=Hi(),n=qi(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:T,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:I,STAR:B,START_ANCHOR:H}=v,G=se=>`(${S}(?:(?!${H}${se.dot?F:w}).)*?)`,J=p.dot?"":T,L=p.dot?P:I,M=p.bash===!0?G(p):B;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let R={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,R),b=u.length;let K=[],q=[],Z=[],N=_,W,ee=()=>R.index===b-1,ae=R.peek=(se=1)=>u[R.index+se],oe=R.advance=()=>u[++R.index]||"",de=()=>u.slice(R.index+1),pe=(se="",fe=0)=>{R.consumed+=se,R.index+=fe},j=se=>{R.output+=se.output!=null?se.output:se.value,pe(se.value)},z=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),R.start++,se++;return se%2===0?!1:(R.negated=!0,R.start++,!0)},k=se=>{R[se]++,Z.push(se)},U=se=>{R[se]--,Z.pop()},X=se=>{if(N.type==="globstar"){let fe=R.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||K.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(R.output=R.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,R.output+=N.output)}if(K.length&&se.type!=="paren"&&(K[K.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=R.parens,ie.output=R.output;let ye=(p.capture?"(":"")+ie.open;k("parens"),X({type:se,value:fe,output:R.output?"":C}),X({type:"paren",extglob:!0,value:oe(),output:ye}),K.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=G(p)),(ye!==M||ee()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),U("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?P.repeat(V.length):""):$===0?L+(V?P.repeat(V.length):""):P.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(R.output=u,R):(R.output=n.wrapOutput(fe,R,d),R)}for(;!ee();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,R.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),R.brackets===0){X({type:"text",value:W});continue}}if(R.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,R.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=C);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(R.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){R.quotes=R.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){k("parens"),X({type:"paren",value:W});continue}if(W===")"){if(R.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=K[K.length-1];if(ie&&R.parens===ie.parens+1){me(K.pop());continue}X({type:"paren",value:W,output:R.parens?")":"\\)"}),U("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else k("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(R.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}U("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(R.output=R.output.slice(0,-N.value.length),p.literalBrackets===!0){R.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,R.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){k("braces");let ie={type:"brace",value:W,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};q.push(ie),X(ie);continue}if(W==="}"){let ie=q[q.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),R.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=R.output.slice(0,ie.outputIndex),xe=R.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",R.output=we;for(let V of xe)R.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),U("braces"),q.pop();continue}if(W==="|"){K.length>0&&K[K.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=q[q.length-1];ye&&Z[Z.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(R.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=q[q.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(R.braces+R.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:I});continue}X({type:"qmark",value:W,output:P});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&R.index===0){z();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||R.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],R.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,R.backtrack=!0,R.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=R.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=K.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[R.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&ee()){N.type="globstar",N.value+=W,N.output=G(p),R.output=N.output,R.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&ee()){R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=G(p)+(p.strictSlashes?")":"|$)"),N.value+=W,R.globstar=!0,R.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${G(p)}${x}|${x}${ue})`,N.value+=W,R.output+=ie.output+N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${G(p)}${x})`,R.output=N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-N.output.length),N.type="globstar",N.output=G(p),N.value+=W,R.output+=N.output,R.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=J+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(R.index===R.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(R.output+=D,N.output+=D):p.dot===!0?(R.output+=O,N.output+=O):(R.output+=J,N.output+=J),ae()!=="*"&&(R.output+=C,N.output+=C)),X(fe)}for(;R.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R.output=n.escapeLast(R.output,"["),U("brackets")}for(;R.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));R.output=n.escapeLast(R.output,"("),U("parens")}for(;R.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));R.output=n.escapeLast(R.output,"{"),U("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),R.backtrack===!0){R.output="";for(let se of R.tokens)R.output+=se.output!=null?se.output:se.value,se.suffix&&(R.output+=se.suffix)}return R};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:C}=t.globChars(_),F=p.dot?w:m,T=p.dot?A:m,D=p.capture?"":"?:",O={negated:!1,prefix:""},P=p.bash===!0?".*?":x;p.capture&&(P=`(${P})`);let I=J=>J.noglobstar===!0?P:`(${D}(?:(?!${C}${J.dot?v:g}).)*?)`,B=J=>{switch(J){case"*":return`${F}${E}${P}`;case".*":return`${g}${E}${P}`;case"*.*":return`${F}${P}${g}${E}${P}`;case"*/*":return`${F}${P}${S}${E}${T}${P}`;case"**":return F+I(p);case"**/*":return`(?:${F}${I(p)}${S})?${T}${E}${P}`;case"**/*.*":return`(?:${F}${I(p)}${S})?${T}${P}${g}${E}${P}`;case"**/.*":return`(?:${F}${I(p)}${S})?${g}${E}${P}`;default:{let L=/^(.*?)\.(\w+)$/.exec(J);if(!L)return;let M=B(L[1]);return M?M+g+L[2]:void 0}}},H=n.removePrefix(u,O),G=B(H);return G&&p.strictSlashes!==!0&&(G+=`${S}?`),G},r.exports=h}),nv=te((e,r)=>{"use strict";Y();var t=le("path"),n=tv(),i=rv(),c=qi(),a=Hi(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),iv=te((e,r)=>{"use strict";Y(),r.exports=nv()}),sv=te((e,r)=>{"use strict";Y();var t=le("util"),n=ev(),i=iv(),c=qi(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),ov=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=le("path"),t=Vb(),n=sv(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(B,H={}){return!u(B,H)}e.isStaticPattern=h;function u(B,H={}){return B===""?!1:!!(H.caseSensitiveMatch===!1||B.includes(c)||a.test(B)||s.test(B)||o.test(B)||H.extglob!==!1&&f.test(B)||H.braceExpansion!==!1&&d(B))}e.isDynamicPattern=u;function d(B){let H=B.indexOf("{");if(H===-1)return!1;let G=B.indexOf("}",H+1);if(G===-1)return!1;let J=B.slice(H,G);return l.test(J)}function p(B){return b(B)?B.slice(1):B}e.convertToPositivePattern=p;function y(B){return"!"+B}e.convertToNegativePattern=y;function b(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=b;function _(B){return!b(B)}e.isPositivePattern=_;function g(B){return B.filter(b)}e.getNegativePatterns=g;function S(B){return B.filter(_)}e.getPositivePatterns=S;function E(B){return B.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(B){return B.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(B){return t(B,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(B){return B.includes(i)}e.hasGlobStar=A;function x(B){return B.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function C(B){let H=r.basename(B);return x(B)||h(H)}e.isAffectDepthOfReadingPattern=C;function F(B){return B.reduce((H,G)=>H.concat(T(G)),[])}e.expandPatternsWithBraceExpansion=F;function T(B){return n.braces(B,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function D(B,H){let{parts:G}=n.scan(B,Object.assign(Object.assign({},H),{parts:!0}));return G.length===0&&(G=[B]),G[0].startsWith("/")&&(G[0]=G[0].slice(1),G.unshift("")),G}e.getPatternParts=D;function O(B,H){return n.makeRe(B,H)}e.makeRe=O;function P(B,H){return B.map(G=>O(G,H))}e.convertPatternsToRe=P;function I(B,H){return H.some(G=>G.test(B))}e.matchAny=I}),av=te((e,r)=>{"use strict";Y();var t=le("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),uv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=av();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),lv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),ur=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=Hb();e.array=r;var t=qb();e.errno=t;var n=Gb();e.fs=n;var i=Ub();e.path=i;var c=ov();e.pattern=c;var a=uv();e.stream=a;var s=lv();e.string=s}),cv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=ur();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),hv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),fv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),pv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),dv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),mv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=dv(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),en=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=fv(),t=pv(),n=mv();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),yv=te((e,r)=>{Y();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),gv=te((e,r)=>{Y(),r.exports=n;var t=yv();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),mh=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),bv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),yh=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=bv();e.fs=r}),gh=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),vv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=en(),t=gv(),n=mh(),i=yh(),c=gh();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),_v=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=en(),t=mh(),n=yh(),i=gh();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),wv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),Ev=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=en(),n=wv(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),Uo=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=vv(),t=_v(),n=Ev();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),Sv=te((e,r)=>{"use strict";Y();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),Av=te((e,r)=>{"use strict";Y();var t=Sv();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:C,error:F};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var T=h,D=0;T;)T=T.next,D++;return D}function S(){for(var T=h,D=[];T;)D.push(T.value),T=T.next;return D}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,A()}}function v(){return d===0&&y.length()===0}function m(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,O.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=O,u=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function w(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,d===y.concurrency||y.paused?h?(O.next=h,h=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function A(T){T&&l.release(T);var D=h;D?y.paused?d--:(u===h&&(u=null),h=D.next,D.next=null,o.call(s,D.value,D.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function C(){h=null,u=null,y.drain(),y.drain=i}function F(T){p=T}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),zo=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),bh=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=zo(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),vh=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("events"),t=Uo(),n=Av(),i=zo(),c=bh(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),xv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=vh(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),kv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=vh(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),Cv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Uo(),t=zo(),n=bh(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),Dv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Cv(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),Rv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Uo(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Wo=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=xv(),t=kv(),n=Dv(),i=Rv();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Vo=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=en(),n=ur(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),_h=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=en(),n=Wo(),i=Vo(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),Ov=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Wo(),t=Vo(),n=_h(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),Tv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=ur(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),Fv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Tv(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),Pv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=ur(),t=Fv(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),Bv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=ur(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),Lv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=ur(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),Iv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=ur(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Ko=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Pv(),n=Bv(),i=Lv(),c=Iv(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),Mv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ov(),t=Ko(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),Nv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=_h(),n=Ko(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),jv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=en(),t=Wo(),n=Vo(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),$v=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0});var r=jv(),t=Ko(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),Hv=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=le("fs"),t=le("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),qv=te((e,r)=>{"use strict";Y();var t=cv(),n=hv(),i=Mv(),c=Nv(),a=$v(),s=Hv(),o=ur();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Y();Y();function wh(e){return typeof e>"u"||e===null}function Gv(e){return typeof e=="object"&&e!==null}function Uv(e){return Array.isArray(e)?e:wh(e)?[]:[e]}function zv(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function Wv(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function Vv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Kv=wh,Yv=Gv,Xv=Uv,Zv=Wv,Qv=Vv,Jv=zv,Ve={isNothing:Kv,isObject:Yv,toArray:Xv,repeat:Zv,isNegativeZero:Qv,extend:Jv};function Eh(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
47
|
-
|
48
|
-
`+e.mark.snippet),n+" "+t):n}function Wn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Eh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wn.prototype=Object.create(Error.prototype);Wn.prototype.constructor=Wn;Wn.prototype.toString=function(e){return this.name+": "+Eh(this,e)};var ct=Wn;function Bo(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function Lo(e,r){return Ve.repeat(" ",r-e.length)+e}function e_(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=Bo(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ve.repeat(" ",r.indent)+Lo((e.line-o+1).toString(),l)+" | "+f.str+`
|
49
|
-
`+s;for(f=Bo(e.buffer,n[a],i[a],e.position,h),s+=Ve.repeat(" ",r.indent)+Lo((e.line+1).toString(),l)+" | "+f.str+`
|
50
|
-
`,s+=Ve.repeat("-",r.indent+l+3+f.pos)+`^
|
51
|
-
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=Bo(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ve.repeat(" ",r.indent)+Lo((e.line+o+1).toString(),l)+" | "+f.str+`
|
52
|
-
`;return s.replace(/\n$/,"")}var t_=e_,r_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n_=["scalar","sequence","mapping"];function i_(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function s_(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(r_.indexOf(t)===-1)throw new ct('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=i_(r.styleAliases||null),n_.indexOf(this.kind)===-1)throw new ct('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Je=s_;function Jc(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function o_(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function Mo(e){return this.extend(e)}Mo.prototype.extend=function(e){var r=[],t=[];if(e instanceof Je)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new ct("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof Je))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new ct("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new ct("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof Je))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Mo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=Jc(n,"implicit"),n.compiledExplicit=Jc(n,"explicit"),n.compiledTypeMap=o_(n.compiledImplicit,n.compiledExplicit),n};var a_=Mo,u_=new Je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),l_=new Je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),c_=new Je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),h_=new a_({explicit:[u_,l_,c_]});function f_(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function p_(){return null}function d_(e){return e===null}var m_=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:f_,construct:p_,predicate:d_,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function y_(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function g_(e){return e==="true"||e==="True"||e==="TRUE"}function b_(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var v_=new Je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:y_,construct:g_,predicate:b_,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function __(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function w_(e){return 48<=e&&e<=55}function E_(e){return 48<=e&&e<=57}function S_(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!__(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!w_(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!E_(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function A_(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function x_(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ve.isNegativeZero(e)}var k_=new Je("tag:yaml.org,2002:int",{kind:"scalar",resolve:S_,construct:A_,predicate:x_,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),C_=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function D_(e){return!(e===null||!C_.test(e)||e[e.length-1]==="_")}function R_(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var O_=/^[-+]?[0-9]+e/;function T_(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ve.isNegativeZero(e))return"-0.0";return t=e.toString(10),O_.test(t)?t.replace("e",".e"):t}function F_(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ve.isNegativeZero(e))}var P_=new Je("tag:yaml.org,2002:float",{kind:"scalar",resolve:D_,construct:R_,predicate:F_,represent:T_,defaultStyle:"lowercase"}),B_=h_.extend({implicit:[m_,v_,k_,P_]}),L_=B_,Sh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ah=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 I_(e){return e===null?!1:Sh.exec(e)!==null||Ah.exec(e)!==null}function M_(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=Sh.exec(e),r===null&&(r=Ah.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function N_(e){return e.toISOString()}var j_=new Je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:I_,construct:M_,instanceOf:Date,represent:N_});function $_(e){return e==="<<"||e===null}var H_=new Je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$_}),Yo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
53
|
-
\r`;function q_(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=Yo;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function G_(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=Yo,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function U_(e){var r="",t=0,n,i,c=e.length,a=Yo;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function z_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var W_=new Je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:q_,construct:G_,predicate:z_,represent:U_}),V_=Object.prototype.hasOwnProperty,K_=Object.prototype.toString;function Y_(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,K_.call(i)!=="[object Object]")return!1;for(c in i)if(V_.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function X_(e){return e!==null?e:[]}var Z_=new Je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Y_,construct:X_}),Q_=Object.prototype.toString;function J_(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],Q_.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function ew(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var tw=new Je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:J_,construct:ew}),rw=Object.prototype.hasOwnProperty;function nw(e){if(e===null)return!0;var r,t=e;for(r in t)if(rw.call(t,r)&&t[r]!==null)return!1;return!0}function iw(e){return e!==null?e:{}}var sw=new Je("tag:yaml.org,2002:set",{kind:"mapping",resolve:nw,construct:iw}),xh=L_.extend({implicit:[j_,H_],explicit:[W_,Z_,tw,sw]}),ar=Object.prototype.hasOwnProperty,Ii=1,kh=2,Ch=3,Mi=4,Io=1,ow=2,eh=3,aw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uw=/[\x85\u2028\u2029]/,lw=/[,\[\]\{\}]/,Dh=/^(?:!|!!|![a-z\-]+!)$/i,Rh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function th(e){return Object.prototype.toString.call(e)}function Ft(e){return e===10||e===13}function Rr(e){return e===9||e===32}function ht(e){return e===9||e===32||e===10||e===13}function Zr(e){return e===44||e===91||e===93||e===123||e===125}function cw(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function hw(e){return e===120?2:e===117?4:e===85?8:0}function fw(e){return 48<=e&&e<=57?e-48:-1}function rh(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
54
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function pw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Oh=new Array(256),Th=new Array(256);for(Dr=0;Dr<256;Dr++)Oh[Dr]=rh(Dr)?1:0,Th[Dr]=rh(Dr);var Dr;function dw(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||xh,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Fh(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=t_(t),new ct(r,t)}function De(e,r){throw Fh(e,r)}function Ni(e,r){e.onWarning&&e.onWarning.call(null,Fh(e,r))}var nh={YAML:function(e,r,t){var n,i,c;e.version!==null&&De(e,"duplication of %YAML directive"),t.length!==1&&De(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&De(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&De(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&Ni(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&De(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],Dh.test(n)||De(e,"ill-formed tag handle (first argument) of the TAG directive"),ar.call(e.tagMap,n)&&De(e,'there is a previously declared suffix for "'+n+'" tag handle'),Rh.test(i)||De(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{De(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function or(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||De(e,"expected valid JSON character");else aw.test(s)&&De(e,"the stream contains non-printable characters");e.result+=s}}function ih(e,r,t,n){var i,c,a,s;for(Ve.isObject(t)||De(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],ar.call(r,c)||(r[c]=t[c],n[c]=!0)}function Qr(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&De(e,"nested arrays are not supported inside keys"),typeof i=="object"&&th(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&th(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)ih(e,r,c[f],t);else ih(e,r,c,t);else!e.json&&!ar.call(t,i)&&ar.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,De(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function Xo(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):De(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ue(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ft(i))for(Xo(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&Ni(e,"deficient indentation"),n}function Gi(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||ht(t)))}function Zo(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ve.repeat(`
|
55
|
-
`,r-1))}function mw(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),ht(d)||Zr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ht(i)||t&&Zr(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ht(i)||t&&Zr(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ht(n))break}else{if(e.position===e.lineStart&&Gi(e)||t&&Zr(d))break;if(Ft(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,Ue(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(or(e,c,a,!1),Zo(e,e.line-o),c=a=e.position,s=!1),Rr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return or(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function yw(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(or(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Ft(t)?(or(e,n,i,!0),Zo(e,Ue(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Gi(e)?De(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);De(e,"unexpected end of the stream within a single quoted scalar")}function gw(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return or(e,t,e.position,!0),e.position++,!0;if(s===92){if(or(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),Ft(s))Ue(e,!1,r);else if(s<256&&Oh[s])e.result+=Th[s],e.position++;else if((a=hw(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=cw(s))>=0?c=(c<<4)+a:De(e,"expected hexadecimal character");e.result+=pw(c),e.position++}else De(e,"unknown escape sequence");t=n=e.position}else Ft(s)?(or(e,t,n,!0),Zo(e,Ue(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Gi(e)?De(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}De(e,"unexpected end of the stream within a double quoted scalar")}function bw(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(Ue(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&De(e,"expected the node content, but found ','"):De(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),ht(f)&&(h=u=!0,e.position++,Ue(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,Jr(e,r,Ii,!1,!0),b=e.tag,y=e.result,Ue(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Ue(e,!0,r),Jr(e,r,Ii,!1,!0),_=e.result),d?Qr(e,s,p,b,y,_,n,i,c):h?s.push(Qr(e,null,p,b,y,_,n,i,c)):s.push(y),Ue(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}De(e,"unexpected end of the stream within a flow collection")}function vw(e,r){var t,n,i=Io,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Io===i?i=h===43?eh:ow:De(e,"repeat of a chomping mode identifier");else if((l=fw(h))>=0)l===0?De(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?De(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Rr(h)){do h=e.input.charCodeAt(++e.position);while(Rr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Ft(h)&&h!==0)}for(;h!==0;){for(Xo(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Ft(h)){o++;continue}if(e.lineIndent<s){i===eh?e.result+=Ve.repeat(`
|
56
|
-
`,c?1+o:o):i===Io&&c&&(e.result+=`
|
57
|
-
`);break}for(n?Rr(h)?(f=!0,e.result+=Ve.repeat(`
|
58
|
-
`,c?1+o:o)):f?(f=!1,e.result+=Ve.repeat(`
|
59
|
-
`,o+1)):o===0?c&&(e.result+=" "):e.result+=Ve.repeat(`
|
60
|
-
`,o):e.result+=Ve.repeat(`
|
61
|
-
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!Ft(h)&&h!==0;)h=e.input.charCodeAt(++e.position);or(e,t,e.position,!1)}return!0}function sh(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!ht(a))));){if(s=!0,e.position++,Ue(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,Jr(e,r,Ch,!1,!0),c.push(e.result),Ue(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)De(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function _w(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&ht(n))g===63?(b&&(Qr(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):De(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!Jr(e,t,kh,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Rr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),ht(g)||De(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Qr(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)De(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)De(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),Jr(e,r,Mi,!0,i)&&(b?p=e.result:y=e.result),b||(Qr(e,h,u,d,p,y,a,s,o),d=p=y=null),Ue(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)De(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&Qr(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function ww(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&De(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):De(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ht(a);)a===33&&(n?De(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Dh.test(i)||De(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),lw.test(c)&&De(e,"tag suffix cannot contain flow indicator characters")}c&&!Rh.test(c)&&De(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{De(e,"tag name is malformed: "+c)}return t?e.tag=c:ar.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:De(e,'undeclared tag handle "'+i+'"'),!0}function Ew(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&De(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!ht(t)&&!Zr(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Sw(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!ht(n)&&!Zr(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),ar.call(e.anchorMap,t)||De(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ue(e,!0,-1),!0}function Jr(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=Mi===t||Ch===t,n&&Ue(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;ww(e)||Ew(e);)Ue(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||Mi===t)&&(Ii===t||kh===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(sh(e,b)||_w(e,b,y))||bw(e,y)?l=!0:(a&&vw(e,y)||yw(e,y)||gw(e,y)?l=!0:Sw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&De(e,"alias node should not have any properties")):mw(e,y,Ii===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&sh(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&De(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ar.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||De(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&De(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):De(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Aw(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ue(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!ht(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&De(e,"directive name must not be less than one character in length");a!==0;){for(;Rr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ft(a));break}if(Ft(a))break;for(t=e.position;a!==0&&!ht(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Xo(e),ar.call(nh,n)?nh[n](e,n,i):Ni(e,'unknown document directive "'+n+'"')}if(Ue(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ue(e,!0,-1)):c&&De(e,"directives end mark is expected"),Jr(e,e.lineIndent-1,Mi,!1,!0),Ue(e,!0,-1),e.checkLineBreaks&&uw.test(e.input.slice(r,e.position))&&Ni(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Gi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ue(e,!0,-1));return}if(e.position<e.length-1)De(e,"end of the stream or a document separator is expected");else return}function Ph(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
62
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new dw(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,De(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)Aw(t);return t.documents}function xw(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=Ph(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function kw(e,r){var t=Ph(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ct("expected a single document in the stream, but found more")}}var Cw=xw,Dw=kw,Bh={loadAll:Cw,load:Dw},Lh=Object.prototype.toString,Ih=Object.prototype.hasOwnProperty,Qo=65279,Rw=9,Vn=10,Ow=13,Tw=32,Fw=33,Pw=34,No=35,Bw=37,Lw=38,Iw=39,Mw=42,Mh=44,Nw=45,ji=58,jw=61,$w=62,Hw=63,qw=64,Nh=91,jh=93,Gw=96,$h=123,Uw=124,Hh=125,et={};et[0]="\\0";et[7]="\\a";et[8]="\\b";et[9]="\\t";et[10]="\\n";et[11]="\\v";et[12]="\\f";et[13]="\\r";et[27]="\\e";et[34]='\\"';et[92]="\\\\";et[133]="\\N";et[160]="\\_";et[8232]="\\L";et[8233]="\\P";var zw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ww=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vw(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&Ih.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function Kw(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ve.repeat("0",n-r.length)+r}var Yw=1,Kn=2;function Xw(e){this.schema=e.schema||xh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ve.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Vw(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Kn:Yw,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function oh(e,r){for(var t=Ve.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
63
|
-
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
64
|
-
`&&(c+=t),c+=a;return c}function jo(e,r){return`
|
65
|
-
`+Ve.repeat(" ",e.indent*r)}function Zw(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function $i(e){return e===Tw||e===Rw}function Yn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Qo||65536<=e&&e<=1114111}function ah(e){return Yn(e)&&e!==Qo&&e!==Ow&&e!==Vn}function uh(e,r,t){var n=ah(e),i=n&&!$i(e);return(t?n:n&&e!==Mh&&e!==Nh&&e!==jh&&e!==$h&&e!==Hh)&&e!==No&&!(r===ji&&!i)||ah(r)&&!$i(r)&&e===No||r===ji&&i}function Qw(e){return Yn(e)&&e!==Qo&&!$i(e)&&e!==Nw&&e!==Hw&&e!==ji&&e!==Mh&&e!==Nh&&e!==jh&&e!==$h&&e!==Hh&&e!==No&&e!==Lw&&e!==Mw&&e!==Fw&&e!==Uw&&e!==jw&&e!==$w&&e!==Iw&&e!==Pw&&e!==Bw&&e!==qw&&e!==Gw}function Jw(e){return!$i(e)&&e!==ji}function zn(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function qh(e){var r=/^\n* /;return r.test(e)}var Gh=1,$o=2,Uh=3,zh=4,Xr=5;function eE(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=Qw(zn(e,0))&&Jw(zn(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=zn(e,o),!Yn(f))return Xr;y=y&&uh(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=zn(e,o),f===Vn)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Yn(f))return Xr;y=y&&uh(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?Gh:c===Kn?Xr:$o:t>9&&qh(e)?Xr:a?c===Kn?Xr:$o:u?zh:Uh}function tE(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===Kn?'""':"''";if(!e.noCompatMode&&(zw.indexOf(r)!==-1||Ww.test(r)))return e.quotingType===Kn?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return Zw(e,f)}switch(eE(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case Gh:return r;case $o:return"'"+r.replace(/'/g,"''")+"'";case Uh:return"|"+lh(r,e.indent)+ch(oh(r,c));case zh:return">"+lh(r,e.indent)+ch(oh(rE(r,a),c));case Xr:return'"'+nE(r)+'"';default:throw new ct("impossible error: invalid scalar style")}}()}function lh(e,r){var t=qh(e)?String(r):"",n=e[e.length-1]===`
|
66
|
-
`,i=n&&(e[e.length-2]===`
|
67
|
-
`||e===`
|
68
|
-
`),c=i?"+":n?"":"-";return t+c+`
|
69
|
-
`}function ch(e){return e[e.length-1]===`
|
70
|
-
`?e.slice(0,-1):e}function rE(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
71
|
-
`);return f=f!==-1?f:e.length,t.lastIndex=f,hh(e.slice(0,f),r)}(),i=e[0]===`
|
72
|
-
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
73
|
-
`:"")+hh(o,r),i=c}return n}function hh(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
74
|
-
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
75
|
-
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
76
|
-
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function nE(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=zn(e,i),n=et[t],!n&&Yn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||Kw(t);return r}function iE(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Kt(e,r,s,!1,!1)||typeof s>"u"&&Kt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function fh(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Kt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Kt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=jo(e,r)),e.dump&&Vn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function sE(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Kt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Kt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function oE(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ct("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=jo(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Kt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=jo(e,r)),Kt(e,r+1,l,!0,h)&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function ph(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,Lh.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(Ih.call(s.represent,o))n=s.represent[o](r,o);else throw new ct("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Kt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,ph(e,t,!1)||ph(e,t,!0);var s=Lh.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(oE(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(sE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?fh(e,r-1,e.dump,i):fh(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(iE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&tE(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new ct("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function aE(e,r){var t=[],n=[],i,c;for(Ho(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Ho(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Ho(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Ho(e[n[i]],r,t)}function uE(e,r){r=r||{};var t=new Xw(r);t.noRefs||aE(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Kt(t,0,n,!0,!0)?t.dump+`
|
77
|
-
`:""}var lE=uE,cE={dump:lE};function Jo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var oM=Bh.load,aM=Bh.loadAll,uM=cE.dump;var lM=Jo("safeLoad","load"),cM=Jo("safeLoadAll","loadAll"),hM=Jo("safeDump","dump");var fM=$e(qv());Y();var Ny=require("commander");var Ui={name:"@turbo/codemod",version:"1.10.16",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var Mn=Ie(require("os")),Py=require("child_process"),at=Ie(require("chalk")),By=require("inquirer");var Y2=require("stream"),X2=require("util"),Hr=Ie(require("path"),1),lt=require("fs-extra"),iy=Ie(is(),1),sy=Ie(require("path"),1),oy=require("fs-extra"),ay=Ie(require("chalk"),1),tr=Ie(require("path"),1),uy=Ie(is(),1),St=require("fs-extra"),ly=Ie(m0(),1);function T0(e){return typeof e=="undefined"||e===null}function aD(e){return typeof e=="object"&&e!==null}function uD(e){return Array.isArray(e)?e:T0(e)?[]:[e]}function lD(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function cD(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function hD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var fD=T0,pD=aD,dD=uD,mD=cD,yD=hD,gD=lD,Ke={isNothing:fD,isObject:pD,toArray:dD,repeat:mD,isNegativeZero:yD,extend:gD};function F0(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
78
|
-
|
79
|
-
`+e.mark.snippet),n+" "+t):n}function oi(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=F0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oi.prototype=Object.create(Error.prototype);oi.prototype.constructor=oi;oi.prototype.toString=function(r){return this.name+": "+F0(this,r)};var ut=oi;function el(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function tl(e,r){return Ke.repeat(" ",r-e.length)+e}function bD(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=el(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ke.repeat(" ",r.indent)+tl((e.line-o+1).toString(),l)+" | "+f.str+`
|
80
|
-
`+s;for(f=el(e.buffer,n[a],i[a],e.position,h),s+=Ke.repeat(" ",r.indent)+tl((e.line+1).toString(),l)+" | "+f.str+`
|
81
|
-
`,s+=Ke.repeat("-",r.indent+l+3+f.pos)+`^
|
82
|
-
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=el(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ke.repeat(" ",r.indent)+tl((e.line+o+1).toString(),l)+" | "+f.str+`
|
83
|
-
`;return s.replace(/\n$/,"")}var vD=bD,_D=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wD=["scalar","sequence","mapping"];function ED(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function SD(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(_D.indexOf(t)===-1)throw new ut('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=ED(r.styleAliases||null),wD.indexOf(this.kind)===-1)throw new ut('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ze=SD;function y0(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function AD(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function nl(e){return this.extend(e)}nl.prototype.extend=function(r){var t=[],n=[];if(r instanceof Ze)n.push(r);else if(Array.isArray(r))n=n.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(t=t.concat(r.implicit)),r.explicit&&(n=n.concat(r.explicit));else throw new ut("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(c){if(!(c instanceof Ze))throw new ut("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new ut("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new ut("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(c){if(!(c instanceof Ze))throw new ut("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(nl.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=y0(i,"implicit"),i.compiledExplicit=y0(i,"explicit"),i.compiledTypeMap=AD(i.compiledImplicit,i.compiledExplicit),i};var P0=nl,B0=new Ze("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),L0=new Ze("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),I0=new Ze("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),M0=new P0({explicit:[B0,L0,I0]});function xD(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function kD(){return null}function CD(e){return e===null}var N0=new Ze("tag:yaml.org,2002:null",{kind:"scalar",resolve:xD,construct:kD,predicate:CD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function DD(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function RD(e){return e==="true"||e==="True"||e==="TRUE"}function OD(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var j0=new Ze("tag:yaml.org,2002:bool",{kind:"scalar",resolve:DD,construct:RD,predicate:OD,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function TD(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function FD(e){return 48<=e&&e<=55}function PD(e){return 48<=e&&e<=57}function BD(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!TD(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!FD(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!PD(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function LD(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function ID(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ke.isNegativeZero(e)}var $0=new Ze("tag:yaml.org,2002:int",{kind:"scalar",resolve:BD,construct:LD,predicate:ID,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),MD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ND(e){return!(e===null||!MD.test(e)||e[e.length-1]==="_")}function jD(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var $D=/^[-+]?[0-9]+e/;function HD(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ke.isNegativeZero(e))return"-0.0";return t=e.toString(10),$D.test(t)?t.replace("e",".e"):t}function qD(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ke.isNegativeZero(e))}var H0=new Ze("tag:yaml.org,2002:float",{kind:"scalar",resolve:ND,construct:jD,predicate:qD,represent:HD,defaultStyle:"lowercase"}),q0=M0.extend({implicit:[N0,j0,$0,H0]}),G0=q0,U0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z0=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 GD(e){return e===null?!1:U0.exec(e)!==null||z0.exec(e)!==null}function UD(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=U0.exec(e),r===null&&(r=z0.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function zD(e){return e.toISOString()}var W0=new Ze("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GD,construct:UD,instanceOf:Date,represent:zD});function WD(e){return e==="<<"||e===null}var V0=new Ze("tag:yaml.org,2002:merge",{kind:"scalar",resolve:WD}),ul=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
84
|
-
\r`;function VD(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=ul;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function KD(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=ul,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function YD(e){var r="",t=0,n,i,c=e.length,a=ul;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function XD(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var K0=new Ze("tag:yaml.org,2002:binary",{kind:"scalar",resolve:VD,construct:KD,predicate:XD,represent:YD}),ZD=Object.prototype.hasOwnProperty,QD=Object.prototype.toString;function JD(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,QD.call(i)!=="[object Object]")return!1;for(c in i)if(ZD.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function eR(e){return e!==null?e:[]}var Y0=new Ze("tag:yaml.org,2002:omap",{kind:"sequence",resolve:JD,construct:eR}),tR=Object.prototype.toString;function rR(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],tR.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function nR(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var X0=new Ze("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rR,construct:nR}),iR=Object.prototype.hasOwnProperty;function sR(e){if(e===null)return!0;var r,t=e;for(r in t)if(iR.call(t,r)&&t[r]!==null)return!1;return!0}function oR(e){return e!==null?e:{}}var Z0=new Ze("tag:yaml.org,2002:set",{kind:"mapping",resolve:sR,construct:oR}),ll=G0.extend({implicit:[W0,V0],explicit:[K0,Y0,X0,Z0]}),yr=Object.prototype.hasOwnProperty,Ps=1,Q0=2,J0=3,Bs=4,rl=1,aR=2,g0=3,uR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lR=/[\x85\u2028\u2029]/,cR=/[,\[\]\{\}]/,e2=/^(?:!|!!|![a-z\-]+!)$/i,t2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function b0(e){return Object.prototype.toString.call(e)}function jt(e){return e===10||e===13}function Nr(e){return e===9||e===32}function pt(e){return e===9||e===32||e===10||e===13}function wn(e){return e===44||e===91||e===93||e===123||e===125}function hR(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function fR(e){return e===120?2:e===117?4:e===85?8:0}function pR(e){return 48<=e&&e<=57?e-48:-1}function v0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
85
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function dR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var r2=new Array(256),n2=new Array(256);for(Mr=0;Mr<256;Mr++)r2[Mr]=v0(Mr)?1:0,n2[Mr]=v0(Mr);var Mr;function mR(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||ll,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function i2(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=vD(t),new ut(r,t)}function Re(e,r){throw i2(e,r)}function Ls(e,r){e.onWarning&&e.onWarning.call(null,i2(e,r))}var _0={YAML:function(r,t,n){var i,c,a;r.version!==null&&Re(r,"duplication of %YAML directive"),n.length!==1&&Re(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Re(r,"ill-formed argument of the YAML directive"),c=parseInt(i[1],10),a=parseInt(i[2],10),c!==1&&Re(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=a<2,a!==1&&a!==2&&Ls(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,c;n.length!==2&&Re(r,"TAG directive accepts exactly two arguments"),i=n[0],c=n[1],e2.test(i)||Re(r,"ill-formed tag handle (first argument) of the TAG directive"),yr.call(r.tagMap,i)&&Re(r,'there is a previously declared suffix for "'+i+'" tag handle'),t2.test(c)||Re(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{Re(r,"tag prefix is malformed: "+c)}r.tagMap[i]=c}};function mr(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Re(e,"expected valid JSON character");else uR.test(s)&&Re(e,"the stream contains non-printable characters");e.result+=s}}function w0(e,r,t,n){var i,c,a,s;for(Ke.isObject(t)||Re(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],yr.call(r,c)||(r[c]=t[c],n[c]=!0)}function En(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Re(e,"nested arrays are not supported inside keys"),typeof i=="object"&&b0(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&b0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)w0(e,r,c[f],t);else w0(e,r,c,t);else!e.json&&!yr.call(t,i)&&yr.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Re(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function cl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Re(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ze(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Nr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(jt(i))for(cl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&Ls(e,"deficient indentation"),n}function Ns(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||pt(t)))}function hl(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ke.repeat(`
|
86
|
-
`,r-1))}function yR(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),pt(d)||wn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),pt(i)||t&&wn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),pt(i)||t&&wn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),pt(n))break}else{if(e.position===e.lineStart&&Ns(e)||t&&wn(d))break;if(jt(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,ze(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(mr(e,c,a,!1),hl(e,e.line-o),c=a=e.position,s=!1),Nr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return mr(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function gR(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(mr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else jt(t)?(mr(e,n,i,!0),hl(e,ze(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Ns(e)?Re(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Re(e,"unexpected end of the stream within a single quoted scalar")}function bR(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return mr(e,t,e.position,!0),e.position++,!0;if(s===92){if(mr(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),jt(s))ze(e,!1,r);else if(s<256&&r2[s])e.result+=n2[s],e.position++;else if((a=fR(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=hR(s))>=0?c=(c<<4)+a:Re(e,"expected hexadecimal character");e.result+=dR(c),e.position++}else Re(e,"unknown escape sequence");t=n=e.position}else jt(s)?(mr(e,t,n,!0),hl(e,ze(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Ns(e)?Re(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Re(e,"unexpected end of the stream within a double quoted scalar")}function vR(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(ze(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Re(e,"expected the node content, but found ','"):Re(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),pt(f)&&(h=u=!0,e.position++,ze(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,Sn(e,r,Ps,!1,!0),b=e.tag,y=e.result,ze(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),ze(e,!0,r),Sn(e,r,Ps,!1,!0),_=e.result),d?En(e,s,p,b,y,_,n,i,c):h?s.push(En(e,null,p,b,y,_,n,i,c)):s.push(y),ze(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Re(e,"unexpected end of the stream within a flow collection")}function _R(e,r){var t,n,i=rl,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)rl===i?i=h===43?g0:aR:Re(e,"repeat of a chomping mode identifier");else if((l=pR(h))>=0)l===0?Re(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Re(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Nr(h)){do h=e.input.charCodeAt(++e.position);while(Nr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!jt(h)&&h!==0)}for(;h!==0;){for(cl(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),jt(h)){o++;continue}if(e.lineIndent<s){i===g0?e.result+=Ke.repeat(`
|
87
|
-
`,c?1+o:o):i===rl&&c&&(e.result+=`
|
88
|
-
`);break}for(n?Nr(h)?(f=!0,e.result+=Ke.repeat(`
|
89
|
-
`,c?1+o:o)):f?(f=!1,e.result+=Ke.repeat(`
|
90
|
-
`,o+1)):o===0?c&&(e.result+=" "):e.result+=Ke.repeat(`
|
91
|
-
`,o):e.result+=Ke.repeat(`
|
92
|
-
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!jt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);mr(e,t,e.position,!1)}return!0}function E0(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!pt(a))));){if(s=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,Sn(e,r,J0,!1,!0),c.push(e.result),ze(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Re(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function wR(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&pt(n))g===63?(b&&(En(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Re(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!Sn(e,t,Q0,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Nr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),pt(g)||Re(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(En(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Re(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Re(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),Sn(e,r,Bs,!0,i)&&(b?p=e.result:y=e.result),b||(En(e,h,u,d,p,y,a,s,o),d=p=y=null),ze(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Re(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&En(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function ER(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Re(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Re(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!pt(a);)a===33&&(n?Re(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),e2.test(i)||Re(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),cR.test(c)&&Re(e,"tag suffix cannot contain flow indicator characters")}c&&!t2.test(c)&&Re(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Re(e,"tag name is malformed: "+c)}return t?e.tag=c:yr.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Re(e,'undeclared tag handle "'+i+'"'),!0}function SR(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Re(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!pt(t)&&!wn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function AR(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!pt(n)&&!wn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),yr.call(e.anchorMap,t)||Re(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],ze(e,!0,-1),!0}function Sn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=Bs===t||J0===t,n&&ze(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;ER(e)||SR(e);)ze(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||Bs===t)&&(Ps===t||Q0===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(E0(e,b)||wR(e,b,y))||vR(e,y)?l=!0:(a&&_R(e,y)||gR(e,y)||bR(e,y)?l=!0:AR(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Re(e,"alias node should not have any properties")):yR(e,y,Ps===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&E0(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Re(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(yr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Re(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Re(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Re(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function xR(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!pt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Re(e,"directive name must not be less than one character in length");a!==0;){for(;Nr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!jt(a));break}if(jt(a))break;for(t=e.position;a!==0&&!pt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&cl(e),yr.call(_0,n)?_0[n](e,n,i):Ls(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):c&&Re(e,"directives end mark is expected"),Sn(e,e.lineIndent-1,Bs,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&lR.test(e.input.slice(r,e.position))&&Ls(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ns(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)Re(e,"end of the stream or a document separator is expected");else return}function s2(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
93
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new mR(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Re(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)xR(t);return t.documents}function kR(e,r,t){r!==null&&typeof r=="object"&&typeof t=="undefined"&&(t=r,r=null);var n=s2(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function CR(e,r){var t=s2(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ut("expected a single document in the stream, but found more")}}var DR=kR,RR=CR,o2={loadAll:DR,load:RR},a2=Object.prototype.toString,u2=Object.prototype.hasOwnProperty,fl=65279,OR=9,ai=10,TR=13,FR=32,PR=33,BR=34,il=35,LR=37,IR=38,MR=39,NR=42,l2=44,jR=45,Is=58,$R=61,HR=62,qR=63,GR=64,c2=91,h2=93,UR=96,f2=123,zR=124,p2=125,nt={};nt[0]="\\0";nt[7]="\\a";nt[8]="\\b";nt[9]="\\t";nt[10]="\\n";nt[11]="\\v";nt[12]="\\f";nt[13]="\\r";nt[27]="\\e";nt[34]='\\"';nt[92]="\\\\";nt[133]="\\N";nt[160]="\\_";nt[8232]="\\L";nt[8233]="\\P";var WR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],VR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function KR(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&u2.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function YR(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ut("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ke.repeat("0",n-r.length)+r}var XR=1,ui=2;function ZR(e){this.schema=e.schema||ll,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ke.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=KR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ui:XR,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function S0(e,r){for(var t=Ke.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
94
|
-
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
95
|
-
`&&(c+=t),c+=a;return c}function sl(e,r){return`
|
96
|
-
`+Ke.repeat(" ",e.indent*r)}function QR(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Ms(e){return e===FR||e===OR}function li(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==fl||65536<=e&&e<=1114111}function A0(e){return li(e)&&e!==fl&&e!==TR&&e!==ai}function x0(e,r,t){var n=A0(e),i=n&&!Ms(e);return(t?n:n&&e!==l2&&e!==c2&&e!==h2&&e!==f2&&e!==p2)&&e!==il&&!(r===Is&&!i)||A0(r)&&!Ms(r)&&e===il||r===Is&&i}function JR(e){return li(e)&&e!==fl&&!Ms(e)&&e!==jR&&e!==qR&&e!==Is&&e!==l2&&e!==c2&&e!==h2&&e!==f2&&e!==p2&&e!==il&&e!==IR&&e!==NR&&e!==PR&&e!==zR&&e!==$R&&e!==HR&&e!==MR&&e!==BR&&e!==LR&&e!==GR&&e!==UR}function eO(e){return!Ms(e)&&e!==Is}function si(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function d2(e){var r=/^\n* /;return r.test(e)}var m2=1,ol=2,y2=3,g2=4,_n=5;function tO(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=JR(si(e,0))&&eO(si(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=si(e,o),!li(f))return _n;y=y&&x0(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=si(e,o),f===ai)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!li(f))return _n;y=y&&x0(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?m2:c===ui?_n:ol:t>9&&d2(e)?_n:a?c===ui?_n:ol:u?g2:y2}function rO(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===ui?'""':"''";if(!e.noCompatMode&&(WR.indexOf(r)!==-1||VR.test(r)))return e.quotingType===ui?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return QR(e,f)}switch(tO(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case m2:return r;case ol:return"'"+r.replace(/'/g,"''")+"'";case y2:return"|"+k0(r,e.indent)+C0(S0(r,c));case g2:return">"+k0(r,e.indent)+C0(S0(nO(r,a),c));case _n:return'"'+iO(r)+'"';default:throw new ut("impossible error: invalid scalar style")}}()}function k0(e,r){var t=d2(e)?String(r):"",n=e[e.length-1]===`
|
97
|
-
`,i=n&&(e[e.length-2]===`
|
98
|
-
`||e===`
|
99
|
-
`),c=i?"+":n?"":"-";return t+c+`
|
100
|
-
`}function C0(e){return e[e.length-1]===`
|
101
|
-
`?e.slice(0,-1):e}function nO(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
102
|
-
`);return f=f!==-1?f:e.length,t.lastIndex=f,D0(e.slice(0,f),r)}(),i=e[0]===`
|
103
|
-
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
104
|
-
`:"")+D0(o,r),i=c}return n}function D0(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
105
|
-
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
106
|
-
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
107
|
-
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function iO(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=si(e,i),n=nt[t],!n&&li(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||YR(t);return r}function sO(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Qt(e,r,s,!1,!1)||typeof s=="undefined"&&Qt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function R0(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Qt(e,r+1,o,!0,!0,!1,!0)||typeof o=="undefined"&&Qt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=sl(e,r)),e.dump&&ai===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function oO(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Qt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Qt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function aO(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ut("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=sl(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Qt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&ai===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=sl(e,r)),Qt(e,r+1,l,!0,h)&&(e.dump&&ai===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function O0(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,a2.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(u2.call(s.represent,o))n=s.represent[o](r,o);else throw new ut("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Qt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,O0(e,t,!1)||O0(e,t,!0);var s=a2.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(aO(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(oO(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?R0(e,r-1,e.dump,i):R0(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(sO(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&rO(e,e.dump,r,c,o);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ut("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function uO(e,r){var t=[],n=[],i,c;for(al(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function al(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)al(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)al(e[n[i]],r,t)}function lO(e,r){r=r||{};var t=new ZR(r);t.noRefs||uO(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Qt(t,0,n,!0,!0)?t.dump+`
|
108
|
-
`:""}var cO=lO,hO={dump:cO};function pl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var fO=Ze,pO=P0,dO=M0,mO=q0,yO=G0,gO=ll,bO=o2.load,vO=o2.loadAll,_O=hO.dump,wO=ut,EO={binary:K0,float:H0,map:I0,null:N0,pairs:X0,set:Z0,timestamp:W0,bool:j0,int:$0,merge:V0,omap:Y0,seq:L0,str:B0},SO=pl("safeLoad","load"),AO=pl("safeLoadAll","loadAll"),xO=pl("safeDump","dump"),kO={Type:fO,Schema:pO,FAILSAFE_SCHEMA:dO,JSON_SCHEMA:mO,CORE_SCHEMA:yO,DEFAULT_SCHEMA:gO,load:bO,loadAll:vO,dump:_O,YAMLException:wO,types:EO,safeLoad:SO,safeLoadAll:AO,safeDump:xO},b2=kO;var yi=Ie(require("path"),1),Ht=require("fs-extra"),Tn=Ie(require("path"),1),qt=require("fs-extra"),gi=Ie(require("path"),1),Gt=require("fs-extra"),gI=Ie(require("chalk"),1),bI=Ie(require("gradient-string"),1),vI=Ie(is(),1),_I=Ie(require("ora"),1),wI=require("semver"),EI=Ie(require("chalk"),1),An=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),CO=Object.create,Al=Object.defineProperty,DO=Object.getOwnPropertyDescriptor,RO=Object.getOwnPropertyNames,OO=Object.getPrototypeOf,TO=Object.prototype.hasOwnProperty,ce=(e=>typeof An<"u"?An:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof An<"u"?An:r)[t]}):e)(function(e){if(typeof An<"u")return An.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),FO=(e,r)=>()=>(e&&(r=e(e=0)),r),re=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),PO=(e,r)=>{for(var t in r)Al(e,t,{get:r[t],enumerable:!0})},BO=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of RO(r))!TO.call(e,i)&&i!==t&&Al(e,i,{get:()=>r[i],enumerable:!(n=DO(r,i))||n.enumerable});return e},Qe=(e,r,t)=>(t=e!=null?CO(OO(e)):{},BO(r||!e||!e.__esModule?Al(t,"default",{value:e,enumerable:!0}):t,e)),Q=FO(()=>{}),LO=re((e,r)=>{"use strict";Q();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),I2=re((e,r)=>{"use strict";Q();var t=LO(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),IO=re((e,r)=>{Q(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),M2=re((e,r)=>{Q();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=ce("assert"),c=IO(),a=/^win/i.test(t.platform),s=ce("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_}),MO=re((e,r)=>{Q(),r.exports=c,c.sync=a;var t=ce("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),NO=re((e,r)=>{Q(),r.exports=n,n.sync=i;var t=ce("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),jO=re((e,r)=>{Q();var t=ce("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=MO():n=NO(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),$O=re((e,r)=>{Q();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ce("path"),i=t?";":":",c=jO(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,C)=>{if(!x&&C)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),N2=re((e,r)=>{"use strict";Q();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),HO=re((e,r)=>{"use strict";Q();var t=ce("path"),n=$O(),i=N2();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),qO=re((e,r)=>{"use strict";Q();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),GO=re((e,r)=>{"use strict";Q(),r.exports=/^#!(.*)/}),UO=re((e,r)=>{"use strict";Q();var t=GO();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),zO=re((e,r)=>{"use strict";Q();var t=ce("fs"),n=UO();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),WO=re((e,r)=>{"use strict";Q();var t=ce("path"),n=HO(),i=qO(),c=zO(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),VO=re((e,r)=>{"use strict";Q();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),KO=re((e,r)=>{"use strict";Q();var t=ce("child_process"),n=WO(),i=VO();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),YO=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n=typeof t=="string"?`
|
109
|
-
`:`
|
110
|
-
`.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),XO=re((e,r)=>{"use strict";Q();var t=ce("path"),n=N2(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),ZO=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=r}),j2=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),QO=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=ce("os"),t=ZO(),n=j2(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),JO=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=ce("os"),t=QO(),n=j2(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),eT=re((e,r)=>{"use strict";Q();var{signalsByName:t}=JO(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
|
111
|
-
${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
|
112
|
-
`);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),tT=re((e,r)=>{"use strict";Q();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),rT=re((e,r)=>{"use strict";Q();var t=ce("os"),n=M2(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),nT=re((e,r)=>{"use strict";Q();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),iT=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),sT=re((e,r)=>{"use strict";Q();var{constants:t}=ce("buffer"),n=ce("stream"),{promisify:i}=ce("util"),c=iT(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),oT=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),aT=re((e,r)=>{"use strict";Q();var t=nT(),n=sT(),i=oT(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),uT=re((e,r)=>{"use strict";Q();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),lT=re((e,r)=>{"use strict";Q();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),cT=re((e,r)=>{"use strict";Q();var t=ce("path"),n=ce("child_process"),i=KO(),c=YO(),a=XO(),s=I2(),o=eT(),f=tT(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=rT(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=aT(),{mergePromise:S,getSpawnedPromise:E}=uT(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=lT(),A=1e3*1e3*100,x=({env:D,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...D}:D;return P?a.env({env:H,cwd:I,execPath:B}):H},C=(D,O,P={})=>{let I=i._parse(D,O,P);return D=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(D,".exe")==="cmd"&&O.unshift("/q"),{file:D,args:O,options:P,parsed:I}},F=(D,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":D.stripFinalNewline?c(O):O,T=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let J=E(G),L=u(G,I.options,J),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:W},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let z=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:W,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return z;throw z}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(D,O,P)=>{let I=C(D,O,P),B=v(D,O),H=w(D,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let J=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:J,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:J,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(D,O)=>{let[P,...I]=m(D);return T(P,I,O)},r.exports.commandSync=(D,O)=>{let[P,...I]=m(D);return T.sync(P,I,O)},r.exports.node=(D,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(J=>!J.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,D,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});Q();var d$=Qe(cT());var hT=re((e,r)=>{"use strict";Q();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),fT=re((e,r)=>{"use strict";Q(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),$2=re((e,r)=>{Q();var t=fT(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),pT=re((e,r)=>{Q();var t=$2();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),dT=re((e,r)=>{Q();var t=$2(),n=pT(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),mT=re((e,r)=>{"use strict";Q();var t=dT(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),yT=re((e,r)=>{"use strict";Q(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),gT=re((e,r)=>{"use strict";Q();var t=ce("os"),n=yT(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),bT=re((e,r)=>{"use strict";Q();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
113
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Ks=re((e,r)=>{"use strict";Q();var t=hT(),n=mT(),i=gT().stdout,c=bT(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports}),vT=re((e,r)=>{"use strict";Q(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),H2=re((e,r)=>{Q();var t=vT(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),_T=re((e,r)=>{Q();var t=H2();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),wT=re((e,r)=>{Q();var t=H2(),n=_T(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),q2=re((e,r)=>{"use strict";Q();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=wT());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),ET=re((e,r)=>{"use strict";Q(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),G2=re((e,r)=>{"use strict";Q();var t=ce("os"),n=ce("tty"),i=ET(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),ST=re((e,r)=>{"use strict";Q();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
114
|
-
`:`
|
115
|
-
`)+a,o=s+1,s=i.indexOf(`
|
116
|
-
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),AT=re((e,r)=>{"use strict";Q();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
117
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),xT=re((e,r)=>{"use strict";Q();var t=q2(),{stdout:n,stderr:i}=G2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=ST(),s=["ansi","ansi","ansi256","ansi16m"],o=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},l=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=l,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))o[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};o.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)o[v]={get(){let{level:m}=this;return function(...w){let A=y(t.color[s[m]][v](...w),t.color.close,this._styler);return b(this,A,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);o[m]={get(){let{level:w}=this;return function(...A){let x=y(t.bgColor[s[w]][v](...A),t.bgColor.close,this._styler);return b(this,x,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...o,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let A,x;return w===void 0?(A=v,x=m):(A=w.openAll+v,x=m+w.closeAll),{open:v,close:m,openAll:A,closeAll:x,parent:w}},b=(v,m,w)=>{let A=(...x)=>_(A,x.length===1?""+x[0]:x.join(" "));return A.__proto__=p,A._generator=v,A._styler=m,A._isEmpty=w,A},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:A,closeAll:x}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=c(m,w.close,w.open),w=w.parent;let C=m.indexOf(`
|
118
|
-
`);return C!==-1&&(m=a(m,x,A,C)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let C=1;C<w.length;C++)x.push(String(A[C-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[C]));return g===void 0&&(g=AT()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),kT=re((e,r)=>{"use strict";Q();var t=I2(),n=M2();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),CT=re(e=>{"use strict";Q();var r=kT(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),DT=re((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),RT=re((e,r)=>{"use strict";Q();var t=Object.assign({},DT()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),OT=re((e,r)=>{"use strict";Q();var t=Ks(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),TT=re((e,r)=>{"use strict";Q(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),FT=re((e,r)=>{"use strict";Q();var t=TT();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),PT=re((e,r)=>{Q();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),BT=re((e,r)=>{Q();var t=PT();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),LT=re((e,r)=>{Q(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),IT=re((e,r)=>{"use strict";Q();var t=BT(),n=LT(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),MT=re((e,r)=>{"use strict";Q(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),NT=re((e,r)=>{Q();var t=ce("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),jT=re((e,r)=>{"use strict";Q();var t=ce("readline"),n=xT(),i=CT(),c=RT(),a=OT(),s=FT(),o=IT(),f=MT(),l=NT(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
|
119
|
-
`).reduce((E,v)=>E+Math.max(1,Math.ceil(o(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
120
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
|
121
|
-
`),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),$T=re((e,r)=>{"use strict";Q();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
122
|
-
`:`
|
123
|
-
`)+a,o=s+1,s=i.indexOf(`
|
124
|
-
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),HT=re((e,r)=>{"use strict";Q();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
125
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),qT=re((e,r)=>{"use strict";Q();var t=q2(),{stdout:n,stderr:i}=G2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=$T(),{isArray:s}=Array,o=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),l=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let A=n?n.level:0;m.level=w.level===void 0?A:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return l(w,m),w.template=(...A)=>E(w.template,...A),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let A=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:A}),A}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...A){let x=b(t.color[o[w]][m](...A),t.color.close,this._styler);return _(this,x,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:A}=this;return function(...x){let C=b(t.bgColor[o[A]][m](...x),t.bgColor.close,this._styler);return _(this,C,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,A)=>{let x,C;return A===void 0?(x=m,C=w):(x=A.openAll+m,C=w+A.closeAll),{open:m,close:w,openAll:x,closeAll:C,parent:A}},_=(m,w,A)=>{let x=(...C)=>s(C[0])&&s(C[0].raw)?g(x,E(x,...C)):g(x,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(x,y),x._generator=m,x._styler=w,x._isEmpty=A,x},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let A=m._styler;if(A===void 0)return w;let{openAll:x,closeAll:C}=A;if(w.indexOf("\x1B")!==-1)for(;A!==void 0;)w=c(w,A.close,A.open),A=A.parent;let F=w.indexOf(`
|
126
|
-
`);return F!==-1&&(w=a(w,C,x,F)),x+w+C},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),C=[A.raw[0]];for(let F=1;F<A.length;F++)C.push(String(x[F-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[F]));return S===void 0&&(S=HT()),S(m,C.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),GT=re((e,r)=>{Q(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,z){if(j=j||"",z=z||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,z);var k=h(j);this._originalInput=j,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=z.format||k.format,this._gradientType=z.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=k.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),z,k,U,X,ne,me;return z=j.r/255,k=j.g/255,U=j.b/255,z<=.03928?X=z/12.92:X=t.pow((z+.055)/1.055,2.4),k<=.03928?ne=k/12.92:ne=t.pow((k+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=t.pow((U+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=J(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.v*100);return this._a==1?"hsv("+z+", "+k+"%, "+U+"%)":"hsva("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),z=a(j.h*360),k=a(j.s*100),U=a(j.l*100);return this._a==1?"hsl("+z+", "+k+"%, "+U+"%)":"hsla("+z+", "+k+"%, "+U+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(L(this._r,255)*100)+"%",g:a(L(this._g,255)*100)+"%",b:a(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%)":"rgba("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var z="#"+S(this._r,this._g,this._b,this._a),k=z,U=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);k="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+U+"startColorstr="+z+",endColorstr="+k+")"},toString:function(j){var z=!!j;j=j||this._format;var k=!1,U=this._a<1&&this._a>=0,X=!z&&U&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(k=this.toRgbString()),j==="prgb"&&(k=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(k=this.toHexString()),j==="hex3"&&(k=this.toHexString(!0)),j==="hex4"&&(k=this.toHex8String(!0)),j==="hex8"&&(k=this.toHex8String()),j==="name"&&(k=this.toName()),j==="hsl"&&(k=this.toHslString()),j==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,z){var k=j.apply(null,[this].concat([].slice.call(z)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(j,z){return j.apply(null,[this].concat([].slice.call(z)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},l.fromRatio=function(j,z){if(typeof j=="object"){var k={};for(var U in j)j.hasOwnProperty(U)&&(U==="a"?k[U]=j[U]:k[U]=N(j[U]));j=k}return l(j,z)};function h(j){var z={r:0,g:0,b:0},k=1,U=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(z=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(U=N(j.s),X=N(j.v),z=b(j.h,U,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(U=N(j.s),ne=N(j.l),z=p(j.h,U,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(k=j.a)),k=J(k),{ok:me,format:j.format||se,r:s(255,o(z.r,0)),g:s(255,o(z.g,0)),b:s(255,o(z.b,0)),a:k}}function u(j,z,k){return{r:L(j,255)*255,g:L(z,255)*255,b:L(k,255)*255}}function d(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=(U+X)/2;if(U==X)ne=me=0;else{var fe=U-X;switch(me=se>.5?fe/(2-U-X):fe/(U+X),U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,z,k){var U,X,ne;j=L(j,360),z=L(z,100),k=L(k,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(z===0)U=X=ne=k;else{var se=k<.5?k*(1+z):k+z-k*z,fe=2*k-se;U=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:U*255,g:X*255,b:ne*255}}function y(j,z,k){j=L(j,255),z=L(z,255),k=L(k,255);var U=o(j,z,k),X=s(j,z,k),ne,me,se=U,fe=U-X;if(me=U===0?0:fe/U,U==X)ne=0;else{switch(U){case j:ne=(z-k)/fe+(z<k?6:0);break;case z:ne=(k-j)/fe+2;break;case k:ne=(j-z)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,z,k){j=L(j,360)*6,z=L(z,100),k=L(k,100);var U=t.floor(j),X=j-U,ne=k*(1-z),me=k*(1-X*z),se=k*(1-(1-X)*z),fe=U%6,ie=[k,me,ne,ne,se,k][fe],ye=[se,k,k,me,ne,ne][fe],we=[ne,ne,se,k,k,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,z,k,U){var X=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return U&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,z,k,U,X){var ne=[Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16)),Z(W(U))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,z,k,U){var X=[Z(W(U)),Z(a(j).toString(16)),Z(a(z).toString(16)),Z(a(k).toString(16))];return X.join("")}l.equals=function(j,z){return!j||!z?!1:l(j).toRgbString()==l(z).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s-=z/100,k.s=M(k.s),l(k)}function v(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.s+=z/100,k.s=M(k.s),l(k)}function m(j){return l(j).desaturate(100)}function w(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l+=z/100,k.l=M(k.l),l(k)}function A(j,z){z=z===0?0:z||10;var k=l(j).toRgb();return k.r=o(0,s(255,k.r-a(255*-(z/100)))),k.g=o(0,s(255,k.g-a(255*-(z/100)))),k.b=o(0,s(255,k.b-a(255*-(z/100)))),l(k)}function x(j,z){z=z===0?0:z||10;var k=l(j).toHsl();return k.l-=z/100,k.l=M(k.l),l(k)}function C(j,z){var k=l(j).toHsl(),U=(k.h+z)%360;return k.h=U<0?360+U:U,l(k)}function F(j){var z=l(j).toHsl();return z.h=(z.h+180)%360,l(z)}function T(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+120)%360,s:z.s,l:z.l}),l({h:(k+240)%360,s:z.s,l:z.l})]}function D(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+90)%360,s:z.s,l:z.l}),l({h:(k+180)%360,s:z.s,l:z.l}),l({h:(k+270)%360,s:z.s,l:z.l})]}function O(j){var z=l(j).toHsl(),k=z.h;return[l(j),l({h:(k+72)%360,s:z.s,l:z.l}),l({h:(k+216)%360,s:z.s,l:z.l})]}function P(j,z,k){z=z||6,k=k||30;var U=l(j).toHsl(),X=360/k,ne=[l(j)];for(U.h=(U.h-(X*z>>1)+720)%360;--z;)U.h=(U.h+X)%360,ne.push(l(U));return ne}function I(j,z){z=z||6;for(var k=l(j).toHsv(),U=k.h,X=k.s,ne=k.v,me=[],se=1/z;z--;)me.push(l({h:U,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,z,k){k=k===0?0:k||50;var U=l(j).toRgb(),X=l(z).toRgb(),ne=k/100,me={r:(X.r-U.r)*ne+U.r,g:(X.g-U.g)*ne+U.g,b:(X.b-U.b)*ne+U.b,a:(X.a-U.a)*ne+U.a};return l(me)},l.readability=function(j,z){var k=l(j),U=l(z);return(t.max(k.getLuminance(),U.getLuminance())+.05)/(t.min(k.getLuminance(),U.getLuminance())+.05)},l.isReadable=function(j,z,k){var U=l.readability(j,z),X,ne;switch(ne=!1,X=pe(k),X.level+X.size){case"AAsmall":case"AAAlarge":ne=U>=4.5;break;case"AAlarge":ne=U>=3;break;case"AAAsmall":ne=U>=7;break}return ne},l.mostReadable=function(j,z,k){var U=null,X=0,ne,me,se,fe;k=k||{},me=k.includeFallbackColors,se=k.level,fe=k.size;for(var ie=0;ie<z.length;ie++)ne=l.readability(j,z[ie]),ne>X&&(X=ne,U=l(z[ie]));return l.isReadable(j,U,{level:se,size:fe})||!me?U:(k.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],k))};var B=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=G(B);function G(j){var z={};for(var k in j)j.hasOwnProperty(k)&&(z[j[k]]=k);return z}function J(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function L(j,z){K(j)&&(j="100%");var k=q(j);return j=s(z,o(0,parseFloat(j))),k&&(j=parseInt(j*z,10)/100),t.abs(j-z)<1e-6?1:j%z/parseFloat(z)}function M(j){return s(1,o(0,j))}function R(j){return parseInt(j,16)}function K(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function q(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Z(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function ee(j){return R(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",z="[-\\+]?\\d*\\.\\d+%?",k="(?:"+z+")|(?:"+j+")",U="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",X="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var z=!1;if(B[j])j=B[j],z=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=ae.rgb.exec(j))?{r:k[1],g:k[2],b:k[3]}:(k=ae.rgba.exec(j))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=ae.hsl.exec(j))?{h:k[1],s:k[2],l:k[3]}:(k=ae.hsla.exec(j))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=ae.hsv.exec(j))?{h:k[1],s:k[2],v:k[3]}:(k=ae.hsva.exec(j))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=ae.hex8.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),a:ee(k[4]),format:z?"name":"hex8"}:(k=ae.hex6.exec(j))?{r:R(k[1]),g:R(k[2]),b:R(k[3]),format:z?"name":"hex"}:(k=ae.hex4.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),a:ee(k[4]+""+k[4]),format:z?"name":"hex8"}:(k=ae.hex3.exec(j))?{r:R(k[1]+""+k[1]),g:R(k[2]+""+k[2]),b:R(k[3]+""+k[3]),format:z?"name":"hex"}:!1}function pe(j){var z,k;return j=j||{level:"AA",size:"small"},z=(j.level||"AA").toUpperCase(),k=(j.size||"small").toLowerCase(),z!=="AA"&&z!=="AAA"&&(z="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:z,size:k}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),UT=re((e,r)=>{Q();var t=GT(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),zT=re((e,r)=>{"use strict";Q();var t=qT(),n=UT(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
|
127
|
-
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
128
|
-
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),WT={};PO(WT,{bold:()=>JT,dimmed:()=>e3,error:()=>n3,info:()=>QT,item:()=>t3,log:()=>vi,turboBlue:()=>Dn,turboGradient:()=>XT,turboLoader:()=>ZT,turboRed:()=>W2,warn:()=>r3,yellow:()=>V2});Q();var bi=Qe(Ks()),VT=Qe(jT()),KT=Qe(zT()),U2="#0099F7",z2="#F11712",YT="#FFFF00",XT=(0,KT.default)(U2,z2),Dn=bi.default.hex(U2),W2=bi.default.hex(z2),V2=bi.default.hex(YT),ZT=e=>(0,VT.default)({text:e,spinner:{frames:[" ",Dn("> "),Dn(">> "),Dn(">>>")]}}),QT=(...e)=>{vi(Dn.bold(">>>"),...e)},JT=(...e)=>{vi(bi.default.bold(...e))},e3=(...e)=>{vi(bi.default.dim(...e))},t3=(...e)=>{vi(Dn.bold(" \u2022"),...e)},vi=(...e)=>{console.log(...e)},r3=(...e)=>{console.error(V2.bold(">>>"),...e)},n3=(...e)=>{console.error(W2.bold(">>>"),...e)};Q();var i3=re((e,r)=>{Q();var t=ce("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(F,T){F&&F.code==="ENOENT"?g(E,v,x):m(C)})},A),A<100&&(A+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var C;if(x&&typeof x=="function"){var F=0;C=function(T,D,O){if(T&&T.code==="EAGAIN"&&F<10)return F++,g.call(o,E,v,m,w,A,C);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(C){m&&m(x||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),s3=re((e,r)=>{Q();var t=ce("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),o3=re((e,r)=>{"use strict";Q(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),je=re((e,r)=>{Q();var t=ce("fs"),n=i3(),i=s3(),c=o3(),a=ce("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
129
|
-
GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),ce("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=R,g.createWriteStream=K;var S=g.readFile;g.readFile=E;function E(N,W,ee){return typeof W=="function"&&(ee=W,W=null),ae(N,W,ee);function ae(oe,de,pe,j){return S(oe,de,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?p([ae,[oe,de,pe],z,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return v(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return w(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=C);function C(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=0),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return x(de,pe,j,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var F=g.readdir;g.readdir=D;var T=/^v[0-5]\./;function D(N,W,ee){typeof W=="function"&&(ee=W,W=null);var ae=T.test(process.version)?function(de,pe,j,z){return F(de,oe(de,pe,j,z))}:function(de,pe,j,z){return F(de,pe,oe(de,pe,j,z))};return ae(N,W,ee);function oe(de,pe,j,z){return function(k,U){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([ae,[de,pe,j],k,z||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof j=="function"&&j.call(this,k,U))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);G=O.ReadStream,L=O.WriteStream}var P=g.ReadStream;P&&(G.prototype=Object.create(P.prototype),G.prototype.open=J);var I=g.WriteStream;I&&(L.prototype=Object.create(I.prototype),L.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return G},set:function(N){G=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return L},set:function(N){L=N},enumerable:!0,configurable:!0});var B=G;Object.defineProperty(g,"FileReadStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var H=L;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function G(N,W){return this instanceof G?(P.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function J(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee),N.read())})}function L(N,W){return this instanceof L?(I.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function M(){var N=this;Z(N.path,N.flags,N.mode,function(W,ee){W?(N.destroy(),N.emit("error",W)):(N.fd=ee,N.emit("open",ee))})}function R(N,W){return new g.ReadStream(N,W)}function K(N,W){return new g.WriteStream(N,W)}var q=g.open;g.open=Z;function Z(N,W,ee,ae){return typeof ee=="function"&&(ae=ee,ee=null),oe(N,W,ee,ae);function oe(de,pe,j,z,k){return q(de,pe,j,function(U,X){U&&(U.code==="EMFILE"||U.code==="ENFILE")?p([oe,[de,pe,j,z],U,k||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,C=Math.max(w-m,1),F=Math.min(C*1.2,100);x>=F?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}}),wt=re(e=>{"use strict";Q(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),Pn=re(e=>{"use strict";Q();var r=wt().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),a3=re((e,r)=>{"use strict";Q();var t=ce("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),u3=re((e,r)=>{"use strict";Q();var t=Pn(),{checkPath:n}=a3(),i=c=>typeof c=="number"?c:{mode:511,...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),Ut=re((e,r)=>{"use strict";Q();var t=wt().fromPromise,{makeDir:n,makeDirSync:i}=u3(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Gr=re((e,r)=>{"use strict";Q();var t=wt().fromPromise,n=Pn();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),K2=re((e,r)=>{"use strict";Q();var t=je();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),Bn=re((e,r)=>{"use strict";Q();var t=Pn(),n=ce("path"),i=ce("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),l3=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=Ut().mkdirs,c=Gr().pathExists,a=K2().utimesMillis,s=Bn();function o(T,D,O,P){typeof O=="function"&&!P?(P=O,O={}):typeof O=="function"&&(O={filter:O}),P=P||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
130
|
-
|
131
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(T,D,"copy",O,(I,B)=>{if(I)return P(I);let{srcStat:H,destStat:G}=B;s.checkParentPaths(T,H,D,"copy",J=>{if(J)return P(J);l(T,D,O,(L,M)=>{if(L)return P(L);if(!M)return P();f(G,T,D,O,P)})})})}function f(T,D,O,P,I){let B=n.dirname(O);c(B,(H,G)=>{if(H)return I(H);if(G)return h(T,D,O,P,I);i(B,J=>J?I(J):h(T,D,O,P,I))})}function l(T,D,O,P){if(!O.filter)return P(null,!0);Promise.resolve(O.filter(T,D)).then(I=>P(null,I),I=>P(I))}function h(T,D,O,P,I){(P.dereference?t.stat:t.lstat)(D,(B,H)=>B?I(B):H.isDirectory()?v(H,T,D,O,P,I):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,T,D,O,P,I):H.isSymbolicLink()?C(T,D,O,P,I):H.isSocket()?I(new Error(`Cannot copy a socket file: ${D}`)):H.isFIFO()?I(new Error(`Cannot copy a FIFO pipe: ${D}`)):I(new Error(`Unknown file: ${D}`)))}function u(T,D,O,P,I,B){return D?d(T,O,P,I,B):p(T,O,P,I,B)}function d(T,D,O,P,I){if(P.overwrite)t.unlink(O,B=>B?I(B):p(T,D,O,P,I));else return P.errorOnExist?I(new Error(`'${O}' already exists`)):I()}function p(T,D,O,P,I){t.copyFile(D,O,B=>B?I(B):P.preserveTimestamps?y(T.mode,D,O,I):S(O,T.mode,I))}function y(T,D,O,P){return b(T)?_(O,T,I=>I?P(I):g(T,D,O,P)):g(T,D,O,P)}function b(T){return(T&128)===0}function _(T,D,O){return S(T,D|128,O)}function g(T,D,O,P){E(D,O,I=>I?P(I):S(O,T,P))}function S(T,D,O){return t.chmod(T,D,O)}function E(T,D,O){t.stat(T,(P,I)=>P?O(P):a(D,I.atime,I.mtime,O))}function v(T,D,O,P,I,B){return D?w(O,P,I,B):m(T.mode,O,P,I,B)}function m(T,D,O,P,I){t.mkdir(O,B=>{if(B)return I(B);w(D,O,P,H=>H?I(H):S(O,T,I))})}function w(T,D,O,P){t.readdir(T,(I,B)=>I?P(I):A(B,T,D,O,P))}function A(T,D,O,P,I){let B=T.pop();return B?x(T,B,D,O,P,I):I()}function x(T,D,O,P,I,B){let H=n.join(O,D),G=n.join(P,D);l(H,G,I,(J,L)=>{if(J)return B(J);if(!L)return A(T,O,P,I,B);s.checkPaths(H,G,"copy",I,(M,R)=>{if(M)return B(M);let{destStat:K}=R;h(K,H,G,I,q=>q?B(q):A(T,O,P,I,B))})})}function C(T,D,O,P,I){t.readlink(D,(B,H)=>{if(B)return I(B);if(P.dereference&&(H=n.resolve(process.cwd(),H)),T)t.readlink(O,(G,J)=>G?G.code==="EINVAL"||G.code==="UNKNOWN"?t.symlink(H,O,I):I(G):(P.dereference&&(J=n.resolve(process.cwd(),J)),s.isSrcSubdir(H,J)?I(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${J}'.`)):s.isSrcSubdir(J,H)?I(new Error(`Cannot overwrite '${J}' with '${H}'.`)):F(H,O,I)));else return t.symlink(H,O,I)})}function F(T,D,O){t.unlink(D,P=>P?O(P):t.symlink(T,D,O))}r.exports=o}),c3=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=Ut().mkdirsSync,c=K2().utimesMillisSync,a=Bn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
132
|
-
|
133
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:C,destStat:F}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,C,A,"copy"),x.filter&&!x.filter(w,A))return;let T=n.dirname(A);return t.existsSync(T)||i(T),o(F,w,A,x)}function o(w,A,x,C){let F=(C.dereference?t.statSync:t.lstatSync)(A);if(F.isDirectory())return _(F,w,A,x,C);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return f(F,w,A,x,C);if(F.isSymbolicLink())return v(w,A,x,C);throw F.isSocket()?new Error(`Cannot copy a socket file: ${A}`):F.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,C,F){return A?l(w,x,C,F):h(w,x,C,F)}function l(w,A,x,C){if(C.overwrite)return t.unlinkSync(x),h(w,A,x,C);if(C.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,C){return t.copyFileSync(A,x),C.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,C,F){return A?S(x,C,F):g(w.mode,x,C,F)}function g(w,A,x,C){return t.mkdirSync(x),S(A,x,C),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(C=>E(C,w,A,x))}function E(w,A,x,C){let F=n.join(A,w),T=n.join(x,w);if(C.filter&&!C.filter(F,T))return;let{destStat:D}=a.checkPathsSync(F,T,"copy",C);return o(D,F,T,C)}function v(w,A,x,C){let F=t.readlinkSync(A);if(C.dereference&&(F=n.resolve(process.cwd(),F)),w){let T;try{T=t.readlinkSync(x)}catch(D){if(D.code==="EINVAL"||D.code==="UNKNOWN")return t.symlinkSync(F,x);throw D}if(C.dereference&&(T=n.resolve(process.cwd(),T)),a.isSrcSubdir(F,T))throw new Error(`Cannot copy '${F}' to a subdirectory of itself, '${T}'.`);if(a.isSrcSubdir(T,F))throw new Error(`Cannot overwrite '${T}' with '${F}'.`);return m(F,x)}else return t.symlinkSync(F,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),xl=re((e,r)=>{"use strict";Q();var t=wt().fromCallback;r.exports={copy:t(l3()),copySync:c3()}}),Ys=re((e,r)=>{"use strict";Q();var t=je(),n=wt().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),h3=re((e,r)=>{"use strict";Q();var t=wt().fromPromise,n=Pn(),i=ce("path"),c=Ut(),a=Ys(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),f3=re((e,r)=>{"use strict";Q();var t=wt().fromCallback,n=ce("path"),i=je(),c=Ut();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),p3=re((e,r)=>{"use strict";Q();var t=wt().fromCallback,n=ce("path"),i=je(),c=Ut(),a=Gr().pathExists,{areIdentical:s}=Bn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),d3=re((e,r)=>{"use strict";Q();var t=ce("path"),n=je(),i=Gr().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),m3=re((e,r)=>{"use strict";Q();var t=je();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),y3=re((e,r)=>{"use strict";Q();var t=wt().fromCallback,n=ce("path"),i=Pn(),c=Ut(),a=c.mkdirs,s=c.mkdirsSync,o=d3(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=m3(),u=h.symlinkType,d=h.symlinkTypeSync,p=Gr().pathExists,{areIdentical:y}=Bn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,C])=>{if(y(x,C))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,C)=>{if(x)return m(x);let F=n.dirname(E);p(F,(T,D)=>{if(T)return m(T);if(D)return i.symlink(S,E,C,m);a(F,O=>{if(O)return m(O);i.symlink(S,E,C,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),C=i.statSync(E);if(y(x,C))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),g3=re((e,r)=>{"use strict";Q();var{createFile:t,createFileSync:n}=f3(),{createLink:i,createLinkSync:c}=p3(),{createSymlink:a,createSymlinkSync:s}=y3();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),kl=re((e,r)=>{Q();function t(i,{EOL:c=`
|
134
|
-
`,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),b3=re((e,r)=>{Q();var t;try{t=je()}catch{t=ce("fs")}var n=wt(),{stringify:i,stripBom:c}=kl();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),v3=re((e,r)=>{"use strict";Q();var t=b3();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),Cl=re((e,r)=>{"use strict";Q();var t=wt().fromCallback,n=je(),i=ce("path"),c=Ut(),a=Gr().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),_3=re((e,r)=>{"use strict";Q();var{stringify:t}=kl(),{outputFile:n}=Cl();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),w3=re((e,r)=>{"use strict";Q();var{stringify:t}=kl(),{outputFileSync:n}=Cl();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),E3=re((e,r)=>{"use strict";Q();var t=wt().fromPromise,n=v3();n.outputJson=t(_3()),n.outputJsonSync=w3(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),S3=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=xl().copy,c=Ys().remove,a=Ut().mkdirp,s=Gr().pathExists,o=Bn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),A3=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=xl().copySync,c=Ys().removeSync,a=Ut().mkdirpSync,s=Bn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),x3=re((e,r)=>{"use strict";Q();var t=wt().fromCallback;r.exports={move:t(S3()),moveSync:A3()}}),Xs=re((e,r)=>{"use strict";Q(),r.exports={...Pn(),...xl(),...h3(),...g3(),...E3(),...Ut(),...x3(),...Cl(),...Gr(),...Ys()}});Q();var m$=Qe(Xs());Q();var y$=Qe(Xs()),g$=Qe(Ks());Q();var _i=re((e,r)=>{"use strict";Q();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),Dl=re((e,r)=>{"use strict";Q();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),C=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),D=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",J=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class Z2 extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[C]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[C])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let W=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):J(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(q){if(this[C])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[C]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[C]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[C])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[C]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==C&&this[C])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[C])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let W=super.emit(q,Z,...N);return this[s](),W}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[D]()):this[D]())}[D](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(C,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,W=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",ee),Z({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(C,oe),this.once("error",W),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[C]?(q?this.emit("error",q):this.emit(C),this):(this[C]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(C),this)}static isStream(q){return!!q&&(q instanceof Z2||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),k3=re((e,r)=>{Q();var t=ce("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),Q2=re((e,r)=>{"use strict";Q();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),C=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),D=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),J=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends J{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class J2 extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?D:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new J(this,R,K)),this[T]?D(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?D(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?D(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[C]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[C](){this[o]||(this[o]=!0,this.readable=!1,this[T]?D(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",W),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",W),this.pause(),K({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",W),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof J2||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),e1=re(e=>{"use strict";Q();var r=ce("assert"),t=ce("buffer").Buffer,n=ce("zlib"),i=e.constants=k3(),c=Q2(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let J=this[d]._handle,L=J.close;J.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=J,J.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(J,L)=>{this.flush(J),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},C=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},D=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=C,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=D,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),wi=re((e,r)=>{Q();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),Rl=re((e,r)=>{"use strict";Q();var t=Dl(),n=wi(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),t1=re(e=>{"use strict";Q(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),C3=re((e,r)=>{"use strict";Q();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),Ei=re((e,r)=>{"use strict";Q();var t=t1(),n=ce("path").posix,i=C3(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,C){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,C):w&&this.set(w)}decode(w,A,x,C){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](C,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,C=o(this.path||"",x),F=C[0],T=C[1];this.needPax=C[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let D=8*32;for(let O=A;O<A+148;O++)D+=w[O];for(let O=A+156;O<A+512;O++)D+=w[O];return this.cksum=D,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,C="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,C,!1];else{C=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(C)<=A?F=[x,C,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(C)<=A?F=[x.slice(0,100-1),C,!0]:(x=n.join(n.basename(C),x),C=n.dirname(C));while(C!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,C)=>C===null?!1:C>y[x]||C<0?(i.encode(C,w.slice(A,A+x)),!0):(_(w,A,x,C),!1),_=(w,A,x,C)=>w.write(g(C,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,C)=>C===null?!1:b(w,A,x,C.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,C)=>C===null?!1:(w.write(C+v,A,x,"utf8"),C.length!==Buffer.byteLength(C)||C.length>x);r.exports=s}),Ol=re((e,r)=>{"use strict";Q();var t=Ei(),n=ce("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
|
135
|
-
`,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
|
136
|
-
`).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),Si=re((e,r)=>{Q(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),Tl=re((e,r)=>{"use strict";Q(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),r1=re((e,r)=>{"use strict";Q();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),n1=re((e,r)=>{Q();var{isAbsolute:t,parse:n}=ce("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),D3=re((e,r)=>{"use strict";Q(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),i1=re((e,r)=>{"use strict";Q();var t=Dl(),n=Ol(),i=Ei(),c=ce("fs"),a=ce("path"),s=wi(),o=Si(),f=(M,R)=>R?(M=s(M).replace(/^\.(\/|$)/,""),o(R)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),C=Symbol("awaitDrain"),F=Symbol("ondrain"),T=Symbol("prefix"),D=Symbol("hadError"),O=Tl(),P=r1(),I=n1(),B=D3(),H=O(class extends t{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||l,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=s(R.cwd||process.cwd()),this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.mtime=R.mtime||null,this.prefix=R.prefix?s(R.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(R.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...R){return M==="error"&&(this[D]=!0),super.emit(M,...R)}[g](){c.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[S](R)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=L(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return B(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){c.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[y](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[w](R)})}[w](M){if(this.fd=M,this[D])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let R=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(R),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:M,buf:R,offset:K,length:q,pos:Z}=this;c.read(M,R,K,q,Z,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let K=new Error("encountered unexpected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M>this.remain){let K=new Error("did not encounter expected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M===this.remain)for(let K=M;K<this.length&&M<this.blockRemain;K++)this.buf[K+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[F]():this[C](()=>this[F]())}[C](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[F](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),G=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:R,buf:K,offset:q,length:Z,pos:N}=this,W=c.readSync(R,K,q,Z,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[C](M){M()}[A](M){c.closeSync(this.fd),M()}},J=O(class extends t{constructor(M,R){R=R||{},super(R),this.preservePaths=!!R.preservePaths,this.portable=!!R.portable,this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=s(M.path),this.mode=this[x](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[T](M){return f(M,this.prefix)}[x](M){return B(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=G,H.Tar=J;var L=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),R3=re((e,r)=>{"use strict";Q(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),s1=re((e,r)=>{"use strict";Q(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{R3()(t)}catch{}}),Fl=re((e,r)=>{"use strict";Q();var t=class{constructor(L,M){this.path=L||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=Dl(),i=e1(),c=Rl(),a=i1(),s=a.Sync,o=a.Tar,f=s1(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),C=Symbol("entry"),F=Symbol("entryOpt"),T=Symbol("writeEntryClass"),D=Symbol("write"),O=Symbol("ondrain"),P=ce("fs"),I=ce("path"),B=Tl(),H=wi(),G=B(class extends n{constructor(L){super(L),L=L||Object.create(null),this.opt=L,this.file=L.file||"",this.cwd=L.cwd||process.cwd(),this.maxReadSize=L.maxReadSize,this.preservePaths=!!L.preservePaths,this.strict=!!L.strict,this.noPax=!!L.noPax,this.prefix=H(L.prefix||""),this.linkCache=L.linkCache||new Map,this.statCache=L.statCache||new Map,this.readdirCache=L.readdirCache||new Map,this[T]=a,typeof L.onwarn=="function"&&this.on("warn",L.onwarn),this.portable=!!L.portable,this.zip=null,L.gzip?(typeof L.gzip!="object"&&(L.gzip={}),this.portable&&(L.gzip.portable=!0),this.zip=new i.Gzip(L.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[O]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!L.noDirRecurse,this.follow=!!L.follow,this.noMtime=!!L.noMtime,this.mtime=L.mtime||null,this.filter=typeof L.filter=="function"?L.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+L.jobs||4,this[b]=!1,this[u]=!1}[D](L){return super.write(L)}add(L){return this.write(L),this}end(L){return L&&this.write(L),this[u]=!0,this[y](),this}write(L){if(this[u])throw new Error("write after end");return L instanceof c?this[v](L):this[E](L),this.flowing}[v](L){let M=H(I.resolve(this.cwd,L.path));if(!this.filter(L.path,L))L.resume();else{let R=new t(L.path,M,!1);R.entry=new o(L,this[F](R)),R.entry.on("end",K=>this[S](R)),this[g]+=1,this[d].push(R)}this[y]()}[E](L){let M=H(I.resolve(this.cwd,L));this[d].push(new t(L,M)),this[y]()}[m](L){L.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";P[M](L.absolute,(R,K)=>{L.pending=!1,this[g]-=1,R?this.emit("error",R):this[h](L,K)})}[h](L,M){this.statCache.set(L.absolute,M),L.stat=M,this.filter(L.path,M)||(L.ignore=!0),this[y]()}[w](L){L.pending=!0,this[g]+=1,P.readdir(L.absolute,(M,R)=>{if(L.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](L,R)})}[A](L,M){this.readdirCache.set(L.absolute,M),L.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let L=this[d].head;L!==null&&this[g]<this.jobs;L=L.next)if(this[_](L.value),L.value.ignore){let M=L.next;this[d].removeNode(L),L.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](L){this[d].shift(),this[g]-=1,this[y]()}[_](L){if(!L.pending){if(L.entry){L===this[p]&&!L.piped&&this[x](L);return}if(L.stat||(this.statCache.has(L.absolute)?this[h](L,this.statCache.get(L.absolute)):this[m](L)),!!L.stat&&!L.ignore&&!(!this.noDirRecurse&&L.stat.isDirectory()&&!L.readdir&&(this.readdirCache.has(L.absolute)?this[A](L,this.readdirCache.get(L.absolute)):this[w](L),!L.readdir))){if(L.entry=this[C](L),!L.entry){L.ignore=!0;return}L===this[p]&&!L.piped&&this[x](L)}}}[F](L){return{onwarn:(M,R,K)=>this.warn(M,R,K),noPax:this.noPax,cwd:this.cwd,absolute:L.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[C](L){this[g]+=1;try{return new this[T](L.path,this[F](L)).on("end",()=>this[S](L)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](L){L.piped=!0,L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)});let M=L.entry,R=this.zip;R?M.on("data",K=>{R.write(K)||M.pause()}):M.on("data",K=>{super.write(K)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J=class extends G{constructor(L){super(L),this[T]=s}pause(){}resume(){}[m](L){let M=this.follow?"statSync":"lstatSync";this[h](L,P[M](L.absolute))}[w](L,M){this[A](L,P.readdirSync(L.absolute))}[x](L){let M=L.entry,R=this.zip;L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)}),R?M.on("data",K=>{R.write(K)}):M.on("data",K=>{super[D](K)})}};G.Sync=J,r.exports=G}),Ai=re(e=>{"use strict";Q();var r=Q2(),t=ce("events").EventEmitter,n=ce("fs"),i=n.writev;if(!i){let L=process.binding("fs"),M=L.FSReqWrap||L.FSReqCallback;i=(R,K,q,Z)=>{let N=(ee,ae)=>Z(ee,ae,K),W=new M;W.oncomplete=N,L.writeBuffers(R,K,q,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),C=Symbol("_reading"),F=Symbol("_remain"),T=Symbol("_size"),D=Symbol("_write"),O=Symbol("_writing"),P=Symbol("_defaultFlag"),I=Symbol("_errored"),B=class extends r{constructor(L,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof L!="string")throw new TypeError("path must be a string");this[I]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=L,this[x]=M.readSize||16*1024*1024,this[C]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[F]=this[T],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(L,M)=>this[_](L,M))}[_](L,M){L?this[b](L):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[F]))}[A](){if(!this[C]){this[C]=!0;let L=this[d]();if(L.length===0)return process.nextTick(()=>this[g](null,0,L));n.read(this[o],L,0,L.length,null,(M,R,K)=>this[g](M,R,K))}}[g](L,M,R){this[C]=!1,L?this[b](L):this[u](M,R)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}[b](L){this[C]=!0,this[a](),this.emit("error",L)}[u](L,M){let R=!1;return this[F]-=L,L>0&&(R=super.write(L<M.length?M.slice(0,L):M)),(L===0||this[F]<=0)&&(R=!1,this[a](),super.end()),R}emit(L,M){switch(L){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(L,M));default:return super.emit(L,M)}}},H=class extends B{[E](){let L=!0;try{this[_](null,n.openSync(this[v],"r")),L=!1}finally{L&&this[a]()}}[A](){let L=!0;try{if(!this[C]){this[C]=!0;do{let M=this[d](),R=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](R,M))break}while(!0);this[C]=!1}L=!1}finally{L&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}},G=class extends t{constructor(L,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[I]=!1,this[O]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=L,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[P]=M.flags===void 0,this[l]=this[P]?R:M.flags,this[o]===null&&this[E]()}emit(L,M){if(L==="error"){if(this[I])return;this[I]=!0}return super.emit(L,M)}get fd(){return this[o]}get path(){return this[v]}[b](L){this[a](),this[O]=!0,this.emit("error",L)}[E](){n.open(this[v],this[l],this[p],(L,M)=>this[_](L,M))}[_](L,M){this[P]&&this[l]==="r+"&&L&&L.code==="ENOENT"?(this[l]="w",this[E]()):L?this[b](L):(this[o]=M,this.emit("open",M),this[h]())}end(L,M){return L&&this.write(L,M),this[s]=!0,!this[O]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(L,M){return typeof L=="string"&&(L=Buffer.from(L,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[O]||this[w].length?(this[w].push(L),this[y]=!0,!1):(this[O]=!0,this[D](L),!0)}[D](L){n.write(this[o],L,0,L.length,this[m],(M,R)=>this[S](M,R))}[S](L,M){L?this[b](L):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[O]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[D](this[w].pop());else{let L=this[w];this[w]=[],i(this[o],L,this[m],(M,R)=>this[S](M,R))}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}},J=class extends G{[E](){let L;if(this[P]&&this[l]==="r+")try{L=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else L=n.openSync(this[v],this[l],this[p]);this[_](null,L)}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}[D](L){let M=!0;try{this[S](null,n.writeSync(this[o],L,0,L.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=H,e.WriteStream=G,e.WriteStreamSync=J}),Pl=re((e,r)=>{"use strict";Q();var t=Tl(),n=Ei(),i=ce("events"),c=s1(),a=1024*1024,s=Rl(),o=Ol(),f=e1(),{nextTick:l}=ce("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),C=Symbol("unzip"),F=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),D=Symbol("consumeBody"),O=Symbol("consumeMeta"),P=Symbol("consumeHeader"),I=Symbol("consuming"),B=Symbol("bufferConcat"),H=Symbol("maybeEnd"),G=Symbol("writing"),J=Symbol("aborted"),L=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),K=Symbol("sawEOF"),q=Symbol("closeStream"),Z=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(L,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(L,N.ondone):this.on(L,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Z,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[C]=null,this[J]=!1,this[R]=!1,this[K]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[P](N,W){this[M]===null&&(this[M]=!1);let ee;try{ee=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(ee.nullBlock)this[R]?(this[K]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[R]=!0,this[x]("nullBlock"));else if(this[R]=!1,!ee.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:ee});else if(!ee.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:ee});else{let ae=ee.type;if(/^(Symbolic)?Link$/.test(ae)&&!ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:ee});else if(!/^(Symbolic)?Link$/.test(ae)&&ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:ee});else{let oe=this[d]=new s(ee,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",ee=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[G]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[D](N,W){let ee=this[d],ae=ee.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return ee.write(oe),ee.blockRemain||(this[u]="header",this[d]=null,ee.end()),oe.length}[O](N,W){let ee=this[d],ae=this[D](N,W);return this[d]||this[E](ee),ae}[x](N,W,ee){!this[m].length&&!this[p]?this.emit(N,W,ee):this[m].push([N,W,ee])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[J]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[J])return;if(this[C]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let ee=0;this[C]===null&&ee<h.length;ee++)N[ee]!==h[ee]&&(this[C]=!1);if(this[C]===null){let ee=this[w];this[w]=!1,this[C]=new f.Unzip,this[C].on("data",oe=>this[F](oe)),this[C].on("error",oe=>this.abort(oe)),this[C].on("end",oe=>{this[w]=!0,this[F]()}),this[G]=!0;let ae=this[C][ee?"end":"write"](N);return this[G]=!1,ae}}this[G]=!0,this[C]?this[C].write(N):this[F](N),this[G]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",ee=>this.emit("drain")),W}[B](N){N&&!this[J]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[J]&&!this[I]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](L)}}[F](N){if(this[I])this[B](N);else if(!N&&!this[v])this[H]();else{if(this[I]=!0,this[v]){this[B](N);let W=this[v];this[v]=null,this[T](W)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[J]&&!this[K];){let W=this[v];this[v]=null,this[T](W)}this[I]=!1}(!this[v]||this[w])&&this[H]()}[T](N){let W=0,ee=N.length;for(;W+512<=ee&&!this[J]&&!this[K];)switch(this[u]){case"begin":case"header":this[P](N,W),W+=512;break;case"ignore":case"body":W+=this[D](N,W);break;case"meta":W+=this[O](N,W);break;default:throw new Error("invalid state: "+this[u])}W<ee&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[J]||(this[C]?this[C].end(N):(this[w]=!0,this.write(N)))}})}),Bl=re((e,r)=>{"use strict";Q();var t=_i(),n=Pl(),i=ce("fs"),c=Ai(),a=ce("path"),s=Si();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),O3=re((e,r)=>{"use strict";Q();var t=_i(),n=Fl(),i=Ai(),c=Bl(),a=ce("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),o1=re((e,r)=>{"use strict";Q();var t=_i(),n=Fl(),i=ce("fs"),c=Ai(),a=Bl(),s=ce("path"),o=Ei();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(T,D)=>{T?i.close(E,O=>m(T)):m(null,D)},A=0;if(v===0)return w(null,0);let x=0,C=Buffer.alloc(512),F=(T,D)=>{if(T)return w(T);if(x+=D,x<512&&D)return i.read(E,C,x,C.length-x,A+x,F);if(A===0&&C[0]===31&&C[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let O=new o(C);if(!O.cksumValid)return w(null,A);let P=512*Math.ceil(O.size/512);if(A+P+512>v||(A+=P+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),x=0,i.read(E,C,0,512,A,F)};i.read(E,C,0,512,A,F)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(C,F)=>{if(C)return i.close(x,()=>v(C));g(x,F.size,(T,D)=>{if(T)return v(T);let O=new c.WriteStream(p.file,{fd:x,start:D});_.pipe(O),O.on("error",v),O.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),T3=re((e,r)=>{"use strict";Q();var t=_i(),n=o1();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),F3=re((e,r)=>{Q();var{promisify:t}=ce("util"),n=ce("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),P3=re((e,r)=>{Q();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=ce("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),B3=re((e,r)=>{Q();var{dirname:t}=ce("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),a1=re((e,r)=>{Q();var{dirname:t}=ce("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),L3=re((e,r)=>{Q();var{dirname:t}=ce("path"),{findMade:n,findMadeSync:i}=B3(),{mkdirpManual:c,mkdirpManualSync:a}=a1(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),I3=re((e,r)=>{Q();var t=ce("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),M3=re((e,r)=>{Q();var t=F3(),n=P3(),{mkdirpNative:i,mkdirpNativeSync:c}=L3(),{mkdirpManual:a,mkdirpManualSync:s}=a1(),{useNative:o,useNativeSync:f}=I3(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),N3=re((e,r)=>{"use strict";Q();var t=ce("fs"),n=ce("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,C=null,F=T=>{if(!C){if(T)return m(C=T);if(--x===0)return p(S,E,v,m)}};A.forEach(T=>y(S,T,E,v,F))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),j3=re((e,r)=>{"use strict";Q();var t=M3(),n=ce("fs"),i=ce("path"),c=N3(),a=wi(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,C=b.cache,F=a(b.cwd),T=(O,P)=>{O?_(O):(l(C,y,!0),P&&w?c(P,v,m,I=>T(I)):E?n.chmod(y,S,_):_())};if(C&&f(C,y)===!0)return T();if(y===F)return h(y,T);if(A)return t(y,{mode:S}).then(O=>T(null,O),T);let D=a(i.relative(F,y)).split("/");u(F,D,S,C,x,F,null,T)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,C=>{if(C)return m(C);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,C=a(b.cwd),F=O=>{l(x,y,!0),O&&m&&c.sync(O,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return F();if(y===C)return p(C),F();if(w)return F(t.sync(y,g));let T=a(i.relative(C,y)).split("/"),D=null;for(let O=T.shift(),P=C;O&&(P+="/"+O);O=T.shift())if(P=a(i.resolve(P)),!f(x,P))try{n.mkdirSync(P,g),D=D||P,l(x,P,!0)}catch{let I=n.lstatSync(P);if(I.isDirectory()){l(x,P,!0);continue}else if(A){n.unlinkSync(P),n.mkdirSync(P,g),D=D||P,l(x,P,!0);continue}else if(I.isSymbolicLink())return new s(P,P+"/"+T.join("/"))}return F(D)}}),u1=re((e,r)=>{Q();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),$3=re((e,r)=>{Q();var t=ce("assert"),n=u1(),i=Si(),{join:c}=ce("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),H3=re((e,r)=>{Q();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||ce("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),l1=re((e,r)=>{"use strict";Q();var t=ce("assert"),n=Pl(),i=ce("fs"),c=Ai(),a=ce("path"),s=j3(),o=r1(),f=$3(),l=n1(),h=wi(),u=Si(),d=u1(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),C=Symbol("checkPath"),F=Symbol("mkdir"),T=Symbol("onError"),D=Symbol("pending"),O=Symbol("pend"),P=Symbol("unpend"),I=Symbol("ended"),B=Symbol("maybeClose"),H=Symbol("skip"),G=Symbol("doChown"),J=Symbol("uid"),L=Symbol("gid"),M=Symbol("checkedCwd"),R=ce("crypto"),K=H3(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Z=q==="win32",N=(k,U)=>{if(!Z)return i.unlink(k,U);let X=k+".DELETE."+R.randomBytes(16).toString("hex");i.rename(k,X,ne=>{if(ne)return U(ne);i.unlink(X,U)})},W=k=>{if(!Z)return i.unlinkSync(k);let U=k+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(k,U),i.unlinkSync(U)},ee=(k,U,X)=>k===k>>>0?k:U===U>>>0?U:X,ae=k=>d(u(h(k))).toLowerCase(),oe=(k,U)=>{U=ae(U);for(let X of k.keys()){let ne=ae(X);(ne===U||ne.indexOf(U+"/")===0)&&k.delete(X)}},de=k=>{for(let U of k.keys())k.delete(U)},pe=class extends n{constructor(k){if(k||(k={}),k.ondone=U=>{this[I]=!0,this[B]()},super(k),this[M]=!1,this.reservations=f(),this.transform=typeof k.transform=="function"?k.transform:null,this.writable=!0,this.readable=!1,this[D]=0,this[I]=!1,this.dirCache=k.dirCache||new Map,typeof k.uid=="number"||typeof k.gid=="number"){if(typeof k.uid!="number"||typeof k.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(k.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=k.uid,this.gid=k.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;k.preserveOwner===void 0&&typeof k.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!k.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=k.forceChown===!0,this.win32=!!k.win32||Z,this.newer=!!k.newer,this.keep=!!k.keep,this.noMtime=!!k.noMtime,this.preservePaths=!!k.preservePaths,this.unlink=!!k.unlink,this.cwd=h(a.resolve(k.cwd||process.cwd())),this.strip=+k.strip||0,this.processUmask=k.noChmod?0:process.umask(),this.umask=typeof k.umask=="number"?k.umask:this.processUmask,this.dmode=k.dmode||511&~this.umask,this.fmode=k.fmode||438&~this.umask,this.on("entry",U=>this[p](U))}warn(k,U,X={}){return(k==="TAR_BAD_ARCHIVE"||k==="TAR_ABORT")&&(X.recoverable=!1),super.warn(k,U,X)}[B](){this[I]&&this[D]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[C](k){if(this.strip){let U=h(k.path).split("/");if(U.length<this.strip)return!1;if(k.path=U.slice(this.strip).join("/"),k.type==="Link"){let X=h(k.linkpath).split("/");if(X.length>=this.strip)k.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let U=h(k.path),X=U.split("/");if(X.includes("..")||Z&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:k,path:U}),!1;let[ne,me]=l(U);ne&&(k.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:k,path:U}))}if(a.isAbsolute(k.path)?k.absolute=h(a.resolve(k.path)):k.absolute=h(a.resolve(this.cwd,k.path)),!this.preservePaths&&k.absolute.indexOf(this.cwd+"/")!==0&&k.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:k,path:h(k.path),resolvedPath:k.absolute,cwd:this.cwd}),!1;if(k.absolute===this.cwd&&k.type!=="Directory"&&k.type!=="GNUDumpDir")return!1;if(this.win32){let{root:U}=a.win32.parse(k.absolute);k.absolute=U+o.encode(k.absolute.slice(U.length));let{root:X}=a.win32.parse(k.path);k.path=X+o.encode(k.path.slice(X.length))}return!0}[p](k){if(!this[C](k))return k.resume();switch(t.equal(typeof k.absolute,"string"),k.type){case"Directory":case"GNUDumpDir":k.mode&&(k.mode=k.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](k);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](k)}}[T](k,U){k.name==="CwdError"?this.emit("error",k):(this.warn("TAR_ENTRY_ERROR",k,{entry:U}),this[P](),U.resume())}[F](k,U,X){s(h(k),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U,noChmod:this.noChmod},X)}[G](k){return this.forceChown||this.preserveOwner&&(typeof k.uid=="number"&&k.uid!==this.processUid||typeof k.gid=="number"&&k.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[J](k){return ee(this.uid,k.uid,this.processUid)}[L](k){return ee(this.gid,k.gid,this.processGid)}[E](k,U){let X=k.mode&4095||this.fmode,ne=new c.WriteStream(k.absolute,{flags:K(k.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[T](ie,k),U()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[T](ie,k),U();return}--me===0&&i.close(ne.fd,ye=>{ye?this[T](ye,k):this[P](),U()})};ne.on("finish",ie=>{let ye=k.absolute,we=ne.fd;if(k.mtime&&!this.noMtime){me++;let xe=k.atime||new Date,V=k.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[G](k)){me++;let xe=this[J](k),V=this[L](k);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(k)||k;fe!==k&&(fe.on("error",ie=>{this[T](ie,k),U()}),k.pipe(fe)),fe.pipe(ne)}[v](k,U){let X=k.mode&4095||this.dmode;this[F](k.absolute,X,ne=>{if(ne){this[T](ne,k),U();return}let me=1,se=fe=>{--me===0&&(U(),this[P](),k.resume())};k.mtime&&!this.noMtime&&(me++,i.utimes(k.absolute,k.atime||new Date,k.mtime,se)),this[G](k)&&(me++,i.chown(k.absolute,this[J](k),this[L](k),se)),se()})}[x](k){k.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${k.type}`,{entry:k}),k.resume()}[w](k,U){this[m](k,k.linkpath,"symlink",U)}[A](k,U){let X=h(a.resolve(this.cwd,k.linkpath));this[m](k,X,"link",U)}[O](){this[D]++}[P](){this[D]--,this[B]()}[H](k){this[P](),k.resume()}[g](k,U){return k.type==="File"&&!this.unlink&&U.isFile()&&U.nlink<=1&&!Z}[y](k){this[O]();let U=[k.path];k.linkpath&&U.push(k.linkpath),this.reservations.reserve(U,X=>this[b](k,X))}[_](k){k.type==="SymbolicLink"?de(this.dirCache):k.type!=="Directory"&&oe(this.dirCache,k.absolute)}[b](k,U){this[_](k);let X=fe=>{this[_](k),U(fe)},ne=()=>{this[F](this.cwd,this.dmode,fe=>{if(fe){this[T](fe,k),X();return}this[M]=!0,me()})},me=()=>{if(k.absolute!==this.cwd){let fe=h(a.dirname(k.absolute));if(fe!==this.cwd)return this[F](fe,this.dmode,ie=>{if(ie){this[T](ie,k),X();return}se()})}se()},se=()=>{i.lstat(k.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>k.mtime)){this[H](k),X();return}if(fe||this[g](k,ie))return this[S](null,k,X);if(ie.isDirectory()){if(k.type==="Directory"){let ye=!this.noChmod&&k.mode&&(ie.mode&4095)!==k.mode,we=xe=>this[S](xe,k,X);return ye?i.chmod(k.absolute,k.mode,we):we()}if(k.absolute!==this.cwd)return i.rmdir(k.absolute,ye=>this[S](ye,k,X))}if(k.absolute===this.cwd)return this[S](null,k,X);N(k.absolute,ye=>this[S](ye,k,X))})};this[M]?me():ne()}[S](k,U,X){if(k){this[T](k,U),X();return}switch(U.type){case"File":case"OldFile":case"ContiguousFile":return this[E](U,X);case"Link":return this[A](U,X);case"SymbolicLink":return this[w](U,X);case"Directory":case"GNUDumpDir":return this[v](U,X)}}[m](k,U,X,ne){i[X](U,k.absolute,me=>{me?this[T](me,k):(this[P](),k.resume()),ne()})}},j=k=>{try{return[null,k()]}catch(U){return[U,null]}},z=class extends pe{[S](k,U){return super[S](k,U,()=>{})}[y](k){if(this[_](k),!this[M]){let me=this[F](this.cwd,this.dmode);if(me)return this[T](me,k);this[M]=!0}if(k.absolute!==this.cwd){let me=h(a.dirname(k.absolute));if(me!==this.cwd){let se=this[F](me,this.dmode);if(se)return this[T](se,k)}}let[U,X]=j(()=>i.lstatSync(k.absolute));if(X&&(this.keep||this.newer&&X.mtime>k.mtime))return this[H](k);if(U||this[g](k,X))return this[S](null,k);if(X.isDirectory()){if(k.type==="Directory"){let se=!this.noChmod&&k.mode&&(X.mode&4095)!==k.mode,[fe]=se?j(()=>{i.chmodSync(k.absolute,k.mode)}):[];return this[S](fe,k)}let[me]=j(()=>i.rmdirSync(k.absolute));this[S](me,k)}let[ne]=k.absolute===this.cwd?[]:j(()=>W(k.absolute));this[S](ne,k)}[E](k,U){let X=k.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[T](fe||ie,k),U()},me;try{me=i.openSync(k.absolute,K(k.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(k)||k;se!==k&&(se.on("error",fe=>this[T](fe,k)),k.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(k.mtime&&!this.noMtime){let ye=k.atime||new Date,we=k.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(k.absolute,ye,we)}catch{ie=xe}}}if(this[G](k)){let ye=this[J](k),we=this[L](k);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(k.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](k,U){let X=k.mode&4095||this.dmode,ne=this[F](k.absolute,X);if(ne){this[T](ne,k),U();return}if(k.mtime&&!this.noMtime)try{i.utimesSync(k.absolute,k.atime||new Date,k.mtime)}catch{}if(this[G](k))try{i.chownSync(k.absolute,this[J](k),this[L](k))}catch{}U(),k.resume()}[F](k,U){try{return s.sync(h(k),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U})}catch(X){return X}}[m](k,U,X,ne){try{i[X+"Sync"](U,k.absolute),ne(),k.resume()}catch(me){return this[T](me,k)}}};pe.Sync=z,r.exports=pe}),q3=re((e,r)=>{"use strict";Q();var t=_i(),n=l1(),i=ce("fs"),c=Ai(),a=ce("path"),s=Si();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),G3=re(e=>{"use strict";Q(),e.c=e.create=O3(),e.r=e.replace=o1(),e.t=e.list=Bl(),e.u=e.update=T3(),e.x=e.extract=q3(),e.Pack=Fl(),e.Unpack=l1(),e.Parse=Pl(),e.ReadEntry=Rl(),e.WriteEntry=i1(),e.Header=Ei(),e.Pax=Ol(),e.types=t1()}),wr=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,C;return(C=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&C!==void 0?C:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,C;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((C=(x=m)["@@observable"])===null||C===void 0?void 0:C.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:C}=x,F=C?`received values of types ${[...new Set(A.map(T=>`\`${u(T)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${F}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),U3=re((e,r)=>{"use strict";Q();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),z3=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),W3=re((e,r)=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var t=z3(),n=ce("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),V3=re((e,r)=>{"use strict";Q();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=ce("dns"),{promisify:s}=ce("util"),o=ce("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let C=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);C.unref&&C.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(D){if(D.code==="ENODATA"||D.code==="ENOTFOUND")return[];throw D}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(T=>v(T))),A=0,x=0,C=0,F=Date.now();for(let T of m)T.family=4,T.expires=F+T.ttl*1e3,A=Math.max(A,T.ttl);for(let T of w)T.family=6,T.expires=F+T.ttl*1e3,x=Math.max(x,T.ttl);return m.length>0?w.length>0?C=Math.min(A,x):C=A:C=x,{entries:[...m,...w],cacheTtl:C}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let C=x[h];w>=C?this._cache.delete(A):C<m&&(m=C)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),K3=re((e,r)=>{"use strict";Q();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),Y3=re((e,r)=>{Q(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),c1=re((e,r)=>{Q();var t=Y3();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),X3=re((e,r)=>{Q();var t=c1(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),Z3=re((e,r)=>{Q();var t=c1(),n=X3(),i=ce("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),Q3=re((e,r)=>{"use strict";Q();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),J3=re((e,r)=>{"use strict";Q();var{constants:t}=ce("buffer"),n=Z3(),i=Q3(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),eF=re((e,r)=>{"use strict";Q();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),Ll=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),tF=re((e,r)=>{"use strict";Q();var t=ce("stream").Readable,n=Ll(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),rF=re((e,r)=>{"use strict";Q();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),nF=re((e,r)=>{"use strict";Q();var t=ce("stream").PassThrough,n=rF(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),iF=re(e=>{Q(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),sF=re((e,r)=>{"use strict";Q();var t=ce("events"),n=iF(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(ce(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),oF=re((e,r)=>{"use strict";Q();var t=ce("events"),n=ce("url"),i=K3(),c=J3(),a=eF(),s=tF(),o=Ll(),f=nF(),l=sF(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),C=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:C})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,C,F=new Promise(D=>{C=()=>{x||(x=!0,D())}}),T=D=>{if(v&&!A.forceRefresh){D.status=D.statusCode;let P=a.fromObject(v.cachePolicy).revalidatedPolicy(A,D);if(!P.modified){let I=P.policy.responseHeaders();D=new s(v.statusCode,I,v.body,v.url),D.cachePolicy=P.policy,D.fromCache=!0}}D.fromCache||(D.cachePolicy=new a(A,D,A),D.fromCache=!1);let O;A.cache&&D.cachePolicy.storable()?(O=f(D),(async()=>{try{let P=c.buffer(D);if(await Promise.race([F,new Promise(G=>D.once("end",G))]),x)return;let I=await P,B={cachePolicy:D.cachePolicy.toObject(),url:D.url,statusCode:D.fromCache?v.statusCode:D.statusCode,body:I},H=A.strictTtl?D.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,B,H)}catch(P){g.emit("error",new h.CacheError(P))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(P){g.emit("error",new h.CacheError(P))}})(),g.emit("response",O||D),typeof b=="function"&&b(O||D)};try{let D=p(A,T);D.once("error",C),D.once("abort",C),g.emit("request",D)}catch(D){g.emit("error",new h.RequestError(D))}};return(async()=>{let A=async C=>{await Promise.resolve();let F=C.cache?await this.cache.get(E):void 0;if(typeof F>"u")return w(C);let T=a.fromObject(F.cachePolicy);if(T.satisfiesWithoutRevalidation(C)&&!C.forceRefresh){let D=T.responseHeaders(),O=new s(F.statusCode,D,F.body,F.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=F,C.headers=T.revalidationHeaders(C),w(C)},x=C=>g.emit("error",new h.CacheError(C));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(C){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(C))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),aF=re((e,r)=>{"use strict";Q();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),uF=re((e,r)=>{"use strict";Q();var{Transform:t,PassThrough:n}=ce("stream"),i=ce("zlib"),c=aF();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),h1=re((e,r)=>{"use strict";Q();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),f1=re((e,r)=>{"use strict";Q();var t=ce("events"),n=ce("tls"),i=ce("http2"),c=h1(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:F}of E)F(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let F=this.sessions[w],T=-1,D=-1,O;for(let P of F){let I=P.remoteSettings.maxConcurrentStreams;if(I<T)break;if(P[o].includes(A)){let B=P[a];if(B>=I||P[f]||P.destroyed)continue;O||(T=I),B>D&&(O=P,D=B)}}if(O){if(E.length!==1){for(let{reject:P}of E){let I=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
137
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}E[0].resolve(O);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===C&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},C=()=>{let F=`${A}:${w}`,T=!1;try{let D=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(F),...S});D[a]=0,D[f]=!1;let O=()=>D[a]<D.remoteSettings.maxConcurrentStreams,P=!0;D.socket.once("session",B=>{this.tlsSessionCache.set(F,B)}),D.once("error",B=>{for(let{reject:H}of E)H(B);this.tlsSessionCache.delete(F)}),D.setTimeout(this.timeout,()=>{D.destroy()}),D.once("close",()=>{if(T){P&&this._freeSessionsCount--,this._sessionsCount--;let B=this.sessions[w];B.splice(B.indexOf(D),1),B.length===0&&delete this.sessions[w]}else{let B=new Error("Session closed without receiving a SETTINGS frame");B.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(B);x()}this._tryToCreateNewSession(w,A)});let I=()=>{if(!(!(w in this.queue)||!O())){for(let B of D[o])if(B in this.queue[w]){let{listeners:H}=this.queue[w][B];for(;H.length!==0&&O();)H.shift().resolve(D);let G=this.queue[w];if(G[B].listeners.length===0&&(delete G[B],Object.keys(G).length===0)){delete this.queue[w];break}if(!O())break}}};D.on("origin",()=>{D[o]=D.originSet,O()&&(I(),d(this.sessions[w],D))}),D.once("remoteSettings",()=>{if(D.ref(),D.unref(),this._sessionsCount++,C.destroyed){let B=new Error("Agent has been destroyed");for(let H of E)H.reject(B);D.destroy();return}D[o]=D.originSet;{let B=this.sessions;if(w in B){let H=B[w];H.splice(h(H,D,u),0,D)}else B[w]=[D]}this._freeSessionsCount+=1,T=!0,this.emit("session",D),I(),x(),D[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&D.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),D.on("remoteSettings",()=>{I(),d(this.sessions[w],D)})}),D[s]=D.request,D.request=(B,H)=>{if(D[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let G=D[s](B,H);return D.ref(),++D[a],D[a]===D.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,G.once("close",()=>{if(P=O(),--D[a],!D.destroyed&&!D.closed&&(p(this.sessions[w],D),O()&&!D.closed)){P||(this._freeSessionsCount++,P=!0);let J=D[a]===0;J&&D.unref(),J&&(this._freeSessionsCount>this.maxFreeSessions||D[f])?D.close():(d(this.sessions[w],D),I())}}),G}}catch(D){for(let O of E)O.reject(D);x()}};C.listeners=E,C.completed=!1,C.destroyed=!1,this.queue[w][A]=C,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),p1=re((e,r)=>{"use strict";Q();var{Readable:t}=ce("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),d1=re((e,r)=>{"use strict";Q(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),lF=re((e,r)=>{"use strict";Q(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),cF=re((e,r)=>{"use strict";Q(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),hF=re((e,r)=>{"use strict";Q();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),m1=re((e,r)=>{"use strict";Q();var t=ce("http2"),{Writable:n}=ce("stream"),{Agent:i,globalAgent:c}=f1(),a=p1(),s=d1(),o=lF(),f=cF(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=hF(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),C=/^[\^`\-\w!#$%&*+.|~]+$/,F=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends n{constructor(D,O,P){super({autoDestroy:!1});let I=typeof D=="string"||D instanceof URL;if(I&&(D=s(D instanceof URL?D:new URL(D))),typeof O=="function"||O===void 0?(P=O,O=I?D:{...D}):O={...D,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=c;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new h(O.protocol,"https:");let B=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,H=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:G}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[J,L]of Object.entries(O.headers))this.setHeader(J,L);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[w]=O,B===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${B}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${B}`)),G&&this.setTimeout(G),P&&this.once("response",P),this[A]=!1}get method(){return this[E][_]}set method(D){D&&(this[E][_]=D.toUpperCase())}get path(){return this[E][g]}set path(D){D&&(this[E][g]=D)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(D,O,P){if(this._mustNotHaveABody){P(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let I=()=>this._request.write(D,O,P);this._request?I():this[x].push(I)}_final(D){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){D();return}this._request.end(D)};this._request?O():this[x].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(D,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(D)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let D=this.method===S,O=P=>{if(this._request=P,this.destroyed){P.destroy();return}D||o(P,this,["timeout","continue","close","error"]);let I=H=>(...G)=>{!this.writable&&!this.destroyed?H(...G):this.once("finish",()=>{H(...G)})};P.once("response",I((H,G,J)=>{let L=new a(this.socket,P.readableHighWaterMark);this.res=L,L.req=this,L.statusCode=H[b],L.headers=H,L.rawHeaders=J,L.once("end",()=>{this.aborted?(L.aborted=!0,L.emit("aborted")):(L.complete=!0,L.socket=null,L.connection=null)}),D?(L.upgrade=!0,this.emit("connect",L,P,Buffer.alloc(0))?this.emit("close"):P.destroy()):(P.on("data",M=>{!L._dumped&&!L.push(M)&&P.pause()}),P.once("end",()=>{L.push(null)}),this.emit("response",L)||L._dump())})),P.once("headers",I(H=>this.emit("information",{statusCode:H[b]}))),P.once("trailers",I((H,G,J)=>{let{res:L}=this;L.trailers=H,L.rawTrailers=J}));let{socket:B}=P.session;this.socket=B,this.connection=B;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(P){this.emit("error",P)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[w],this[E]))}catch(P){this.emit("error",P)}}}getHeader(D){if(typeof D!="string")throw new l("name","string",D);return this[E][D.toLowerCase()]}get headersSent(){return this[A]}removeHeader(D){if(typeof D!="string")throw new l("name","string",D);if(this.headersSent)throw new u("remove");delete this[E][D.toLowerCase()]}setHeader(D,O){if(this.headersSent)throw new u("set");if(typeof D!="string"||!C.test(D)&&!f(D))throw new d("Header name",D);if(typeof O>"u")throw new p(O,D);if(F.test(O))throw new y("header content",D);this[E][D.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(D,O){let P=()=>this._request.setTimeout(D,O);return this._request?P():this[x].push(P),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(D){}};r.exports=T}),fF=re((e,r)=>{"use strict";Q();var t=ce("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),pF=re((e,r)=>{"use strict";Q();var t=ce("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),dF=re((e,r)=>{"use strict";Q();var t=ce("http"),n=ce("https"),i=fF(),c=h1(),a=m1(),s=pF(),o=d1(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),mF=re((e,r)=>{"use strict";Q();var t=ce("http2"),n=f1(),i=m1(),c=p1(),a=dF(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),y1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=wr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),yF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("fs"),t=ce("util"),n=wr(),i=y1(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),g1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),gF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),bF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=ce("net"),t=gF(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),vF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=wr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),_F=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),wF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),b1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),EF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),v1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),SF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),AF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=wr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),xF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),$s=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=ce("util"),t=ce("stream"),n=ce("fs"),i=ce("url"),c=ce("http"),a=ce("http"),s=ce("https"),o=W3(),f=V3(),l=oF(),h=uF(),u=mF(),d=Ll(),p=wr(),y=yF(),b=y1(),_=g1(),g=bF(),S=vF(),E=_F(),v=wF(),m=b1(),w=EF(),A=v1(),x=SF(),C=AF(),F=xF(),T,D=Symbol("request"),O=Symbol("response"),P=Symbol("responseSize"),I=Symbol("downloadedSize"),B=Symbol("bodySize"),H=Symbol("uploadedSize"),G=Symbol("serverResponsesPiped"),J=Symbol("unproxyEvents"),L=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),K=Symbol("stopReading"),q=Symbol("triggerRead"),Z=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),ee=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),z=new Set([300,301,302,303,304,307,308]),k=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of k)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var U=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
|
138
|
-
`).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
|
139
|
-
`).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
|
140
|
-
`)}${Ee.reverse().join(`
|
141
|
-
`)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ne}=this.options;if(!Ne)throw new TypeError("Missing `url` property");if(this.requestUrl=Ne.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[D])===null||Ae===void 0||Ae.destroy();return}for(let Le of this[N])Le();this[N].length=0,this.requestInitialized=!0}catch(Ne){if(Ne instanceof U){this._beforeError(Ne);return}this.destroyed||this.destroy(Ne)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let ke=$.url;if(!ke.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${ke.href}`);$.url=new i.URL(Be+ke.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ne}=$;if(Ne){let{setCookie:Se,getCookieString:Fe}=Ne;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Le}=$;if(Le&&(pe.has(Le)||pe.set(Le,new l((Se,Fe)=>{let Be=Se[D](Se,Fe);return p.default.promise(Be)&&(Be.once=(ke,Ce)=>{if(ke==="error")Be.catch(Ce);else if(ke==="abort")(async()=>{try{(await Be).once("abort",Ce)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Be}),Be},Le))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let zt=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!zt)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),C.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&z.has(_e)){if(V.resume(),this[D]&&(this[M](),delete this[D],this[J]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Le){return Le.protocol==="unix:"||Le.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ne=Ae.toString();if(decodeURI(Ne),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ne),$.url=Ae;for(let Le of $.hooks.beforeRedirect)await Le($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ne=V.headers[Ee];Ae&&be.setHeader(Ee,Ne)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[J]=_.default(V,this,we),this[D]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let Ce in be)if(p.default.undefined(be[Ce]))delete be[Ce];else if(p.default.null_(be[Ce]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Ce}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let Ce=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(Ce)&&(he.headers.cookie=Ce)}for(let Ce of he.hooks.beforeRequest){let Wt=await Ce(he);if(!p.default.undefined(Wt)){he.request=()=>Wt;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ne,url:Le}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Le.hostname==="unix"){let Ce=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Le.pathname}${Le.search}`);if(Ce!=null&&Ce.groups){let{socketPath:Wt,path:yo}=Ce.groups;Object.assign(he,{socketPath:Wt,path:yo,host:""})}}let zt=Le.protocol==="https:",Se;he.http2?Se=u.auto:Se=zt?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[zt?"https":"http"]),he[D]=Fe,delete he.request,delete he.timeout;let ke=he;if(ke.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,ke.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,ke.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(ke.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(ke.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(ke.ca=he.https.certificateAuthority),he.https.certificate&&(ke.cert=he.https.certificate),he.https.key&&(ke.key=he.https.key),he.https.passphrase&&(ke.passphrase=he.https.passphrase),he.https.pfx&&(ke.pfx=he.https.pfx));try{let Ce=await Be(Le,ke);p.default.undefined(Ce)&&(Ce=Se(Le,ke)),he.request=Ae,he.timeout=Ne,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete ke.rejectUnauthorized,he.https.checkServerIdentity&&delete ke.checkServerIdentity,he.https.certificateAuthority&&delete ke.ca,he.https.certificate&&delete ke.cert,he.https.key&&delete ke.key,he.https.passphrase&&delete ke.passphrase,he.https.pfx&&delete ke.pfx),de(Ce)?this._onRequest(Ce):this.writable?(this.once("finish",()=>{this._onResponse(Ce)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Ce)}catch(Ce){throw Ce instanceof l.CacheError?new me(Ce,this):new U(Ce.message,Ce,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[D].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[D].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(D in this)){V();return}if(this[D].destroyed){V();return}this[D].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[D].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),D in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[D].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[D])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[D])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[D])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),Hs=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=$s(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t($s(),e)}),kF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Hs(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),_1=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=ce("events"),i=wr(),c=U3(),a=Hs(),s=kF(),o=$s(),f=g1(),l=b1(),h=v1(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var D;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((D=T.headers["content-encoding"])!==null&&D!==void 0?D:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async J=>{let L=o.default.normalizeArguments(void 0,{...J,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let C=T=>{if(g.isCanceled)return;let{options:D}=x;if(T instanceof a.HTTPError&&!D.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",C);let F=x.options.body;x.once("retry",(T,D)=>{var O,P;if(F===((O=D.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=D.request)===null||P===void 0?void 0:P.options.body)){C(D);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Hs(),e)}),CF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Hs();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),DF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=wr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),RF=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0})}),v2=re(e=>{"use strict";Q();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=wr(),i=_1(),c=CF(),a=$s(),s=DF(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:C,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=C,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,C=F=>_.handlers[x++](F,x===_.handlers.length?u:C);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(D){F=D}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return C(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,C=0;for(;C<w.requestLimit;){C!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),D=[];for(let P of T)if(w.filter(P,A,D)&&(!w.shouldContinue(P,A,D)||(yield P,w.stackAllItems&&A.push(P),D.push(P),--x<=0)))return;let O=w.paginate(F,A,D);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),C++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(RF(),e)}),OF=re((e,r)=>{"use strict";Q();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=ce("url"),c=v2(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(v2(),e),n(_1(),e)});Q();var b$=Qe(G3()),v$=Qe(OF()),_$=(0,X2.promisify)(Y2.Stream.pipeline);Q();var w$=Qe(Xs()),TF=re((e,r)=>{Q();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),FF=re(e=>{Q();var r=TF();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),PF=re((e,r)=>{Q(),r.exports=FF()}),BF=re((e,r)=>{Q();var t=PF();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});Q();var E$=Qe(BF()),S$=Qe(Ks()),A$=Qe(Xs());Q();var LF=re((e,r)=>{Q();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),IF=re((e,r)=>{Q();var t=LF().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var J=B&&B.prototype instanceof b?B:b,L=Object.create(J.prototype),M=new D(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(J,L,M,R){var K=p(I[J],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(J,L){function M(){return new B(function(R,K){H(J,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(J,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(J==="throw")throw L;return P()}for(H.method=J,H.arg=L;;){var M=H.delegate;if(M){var R=C(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function C(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,C(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var J=p(G,I.iterator,B.arg);if(J.type==="throw")return B.method="throw",B.arg=J.arg,B.delegate=null,y;var L=J.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function D(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function J(){for(;++H<I.length;)if(a.call(I,H))return J.value=I[H],J.done=!1,J;return J.value=void 0,J.done=!0,J};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,J){J===void 0&&(J=Promise);var L=new A(d(I,B,H,G),J);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function J(){for(;H.length;){var L=H.pop();if(L in B)return J.value=L,J.done=!1,J}return J.done=!0,J}},i.values=O,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G],L=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var M=a.call(J,"catchLoc"),R=a.call(J,"finallyLoc");if(M&&R){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(M){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var J=G;break}}J&&(I==="break"||I==="continue")&&J.tryLoc<=B&&B<=J.finallyLoc&&(J=null);var L=J?J.completion:{};return L.type=I,L.arg=B,J?(this.method="next",this.next=J.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var J=G.arg;T(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),MF=re((e,r)=>{Q();var t=IF()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),NF=re((e,r)=>{"use strict";Q();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),jF=re((e,r)=>{"use strict";Q();var t=NF(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),$F=re((e,r)=>{"use strict";Q();var t=jF(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),HF=re((e,r)=>{"use strict";Q();var t=ce("path"),n=ce("fs"),{promisify:i}=ce("util"),c=$F(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),qF=re((e,r)=>{"use strict";Q();var t=ce("fs"),{promisify:n}=ce("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),GF=re((e,r)=>{"use strict";Q();var t=ce("path"),n=HF(),i=qF(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),Et=re(e=>{"use strict";Q(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),w1=re(e=>{"use strict";Q();var r=Et().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),E1=re((e,r)=>{"use strict";Q();var t=ce("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),UF=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=E1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),zF=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=E1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),Ct=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=t(UF()),i=zF();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),S1=re((e,r)=>{"use strict";Q();var t=je(),n=ce("os"),i=ce("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),Zs=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,C)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:C}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:C,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===C.ino&&F.dev===C.dev?w(new Error("Source and destination must not be the same.")):C.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:C,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),C=n.resolve(n.dirname(m));if(C===x||C===n.parse(C).root)return A();h()?t.stat(C,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A)):t.stat(C,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,C,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let C;try{h()?C=t.statSync(x,{bigint:!0}):C=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(C.ino&&C.dev&&C.ino===v.ino&&C.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,C)=>A&&w[C]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),WF=re((e,r)=>{"use strict";Q(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),VF=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=Ct().mkdirsSync,c=S1().utimesMillisSync,a=Zs();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
142
|
-
|
143
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=WF()(65536),C=t.openSync(m,"r"),F=t.openSync(w,"w",v.mode),T=0;for(;T<v.size;){let D=t.readSync(C,x,0,65536,T);t.writeSync(F,x,0,D),T+=D}A.preserveTimestamps&&t.futimesSync(F,v.atime,v.mtime),t.closeSync(C),t.closeSync(F)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),C=n.join(w,v),{destStat:F}=a.checkPathsSync(x,C,"copy");return f(F,x,C,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let C;try{C=t.readlinkSync(w)}catch(F){if(F.code==="EINVAL"||F.code==="UNKNOWN")return t.symlinkSync(x,w);throw F}if(A.dereference&&(C=n.resolve(process.cwd(),C)),a.isSrcSubdir(x,C))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${C}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(C,x))throw new Error(`Cannot overwrite '${C}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),A1=re((e,r)=>{"use strict";Q(),r.exports={copySync:VF()}}),rr=re((e,r)=>{"use strict";Q();var t=Et().fromPromise,n=w1();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),KF=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=Ct().mkdirs,c=rr().pathExists,a=S1().utimesMillis,s=Zs();function o(x,C,F,T){typeof F=="function"&&!T?(T=F,F={}):typeof F=="function"&&(F={filter:F}),T=T||function(){},F=F||{},F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
144
|
-
|
145
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,C,"copy",(D,O)=>{if(D)return T(D);let{srcStat:P,destStat:I}=O;s.checkParentPaths(x,P,C,"copy",B=>B?T(B):F.filter?l(f,I,x,C,F,T):f(I,x,C,F,T))})}function f(x,C,F,T,D){let O=n.dirname(F);c(O,(P,I)=>{if(P)return D(P);if(I)return h(x,C,F,T,D);i(O,B=>B?D(B):h(x,C,F,T,D))})}function l(x,C,F,T,D,O){Promise.resolve(D.filter(F,T)).then(P=>P?x(C,F,T,D,O):O(),P=>O(P))}function h(x,C,F,T,D){return T.filter?l(u,x,C,F,T,D):u(x,C,F,T,D)}function u(x,C,F,T,D){(T.dereference?t.stat:t.lstat)(C,(O,P)=>{if(O)return D(O);if(P.isDirectory())return g(P,x,C,F,T,D);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return d(P,x,C,F,T,D);if(P.isSymbolicLink())return w(x,C,F,T,D)})}function d(x,C,F,T,D,O){return C?p(x,F,T,D,O):y(x,F,T,D,O)}function p(x,C,F,T,D){if(T.overwrite)t.unlink(F,O=>O?D(O):y(x,C,F,T,D));else return T.errorOnExist?D(new Error(`'${F}' already exists`)):D()}function y(x,C,F,T,D){return typeof t.copyFile=="function"?t.copyFile(C,F,O=>O?D(O):_(x,F,T,D)):b(x,C,F,T,D)}function b(x,C,F,T,D){let O=t.createReadStream(C);O.on("error",P=>D(P)).once("open",()=>{let P=t.createWriteStream(F,{mode:x.mode});P.on("error",I=>D(I)).on("open",()=>O.pipe(P)).once("close",()=>_(x,F,T,D))})}function _(x,C,F,T){t.chmod(C,x.mode,D=>D?T(D):F.preserveTimestamps?a(C,x.atime,x.mtime,T):T())}function g(x,C,F,T,D,O){return C?C&&!C.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${F}'.`)):E(F,T,D,O):S(x,F,T,D,O)}function S(x,C,F,T,D){t.mkdir(F,O=>{if(O)return D(O);E(C,F,T,P=>P?D(P):t.chmod(F,x.mode,D))})}function E(x,C,F,T){t.readdir(x,(D,O)=>D?T(D):v(O,x,C,F,T))}function v(x,C,F,T,D){let O=x.pop();return O?m(x,O,C,F,T,D):D()}function m(x,C,F,T,D,O){let P=n.join(F,C),I=n.join(T,C);s.checkPaths(P,I,"copy",(B,H)=>{if(B)return O(B);let{destStat:G}=H;h(G,P,I,D,J=>J?O(J):v(x,F,T,D,O))})}function w(x,C,F,T,D){t.readlink(C,(O,P)=>{if(O)return D(O);if(T.dereference&&(P=n.resolve(process.cwd(),P)),x)t.readlink(F,(I,B)=>I?I.code==="EINVAL"||I.code==="UNKNOWN"?t.symlink(P,F,D):D(I):(T.dereference&&(B=n.resolve(process.cwd(),B)),s.isSrcSubdir(P,B)?D(new Error(`Cannot copy '${P}' to a subdirectory of itself, '${B}'.`)):x.isDirectory()&&s.isSrcSubdir(B,P)?D(new Error(`Cannot overwrite '${B}' with '${P}'.`)):A(P,F,D)));else return t.symlink(P,F,D)})}function A(x,C,F){t.unlink(C,T=>T?F(T):t.symlink(x,C,F))}r.exports=o}),x1=re((e,r)=>{"use strict";Q();var t=Et().fromCallback;r.exports={copy:t(KF())}}),YF=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=ce("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Qs=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=YF();r.exports={remove:t(n),removeSync:n.sync}}),XF=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=je(),i=ce("path"),c=Ct(),a=Qs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),ZF=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=ce("path"),i=je(),c=Ct(),a=rr().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),QF=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=ce("path"),i=je(),c=Ct(),a=rr().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),JF=re((e,r)=>{"use strict";Q();var t=ce("path"),n=je(),i=rr().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),eP=re((e,r)=>{"use strict";Q();var t=je();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),tP=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=ce("path"),i=je(),c=Ct(),a=c.mkdirs,s=c.mkdirsSync,o=JF(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=eP(),u=h.symlinkType,d=h.symlinkTypeSync,p=rr().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,C)=>{if(x)return E(x);let F=n.dirname(g);p(F,(T,D)=>{if(T)return E(T);if(D)return i.symlink(_,g,C,E);a(F,O=>{if(O)return E(O);i.symlink(_,g,C,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),rP=re((e,r)=>{"use strict";Q();var t=ZF(),n=QF(),i=tP();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),nP=re((e,r)=>{Q();var t;try{t=je()}catch{t=ce("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
|
146
|
-
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Il=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=nP();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),iP=re((e,r)=>{"use strict";Q();var t=ce("path"),n=Ct(),i=rr().pathExists,c=Il();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),sP=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=Ct(),c=Il();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),oP=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=Il();n.outputJson=t(iP()),n.outputJsonSync=sP(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),aP=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=A1().copySync,c=Qs().removeSync,a=Ct().mkdirpSync,s=Zs();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),uP=re((e,r)=>{"use strict";Q(),r.exports={moveSync:aP()}}),lP=re((e,r)=>{"use strict";Q();var t=je(),n=ce("path"),i=x1().copy,c=Qs().remove,a=Ct().mkdirp,s=rr().pathExists,o=Zs();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),cP=re((e,r)=>{"use strict";Q();var t=Et().fromCallback;r.exports={move:t(lP())}}),hP=re((e,r)=>{"use strict";Q();var t=Et().fromCallback,n=je(),i=ce("path"),c=Ct(),a=rr().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),fP=re((e,r)=>{"use strict";Q(),r.exports=Object.assign({},w1(),A1(),x1(),XF(),rP(),oP(),Ct(),uP(),cP(),hP(),rr(),Qs());var t=ce("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Q();Q();var x$=Qe(MF());Q();Q();function pP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Q();Q();function gl(e){return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gl(e)}Q();function dP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e,r){if(r&&(gl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dP(e)}Q();function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}Q();Q();function hi(e,r){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},hi(e,r)}function yP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&hi(e,r)}Q();Q();function gP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Q();Q();function bP(){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 js(e,r,t){return bP()?js=Reflect.construct.bind():js=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&hi(o,c.prototype),o},js.apply(null,arguments)}function bl(e){var r=typeof Map=="function"?new Map:void 0;return bl=function(t){if(t===null||!gP(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return js(t,arguments,qs(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),hi(n,t)},bl(e)}var k$=Qe(GF()),C$=Qe(fP()),D$=function(e){yP(r,e);function r(t){var n;return pP(this,r),n=mP(this,qs(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(bl(Error));Q();var vP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),_P=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),wP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),EP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=ce("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),SP=re((e,r)=>{Q(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),AP=re((e,r)=>{Q();var t=SP(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),xP=re((e,r)=>{"use strict";Q();var t=AP(),n=ce("path").posix.dirname,i=ce("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),Ml=re(e=>{"use strict";Q(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Nl=re((e,r)=>{"use strict";Q();var t=Ml();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),kP=re((e,r)=>{"use strict";Q(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),CP=re((e,r)=>{"use strict";Q();var t=kP(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),C=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(C))return n.cache[C].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let D=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(D&&(O.isPadded=D,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[C]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[C,F]=v[x];C===F?w+=C:C!=="0"||F!=="9"?w+=y(C,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let C=0;C<m.length;C++){let F=m[C],T=a(String(A),String(F),v),D="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(D=_(F,E,v)),T.string=D+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),k1=re((e,r)=>{"use strict";Q();var t=ce("util"),n=CP(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",C;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?C=`${A}|${x}`:C=A||x,m.wrap?`(${w}${C})`:C},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let C=String.fromCharCode(m);return`[${x}-${C}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),C=Number(m);if(!Number.isInteger(x)||!Number.isInteger(C)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),C===0&&(C=0);let F=x>C,T=String(v),D=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(D)||o(O),I=P?Math.max(T.length,D.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},J=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=C:x<=C;)A.toRegex===!0&&w>1?J(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),C=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=C>F,D=Math.min(C,F),O=Math.max(C,F);if(A.toRegex&&w===1)return d(D,O,!1,A);let P=[],I=0;for(;T?C>=F:C<=F;)P.push(x(C,I)),C=T?C-w:C+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),DP=re((e,r)=>{"use strict";Q();var t=k1(),n=Ml(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),RP=re((e,r)=>{"use strict";Q();var t=k1(),n=Nl(),i=Ml(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),OP=re((e,r)=>{"use strict";Q(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
147
|
-
`,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"}}),TP=re((e,r)=>{"use strict";Q();var t=Nl(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=OP(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,C=w,F=0,T=S.length,D=0,O=0,P,I={},B=()=>S[D++],H=G=>{if(G.type==="text"&&C.type==="dot"&&(C.type="text"),C&&C.type==="text"&&G.type==="text"){C.value+=G.value;return}return x.nodes.push(G),G.parent=x,G.prev=C,C=G,G};for(H({type:"bos"});D<T;)if(x=A[A.length-1],P=B(),!(P===_||P===b)){if(P===i){H({type:"text",value:(E.keepEscaping?P:"")+B()});continue}if(P===d){H({type:"text",value:"\\"+P});continue}if(P===u){F++;let G=!0,J;for(;D<T&&(J=B());){if(P+=J,J===u){F++;continue}if(J===i){P+=B();continue}if(J===d&&(F--,F===0))break}H({type:"text",value:P});continue}if(P===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:P});continue}if(P===f){if(x.type!=="paren"){H({type:"text",value:P});continue}x=A.pop(),H({type:"text",value:P}),x=A[A.length-1];continue}if(P===p||P===y||P===c){let G=P,J;for(E.keepQuotes!==!0&&(P="");D<T&&(J=B());){if(J===i){P+=J+B();continue}if(J===G){E.keepQuotes===!0&&(P+=J);break}P+=J}H({type:"text",value:P});continue}if(P===l){O++;let G=C.value&&C.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:G,depth:O,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:P});continue}if(P===h){if(x.type!=="brace"){H({type:"text",value:P});continue}let G="close";x=A.pop(),x.close=!0,H({type:G,value:P}),O--,x=A[A.length-1];continue}if(P===a&&O>0){if(x.ranges>0){x.ranges=0;let G=x.nodes.shift();x.nodes=[G,{type:"text",value:t(x)}]}H({type:"comma",value:P}),x.commas++;continue}if(P===s&&O>0&&x.commas===0){let G=x.nodes;if(O===0||G.length===0){H({type:"text",value:P});continue}if(C.type==="dot"){if(x.range=[],C.value+=P,C.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,C.type="text";continue}x.ranges++,x.args=[];continue}if(C.type==="range"){G.pop();let J=G[G.length-1];J.value+=C.value+P,C=J,x.ranges--;continue}H({type:"dot",value:P});continue}H({type:"text",value:P})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let G=A[A.length-1],J=G.nodes.indexOf(x);G.nodes.splice(J,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),FP=re((e,r)=>{"use strict";Q();var t=Nl(),n=DP(),i=RP(),c=TP(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Js=re((e,r)=>{"use strict";Q();var t=ce("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),eo=re(e=>{"use strict";Q();var r=ce("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Js();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),PP=re((e,r)=>{"use strict";Q();var t=eo(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Js(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,C=[],F=[],T=[],D=v,O=-1,P=0,I=0,B=!1,H=!1,G=!1,J=!1,L=!1,M=!1,R=!1,K=!1,q=!1,Z=!1,N=0,W,ee,ae={value:"",depth:0,isGlob:!1},oe=()=>O>=A,de=()=>D.charCodeAt(O+1),pe=()=>(W=ee,D.charCodeAt(++O));for(;O<A;){ee=pe();let X;if(ee===c){R=ae.backslashes=!0,ee=pe(),ee===l&&(M=!0);continue}if(M===!0||ee===l){for(N++;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,pe();continue}if(ee===l){N++;continue}if(M!==!0&&ee===s&&(ee=pe())===s){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(M!==!0&&ee===a){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===y&&(N--,N===0)){M=!1,B=ae.isBrace=!0,Z=!0;break}}if(x===!0)continue;break}if(ee===f){if(C.push(O),F.push(ae),ae={value:"",depth:0,isGlob:!1},Z===!0)continue;if(W===s&&O===P+1){P+=2;continue}I=O+1;continue}if(w.noext!==!0&&(ee===d||ee===i||ee===n||ee===p||ee===o)&&de()===h){if(G=ae.isGlob=!0,J=ae.isExtglob=!0,Z=!0,ee===o&&O===P&&(q=!0),x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){G=ae.isGlob=!0,Z=!0;break}}continue}break}if(ee===n){if(W===n&&(L=ae.isGlobstar=!0),G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===p){if(G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===u){for(;oe()!==!0&&(X=pe());){if(X===c){R=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,G=ae.isGlob=!0,Z=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&ee===o&&O===P){K=ae.negated=!0,P++;continue}if(w.noparen!==!0&&ee===h){if(G=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===h){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){Z=!0;break}}continue}break}if(G===!0){if(Z=!0,x===!0)continue;break}}w.noext===!0&&(J=!1,G=!1);let j=D,z="",k="";P>0&&(z=D.slice(0,P),D=D.slice(P),I-=P),j&&G===!0&&I>0?(j=D.slice(0,I),k=D.slice(I)):G===!0?(j="",k=D):j=D,j&&j!==""&&j!=="/"&&j!==D&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(k&&(k=t.removeBackslashes(k)),j&&R===!0&&(j=t.removeBackslashes(j)));let U={prefix:z,input:v,start:P,base:j,glob:k,isBrace:B,isBracket:H,isGlob:G,isExtglob:J,isGlobstar:L,negated:K,negatedExtglob:q};if(w.tokens===!0&&(U.maxDepth=0,g(ee)||F.push(ae),U.tokens=F),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<C.length;ne++){let me=X?X+1:P,se=C[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&P!==0?(F[ne].isPrefix=!0,F[ne].value=z):F[ne].value=fe,S(F[ne]),U.maxDepth+=F[ne].depth),(ne!==0||fe!=="")&&T.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);T.push(ne),w.tokens&&(F[F.length-1].value=ne,S(F[F.length-1]),U.maxDepth+=F[F.length-1].depth)}U.slashes=C,U.parts=T}return U};r.exports=E}),BP=re((e,r)=>{"use strict";Q();var t=Js(),n=eo(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:T,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:I,STAR:B,START_ANCHOR:H}=v,G=se=>`(${S}(?:(?!${H}${se.dot?F:w}).)*?)`,J=p.dot?"":T,L=p.dot?P:I,M=p.bash===!0?G(p):B;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let R={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,R),b=u.length;let K=[],q=[],Z=[],N=_,W,ee=()=>R.index===b-1,ae=R.peek=(se=1)=>u[R.index+se],oe=R.advance=()=>u[++R.index]||"",de=()=>u.slice(R.index+1),pe=(se="",fe=0)=>{R.consumed+=se,R.index+=fe},j=se=>{R.output+=se.output!=null?se.output:se.value,pe(se.value)},z=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),R.start++,se++;return se%2===0?!1:(R.negated=!0,R.start++,!0)},k=se=>{R[se]++,Z.push(se)},U=se=>{R[se]--,Z.pop()},X=se=>{if(N.type==="globstar"){let fe=R.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||K.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(R.output=R.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,R.output+=N.output)}if(K.length&&se.type!=="paren"&&(K[K.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=R.parens,ie.output=R.output;let ye=(p.capture?"(":"")+ie.open;k("parens"),X({type:se,value:fe,output:R.output?"":C}),X({type:"paren",extglob:!0,value:oe(),output:ye}),K.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=G(p)),(ye!==M||ee()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),U("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?P.repeat(V.length):""):$===0?L+(V?P.repeat(V.length):""):P.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(R.output=u,R):(R.output=n.wrapOutput(fe,R,d),R)}for(;!ee();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,R.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),R.brackets===0){X({type:"text",value:W});continue}}if(R.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,R.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=C);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(R.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){R.quotes=R.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){k("parens"),X({type:"paren",value:W});continue}if(W===")"){if(R.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=K[K.length-1];if(ie&&R.parens===ie.parens+1){me(K.pop());continue}X({type:"paren",value:W,output:R.parens?")":"\\)"}),U("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else k("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(R.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}U("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(R.output=R.output.slice(0,-N.value.length),p.literalBrackets===!0){R.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,R.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){k("braces");let ie={type:"brace",value:W,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};q.push(ie),X(ie);continue}if(W==="}"){let ie=q[q.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),R.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=R.output.slice(0,ie.outputIndex),xe=R.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",R.output=we;for(let V of xe)R.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),U("braces"),q.pop();continue}if(W==="|"){K.length>0&&K[K.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=q[q.length-1];ye&&Z[Z.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(R.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=q[q.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(R.braces+R.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:I});continue}X({type:"qmark",value:W,output:P});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&R.index===0){z();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||R.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],R.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,R.backtrack=!0,R.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=R.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=K.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[R.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&ee()){N.type="globstar",N.value+=W,N.output=G(p),R.output=N.output,R.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&ee()){R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=G(p)+(p.strictSlashes?")":"|$)"),N.value+=W,R.globstar=!0,R.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${G(p)}${x}|${x}${ue})`,N.value+=W,R.output+=ie.output+N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${G(p)}${x})`,R.output=N.output,R.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-N.output.length),N.type="globstar",N.output=G(p),N.value+=W,R.output+=N.output,R.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=J+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(R.index===R.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(R.output+=D,N.output+=D):p.dot===!0?(R.output+=O,N.output+=O):(R.output+=J,N.output+=J),ae()!=="*"&&(R.output+=C,N.output+=C)),X(fe)}for(;R.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R.output=n.escapeLast(R.output,"["),U("brackets")}for(;R.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));R.output=n.escapeLast(R.output,"("),U("parens")}for(;R.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));R.output=n.escapeLast(R.output,"{"),U("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),R.backtrack===!0){R.output="";for(let se of R.tokens)R.output+=se.output!=null?se.output:se.value,se.suffix&&(R.output+=se.suffix)}return R};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:C}=t.globChars(_),F=p.dot?w:m,T=p.dot?A:m,D=p.capture?"":"?:",O={negated:!1,prefix:""},P=p.bash===!0?".*?":x;p.capture&&(P=`(${P})`);let I=J=>J.noglobstar===!0?P:`(${D}(?:(?!${C}${J.dot?v:g}).)*?)`,B=J=>{switch(J){case"*":return`${F}${E}${P}`;case".*":return`${g}${E}${P}`;case"*.*":return`${F}${P}${g}${E}${P}`;case"*/*":return`${F}${P}${S}${E}${T}${P}`;case"**":return F+I(p);case"**/*":return`(?:${F}${I(p)}${S})?${T}${E}${P}`;case"**/*.*":return`(?:${F}${I(p)}${S})?${T}${P}${g}${E}${P}`;case"**/.*":return`(?:${F}${I(p)}${S})?${g}${E}${P}`;default:{let L=/^(.*?)\.(\w+)$/.exec(J);if(!L)return;let M=B(L[1]);return M?M+g+L[2]:void 0}}},H=n.removePrefix(u,O),G=B(H);return G&&p.strictSlashes!==!0&&(G+=`${S}?`),G},r.exports=h}),LP=re((e,r)=>{"use strict";Q();var t=ce("path"),n=PP(),i=BP(),c=eo(),a=Js(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),IP=re((e,r)=>{"use strict";Q(),r.exports=LP()}),MP=re((e,r)=>{"use strict";Q();var t=ce("util"),n=FP(),i=IP(),c=eo(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),NP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=ce("path"),t=xP(),n=MP(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(B,H={}){return!u(B,H)}e.isStaticPattern=h;function u(B,H={}){return B===""?!1:!!(H.caseSensitiveMatch===!1||B.includes(c)||a.test(B)||s.test(B)||o.test(B)||H.extglob!==!1&&f.test(B)||H.braceExpansion!==!1&&d(B))}e.isDynamicPattern=u;function d(B){let H=B.indexOf("{");if(H===-1)return!1;let G=B.indexOf("}",H+1);if(G===-1)return!1;let J=B.slice(H,G);return l.test(J)}function p(B){return b(B)?B.slice(1):B}e.convertToPositivePattern=p;function y(B){return"!"+B}e.convertToNegativePattern=y;function b(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=b;function _(B){return!b(B)}e.isPositivePattern=_;function g(B){return B.filter(b)}e.getNegativePatterns=g;function S(B){return B.filter(_)}e.getPositivePatterns=S;function E(B){return B.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(B){return B.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(B){return t(B,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(B){return B.includes(i)}e.hasGlobStar=A;function x(B){return B.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function C(B){let H=r.basename(B);return x(B)||h(H)}e.isAffectDepthOfReadingPattern=C;function F(B){return B.reduce((H,G)=>H.concat(T(G)),[])}e.expandPatternsWithBraceExpansion=F;function T(B){return n.braces(B,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function D(B,H){let{parts:G}=n.scan(B,Object.assign(Object.assign({},H),{parts:!0}));return G.length===0&&(G=[B]),G[0].startsWith("/")&&(G[0]=G[0].slice(1),G.unshift("")),G}e.getPatternParts=D;function O(B,H){return n.makeRe(B,H)}e.makeRe=O;function P(B,H){return B.map(G=>O(G,H))}e.convertPatternsToRe=P;function I(B,H){return H.some(G=>G.test(B))}e.matchAny=I}),jP=re((e,r)=>{"use strict";Q();var t=ce("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),$P=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=jP();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),HP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),Er=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=vP();e.array=r;var t=_P();e.errno=t;var n=wP();e.fs=n;var i=EP();e.path=i;var c=NP();e.pattern=c;var a=$P();e.stream=a;var s=HP();e.string=s}),qP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=Er();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),GP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),UP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),zP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),WP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),VP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=WP(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),Ln=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=UP(),t=zP(),n=VP();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),KP=re((e,r)=>{Q();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),YP=re((e,r)=>{Q(),r.exports=n;var t=KP();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),C1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),XP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),D1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=XP();e.fs=r}),R1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),ZP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Ln(),t=YP(),n=C1(),i=D1(),c=R1();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),QP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Ln(),t=C1(),n=D1(),i=R1();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),JP=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),eB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=Ln(),n=JP(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),jl=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=ZP(),t=QP(),n=eB();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),tB=re((e,r)=>{"use strict";Q();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),rB=re((e,r)=>{"use strict";Q();var t=tB();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:C,error:F};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var T=h,D=0;T;)T=T.next,D++;return D}function S(){for(var T=h,D=[];T;)D.push(T.value),T=T.next;return D}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,A()}}function v(){return d===0&&y.length()===0}function m(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,O.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=O,u=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function w(T,D){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=D||i,d===y.concurrency||y.paused?h?(O.next=h,h=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function A(T){T&&l.release(T);var D=h;D?y.paused?d--:(u===h&&(u=null),h=D.next,D.next=null,o.call(s,D.value,D.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function C(){h=null,u=null,y.drain(),y.drain=i}function F(T){p=T}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),$l=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),O1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=$l(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),T1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("events"),t=jl(),n=rB(),i=$l(),c=O1(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),nB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=T1(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),iB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=T1(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),sB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=jl(),t=$l(),n=O1(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),oB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=sB(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),aB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=jl(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Hl=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=nB(),t=iB(),n=oB(),i=aB();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),ql=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=Ln(),n=Er(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),F1=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=Ln(),n=Hl(),i=ql(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),uB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Hl(),t=ql(),n=F1(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),lB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Er(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),cB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=lB(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),hB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Er(),t=cB(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),fB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Er(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),pB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Er(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),dB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Er(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Gl=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=hB(),n=fB(),i=pB(),c=dB(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),mB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=uB(),t=Gl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),yB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=F1(),n=Gl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),gB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ln(),t=Hl(),n=ql(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),bB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0});var r=gB(),t=Gl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),vB=re(e=>{"use strict";Q(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs"),t=ce("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),_B=re((e,r)=>{"use strict";Q();var t=qP(),n=GP(),i=mB(),c=yB(),a=bB(),s=vB(),o=Er();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Q();Q();function P1(e){return typeof e>"u"||e===null}function wB(e){return typeof e=="object"&&e!==null}function EB(e){return Array.isArray(e)?e:P1(e)?[]:[e]}function SB(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function AB(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function xB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var kB=P1,CB=wB,DB=EB,RB=AB,OB=xB,TB=SB,Ye={isNothing:kB,isObject:CB,toArray:DB,repeat:RB,isNegativeZero:OB,extend:TB};function B1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
148
|
-
|
149
|
-
`+e.mark.snippet),n+" "+t):n}function fi(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=B1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fi.prototype=Object.create(Error.prototype);fi.prototype.constructor=fi;fi.prototype.toString=function(e){return this.name+": "+B1(this,e)};var dt=fi;function dl(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function ml(e,r){return Ye.repeat(" ",r-e.length)+e}function FB(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=dl(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ye.repeat(" ",r.indent)+ml((e.line-o+1).toString(),l)+" | "+f.str+`
|
150
|
-
`+s;for(f=dl(e.buffer,n[a],i[a],e.position,h),s+=Ye.repeat(" ",r.indent)+ml((e.line+1).toString(),l)+" | "+f.str+`
|
151
|
-
`,s+=Ye.repeat("-",r.indent+l+3+f.pos)+`^
|
152
|
-
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=dl(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ye.repeat(" ",r.indent)+ml((e.line+o+1).toString(),l)+" | "+f.str+`
|
153
|
-
`;return s.replace(/\n$/,"")}var PB=FB,BB=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],LB=["scalar","sequence","mapping"];function IB(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function MB(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(BB.indexOf(t)===-1)throw new dt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=IB(r.styleAliases||null),LB.indexOf(this.kind)===-1)throw new dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var it=MB;function _2(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function NB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function vl(e){return this.extend(e)}vl.prototype.extend=function(e){var r=[],t=[];if(e instanceof it)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new dt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof it))throw new dt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new dt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new dt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof it))throw new dt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(vl.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=_2(n,"implicit"),n.compiledExplicit=_2(n,"explicit"),n.compiledTypeMap=NB(n.compiledImplicit,n.compiledExplicit),n};var jB=vl,$B=new it("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),HB=new it("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),qB=new it("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),GB=new jB({explicit:[$B,HB,qB]});function UB(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function zB(){return null}function WB(e){return e===null}var VB=new it("tag:yaml.org,2002:null",{kind:"scalar",resolve:UB,construct:zB,predicate:WB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function KB(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function YB(e){return e==="true"||e==="True"||e==="TRUE"}function XB(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ZB=new it("tag:yaml.org,2002:bool",{kind:"scalar",resolve:KB,construct:YB,predicate:XB,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function QB(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function JB(e){return 48<=e&&e<=55}function e6(e){return 48<=e&&e<=57}function t6(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!QB(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!JB(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!e6(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function r6(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function n6(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ye.isNegativeZero(e)}var i6=new it("tag:yaml.org,2002:int",{kind:"scalar",resolve:t6,construct:r6,predicate:n6,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),s6=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o6(e){return!(e===null||!s6.test(e)||e[e.length-1]==="_")}function a6(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var u6=/^[-+]?[0-9]+e/;function l6(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ye.isNegativeZero(e))return"-0.0";return t=e.toString(10),u6.test(t)?t.replace("e",".e"):t}function c6(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ye.isNegativeZero(e))}var h6=new it("tag:yaml.org,2002:float",{kind:"scalar",resolve:o6,construct:a6,predicate:c6,represent:l6,defaultStyle:"lowercase"}),f6=GB.extend({implicit:[VB,ZB,i6,h6]}),p6=f6,L1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),I1=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 d6(e){return e===null?!1:L1.exec(e)!==null||I1.exec(e)!==null}function m6(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=L1.exec(e),r===null&&(r=I1.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function y6(e){return e.toISOString()}var g6=new it("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d6,construct:m6,instanceOf:Date,represent:y6});function b6(e){return e==="<<"||e===null}var v6=new it("tag:yaml.org,2002:merge",{kind:"scalar",resolve:b6}),Ul=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
154
|
-
\r`;function _6(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=Ul;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function w6(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=Ul,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function E6(e){var r="",t=0,n,i,c=e.length,a=Ul;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function S6(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var A6=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_6,construct:w6,predicate:S6,represent:E6}),x6=Object.prototype.hasOwnProperty,k6=Object.prototype.toString;function C6(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,k6.call(i)!=="[object Object]")return!1;for(c in i)if(x6.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function D6(e){return e!==null?e:[]}var R6=new it("tag:yaml.org,2002:omap",{kind:"sequence",resolve:C6,construct:D6}),O6=Object.prototype.toString;function T6(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],O6.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function F6(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var P6=new it("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:T6,construct:F6}),B6=Object.prototype.hasOwnProperty;function L6(e){if(e===null)return!0;var r,t=e;for(r in t)if(B6.call(t,r)&&t[r]!==null)return!1;return!0}function I6(e){return e!==null?e:{}}var M6=new it("tag:yaml.org,2002:set",{kind:"mapping",resolve:L6,construct:I6}),M1=p6.extend({implicit:[g6,v6],explicit:[A6,R6,P6,M6]}),br=Object.prototype.hasOwnProperty,Gs=1,N1=2,j1=3,Us=4,yl=1,N6=2,w2=3,j6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$6=/[\x85\u2028\u2029]/,H6=/[,\[\]\{\}]/,$1=/^(?:!|!!|![a-z\-]+!)$/i,H1=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function E2(e){return Object.prototype.toString.call(e)}function $t(e){return e===10||e===13}function $r(e){return e===9||e===32}function mt(e){return e===9||e===32||e===10||e===13}function kn(e){return e===44||e===91||e===93||e===123||e===125}function q6(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function G6(e){return e===120?2:e===117?4:e===85?8:0}function U6(e){return 48<=e&&e<=57?e-48:-1}function S2(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
155
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function z6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var q1=new Array(256),G1=new Array(256);for(jr=0;jr<256;jr++)q1[jr]=S2(jr)?1:0,G1[jr]=S2(jr);var jr;function W6(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||M1,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function U1(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=PB(t),new dt(r,t)}function Oe(e,r){throw U1(e,r)}function zs(e,r){e.onWarning&&e.onWarning.call(null,U1(e,r))}var A2={YAML:function(e,r,t){var n,i,c;e.version!==null&&Oe(e,"duplication of %YAML directive"),t.length!==1&&Oe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Oe(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&Oe(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&zs(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Oe(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],$1.test(n)||Oe(e,"ill-formed tag handle (first argument) of the TAG directive"),br.call(e.tagMap,n)&&Oe(e,'there is a previously declared suffix for "'+n+'" tag handle'),H1.test(i)||Oe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Oe(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function gr(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Oe(e,"expected valid JSON character");else j6.test(s)&&Oe(e,"the stream contains non-printable characters");e.result+=s}}function x2(e,r,t,n){var i,c,a,s;for(Ye.isObject(t)||Oe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],br.call(r,c)||(r[c]=t[c],n[c]=!0)}function Cn(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Oe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&E2(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&E2(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)x2(e,r,c[f],t);else x2(e,r,c,t);else!e.json&&!br.call(t,i)&&br.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Oe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function zl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function We(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;$r(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if($t(i))for(zl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&zs(e,"deficient indentation"),n}function to(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||mt(t)))}function Wl(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ye.repeat(`
|
156
|
-
`,r-1))}function V6(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),mt(d)||kn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),mt(i)||t&&kn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),mt(i)||t&&kn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),mt(n))break}else{if(e.position===e.lineStart&&to(e)||t&&kn(d))break;if($t(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,We(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(gr(e,c,a,!1),Wl(e,e.line-o),c=a=e.position,s=!1),$r(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return gr(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function K6(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(gr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else $t(t)?(gr(e,n,i,!0),Wl(e,We(e,!1,r)),n=i=e.position):e.position===e.lineStart&&to(e)?Oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Oe(e,"unexpected end of the stream within a single quoted scalar")}function Y6(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return gr(e,t,e.position,!0),e.position++,!0;if(s===92){if(gr(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),$t(s))We(e,!1,r);else if(s<256&&q1[s])e.result+=G1[s],e.position++;else if((a=G6(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=q6(s))>=0?c=(c<<4)+a:Oe(e,"expected hexadecimal character");e.result+=z6(c),e.position++}else Oe(e,"unknown escape sequence");t=n=e.position}else $t(s)?(gr(e,t,n,!0),Wl(e,We(e,!1,r)),t=n=e.position):e.position===e.lineStart&&to(e)?Oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Oe(e,"unexpected end of the stream within a double quoted scalar")}function X6(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(We(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Oe(e,"expected the node content, but found ','"):Oe(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),mt(f)&&(h=u=!0,e.position++,We(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,Rn(e,r,Gs,!1,!0),b=e.tag,y=e.result,We(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),We(e,!0,r),Rn(e,r,Gs,!1,!0),_=e.result),d?Cn(e,s,p,b,y,_,n,i,c):h?s.push(Cn(e,null,p,b,y,_,n,i,c)):s.push(y),We(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Oe(e,"unexpected end of the stream within a flow collection")}function Z6(e,r){var t,n,i=yl,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)yl===i?i=h===43?w2:N6:Oe(e,"repeat of a chomping mode identifier");else if((l=U6(h))>=0)l===0?Oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Oe(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if($r(h)){do h=e.input.charCodeAt(++e.position);while($r(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!$t(h)&&h!==0)}for(;h!==0;){for(zl(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),$t(h)){o++;continue}if(e.lineIndent<s){i===w2?e.result+=Ye.repeat(`
|
157
|
-
`,c?1+o:o):i===yl&&c&&(e.result+=`
|
158
|
-
`);break}for(n?$r(h)?(f=!0,e.result+=Ye.repeat(`
|
159
|
-
`,c?1+o:o)):f?(f=!1,e.result+=Ye.repeat(`
|
160
|
-
`,o+1)):o===0?c&&(e.result+=" "):e.result+=Ye.repeat(`
|
161
|
-
`,o):e.result+=Ye.repeat(`
|
162
|
-
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!$t(h)&&h!==0;)h=e.input.charCodeAt(++e.position);gr(e,t,e.position,!1)}return!0}function k2(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!mt(a))));){if(s=!0,e.position++,We(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,Rn(e,r,j1,!1,!0),c.push(e.result),We(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function Q6(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&mt(n))g===63?(b&&(Cn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!Rn(e,t,N1,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);$r(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),mt(g)||Oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Cn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),Rn(e,r,Us,!0,i)&&(b?p=e.result:y=e.result),b||(Cn(e,h,u,d,p,y,a,s,o),d=p=y=null),We(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&Cn(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function J6(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!mt(a);)a===33&&(n?Oe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),$1.test(i)||Oe(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),H6.test(c)&&Oe(e,"tag suffix cannot contain flow indicator characters")}c&&!H1.test(c)&&Oe(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Oe(e,"tag name is malformed: "+c)}return t?e.tag=c:br.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Oe(e,'undeclared tag handle "'+i+'"'),!0}function eL(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Oe(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!mt(t)&&!kn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function tL(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!mt(n)&&!kn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),br.call(e.anchorMap,t)||Oe(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],We(e,!0,-1),!0}function Rn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=Us===t||j1===t,n&&We(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;J6(e)||eL(e);)We(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||Us===t)&&(Gs===t||N1===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(k2(e,b)||Q6(e,b,y))||X6(e,y)?l=!0:(a&&Z6(e,y)||K6(e,y)||Y6(e,y)?l=!0:tL(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Oe(e,"alias node should not have any properties")):V6(e,y,Gs===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&k2(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(br.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Oe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function rL(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(We(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!mt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Oe(e,"directive name must not be less than one character in length");a!==0;){for(;$r(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!$t(a));break}if($t(a))break;for(t=e.position;a!==0&&!mt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&zl(e),br.call(A2,n)?A2[n](e,n,i):zs(e,'unknown document directive "'+n+'"')}if(We(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,We(e,!0,-1)):c&&Oe(e,"directives end mark is expected"),Rn(e,e.lineIndent-1,Us,!1,!0),We(e,!0,-1),e.checkLineBreaks&&$6.test(e.input.slice(r,e.position))&&zs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&to(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,We(e,!0,-1));return}if(e.position<e.length-1)Oe(e,"end of the stream or a document separator is expected");else return}function z1(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
163
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new W6(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Oe(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)rL(t);return t.documents}function nL(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=z1(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function iL(e,r){var t=z1(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new dt("expected a single document in the stream, but found more")}}var sL=nL,oL=iL,W1={loadAll:sL,load:oL},V1=Object.prototype.toString,K1=Object.prototype.hasOwnProperty,Vl=65279,aL=9,pi=10,uL=13,lL=32,cL=33,hL=34,_l=35,fL=37,pL=38,dL=39,mL=42,Y1=44,yL=45,Ws=58,gL=61,bL=62,vL=63,_L=64,X1=91,Z1=93,wL=96,Q1=123,EL=124,J1=125,ot={};ot[0]="\\0";ot[7]="\\a";ot[8]="\\b";ot[9]="\\t";ot[10]="\\n";ot[11]="\\v";ot[12]="\\f";ot[13]="\\r";ot[27]="\\e";ot[34]='\\"';ot[92]="\\\\";ot[133]="\\N";ot[160]="\\_";ot[8232]="\\L";ot[8233]="\\P";var SL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],AL=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xL(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&K1.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function kL(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new dt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ye.repeat("0",n-r.length)+r}var CL=1,di=2;function DL(e){this.schema=e.schema||M1,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ye.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=xL(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?di:CL,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function C2(e,r){for(var t=Ye.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
164
|
-
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
165
|
-
`&&(c+=t),c+=a;return c}function wl(e,r){return`
|
166
|
-
`+Ye.repeat(" ",e.indent*r)}function RL(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Vs(e){return e===lL||e===aL}function mi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Vl||65536<=e&&e<=1114111}function D2(e){return mi(e)&&e!==Vl&&e!==uL&&e!==pi}function R2(e,r,t){var n=D2(e),i=n&&!Vs(e);return(t?n:n&&e!==Y1&&e!==X1&&e!==Z1&&e!==Q1&&e!==J1)&&e!==_l&&!(r===Ws&&!i)||D2(r)&&!Vs(r)&&e===_l||r===Ws&&i}function OL(e){return mi(e)&&e!==Vl&&!Vs(e)&&e!==yL&&e!==vL&&e!==Ws&&e!==Y1&&e!==X1&&e!==Z1&&e!==Q1&&e!==J1&&e!==_l&&e!==pL&&e!==mL&&e!==cL&&e!==EL&&e!==gL&&e!==bL&&e!==dL&&e!==hL&&e!==fL&&e!==_L&&e!==wL}function TL(e){return!Vs(e)&&e!==Ws}function ci(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function ey(e){var r=/^\n* /;return r.test(e)}var ty=1,El=2,ry=3,ny=4,xn=5;function FL(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=OL(ci(e,0))&&TL(ci(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=ci(e,o),!mi(f))return xn;y=y&&R2(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=ci(e,o),f===pi)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!mi(f))return xn;y=y&&R2(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?ty:c===di?xn:El:t>9&&ey(e)?xn:a?c===di?xn:El:u?ny:ry}function PL(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===di?'""':"''";if(!e.noCompatMode&&(SL.indexOf(r)!==-1||AL.test(r)))return e.quotingType===di?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return RL(e,f)}switch(FL(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case ty:return r;case El:return"'"+r.replace(/'/g,"''")+"'";case ry:return"|"+O2(r,e.indent)+T2(C2(r,c));case ny:return">"+O2(r,e.indent)+T2(C2(BL(r,a),c));case xn:return'"'+LL(r)+'"';default:throw new dt("impossible error: invalid scalar style")}}()}function O2(e,r){var t=ey(e)?String(r):"",n=e[e.length-1]===`
|
167
|
-
`,i=n&&(e[e.length-2]===`
|
168
|
-
`||e===`
|
169
|
-
`),c=i?"+":n?"":"-";return t+c+`
|
170
|
-
`}function T2(e){return e[e.length-1]===`
|
171
|
-
`?e.slice(0,-1):e}function BL(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
172
|
-
`);return f=f!==-1?f:e.length,t.lastIndex=f,F2(e.slice(0,f),r)}(),i=e[0]===`
|
173
|
-
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
174
|
-
`:"")+F2(o,r),i=c}return n}function F2(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
175
|
-
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
176
|
-
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
177
|
-
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function LL(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=ci(e,i),n=ot[t],!n&&mi(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||kL(t);return r}function IL(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(er(e,r,s,!1,!1)||typeof s>"u"&&er(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function P2(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(er(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&er(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=wl(e,r)),e.dump&&pi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function ML(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),er(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),er(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function NL(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new dt("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=wl(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),er(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&pi===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=wl(e,r)),er(e,r+1,l,!0,h)&&(e.dump&&pi===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function B2(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,V1.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(K1.call(s.represent,o))n=s.represent[o](r,o);else throw new dt("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function er(e,r,t,n,i,c,a){e.tag=null,e.dump=t,B2(e,t,!1)||B2(e,t,!0);var s=V1.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(NL(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(ML(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?P2(e,r-1,e.dump,i):P2(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(IL(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&PL(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new dt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function jL(e,r){var t=[],n=[],i,c;for(Sl(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Sl(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Sl(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Sl(e[n[i]],r,t)}function $L(e,r){r=r||{};var t=new DL(r);t.noRefs||jL(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),er(t,0,n,!0,!0)?t.dump+`
|
178
|
-
`:""}var HL=$L,qL={dump:HL};function Kl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var R$=W1.load,O$=W1.loadAll,T$=qL.dump,F$=Kl("safeLoad","load"),P$=Kl("safeLoadAll","loadAll"),B$=Kl("safeDump","dump"),L$=Qe(_B());Q();var st=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,st)}},GL=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function yt({workspaceRoot:e}){let r=tr.default.join(e,"package.json");try{return(0,St.readJsonSync)(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new st(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new st(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function ro({workspaceRoot:e}){let{packageManager:r}=yt({workspaceRoot:e});if(r)try{let t=GL.exec(r);if(t){let[n,i]=t;return i}}catch{}}function xi({workspaceRoot:e}){let r=yt({workspaceRoot:e}),t=tr.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function L2({workspaceRoot:e}){let r=tr.default.join(e,"pnpm-workspace.yaml");if((0,St.existsSync)(r))try{let t=b2.load((0,St.readFileSync)(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new st(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function no({root:e,lockFile:r,workspaceConfig:t}){let n=c=>tr.default.join(e,c),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function Yl({workspaces:e}){var r;return e?Array.isArray(e)?e:"packages"in e?(r=e.packages)!=null?r:[]:[]:[]}function io({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=[`${t}/package.json`];return(0,ly.sync)(n,{onlyFiles:!0,absolute:!0,cwd:e,ignore:["**/node_modules/**"]})}).map(t=>{let n=tr.default.dirname(t),{name:i,description:c}=xi({workspaceRoot:n});return{name:i,description:c,paths:{root:n,packageJson:t,nodeModules:tr.default.join(n,"node_modules")}}}):[]}function UL({directory:e}){let r=tr.default.resolve(process.cwd(),e);return{exists:(0,St.existsSync)(r),absolute:r}}function Sr({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function zL({project:e}){let r=t=>!(t.includes("*")&&(t.includes("**")||t.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(n=>t.includes(n)));return e.workspaceData.globs.every(r)}function Jt({project:e,options:r}){r!=null&&r.dry||(0,St.rmSync)(e.paths.lockfile,{force:!0})}async function cy({project:e,options:r}){if(!(r!=null&&r.dry)&&(0,St.existsSync)(e.paths.lockfile))try{let{stdout:t}=await(0,uy.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:e.paths.root});await(0,St.writeFile)(tr.default.join(e.paths.root,"yarn.lock"),t)}catch{}finally{(0,St.rmSync)(e.paths.lockfile,{force:!0})}}function WL({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:c}=i;if(e[c]){let a=e[c],s=a.startsWith("workspace:")?a.slice(10):a;e[c]=t.name==="pnpm"?`workspace:${s}`:s,n.push(c)}}),{dependencyList:e,updated:n}}function vr({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm","bun"].includes(t.name)&&["yarn","npm","bun"].includes(e.packageManager))return;let c=yt({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];s.forEach(h=>{let u=c[h];if(u){let{updated:d,dependencyList:p}=WL({dependencyList:u,project:e,to:t});c[h]=p,a[h]=d}});let o=h=>{let u=a[h].length;if(u>0)return`${ay.default.green(u.toString())} ${h}`},f=s.map(o).filter(Boolean),l=`./${sy.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${l}`:d===f.length-1?h+=`and ${u} in ${l}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||(0,oy.writeJSONSync)(r.paths.packageJson,c,{spaces:2})}var _r={name:"pnpm",lock:"pnpm-lock.yaml"};async function hy(e){let r=Hr.default.join(e.workspaceRoot,_r.lock),t=Hr.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=ro({workspaceRoot:e.workspaceRoot});return(0,lt.existsSync)(r)||(0,lt.existsSync)(t)||n===_r.name}async function VL(e){if(!await hy(e))throw new st("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=xi(e);return{name:r,description:t,packageManager:_r.name,paths:no({root:e.workspaceRoot,lockFile:_r.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:L2(e),workspaces:io({workspaceGlobs:L2(e),...e})}}}async function KL(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(Sr({action:"create",packageManager:_r.name,project:r}));let a=yt({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||((0,lt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),c&&(n.rootStep('adding "pnpm-workspace.yaml"'),(0,lt.writeFileSync)(Hr.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
|
179
|
-
${r.workspaceData.globs.map(s=>` - "${s}"`).join(`
|
180
|
-
`)}`))),c&&(vr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{vr({workspace:s,project:r,to:t,logger:n,options:i})}))}async function YL(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Sr({action:"remove",packageManager:_r.name,project:r}));let c=yt({workspaceRoot:r.paths.root});if(r.paths.workspaceConfig&&i&&(t.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||(0,lt.rmSync)(r.paths.workspaceConfig,{force:!0})),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,lt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,lt.rm)(s,{recursive:!0,force:!0})))}catch{throw new st("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function XL(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Hr.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,lt.rmSync)(r.paths.lockfile,{force:!0})}async function ZL(e){let{project:r,options:t,logger:n}=e,i=()=>{n.subStep(`converting ${Hr.default.relative(r.paths.root,r.paths.lockfile)} to ${_r.lock}`)},c=async()=>{if(!(t!=null&&t.dry)&&(0,lt.existsSync)(r.paths.lockfile))try{await(0,iy.default)(_r.name,["import"],{stdio:"ignore",cwd:r.paths.root})}catch{}finally{Jt({project:r,options:t})}};switch(r.packageManager){case"pnpm":break;case"bun":i(),await cy({project:r,options:t}),await c(),(0,lt.rmSync)(Hr.default.join(r.paths.root,"yarn.lock"),{force:!0});break;case"npm":i(),await c();break;case"yarn":i(),await c();break}}var QL={detect:hy,read:VL,create:KL,remove:YL,clean:XL,convertLock:ZL},On={name:"npm",lock:"package-lock.json"};async function fy(e){let r=yi.default.join(e.workspaceRoot,On.lock),t=ro({workspaceRoot:e.workspaceRoot});return(0,Ht.existsSync)(r)||t===On.name}async function JL(e){if(!await fy(e))throw new st("Not an npm project",{type:"package_manager-unexpected"});let r=yt(e),{name:t,description:n}=xi(e),i=Yl({workspaces:r.workspaces});return{name:t,description:n,packageManager:On.name,paths:no({root:e.workspaceRoot,lockFile:On.lock}),workspaceData:{globs:i,workspaces:io({workspaceGlobs:i,...e})}}}async function eI(e){let{project:r,options:t,to:n,logger:i}=e,c=r.workspaceData.globs.length>0;i.mainStep(Sr({packageManager:On.name,action:"create",project:r}));let a=yt({workspaceRoot:r.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${yi.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,c?(i.rootStep(`adding "workspaces" field to ${yi.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,t!=null&&t.dry||(0,Ht.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),vr({workspace:{name:"root",paths:r.paths},project:r,to:n,logger:i,options:t}),i.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{vr({workspace:s,project:r,to:n,logger:i,options:t})})):t!=null&&t.dry||(0,Ht.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function tI(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Sr({packageManager:On.name,action:"remove",project:r}));let c=yt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,Ht.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,Ht.rm)(s,{recursive:!0,force:!0})))}catch{throw new st("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function rI(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${yi.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,Ht.rmSync)(r.paths.lockfile,{force:!0})}async function nI(e){let{project:r,options:t}=e;switch(r.packageManager){case"pnpm":Jt({project:r,options:t});break;case"bun":Jt({project:r,options:t});break;case"npm":break;case"yarn":Jt({project:r,options:t});break}}var iI={detect:fy,read:JL,create:eI,remove:tI,clean:rI,convertLock:nI},qr={name:"yarn",lock:"yarn.lock"};async function py(e){let r=Tn.default.join(e.workspaceRoot,qr.lock),t=ro({workspaceRoot:e.workspaceRoot});return(0,qt.existsSync)(r)||t===qr.name}async function sI(e){if(!await py(e))throw new st("Not a yarn project",{type:"package_manager-unexpected"});let r=yt(e),{name:t,description:n}=xi(e),i=Yl({workspaces:r.workspaces});return{name:t,description:n,packageManager:qr.name,paths:no({root:e.workspaceRoot,lockFile:qr.lock}),workspaceData:{globs:i,workspaces:io({workspaceGlobs:i,...e})}}}async function oI(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(Sr({packageManager:qr.name,action:"create",project:r}));let a=yt({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Tn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${Tn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||(0,qt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),vr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{vr({workspace:s,project:r,to:t,logger:n,options:i})})):i!=null&&i.dry||(0,qt.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function aI(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Sr({packageManager:qr.name,action:"remove",project:r}));let c=yt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,qt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,qt.rm)(s,{recursive:!0,force:!0})))}catch{throw new st("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function uI(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Tn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,qt.rmSync)(r.paths.lockfile,{force:!0})}async function lI(e){let{project:r,options:t,logger:n}=e,i=()=>{n.subStep(`converting ${Tn.default.relative(r.paths.root,r.paths.lockfile)} to ${qr.lock}`)};switch(r.packageManager){case"pnpm":Jt({project:r,options:t});break;case"bun":i(),await cy({project:r,options:t});break;case"npm":Jt({project:r,options:t});break;case"yarn":break}}var cI={detect:py,read:sI,create:oI,remove:aI,clean:uI,convertLock:lI},Fn={name:"bun",lock:"bun.lockb"};async function dy(e){let r=gi.default.join(e.workspaceRoot,Fn.lock),t=ro({workspaceRoot:e.workspaceRoot});return(0,Gt.existsSync)(r)||t===Fn.name}async function hI(e){if(!await dy(e))throw new st("Not a bun project",{type:"package_manager-unexpected"});let r=yt(e),{name:t,description:n}=xi(e),i=Yl({workspaces:r.workspaces});return{name:t,description:n,packageManager:Fn.name,paths:no({root:e.workspaceRoot,lockFile:Fn.lock}),workspaceData:{globs:i,workspaces:io({workspaceGlobs:i,...e})}}}async function fI(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;if(!zL({project:r}))throw new st("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});n.mainStep(Sr({packageManager:Fn.name,action:"create",project:r}));let a=yt({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${gi.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${gi.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||(0,Gt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),vr({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{vr({workspace:s,project:r,to:t,logger:n,options:i})})):i!=null&&i.dry||(0,Gt.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function pI(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Sr({packageManager:Fn.name,action:"remove",project:r}));let c=yt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,Gt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,Gt.rm)(s,{recursive:!0,force:!0})))}catch{throw new st("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function dI(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${gi.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,Gt.rmSync)(r.paths.lockfile,{force:!0})}async function mI(e){let{project:r,options:t}=e;switch(r.packageManager){case"pnpm":Jt({project:r,options:t});break;case"bun":break;case"npm":Jt({project:r,options:t});break;case"yarn":Jt({project:r,options:t});break}}var yI={detect:dy,read:hI,create:fI,remove:pI,clean:dI,convertLock:mI},my={pnpm:QL,yarn:cI,npm:iI,bun:yI};async function ki({root:e}){let{exists:r,absolute:t}=UL({directory:e});if(!r)throw new st(`Could not find directory at ${t}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(my))if(await n({workspaceRoot:t}))return i({workspaceRoot:t});throw new st("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var Xl=Ie(require("chalk")),yy=Ie(require("is-git-clean"));function so({directory:e,force:r}){var i;let t=!1,n="Unable to determine if git directory is clean";try{t=yy.default.sync(e||process.cwd()),n="Git directory is not clean"}catch(c){(i=c.stderr)!=null&&i.includes("not a git repository")&&(t=!0)}t||(r?Pe.log(`${Xl.default.yellow("WARNING")}: ${n}. Forcibly continuing...`):(Pe.log("Thank you for using @turbo/codemod!"),Pe.log(Xl.default.yellow(`
|
181
|
-
But before we continue, please stash or commit your git changes.`)),Pe.log(`
|
182
|
-
You may use the --force flag to override this safety check.`),process.exit(1)))}var Zl=Ie(require("path")),gy=Ie(require("fs"));function In({directory:e}){let r=Zl.default.isAbsolute(e)?e:Zl.default.join(process.cwd(),e);return{exists:gy.default.existsSync(r),absolute:r}}var co=Ie(require("chalk"));var Dt=Ie(require("chalk")),oo=class{constructor(r){this.transform=r.transformer,this.dry=r.dry}_log(...r){console.log(...r)}modified(...r){this._log(Dt.default.green(" MODIFIED "),...r,this.dry?Dt.default.dim("(dry run)"):"")}unchanged(...r){this._log(Dt.default.gray(" UNCHANGED "),...r,this.dry?Dt.default.dim("(dry run)"):"")}skipped(...r){this._log(Dt.default.yellow(" SKIPPED "),...r,this.dry?Dt.default.dim("(dry run)"):"")}error(...r){this._log(Dt.default.red(" ERROR "),...r,this.dry?Dt.default.dim("(dry run)"):"")}info(...r){this._log(Dt.default.bold(" INFO "),...r,this.dry?Dt.default.dim("(dry run)"):"")}};var by=Ie(require("os")),Ql=Ie(require("path"));var ao=Ie(require("chalk")),lo=require("diff"),Ar=require("fs-extra"),uo=class{constructor(r){this.changes=[];if(this.filePath=r.filePath,this.rootPath=r.rootPath,this.after=r.after,this.error=r.error,r.before===void 0)try{Ql.default.extname(r.filePath)===".json"?this.before=(0,Ar.readJsonSync)(r.filePath):this.before=(0,Ar.readFileSync)(r.filePath)}catch{this.before=""}else r.before===null?this.before="":this.before=r.before;r.after?typeof this.before=="object"||typeof r.after=="object"?this.changes=(0,lo.diffJson)(this.before,r.after):this.changes=(0,lo.diffLines)(this.before,r.after):this.changes=[]}fileName(){return Ql.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Ar.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Ar.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(r=>r.added).length}deletions(){return this.changes.filter(r=>r.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(r){r.diff?(this.changes.forEach(t=>{t.added?process.stdout.write(ao.default.green(t.value)):t.removed?process.stdout.write(ao.default.red(t.value)):process.stdout.write(ao.default.dim(t.value))}),Pe.log(by.default.EOL)):Pe.log(this.after)}};var Ur=class{constructor(r){this.modifications={};this.transform=r.transformer,this.rootPath=r.rootPath,this.dry=r.dry,this.print=r.print,this.logger=new oo(r)}abortTransform(r){return this.logger.error(r.reason),{fatalError:new Error(r.reason),changes:r.changes||{}}}modifyFile(r){this.modifications[r.filePath]=new uo({rootPath:this.rootPath,...r})}finish(){let r={changes:{}};return Object.keys(this.modifications).forEach(n=>{let i=this.modifications[n],c={action:"unchanged",additions:i.additions(),deletions:i.deletions()};if(i.hasChanges()){if(this.dry)c.action="skipped",this.logger.skipped(co.default.dim(i.fileName()));else try{i.write(),c.action="modified",this.logger.modified(co.default.bold(i.fileName()))}catch(a){let s="Unknown error";a instanceof Error&&(s=a.message),c.error=new Error(s),c.action="error",this.logger.error(i.fileName(),s)}this.print&&i.log({diff:!0})}else this.logger.unchanged(co.default.dim(i.fileName()));r.changes[i.fileName()]=c}),Object.keys(r.changes).some(n=>r.changes[n].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:r.changes}):r}static logResults(r){let t=Object.keys(r.changes);if(Pe.log(),t.length>0){Pe.bold("Results:");let n={};t.forEach(i=>{var a;let c=r.changes[i];n[i]={action:c.action,additions:c.additions,deletions:c.deletions,error:((a=c.error)==null?void 0:a.message)||"None"}}),console.table(n),Pe.log()}}};var vy=Ie(require("path")),_y=require("fs-extra"),SI=["package.json","turbo.json",".git"];function wy({directory:e}){return SI.some(r=>(0,_y.existsSync)(vy.default.join(e,r)))}var Ey=require("child_process");function Rt(e,r,t){try{return(0,Ey.execSync)(e,{stdio:"pipe",...r}).toString("utf8").trim()}catch{return t||void 0}}function Sy(e,r){let{from:t}=r;if(t)return t;let n=Rt("turbo --version",{cwd:e.paths.root});if(n)return n;let{packageManager:i}=e;return i==="yarn"?Rt("yarn turbo --version",{cwd:e.paths.root}):i==="pnpm"?Rt("pnpm turbo --version",{cwd:e.paths.root}):Rt("npm exec -c 'turbo --version'",{cwd:e.paths.root})}var Ay=Ie(require("axios")),AI="https://registry.npmjs.org";async function xI({packageName:e}){try{return(await Ay.default.get(`${AI}/${e}`)).data}catch{throw new Error(`Unable to fetch the latest version of ${e}`)}}async function xy({to:e}){let r=await xI({packageName:"turbo"}),{"dist-tags":t,versions:n}=r;if(e){if(t[e]||e in n)return e;throw new Error(`turbo@${e} does not exist`)}return t.latest}var zr=require("semver");var ho=Ie(require("path")),Cy=Ie(require("fs-extra")),ky=process.env.NODE_ENV==="test"?ho.default.join(__dirname,"../transforms"):ho.default.join(__dirname,"./transforms");function fo(){return Cy.default.readdirSync(ky).map(r=>{let t=ho.default.join(ky,r);try{return require(t).default}catch{return}}).filter(Boolean)}function Dy({fromVersion:e,toVersion:r}){let t=fo().filter(n=>(0,zr.gt)(n.introducedIn,e)&&(0,zr.lte)(n.introducedIn,r));return t.sort((n,i)=>(0,zr.gt)(n.introducedIn,i.introducedIn)?1:(0,zr.eq)(n.introducedIn,i.introducedIn)?0:-1),t}var Ry=Ie(require("path")),po=require("fs-extra"),Oy=require("semver");function kI(e,r="latest"){switch(e){case"yarn":return`yarn global add turbo@${r}`;case"npm":return`npm install turbo@${r} --global`;case"pnpm":return`pnpm add turbo@${r} --global`;case"bun":return`bun add turbo@${r} --global`}}function CI({packageManager:e,packageManagerVersion:r,installType:t,isUsingWorkspaces:n,to:i="latest"}){let c=a=>a.filter(Boolean).join(" ");switch(e){case"yarn":return(0,Oy.gte)(r,"2.0.0")?c(["yarn","add",`turbo@${i}`,t==="devDependencies"&&"--dev"]):c(["yarn","add",`turbo@${i}`,t==="devDependencies"&&"--dev",n&&"-W"]);case"npm":return c(["npm","install",`turbo@${i}`,t==="devDependencies"&&"--save-dev"]);case"pnpm":return c(["pnpm","add",`turbo@${i}`,t==="devDependencies"&&"--save-dev",n&&"-w"]);case"bun":return c(["bun","add",`turbo@${i}`,t==="devDependencies"&&"--dev"])}}function DI({root:e}){let r=Ry.default.join(e,"package.json");if(!(0,po.existsSync)(r)){Pe.error(`Unable to find package.json at ${r}`);return}let t=(0,po.readJsonSync)(r),n=t.devDependencies&&"turbo"in t.devDependencies,i=t.dependencies&&"turbo"in t.dependencies;if(i||n)return i?"dependencies":"devDependencies"}async function Ty({project:e,to:r}){let t=Rt("turbo bin",{cwd:e.paths.root,stdio:"pipe"}),n=await vo(),i=Object.keys(n).find(l=>{let h=n[l];return h&&t?t.includes(h):!1});if(t&&i)return kI(i,r);let{packageManager:c}=e,a=e.workspaceData.globs.length>0,s=DI({root:e.paths.root}),f=(await bo())[c];if(f&&s)return CI({packageManager:c,packageManagerVersion:f,installType:s,isUsingWorkspaces:a,to:r})}function Fy({project:e}){try{let r={cwd:e.paths.root,stdio:"ignore"};if(Rt("turbo bin",r))Rt("turbo daemon stop",r);else{let n=`${e.packageManager} turbo daemon stop`;e.packageManager==="npm"&&(n="npm exec -c 'turbo daemon stop'"),Rt(n,r)}}catch{}}function Ot({message:e,success:r}){return r?(Pe.bold(at.default.green("Migration completed")),e&&Pe.log(e),process.exit(0)):(Pe.bold(at.default.red("Migration failed")),e&&Pe.log(e),process.exit(1))}async function Jl(e,r){r.dry||so({directory:e,force:r.force});let t=await(0,By.prompt)([{type:"input",name:"directoryInput",message:"Where is the root of the repo to migrate?",when:!e,default:".",validate:d=>{let{exists:p,absolute:y}=In({directory:d});return p?!0:`Directory ${at.default.dim(`(${y})`)} does not exist`},filter:d=>d.trim()}]),{directoryInput:n=e}=t,{exists:i,absolute:c}=In({directory:n});if(!i)return Ot({success:!1,message:`Directory ${at.default.dim(`(${c})`)} does not exist`});if(!wy({directory:c}))return Ot({success:!1,message:`Directory (${at.default.dim(c)}) does not appear to be a repository`});let a;try{a=await ki({root:c})}catch{return Ot({success:!1,message:`Unable to read determine package manager details from ${at.default.dim(c)}`})}let s=Sy(a,r);if(!s)return Ot({success:!1,message:`Unable to infer the version of turbo being used by ${a.name}`});let o=r.to;try{o=await xy(r)}catch(d){let p="UNKNOWN_ERROR";return d instanceof Error&&(p=d.message),Ot({success:!1,message:p})}if(!o)return Ot({success:!1,message:"Unable to fetch the latest version of turbo"});if(s===o)return Ot({success:!0,message:`Nothing to do, current version (${at.default.bold(s)}) is the same as the requested version (${at.default.bold(o)})`});let f=Dy({fromVersion:s,toVersion:o});f.length===0&&Pe.log(`No codemods required to migrate from ${s} to ${o}`,Mn.default.EOL),r.dry||Fy({project:a}),Pe.log(`Upgrading turbo from ${at.default.bold(s)} to ${at.default.bold(o)} (${f.length===0?"no codemods required":`${f.length} required codemod${f.length===1?"":"s"}`})`,Mn.default.EOL);let l=[];for(let[d,p]of f.entries()){Pe.log(`(${d+1}/${f.length}) ${at.default.bold(`Running ${p.name}`)}`);let y=await p.transformer({root:a.paths.root,options:r});Ur.logResults(y),l.push(y)}if(l.some(d=>d.fatalError||Object.keys(d.changes).some(p=>d.changes[p].error)))return Ot({success:!1,message:"Could not complete migration due to codemod errors. Please fix the errors and try again."});let u=await Ty({project:a,to:r.to});if(!u)return Ot({success:!1,message:"Unable to determine upgrade command"});if(r.install)if(r.dry)Pe.log(`Upgrading turbo with ${at.default.bold(u)} ${at.default.dim("(dry run)")}`,Mn.default.EOL);else{Pe.log(`Upgrading turbo with ${at.default.bold(u)}`,Mn.default.EOL);try{(0,Py.execSync)(u,{stdio:"pipe",cwd:a.paths.root})}catch(d){return Ot({success:!1,message:`Unable to upgrade turbo: ${String(d)}`})}}else Pe.log(`Upgrade turbo with ${at.default.bold(u)}`,Mn.default.EOL);Ot({success:!0})}var xr=Ie(require("chalk")),Ly=require("inquirer");async function ec(e,r,t){let n=fo();if(t.list)return Pe.log(n.map(u=>`- ${xr.default.cyan(u.name)}`).join(`
|
183
|
-
`)),process.exit(0);t.dry||so({directory:r,force:t.force});let i=await(0,Ly.prompt)([{type:"input",name:"directoryInput",message:"Where is the root of the repo where the transform should run?",when:!r,default:".",validate:u=>{let{exists:d,absolute:p}=In({directory:u});return d?!0:`Directory ${xr.default.dim(`(${p})`)} does not exist`},filter:u=>u.trim()},{type:"list",name:"transformerInput",message:"Which transform would you like to apply?",when:!e,pageSize:n.length,choices:n.map(u=>({name:`${xr.default.bold(u.name)} - ${xr.default.gray(u.description)} ${xr.default.gray(`(${u.introducedIn})`)}`,value:u.name}))}]),{directoryInput:c=r,transformerInput:a=e}=i,{exists:s,absolute:o}=In({directory:c});if(!s)return Pe.error(`Directory ${xr.default.dim(`(${o})`)} does not exist`),process.exit(1);let f=n.map(u=>u.name),l=n.find(u=>u.name===a);if(!l)return Pe.error(`Invalid transform choice ${xr.default.dim(`(${e})`)}, pick one of:`),Pe.error(f.map(u=>`- ${u}`).join(`
|
184
|
-
`)),process.exit(1);let h=await l.transformer({root:o,options:t});if(h.fatalError)return process.exit(1);Ur.logResults(h)}var tc=Ie(require("chalk")),Iy=Ie(require("update-check"));var RI=(0,Iy.default)(Ui).catch(()=>null);async function rc(){try{let e=await RI;if(e!=null&&e.latest){let{packageManager:r}=await ki({root:process.cwd()}),t="npm i -g @turbo/codemod";r==="yarn"?t="yarn global add @turbo/codemod":r==="pnpm"&&(t="pnpm i -g @turbo/codemod"),Pe.log(),Pe.log(tc.default.yellow.bold("A new version of `@turbo/codemod` is available!")),Pe.log(`You can update by running: ${tc.default.cyan(t)}`),Pe.log()}process.exit()}catch{}}var mo=new Ny.Command;mo.name("@turbo/codemod").description("Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.").version(Ui.version,"-v, --version","output the current version");mo.command("migrate").aliases(["update","upgrade"]).description("Migrate a project to the latest version of Turborepo").argument("[path]","Directory where the transforms should be applied").option("--from <version>","Specify the version to migrate from (default: current version)").option("--to <version>","Specify the version to migrate to (default: latest)").option("--install","Install new version of turbo after migration",!0).option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(Jl);mo.command("transform",{isDefault:!0}).description("Apply a single code transformation to a project").argument("[transform]","The transformer to run").argument("[path]","Directory where the transforms should be applied").option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--list","List all available transforms",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(ec);mo.parseAsync().then(rc).catch(async e=>{Pe.log(),Pe.log(My.default.red("Unexpected error. Please report it as a bug:")),Pe.log(e),Pe.log(),await rc(),process.exit(1)});
|
5
|
+
`.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 z0=$((X2,_n)=>{"use strict";var bn=require("path"),U0=xl(),G0=t=>{t={cwd:process.cwd(),path:process.env[U0()],execPath:process.execPath,...t};let e,r=bn.resolve(t.cwd),i=[];for(;e!==r;)i.push(bn.join(r,"node_modules/.bin")),e=r,r=bn.resolve(r,"..");let n=bn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(bn.delimiter)};_n.exports=G0;_n.exports.default=G0;_n.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=U0({env:e});return t.path=e[r],e[r]=_n.exports(t),e}});var Y0=$((Q2,Pl)=>{"use strict";var W0=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Pl.exports=W0;Pl.exports.default=W0});var K0=$((eP,$s)=>{"use strict";var dx=Y0(),js=new WeakMap,V0=(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(js.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 dx(s,t),js.set(s,i),s};$s.exports=V0;$s.exports.default=V0;$s.exports.callCount=t=>{if(!js.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return js.get(t)}});var Z0=$(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.SIGNALS=void 0;var mx=[{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"}];Hs.SIGNALS=mx});var Il=$(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SIGRTMAX=Si.getRealtimeSignals=void 0;var gx=function(){let t=X0-J0+1;return Array.from({length:t},yx)};Si.getRealtimeSignals=gx;var yx=function(t,e){return{name:`SIGRT${e+1}`,number:J0+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},J0=34,X0=64;Si.SIGRTMAX=X0});var Q0=$(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.getSignals=void 0;var Ex=require("os"),Dx=Z0(),bx=Il(),_x=function(){let t=(0,bx.getRealtimeSignals)();return[...Dx.SIGNALS,...t].map(wx)};qs.getSignals=_x;var wx=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=Ex.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var tg=$(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.signalsByNumber=Ai.signalsByName=void 0;var Sx=require("os"),eg=Q0(),Ax=Il(),vx=function(){return(0,eg.getSignals)().reduce(Cx,{})},Cx=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}}},xx=vx();Ai.signalsByName=xx;var Rx=function(){let t=(0,eg.getSignals)(),e=Ax.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>Fx(n,t));return Object.assign({},...r)},Fx=function(t,e){let r=Ox(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:u}}},Ox=function(t,e){let r=e.find(({name:i})=>Sx.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},kx=Rx();Ai.signalsByNumber=kx});var ig=$((sP,rg)=>{"use strict";var{signalsByName:Tx}=tg(),Lx=({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",Bx=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let h=n===void 0?void 0:Tx[n].description,p=i&&i.code,m=`Command ${Lx({timedOut:u,timeout:f,errorCode:p,signal:n,signalDescription:h,exitCode:s,isCanceled:l})}: ${o}`,g=Object.prototype.toString.call(i)==="[object Error]",v=g?`${m}
|
6
|
+
${i.message}`:m,F=[v,e,t].filter(Boolean).join(`
|
7
|
+
`);return g?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=v,i.command=o,i.escapedCommand=a,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=!!u,i.isCanceled=l,i.killed=c&&!u,i};rg.exports=Bx});var sg=$((oP,Nl)=>{"use strict";var Us=["stdin","stdout","stderr"],Px=t=>Us.some(e=>t[e]!==void 0),ng=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Us.map(i=>t[i]);if(Px(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Us.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,Us.length);return Array.from({length:r},(i,n)=>e[n])};Nl.exports=ng;Nl.exports.node=t=>{let e=ng(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var og=$((aP,Gs)=>{Gs.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Gs.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Gs.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var hg=$((uP,xi)=>{var ye=global.process,Mr=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"};Mr(ye)?(ag=require("assert"),vi=og(),ug=/^win/i.test(ye.platform),wn=require("events"),typeof wn!="function"&&(wn=wn.EventEmitter),ye.__signal_exit_emitter__?xe=ye.__signal_exit_emitter__:(xe=ye.__signal_exit_emitter__=new wn,xe.count=0,xe.emitted={}),xe.infinite||(xe.setMaxListeners(1/0),xe.infinite=!0),xi.exports=function(t,e){if(!Mr(global.process))return function(){};ag.equal(typeof t,"function","a callback must be provided for exit handler"),Ci===!1&&Ml();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){xe.removeListener(r,t),xe.listeners("exit").length===0&&xe.listeners("afterexit").length===0&&zs()};return xe.on(r,t),i},zs=function(){!Ci||!Mr(global.process)||(Ci=!1,vi.forEach(function(e){try{ye.removeListener(e,Ws[e])}catch{}}),ye.emit=Ys,ye.reallyExit=jl,xe.count-=1)},xi.exports.unload=zs,jr=function(e,r,i){xe.emitted[e]||(xe.emitted[e]=!0,xe.emit(e,r,i))},Ws={},vi.forEach(function(t){Ws[t]=function(){if(Mr(global.process)){var r=ye.listeners(t);r.length===xe.count&&(zs(),jr("exit",null,t),jr("afterexit",null,t),ug&&t==="SIGHUP"&&(t="SIGINT"),ye.kill(ye.pid,t))}}}),xi.exports.signals=function(){return vi},Ci=!1,Ml=function(){Ci||!Mr(global.process)||(Ci=!0,xe.count+=1,vi=vi.filter(function(e){try{return ye.on(e,Ws[e]),!0}catch{return!1}}),ye.emit=cg,ye.reallyExit=lg)},xi.exports.load=Ml,jl=ye.reallyExit,lg=function(e){Mr(global.process)&&(ye.exitCode=e||0,jr("exit",ye.exitCode,null),jr("afterexit",ye.exitCode,null),jl.call(ye,ye.exitCode))},Ys=ye.emit,cg=function(e,r){if(e==="exit"&&Mr(global.process)){r!==void 0&&(ye.exitCode=r);var i=Ys.apply(this,arguments);return jr("exit",ye.exitCode,null),jr("afterexit",ye.exitCode,null),i}else return Ys.apply(this,arguments)}):xi.exports=function(){return function(){}};var ag,vi,ug,wn,xe,zs,jr,Ws,Ci,Ml,jl,lg,Ys,cg});var pg=$((lP,fg)=>{"use strict";var Ix=require("os"),Nx=hg(),Mx=1e3*5,jx=(t,e="SIGTERM",r={})=>{let i=t(e);return $x(t,e,r,i),i},$x=(t,e,r,i)=>{if(!Hx(e,r,i))return;let n=Ux(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},Hx=(t,{forceKillAfterTimeout:e},r)=>qx(t)&&e!==!1&&r,qx=t=>t===Ix.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Ux=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Mx;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},Gx=(t,e)=>{t.kill()&&(e.isCanceled=!0)},zx=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Wx=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{zx(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},Yx=({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})`)},Vx=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=Nx(()=>{t.kill()});return i.finally(()=>{n()})};fg.exports={spawnedKill:jx,spawnedCancel:Gx,setupTimeout:Wx,validateTimeout:Yx,setExitHandler:Vx}});var mg=$((cP,dg)=>{"use strict";var At=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";At.writable=t=>At(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";At.readable=t=>At(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";At.duplex=t=>At.writable(t)&&At.readable(t);At.transform=t=>At.duplex(t)&&typeof t._transform=="function";dg.exports=At});var yg=$((hP,gg)=>{"use strict";var{PassThrough:Kx}=require("stream");gg.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 Kx({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Eg=$((fP,Sn)=>{"use strict";var{constants:Zx}=require("buffer"),Jx=require("stream"),{promisify:Xx}=require("util"),Qx=yg(),eR=Xx(Jx.pipeline),Vs=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function $l(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=Qx(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=Zx.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await eR(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Vs)})}),i.getBufferedValue()}Sn.exports=$l;Sn.exports.buffer=(t,e)=>$l(t,{...e,encoding:"buffer"});Sn.exports.array=(t,e)=>$l(t,{...e,array:!0});Sn.exports.MaxBufferError=Vs});var bg=$((pP,Dg)=>{"use strict";var{PassThrough:tR}=require("stream");Dg.exports=function(){var t=[],e=new tR({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 Ag=$((dP,Sg)=>{"use strict";var wg=mg(),_g=Eg(),rR=bg(),iR=(t,e)=>{e===void 0||t.stdin===void 0||(wg(e)?e.pipe(t.stdin):t.stdin.end(e))},nR=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=rR();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Hl=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},ql=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?_g(t,{encoding:e,maxBuffer:i}):_g.buffer(t,{maxBuffer:i})},sR=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=ql(t,{encoding:i,buffer:n,maxBuffer:s}),u=ql(e,{encoding:i,buffer:n,maxBuffer:s}),l=ql(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,u,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Hl(t,a),Hl(e,u),Hl(r,l)])}},oR=({input:t})=>{if(wg(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Sg.exports={handleInput:iR,makeAllStream:nR,getSpawnedResult:sR,validateInputSync:oR}});var Cg=$((mP,vg)=>{"use strict";var aR=(async()=>{})().constructor.prototype,uR=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(aR,t)]),lR=(t,e)=>{for(let[r,i]of uR){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},cR=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)})});vg.exports={mergePromise:lR,getSpawnedPromise:cR}});var Fg=$((gP,Rg)=>{"use strict";var xg=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],hR=/^[\w.-]+$/,fR=/"/g,pR=t=>typeof t!="string"||hR.test(t)?t:`"${t.replace(fR,'\\"')}"`,dR=(t,e)=>xg(t,e).join(" "),mR=(t,e)=>xg(t,e).map(r=>pR(r)).join(" "),gR=/ +/g,yR=t=>{let e=[];for(let r of t.trim().split(gR)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Rg.exports={joinCommand:dR,getEscapedCommand:mR,parseCommand:yR}});var Fi=$((yP,Ri)=>{"use strict";var ER=require("path"),Ul=require("child_process"),DR=$0(),bR=q0(),_R=z0(),wR=K0(),Ks=ig(),kg=sg(),{spawnedKill:SR,spawnedCancel:AR,setupTimeout:vR,validateTimeout:CR,setExitHandler:xR}=pg(),{handleInput:RR,getSpawnedResult:FR,makeAllStream:OR,validateInputSync:kR}=Ag(),{mergePromise:Og,getSpawnedPromise:TR}=Cg(),{joinCommand:Tg,parseCommand:Lg,getEscapedCommand:Bg}=Fg(),LR=1e3*1e3*100,BR=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?_R.env({env:s,cwd:i,execPath:n}):s},Pg=(t,e,r={})=>{let i=DR._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:LR,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=BR(r),r.stdio=kg(r),process.platform==="win32"&&ER.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},An=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?bR(e):e,Zs=(t,e,r)=>{let i=Pg(t,e,r),n=Tg(t,e),s=Bg(t,e);CR(i.options);let o;try{o=Ul.spawn(i.file,i.args,i.options)}catch(p){let d=new Ul.ChildProcess,m=Promise.reject(Ks({error:p,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Og(d,m)}let a=TR(o),u=vR(o,i.options,a),l=xR(o,i.options,u),c={isCanceled:!1};o.kill=SR.bind(null,o.kill.bind(o)),o.cancel=AR.bind(null,o,c);let h=wR(async()=>{let[{error:p,exitCode:d,signal:m,timedOut:g},v,F,k]=await FR(o,i.options,l),O=An(i.options,v),R=An(i.options,F),B=An(i.options,k);if(p||d!==0||m!==null){let _=Ks({error:p,exitCode:d,signal:m,stdout:O,stderr:R,all:B,command:n,escapedCommand:s,parsed:i,timedOut:g,isCanceled:c.isCanceled,killed:o.killed});if(!i.options.reject)return _;throw _}return{command:n,escapedCommand:s,exitCode:0,stdout:O,stderr:R,all:B,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return RR(o,i.options.input),o.all=OR(o,i.options),Og(o,h)};Ri.exports=Zs;Ri.exports.sync=(t,e,r)=>{let i=Pg(t,e,r),n=Tg(t,e),s=Bg(t,e);kR(i.options);let o;try{o=Ul.spawnSync(i.file,i.args,i.options)}catch(l){throw Ks({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=An(i.options,o.stdout,o.error),u=An(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=Ks({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ri.exports.command=(t,e)=>{let[r,...i]=Lg(t);return Zs(r,i,e)};Ri.exports.commandSync=(t,e)=>{let[r,...i]=Lg(t);return Zs.sync(r,i,e)};Ri.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=kg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Zs(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Oi=$((wP,$g)=>{"use strict";var jg=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"]]);$g.exports=t=>t?Object.keys(t).map(e=>[jg.has(e)?jg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=$((SP,Kg)=>{"use strict";var Hg=typeof process=="object"&&process?process:{stdout:null,stderr:null},jR=require("events"),qg=require("stream"),Ug=require("string_decoder").StringDecoder,qt=Symbol("EOF"),Ut=Symbol("maybeEmitEnd"),fr=Symbol("emittedEnd"),Js=Symbol("emittingEnd"),vn=Symbol("emittedError"),Xs=Symbol("closed"),Gg=Symbol("read"),Qs=Symbol("flush"),zg=Symbol("flushChunk"),ze=Symbol("encoding"),Gt=Symbol("decoder"),eo=Symbol("flowing"),Cn=Symbol("paused"),ki=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),Wl=Symbol("bufferPush"),Yl=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),Vl=Symbol("emitData"),Wg=Symbol("emitEnd"),Kl=Symbol("emitEnd2"),zt=Symbol("async"),xn=t=>Promise.resolve().then(t),Yg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",$R=Yg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HR=Yg&&Symbol.iterator||Symbol("iterator not implemented"),qR=t=>t==="end"||t==="finish"||t==="prefinish",UR=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,GR=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),to=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ki](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Zl=class extends to{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Kg.exports=class Vg extends qg{constructor(e){super(),this[eo]=!1,this[Cn]=!1,this[vt]=[],this[_e]=[],this[Be]=e&&e.objectMode||!1,this[Be]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[zt]=e&&!!e.async||!1,this[Gt]=this[ze]?new Ug(this[ze]):null,this[qt]=!1,this[fr]=!1,this[Js]=!1,this[Xs]=!1,this[vn]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[Pe]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_e]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[vt]})}get bufferLength(){return this[Re]}get encoding(){return this[ze]}set encoding(e){if(this[Be])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Gt]&&this[Gt].lastNeed||this[Re]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Gt]=e?new Ug(e):null,this[_e].length&&(this[_e]=this[_e].map(r=>this[Gt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Be]}set objectMode(e){this[Be]=this[Be]||!!e}get async(){return this[zt]}set async(e){this[zt]=this[zt]||!!e}write(e,r,i){if(this[qt])throw new Error("write after end");if(this[Pe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[zt]?xn:s=>s();return!this[Be]&&!Buffer.isBuffer(e)&&(GR(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):UR(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Be]?(this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Wl](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Gt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Gt].write(e)),this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Wl](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Pe])return null;if(this[Re]===0||e===0||e>this[Re])return this[Ut](),null;this[Be]&&(e=null),this[_e].length>1&&!this[Be]&&(this.encoding?this[_e]=[this[_e].join("")]:this[_e]=[Buffer.concat(this[_e],this[Re])]);let r=this[Gg](e||null,this[_e][0]);return this[Ut](),r}[Gg](e,r){return e===r.length||e===null?this[Yl]():(this[_e][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[_e].length&&!this[qt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[qt]=!0,this.writable=!1,(this.flowing||!this[Cn])&&this[Ut](),this}[ki](){this[Pe]||(this[Cn]=!1,this[eo]=!0,this.emit("resume"),this[_e].length?this[Qs]():this[qt]?this[Ut]():this.emit("drain"))}resume(){return this[ki]()}pause(){this[eo]=!1,this[Cn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[eo]}get paused(){return this[Cn]}[Wl](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[Yl](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Qs](e){do;while(this[zg](this[Yl]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[zg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Pe])return;let i=this[fr];return r=r||{},e===Hg.stdout||e===Hg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new Zl(this,e,r):new to(this,e,r)),this[zt]?xn(()=>this[ki]()):this[ki]()),e}unpipe(e){let r=this[vt].find(i=>i.dest===e);r&&(this[vt].splice(this[vt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[vt].length&&!this.flowing?this[ki]():e==="readable"&&this[Re]!==0?super.emit("readable"):qR(e)&&this[fr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[vn]&&(this[zt]?xn(()=>r.call(this,this[vn])):r.call(this,this[vn])),i}get emittedEnd(){return this[fr]}[Ut](){!this[Js]&&!this[fr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Js]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Js]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[zt]?xn(()=>this[Vl](r)):this[Vl](r):!1;if(e==="end")return this[Wg]();if(e==="close"){if(this[Xs]=!0,!this[fr]&&!this[Pe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[vn]=r;let s=super.emit("error",r);return this[Ut](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ut](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Ut](),n}[Vl](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ut](),r}[Wg](){this[fr]||(this[fr]=!0,this.readable=!1,this[zt]?xn(()=>this[Kl]()):this[Kl]())}[Kl](){if(this[Gt]){let r=this[Gt].end();if(r){for(let i of this[vt])i.dest.write(r);super.emit("data",r)}}for(let r of this[vt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this[ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Pe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[$R](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[qt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Pe,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[HR](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Pe]?(e?this.emit("error",e):this.emit(Pe),this):(this[Pe]=!0,this[_e].length=0,this[Re]=0,typeof this.close=="function"&&!this[Xs]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof Vg||e instanceof qg||e instanceof jR&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Jg=$((AP,Zg)=>{var zR=require("zlib").constants||{ZLIB_VERNUM:4736};Zg.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},zR))});var rc=$((vP,oy)=>{"use strict";var Xg=typeof process=="object"&&process?process:{stdout:null,stderr:null},WR=require("events"),Qg=require("stream"),ey=require("string_decoder").StringDecoder,Wt=Symbol("EOF"),Yt=Symbol("maybeEmitEnd"),pr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),Rn=Symbol("emittedError"),no=Symbol("closed"),ty=Symbol("read"),so=Symbol("flush"),ry=Symbol("flushChunk"),We=Symbol("encoding"),Vt=Symbol("decoder"),oo=Symbol("flowing"),Fn=Symbol("paused"),Ti=Symbol("resume"),Fe=Symbol("bufferLength"),Jl=Symbol("bufferPush"),Xl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Ql=Symbol("emitData"),iy=Symbol("emitEnd"),ec=Symbol("emitEnd2"),Kt=Symbol("async"),On=t=>Promise.resolve().then(t),ny=global._MP_NO_ITERATOR_SYMBOLS_!=="1",YR=ny&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),VR=ny&&Symbol.iterator||Symbol("iterator not implemented"),KR=t=>t==="end"||t==="finish"||t==="prefinish",ZR=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,JR=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ao=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},tc=class extends ao{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};oy.exports=class sy extends Qg{constructor(e){super(),this[oo]=!1,this[Fn]=!1,this.pipes=[],this.buffer=[],this[Ie]=e&&e.objectMode||!1,this[Ie]?this[We]=null:this[We]=e&&e.encoding||null,this[We]==="buffer"&&(this[We]=null),this[Kt]=e&&!!e.async||!1,this[Vt]=this[We]?new ey(this[We]):null,this[Wt]=!1,this[pr]=!1,this[io]=!1,this[no]=!1,this[Rn]=null,this.writable=!0,this.readable=!0,this[Fe]=0,this[Ne]=!1}get bufferLength(){return this[Fe]}get encoding(){return this[We]}set encoding(e){if(this[Ie])throw new Error("cannot set encoding in objectMode");if(this[We]&&e!==this[We]&&(this[Vt]&&this[Vt].lastNeed||this[Fe]))throw new Error("cannot change encoding");this[We]!==e&&(this[Vt]=e?new ey(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[We]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ie]}set objectMode(e){this[Ie]=this[Ie]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[Wt])throw new Error("write after end");if(this[Ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Kt]?On:s=>s();return!this[Ie]&&!Buffer.isBuffer(e)&&(JR(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):ZR(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ie]?(this.flowing&&this[Fe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Jl](e),this[Fe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[We]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[We]&&(e=this[Vt].write(e)),this.flowing&&this[Fe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Jl](e),this[Fe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Fe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ne])return null;if(this[Fe]===0||e===0||e>this[Fe])return this[Yt](),null;this[Ie]&&(e=null),this.buffer.length>1&&!this[Ie]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Fe])]);let r=this[ty](e||null,this.buffer[0]);return this[Yt](),r}[ty](e,r){return e===r.length||e===null?this[Xl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Fe]-=e),this.emit("data",r),!this.buffer.length&&!this[Wt]&&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[Wt]=!0,this.writable=!1,(this.flowing||!this[Fn])&&this[Yt](),this}[Ti](){this[Ne]||(this[Fn]=!1,this[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[Wt]?this[Yt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[oo]=!1,this[Fn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[oo]}get paused(){return this[Fn]}[Jl](e){this[Ie]?this[Fe]+=1:this[Fe]+=e.length,this.buffer.push(e)}[Xl](){return this.buffer.length&&(this[Ie]?this[Fe]-=1:this[Fe]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[ry](this[Xl]()));!e&&!this.buffer.length&&!this[Wt]&&this.emit("drain")}[ry](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ne])return;let i=this[pr];return r=r||{},e===Xg.stdout||e===Xg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new tc(this,e,r):new ao(this,e,r)),this[Kt]?On(()=>this[Ti]()):this[Ti]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Ti]():e==="readable"&&this[Fe]!==0?super.emit("readable"):KR(e)&&this[pr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rn]&&(this[Kt]?On(()=>r.call(this,this[Rn])):r.call(this,this[Rn])),i}get emittedEnd(){return this[pr]}[Yt](){!this[io]&&!this[pr]&&!this[Ne]&&this.buffer.length===0&&this[Wt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?On(()=>this[Ql](r)):this[Ql](r):!1;if(e==="end")return this[iy]();if(e==="close"){if(this[no]=!0,!this[pr]&&!this[Ne])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rn]=r;let s=super.emit("error",r);return this[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}[Ql](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Yt](),r}[iy](){this[pr]||(this[pr]=!0,this.readable=!1,this[Kt]?On(()=>this[ec]()):this[ec]())}[ec](){if(this[Vt]){let r=this[Vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ie]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ie]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this[We]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ne,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[YR](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Wt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[Wt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Ne,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[VR](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ne]?(e?this.emit("error",e):this.emit(Ne),this):(this[Ne]=!0,this.buffer.length=0,this[Fe]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof sy||e instanceof Qg||e instanceof WR&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Ec=$(Xe=>{"use strict";var ac=require("assert"),dr=require("buffer").Buffer,ly=require("zlib"),$r=Xe.constants=Jg(),XR=rc(),ay=dr.concat,Hr=Symbol("_superWrite"),Bi=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"}},QR=Symbol("opts"),kn=Symbol("flushFlag"),uy=Symbol("finishFlushFlag"),yc=Symbol("fullFlushFlag"),de=Symbol("handle"),uo=Symbol("onError"),Li=Symbol("sawError"),ic=Symbol("level"),nc=Symbol("strategy"),sc=Symbol("ended"),CP=Symbol("_defaultFullFlush"),lo=class extends XR{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Li]=!1,this[sc]=!1,this[QR]=e,this[kn]=e.flush,this[uy]=e.finishFlush;try{this[de]=new ly[r](e)}catch(i){throw new Bi(i)}this[uo]=i=>{this[Li]||(this[Li]=!0,this.close(),this.emit("error",i))},this[de].on("error",i=>this[uo](new Bi(i))),this.once("end",()=>this.close)}close(){this[de]&&(this[de].close(),this[de]=null,this.emit("close"))}reset(){if(!this[Li])return ac(this[de],"zlib binding closed"),this[de].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[yc]),this.write(Object.assign(dr.alloc(0),{[kn]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[uy]),this[sc]=!0,super.end(null,null,i)}get ended(){return this[sc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=dr.from(e,r)),this[Li])return;ac(this[de],"zlib binding closed");let n=this[de]._handle,s=n.close;n.close=()=>{};let o=this[de].close;this[de].close=()=>{},dr.concat=l=>l;let a;try{let l=typeof e[kn]=="number"?e[kn]:this[kn];a=this[de]._processChunk(e,l),dr.concat=ay}catch(l){dr.concat=ay,this[uo](new Bi(l))}finally{this[de]&&(this[de]._handle=n,n.close=s,this[de].close=o,this[de].removeAllListeners("error"))}this[de]&&this[de].on("error",l=>this[uo](new Bi(l)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Hr](dr.from(a[0]));for(let l=1;l<a.length;l++)u=this[Hr](a[l])}else u=this[Hr](dr.from(a));return i&&i(),u}[Hr](e){return super.write(e)}},Zt=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||$r.Z_NO_FLUSH,e.finishFlush=e.finishFlush||$r.Z_FINISH,super(e,r),this[yc]=$r.Z_FULL_FLUSH,this[ic]=e.level,this[nc]=e.strategy}params(e,r){if(!this[Li]){if(!this[de])throw new Error("cannot switch params when binding is closed");if(!this[de].params)throw new Error("not supported in this implementation");if(this[ic]!==e||this[nc]!==r){this.flush($r.Z_SYNC_FLUSH),ac(this[de],"zlib binding closed");let i=this[de].flush;this[de].flush=(n,s)=>{this.flush(n),s()};try{this[de].params(e,r)}finally{this[de].flush=i}this[de]&&(this[ic]=e,this[nc]=r)}}}},uc=class extends Zt{constructor(e){super(e,"Deflate")}},lc=class extends Zt{constructor(e){super(e,"Inflate")}},oc=Symbol("_portable"),cc=class extends Zt{constructor(e){super(e,"Gzip"),this[oc]=e&&!!e.portable}[Hr](e){return this[oc]?(this[oc]=!1,e[9]=255,super[Hr](e)):super[Hr](e)}},hc=class extends Zt{constructor(e){super(e,"Gunzip")}},fc=class extends Zt{constructor(e){super(e,"DeflateRaw")}},pc=class extends Zt{constructor(e){super(e,"InflateRaw")}},dc=class extends Zt{constructor(e){super(e,"Unzip")}},co=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||$r.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||$r.BROTLI_OPERATION_FINISH,super(e,r),this[yc]=$r.BROTLI_OPERATION_FLUSH}},mc=class extends co{constructor(e){super(e,"BrotliCompress")}},gc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Xe.Deflate=uc;Xe.Inflate=lc;Xe.Gzip=cc;Xe.Gunzip=hc;Xe.DeflateRaw=fc;Xe.InflateRaw=pc;Xe.Unzip=dc;typeof ly.BrotliCompress=="function"?(Xe.BrotliCompress=mc,Xe.BrotliDecompress=gc):Xe.BrotliCompress=Xe.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Pi=$((FP,cy)=>{var eF=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;cy.exports=eF!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=$((kP,hy)=>{"use strict";var tF=ro(),Dc=Pi(),bc=Symbol("slurp");hy.exports=class extends tF{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=Dc(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=Dc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[bc](r),i&&this[bc](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))}[bc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Dc(e[i]):e[i])}}});var _c=$(fo=>{"use strict";fo.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var my=$((LP,dy)=>{"use strict";var rF=(t,e)=>{if(Number.isSafeInteger(t))t<0?nF(t,e):iF(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},iF=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},nF=(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]=fy(n):n===0?e[i-1]=0:(r=!0,e[i-1]=py(n))}},sF=t=>{let e=t[0],r=e===128?aF(t.slice(1,t.length)):e===255?oF(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},oF=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=fy(s):s===0?o=s:(i=!0,o=py(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},aF=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},fy=t=>(255^t)&255,py=t=>(255^t)+1&255;dy.exports={encode:rF,parse:sF}});var Ni=$((BP,yy)=>{"use strict";var wc=_c(),Ii=require("path").posix,gy=my(),Sc=Symbol("slurp"),Qe=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[Qe]="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=qr(e,r,100),this.mode=mr(e,r+100,8),this.uid=mr(e,r+108,8),this.gid=mr(e,r+116,8),this.size=mr(e,r+124,12),this.mtime=Ac(e,r+136,12),this.cksum=mr(e,r+148,12),this[Sc](i),this[Sc](n,!0),this[Qe]=qr(e,r+156,1),this[Qe]===""&&(this[Qe]="0"),this[Qe]==="0"&&this.path.slice(-1)==="/"&&(this[Qe]="5"),this[Qe]==="5"&&(this.size=0),this.linkpath=qr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=qr(e,r+265,32),this.gname=qr(e,r+297,32),this.devmaj=mr(e,r+329,8),this.devmin=mr(e,r+337,8),e[r+475]!==0){let o=qr(e,r+345,155);this.path=o+"/"+this.path}else{let o=qr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ac(e,r+476,12),this.ctime=Ac(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)}[Sc](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=uF(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Ur(e,r,100,s)||this.needPax,this.needPax=gr(e,r+100,8,this.mode)||this.needPax,this.needPax=gr(e,r+108,8,this.uid)||this.needPax,this.needPax=gr(e,r+116,8,this.gid)||this.needPax,this.needPax=gr(e,r+124,12,this.size)||this.needPax,this.needPax=vc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Qe].charCodeAt(0),this.needPax=Ur(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Ur(e,r+265,32,this.uname)||this.needPax,this.needPax=Ur(e,r+297,32,this.gname)||this.needPax,this.needPax=gr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=gr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Ur(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Ur(e,r+345,155,o)||this.needPax:(this.needPax=Ur(e,r+345,130,o)||this.needPax,this.needPax=vc(e,r+476,12,this.atime)||this.needPax,this.needPax=vc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,gr(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 wc.name.get(this[Qe])||this[Qe]}get typeKey(){return this[Qe]}set type(e){wc.code.has(e)?this[Qe]=wc.code.get(e):this[Qe]=e}},uF=(t,e)=>{let i=t,n="",s,o=Ii.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Ii.dirname(i),i=Ii.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=Ii.join(Ii.basename(n),i),n=Ii.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},qr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ac=(t,e,r)=>lF(mr(t,e,r)),lF=t=>t===null?null:new Date(t*1e3),mr=(t,e,r)=>t[e]&128?gy.parse(t.slice(e,e+r)):hF(t,e,r),cF=t=>isNaN(t)?null:t,hF=(t,e,r)=>cF(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),fF={12:8589934591,8:2097151},gr=(t,e,r,i)=>i===null?!1:i>fF[r]||i<0?(gy.encode(i,t.slice(e,e+r)),!0):(pF(t,e,r,i),!1),pF=(t,e,r,i)=>t.write(dF(i,r),e,r,"ascii"),dF=(t,e)=>mF(Math.floor(t).toString(8),e),mF=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",vc=(t,e,r,i)=>i===null?!1:gr(t,e,r,i.getTime()/1e3),gF=new Array(156).join("\0"),Ur=(t,e,r,i)=>i===null?!1:(t.write(i+gF,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);yy.exports=Cc});var po=$((PP,Ey)=>{"use strict";var yF=Ni(),EF=require("path"),Tn=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 yF({path:("PaxHeader/"+EF.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+`
|
8
|
+
`,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}};Tn.parse=(t,e,r)=>new Tn(DF(bF(t),e),r);var DF=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,bF=t=>t.replace(/\n$/,"").split(`
|
9
|
+
`).reduce(_F,Object.create(null)),_F=(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};Ey.exports=Tn});var Mi=$((IP,Dy)=>{Dy.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var mo=$((NP,by)=>{"use strict";by.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 Rc=$((jP,_y)=>{"use strict";var go=["|","<",">","?",":"],xc=go.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),wF=new Map(go.map((t,e)=>[t,xc[e]])),SF=new Map(xc.map((t,e)=>[t,go[e]]));_y.exports={encode:t=>go.reduce((e,r)=>e.split(r).join(wF.get(r)),t),decode:t=>xc.reduce((e,r)=>e.split(r).join(SF.get(r)),t)}});var Fc=$(($P,Sy)=>{var{isAbsolute:AF,parse:wy}=require("path").win32;Sy.exports=t=>{let e="",r=wy(t);for(;AF(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=wy(t)}return[e,t]}});var vy=$((HP,Ay)=>{"use strict";Ay.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 jc=$((GP,jy)=>{"use strict";var Ty=ro(),Ly=po(),By=Ni(),xt=require("fs"),Cy=require("path"),Ct=Pi(),vF=Mi(),Py=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),vF(e)+"/"+t):Ct(t),CF=16*1024*1024,xy=Symbol("process"),Ry=Symbol("file"),Fy=Symbol("directory"),kc=Symbol("symlink"),Oy=Symbol("hardlink"),Ln=Symbol("header"),yo=Symbol("read"),Tc=Symbol("lstat"),Eo=Symbol("onlstat"),Lc=Symbol("onread"),Bc=Symbol("onreadlink"),Pc=Symbol("openfile"),Ic=Symbol("onopenfile"),yr=Symbol("close"),Do=Symbol("mode"),Nc=Symbol("awaitDrain"),Oc=Symbol("ondrain"),Rt=Symbol("prefix"),ky=Symbol("hadError"),Iy=mo(),xF=Rc(),Ny=Fc(),My=vy(),bo=Iy(class extends Ty{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ct(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||CF,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ct(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ct(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Ny(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=xF.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ct(r.absolute||Cy.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Eo](this.statCache.get(this.absolute)):this[Tc]()}emit(e,...r){return e==="error"&&(this[ky]=!0),super.emit(e,...r)}[Tc](){xt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Eo](r)})}[Eo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=FF(e),this.emit("stat",e),this[xy]()}[xy](){switch(this.type){case"File":return this[Ry]();case"Directory":return this[Fy]();case"SymbolicLink":return this[kc]();default:return this.end()}}[Do](e){return My(e,this.type==="Directory",this.portable)}[Rt](e){return Py(e,this.prefix)}[Ln](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new By({path:this[Rt](this.path),linkpath:this.type==="Link"?this[Rt](this.linkpath):this.linkpath,mode:this[Do](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Ly({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)}[Fy](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ln](),this.end()}[kc](){xt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Bc](r)})}[Bc](e){this.linkpath=Ct(e),this[Ln](),this.end()}[Oy](e){this.type="Link",this.linkpath=Ct(Cy.relative(this.cwd,e)),this.stat.size=0,this[Ln](),this.end()}[Ry](){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[Oy](r)}this.linkCache.set(e,this.absolute)}if(this[Ln](),this.stat.size===0)return this.end();this[Pc]()}[Pc](){xt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ic](r)})}[Ic](e){if(this.fd=e,this[ky])return this[yr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[yo]()}[yo](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;xt.read(e,r,i,n,s,(o,a)=>{if(o)return this[yr](()=>this.emit("error",o));this[Lc](a)})}[yr](e){xt.close(this.fd,e)}[Lc](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[yr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[yr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Oc]():this[Nc](()=>this[Oc]())}[Nc](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)}[Oc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[yr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[yo]()}}),Mc=class extends bo{[Tc](){this[Eo](xt.lstatSync(this.absolute))}[kc](){this[Bc](xt.readlinkSync(this.absolute))}[Pc](){this[Ic](xt.openSync(this.absolute,"r"))}[yo](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=xt.readSync(r,i,n,s,o);this[Lc](a),e=!1}finally{if(e)try{this[yr](()=>{})}catch{}}}[Nc](e){e()}[yr](e){xt.closeSync(this.fd),e()}},RF=Iy(class extends Ty{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ct(e.path),this.mode=this[Do](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ct(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Ny(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new By({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 Ly({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 Py(e,this.prefix)}[Do](e){return My(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()}});bo.Sync=Mc;bo.Tar=RF;var FF=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";jy.exports=bo});var Hy=$((zP,$y)=>{"use strict";$y.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var $c=$((WP,qy)=>{"use strict";qy.exports=ae;ae.Node=Gr;ae.create=ae;function ae(t){var e=this;if(e instanceof ae||(e=new ae),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}ae.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};ae.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++}};ae.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++}};ae.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)kF(this,arguments[t]);return this.length};ae.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)TF(this,arguments[t]);return this.length};ae.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}};ae.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}};ae.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};ae.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};ae.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};ae.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};ae.prototype.map=function(t,e){e=e||this;for(var r=new ae,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};ae.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ae,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};ae.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};ae.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};ae.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};ae.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};ae.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 ae;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};ae.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 ae;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};ae.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=OF(this,n,r[i]);return s};ae.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 OF(t,e,r){var i=e===t.head?new Gr(r,null,e,t):new Gr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function kF(t,e){t.tail=new Gr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function TF(t,e){t.head=new Gr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Gr(t,e,r,i){if(!(this instanceof Gr))return new Gr(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{Hy()(ae)}catch{}});var Fo=$((VP,Ky)=>{"use strict";var xo=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}},LF=ro(),BF=Ec(),PF=ho(),Kc=jc(),IF=Kc.Sync,NF=Kc.Tar,MF=$c(),Uy=Buffer.alloc(1024),So=Symbol("onStat"),_o=Symbol("ended"),Ft=Symbol("queue"),ji=Symbol("current"),zr=Symbol("process"),wo=Symbol("processing"),Gy=Symbol("processJob"),Ot=Symbol("jobs"),Hc=Symbol("jobDone"),Ao=Symbol("addFSEntry"),zy=Symbol("addTarEntry"),zc=Symbol("stat"),Wc=Symbol("readdir"),vo=Symbol("onreaddir"),Co=Symbol("pipe"),Wy=Symbol("entry"),qc=Symbol("entryOpt"),Yc=Symbol("writeEntryClass"),Vy=Symbol("write"),Uc=Symbol("ondrain"),Ro=require("fs"),Yy=require("path"),jF=mo(),Gc=Pi(),Zc=jF(class extends LF{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=Gc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Yc]=Kc,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 BF.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Uc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Uc]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Ft]=new MF,this[Ot]=0,this.jobs=+e.jobs||4,this[wo]=!1,this[_o]=!1}[Vy](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[_o]=!0,this[zr](),this}write(e){if(this[_o])throw new Error("write after end");return e instanceof PF?this[zy](e):this[Ao](e),this.flowing}[zy](e){let r=Gc(Yy.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new xo(e.path,r,!1);i.entry=new NF(e,this[qc](i)),i.entry.on("end",n=>this[Hc](i)),this[Ot]+=1,this[Ft].push(i)}this[zr]()}[Ao](e){let r=Gc(Yy.resolve(this.cwd,e));this[Ft].push(new xo(e,r)),this[zr]()}[zc](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";Ro[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[So](e,n)})}[So](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[zr]()}[Wc](e){e.pending=!0,this[Ot]+=1,Ro.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[vo](e,i)})}[vo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[zr]()}[zr](){if(!this[wo]){this[wo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[Gy](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[wo]=!1,this[_o]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(Uy):(super.write(Uy),super.end()))}}get[ji](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Hc](e){this[Ft].shift(),this[Ot]-=1,this[zr]()}[Gy](e){if(!e.pending){if(e.entry){e===this[ji]&&!e.piped&&this[Co](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[So](e,this.statCache.get(e.absolute)):this[zc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vo](e,this.readdirCache.get(e.absolute)):this[Wc](e),!e.readdir))){if(e.entry=this[Wy](e),!e.entry){e.ignore=!0;return}e===this[ji]&&!e.piped&&this[Co](e)}}}[qc](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}}[Wy](e){this[Ot]+=1;try{return new this[Yc](e.path,this[qc](e)).on("end",()=>this[Hc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Uc](){this[ji]&&this[ji].entry&&this[ji].entry.resume()}[Co](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Vc=class extends Zc{constructor(e){super(e),this[Yc]=IF}pause(){}resume(){}[zc](e){let r=this.follow?"statSync":"lstatSync";this[So](e,Ro[r](e.absolute))}[Wc](e,r){this[vo](e,Ro.readdirSync(e.absolute))}[Co](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[Vy](n)})}};Zc.Sync=Vc;Ky.exports=Zc});var Yi=$(Pn=>{"use strict";var $F=rc(),HF=require("events").EventEmitter,Ye=require("fs"),Qc=Ye.writev;if(!Qc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Qc=(r,i,n,s)=>{let o=(u,l)=>s(u,l,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var zi=Symbol("_autoClose"),pt=Symbol("_close"),Bn=Symbol("_ended"),fe=Symbol("_fd"),Zy=Symbol("_finished"),Dr=Symbol("_flags"),Jc=Symbol("_flush"),eh=Symbol("_handleChunk"),th=Symbol("_makeBuf"),Bo=Symbol("_mode"),Oo=Symbol("_needDrain"),Ui=Symbol("_onerror"),Wi=Symbol("_onopen"),Xc=Symbol("_onread"),Hi=Symbol("_onwrite"),br=Symbol("_open"),Jt=Symbol("_path"),Wr=Symbol("_pos"),kt=Symbol("_queue"),qi=Symbol("_read"),Jy=Symbol("_readSize"),Er=Symbol("_reading"),ko=Symbol("_remain"),Xy=Symbol("_size"),To=Symbol("_write"),$i=Symbol("_writing"),Lo=Symbol("_defaultFlag"),Gi=Symbol("_errored"),Po=class extends $F{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[Gi]=!1,this[fe]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[Jy]=r.readSize||16*1024*1024,this[Er]=!1,this[Xy]=typeof r.size=="number"?r.size:1/0,this[ko]=this[Xy],this[zi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[fe]=="number"?this[qi]():this[br]()}get fd(){return this[fe]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[br](){Ye.open(this[Jt],"r",(e,r)=>this[Wi](e,r))}[Wi](e,r){e?this[Ui](e):(this[fe]=r,this.emit("open",r),this[qi]())}[th](){return Buffer.allocUnsafe(Math.min(this[Jy],this[ko]))}[qi](){if(!this[Er]){this[Er]=!0;let e=this[th]();if(e.length===0)return process.nextTick(()=>this[Xc](null,0,e));Ye.read(this[fe],e,0,e.length,null,(r,i,n)=>this[Xc](r,i,n))}}[Xc](e,r,i){this[Er]=!1,e?this[Ui](e):this[eh](r,i)&&this[qi]()}[pt](){if(this[zi]&&typeof this[fe]=="number"){let e=this[fe];this[fe]=null,Ye.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ui](e){this[Er]=!0,this[pt](),this.emit("error",e)}[eh](e,r){let i=!1;return this[ko]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[ko]<=0)&&(i=!1,this[pt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[fe]=="number"&&this[qi]();break;case"error":return this[Gi]?void 0:(this[Gi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},rh=class extends Po{[br](){let e=!0;try{this[Wi](null,Ye.openSync(this[Jt],"r")),e=!1}finally{e&&this[pt]()}}[qi](){let e=!0;try{if(!this[Er]){this[Er]=!0;do{let r=this[th](),i=r.length===0?0:Ye.readSync(this[fe],r,0,r.length,null);if(!this[eh](i,r))break}while(!0);this[Er]=!1}e=!1}finally{e&&this[pt]()}}[pt](){if(this[zi]&&typeof this[fe]=="number"){let e=this[fe];this[fe]=null,Ye.closeSync(e),this.emit("close")}}},Io=class extends HF{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Gi]=!1,this[$i]=!1,this[Bn]=!1,this[Oo]=!1,this[kt]=[],this[Jt]=e,this[fe]=typeof r.fd=="number"?r.fd:null,this[Bo]=r.mode===void 0?438:r.mode,this[Wr]=typeof r.start=="number"?r.start:null,this[zi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Wr]!==null?"r+":"w";this[Lo]=r.flags===void 0,this[Dr]=this[Lo]?i:r.flags,this[fe]===null&&this[br]()}emit(e,r){if(e==="error"){if(this[Gi])return;this[Gi]=!0}return super.emit(e,r)}get fd(){return this[fe]}get path(){return this[Jt]}[Ui](e){this[pt](),this[$i]=!0,this.emit("error",e)}[br](){Ye.open(this[Jt],this[Dr],this[Bo],(e,r)=>this[Wi](e,r))}[Wi](e,r){this[Lo]&&this[Dr]==="r+"&&e&&e.code==="ENOENT"?(this[Dr]="w",this[br]()):e?this[Ui](e):(this[fe]=r,this.emit("open",r),this[Jc]())}end(e,r){return e&&this.write(e,r),this[Bn]=!0,!this[$i]&&!this[kt].length&&typeof this[fe]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bn]?(this.emit("error",new Error("write() after end()")),!1):this[fe]===null||this[$i]||this[kt].length?(this[kt].push(e),this[Oo]=!0,!1):(this[$i]=!0,this[To](e),!0)}[To](e){Ye.write(this[fe],e,0,e.length,this[Wr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[Ui](e):(this[Wr]!==null&&(this[Wr]+=r),this[kt].length?this[Jc]():(this[$i]=!1,this[Bn]&&!this[Zy]?(this[Zy]=!0,this[pt](),this.emit("finish")):this[Oo]&&(this[Oo]=!1,this.emit("drain"))))}[Jc](){if(this[kt].length===0)this[Bn]&&this[Hi](null,0);else if(this[kt].length===1)this[To](this[kt].pop());else{let e=this[kt];this[kt]=[],Qc(this[fe],e,this[Wr],(r,i)=>this[Hi](r,i))}}[pt](){if(this[zi]&&typeof this[fe]=="number"){let e=this[fe];this[fe]=null,Ye.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},ih=class extends Io{[br](){let e;if(this[Lo]&&this[Dr]==="r+")try{e=Ye.openSync(this[Jt],this[Dr],this[Bo])}catch(r){if(r.code==="ENOENT")return this[Dr]="w",this[br]();throw r}else e=Ye.openSync(this[Jt],this[Dr],this[Bo]);this[Wi](null,e)}[pt](){if(this[zi]&&typeof this[fe]=="number"){let e=this[fe];this[fe]=null,Ye.closeSync(e),this.emit("close")}}[To](e){let r=!0;try{this[Hi](null,Ye.writeSync(this[fe],e,0,e.length,this[Wr])),r=!1}finally{if(r)try{this[pt]()}catch{}}}};Pn.ReadStream=Po;Pn.ReadStreamSync=rh;Pn.WriteStream=Io;Pn.WriteStreamSync=ih});var Uo=$((JP,oE)=>{"use strict";var qF=mo(),UF=Ni(),GF=require("events"),zF=$c(),WF=1024*1024,YF=ho(),Qy=po(),VF=Ec(),{nextTick:KF}=require("process"),nh=Buffer.from([31,139]),st=Symbol("state"),Yr=Symbol("writeEntry"),Xt=Symbol("readEntry"),sh=Symbol("nextEntry"),eE=Symbol("processEntry"),ot=Symbol("extendedHeader"),In=Symbol("globalExtendedHeader"),_r=Symbol("meta"),tE=Symbol("emitMeta"),me=Symbol("buffer"),Qt=Symbol("queue"),Vr=Symbol("ended"),rE=Symbol("emittedEnd"),Kr=Symbol("emit"),Ve=Symbol("unzip"),No=Symbol("consumeChunk"),Mo=Symbol("consumeChunkSub"),oh=Symbol("consumeBody"),iE=Symbol("consumeMeta"),nE=Symbol("consumeHeader"),jo=Symbol("consuming"),ah=Symbol("bufferConcat"),uh=Symbol("maybeEnd"),Nn=Symbol("writing"),wr=Symbol("aborted"),$o=Symbol("onDone"),Zr=Symbol("sawValidEntry"),Ho=Symbol("sawNullBlock"),qo=Symbol("sawEOF"),sE=Symbol("closeStream"),ZF=t=>!0;oE.exports=qF(class extends GF{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Zr]=null,this.on($o,r=>{(this[st]==="begin"||this[Zr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on($o,e.ondone):this.on($o,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||WF,this.filter=typeof e.filter=="function"?e.filter:ZF,this.writable=!0,this.readable=!1,this[Qt]=new zF,this[me]=null,this[Xt]=null,this[Yr]=null,this[st]="begin",this[_r]="",this[ot]=null,this[In]=null,this[Vr]=!1,this[Ve]=null,this[wr]=!1,this[Ho]=!1,this[qo]=!1,this.on("end",()=>this[sE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[nE](e,r){this[Zr]===null&&(this[Zr]=!1);let i;try{i=new UF(e,r,this[ot],this[In])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ho]?(this[qo]=!0,this[st]==="begin"&&(this[st]="header"),this[Kr]("eof")):(this[Ho]=!0,this[Kr]("nullBlock"));else if(this[Ho]=!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[Yr]=new YF(i,this[ot],this[In]);if(!this[Zr])if(s.remain){let o=()=>{s.invalid||(this[Zr]=!0)};s.on("end",o)}else this[Zr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Kr]("ignoredEntry",s),this[st]="ignore",s.resume()):s.size>0&&(this[_r]="",s.on("data",o=>this[_r]+=o),this[st]="meta"):(this[ot]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Kr]("ignoredEntry",s),this[st]=s.remain?"ignore":"header",s.resume()):(s.remain?this[st]="body":(this[st]="header",s.end()),this[Xt]?this[Qt].push(s):(this[Qt].push(s),this[sh]())))}}}[sE](){KF(()=>this.emit("close"))}[eE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Xt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[sh]()),r=!1)):(this[Xt]=null,r=!1),r}[sh](){do;while(this[eE](this[Qt].shift()));if(!this[Qt].length){let e=this[Xt];!e||e.flowing||e.size===e.remain?this[Nn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[oh](e,r){let i=this[Yr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[st]="header",this[Yr]=null,i.end()),s.length}[iE](e,r){let i=this[Yr],n=this[oh](e,r);return this[Yr]||this[tE](i),n}[Kr](e,r,i){!this[Qt].length&&!this[Xt]?this.emit(e,r,i):this[Qt].push([e,r,i])}[tE](e){switch(this[Kr]("meta",this[_r]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[ot]=Qy.parse(this[_r],this[ot],!1);break;case"GlobalExtendedHeader":this[In]=Qy.parse(this[_r],this[In],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[ot]=this[ot]||Object.create(null),this[ot].path=this[_r].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[ot]=this[ot]||Object.create(null),this[ot].linkpath=this[_r].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[wr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[wr])return;if(this[Ve]===null&&e){if(this[me]&&(e=Buffer.concat([this[me],e]),this[me]=null),e.length<nh.length)return this[me]=e,!0;for(let i=0;this[Ve]===null&&i<nh.length;i++)e[i]!==nh[i]&&(this[Ve]=!1);if(this[Ve]===null){let i=this[Vr];this[Vr]=!1,this[Ve]=new VF.Unzip,this[Ve].on("data",s=>this[No](s)),this[Ve].on("error",s=>this.abort(s)),this[Ve].on("end",s=>{this[Vr]=!0,this[No]()}),this[Nn]=!0;let n=this[Ve][i?"end":"write"](e);return this[Nn]=!1,n}}this[Nn]=!0,this[Ve]?this[Ve].write(e):this[No](e),this[Nn]=!1;let r=this[Qt].length?!1:this[Xt]?this[Xt].flowing:!0;return!r&&!this[Qt].length&&this[Xt].once("drain",i=>this.emit("drain")),r}[ah](e){e&&!this[wr]&&(this[me]=this[me]?Buffer.concat([this[me],e]):e)}[uh](){if(this[Vr]&&!this[rE]&&!this[wr]&&!this[jo]){this[rE]=!0;let e=this[Yr];if(e&&e.blockRemain){let r=this[me]?this[me].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[me]&&e.write(this[me]),e.end()}this[Kr]($o)}}[No](e){if(this[jo])this[ah](e);else if(!e&&!this[me])this[uh]();else{if(this[jo]=!0,this[me]){this[ah](e);let r=this[me];this[me]=null,this[Mo](r)}else this[Mo](e);for(;this[me]&&this[me].length>=512&&!this[wr]&&!this[qo];){let r=this[me];this[me]=null,this[Mo](r)}this[jo]=!1}(!this[me]||this[Vr])&&this[uh]()}[Mo](e){let r=0,i=e.length;for(;r+512<=i&&!this[wr]&&!this[qo];)switch(this[st]){case"begin":case"header":this[nE](e,r),r+=512;break;case"ignore":case"body":r+=this[oh](e,r);break;case"meta":r+=this[iE](e,r);break;default:throw new Error("invalid state: "+this[st])}r<i&&(this[me]?this[me]=Buffer.concat([e.slice(r),this[me]]):this[me]=e.slice(r))}end(e){this[wr]||(this[Ve]?this[Ve].end(e):(this[Vr]=!0,this.write(e)))}})});var Go=$((XP,cE)=>{"use strict";var JF=Oi(),uE=Uo(),Vi=require("fs"),XF=Yi(),aE=require("path"),lh=Mi();cE.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=JF(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&&eO(i,e),i.noResume||QF(i),i.file&&i.sync?tO(i):i.file?rO(i,r):lE(i)};var QF=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},eO=(t,e)=>{let r=new Map(e.map(s=>[lh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||aE.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(aE.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(lh(s)):s=>n(lh(s))},tO=t=>{let e=lE(t),r=t.file,i=!0,n;try{let s=Vi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Vi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=Vi.openSync(r,"r");a<s.size;){let l=Vi.readSync(n,u,0,o,a);a+=l,e.write(u.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{Vi.closeSync(n)}catch{}}},rO=(t,e)=>{let r=new uE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Vi.stat(n,(u,l)=>{if(u)a(u);else{let c=new XF.ReadStream(n,{readSize:i,size:l.size});c.on("error",a),c.pipe(r)}})});return e?s.then(e,e):s},lE=t=>new uE(t)});var gE=$((QP,mE)=>{"use strict";var iO=Oi(),zo=Fo(),hE=Yi(),fE=Go(),pE=require("path");mE.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=iO(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?nO(i,e):i.file?sO(i,e,r):i.sync?oO(i,e):aO(i,e)};var nO=(t,e)=>{let r=new zo.Sync(t),i=new hE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),dE(r,e)},sO=(t,e,r)=>{let i=new zo(t),n=new hE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return ch(i,e),r?s.then(r,r):s},dE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?fE({file:pE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},ch=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return fE({file:pE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>ch(t,e));t.add(r)}t.end()},oO=(t,e)=>{let r=new zo.Sync(t);return dE(r,e),r},aO=(t,e)=>{let r=new zo(t);return ch(r,e),r}});var hh=$((eI,SE)=>{"use strict";var uO=Oi(),yE=Fo(),et=require("fs"),EE=Yi(),DE=Go(),bE=require("path"),_E=Ni();SE.exports=(t,e,r)=>{let i=uO(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?lO(i,e):hO(i,e,r)};var lO=(t,e)=>{let r=new yE.Sync(t),i=!0,n,s;try{try{n=et.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=et.openSync(t.file,"w+");else throw u}let o=et.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let c=0,f=0;c<512;c+=f){if(f=et.readSync(n,a,c,a.length-c,s+c),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let u=new _E(a);if(!u.cksumValid)break;let l=512*Math.ceil(u.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}i=!1,cO(t,r,s,n,e)}finally{if(i)try{et.closeSync(n)}catch{}}},cO=(t,e,r,i,n)=>{let s=new EE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),fO(e,n)},hO=(t,e,r)=>{e=Array.from(e);let i=new yE(t),n=(o,a,u)=>{let l=(d,m)=>{d?et.close(o,g=>u(d)):u(null,m)},c=0;if(a===0)return l(null,0);let f=0,h=Buffer.alloc(512),p=(d,m)=>{if(d)return l(d);if(f+=m,f<512&&m)return et.read(o,h,f,h.length-f,c+f,p);if(c===0&&h[0]===31&&h[1]===139)return l(new Error("cannot append to compressed archives"));if(f<512)return l(null,c);let g=new _E(h);if(!g.cksumValid)return l(null,c);let v=512*Math.ceil(g.size/512);if(c+v+512>a||(c+=v+512,c>=a))return l(null,c);t.mtimeCache&&t.mtimeCache.set(g.path,g.mtime),f=0,et.read(o,h,0,512,c,p)};et.read(o,h,0,512,c,p)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",l=(c,f)=>{if(c&&c.code==="ENOENT"&&u==="r+")return u="w+",et.open(t.file,u,l);if(c)return a(c);et.fstat(f,(h,p)=>{if(h)return et.close(f,()=>a(h));n(f,p.size,(d,m)=>{if(d)return a(d);let g=new EE.WriteStream(t.file,{fd:f,start:m});i.pipe(g),g.on("error",a),g.on("close",o),wE(i,e)})})};et.open(t.file,u,l)});return r?s.then(r,r):s},fO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?DE({file:bE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},wE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return DE({file:bE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>wE(t,e));t.add(r)}t.end()}});var vE=$((tI,AE)=>{"use strict";var pO=Oi(),dO=hh();AE.exports=(t,e,r)=>{let i=pO(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),mO(i),dO(i,e,r)};var mO=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 RE=$((rI,xE)=>{var{promisify:CE}=require("util"),Sr=require("fs"),gO=t=>{if(!t)t={mode:511,fs:Sr};else if(typeof t=="object")t={mode:511,fs:Sr,...t};else if(typeof t=="number")t={mode:t,fs:Sr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Sr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Sr.mkdir,t.mkdirAsync=CE(t.mkdir),t.stat=t.stat||t.fs.stat||Sr.stat,t.statAsync=CE(t.stat),t.statSync=t.statSync||t.fs.statSync||Sr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Sr.mkdirSync,t};xE.exports=gO});var OE=$((iI,FE)=>{var yO=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:EO,parse:DO}=require("path"),bO=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=EO(t),yO==="win32"){let e=/[*|"<>?:]/,{root:r}=DO(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};FE.exports=bO});var PE=$((nI,BE)=>{var{dirname:kE}=require("path"),TE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?TE(t,kE(e),e):void 0),LE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?LE(t,kE(e),e):void 0}};BE.exports={findMade:TE,findMadeSync:LE}});var dh=$((sI,NE)=>{var{dirname:IE}=require("path"),fh=(t,e,r)=>{e.recursive=!1;let i=IE(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return fh(i,e).then(s=>fh(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},ph=(t,e,r)=>{let i=IE(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return ph(t,e,ph(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};NE.exports={mkdirpManual:fh,mkdirpManualSync:ph}});var $E=$((oI,jE)=>{var{dirname:ME}=require("path"),{findMade:_O,findMadeSync:wO}=PE(),{mkdirpManual:SO,mkdirpManualSync:AO}=dh(),vO=(t,e)=>(e.recursive=!0,ME(t)===t?e.mkdirAsync(t,e):_O(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return SO(t,e);throw n}))),CO=(t,e)=>{if(e.recursive=!0,ME(t)===t)return e.mkdirSync(t,e);let i=wO(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return AO(t,e);throw n}};jE.exports={mkdirpNative:vO,mkdirpNativeSync:CO}});var GE=$((aI,UE)=>{var HE=require("fs"),xO=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,mh=xO.replace(/^v/,"").split("."),qE=+mh[0]>10||+mh[0]==10&&+mh[1]>=12,RO=qE?t=>t.mkdir===HE.mkdir:()=>!1,FO=qE?t=>t.mkdirSync===HE.mkdirSync:()=>!1;UE.exports={useNative:RO,useNativeSync:FO}});var ZE=$((uI,KE)=>{var Ki=RE(),Zi=OE(),{mkdirpNative:zE,mkdirpNativeSync:WE}=$E(),{mkdirpManual:YE,mkdirpManualSync:VE}=dh(),{useNative:OO,useNativeSync:kO}=GE(),Ji=(t,e)=>(t=Zi(t),e=Ki(e),OO(e)?zE(t,e):YE(t,e)),TO=(t,e)=>(t=Zi(t),e=Ki(e),kO(e)?WE(t,e):VE(t,e));Ji.sync=TO;Ji.native=(t,e)=>zE(Zi(t),Ki(e));Ji.manual=(t,e)=>YE(Zi(t),Ki(e));Ji.nativeSync=(t,e)=>WE(Zi(t),Ki(e));Ji.manualSync=(t,e)=>VE(Zi(t),Ki(e));KE.exports=Ji});var iD=$((lI,rD)=>{"use strict";var at=require("fs"),Jr=require("path"),LO=at.lchown?"lchown":"chown",BO=at.lchownSync?"lchownSync":"chownSync",XE=at.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),JE=(t,e,r)=>{try{return at[BO](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},PO=(t,e,r)=>{try{return at.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IO=XE?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):at.chown(t,e,r,i)}:(t,e,r,i)=>i,gh=XE?(t,e,r)=>{try{return JE(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;PO(t,e,r)}}:(t,e,r)=>JE(t,e,r),NO=process.version,QE=(t,e,r)=>at.readdir(t,e,r),MO=(t,e)=>at.readdirSync(t,e);/^v4\./.test(NO)&&(QE=(t,e,r)=>at.readdir(t,r));var Wo=(t,e,r,i)=>{at[LO](t,e,r,IO(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},eD=(t,e,r,i,n)=>{if(typeof e=="string")return at.lstat(Jr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,eD(t,o,r,i,n)});if(e.isDirectory())yh(Jr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Jr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Jr.resolve(t,e.name);Wo(s,r,i,n)}},yh=(t,e,r,i)=>{QE(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Wo(t,e,r,i);let o=s.length,a=null,u=l=>{if(!a){if(l)return i(a=l);if(--o===0)return Wo(t,e,r,i)}};s.forEach(l=>eD(t,l,e,r,u))})},jO=(t,e,r,i)=>{if(typeof e=="string")try{let n=at.lstatSync(Jr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&tD(Jr.resolve(t,e.name),r,i),gh(Jr.resolve(t,e.name),r,i)},tD=(t,e,r)=>{let i;try{i=MO(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return gh(t,e,r);throw n}return i&&i.length&&i.forEach(n=>jO(t,n,e,r)),gh(t,e,r)};rD.exports=yh;yh.sync=tD});var aD=$((cI,Eh)=>{"use strict";var nD=ZE(),ut=require("fs"),Yo=require("path"),sD=iD(),dt=Pi(),Vo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Ko=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(t,e)=>t.get(dt(e)),Mn=(t,e,r)=>t.set(dt(e),r),$O=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Ko(t,r&&r.code||"ENOTDIR")),e(r)})};Eh.exports=(t,e,r)=>{t=dt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,c=e.unlink,f=e.cache,h=dt(e.cwd),p=(g,v)=>{g?r(g):(Mn(f,t,!0),v&&u?sD(v,o,a,F=>p(F)):s?ut.chmod(t,n,r):r())};if(f&&Zo(f,t)===!0)return p();if(t===h)return $O(t,p);if(l)return nD(t,{mode:n}).then(g=>p(null,g),p);let m=dt(Yo.relative(h,t)).split("/");Jo(h,m,n,f,c,h,null,p)};var Jo=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),l=dt(Yo.resolve(t+"/"+u));if(Zo(i,l))return Jo(l,e,r,i,n,s,o,a);ut.mkdir(l,r,oD(l,e,r,i,n,s,o,a))},oD=(t,e,r,i,n,s,o,a)=>u=>{u?ut.lstat(t,(l,c)=>{if(l)l.path=l.path&&dt(l.path),a(l);else if(c.isDirectory())Jo(t,e,r,i,n,s,o,a);else if(n)ut.unlink(t,f=>{if(f)return a(f);ut.mkdir(t,r,oD(t,e,r,i,n,s,o,a))});else{if(c.isSymbolicLink())return a(new Vo(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Jo(t,e,r,i,n,s,o,a))},HO=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Ko(t,r)}};Eh.exports.sync=(t,e)=>{t=dt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,l=e.unlink,c=e.cache,f=dt(e.cwd),h=g=>{Mn(c,t,!0),g&&a&&sD.sync(g,s,o),n&&ut.chmodSync(t,i)};if(c&&Zo(c,t)===!0)return h();if(t===f)return HO(f),h();if(u)return h(nD.sync(t,i));let d=dt(Yo.relative(f,t)).split("/"),m=null;for(let g=d.shift(),v=f;g&&(v+="/"+g);g=d.shift())if(v=dt(Yo.resolve(v)),!Zo(c,v))try{ut.mkdirSync(v,i),m=m||v,Mn(c,v,!0)}catch{let k=ut.lstatSync(v);if(k.isDirectory()){Mn(c,v,!0);continue}else if(l){ut.unlinkSync(v),ut.mkdirSync(v,i),m=m||v,Mn(c,v,!0);continue}else if(k.isSymbolicLink())return new Vo(v,v+"/"+d.join("/"))}return h(m)}});var bh=$((hI,uD)=>{var Dh=Object.create(null),{hasOwnProperty:qO}=Object.prototype;uD.exports=t=>(qO.call(Dh,t)||(Dh[t]=t.normalize("NFKD")),Dh[t])});var fD=$((fI,hD)=>{var lD=require("assert"),UO=bh(),GO=Mi(),{join:cD}=require("path"),zO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,WO=zO==="win32";hD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=cD(f[f.length-1],h)),f.push(h||"/"),f),[]),i=new Set,n=l=>{let c=e.get(l);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(f=>t.get(f)),dirs:[...c.dirs].map(f=>t.get(f))}},s=l=>{let{paths:c,dirs:f}=n(l);return c.every(h=>h[0]===l)&&f.every(h=>h[0]instanceof Set&&h[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>a(l)),!0),a=l=>{if(!i.has(l))return!1;let{paths:c,dirs:f}=e.get(l),h=new Set;return c.forEach(p=>{let d=t.get(p);lD.equal(d[0],l),d.length===1?t.delete(p):(d.shift(),typeof d[0]=="function"?h.add(d[0]):d[0].forEach(m=>h.add(m)))}),f.forEach(p=>{let d=t.get(p);lD(d[0]instanceof Set),d[0].size===1&&d.length===1?t.delete(p):d[0].size===1?(d.shift(),h.add(d[0])):d[0].delete(l)}),i.delete(l),h.forEach(p=>o(p)),!0};return{check:s,reserve:(l,c)=>{l=WO?["win32 parallelization disabled"]:l.map(h=>UO(GO(cD(h))).toLowerCase());let f=new Set(l.map(h=>r(h)).reduce((h,p)=>h.concat(p)));return e.set(c,{dirs:f,paths:l}),l.forEach(h=>{let p=t.get(h);p?p.push(c):t.set(h,[c])}),f.forEach(h=>{let p=t.get(h);p?p[p.length-1]instanceof Set?p[p.length-1].add(c):p.push(new Set([c])):t.set(h,[new Set([c])])}),o(c)}}}});var mD=$((pI,dD)=>{var YO=process.env.__FAKE_PLATFORM__||process.platform,VO=YO==="win32",KO=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:ZO,O_TRUNC:JO,O_WRONLY:XO,UV_FS_O_FILEMAP:pD=0}=KO.constants,QO=VO&&!!pD,ek=512*1024,tk=pD|JO|ZO|XO;dD.exports=QO?t=>t<ek?tk:"w":()=>"w"});var Fh=$((dI,FD)=>{"use strict";var rk=require("assert"),ik=Uo(),ue=require("fs"),nk=Yi(),er=require("path"),CD=aD(),gD=Rc(),sk=fD(),ok=Fc(),tt=Pi(),ak=Mi(),uk=bh(),yD=Symbol("onEntry"),Sh=Symbol("checkFs"),ED=Symbol("checkFs2"),ea=Symbol("pruneCache"),Ah=Symbol("isReusable"),lt=Symbol("makeFs"),vh=Symbol("file"),Ch=Symbol("directory"),ta=Symbol("link"),DD=Symbol("symlink"),bD=Symbol("hardlink"),_D=Symbol("unsupported"),wD=Symbol("checkPath"),Ar=Symbol("mkdir"),Me=Symbol("onError"),Xo=Symbol("pending"),SD=Symbol("pend"),Xi=Symbol("unpend"),_h=Symbol("ended"),wh=Symbol("maybeClose"),xh=Symbol("skip"),jn=Symbol("doChown"),$n=Symbol("uid"),Hn=Symbol("gid"),qn=Symbol("checkedCwd"),xD=require("crypto"),RD=mD(),lk=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Un=lk==="win32",ck=(t,e)=>{if(!Un)return ue.unlink(t,e);let r=t+".DELETE."+xD.randomBytes(16).toString("hex");ue.rename(t,r,i=>{if(i)return e(i);ue.unlink(r,e)})},hk=t=>{if(!Un)return ue.unlinkSync(t);let e=t+".DELETE."+xD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},AD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,vD=t=>uk(ak(tt(t))).toLowerCase(),fk=(t,e)=>{e=vD(e);for(let r of t.keys()){let i=vD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},pk=t=>{for(let e of t.keys())t.delete(e)},Gn=class extends ik{constructor(e){if(e||(e={}),e.ondone=r=>{this[_h]=!0,this[wh]()},super(e),this[qn]=!1,this.reservations=sk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[_h]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Un,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=tt(er.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[yD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[wh](){this[_h]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[wD](e){if(this.strip){let r=tt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=tt(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=tt(e.path),i=r.split("/");if(i.includes("..")||Un&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=ok(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(er.isAbsolute(e.path)?e.absolute=tt(er.resolve(e.path)):e.absolute=tt(er.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:tt(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}=er.win32.parse(e.absolute);e.absolute=r+gD.encode(e.absolute.slice(r.length));let{root:i}=er.win32.parse(e.path);e.path=i+gD.encode(e.path.slice(i.length))}return!0}[yD](e){if(!this[wD](e))return e.resume();switch(rk.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Sh](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[_D](e)}}[Me](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Xi](),r.resume())}[Ar](e,r,i){CD(tt(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)}[jn](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[$n](e){return AD(this.uid,e.uid,this.processUid)}[Hn](e){return AD(this.gid,e.gid,this.processGid)}[vh](e,r){let i=e.mode&4095||this.fmode,n=new nk.WriteStream(e.absolute,{flags:RD(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&ue.close(n.fd,()=>{}),n.write=()=>!0,this[Me](u,e),r()});let s=1,o=u=>{if(u){n.fd&&ue.close(n.fd,()=>{}),this[Me](u,e),r();return}--s===0&&ue.close(n.fd,l=>{l?this[Me](l,e):this[Xi](),r()})};n.on("finish",u=>{let l=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;ue.futimes(c,f,h,p=>p?ue.utimes(l,f,h,d=>o(d&&p)):o())}if(this[jn](e)){s++;let f=this[$n](e),h=this[Hn](e);ue.fchown(c,f,h,p=>p?ue.chown(l,f,h,d=>o(d&&p)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Me](u,e),r()}),e.pipe(a)),a.pipe(n)}[Ch](e,r){let i=e.mode&4095||this.dmode;this[Ar](e.absolute,i,n=>{if(n){this[Me](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ue.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[jn](e)&&(s++,ue.chown(e.absolute,this[$n](e),this[Hn](e),o)),o()})}[_D](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[DD](e,r){this[ta](e,e.linkpath,"symlink",r)}[bD](e,r){let i=tt(er.resolve(this.cwd,e.linkpath));this[ta](e,i,"link",r)}[SD](){this[Xo]++}[Xi](){this[Xo]--,this[wh]()}[xh](e){this[Xi](),e.resume()}[Ah](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Un}[Sh](e){this[SD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[ED](e,i))}[ea](e){e.type==="SymbolicLink"?pk(this.dirCache):e.type!=="Directory"&&fk(this.dirCache,e.absolute)}[ED](e,r){this[ea](e);let i=a=>{this[ea](e),r(a)},n=()=>{this[Ar](this.cwd,this.dmode,a=>{if(a){this[Me](a,e),i();return}this[qn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=tt(er.dirname(e.absolute));if(a!==this.cwd)return this[Ar](a,this.dmode,u=>{if(u){this[Me](u,e),i();return}o()})}o()},o=()=>{ue.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[xh](e),i();return}if(a||this[Ah](e,u))return this[lt](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,c=f=>this[lt](f,e,i);return l?ue.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ue.rmdir(e.absolute,l=>this[lt](l,e,i))}if(e.absolute===this.cwd)return this[lt](null,e,i);ck(e.absolute,l=>this[lt](l,e,i))})};this[qn]?s():n()}[lt](e,r,i){if(e){this[Me](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vh](r,i);case"Link":return this[bD](r,i);case"SymbolicLink":return this[DD](r,i);case"Directory":case"GNUDumpDir":return this[Ch](r,i)}}[ta](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Xi](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Rh=class extends Gn{[lt](e,r){return super[lt](e,r,()=>{})}[Sh](e){if(this[ea](e),!this[qn]){let s=this[Ar](this.cwd,this.dmode);if(s)return this[Me](s,e);this[qn]=!0}if(e.absolute!==this.cwd){let s=tt(er.dirname(e.absolute));if(s!==this.cwd){let o=this[Ar](s,this.dmode);if(o)return this[Me](o,e)}}let[r,i]=Qo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[xh](e);if(r||this[Ah](e,i))return this[lt](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Qo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[lt](a,e)}let[s]=Qo(()=>ue.rmdirSync(e.absolute));this[lt](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>hk(e.absolute));this[lt](n,e)}[vh](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{ue.closeSync(s)}catch(l){u=l}(a||u)&&this[Me](a||u,e),r()},s;try{s=ue.openSync(e.absolute,RD(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Me](a,e)),e.pipe(o)),o.on("data",a=>{try{ue.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,c=e.mtime;try{ue.futimesSync(s,l,c)}catch(f){try{ue.utimesSync(e.absolute,l,c)}catch{u=f}}}if(this[jn](e)){let l=this[$n](e),c=this[Hn](e);try{ue.fchownSync(s,l,c)}catch(f){try{ue.chownSync(e.absolute,l,c)}catch{u=u||f}}}n(u)})}[Ch](e,r){let i=e.mode&4095||this.dmode,n=this[Ar](e.absolute,i);if(n){this[Me](n,e),r();return}if(e.mtime&&!this.noMtime)try{ue.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[jn](e))try{ue.chownSync(e.absolute,this[$n](e),this[Hn](e))}catch{}r(),e.resume()}[Ar](e,r){try{return CD.sync(tt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[ta](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Gn.Sync=Rh;FD.exports=Gn});var BD=$((mI,LD)=>{"use strict";var dk=Oi(),ra=Fh(),kD=require("fs"),TD=Yi(),OD=require("path"),Oh=Mi();LD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=dk(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&mk(i,e),i.file&&i.sync?gk(i):i.file?yk(i,r):i.sync?Ek(i):Dk(i)};var mk=(t,e)=>{let r=new Map(e.map(s=>[Oh(s),!0])),i=t.filter,n=(s,o)=>{let a=o||OD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(OD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Oh(s)):s=>n(Oh(s))},gk=t=>{let e=new ra.Sync(t),r=t.file,i=kD.statSync(r),n=t.maxReadSize||16*1024*1024;new TD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},yk=(t,e)=>{let r=new ra(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),kD.stat(n,(u,l)=>{if(u)a(u);else{let c=new TD.ReadStream(n,{readSize:i,size:l.size});c.on("error",a),c.pipe(r)}})});return e?s.then(e,e):s},Ek=t=>new ra.Sync(t),Dk=t=>new ra(t)});var PD=$(Ce=>{"use strict";Ce.c=Ce.create=gE();Ce.r=Ce.replace=hh();Ce.t=Ce.list=Go();Ce.u=Ce.update=vE();Ce.x=Ce.extract=BD();Ce.Pack=Fo();Ce.Unpack=Fh();Ce.Parse=Uo();Ce.ReadEntry=ho();Ce.WriteEntry=jc();Ce.Header=Ni();Ce.Pax=po();Ce.types=_c()});var HD=$((bI,$D)=>{function ct(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}$D.exports=ct;ct.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ct.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ct.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};ct.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ct.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ct.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ct.prototype.start=ct.prototype.try;ct.prototype.errors=function(){return this._errors};ct.prototype.attempts=function(){return this._attempts};ct.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var qD=$(Xr=>{var Sk=HD();Xr.operation=function(t){var e=Xr.timeouts(t);return new Sk(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Xr.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};Xr.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};Xr.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(u){var l=Xr.operation(e),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(h){l.retry(h)||(h&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){u.apply(t,c)})}.bind(t,o),t[s].options=e}}});var GD=$((wI,UD)=>{UD.exports=qD()});var WD=$((SI,zD)=>{var Ak=GD();function vk(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Ak.operation(s);function a(c){n(c||new Error("Aborted"))}function u(c,f){if(c.bail){a(c);return}o.retry(c)?s.onRetry&&s.onRetry(c,f):n(o.mainError())}function l(c){var f;try{f=t(a,c)}catch(h){u(h,c);return}Promise.resolve(f).then(i).catch(function(p){u(p,c)})}o.attempt(l)}return new Promise(r)}zD.exports=vk});var Vb=J(require("chalk"));var n_=J(ef());function Sa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ln(t){return ln=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},ln(t)}function Aa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function va(t,e){if(e&&(ln(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(t)}function Or(t){return Or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Or(t)}function Nt(t,e){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Nt(t,e)}function Ca(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&&Nt(t,e)}function xa(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ra(){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 ii(t,e,r){return Ra()?ii=Reflect.construct.bind():ii=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),l=new u;return o&&Nt(l,o.prototype),l},ii.apply(null,arguments)}function cn(t){var e=typeof Map=="function"?new Map:void 0;return cn=function(i){if(i===null||!xa(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 ii(i,arguments,Or(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Nt(n,i)},cn(t)}var tf=J(require("find-up"));var s_=J(require("fs-extra")),iB=function(t){Ca(e,t);function e(r){var i;return Sa(this,e),i=va(this,Or(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(cn(Error));var o_=J(require("fs")),a_=J(require("path"));var jC=J(require("fs")),$C=J(require("path"));function Ef(t){return typeof t=="undefined"||t===null}function c_(t){return typeof t=="object"&&t!==null}function h_(t){return Array.isArray(t)?t:Ef(t)?[]:[t]}function f_(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 p_(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function d_(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var m_=Ef,g_=c_,y_=h_,E_=p_,D_=d_,b_=f_,ve={isNothing:m_,isObject:g_,toArray:y_,repeat:E_,isNegativeZero:D_,extend:b_};function Df(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+=`
|
10
|
+
|
11
|
+
`+t.mark.snippet),i+" "+r):i}function fn(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Df(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fn.prototype=Object.create(Error.prototype);fn.prototype.constructor=fn;fn.prototype.toString=function(e){return this.name+": "+Df(this,e)};var He=fn;function Fa(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Oa(t,e){return ve.repeat(" ",e-t.length)+t}function __(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",u,l,c=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+c+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)l=Fa(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),f),a=ve.repeat(" ",e.indent)+Oa((t.line-u+1).toString(),c)+" | "+l.str+`
|
12
|
+
`+a;for(l=Fa(t.buffer,i[o],n[o],t.position,f),a+=ve.repeat(" ",e.indent)+Oa((t.line+1).toString(),c)+" | "+l.str+`
|
13
|
+
`,a+=ve.repeat("-",e.indent+c+3+l.pos)+`^
|
14
|
+
`,u=1;u<=e.linesAfter&&!(o+u>=n.length);u++)l=Fa(t.buffer,i[o+u],n[o+u],t.position-(i[o]-i[o+u]),f),a+=ve.repeat(" ",e.indent)+Oa((t.line+u+1).toString(),c)+" | "+l.str+`
|
15
|
+
`;return a.replace(/\n$/,"")}var w_=__,S_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],A_=["scalar","sequence","mapping"];function v_(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function C_(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(S_.indexOf(r)===-1)throw new He('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=v_(e.styleAliases||null),A_.indexOf(this.kind)===-1)throw new He('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Oe=C_;function rf(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 x_(){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 Ta(t){return this.extend(t)}Ta.prototype.extend=function(e){var r=[],i=[];if(e instanceof Oe)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new He("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Oe))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new He("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new He("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Oe))throw new He("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ta.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=rf(n,"implicit"),n.compiledExplicit=rf(n,"explicit"),n.compiledTypeMap=x_(n.compiledImplicit,n.compiledExplicit),n};var bf=Ta,_f=new Oe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),wf=new Oe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Sf=new Oe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Af=new bf({explicit:[_f,wf,Sf]});function R_(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function F_(){return null}function O_(t){return t===null}var vf=new Oe("tag:yaml.org,2002:null",{kind:"scalar",resolve:R_,construct:F_,predicate:O_,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function k_(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 T_(t){return t==="true"||t==="True"||t==="TRUE"}function L_(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Cf=new Oe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:k_,construct:T_,predicate:L_,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 B_(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function P_(t){return 48<=t&&t<=55}function I_(t){return 48<=t&&t<=57}function N_(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(!B_(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!P_(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!I_(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function M_(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 j_(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ve.isNegativeZero(t)}var xf=new Oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:N_,construct:M_,predicate:j_,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"]}}),$_=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function H_(t){return!(t===null||!$_.test(t)||t[t.length-1]==="_")}function q_(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 U_=/^[-+]?[0-9]+e/;function G_(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(ve.isNegativeZero(t))return"-0.0";return r=t.toString(10),U_.test(r)?r.replace("e",".e"):r}function z_(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ve.isNegativeZero(t))}var Rf=new Oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:H_,construct:q_,predicate:z_,represent:G_,defaultStyle:"lowercase"}),Ff=Af.extend({implicit:[vf,Cf,xf,Rf]}),Of=Ff,kf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tf=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 W_(t){return t===null?!1:kf.exec(t)!==null||Tf.exec(t)!==null}function Y_(t){var e,r,i,n,s,o,a,u=0,l=null,c,f,h;if(e=kf.exec(t),e===null&&(e=Tf.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=+e[10],f=+(e[11]||0),l=(c*60+f)*6e4,e[9]==="-"&&(l=-l)),h=new Date(Date.UTC(r,i,n,s,o,a,u)),l&&h.setTime(h.getTime()-l),h}function V_(t){return t.toISOString()}var Lf=new Oe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:W_,construct:Y_,instanceOf:Date,represent:V_});function K_(t){return t==="<<"||t===null}var Bf=new Oe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:K_}),Na=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
16
|
+
\r`;function Z_(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Na;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 J_(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Na,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function X_(t){var e="",r=0,i,n,s=t.length,o=Na;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 Q_(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Pf=new Oe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Z_,construct:J_,predicate:Q_,represent:X_}),ew=Object.prototype.hasOwnProperty,tw=Object.prototype.toString;function rw(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,tw.call(n)!=="[object Object]")return!1;for(s in n)if(ew.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 iw(t){return t!==null?t:[]}var If=new Oe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rw,construct:iw}),nw=Object.prototype.toString;function sw(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],nw.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function ow(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 Nf=new Oe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sw,construct:ow}),aw=Object.prototype.hasOwnProperty;function uw(t){if(t===null)return!0;var e,r=t;for(e in r)if(aw.call(r,e)&&r[e]!==null)return!1;return!0}function lw(t){return t!==null?t:{}}var Mf=new Oe("tag:yaml.org,2002:set",{kind:"mapping",resolve:uw,construct:lw}),Ma=Of.extend({implicit:[Lf,Bf],explicit:[Pf,If,Nf,Mf]}),nr=Object.prototype.hasOwnProperty,is=1,jf=2,$f=3,ns=4,ka=1,cw=2,nf=3,hw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fw=/[\x85\u2028\u2029]/,pw=/[,\[\]\{\}]/,Hf=/^(?:!|!!|![a-z\-]+!)$/i,qf=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sf(t){return Object.prototype.toString.call(t)}function Et(t){return t===10||t===13}function Tr(t){return t===9||t===32}function Ue(t){return t===9||t===32||t===10||t===13}function si(t){return t===44||t===91||t===93||t===123||t===125}function dw(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function mw(t){return t===120?2:t===117?4:t===85?8:0}function gw(t){return 48<=t&&t<=57?t-48:-1}function of(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
17
|
+
`: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 yw(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Uf=new Array(256),Gf=new Array(256);for(kr=0;kr<256;kr++)Uf[kr]=of(kr)?1:0,Gf[kr]=of(kr);var kr;function Ew(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Ma,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function zf(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=w_(r),new He(e,r)}function Q(t,e){throw zf(t,e)}function ss(t,e){t.onWarning&&t.onWarning.call(null,zf(t,e))}var af={YAML:function(e,r,i){var n,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),i.length!==1&&Q(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&ss(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Hf.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),nr.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),qf.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function ir(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else hw.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function uf(t,e,r,i){var n,s,o,a;for(ve.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],nr.call(e,s)||(e[s]=r[s],i[s]=!0)}function oi(t,e,r,i,n,s,o,a,u){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&sf(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&sf(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)uf(t,e,s[l],r);else uf(t,e,s,r);else!t.json&&!nr.call(r,n)&&nr.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,Q(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function ja(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Se(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Tr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Et(n))for(ja(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&&ss(t,"deficient indentation"),i}function us(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ue(r)))}function $a(t,e){e===1?t.result+=" ":e>1&&(t.result+=ve.repeat(`
|
18
|
+
`,e-1))}function Dw(t,e,r){var i,n,s,o,a,u,l,c,f=t.kind,h=t.result,p;if(p=t.input.charCodeAt(t.position),Ue(p)||si(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&si(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),Ue(n)||r&&si(n))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Ue(i))break}else{if(t.position===t.lineStart&&us(t)||r&&si(p))break;if(Et(p))if(u=t.line,l=t.lineStart,c=t.lineIndent,Se(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=l,t.lineIndent=c;break}}a&&(ir(t,s,o,!1),$a(t,t.line-u),s=o=t.position,a=!1),Tr(p)||(o=t.position+1),p=t.input.charCodeAt(++t.position)}return ir(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function bw(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(ir(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 Et(r)?(ir(t,i,n,!0),$a(t,Se(t,!1,e)),i=n=t.position):t.position===t.lineStart&&us(t)?Q(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Q(t,"unexpected end of the stream within a single quoted scalar")}function _w(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ir(t,r,t.position,!0),t.position++,!0;if(a===92){if(ir(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Et(a))Se(t,!1,e);else if(a<256&&Uf[a])t.result+=Gf[a],t.position++;else if((o=mw(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=dw(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=yw(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else Et(a)?(ir(t,r,i,!0),$a(t,Se(t,!1,e)),r=i=t.position):t.position===t.lineStart&&us(t)?Q(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Q(t,"unexpected end of the stream within a double quoted scalar")}function ww(t,e){var r=!0,i,n,s,o=t.tag,a,u=t.anchor,l,c,f,h,p,d=Object.create(null),m,g,v,F;if(F=t.input.charCodeAt(t.position),F===91)c=93,p=!1,a=[];else if(F===123)c=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),F=t.input.charCodeAt(++t.position);F!==0;){if(Se(t,!0,e),F=t.input.charCodeAt(t.position),F===c)return t.position++,t.tag=o,t.anchor=u,t.kind=p?"mapping":"sequence",t.result=a,!0;r?F===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),g=m=v=null,f=h=!1,F===63&&(l=t.input.charCodeAt(t.position+1),Ue(l)&&(f=h=!0,t.position++,Se(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,ai(t,e,is,!1,!0),g=t.tag,m=t.result,Se(t,!0,e),F=t.input.charCodeAt(t.position),(h||t.line===i)&&F===58&&(f=!0,F=t.input.charCodeAt(++t.position),Se(t,!0,e),ai(t,e,is,!1,!0),v=t.result),p?oi(t,a,d,g,m,v,i,n,s):f?a.push(oi(t,null,d,g,m,v,i,n,s)):a.push(m),Se(t,!0,e),F=t.input.charCodeAt(t.position),F===44?(r=!0,F=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function Sw(t,e){var r,i,n=ka,s=!1,o=!1,a=e,u=0,l=!1,c,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)ka===n?n=f===43?nf:cw:Q(t,"repeat of a chomping mode identifier");else if((c=gw(f))>=0)c===0?Q(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(t,"repeat of an indentation width identifier"):(a=e+c-1,o=!0);else break;if(Tr(f)){do f=t.input.charCodeAt(++t.position);while(Tr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Et(f)&&f!==0)}for(;f!==0;){for(ja(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Et(f)){u++;continue}if(t.lineIndent<a){n===nf?t.result+=ve.repeat(`
|
19
|
+
`,s?1+u:u):n===ka&&s&&(t.result+=`
|
20
|
+
`);break}for(i?Tr(f)?(l=!0,t.result+=ve.repeat(`
|
21
|
+
`,s?1+u:u)):l?(l=!1,t.result+=ve.repeat(`
|
22
|
+
`,u+1)):u===0?s&&(t.result+=" "):t.result+=ve.repeat(`
|
23
|
+
`,u):t.result+=ve.repeat(`
|
24
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!Et(f)&&f!==0;)f=t.input.charCodeAt(++t.position);ir(t,r,t.position,!1)}return!0}function lf(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!Ue(o))));){if(a=!0,t.position++,Se(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,ai(t,e,$f,!1,!0),s.push(t.result),Se(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Aw(t,e,r){var i,n,s,o,a,u,l=t.tag,c=t.anchor,f={},h=Object.create(null),p=null,d=null,m=null,g=!1,v=!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(!g&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(F===63||F===58)&&Ue(i))F===63?(g&&(oi(t,f,h,p,d,null,o,a,u),p=d=m=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,F=i;else{if(o=t.line,a=t.lineStart,u=t.position,!ai(t,r,jf,!1,!0))break;if(t.line===s){for(F=t.input.charCodeAt(t.position);Tr(F);)F=t.input.charCodeAt(++t.position);if(F===58)F=t.input.charCodeAt(++t.position),Ue(F)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(oi(t,f,h,p,d,null,o,a,u),p=d=m=null),v=!0,g=!1,n=!1,p=t.tag,d=t.result;else if(v)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(v)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===s||t.lineIndent>e)&&(g&&(o=t.line,a=t.lineStart,u=t.position),ai(t,e,ns,!0,n)&&(g?d=t.result:m=t.result),g||(oi(t,f,h,p,d,m,o,a,u),p=d=m=null),Se(t,!0,-1),F=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&F!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&oi(t,f,h,p,d,null,o,a,u),v&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=f),v}function vw(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Q(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ue(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Hf.test(n)||Q(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),pw.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!qf.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:nr.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+n+'"'),!0}function Cw(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ue(r)&&!si(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function xw(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ue(i)&&!si(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),nr.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Se(t,!0,-1),!0}function ai(t,e,r,i,n){var s,o,a,u=1,l=!1,c=!1,f,h,p,d,m,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=ns===r||$f===r,i&&Se(t,!0,-1)&&(l=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;vw(t)||Cw(t);)Se(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=l||n),(u===1||ns===r)&&(is===r||jf===r?m=e:m=e+1,g=t.position-t.lineStart,u===1?a&&(lf(t,g)||Aw(t,g,m))||ww(t,m)?c=!0:(o&&Sw(t,m)||bw(t,m)||_w(t,m)?c=!0:xw(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):Dw(t,m,is===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(c=a&&lf(t,g))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(d=t.implicitTypes[f],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(nr.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,h=p.length;f<h;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){d=p[f];break}d||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&d.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function Rw(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&&(Se(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;Tr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Et(o));break}if(Et(o))break;for(r=t.position;o!==0&&!Ue(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&ja(t),nr.call(af,i)?af[i](t,i,n):ss(t,'unknown document directive "'+i+'"')}if(Se(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,Se(t,!0,-1)):s&&Q(t,"directives end mark is expected"),ai(t,t.lineIndent-1,ns,!1,!0),Se(t,!0,-1),t.checkLineBreaks&&fw.test(t.input.slice(e,t.position))&&ss(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&us(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Se(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function Wf(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
25
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Ew(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Q(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Rw(r);return r.documents}function Fw(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Wf(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Ow(t,e){var r=Wf(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new He("expected a single document in the stream, but found more")}}var kw=Fw,Tw=Ow,Yf={loadAll:kw,load:Tw},Vf=Object.prototype.toString,Kf=Object.prototype.hasOwnProperty,Ha=65279,Lw=9,pn=10,Bw=13,Pw=32,Iw=33,Nw=34,La=35,Mw=37,jw=38,$w=39,Hw=42,Zf=44,qw=45,os=58,Uw=61,Gw=62,zw=63,Ww=64,Jf=91,Xf=93,Yw=96,Qf=123,Vw=124,ep=125,ke={};ke[0]="\\0";ke[7]="\\a";ke[8]="\\b";ke[9]="\\t";ke[10]="\\n";ke[11]="\\v";ke[12]="\\f";ke[13]="\\r";ke[27]="\\e";ke[34]='\\"';ke[92]="\\\\";ke[133]="\\N";ke[160]="\\_";ke[8232]="\\L";ke[8233]="\\P";var Kw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zw=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Jw(t,e){var r,i,n,s,o,a,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&Kf.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function Xw(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new He("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ve.repeat("0",i-e.length)+e}var Qw=1,dn=2;function eS(t){this.schema=t.schema||Ma,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ve.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Jw(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==='"'?dn:Qw,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 cf(t,e){for(var r=ve.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
26
|
+
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
27
|
+
`&&(s+=r),s+=o;return s}function Ba(t,e){return`
|
28
|
+
`+ve.repeat(" ",t.indent*e)}function tS(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 as(t){return t===Pw||t===Lw}function mn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ha||65536<=t&&t<=1114111}function hf(t){return mn(t)&&t!==Ha&&t!==Bw&&t!==pn}function ff(t,e,r){var i=hf(t),n=i&&!as(t);return(r?i:i&&t!==Zf&&t!==Jf&&t!==Xf&&t!==Qf&&t!==ep)&&t!==La&&!(e===os&&!n)||hf(e)&&!as(e)&&t===La||e===os&&n}function rS(t){return mn(t)&&t!==Ha&&!as(t)&&t!==qw&&t!==zw&&t!==os&&t!==Zf&&t!==Jf&&t!==Xf&&t!==Qf&&t!==ep&&t!==La&&t!==jw&&t!==Hw&&t!==Iw&&t!==Vw&&t!==Uw&&t!==Gw&&t!==$w&&t!==Nw&&t!==Mw&&t!==Ww&&t!==Yw}function iS(t){return!as(t)&&t!==os}function hn(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 tp(t){var e=/^\n* /;return e.test(t)}var rp=1,Pa=2,ip=3,np=4,ni=5;function nS(t,e,r,i,n,s,o,a){var u,l=0,c=null,f=!1,h=!1,p=i!==-1,d=-1,m=rS(hn(t,0))&&iS(hn(t,t.length-1));if(e||o)for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=hn(t,u),!mn(l))return ni;m=m&&ff(l,c,a),c=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=hn(t,u),l===pn)f=!0,p&&(h=h||u-d-1>i&&t[d+1]!==" ",d=u);else if(!mn(l))return ni;m=m&&ff(l,c,a),c=l}h=h||p&&u-d-1>i&&t[d+1]!==" "}return!f&&!h?m&&!o&&!n(t)?rp:s===dn?ni:Pa:r>9&&tp(t)?ni:o?s===dn?ni:Pa:h?np:ip}function sS(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===dn?'""':"''";if(!t.noCompatMode&&(Kw.indexOf(e)!==-1||Zw.test(e)))return t.quotingType===dn?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function u(l){return tS(t,l)}switch(nS(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!i,n)){case rp:return e;case Pa:return"'"+e.replace(/'/g,"''")+"'";case ip:return"|"+pf(e,t.indent)+df(cf(e,s));case np:return">"+pf(e,t.indent)+df(cf(oS(e,o),s));case ni:return'"'+aS(e)+'"';default:throw new He("impossible error: invalid scalar style")}}()}function pf(t,e){var r=tp(t)?String(e):"",i=t[t.length-1]===`
|
29
|
+
`,n=i&&(t[t.length-2]===`
|
30
|
+
`||t===`
|
31
|
+
`),s=n?"+":i?"":"-";return r+s+`
|
32
|
+
`}function df(t){return t[t.length-1]===`
|
33
|
+
`?t.slice(0,-1):t}function oS(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
|
34
|
+
`);return l=l!==-1?l:t.length,r.lastIndex=l,mf(t.slice(0,l),e)}(),n=t[0]===`
|
35
|
+
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",i+=a+(!n&&!s&&u!==""?`
|
36
|
+
`:"")+mf(u,e),n=s}return i}function mf(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,u="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,u+=`
|
37
|
+
`+t.slice(n,s),n=s+1),o=a;return u+=`
|
38
|
+
`,t.length-n>e&&o>n?u+=t.slice(n,o)+`
|
39
|
+
`+t.slice(o+1):u+=t.slice(n),u.slice(1)}function aS(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=hn(t,n),i=ke[r],!i&&mn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Xw(r);return e}function uS(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Mt(t,e,a,!1,!1)||typeof a=="undefined"&&Mt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function gf(t,e,r,i){var n="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(Mt(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&Mt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ba(t,e)),t.dump&&pn===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function lS(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,u,l,c;for(o=0,a=s.length;o<a;o+=1)c="",i!==""&&(c+=", "),t.condenseFlow&&(c+='"'),u=s[o],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),Mt(t,e,u,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mt(t,e,l,!1,!1)&&(c+=t.dump,i+=c));t.tag=n,t.dump="{"+i+"}"}function cS(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,u,l,c,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new He("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!i||n!=="")&&(h+=Ba(t,e)),l=o[a],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Mt(t,e+1,l,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&pn===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=Ba(t,e)),Mt(t,e+1,c,!0,f)&&(t.dump&&pn===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function yf(t,e,r){var i,n,s,o,a,u;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,Vf.call(a.represent)==="[object Function]")i=a.represent(e,u);else if(Kf.call(a.represent,u))i=a.represent[u](e,u);else throw new He("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}function Mt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,yf(t,r,!1)||yf(t,r,!0);var a=Vf.call(t.dump),u=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var c=a==="[object Object]"||a==="[object Array]",f,h;if(c&&(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(c&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(cS(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(lS(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?gf(t,e-1,t.dump,n):gf(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(uS(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&sS(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new He("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function hS(t,e){var r=[],i=[],n,s;for(Ia(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Ia(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)Ia(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Ia(t[i[n]],e,r)}function fS(t,e){e=e||{};var r=new eS(e);r.noRefs||hS(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Mt(r,0,i,!0,!0)?r.dump+`
|
40
|
+
`:""}var pS=fS,dS={dump:pS};function qa(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var mS=Oe,gS=bf,yS=Af,ES=Ff,DS=Of,bS=Ma,_S=Yf.load,wS=Yf.loadAll,SS=dS.dump,AS=He,vS={binary:Pf,float:Rf,map:Sf,null:vf,pairs:Nf,set:Mf,timestamp:Lf,bool:Cf,int:xf,merge:Bf,omap:If,seq:wf,str:_f},CS=qa("safeLoad","load"),xS=qa("safeLoadAll","loadAll"),RS=qa("safeDump","dump"),FS={Type:mS,Schema:gS,FAILSAFE_SCHEMA:yS,JSON_SCHEMA:ES,CORE_SCHEMA:DS,DEFAULT_SCHEMA:bS,load:_S,loadAll:wS,dump:SS,YAMLException:AS,types:vS,safeLoad:CS,safeLoadAll:xS,safeDump:RS},Ua=FS;var HC=J(Ns());var ne={};t_(ne,{bold:()=>PC,dimmed:()=>IC,error:()=>Qm,info:()=>BC,item:()=>NC,log:()=>bi,turboBlue:()=>Ei,turboGradient:()=>LC,turboLoader:()=>Jm,turboRed:()=>Km,warn:()=>Xm,yellow:()=>Zm});var Di=J(require("chalk")),zm=J(require("ora")),Wm=J(require("gradient-string")),Ym="#0099F7",Vm="#F11712",TC="#FFFF00",LC=(0,Wm.default)(Ym,Vm),Ei=Di.default.hex(Ym),Km=Di.default.hex(Vm),Zm=Di.default.hex(TC),Jm=t=>(0,zm.default)({text:t,spinner:{frames:[" ",Ei("> "),Ei(">> "),Ei(">>>")]}}),BC=(...t)=>{bi(Ei.bold(">>>"),...t)},PC=(...t)=>{bi(Di.default.bold(...t))},IC=(...t)=>{bi(Di.default.dim(...t))},NC=(...t)=>{bi(Ei.bold(" \u2022"),...t)},bi=(...t)=>{console.log(...t)},Xm=(...t)=>{console.error(Zm.bold(">>>"),...t)},Qm=(...t)=>{console.error(Km.bold(">>>"),...t)};var Ig=J(require("os")),Ng=J(Fi());async function hr(t,e=[],r){let i={cwd:Ig.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,Ng.default)(t,e,i);return n.trim()}catch{return}}async function Gl(){let[t,e,r,i]=await Promise.all([hr("yarnpkg",["--version"]),hr("npm",["--version"]),hr("pnpm",["--version"]),hr("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}async function zl(){let[t,e,r,i]=await Promise.all([hr("yarnpkg",["global","bin"]),hr("npm",["config","get","prefix"]),hr("pnpm",["bin","--global"]),hr("bun",["pm","--g","bin"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var PR=J(require("fs-extra"));var IR=J(require("path")),NR=J(require("fs-extra")),MR=J(require("chalk"));var ID=require("stream"),ND=require("util"),bk=require("path"),_k=require("os"),MD=require("fs"),wk=J(PD());var yI=(0,ND.promisify)(ID.Stream.pipeline);var jD=require("fs-extra");var Tk=J(require("path")),Lk=J(WD()),Bk=J(require("chalk")),kh=require("fs-extra");var Kb=require("commander");var ia={name:"@turbo/codemod",version:"1.10.17-canary.1",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var on=J(require("os")),Gb=require("child_process"),$e=J(require("chalk")),zb=require("inquirer");var nn=J(require("chalk"),1),ab=J(require("ora"),1),ub=J(require("gradient-string"),1);var kT=J(Fi(),1),JI=require("fs-extra");var rN=J(Ns(),1),nN=require("fs-extra"),oN=require("fs-extra"),uN=require("chalk"),pb=require("stream"),db=require("util"),fN=require("fs-extra"),gN=require("chalk"),EN=require("fs-extra"),Qr=J(require("path"),1),qe=require("fs-extra"),mb=J(Fi(),1),gb=J(require("path"),1),yb=require("fs-extra"),Eb=J(require("chalk"),1),rr=J(require("path"),1),Db=J(Fi(),1),rt=require("fs-extra"),bb=J(Ns(),1);var Wn=J(require("path"),1),Tt=require("fs-extra"),tn=J(require("path"),1),Lt=require("fs-extra"),Yn=J(require("path"),1),Bt=require("fs-extra"),fL=J(require("chalk"),1),pL=J(require("gradient-string"),1),dL=J(Fi(),1),mL=J(require("ora"),1),gL=require("semver"),yL=J(require("chalk"),1),Ik=Object.create,Bh=Object.defineProperty,Nk=Object.getOwnPropertyDescriptor,Mk=Object.getOwnPropertyNames,jk=Object.getPrototypeOf,$k=Object.prototype.hasOwnProperty,re=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Hk=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qk=(t,e)=>{for(var r in e)Bh(t,r,{get:e[r],enumerable:!0})},Uk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Mk(e))!$k.call(t,n)&&n!==r&&Bh(t,n,{get:()=>e[n],enumerable:!(i=Nk(e,n))||i.enumerable});return t},oa=(t,e,r)=>(r=t!=null?Ik(jk(t)):{},Uk(e||!t||!t.__esModule?Bh(r,"default",{value:t,enumerable:!0}):r,t)),V=Hk(()=>{}),Gk=ee((t,e)=>{V();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),zk=ee((t,e)=>{V();var r=Gk().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},s=Object.prototype,o=s.hasOwnProperty,a=Object.defineProperty||function(D,A,N){D[A]=N.value},u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(D,A,N){return Object.defineProperty(D,A,{value:N,enumerable:!0,configurable:!0,writable:!0}),D[A]}try{h({},"")}catch{h=function(D,A,N){return D[A]=N}}function p(D,A,N,Y){var W=A&&A.prototype instanceof g?A:g,E=Object.create(W.prototype),y=new I(Y||[]);return a(E,"_invoke",{value:M(D,N,y)}),E}function d(D,A,N){try{return{type:"normal",arg:D.call(A,N)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=p;var m={};function g(){}function v(){}function F(){}var k={};h(k,l,function(){return this});var O=Object.getPrototypeOf,R=O&&O(O(j([])));R&&R!==s&&o.call(R,l)&&(k=R);var B=F.prototype=g.prototype=Object.create(k);function _(D){["next","throw","return"].forEach(function(A){h(D,A,function(N){return this._invoke(A,N)})})}function S(D,A){function N(W,E,y,b){var P=d(D[W],D,E);if(P.type!=="throw"){var C=P.arg,q=C.value;return q&&r(q)=="object"&&o.call(q,"__await")?A.resolve(q.__await).then(function(H){N("next",H,y,b)},function(H){N("throw",H,y,b)}):A.resolve(q).then(function(H){C.value=H,y(C)},function(H){return N("throw",H,y,b)})}b(P.arg)}var Y;a(this,"_invoke",{value:function(W,E){function y(){return new A(function(b,P){N(W,E,b,P)})}return Y=Y?Y.then(y,y):y()}})}function M(D,A,N){var Y="suspendedStart";return function(W,E){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(W==="throw")throw E;return x()}for(N.method=W,N.arg=E;;){var y=N.delegate;if(y){var b=U(y,N);if(b){if(b===m)continue;return b}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(Y==="suspendedStart")throw Y="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);Y="executing";var P=d(D,A,N);if(P.type==="normal"){if(Y=N.done?"completed":"suspendedYield",P.arg===m)continue;return{value:P.arg,done:N.done}}P.type==="throw"&&(Y="completed",N.method="throw",N.arg=P.arg)}}}function U(D,A){var N=A.method,Y=D.iterator[N];if(Y===void 0)return A.delegate=null,N==="throw"&&D.iterator.return&&(A.method="return",A.arg=void 0,U(D,A),A.method==="throw")||N!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+N+"' method")),m;var W=d(Y,D.iterator,A.arg);if(W.type==="throw")return A.method="throw",A.arg=W.arg,A.delegate=null,m;var E=W.arg;return E?E.done?(A[D.resultName]=E.value,A.next=D.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,m):E:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,m)}function L(D){var A={tryLoc:D[0]};1 in D&&(A.catchLoc=D[1]),2 in D&&(A.finallyLoc=D[2],A.afterLoc=D[3]),this.tryEntries.push(A)}function T(D){var A=D.completion||{};A.type="normal",delete A.arg,D.completion=A}function I(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(L,this),this.reset(!0)}function j(D){if(D){var A=D[l];if(A)return A.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var N=-1,Y=function W(){for(;++N<D.length;)if(o.call(D,N))return W.value=D[N],W.done=!1,W;return W.value=void 0,W.done=!0,W};return Y.next=Y}}return{next:x}}function x(){return{value:void 0,done:!0}}return v.prototype=F,a(B,"constructor",{value:F,configurable:!0}),a(F,"constructor",{value:v,configurable:!0}),v.displayName=h(F,f,"GeneratorFunction"),n.isGeneratorFunction=function(D){var A=typeof D=="function"&&D.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},n.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,h(D,f,"GeneratorFunction")),D.prototype=Object.create(B),D},n.awrap=function(D){return{__await:D}},_(S.prototype),h(S.prototype,c,function(){return this}),n.AsyncIterator=S,n.async=function(D,A,N,Y,W){W===void 0&&(W=Promise);var E=new S(p(D,A,N,Y),W);return n.isGeneratorFunction(A)?E:E.next().then(function(y){return y.done?y.value:E.next()})},_(B),h(B,f,"Generator"),h(B,l,function(){return this}),h(B,"toString",function(){return"[object Generator]"}),n.keys=function(D){var A=Object(D),N=[];for(var Y in A)N.push(Y);return N.reverse(),function W(){for(;N.length;){var E=N.pop();if(E in A)return W.value=E,W.done=!1,W}return W.done=!0,W}},n.values=j,I.prototype={constructor:I,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!D)for(var A in this)A.charAt(0)==="t"&&o.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var A=this;function N(P,C){return E.type="throw",E.arg=D,A.next=P,C&&(A.method="next",A.arg=void 0),!!C}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var W=this.tryEntries[Y],E=W.completion;if(W.tryLoc==="root")return N("end");if(W.tryLoc<=this.prev){var y=o.call(W,"catchLoc"),b=o.call(W,"finallyLoc");if(y&&b){if(this.prev<W.catchLoc)return N(W.catchLoc,!0);if(this.prev<W.finallyLoc)return N(W.finallyLoc)}else if(y){if(this.prev<W.catchLoc)return N(W.catchLoc,!0)}else{if(!b)throw new Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return N(W.finallyLoc)}}}},abrupt:function(D,A){for(var N=this.tryEntries.length-1;N>=0;--N){var Y=this.tryEntries[N];if(Y.tryLoc<=this.prev&&o.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var W=Y;break}}W&&(D==="break"||D==="continue")&&W.tryLoc<=A&&A<=W.finallyLoc&&(W=null);var E=W?W.completion:{};return E.type=D,E.arg=A,W?(this.method="next",this.next=W.finallyLoc,m):this.complete(E)},complete:function(D,A){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&A&&(this.next=A),m},finish:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===D)return this.complete(N.completion,N.afterLoc),T(N),m}},catch:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===D){var Y=N.completion;if(Y.type==="throw"){var W=Y.arg;T(N)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(D,A,N){return this.delegate={iterator:j(D),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=void 0),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),Wk=ee((t,e)=>{V();var r=zk()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),Yk=ee((t,e)=>{"use strict";V();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),Vk=ee((t,e)=>{"use strict";V();var r=Yk(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(f,h,...p)=>{o++;let d=r(f,...p);h(d),d.then(a,a)},l=(f,h,...p)=>{o<n?u(f,h,...p):s.push(u.bind(null,f,h,...p))},c=(f,...h)=>new Promise(p=>l(f,p,...h));return Object.defineProperties(c,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),c};e.exports=i,e.exports.default=i}),Kk=ee((t,e)=>{"use strict";V();var r=Vk(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,l)=>{l={concurrency:1/0,preserveOrder:!0,...l};let c=r(l.concurrency),f=[...a].map(p=>[p,c(n,p,u)]),h=r(l.preserveOrder?1:1/0);try{await Promise.all(f.map(p=>h(s,p)))}catch(p){if(p instanceof i)return p.value;throw p}};e.exports=o,e.exports.default=o}),Zk=ee((t,e)=>{"use strict";V();var r=re("path"),i=re("fs"),{promisify:n}=re("util"),s=Kk(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function l({type:f}){if(!(f in u))throw new Error(`Invalid type specified: ${f}`)}var c=(f,h)=>f===void 0||h[u[f]]();e.exports=async(f,h)=>{h={cwd:process.cwd(),type:"file",allowSymlinks:!0,...h},l(h);let p=h.allowSymlinks?o:a;return s(f,async d=>{try{let m=await p(r.resolve(h.cwd,d));return c(h.type,m)}catch{return!1}},h)},e.exports.sync=(f,h)=>{h={cwd:process.cwd(),allowSymlinks:!0,type:"file",...h},l(h);let p=h.allowSymlinks?i.statSync:i.lstatSync;for(let d of f)try{let m=p(r.resolve(h.cwd,d));if(c(h.type,m))return d}catch{}}}),Jk=ee((t,e)=>{"use strict";V();var r=re("fs"),{promisify:i}=re("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),Xk=ee((t,e)=>{"use strict";V();var r=re("path"),i=Zk(),n=Jk(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:l}=r.parse(u),c=[].concat(o),f=async h=>{if(typeof o!="function")return i(c,h);let p=await o(h.cwd);return typeof p=="string"?i([p],h):p};for(;;){let h=await f({...a,cwd:u});if(h===s)return;if(h)return r.resolve(u,h);if(u===l)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:l}=r.parse(u),c=[].concat(o),f=h=>{if(typeof o!="function")return i.sync(c,h);let p=o(h.cwd);return typeof p=="string"?i.sync([p],h):p};for(;;){let h=f({...a,cwd:u});if(h===s)return;if(h)return r.resolve(u,h);if(u===l)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),Vn=ee((t,e)=>{"use strict";V();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Ph=ee((t,e)=>{"use strict";V();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=re("events"),n=re("stream"),s=re("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),f=Symbol("closed"),h=Symbol("read"),p=Symbol("flush"),d=Symbol("flushChunk"),m=Symbol("encoding"),g=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),k=Symbol("resume"),O=Symbol("buffer"),R=Symbol("pipes"),B=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),M=Symbol("objectMode"),U=Symbol("destroyed"),L=Symbol("emitData"),T=Symbol("emitEnd"),I=Symbol("emitEnd2"),j=Symbol("async"),x=P=>Promise.resolve().then(P),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",A=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),N=D&&Symbol.iterator||Symbol("iterator not implemented"),Y=P=>P==="end"||P==="finish"||P==="prefinish",W=P=>P instanceof ArrayBuffer||typeof P=="object"&&P.constructor&&P.constructor.name==="ArrayBuffer"&&P.byteLength>=0,E=P=>!Buffer.isBuffer(P)&&ArrayBuffer.isView(P),y=class{constructor(P,C,q){this.src=P,this.dest=C,this.opts=q,this.ondrain=()=>P[k](),C.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},b=class extends y{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(P,C,q){super(P,C,q),this.proxyErrors=H=>C.emit("error",H),P.on("error",this.proxyErrors)}};e.exports=class VD extends n{constructor(C){super(),this[v]=!1,this[F]=!1,this[R]=[],this[O]=[],this[M]=C&&C.objectMode||!1,this[M]?this[m]=null:this[m]=C&&C.encoding||null,this[m]==="buffer"&&(this[m]=null),this[j]=C&&!!C.async||!1,this[g]=this[m]?new s(this[m]):null,this[o]=!1,this[u]=!1,this[l]=!1,this[f]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[B]=0,this[U]=!1,C&&C.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[O]}),C&&C.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[R]})}get bufferLength(){return this[B]}get encoding(){return this[m]}set encoding(C){if(this[M])throw new Error("cannot set encoding in objectMode");if(this[m]&&C!==this[m]&&(this[g]&&this[g].lastNeed||this[B]))throw new Error("cannot change encoding");this[m]!==C&&(this[g]=C?new s(C):null,this[O].length&&(this[O]=this[O].map(q=>this[g].write(q)))),this[m]=C}setEncoding(C){this.encoding=C}get objectMode(){return this[M]}set objectMode(C){this[M]=this[M]||!!C}get async(){return this[j]}set async(C){this[j]=this[j]||!!C}write(C,q,H){if(this[o])throw new Error("write after end");if(this[U])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof q=="function"&&(H=q,q="utf8"),q||(q="utf8");let Z=this[j]?x:G=>G();return!this[M]&&!Buffer.isBuffer(C)&&(E(C)?C=Buffer.from(C.buffer,C.byteOffset,C.byteLength):W(C)?C=Buffer.from(C):typeof C!="string"&&(this.objectMode=!0)),this[M]?(this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[_](C),this[B]!==0&&this.emit("readable"),H&&Z(H),this.flowing):C.length?(typeof C=="string"&&!(q===this[m]&&!this[g].lastNeed)&&(C=Buffer.from(C,q)),Buffer.isBuffer(C)&&this[m]&&(C=this[g].write(C)),this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[_](C),this[B]!==0&&this.emit("readable"),H&&Z(H),this.flowing):(this[B]!==0&&this.emit("readable"),H&&Z(H),this.flowing)}read(C){if(this[U])return null;if(this[B]===0||C===0||C>this[B])return this[a](),null;this[M]&&(C=null),this[O].length>1&&!this[M]&&(this.encoding?this[O]=[this[O].join("")]:this[O]=[Buffer.concat(this[O],this[B])]);let q=this[h](C||null,this[O][0]);return this[a](),q}[h](C,q){return C===q.length||C===null?this[S]():(this[O][0]=q.slice(C),q=q.slice(0,C),this[B]-=C),this.emit("data",q),!this[O].length&&!this[o]&&this.emit("drain"),q}end(C,q,H){return typeof C=="function"&&(H=C,C=null),typeof q=="function"&&(H=q,q="utf8"),C&&this.write(C,q),H&&this.once("end",H),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[a](),this}[k](){this[U]||(this[F]=!1,this[v]=!0,this.emit("resume"),this[O].length?this[p]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[U]}get flowing(){return this[v]}get paused(){return this[F]}[_](C){this[M]?this[B]+=1:this[B]+=C.length,this[O].push(C)}[S](){return this[O].length&&(this[M]?this[B]-=1:this[B]-=this[O][0].length),this[O].shift()}[p](C){do;while(this[d](this[S]()));!C&&!this[O].length&&!this[o]&&this.emit("drain")}[d](C){return C?(this.emit("data",C),this.flowing):!1}pipe(C,q){if(this[U])return;let H=this[u];return q=q||{},C===r.stdout||C===r.stderr?q.end=!1:q.end=q.end!==!1,q.proxyErrors=!!q.proxyErrors,H?q.end&&C.end():(this[R].push(q.proxyErrors?new b(this,C,q):new y(this,C,q)),this[j]?x(()=>this[k]()):this[k]()),C}unpipe(C){let q=this[R].find(H=>H.dest===C);q&&(this[R].splice(this[R].indexOf(q),1),q.unpipe())}addListener(C,q){return this.on(C,q)}on(C,q){let H=super.on(C,q);return C==="data"&&!this[R].length&&!this.flowing?this[k]():C==="readable"&&this[B]!==0?super.emit("readable"):Y(C)&&this[u]?(super.emit(C),this.removeAllListeners(C)):C==="error"&&this[c]&&(this[j]?x(()=>q.call(this,this[c])):q.call(this,this[c])),H}get emittedEnd(){return this[u]}[a](){!this[l]&&!this[u]&&!this[U]&&this[O].length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[l]=!1)}emit(C,q,...H){if(C!=="error"&&C!=="close"&&C!==U&&this[U])return;if(C==="data")return q?this[j]?x(()=>this[L](q)):this[L](q):!1;if(C==="end")return this[T]();if(C==="close"){if(this[f]=!0,!this[u]&&!this[U])return;let G=super.emit("close");return this.removeAllListeners("close"),G}else if(C==="error"){this[c]=q;let G=super.emit("error",q);return this[a](),G}else if(C==="resume"){let G=super.emit("resume");return this[a](),G}else if(C==="finish"||C==="prefinish"){let G=super.emit(C);return this.removeAllListeners(C),G}let Z=super.emit(C,q,...H);return this[a](),Z}[L](C){for(let H of this[R])H.dest.write(C)===!1&&this.pause();let q=super.emit("data",C);return this[a](),q}[T](){this[u]||(this[u]=!0,this.readable=!1,this[j]?x(()=>this[I]()):this[I]())}[I](){if(this[g]){let q=this[g].end();if(q){for(let H of this[R])H.dest.write(q);super.emit("data",q)}}for(let q of this[R])q.end();let C=super.emit("end");return this.removeAllListeners("end"),C}collect(){let C=[];this[M]||(C.dataLength=0);let q=this.promise();return this.on("data",H=>{C.push(H),this[M]||(C.dataLength+=H.length)}),q.then(()=>C)}concat(){return this[M]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(C=>this[M]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?C.join(""):Buffer.concat(C,C.dataLength))}promise(){return new Promise((C,q)=>{this.on(U,()=>q(new Error("stream destroyed"))),this.on("error",H=>q(H)),this.on("end",()=>C())})}[A](){return{next:()=>{let C=this.read();if(C!==null)return Promise.resolve({done:!1,value:C});if(this[o])return Promise.resolve({done:!0});let q=null,H=null,Z=ie=>{this.removeListener("data",G),this.removeListener("end",te),H(ie)},G=ie=>{this.removeListener("error",Z),this.removeListener("end",te),this.pause(),q({value:ie,done:!!this[o]})},te=()=>{this.removeListener("error",Z),this.removeListener("data",G),q({done:!0})},z=()=>Z(new Error("stream destroyed"));return new Promise((ie,ce)=>{H=ce,q=ie,this.once(U,z),this.once("error",Z),this.once("end",te),this.once("data",G)})}}}[N](){return{next:()=>{let C=this.read();return{value:C,done:C===null}}}}destroy(C){return this[U]?(C?this.emit("error",C):this.emit(U),this):(this[U]=!0,this[O].length=0,this[B]=0,typeof this.close=="function"&&!this[f]&&this.close(),C?this.emit("error",C):this.emit(U),this)}static isStream(C){return!!C&&(C instanceof VD||C instanceof n||C instanceof i&&(typeof C.pipe=="function"||typeof C.write=="function"&&typeof C.end=="function"))}}}),Qk=ee((t,e)=>{V();var r=re("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),KD=ee((t,e)=>{"use strict";V();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=re("events"),n=re("stream"),s=re("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),f=Symbol("closed"),h=Symbol("read"),p=Symbol("flush"),d=Symbol("flushChunk"),m=Symbol("encoding"),g=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),k=Symbol("resume"),O=Symbol("bufferLength"),R=Symbol("bufferPush"),B=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),M=Symbol("emitData"),U=Symbol("emitEnd"),L=Symbol("emitEnd2"),T=Symbol("async"),I=y=>Promise.resolve().then(y),j=global._MP_NO_ITERATOR_SYMBOLS_!=="1",x=j&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),D=j&&Symbol.iterator||Symbol("iterator not implemented"),A=y=>y==="end"||y==="finish"||y==="prefinish",N=y=>y instanceof ArrayBuffer||typeof y=="object"&&y.constructor&&y.constructor.name==="ArrayBuffer"&&y.byteLength>=0,Y=y=>!Buffer.isBuffer(y)&&ArrayBuffer.isView(y),W=class{constructor(y,b,P){this.src=y,this.dest=b,this.opts=P,this.ondrain=()=>y[k](),b.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends W{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(y,b,P){super(y,b,P),this.proxyErrors=C=>b.emit("error",C),y.on("error",this.proxyErrors)}};e.exports=class ZD extends n{constructor(b){super(),this[v]=!1,this[F]=!1,this.pipes=[],this.buffer=[],this[_]=b&&b.objectMode||!1,this[_]?this[m]=null:this[m]=b&&b.encoding||null,this[m]==="buffer"&&(this[m]=null),this[T]=b&&!!b.async||!1,this[g]=this[m]?new s(this[m]):null,this[o]=!1,this[u]=!1,this[l]=!1,this[f]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[O]=0,this[S]=!1}get bufferLength(){return this[O]}get encoding(){return this[m]}set encoding(b){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[m]&&b!==this[m]&&(this[g]&&this[g].lastNeed||this[O]))throw new Error("cannot change encoding");this[m]!==b&&(this[g]=b?new s(b):null,this.buffer.length&&(this.buffer=this.buffer.map(P=>this[g].write(P)))),this[m]=b}setEncoding(b){this.encoding=b}get objectMode(){return this[_]}set objectMode(b){this[_]=this[_]||!!b}get async(){return this[T]}set async(b){this[T]=this[T]||!!b}write(b,P,C){if(this[o])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof P=="function"&&(C=P,P="utf8"),P||(P="utf8");let q=this[T]?I:H=>H();return!this[_]&&!Buffer.isBuffer(b)&&(Y(b)?b=Buffer.from(b.buffer,b.byteOffset,b.byteLength):N(b)?b=Buffer.from(b):typeof b!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",b):this[R](b),this[O]!==0&&this.emit("readable"),C&&q(C),this.flowing):b.length?(typeof b=="string"&&!(P===this[m]&&!this[g].lastNeed)&&(b=Buffer.from(b,P)),Buffer.isBuffer(b)&&this[m]&&(b=this[g].write(b)),this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",b):this[R](b),this[O]!==0&&this.emit("readable"),C&&q(C),this.flowing):(this[O]!==0&&this.emit("readable"),C&&q(C),this.flowing)}read(b){if(this[S])return null;if(this[O]===0||b===0||b>this[O])return this[a](),null;this[_]&&(b=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[O])]);let P=this[h](b||null,this.buffer[0]);return this[a](),P}[h](b,P){return b===P.length||b===null?this[B]():(this.buffer[0]=P.slice(b),P=P.slice(0,b),this[O]-=b),this.emit("data",P),!this.buffer.length&&!this[o]&&this.emit("drain"),P}end(b,P,C){return typeof b=="function"&&(C=b,b=null),typeof P=="function"&&(C=P,P="utf8"),b&&this.write(b,P),C&&this.once("end",C),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[a](),this}[k](){this[S]||(this[F]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[p]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[S]}get flowing(){return this[v]}get paused(){return this[F]}[R](b){this[_]?this[O]+=1:this[O]+=b.length,this.buffer.push(b)}[B](){return this.buffer.length&&(this[_]?this[O]-=1:this[O]-=this.buffer[0].length),this.buffer.shift()}[p](b){do;while(this[d](this[B]()));!b&&!this.buffer.length&&!this[o]&&this.emit("drain")}[d](b){return b?(this.emit("data",b),this.flowing):!1}pipe(b,P){if(this[S])return;let C=this[u];return P=P||{},b===r.stdout||b===r.stderr?P.end=!1:P.end=P.end!==!1,P.proxyErrors=!!P.proxyErrors,C?P.end&&b.end():(this.pipes.push(P.proxyErrors?new E(this,b,P):new W(this,b,P)),this[T]?I(()=>this[k]()):this[k]()),b}unpipe(b){let P=this.pipes.find(C=>C.dest===b);P&&(this.pipes.splice(this.pipes.indexOf(P),1),P.unpipe())}addListener(b,P){return this.on(b,P)}on(b,P){let C=super.on(b,P);return b==="data"&&!this.pipes.length&&!this.flowing?this[k]():b==="readable"&&this[O]!==0?super.emit("readable"):A(b)&&this[u]?(super.emit(b),this.removeAllListeners(b)):b==="error"&&this[c]&&(this[T]?I(()=>P.call(this,this[c])):P.call(this,this[c])),C}get emittedEnd(){return this[u]}[a](){!this[l]&&!this[u]&&!this[S]&&this.buffer.length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[f]&&this.emit("close"),this[l]=!1)}emit(b,P,...C){if(b!=="error"&&b!=="close"&&b!==S&&this[S])return;if(b==="data")return P?this[T]?I(()=>this[M](P)):this[M](P):!1;if(b==="end")return this[U]();if(b==="close"){if(this[f]=!0,!this[u]&&!this[S])return;let H=super.emit("close");return this.removeAllListeners("close"),H}else if(b==="error"){this[c]=P;let H=super.emit("error",P);return this[a](),H}else if(b==="resume"){let H=super.emit("resume");return this[a](),H}else if(b==="finish"||b==="prefinish"){let H=super.emit(b);return this.removeAllListeners(b),H}let q=super.emit(b,P,...C);return this[a](),q}[M](b){for(let C of this.pipes)C.dest.write(b)===!1&&this.pause();let P=super.emit("data",b);return this[a](),P}[U](){this[u]||(this[u]=!0,this.readable=!1,this[T]?I(()=>this[L]()):this[L]())}[L](){if(this[g]){let P=this[g].end();if(P){for(let C of this.pipes)C.dest.write(P);super.emit("data",P)}}for(let P of this.pipes)P.end();let b=super.emit("end");return this.removeAllListeners("end"),b}collect(){let b=[];this[_]||(b.dataLength=0);let P=this.promise();return this.on("data",C=>{b.push(C),this[_]||(b.dataLength+=C.length)}),P.then(()=>b)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(b=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?b.join(""):Buffer.concat(b,b.dataLength))}promise(){return new Promise((b,P)=>{this.on(S,()=>P(new Error("stream destroyed"))),this.on("error",C=>P(C)),this.on("end",()=>b())})}[x](){return{next:()=>{let b=this.read();if(b!==null)return Promise.resolve({done:!1,value:b});if(this[o])return Promise.resolve({done:!0});let P=null,C=null,q=te=>{this.removeListener("data",H),this.removeListener("end",Z),C(te)},H=te=>{this.removeListener("error",q),this.removeListener("end",Z),this.pause(),P({value:te,done:!!this[o]})},Z=()=>{this.removeListener("error",q),this.removeListener("data",H),P({done:!0})},G=()=>q(new Error("stream destroyed"));return new Promise((te,z)=>{C=z,P=te,this.once(S,G),this.once("error",q),this.once("end",Z),this.once("data",H)})}}}[D](){return{next:()=>{let b=this.read();return{value:b,done:b===null}}}}destroy(b){return this[S]?(b?this.emit("error",b):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[O]=0,typeof this.close=="function"&&!this[f]&&this.close(),b?this.emit("error",b):this.emit(S),this)}static isStream(b){return!!b&&(b instanceof ZD||b instanceof n||b instanceof i&&(typeof b.pipe=="function"||typeof b.write=="function"&&typeof b.end=="function"))}}}),JD=ee(t=>{"use strict";V();var e=re("assert"),r=re("buffer").Buffer,i=re("zlib"),n=t.constants=Qk(),s=KD(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(A){super("zlib: "+A.message),this.code=A.code,this.errno=A.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+A.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},l=Symbol("opts"),c=Symbol("flushFlag"),f=Symbol("finishFlushFlag"),h=Symbol("fullFlushFlag"),p=Symbol("handle"),d=Symbol("onError"),m=Symbol("sawError"),g=Symbol("level"),v=Symbol("strategy"),F=Symbol("ended"),k=Symbol("_defaultFullFlush"),O=class extends s{constructor(A,N){if(!A||typeof A!="object")throw new TypeError("invalid options for ZlibBase constructor");super(A),this[m]=!1,this[F]=!1,this[l]=A,this[c]=A.flush,this[f]=A.finishFlush;try{this[p]=new i[N](A)}catch(Y){throw new u(Y)}this[d]=Y=>{this[m]||(this[m]=!0,this.close(),this.emit("error",Y))},this[p].on("error",Y=>this[d](new u(Y))),this.once("end",()=>this.close)}close(){this[p]&&(this[p].close(),this[p]=null,this.emit("close"))}reset(){if(!this[m])return e(this[p],"zlib binding closed"),this[p].reset()}flush(A){this.ended||(typeof A!="number"&&(A=this[h]),this.write(Object.assign(r.alloc(0),{[c]:A})))}end(A,N,Y){return A&&this.write(A,N),this.flush(this[f]),this[F]=!0,super.end(null,null,Y)}get ended(){return this[F]}write(A,N,Y){if(typeof N=="function"&&(Y=N,N="utf8"),typeof A=="string"&&(A=r.from(A,N)),this[m])return;e(this[p],"zlib binding closed");let W=this[p]._handle,E=W.close;W.close=()=>{};let y=this[p].close;this[p].close=()=>{},r.concat=C=>C;let b;try{let C=typeof A[c]=="number"?A[c]:this[c];b=this[p]._processChunk(A,C),r.concat=o}catch(C){r.concat=o,this[d](new u(C))}finally{this[p]&&(this[p]._handle=W,W.close=E,this[p].close=y,this[p].removeAllListeners("error"))}this[p]&&this[p].on("error",C=>this[d](new u(C)));let P;if(b)if(Array.isArray(b)&&b.length>0){P=this[a](r.from(b[0]));for(let C=1;C<b.length;C++)P=this[a](b[C])}else P=this[a](r.from(b));return Y&&Y(),P}[a](A){return super.write(A)}},R=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.Z_NO_FLUSH,A.finishFlush=A.finishFlush||n.Z_FINISH,super(A,N),this[h]=n.Z_FULL_FLUSH,this[g]=A.level,this[v]=A.strategy}params(A,N){if(!this[m]){if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[g]!==A||this[v]!==N){this.flush(n.Z_SYNC_FLUSH),e(this[p],"zlib binding closed");let Y=this[p].flush;this[p].flush=(W,E)=>{this.flush(W),E()};try{this[p].params(A,N)}finally{this[p].flush=Y}this[p]&&(this[g]=A,this[v]=N)}}}},B=class extends R{constructor(A){super(A,"Deflate")}},_=class extends R{constructor(A){super(A,"Inflate")}},S=Symbol("_portable"),M=class extends R{constructor(A){super(A,"Gzip"),this[S]=A&&!!A.portable}[a](A){return this[S]?(this[S]=!1,A[9]=255,super[a](A)):super[a](A)}},U=class extends R{constructor(A){super(A,"Gunzip")}},L=class extends R{constructor(A){super(A,"DeflateRaw")}},T=class extends R{constructor(A){super(A,"InflateRaw")}},I=class extends R{constructor(A){super(A,"Unzip")}},j=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.BROTLI_OPERATION_PROCESS,A.finishFlush=A.finishFlush||n.BROTLI_OPERATION_FINISH,super(A,N),this[h]=n.BROTLI_OPERATION_FLUSH}},x=class extends j{constructor(A){super(A,"BrotliCompress")}},D=class extends j{constructor(A){super(A,"BrotliDecompress")}};t.Deflate=B,t.Inflate=_,t.Gzip=M,t.Gunzip=U,t.DeflateRaw=L,t.InflateRaw=T,t.Unzip=I,typeof i.BrotliCompress=="function"?(t.BrotliCompress=x,t.BrotliDecompress=D):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Kn=ee((t,e)=>{V();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Ih=ee((t,e)=>{"use strict";V();var r=Ph(),i=Kn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),XD=ee(t=>{"use strict";V(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),eT=ee((t,e)=>{"use strict";V();var r=(c,f)=>{if(Number.isSafeInteger(c))c<0?n(c,f):i(c,f);else throw Error("cannot encode number outside of javascript safe integer range");return f},i=(c,f)=>{f[0]=128;for(var h=f.length;h>1;h--)f[h-1]=c&255,c=Math.floor(c/256)},n=(c,f)=>{f[0]=255;var h=!1;c=c*-1;for(var p=f.length;p>1;p--){var d=c&255;c=Math.floor(c/256),h?f[p-1]=u(d):d===0?f[p-1]=0:(h=!0,f[p-1]=l(d))}},s=c=>{let f=c[0],h=f===128?a(c.slice(1,c.length)):f===255?o(c):null;if(h===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(h))throw Error("parsed number outside of javascript safe integer range");return h},o=c=>{for(var f=c.length,h=0,p=!1,d=f-1;d>-1;d--){var m=c[d],g;p?g=u(m):m===0?g=m:(p=!0,g=l(m)),g!==0&&(h-=g*Math.pow(256,f-d-1))}return h},a=c=>{for(var f=c.length,h=0,p=f-1;p>-1;p--){var d=c[p];d!==0&&(h+=d*Math.pow(256,f-p-1))}return h},u=c=>(255^c)&255,l=c=>(255^c)+1&255;e.exports={encode:r,parse:s}}),Zn=ee((t,e)=>{"use strict";V();var r=XD(),i=re("path").posix,n=eT(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(_,S,M,U){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(_)?this.decode(_,S||0,M,U):_&&this.set(_)}decode(_,S,M,U){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=l(_,S,100),this.mode=h(_,S+100,8),this.uid=h(_,S+108,8),this.gid=h(_,S+116,8),this.size=h(_,S+124,12),this.mtime=c(_,S+136,12),this.cksum=h(_,S+148,12),this[s](M),this[s](U,!0),this[o]=l(_,S+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=l(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=l(_,S+265,32),this.gname=l(_,S+297,32),this.devmaj=h(_,S+329,8),this.devmin=h(_,S+337,8),_[S+475]!==0){let T=l(_,S+345,155);this.path=T+"/"+this.path}else{let T=l(_,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=c(_,S+476,12),this.ctime=c(_,S+488,12)}let L=8*32;for(let T=S;T<S+148;T++)L+=_[T];for(let T=S+156;T<S+512;T++)L+=_[T];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[s](_,S){for(let M in _)_[M]!==null&&_[M]!==void 0&&!(S&&M==="path")&&(this[M]=_[M])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let M=this.ctime||this.atime?130:155,U=u(this.path||"",M),L=U[0],T=U[1];this.needPax=U[2],this.needPax=B(_,S,100,L)||this.needPax,this.needPax=g(_,S+100,8,this.mode)||this.needPax,this.needPax=g(_,S+108,8,this.uid)||this.needPax,this.needPax=g(_,S+116,8,this.gid)||this.needPax,this.needPax=g(_,S+124,12,this.size)||this.needPax,this.needPax=O(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[o].charCodeAt(0),this.needPax=B(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=B(_,S+265,32,this.uname)||this.needPax,this.needPax=B(_,S+297,32,this.gname)||this.needPax,this.needPax=g(_,S+329,8,this.devmaj)||this.needPax,this.needPax=g(_,S+337,8,this.devmin)||this.needPax,this.needPax=B(_,S+345,M,T)||this.needPax,_[S+475]!==0?this.needPax=B(_,S+345,155,T)||this.needPax:(this.needPax=B(_,S+345,130,T)||this.needPax,this.needPax=O(_,S+476,12,this.atime)||this.needPax,this.needPax=O(_,S+488,12,this.ctime)||this.needPax);let I=8*32;for(let j=S;j<S+148;j++)I+=_[j];for(let j=S+156;j<S+512;j++)I+=_[j];return this.cksum=I,g(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(_){r.code.has(_)?this[o]=r.code.get(_):this[o]=_}},u=(_,S)=>{let M=_,U="",L,T=i.parse(_).root||".";if(Buffer.byteLength(M)<100)L=[M,U,!1];else{U=i.dirname(M),M=i.basename(M);do Buffer.byteLength(M)<=100&&Buffer.byteLength(U)<=S?L=[M,U,!1]:Buffer.byteLength(M)>100&&Buffer.byteLength(U)<=S?L=[M.slice(0,100-1),U,!0]:(M=i.join(i.basename(U),M),U=i.dirname(U));while(U!==T&&!L);L||(L=[_.slice(0,100-1),"",!0])}return L},l=(_,S,M)=>_.slice(S,S+M).toString("utf8").replace(/\0.*/,""),c=(_,S,M)=>f(h(_,S,M)),f=_=>_===null?null:new Date(_*1e3),h=(_,S,M)=>_[S]&128?n.parse(_.slice(S,S+M)):d(_,S,M),p=_=>isNaN(_)?null:_,d=(_,S,M)=>p(parseInt(_.slice(S,S+M).toString("utf8").replace(/\0.*$/,"").trim(),8)),m={12:8589934591,8:2097151},g=(_,S,M,U)=>U===null?!1:U>m[M]||U<0?(n.encode(U,_.slice(S,S+M)),!0):(v(_,S,M,U),!1),v=(_,S,M,U)=>_.write(F(U,M),S,M,"ascii"),F=(_,S)=>k(Math.floor(_).toString(8),S),k=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",O=(_,S,M,U)=>U===null?!1:g(_,S,M,U.getTime()/1e3),R=new Array(156).join("\0"),B=(_,S,M,U)=>U===null?!1:(_.write(U+R,S,M,"utf8"),U.length!==Buffer.byteLength(U)||U.length>M);e.exports=a}),Nh=ee((t,e)=>{"use strict";V();var r=Zn(),i=re("path"),n=class{constructor(u,l){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=l||!1}encode(){let u=this.encodeBody();if(u==="")return null;let l=Buffer.byteLength(u),c=512*Math.ceil(1+l/512),f=Buffer.allocUnsafe(c);for(let h=0;h<512;h++)f[h]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:l,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(f),f.write(u,512,l,"utf8");for(let h=l+512;h<f.length;h++)f[h]=0;return f}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(u){if(this[u]===null||this[u]===void 0)return"";let l=this[u]instanceof Date?this[u].getTime()/1e3:this[u],c=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+l+`
|
41
|
+
`,f=Buffer.byteLength(c),h=Math.floor(Math.log(f)/Math.log(10))+1;return f+h>=Math.pow(10,h)&&(h+=1),h+f+c}};n.parse=(u,l,c)=>new n(s(o(u),l),c);var s=(u,l)=>l?Object.keys(u).reduce((c,f)=>(c[f]=u[f],c),l):u,o=u=>u.replace(/\n$/,"").split(`
|
42
|
+
`).reduce(a,Object.create(null)),a=(u,l)=>{let c=parseInt(l,10);if(c!==Buffer.byteLength(l)+1)return u;l=l.slice((c+" ").length);let f=l.split("="),h=f.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!h)return u;let p=f.join("=");return u[h]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(h)?new Date(p*1e3):/^[0-9]+$/.test(p)?+p:p,u};e.exports=n}),Jn=ee((t,e)=>{V(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),Mh=ee((t,e)=>{"use strict";V(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),QD=ee((t,e)=>{"use strict";V();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),eb=ee((t,e)=>{V();var{isAbsolute:r,parse:i}=re("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),tT=ee((t,e)=>{"use strict";V(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),tb=ee((t,e)=>{"use strict";V();var r=Ph(),i=Nh(),n=Zn(),s=re("fs"),o=re("path"),a=Kn(),u=Jn(),l=(y,b)=>b?(y=a(y).replace(/^\.(\/|$)/,""),u(b)+"/"+y):a(y),c=16*1024*1024,f=Symbol("process"),h=Symbol("file"),p=Symbol("directory"),d=Symbol("symlink"),m=Symbol("hardlink"),g=Symbol("header"),v=Symbol("read"),F=Symbol("lstat"),k=Symbol("onlstat"),O=Symbol("onread"),R=Symbol("onreadlink"),B=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),M=Symbol("mode"),U=Symbol("awaitDrain"),L=Symbol("ondrain"),T=Symbol("prefix"),I=Symbol("hadError"),j=Mh(),x=QD(),D=eb(),A=tT(),N=j(class extends r{constructor(y,b){if(b=b||{},super(b),typeof y!="string")throw new TypeError("path is required");this.path=a(y),this.portable=!!b.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=b.maxReadSize||c,this.linkCache=b.linkCache||new Map,this.statCache=b.statCache||new Map,this.preservePaths=!!b.preservePaths,this.cwd=a(b.cwd||process.cwd()),this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.mtime=b.mtime||null,this.prefix=b.prefix?a(b.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let P=!1;if(!this.preservePaths){let[C,q]=D(this.path);C&&(this.path=q,P=C)}this.win32=!!b.win32||process.platform==="win32",this.win32&&(this.path=x.decode(this.path.replace(/\\/g,"/")),y=y.replace(/\\/g,"/")),this.absolute=a(b.absolute||o.resolve(this.cwd,y)),this.path===""&&(this.path="./"),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+this.path}),this.statCache.has(this.absolute)?this[k](this.statCache.get(this.absolute)):this[F]()}emit(y,...b){return y==="error"&&(this[I]=!0),super.emit(y,...b)}[F](){s.lstat(this.absolute,(y,b)=>{if(y)return this.emit("error",y);this[k](b)})}[k](y){this.statCache.set(this.absolute,y),this.stat=y,y.isFile()||(y.size=0),this.type=E(y),this.emit("stat",y),this[f]()}[f](){switch(this.type){case"File":return this[h]();case"Directory":return this[p]();case"SymbolicLink":return this[d]();default:return this.end()}}[M](y){return A(y,this.type==="Directory",this.portable)}[T](y){return l(y,this.prefix)}[g](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[M](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[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)}[p](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[g](),this.end()}[d](){s.readlink(this.absolute,(y,b)=>{if(y)return this.emit("error",y);this[R](b)})}[R](y){this.linkpath=a(y),this[g](),this.end()}[m](y){this.type="Link",this.linkpath=a(o.relative(this.cwd,y)),this.stat.size=0,this[g](),this.end()}[h](){if(this.stat.nlink>1){let y=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(y)){let b=this.linkCache.get(y);if(b.indexOf(this.cwd)===0)return this[m](b)}this.linkCache.set(y,this.absolute)}if(this[g](),this.stat.size===0)return this.end();this[B]()}[B](){s.open(this.absolute,"r",(y,b)=>{if(y)return this.emit("error",y);this[_](b)})}[_](y){if(this.fd=y,this[I])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let b=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(b),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:y,buf:b,offset:P,length:C,pos:q}=this;s.read(y,b,P,C,q,(H,Z)=>{if(H)return this[S](()=>this.emit("error",H));this[O](Z)})}[S](y){s.close(this.fd,y)}[O](y){if(y<=0&&this.remain>0){let P=new Error("encountered unexpected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(y>this.remain){let P=new Error("did not encounter expected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(y===this.remain)for(let P=y;P<this.length&&y<this.blockRemain;P++)this.buf[P+this.offset]=0,y++,this.remain++;let b=this.offset===0&&y===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+y);this.write(b)?this[L]():this[U](()=>this[L]())}[U](y){this.once("drain",y)}write(y){if(this.blockRemain<y.length){let b=new Error("writing more data than expected");return b.path=this.absolute,this.emit("error",b)}return this.remain-=y.length,this.blockRemain-=y.length,this.pos+=y.length,this.offset+=y.length,super.write(y)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](y=>y?this.emit("error",y):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[v]()}}),Y=class extends N{[F](){this[k](s.lstatSync(this.absolute))}[d](){this[R](s.readlinkSync(this.absolute))}[B](){this[_](s.openSync(this.absolute,"r"))}[v](){let y=!0;try{let{fd:b,buf:P,offset:C,length:q,pos:H}=this,Z=s.readSync(b,P,C,q,H);this[O](Z),y=!1}finally{if(y)try{this[S](()=>{})}catch{}}}[U](y){y()}[S](y){s.closeSync(this.fd),y()}},W=j(class extends r{constructor(y,b){b=b||{},super(b),this.preservePaths=!!b.preservePaths,this.portable=!!b.portable,this.strict=!!b.strict,this.noPax=!!b.noPax,this.noMtime=!!b.noMtime,this.readEntry=y,this.type=y.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=b.prefix||null,this.path=a(y.path),this.mode=this[M](y.mode),this.uid=this.portable?null:y.uid,this.gid=this.portable?null:y.gid,this.uname=this.portable?null:y.uname,this.gname=this.portable?null:y.gname,this.size=y.size,this.mtime=this.noMtime?null:b.mtime||y.mtime,this.atime=this.portable?null:y.atime,this.ctime=this.portable?null:y.ctime,this.linkpath=a(y.linkpath),typeof b.onwarn=="function"&&this.on("warn",b.onwarn);let P=!1;if(!this.preservePaths){let[C,q]=D(this.path);C&&(this.path=q,P=C)}this.remain=y.size,this.blockRemain=y.startBlockSize,this.header=new n({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}),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[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),y.pipe(this)}[T](y){return l(y,this.prefix)}[M](y){return A(y,this.type==="Directory",this.portable)}write(y){let b=y.length;if(b>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=b,super.write(y)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});N.Sync=Y,N.Tar=W;var E=y=>y.isFile()?"File":y.isDirectory()?"Directory":y.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=N}),rT=ee((t,e)=>{"use strict";V(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),rb=ee((t,e)=>{"use strict";V(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(f){u.push(f)});else if(arguments.length>0)for(var l=0,c=arguments.length;l<c;l++)u.push(arguments[l]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,l=a.prev;return u&&(u.prev=l),l&&(l.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=l),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var l=this.head,c=0;l!==null;c++)a.call(u,l.value,c,this),l=l.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var l=this.tail,c=this.length-1;l!==null;c--)a.call(u,l.value,c,this),l=l.prev},r.prototype.get=function(a){for(var u=0,l=this.head;l!==null&&u<a;u++)l=l.next;if(u===a&&l!==null)return l.value},r.prototype.getReverse=function(a){for(var u=0,l=this.tail;l!==null&&u<a;u++)l=l.prev;if(u===a&&l!==null)return l.value},r.prototype.map=function(a,u){u=u||this;for(var l=new r,c=this.head;c!==null;)l.push(a.call(u,c.value,this)),c=c.next;return l},r.prototype.mapReverse=function(a,u){u=u||this;for(var l=new r,c=this.tail;c!==null;)l.push(a.call(u,c.value,this)),c=c.prev;return l},r.prototype.reduce=function(a,u){var l,c=this.head;if(arguments.length>1)l=u;else if(this.head)c=this.head.next,l=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;c!==null;f++)l=a(l,c.value,f),c=c.next;return l},r.prototype.reduceReverse=function(a,u){var l,c=this.tail;if(arguments.length>1)l=u;else if(this.tail)c=this.tail.prev,l=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;c!==null;f--)l=a(l,c.value,f),c=c.prev;return l},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,l=this.head;l!==null;u++)a[u]=l.value,l=l.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,l=this.tail;l!==null;u++)a[u]=l.value,l=l.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var l=new r;if(u<a||u<0)return l;a<0&&(a=0),u>this.length&&(u=this.length);for(var c=0,f=this.head;f!==null&&c<a;c++)f=f.next;for(;f!==null&&c<u;c++,f=f.next)l.push(f.value);return l},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var l=new r;if(u<a||u<0)return l;a<0&&(a=0),u>this.length&&(u=this.length);for(var c=this.length,f=this.tail;f!==null&&c>u;c--)f=f.prev;for(;f!==null&&c>a;c--,f=f.prev)l.push(f.value);return l},r.prototype.splice=function(a,u,...l){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var c=0,f=this.head;f!==null&&c<a;c++)f=f.next;for(var h=[],c=0;f&&c<u;c++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var c=0;c<l.length;c++)f=i(this,f,l[c]);return h},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,l=a;l!==null;l=l.prev){var c=l.prev;l.prev=l.next,l.next=c}return this.head=u,this.tail=a,this};function i(a,u,l){var c=u===a.head?new o(l,null,u,a):new o(l,u,u.next,a);return c.next===null&&(a.tail=c),c.prev===null&&(a.head=c),a.length++,c}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,l,c){if(!(this instanceof o))return new o(a,u,l,c);this.list=c,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,l?(l.prev=this,this.next=l):this.next=null}try{rT()(r)}catch{}}),jh=ee((t,e)=>{"use strict";V();var r=class{constructor(E,y){this.path=E||"./",this.absolute=y,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Ph(),n=JD(),s=Ih(),o=tb(),a=o.Sync,u=o.Tar,l=rb(),c=Buffer.alloc(1024),f=Symbol("onStat"),h=Symbol("ended"),p=Symbol("queue"),d=Symbol("current"),m=Symbol("process"),g=Symbol("processing"),v=Symbol("processJob"),F=Symbol("jobs"),k=Symbol("jobDone"),O=Symbol("addFSEntry"),R=Symbol("addTarEntry"),B=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),M=Symbol("pipe"),U=Symbol("entry"),L=Symbol("entryOpt"),T=Symbol("writeEntryClass"),I=Symbol("write"),j=Symbol("ondrain"),x=re("fs"),D=re("path"),A=Mh(),N=Kn(),Y=A(class extends i{constructor(E){super(E),E=E||Object.create(null),this.opt=E,this.file=E.file||"",this.cwd=E.cwd||process.cwd(),this.maxReadSize=E.maxReadSize,this.preservePaths=!!E.preservePaths,this.strict=!!E.strict,this.noPax=!!E.noPax,this.prefix=N(E.prefix||""),this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.readdirCache=E.readdirCache||new Map,this[T]=o,typeof E.onwarn=="function"&&this.on("warn",E.onwarn),this.portable=!!E.portable,this.zip=null,E.gzip?(typeof E.gzip!="object"&&(E.gzip={}),this.portable&&(E.gzip.portable=!0),this.zip=new n.Gzip(E.gzip),this.zip.on("data",y=>super.write(y)),this.zip.on("end",y=>super.end()),this.zip.on("drain",y=>this[j]()),this.on("resume",y=>this.zip.resume())):this.on("drain",this[j]),this.noDirRecurse=!!E.noDirRecurse,this.follow=!!E.follow,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.filter=typeof E.filter=="function"?E.filter:y=>!0,this[p]=new l,this[F]=0,this.jobs=+E.jobs||4,this[g]=!1,this[h]=!1}[I](E){return super.write(E)}add(E){return this.write(E),this}end(E){return E&&this.write(E),this[h]=!0,this[m](),this}write(E){if(this[h])throw new Error("write after end");return E instanceof s?this[R](E):this[O](E),this.flowing}[R](E){let y=N(D.resolve(this.cwd,E.path));if(!this.filter(E.path,E))E.resume();else{let b=new r(E.path,y,!1);b.entry=new u(E,this[L](b)),b.entry.on("end",P=>this[k](b)),this[F]+=1,this[p].push(b)}this[m]()}[O](E){let y=N(D.resolve(this.cwd,E));this[p].push(new r(E,y)),this[m]()}[B](E){E.pending=!0,this[F]+=1;let y=this.follow?"stat":"lstat";x[y](E.absolute,(b,P)=>{E.pending=!1,this[F]-=1,b?this.emit("error",b):this[f](E,P)})}[f](E,y){this.statCache.set(E.absolute,y),E.stat=y,this.filter(E.path,y)||(E.ignore=!0),this[m]()}[_](E){E.pending=!0,this[F]+=1,x.readdir(E.absolute,(y,b)=>{if(E.pending=!1,this[F]-=1,y)return this.emit("error",y);this[S](E,b)})}[S](E,y){this.readdirCache.set(E.absolute,y),E.readdir=y,this[m]()}[m](){if(!this[g]){this[g]=!0;for(let E=this[p].head;E!==null&&this[F]<this.jobs;E=E.next)if(this[v](E.value),E.value.ignore){let y=E.next;this[p].removeNode(E),E.next=y}this[g]=!1,this[h]&&!this[p].length&&this[F]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[d](){return this[p]&&this[p].head&&this[p].head.value}[k](E){this[p].shift(),this[F]-=1,this[m]()}[v](E){if(!E.pending){if(E.entry){E===this[d]&&!E.piped&&this[M](E);return}if(E.stat||(this.statCache.has(E.absolute)?this[f](E,this.statCache.get(E.absolute)):this[B](E)),!!E.stat&&!E.ignore&&!(!this.noDirRecurse&&E.stat.isDirectory()&&!E.readdir&&(this.readdirCache.has(E.absolute)?this[S](E,this.readdirCache.get(E.absolute)):this[_](E),!E.readdir))){if(E.entry=this[U](E),!E.entry){E.ignore=!0;return}E===this[d]&&!E.piped&&this[M](E)}}}[L](E){return{onwarn:(y,b,P)=>this.warn(y,b,P),noPax:this.noPax,cwd:this.cwd,absolute:E.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[U](E){this[F]+=1;try{return new this[T](E.path,this[L](E)).on("end",()=>this[k](E)).on("error",y=>this.emit("error",y))}catch(y){this.emit("error",y)}}[j](){this[d]&&this[d].entry&&this[d].entry.resume()}[M](E){E.piped=!0,E.readdir&&E.readdir.forEach(P=>{let C=E.path,q=C==="./"?"":C.replace(/\/*$/,"/");this[O](q+P)});let y=E.entry,b=this.zip;b?y.on("data",P=>{b.write(P)||y.pause()}):y.on("data",P=>{super.write(P)||y.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),W=class extends Y{constructor(E){super(E),this[T]=a}pause(){}resume(){}[B](E){let y=this.follow?"statSync":"lstatSync";this[f](E,x[y](E.absolute))}[_](E,y){this[S](E,x.readdirSync(E.absolute))}[M](E){let y=E.entry,b=this.zip;E.readdir&&E.readdir.forEach(P=>{let C=E.path,q=C==="./"?"":C.replace(/\/*$/,"/");this[O](q+P)}),b?y.on("data",P=>{b.write(P)}):y.on("data",P=>{super[I](P)})}};Y.Sync=W,e.exports=Y}),Xn=ee(t=>{"use strict";V();var e=KD(),r=re("events").EventEmitter,i=re("fs"),n=i.writev;if(!n){let E=process.binding("fs"),y=E.FSReqWrap||E.FSReqCallback;n=(b,P,C,q)=>{let H=(G,te)=>q(G,te,P),Z=new y;Z.oncomplete=H,E.writeBuffers(b,P,C,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),l=Symbol("_finished"),c=Symbol("_flags"),f=Symbol("_flush"),h=Symbol("_handleChunk"),p=Symbol("_makeBuf"),d=Symbol("_mode"),m=Symbol("_needDrain"),g=Symbol("_onerror"),v=Symbol("_onopen"),F=Symbol("_onread"),k=Symbol("_onwrite"),O=Symbol("_open"),R=Symbol("_path"),B=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),M=Symbol("_readSize"),U=Symbol("_reading"),L=Symbol("_remain"),T=Symbol("_size"),I=Symbol("_write"),j=Symbol("_writing"),x=Symbol("_defaultFlag"),D=Symbol("_errored"),A=class extends e{constructor(E,y){if(y=y||{},super(y),this.readable=!0,this.writable=!1,typeof E!="string")throw new TypeError("path must be a string");this[D]=!1,this[u]=typeof y.fd=="number"?y.fd:null,this[R]=E,this[M]=y.readSize||16*1024*1024,this[U]=!1,this[T]=typeof y.size=="number"?y.size:1/0,this[L]=this[T],this[s]=typeof y.autoClose=="boolean"?y.autoClose:!0,typeof this[u]=="number"?this[S]():this[O]()}get fd(){return this[u]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[O](){i.open(this[R],"r",(E,y)=>this[v](E,y))}[v](E,y){E?this[g](E):(this[u]=y,this.emit("open",y),this[S]())}[p](){return Buffer.allocUnsafe(Math.min(this[M],this[L]))}[S](){if(!this[U]){this[U]=!0;let E=this[p]();if(E.length===0)return process.nextTick(()=>this[F](null,0,E));i.read(this[u],E,0,E.length,null,(y,b,P)=>this[F](y,b,P))}}[F](E,y,b){this[U]=!1,E?this[g](E):this[h](y,b)&&this[S]()}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.close(E,y=>y?this.emit("error",y):this.emit("close"))}}[g](E){this[U]=!0,this[o](),this.emit("error",E)}[h](E,y){let b=!1;return this[L]-=E,E>0&&(b=super.write(E<y.length?y.slice(0,E):y)),(E===0||this[L]<=0)&&(b=!1,this[o](),super.end()),b}emit(E,y){switch(E){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[S]();break;case"error":return this[D]?void 0:(this[D]=!0,super.emit(E,y));default:return super.emit(E,y)}}},N=class extends A{[O](){let E=!0;try{this[v](null,i.openSync(this[R],"r")),E=!1}finally{E&&this[o]()}}[S](){let E=!0;try{if(!this[U]){this[U]=!0;do{let y=this[p](),b=y.length===0?0:i.readSync(this[u],y,0,y.length,null);if(!this[h](b,y))break}while(!0);this[U]=!1}E=!1}finally{E&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.closeSync(E),this.emit("close")}}},Y=class extends r{constructor(E,y){y=y||{},super(y),this.readable=!1,this.writable=!0,this[D]=!1,this[j]=!1,this[a]=!1,this[m]=!1,this[_]=[],this[R]=E,this[u]=typeof y.fd=="number"?y.fd:null,this[d]=y.mode===void 0?438:y.mode,this[B]=typeof y.start=="number"?y.start:null,this[s]=typeof y.autoClose=="boolean"?y.autoClose:!0;let b=this[B]!==null?"r+":"w";this[x]=y.flags===void 0,this[c]=this[x]?b:y.flags,this[u]===null&&this[O]()}emit(E,y){if(E==="error"){if(this[D])return;this[D]=!0}return super.emit(E,y)}get fd(){return this[u]}get path(){return this[R]}[g](E){this[o](),this[j]=!0,this.emit("error",E)}[O](){i.open(this[R],this[c],this[d],(E,y)=>this[v](E,y))}[v](E,y){this[x]&&this[c]==="r+"&&E&&E.code==="ENOENT"?(this[c]="w",this[O]()):E?this[g](E):(this[u]=y,this.emit("open",y),this[f]())}end(E,y){return E&&this.write(E,y),this[a]=!0,!this[j]&&!this[_].length&&typeof this[u]=="number"&&this[k](null,0),this}write(E,y){return typeof E=="string"&&(E=Buffer.from(E,y)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[j]||this[_].length?(this[_].push(E),this[m]=!0,!1):(this[j]=!0,this[I](E),!0)}[I](E){i.write(this[u],E,0,E.length,this[B],(y,b)=>this[k](y,b))}[k](E,y){E?this[g](E):(this[B]!==null&&(this[B]+=y),this[_].length?this[f]():(this[j]=!1,this[a]&&!this[l]?(this[l]=!0,this[o](),this.emit("finish")):this[m]&&(this[m]=!1,this.emit("drain"))))}[f](){if(this[_].length===0)this[a]&&this[k](null,0);else if(this[_].length===1)this[I](this[_].pop());else{let E=this[_];this[_]=[],n(this[u],E,this[B],(y,b)=>this[k](y,b))}}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.close(E,y=>y?this.emit("error",y):this.emit("close"))}}},W=class extends Y{[O](){let E;if(this[x]&&this[c]==="r+")try{E=i.openSync(this[R],this[c],this[d])}catch(y){if(y.code==="ENOENT")return this[c]="w",this[O]();throw y}else E=i.openSync(this[R],this[c],this[d]);this[v](null,E)}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.closeSync(E),this.emit("close")}}[I](E){let y=!0;try{this[k](null,i.writeSync(this[u],E,0,E.length,this[B])),y=!1}finally{if(y)try{this[o]()}catch{}}}};t.ReadStream=A,t.ReadStreamSync=N,t.WriteStream=Y,t.WriteStreamSync=W}),$h=ee((t,e)=>{"use strict";V();var r=Mh(),i=Zn(),n=re("events"),s=rb(),o=1024*1024,a=Ih(),u=Nh(),l=JD(),{nextTick:c}=re("process"),f=Buffer.from([31,139]),h=Symbol("state"),p=Symbol("writeEntry"),d=Symbol("readEntry"),m=Symbol("nextEntry"),g=Symbol("processEntry"),v=Symbol("extendedHeader"),F=Symbol("globalExtendedHeader"),k=Symbol("meta"),O=Symbol("emitMeta"),R=Symbol("buffer"),B=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),M=Symbol("emit"),U=Symbol("unzip"),L=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),I=Symbol("consumeBody"),j=Symbol("consumeMeta"),x=Symbol("consumeHeader"),D=Symbol("consuming"),A=Symbol("bufferConcat"),N=Symbol("maybeEnd"),Y=Symbol("writing"),W=Symbol("aborted"),E=Symbol("onDone"),y=Symbol("sawValidEntry"),b=Symbol("sawNullBlock"),P=Symbol("sawEOF"),C=Symbol("closeStream"),q=H=>!0;e.exports=r(class extends n{constructor(H){H=H||{},super(H),this.file=H.file||"",this[y]=null,this.on(E,Z=>{(this[h]==="begin"||this[y]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),H.ondone?this.on(E,H.ondone):this.on(E,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!H.strict,this.maxMetaEntrySize=H.maxMetaEntrySize||o,this.filter=typeof H.filter=="function"?H.filter:q,this.writable=!0,this.readable=!1,this[B]=new s,this[R]=null,this[d]=null,this[p]=null,this[h]="begin",this[k]="",this[v]=null,this[F]=null,this[_]=!1,this[U]=null,this[W]=!1,this[b]=!1,this[P]=!1,this.on("end",()=>this[C]()),typeof H.onwarn=="function"&&this.on("warn",H.onwarn),typeof H.onentry=="function"&&this.on("entry",H.onentry)}[x](H,Z){this[y]===null&&(this[y]=!1);let G;try{G=new i(H,Z,this[v],this[F])}catch(te){return this.warn("TAR_ENTRY_INVALID",te)}if(G.nullBlock)this[b]?(this[P]=!0,this[h]==="begin"&&(this[h]="header"),this[M]("eof")):(this[b]=!0,this[M]("nullBlock"));else if(this[b]=!1,!G.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:G});else if(!G.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:G});else{let te=G.type;if(/^(Symbolic)?Link$/.test(te)&&!G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:G});else if(!/^(Symbolic)?Link$/.test(te)&&G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:G});else{let z=this[p]=new a(G,this[v],this[F]);if(!this[y])if(z.remain){let ie=()=>{z.invalid||(this[y]=!0)};z.on("end",ie)}else this[y]=!0;z.meta?z.size>this.maxMetaEntrySize?(z.ignore=!0,this[M]("ignoredEntry",z),this[h]="ignore",z.resume()):z.size>0&&(this[k]="",z.on("data",ie=>this[k]+=ie),this[h]="meta"):(this[v]=null,z.ignore=z.ignore||!this.filter(z.path,z),z.ignore?(this[M]("ignoredEntry",z),this[h]=z.remain?"ignore":"header",z.resume()):(z.remain?this[h]="body":(this[h]="header",z.end()),this[d]?this[B].push(z):(this[B].push(z),this[m]())))}}}[C](){c(()=>this.emit("close"))}[g](H){let Z=!0;return H?Array.isArray(H)?this.emit.apply(this,H):(this[d]=H,this.emit("entry",H),H.emittedEnd||(H.on("end",G=>this[m]()),Z=!1)):(this[d]=null,Z=!1),Z}[m](){do;while(this[g](this[B].shift()));if(!this[B].length){let H=this[d];!H||H.flowing||H.size===H.remain?this[Y]||this.emit("drain"):H.once("drain",Z=>this.emit("drain"))}}[I](H,Z){let G=this[p],te=G.blockRemain,z=te>=H.length&&Z===0?H:H.slice(Z,Z+te);return G.write(z),G.blockRemain||(this[h]="header",this[p]=null,G.end()),z.length}[j](H,Z){let G=this[p],te=this[I](H,Z);return this[p]||this[O](G),te}[M](H,Z,G){!this[B].length&&!this[d]?this.emit(H,Z,G):this[B].push([H,Z,G])}[O](H){switch(this[M]("meta",this[k]),H.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[k],this[v],!1);break;case"GlobalExtendedHeader":this[F]=u.parse(this[k],this[F],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[k].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[k].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+H.type)}}abort(H){this[W]=!0,this.emit("abort",H),this.warn("TAR_ABORT",H,{recoverable:!1})}write(H){if(this[W])return;if(this[U]===null&&H){if(this[R]&&(H=Buffer.concat([this[R],H]),this[R]=null),H.length<f.length)return this[R]=H,!0;for(let G=0;this[U]===null&&G<f.length;G++)H[G]!==f[G]&&(this[U]=!1);if(this[U]===null){let G=this[_];this[_]=!1,this[U]=new l.Unzip,this[U].on("data",z=>this[L](z)),this[U].on("error",z=>this.abort(z)),this[U].on("end",z=>{this[_]=!0,this[L]()}),this[Y]=!0;let te=this[U][G?"end":"write"](H);return this[Y]=!1,te}}this[Y]=!0,this[U]?this[U].write(H):this[L](H),this[Y]=!1;let Z=this[B].length?!1:this[d]?this[d].flowing:!0;return!Z&&!this[B].length&&this[d].once("drain",G=>this.emit("drain")),Z}[A](H){H&&!this[W]&&(this[R]=this[R]?Buffer.concat([this[R],H]):H)}[N](){if(this[_]&&!this[S]&&!this[W]&&!this[D]){this[S]=!0;let H=this[p];if(H&&H.blockRemain){let Z=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${H.blockRemain} more bytes, only ${Z} available)`,{entry:H}),this[R]&&H.write(this[R]),H.end()}this[M](E)}}[L](H){if(this[D])this[A](H);else if(!H&&!this[R])this[N]();else{if(this[D]=!0,this[R]){this[A](H);let Z=this[R];this[R]=null,this[T](Z)}else this[T](H);for(;this[R]&&this[R].length>=512&&!this[W]&&!this[P];){let Z=this[R];this[R]=null,this[T](Z)}this[D]=!1}(!this[R]||this[_])&&this[N]()}[T](H){let Z=0,G=H.length;for(;Z+512<=G&&!this[W]&&!this[P];)switch(this[h]){case"begin":case"header":this[x](H,Z),Z+=512;break;case"ignore":case"body":Z+=this[I](H,Z);break;case"meta":Z+=this[j](H,Z);break;default:throw new Error("invalid state: "+this[h])}Z<G&&(this[R]?this[R]=Buffer.concat([H.slice(Z),this[R]]):this[R]=H.slice(Z))}end(H){this[W]||(this[U]?this[U].end(H):(this[_]=!0,this.write(H)))}})}),Hh=ee((t,e)=>{"use strict";V();var r=Vn(),i=$h(),n=re("fs"),s=Xn(),o=re("path"),a=Jn();e.exports=(p,d,m)=>{typeof p=="function"?(m=p,d=null,p={}):Array.isArray(p)&&(d=p,p={}),typeof d=="function"&&(m=d,d=null),d?d=Array.from(d):d=[];let g=r(p);if(g.sync&&typeof m=="function")throw new TypeError("callback not supported for sync tar functions");if(!g.file&&typeof m=="function")throw new TypeError("callback only supported with file option");return d.length&&l(g,d),g.noResume||u(g),g.file&&g.sync?c(g):g.file?f(g,m):h(g)};var u=p=>{let d=p.onentry;p.onentry=d?m=>{d(m),m.resume()}:m=>m.resume()},l=(p,d)=>{let m=new Map(d.map(F=>[a(F),!0])),g=p.filter,v=(F,k)=>{let O=k||o.parse(F).root||".",R=F===O?!1:m.has(F)?m.get(F):v(o.dirname(F),O);return m.set(F,R),R};p.filter=g?(F,k)=>g(F,k)&&v(a(F)):F=>v(a(F))},c=p=>{let d=h(p),m=p.file,g=!0,v;try{let F=n.statSync(m),k=p.maxReadSize||16*1024*1024;if(F.size<k)d.end(n.readFileSync(m));else{let O=0,R=Buffer.allocUnsafe(k);for(v=n.openSync(m,"r");O<F.size;){let B=n.readSync(v,R,0,k,O);O+=B,d.write(R.slice(0,B))}d.end()}g=!1}finally{if(g&&v)try{n.closeSync(v)}catch{}}},f=(p,d)=>{let m=new i(p),g=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((k,O)=>{m.on("error",O),m.on("end",k),n.stat(v,(R,B)=>{if(R)O(R);else{let _=new s.ReadStream(v,{readSize:g,size:B.size});_.on("error",O),_.pipe(m)}})});return d?F.then(d,d):F},h=p=>new i(p)}),iT=ee((t,e)=>{"use strict";V();var r=Vn(),i=jh(),n=Xn(),s=Hh(),o=re("path");e.exports=(p,d,m)=>{if(typeof d=="function"&&(m=d),Array.isArray(p)&&(d=p,p={}),!d||!Array.isArray(d)||!d.length)throw new TypeError("no files or directories specified");d=Array.from(d);let g=r(p);if(g.sync&&typeof m=="function")throw new TypeError("callback not supported for sync tar functions");if(!g.file&&typeof m=="function")throw new TypeError("callback only supported with file option");return g.file&&g.sync?a(g,d):g.file?u(g,d,m):g.sync?f(g,d):h(g,d)};var a=(p,d)=>{let m=new i.Sync(p),g=new n.WriteStreamSync(p.file,{mode:p.mode||438});m.pipe(g),l(m,d)},u=(p,d,m)=>{let g=new i(p),v=new n.WriteStream(p.file,{mode:p.mode||438});g.pipe(v);let F=new Promise((k,O)=>{v.on("error",O),v.on("close",k),g.on("error",O)});return c(g,d),m?F.then(m,m):F},l=(p,d)=>{d.forEach(m=>{m.charAt(0)==="@"?s({file:o.resolve(p.cwd,m.slice(1)),sync:!0,noResume:!0,onentry:g=>p.add(g)}):p.add(m)}),p.end()},c=(p,d)=>{for(;d.length;){let m=d.shift();if(m.charAt(0)==="@")return s({file:o.resolve(p.cwd,m.slice(1)),noResume:!0,onentry:g=>p.add(g)}).then(g=>c(p,d));p.add(m)}p.end()},f=(p,d)=>{let m=new i.Sync(p);return l(m,d),m},h=(p,d)=>{let m=new i(p);return c(m,d),m}}),ib=ee((t,e)=>{"use strict";V();var r=Vn(),i=jh(),n=re("fs"),s=Xn(),o=Hh(),a=re("path"),u=Zn();e.exports=(d,m,g)=>{let v=r(d);if(!v.file)throw new TypeError("file is required");if(v.gzip)throw new TypeError("cannot append to compressed archives");if(!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");return m=Array.from(m),v.sync?l(v,m):f(v,m,g)};var l=(d,m)=>{let g=new i.Sync(d),v=!0,F,k;try{try{F=n.openSync(d.file,"r+")}catch(B){if(B.code==="ENOENT")F=n.openSync(d.file,"w+");else throw B}let O=n.fstatSync(F),R=Buffer.alloc(512);e:for(k=0;k<O.size;k+=512){for(let S=0,M=0;S<512;S+=M){if(M=n.readSync(F,R,S,R.length-S,k+S),k===0&&R[0]===31&&R[1]===139)throw new Error("cannot append to compressed archives");if(!M)break e}let B=new u(R);if(!B.cksumValid)break;let _=512*Math.ceil(B.size/512);if(k+_+512>O.size)break;k+=_,d.mtimeCache&&d.mtimeCache.set(B.path,B.mtime)}v=!1,c(d,g,k,F,m)}finally{if(v)try{n.closeSync(F)}catch{}}},c=(d,m,g,v,F)=>{let k=new s.WriteStreamSync(d.file,{fd:v,start:g});m.pipe(k),h(m,F)},f=(d,m,g)=>{m=Array.from(m);let v=new i(d),F=(O,R,B)=>{let _=(T,I)=>{T?n.close(O,j=>B(T)):B(null,I)},S=0;if(R===0)return _(null,0);let M=0,U=Buffer.alloc(512),L=(T,I)=>{if(T)return _(T);if(M+=I,M<512&&I)return n.read(O,U,M,U.length-M,S+M,L);if(S===0&&U[0]===31&&U[1]===139)return _(new Error("cannot append to compressed archives"));if(M<512)return _(null,S);let j=new u(U);if(!j.cksumValid)return _(null,S);let x=512*Math.ceil(j.size/512);if(S+x+512>R||(S+=x+512,S>=R))return _(null,S);d.mtimeCache&&d.mtimeCache.set(j.path,j.mtime),M=0,n.read(O,U,0,512,S,L)};n.read(O,U,0,512,S,L)},k=new Promise((O,R)=>{v.on("error",R);let B="r+",_=(S,M)=>{if(S&&S.code==="ENOENT"&&B==="r+")return B="w+",n.open(d.file,B,_);if(S)return R(S);n.fstat(M,(U,L)=>{if(U)return n.close(M,()=>R(U));F(M,L.size,(T,I)=>{if(T)return R(T);let j=new s.WriteStream(d.file,{fd:M,start:I});v.pipe(j),j.on("error",R),j.on("close",O),p(v,m)})})};n.open(d.file,B,_)});return g?k.then(g,g):k},h=(d,m)=>{m.forEach(g=>{g.charAt(0)==="@"?o({file:a.resolve(d.cwd,g.slice(1)),sync:!0,noResume:!0,onentry:v=>d.add(v)}):d.add(g)}),d.end()},p=(d,m)=>{for(;m.length;){let g=m.shift();if(g.charAt(0)==="@")return o({file:a.resolve(d.cwd,g.slice(1)),noResume:!0,onentry:v=>d.add(v)}).then(v=>p(d,m));d.add(g)}d.end()}}),nT=ee((t,e)=>{"use strict";V();var r=Vn(),i=ib();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),sT=ee((t,e)=>{V();var{promisify:r}=re("util"),i=re("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),oT=ee((t,e)=>{V();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=re("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),aT=ee((t,e)=>{V();var{dirname:r}=re("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),nb=ee((t,e)=>{V();var{dirname:r}=re("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(l=>{if(l.code!=="EISDIR")throw l}):o.mkdirAsync(s,o).then(()=>a||s,l=>{if(l.code==="ENOENT")return i(u,o).then(c=>i(s,o,c));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;return o.statAsync(s).then(c=>{if(c.isDirectory())return a;throw l},()=>{throw l})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(l){if(l.code!=="EISDIR")throw l;return}try{return o.mkdirSync(s,o),a||s}catch(l){if(l.code==="ENOENT")return n(s,o,n(u,o,a));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;try{if(!o.statSync(s).isDirectory())throw l}catch{throw l}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),uT=ee((t,e)=>{V();var{dirname:r}=re("path"),{findMade:i,findMadeSync:n}=aT(),{mkdirpManual:s,mkdirpManualSync:o}=nb(),a=(l,c)=>(c.recursive=!0,r(l)===l?c.mkdirAsync(l,c):i(c,l).then(f=>c.mkdirAsync(l,c).then(()=>f).catch(h=>{if(h.code==="ENOENT")return s(l,c);throw h}))),u=(l,c)=>{if(c.recursive=!0,r(l)===l)return c.mkdirSync(l,c);let f=n(c,l);try{return c.mkdirSync(l,c),f}catch(h){if(h.code==="ENOENT")return o(l,c);throw h}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),lT=ee((t,e)=>{V();var r=re("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),cT=ee((t,e)=>{V();var r=sT(),i=oT(),{mkdirpNative:n,mkdirpNativeSync:s}=uT(),{mkdirpManual:o,mkdirpManualSync:a}=nb(),{useNative:u,useNativeSync:l}=lT(),c=(h,p)=>(h=i(h),p=r(p),u(p)?n(h,p):o(h,p)),f=(h,p)=>(h=i(h),p=r(p),l(p)?s(h,p):a(h,p));c.sync=f,c.native=(h,p)=>n(i(h),r(p)),c.manual=(h,p)=>o(i(h),r(p)),c.nativeSync=(h,p)=>s(i(h),r(p)),c.manualSync=(h,p)=>a(i(h),r(p)),e.exports=c}),hT=ee((t,e)=>{"use strict";V();var r=re("fs"),i=re("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(k,O,R)=>{try{return r[s](k,O,R)}catch(B){if(B.code!=="ENOENT")throw B}},u=(k,O,R)=>{try{return r.chownSync(k,O,R)}catch(B){if(B.code!=="ENOENT")throw B}},l=o?(k,O,R,B)=>_=>{!_||_.code!=="EISDIR"?B(_):r.chown(k,O,R,B)}:(k,O,R,B)=>B,c=o?(k,O,R)=>{try{return a(k,O,R)}catch(B){if(B.code!=="EISDIR")throw B;u(k,O,R)}}:(k,O,R)=>a(k,O,R),f=process.version,h=(k,O,R)=>r.readdir(k,O,R),p=(k,O)=>r.readdirSync(k,O);/^v4\./.test(f)&&(h=(k,O,R)=>r.readdir(k,R));var d=(k,O,R,B)=>{r[n](k,O,R,l(k,O,R,_=>{B(_&&_.code!=="ENOENT"?_:null)}))},m=(k,O,R,B,_)=>{if(typeof O=="string")return r.lstat(i.resolve(k,O),(S,M)=>{if(S)return _(S.code!=="ENOENT"?S:null);M.name=O,m(k,M,R,B,_)});if(O.isDirectory())g(i.resolve(k,O.name),R,B,S=>{if(S)return _(S);let M=i.resolve(k,O.name);d(M,R,B,_)});else{let S=i.resolve(k,O.name);d(S,R,B,_)}},g=(k,O,R,B)=>{h(k,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return B();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return B(_)}if(_||!S.length)return d(k,O,R,B);let M=S.length,U=null,L=T=>{if(!U){if(T)return B(U=T);if(--M===0)return d(k,O,R,B)}};S.forEach(T=>m(k,T,O,R,L))})},v=(k,O,R,B)=>{if(typeof O=="string")try{let _=r.lstatSync(i.resolve(k,O));_.name=O,O=_}catch(_){if(_.code==="ENOENT")return;throw _}O.isDirectory()&&F(i.resolve(k,O.name),R,B),c(i.resolve(k,O.name),R,B)},F=(k,O,R)=>{let B;try{B=p(k,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return c(k,O,R);throw _}return B&&B.length&&B.forEach(_=>v(k,_,O,R)),c(k,O,R)};e.exports=g,g.sync=F}),fT=ee((t,e)=>{"use strict";V();var r=cT(),i=re("fs"),n=re("path"),s=hT(),o=Kn(),a=class extends Error{constructor(m,g){super("Cannot extract through symbolic link"),this.path=g,this.symlink=m}get name(){return"SylinkError"}},u=class extends Error{constructor(m,g){super(g+": Cannot cd into '"+m+"'"),this.path=m,this.code=g}get name(){return"CwdError"}},l=(m,g)=>m.get(o(g)),c=(m,g,v)=>m.set(o(g),v),f=(m,g)=>{i.stat(m,(v,F)=>{(v||!F.isDirectory())&&(v=new u(m,v&&v.code||"ENOTDIR")),g(v)})};e.exports=(m,g,v)=>{m=o(m);let F=g.umask,k=g.mode|448,O=(k&F)!==0,R=g.uid,B=g.gid,_=typeof R=="number"&&typeof B=="number"&&(R!==g.processUid||B!==g.processGid),S=g.preserve,M=g.unlink,U=g.cache,L=o(g.cwd),T=(j,x)=>{j?v(j):(c(U,m,!0),x&&_?s(x,R,B,D=>T(D)):O?i.chmod(m,k,v):v())};if(U&&l(U,m)===!0)return T();if(m===L)return f(m,T);if(S)return r(m,{mode:k}).then(j=>T(null,j),T);let I=o(n.relative(L,m)).split("/");h(L,I,k,U,M,L,null,T)};var h=(m,g,v,F,k,O,R,B)=>{if(!g.length)return B(null,R);let _=g.shift(),S=o(n.resolve(m+"/"+_));if(l(F,S))return h(S,g,v,F,k,O,R,B);i.mkdir(S,v,p(S,g,v,F,k,O,R,B))},p=(m,g,v,F,k,O,R,B)=>_=>{_?i.lstat(m,(S,M)=>{if(S)S.path=S.path&&o(S.path),B(S);else if(M.isDirectory())h(m,g,v,F,k,O,R,B);else if(k)i.unlink(m,U=>{if(U)return B(U);i.mkdir(m,v,p(m,g,v,F,k,O,R,B))});else{if(M.isSymbolicLink())return B(new a(m,m+"/"+g.join("/")));B(_)}}):(R=R||m,h(m,g,v,F,k,O,R,B))},d=m=>{let g=!1,v="ENOTDIR";try{g=i.statSync(m).isDirectory()}catch(F){v=F.code}finally{if(!g)throw new u(m,v)}};e.exports.sync=(m,g)=>{m=o(m);let v=g.umask,F=g.mode|448,k=(F&v)!==0,O=g.uid,R=g.gid,B=typeof O=="number"&&typeof R=="number"&&(O!==g.processUid||R!==g.processGid),_=g.preserve,S=g.unlink,M=g.cache,U=o(g.cwd),L=j=>{c(M,m,!0),j&&B&&s.sync(j,O,R),k&&i.chmodSync(m,F)};if(M&&l(M,m)===!0)return L();if(m===U)return d(U),L();if(_)return L(r.sync(m,F));let T=o(n.relative(U,m)).split("/"),I=null;for(let j=T.shift(),x=U;j&&(x+="/"+j);j=T.shift())if(x=o(n.resolve(x)),!l(M,x))try{i.mkdirSync(x,F),I=I||x,c(M,x,!0)}catch{let D=i.lstatSync(x);if(D.isDirectory()){c(M,x,!0);continue}else if(S){i.unlinkSync(x),i.mkdirSync(x,F),I=I||x,c(M,x,!0);continue}else if(D.isSymbolicLink())return new a(x,x+"/"+T.join("/"))}return L(I)}}),sb=ee((t,e)=>{V();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),pT=ee((t,e)=>{V();var r=re("assert"),i=sb(),n=Jn(),{join:s}=re("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,l=new Map,c=g=>g.split("/").slice(0,-1).reduce((v,F)=>(v.length&&(F=s(v[v.length-1],F)),v.push(F||"/"),v),[]),f=new Set,h=g=>{let v=l.get(g);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(F=>u.get(F)),dirs:[...v.dirs].map(F=>u.get(F))}},p=g=>{let{paths:v,dirs:F}=h(g);return v.every(k=>k[0]===g)&&F.every(k=>k[0]instanceof Set&&k[0].has(g))},d=g=>f.has(g)||!p(g)?!1:(f.add(g),g(()=>m(g)),!0),m=g=>{if(!f.has(g))return!1;let{paths:v,dirs:F}=l.get(g),k=new Set;return v.forEach(O=>{let R=u.get(O);r.equal(R[0],g),R.length===1?u.delete(O):(R.shift(),typeof R[0]=="function"?k.add(R[0]):R[0].forEach(B=>k.add(B)))}),F.forEach(O=>{let R=u.get(O);r(R[0]instanceof Set),R[0].size===1&&R.length===1?u.delete(O):R[0].size===1?(R.shift(),k.add(R[0])):R[0].delete(g)}),f.delete(g),k.forEach(O=>d(O)),!0};return{check:p,reserve:(g,v)=>{g=a?["win32 parallelization disabled"]:g.map(k=>i(n(s(k))).toLowerCase());let F=new Set(g.map(k=>c(k)).reduce((k,O)=>k.concat(O)));return l.set(v,{dirs:F,paths:g}),g.forEach(k=>{let O=u.get(k);O?O.push(v):u.set(k,[v])}),F.forEach(k=>{let O=u.get(k);O?O[O.length-1]instanceof Set?O[O.length-1].add(v):O.push(new Set([v])):u.set(k,[new Set([v])])}),d(v)}}}}),dT=ee((t,e)=>{V();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||re("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,l=i&&!!u,c=512*1024,f=u|o|s|a;e.exports=l?h=>h<c?f:"w":()=>"w"}),ob=ee((t,e)=>{"use strict";V();var r=re("assert"),i=$h(),n=re("fs"),s=Xn(),o=re("path"),a=fT(),u=QD(),l=pT(),c=eb(),f=Kn(),h=Jn(),p=sb(),d=Symbol("onEntry"),m=Symbol("checkFs"),g=Symbol("checkFs2"),v=Symbol("pruneCache"),F=Symbol("isReusable"),k=Symbol("makeFs"),O=Symbol("file"),R=Symbol("directory"),B=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),M=Symbol("unsupported"),U=Symbol("checkPath"),L=Symbol("mkdir"),T=Symbol("onError"),I=Symbol("pending"),j=Symbol("pend"),x=Symbol("unpend"),D=Symbol("ended"),A=Symbol("maybeClose"),N=Symbol("skip"),Y=Symbol("doChown"),W=Symbol("uid"),E=Symbol("gid"),y=Symbol("checkedCwd"),b=re("crypto"),P=dT(),C=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,q=C==="win32",H=(w,K)=>{if(!q)return n.unlink(w,K);let X=w+".DELETE."+b.randomBytes(16).toString("hex");n.rename(w,X,oe=>{if(oe)return K(oe);n.unlink(X,K)})},Z=w=>{if(!q)return n.unlinkSync(w);let K=w+".DELETE."+b.randomBytes(16).toString("hex");n.renameSync(w,K),n.unlinkSync(K)},G=(w,K,X)=>w===w>>>0?w:K===K>>>0?K:X,te=w=>p(h(f(w))).toLowerCase(),z=(w,K)=>{K=te(K);for(let X of w.keys()){let oe=te(X);(oe===K||oe.indexOf(K+"/")===0)&&w.delete(X)}},ie=w=>{for(let K of w.keys())w.delete(K)},ce=class extends i{constructor(w){if(w||(w={}),w.ondone=K=>{this[D]=!0,this[A]()},super(w),this[y]=!1,this.reservations=l(),this.transform=typeof w.transform=="function"?w.transform:null,this.writable=!0,this.readable=!1,this[I]=0,this[D]=!1,this.dirCache=w.dirCache||new Map,typeof w.uid=="number"||typeof w.gid=="number"){if(typeof w.uid!="number"||typeof w.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(w.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=w.uid,this.gid=w.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;w.preserveOwner===void 0&&typeof w.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!w.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=w.forceChown===!0,this.win32=!!w.win32||q,this.newer=!!w.newer,this.keep=!!w.keep,this.noMtime=!!w.noMtime,this.preservePaths=!!w.preservePaths,this.unlink=!!w.unlink,this.cwd=f(o.resolve(w.cwd||process.cwd())),this.strip=+w.strip||0,this.processUmask=w.noChmod?0:process.umask(),this.umask=typeof w.umask=="number"?w.umask:this.processUmask,this.dmode=w.dmode||511&~this.umask,this.fmode=w.fmode||438&~this.umask,this.on("entry",K=>this[d](K))}warn(w,K,X={}){return(w==="TAR_BAD_ARCHIVE"||w==="TAR_ABORT")&&(X.recoverable=!1),super.warn(w,K,X)}[A](){this[D]&&this[I]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[U](w){if(this.strip){let K=f(w.path).split("/");if(K.length<this.strip)return!1;if(w.path=K.slice(this.strip).join("/"),w.type==="Link"){let X=f(w.linkpath).split("/");if(X.length>=this.strip)w.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let K=f(w.path),X=K.split("/");if(X.includes("..")||q&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:w,path:K}),!1;let[oe,le]=c(K);oe&&(w.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${oe} from absolute path`,{entry:w,path:K}))}if(o.isAbsolute(w.path)?w.absolute=f(o.resolve(w.path)):w.absolute=f(o.resolve(this.cwd,w.path)),!this.preservePaths&&w.absolute.indexOf(this.cwd+"/")!==0&&w.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:w,path:f(w.path),resolvedPath:w.absolute,cwd:this.cwd}),!1;if(w.absolute===this.cwd&&w.type!=="Directory"&&w.type!=="GNUDumpDir")return!1;if(this.win32){let{root:K}=o.win32.parse(w.absolute);w.absolute=K+u.encode(w.absolute.slice(K.length));let{root:X}=o.win32.parse(w.path);w.path=X+u.encode(w.path.slice(X.length))}return!0}[d](w){if(!this[U](w))return w.resume();switch(r.equal(typeof w.absolute,"string"),w.type){case"Directory":case"GNUDumpDir":w.mode&&(w.mode=w.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[m](w);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[M](w)}}[T](w,K){w.name==="CwdError"?this.emit("error",w):(this.warn("TAR_ENTRY_ERROR",w,{entry:K}),this[x](),K.resume())}[L](w,K,X){a(f(w),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:K,noChmod:this.noChmod},X)}[Y](w){return this.forceChown||this.preserveOwner&&(typeof w.uid=="number"&&w.uid!==this.processUid||typeof w.gid=="number"&&w.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[W](w){return G(this.uid,w.uid,this.processUid)}[E](w){return G(this.gid,w.gid,this.processGid)}[O](w,K){let X=w.mode&4095||this.fmode,oe=new s.WriteStream(w.absolute,{flags:P(w.size),mode:X,autoClose:!1});oe.on("error",pe=>{oe.fd&&n.close(oe.fd,()=>{}),oe.write=()=>!0,this[T](pe,w),K()});let le=1,Ee=pe=>{if(pe){oe.fd&&n.close(oe.fd,()=>{}),this[T](pe,w),K();return}--le===0&&n.close(oe.fd,Ae=>{Ae?this[T](Ae,w):this[x](),K()})};oe.on("finish",pe=>{let Ae=w.absolute,ht=oe.fd;if(w.mtime&&!this.noMtime){le++;let ft=w.atime||new Date,an=w.mtime;n.futimes(ht,ft,an,un=>un?n.utimes(Ae,ft,an,ba=>Ee(ba&&un)):Ee())}if(this[Y](w)){le++;let ft=this[W](w),an=this[E](w);n.fchown(ht,ft,an,un=>un?n.chown(Ae,ft,an,ba=>Ee(ba&&un)):Ee())}Ee()});let he=this.transform&&this.transform(w)||w;he!==w&&(he.on("error",pe=>{this[T](pe,w),K()}),w.pipe(he)),he.pipe(oe)}[R](w,K){let X=w.mode&4095||this.dmode;this[L](w.absolute,X,oe=>{if(oe){this[T](oe,w),K();return}let le=1,Ee=he=>{--le===0&&(K(),this[x](),w.resume())};w.mtime&&!this.noMtime&&(le++,n.utimes(w.absolute,w.atime||new Date,w.mtime,Ee)),this[Y](w)&&(le++,n.chown(w.absolute,this[W](w),this[E](w),Ee)),Ee()})}[M](w){w.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${w.type}`,{entry:w}),w.resume()}[_](w,K){this[B](w,w.linkpath,"symlink",K)}[S](w,K){let X=f(o.resolve(this.cwd,w.linkpath));this[B](w,X,"link",K)}[j](){this[I]++}[x](){this[I]--,this[A]()}[N](w){this[x](),w.resume()}[F](w,K){return w.type==="File"&&!this.unlink&&K.isFile()&&K.nlink<=1&&!q}[m](w){this[j]();let K=[w.path];w.linkpath&&K.push(w.linkpath),this.reservations.reserve(K,X=>this[g](w,X))}[v](w){w.type==="SymbolicLink"?ie(this.dirCache):w.type!=="Directory"&&z(this.dirCache,w.absolute)}[g](w,K){this[v](w);let X=he=>{this[v](w),K(he)},oe=()=>{this[L](this.cwd,this.dmode,he=>{if(he){this[T](he,w),X();return}this[y]=!0,le()})},le=()=>{if(w.absolute!==this.cwd){let he=f(o.dirname(w.absolute));if(he!==this.cwd)return this[L](he,this.dmode,pe=>{if(pe){this[T](pe,w),X();return}Ee()})}Ee()},Ee=()=>{n.lstat(w.absolute,(he,pe)=>{if(pe&&(this.keep||this.newer&&pe.mtime>w.mtime)){this[N](w),X();return}if(he||this[F](w,pe))return this[k](null,w,X);if(pe.isDirectory()){if(w.type==="Directory"){let Ae=!this.noChmod&&w.mode&&(pe.mode&4095)!==w.mode,ht=ft=>this[k](ft,w,X);return Ae?n.chmod(w.absolute,w.mode,ht):ht()}if(w.absolute!==this.cwd)return n.rmdir(w.absolute,Ae=>this[k](Ae,w,X))}if(w.absolute===this.cwd)return this[k](null,w,X);H(w.absolute,Ae=>this[k](Ae,w,X))})};this[y]?le():oe()}[k](w,K,X){if(w){this[T](w,K),X();return}switch(K.type){case"File":case"OldFile":case"ContiguousFile":return this[O](K,X);case"Link":return this[S](K,X);case"SymbolicLink":return this[_](K,X);case"Directory":case"GNUDumpDir":return this[R](K,X)}}[B](w,K,X,oe){n[X](K,w.absolute,le=>{le?this[T](le,w):(this[x](),w.resume()),oe()})}},we=w=>{try{return[null,w()]}catch(K){return[K,null]}},De=class extends ce{[k](w,K){return super[k](w,K,()=>{})}[m](w){if(this[v](w),!this[y]){let le=this[L](this.cwd,this.dmode);if(le)return this[T](le,w);this[y]=!0}if(w.absolute!==this.cwd){let le=f(o.dirname(w.absolute));if(le!==this.cwd){let Ee=this[L](le,this.dmode);if(Ee)return this[T](Ee,w)}}let[K,X]=we(()=>n.lstatSync(w.absolute));if(X&&(this.keep||this.newer&&X.mtime>w.mtime))return this[N](w);if(K||this[F](w,X))return this[k](null,w);if(X.isDirectory()){if(w.type==="Directory"){let Ee=!this.noChmod&&w.mode&&(X.mode&4095)!==w.mode,[he]=Ee?we(()=>{n.chmodSync(w.absolute,w.mode)}):[];return this[k](he,w)}let[le]=we(()=>n.rmdirSync(w.absolute));this[k](le,w)}let[oe]=w.absolute===this.cwd?[]:we(()=>Z(w.absolute));this[k](oe,w)}[O](w,K){let X=w.mode&4095||this.fmode,oe=he=>{let pe;try{n.closeSync(le)}catch(Ae){pe=Ae}(he||pe)&&this[T](he||pe,w),K()},le;try{le=n.openSync(w.absolute,P(w.size),X)}catch(he){return oe(he)}let Ee=this.transform&&this.transform(w)||w;Ee!==w&&(Ee.on("error",he=>this[T](he,w)),w.pipe(Ee)),Ee.on("data",he=>{try{n.writeSync(le,he,0,he.length)}catch(pe){oe(pe)}}),Ee.on("end",he=>{let pe=null;if(w.mtime&&!this.noMtime){let Ae=w.atime||new Date,ht=w.mtime;try{n.futimesSync(le,Ae,ht)}catch(ft){try{n.utimesSync(w.absolute,Ae,ht)}catch{pe=ft}}}if(this[Y](w)){let Ae=this[W](w),ht=this[E](w);try{n.fchownSync(le,Ae,ht)}catch(ft){try{n.chownSync(w.absolute,Ae,ht)}catch{pe=pe||ft}}}oe(pe)})}[R](w,K){let X=w.mode&4095||this.dmode,oe=this[L](w.absolute,X);if(oe){this[T](oe,w),K();return}if(w.mtime&&!this.noMtime)try{n.utimesSync(w.absolute,w.atime||new Date,w.mtime)}catch{}if(this[Y](w))try{n.chownSync(w.absolute,this[W](w),this[E](w))}catch{}K(),w.resume()}[L](w,K){try{return a.sync(f(w),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:K})}catch(X){return X}}[B](w,K,X,oe){try{n[X+"Sync"](K,w.absolute),oe(),w.resume()}catch(le){return this[T](le,w)}}};ce.Sync=De,e.exports=ce}),mT=ee((t,e)=>{"use strict";V();var r=Vn(),i=ob(),n=re("fs"),s=Xn(),o=re("path"),a=Jn();e.exports=(p,d,m)=>{typeof p=="function"?(m=p,d=null,p={}):Array.isArray(p)&&(d=p,p={}),typeof d=="function"&&(m=d,d=null),d?d=Array.from(d):d=[];let g=r(p);if(g.sync&&typeof m=="function")throw new TypeError("callback not supported for sync tar functions");if(!g.file&&typeof m=="function")throw new TypeError("callback only supported with file option");return d.length&&u(g,d),g.file&&g.sync?l(g):g.file?c(g,m):g.sync?f(g):h(g)};var u=(p,d)=>{let m=new Map(d.map(F=>[a(F),!0])),g=p.filter,v=(F,k)=>{let O=k||o.parse(F).root||".",R=F===O?!1:m.has(F)?m.get(F):v(o.dirname(F),O);return m.set(F,R),R};p.filter=g?(F,k)=>g(F,k)&&v(a(F)):F=>v(a(F))},l=p=>{let d=new i.Sync(p),m=p.file,g=n.statSync(m),v=p.maxReadSize||16*1024*1024;new s.ReadStreamSync(m,{readSize:v,size:g.size}).pipe(d)},c=(p,d)=>{let m=new i(p),g=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((k,O)=>{m.on("error",O),m.on("close",k),n.stat(v,(R,B)=>{if(R)O(R);else{let _=new s.ReadStream(v,{readSize:g,size:B.size});_.on("error",O),_.pipe(m)}})});return d?F.then(d,d):F},f=p=>new i.Sync(p),h=p=>new i(p)}),gT=ee(t=>{"use strict";V(),t.c=t.create=iT(),t.r=t.replace=ib(),t.t=t.list=Hh(),t.u=t.update=nT(),t.x=t.extract=mT(),t.Pack=jh(),t.Unpack=ob(),t.Parse=$h(),t.ReadEntry=Ih(),t.WriteEntry=tb(),t.Header=Zn(),t.Pax=Nh(),t.types=XD()}),yT=ee((t,e)=>{V();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,l=(i[u]||0)+1;i[u]=l,l>=s&&(n=a,s=l)}return n}}),ET=ee(t=>{V();var e=yT();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(l){var c=t.operation(i),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(r,f)})}.bind(r,u),r[a].options=i}}}),DT=ee((t,e)=>{V(),e.exports=ET()}),bT=ee((t,e)=>{V();var r=DT();function i(n,s){function o(a,u){var l=s||{},c;"randomize"in l||(l.randomize=!0),c=r.operation(l);function f(d){u(d||new Error("Aborted"))}function h(d,m){if(d.bail){f(d);return}c.retry(d)?l.onRetry&&l.onRetry(d,m):u(c.mainError())}function p(d){var m;try{m=n(f,d)}catch(g){h(g,d);return}Promise.resolve(m).then(a).catch(function(g){h(g,d)})}c.attempt(p)}return new Promise(o)}e.exports=i}),_T={};qk(_T,{bold:()=>CT,dimmed:()=>xT,error:()=>OT,info:()=>vT,item:()=>RT,log:()=>Qn,turboBlue:()=>Qi,turboGradient:()=>ST,turboLoader:()=>AT,turboRed:()=>hb,warn:()=>FT,yellow:()=>fb});V();var lb="#0099F7",cb="#F11712",wT="#FFFF00",ST=(0,ub.default)(lb,cb),Qi=nn.default.hex(lb),hb=nn.default.hex(cb),fb=nn.default.hex(wT),AT=t=>(0,ab.default)({text:t,spinner:{frames:[" ",Qi("> "),Qi(">> "),Qi(">>>")]}}),vT=(...t)=>{Qn(Qi.bold(">>>"),...t)},CT=(...t)=>{Qn(nn.default.bold(...t))},xT=(...t)=>{Qn(nn.default.dim(...t))},RT=(...t)=>{Qn(Qi.bold(" \u2022"),...t)},Qn=(...t)=>{console.log(...t)},FT=(...t)=>{console.error(fb.bold(">>>"),...t)},OT=(...t)=>{console.error(hb.bold(">>>"),...t)};V();V();V();V();var KI=oa(Wk());V();V();function TT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}V();V();function Th(t){return Th=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},Th(t)}V();function LT(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BT(t,e){if(e&&(Th(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LT(t)}V();function sa(t){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sa(t)}V();V();function zn(t,e){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zn(t,e)}function PT(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&&zn(t,e)}V();V();function IT(t){return Function.toString.call(t).indexOf("[native code]")!==-1}V();V();function NT(){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 na(t,e,r){return NT()?na=Reflect.construct.bind():na=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&zn(u,s.prototype),u},na.apply(null,arguments)}function Lh(t){var e=typeof Map=="function"?new Map:void 0;return Lh=function(r){if(r===null||!IT(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return na(r,arguments,sa(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zn(i,r)},Lh(t)}var ZI=oa(Xk()),QI=function(t){PT(e,t);function e(r){var i;return TT(this,e),i=BT(this,sa(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Lh(Error));V();V();V();V();V();V();var cN=oa(gT()),hN=(0,db.promisify)(pb.Stream.pipeline);V();V();var mN=oa(bT());V();V();V();var je=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,je)}};V();V();V();V();var MT=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Ke({workspaceRoot:t}){let e=rr.default.join(t,"package.json");try{return(0,rt.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new je(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new je(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function aa({workspaceRoot:t}){let{packageManager:e}=Ke({workspaceRoot:t});if(e)try{let r=MT.exec(e);if(r){let[i,n]=r;return n}}catch{}}function es({workspaceRoot:t}){let e=Ke({workspaceRoot:t}),r=rr.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function YD({workspaceRoot:t}){let e=rr.default.join(t,"pnpm-workspace.yaml");if((0,rt.existsSync)(e))try{let r=Ua.load((0,rt.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new je(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function ua({root:t,lockFile:e,workspaceConfig:r}){let i=s=>rr.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function qh({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function la({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,bb.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=rr.default.dirname(r),{name:n,description:s}=es({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:rr.default.join(i,"node_modules")}}}):[]}function jT({directory:t}){let e=rr.default.resolve(process.cwd(),t);return{exists:(0,rt.existsSync)(e),absolute:e}}function xr({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function $T({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function tr({project:t,options:e}){e!=null&&e.dry||(0,rt.rmSync)(t.paths.lockfile,{force:!0})}async function _b({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,rt.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Db.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,rt.writeFile)(rr.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,rt.rmSync)(t.paths.lockfile,{force:!0})}}function HT({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function vr({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=Ke({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(f=>{let h=s[f];if(h){let{updated:p,dependencyList:d}=HT({dependencyList:h,project:t,to:r});s[f]=d,o[f]=p}});let u=f=>{let h=o[f].length;if(h>0)return`${Eb.default.green(h.toString())} ${f}`},l=a.map(u).filter(Boolean),c=`./${gb.default.relative(t.paths.root,e.paths.packageJson)}`;if(l.length>=1){let f="updating";l.forEach((h,p)=>{l.length===1?f+=` ${h} in ${c}`:p===l.length-1?f+=`and ${h} in ${c}`:f+=` ${h}, `}),i.workspaceStep(f)}else i.workspaceStep(`no workspace dependencies found in ${c}`);n!=null&&n.dry||(0,yb.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var Cr={name:"pnpm",lock:"pnpm-lock.yaml"};async function wb(t){let e=Qr.default.join(t.workspaceRoot,Cr.lock),r=Qr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=aa({workspaceRoot:t.workspaceRoot});return(0,qe.existsSync)(e)||(0,qe.existsSync)(r)||i===Cr.name}async function qT(t){if(!await wb(t))throw new je("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=es(t);return{name:e,description:r,packageManager:Cr.name,paths:ua({root:t.workspaceRoot,lockFile:Cr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:YD(t),workspaces:la({workspaceGlobs:YD(t),...t})}}}async function UT(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(xr({action:"create",packageManager:Cr.name,project:e}));let o=Ke({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,qe.writeFileSync)(Qr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
43
|
+
${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
|
44
|
+
`)}`))),s&&(vr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{vr({workspace:a,project:e,to:r,logger:i,options:n})}))}async function GT(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(xr({action:"remove",packageManager:Cr.name,project:e}));let s=Ke({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new je("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function zT(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Qr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,qe.rmSync)(e.paths.lockfile,{force:!0})}async function WT(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Qr.default.relative(e.paths.root,e.paths.lockfile)} to ${Cr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,qe.existsSync)(e.paths.lockfile))try{await(0,mb.default)(Cr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{tr({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await _b({project:e,options:r}),await s(),(0,qe.rmSync)(Qr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var YT={detect:wb,read:qT,create:UT,remove:GT,clean:zT,convertLock:WT};V();var en={name:"npm",lock:"package-lock.json"};async function Sb(t){let e=Wn.default.join(t.workspaceRoot,en.lock),r=aa({workspaceRoot:t.workspaceRoot});return(0,Tt.existsSync)(e)||r===en.name}async function VT(t){if(!await Sb(t))throw new je("Not an npm project",{type:"package_manager-unexpected"});let e=Ke(t),{name:r,description:i}=es(t),n=qh({workspaces:e.workspaces});return{name:r,description:i,packageManager:en.name,paths:ua({root:t.workspaceRoot,lockFile:en.lock}),workspaceData:{globs:n,workspaces:la({workspaceGlobs:n,...t})}}}async function KT(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(xr({packageManager:en.name,action:"create",project:e}));let o=Ke({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Wn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${Wn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Tt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),vr({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{vr({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Tt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function ZT(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(xr({packageManager:en.name,action:"remove",project:e}));let s=Ke({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Tt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Tt.rm)(a,{recursive:!0,force:!0})))}catch{throw new je("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function JT(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Wn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Tt.rmSync)(e.paths.lockfile,{force:!0})}async function XT(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":tr({project:e,options:r});break;case"bun":tr({project:e,options:r});break;case"npm":break;case"yarn":tr({project:e,options:r});break}}var QT={detect:Sb,read:VT,create:KT,remove:ZT,clean:JT,convertLock:XT};V();var ei={name:"yarn",lock:"yarn.lock"};async function Ab(t){let e=tn.default.join(t.workspaceRoot,ei.lock),r=aa({workspaceRoot:t.workspaceRoot});return(0,Lt.existsSync)(e)||r===ei.name}async function eL(t){if(!await Ab(t))throw new je("Not a yarn project",{type:"package_manager-unexpected"});let e=Ke(t),{name:r,description:i}=es(t),n=qh({workspaces:e.workspaces});return{name:r,description:i,packageManager:ei.name,paths:ua({root:t.workspaceRoot,lockFile:ei.lock}),workspaceData:{globs:n,workspaces:la({workspaceGlobs:n,...t})}}}async function tL(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(xr({packageManager:ei.name,action:"create",project:e}));let o=Ke({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${tn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${tn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Lt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),vr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{vr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Lt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function rL(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(xr({packageManager:ei.name,action:"remove",project:e}));let s=Ke({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Lt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Lt.rm)(a,{recursive:!0,force:!0})))}catch{throw new je("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function iL(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${tn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Lt.rmSync)(e.paths.lockfile,{force:!0})}async function nL(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${tn.default.relative(e.paths.root,e.paths.lockfile)} to ${ei.lock}`)};switch(e.packageManager){case"pnpm":tr({project:e,options:r});break;case"bun":n(),await _b({project:e,options:r});break;case"npm":tr({project:e,options:r});break;case"yarn":break}}var sL={detect:Ab,read:eL,create:tL,remove:rL,clean:iL,convertLock:nL};V();var rn={name:"bun",lock:"bun.lockb"};async function vb(t){let e=Yn.default.join(t.workspaceRoot,rn.lock),r=aa({workspaceRoot:t.workspaceRoot});return(0,Bt.existsSync)(e)||r===rn.name}async function oL(t){if(!await vb(t))throw new je("Not a bun project",{type:"package_manager-unexpected"});let e=Ke(t),{name:r,description:i}=es(t),n=qh({workspaces:e.workspaces});return{name:r,description:i,packageManager:rn.name,paths:ua({root:t.workspaceRoot,lockFile:rn.lock}),workspaceData:{globs:n,workspaces:la({workspaceGlobs:n,...t})}}}async function aL(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!$T({project:e}))throw new je("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(xr({packageManager:rn.name,action:"create",project:e}));let o=Ke({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${Yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Bt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),vr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{vr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Bt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function uL(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(xr({packageManager:rn.name,action:"remove",project:e}));let s=Ke({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Bt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Bt.rm)(a,{recursive:!0,force:!0})))}catch{throw new je("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function lL(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Yn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Bt.rmSync)(e.paths.lockfile,{force:!0})}async function cL(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":tr({project:e,options:r});break;case"bun":break;case"npm":tr({project:e,options:r});break;case"yarn":tr({project:e,options:r});break}}var hL={detect:vb,read:oL,create:aL,remove:uL,clean:lL,convertLock:cL},Cb={pnpm:YT,yarn:sL,npm:QT,bun:hL};V();async function ts({root:t}){let{exists:e,absolute:r}=jT({directory:t});if(!e)throw new je(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Cb))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new je("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}V();V();V();V();var Uh=J(require("chalk")),xb=J(require("is-git-clean"));function ca({directory:t,force:e}){var n;let r=!1,i="Unable to determine if git directory is clean";try{r=xb.default.sync(t||process.cwd()),i="Git directory is not clean"}catch(s){(n=s.stderr)!=null&&n.includes("not a git repository")&&(r=!0)}r||(e?ne.log(`${Uh.default.yellow("WARNING")}: ${i}. Forcibly continuing...`):(ne.log("Thank you for using @turbo/codemod!"),ne.log(Uh.default.yellow(`
|
45
|
+
But before we continue, please stash or commit your git changes.`)),ne.log(`
|
46
|
+
You may use the --force flag to override this safety check.`),process.exit(1)))}var Gh=J(require("path")),Rb=J(require("fs"));function sn({directory:t}){let e=Gh.default.isAbsolute(t)?t:Gh.default.join(process.cwd(),t);return{exists:Rb.default.existsSync(e),absolute:e}}var ma=J(require("chalk"));var mt=J(require("chalk")),ha=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(mt.default.green(" MODIFIED "),...e,this.dry?mt.default.dim("(dry run)"):"")}unchanged(...e){this._log(mt.default.gray(" UNCHANGED "),...e,this.dry?mt.default.dim("(dry run)"):"")}skipped(...e){this._log(mt.default.yellow(" SKIPPED "),...e,this.dry?mt.default.dim("(dry run)"):"")}error(...e){this._log(mt.default.red(" ERROR "),...e,this.dry?mt.default.dim("(dry run)"):"")}info(...e){this._log(mt.default.bold(" INFO "),...e,this.dry?mt.default.dim("(dry run)"):"")}};var Fb=J(require("os")),zh=J(require("path"));var fa=J(require("chalk")),da=require("diff"),Rr=require("fs-extra"),pa=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{zh.default.extname(e.filePath)===".json"?this.before=(0,Rr.readJsonSync)(e.filePath):this.before=(0,Rr.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,da.diffJson)(this.before,e.after):this.changes=(0,da.diffLines)(this.before,e.after):this.changes=[]}fileName(){return zh.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Rr.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Rr.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(fa.default.green(r.value)):r.removed?process.stdout.write(fa.default.red(r.value)):process.stdout.write(fa.default.dim(r.value))}),ne.log(Fb.default.EOL)):ne.log(this.after)}};var ti=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new ha(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new pa({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(ma.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ma.default.bold(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged(ma.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()}}};var Ob=J(require("path")),kb=require("fs-extra"),EL=["package.json","turbo.json",".git"];function Tb({directory:t}){return EL.some(e=>(0,kb.existsSync)(Ob.default.join(t,e)))}var Lb=require("child_process");function gt(t,e,r){try{return(0,Lb.execSync)(t,{stdio:"pipe",...e}).toString("utf8").trim()}catch{return r||void 0}}function Bb(t,e){let{from:r}=e;if(r)return r;let i=gt("turbo --version",{cwd:t.paths.root});if(i)return i;let{packageManager:n}=t;return n==="yarn"?gt("yarn turbo --version",{cwd:t.paths.root}):n==="pnpm"?gt("pnpm turbo --version",{cwd:t.paths.root}):gt("npm exec -c 'turbo --version'",{cwd:t.paths.root})}var Pb=J(require("axios")),DL="https://registry.npmjs.org";async function bL({packageName:t}){try{return(await Pb.default.get(`${DL}/${t}`)).data}catch{throw new Error(`Unable to fetch the latest version of ${t}`)}}async function Ib({to:t}){let e=await bL({packageName:"turbo"}),{"dist-tags":r,versions:i}=e;if(t){if(r[t]||t in i)return t;throw new Error(`turbo@${t} does not exist`)}return r.latest}var ri=require("semver");var ga=J(require("path")),Mb=J(require("fs-extra")),Nb=process.env.NODE_ENV==="test"?ga.default.join(__dirname,"../transforms"):ga.default.join(__dirname,"./transforms");function ya(){return Mb.default.readdirSync(Nb).map(e=>{let r=ga.default.join(Nb,e);try{return require(r).default}catch{return}}).filter(Boolean)}function jb({fromVersion:t,toVersion:e}){let r=ya().filter(i=>(0,ri.gt)(i.introducedIn,t)&&(0,ri.lte)(i.introducedIn,e));return r.sort((i,n)=>(0,ri.gt)(i.introducedIn,n.introducedIn)?1:(0,ri.eq)(i.introducedIn,n.introducedIn)?0:-1),r}var $b=J(require("path")),Ea=require("fs-extra"),Hb=require("semver");function _L(t,e="latest"){switch(t){case"yarn":return`yarn global add turbo@${e}`;case"npm":return`npm install turbo@${e} --global`;case"pnpm":return`pnpm add turbo@${e} --global`;case"bun":return`bun add turbo@${e} --global`}}function wL({packageManager:t,packageManagerVersion:e,installType:r,isUsingWorkspaces:i,to:n="latest"}){let s=o=>o.filter(Boolean).join(" ");switch(t){case"yarn":return(0,Hb.gte)(e,"2.0.0")?s(["yarn","add",`turbo@${n}`,r==="devDependencies"&&"--dev"]):s(["yarn","add",`turbo@${n}`,r==="devDependencies"&&"--dev",i&&"-W"]);case"npm":return s(["npm","install",`turbo@${n}`,r==="devDependencies"&&"--save-dev"]);case"pnpm":return s(["pnpm","add",`turbo@${n}`,r==="devDependencies"&&"--save-dev",i&&"-w"]);case"bun":return s(["bun","add",`turbo@${n}`,r==="devDependencies"&&"--dev"])}}function SL({root:t}){let e=$b.default.join(t,"package.json");if(!(0,Ea.existsSync)(e)){ne.error(`Unable to find package.json at ${e}`);return}let r=(0,Ea.readJsonSync)(e),i=r.devDependencies&&"turbo"in r.devDependencies,n=r.dependencies&&"turbo"in r.dependencies;if(n||i)return n?"dependencies":"devDependencies"}async function qb({project:t,to:e}){let r=gt("turbo bin",{cwd:t.paths.root,stdio:"pipe"}),i=await zl(),n=Object.keys(i).find(c=>{let f=i[c];return f&&r?r.includes(f):!1});if(r&&n)return _L(n,e);let{packageManager:s}=t,o=t.workspaceData.globs.length>0,a=SL({root:t.paths.root}),l=(await Gl())[s];if(l&&a)return wL({packageManager:s,packageManagerVersion:l,installType:a,isUsingWorkspaces:o,to:e})}function Ub({project:t}){try{let e={cwd:t.paths.root,stdio:"ignore"};if(gt("turbo bin",e))gt("turbo daemon stop",e);else{let i=`${t.packageManager} turbo daemon stop`;t.packageManager==="npm"&&(i="npm exec -c 'turbo daemon stop'"),gt(i,e)}}catch{}}function yt({message:t,success:e}){return e?(ne.bold($e.default.green("Migration completed")),t&&ne.log(t),process.exit(0)):(ne.bold($e.default.red("Migration failed")),t&&ne.log(t),process.exit(1))}async function Wh(t,e){e.dry||ca({directory:t,force:e.force});let r=await(0,zb.prompt)([{type:"input",name:"directoryInput",message:"Where is the root of the repo to migrate?",when:!t,default:".",validate:p=>{let{exists:d,absolute:m}=sn({directory:p});return d?!0:`Directory ${$e.default.dim(`(${m})`)} does not exist`},filter:p=>p.trim()}]),{directoryInput:i=t}=r,{exists:n,absolute:s}=sn({directory:i});if(!n)return yt({success:!1,message:`Directory ${$e.default.dim(`(${s})`)} does not exist`});if(!Tb({directory:s}))return yt({success:!1,message:`Directory (${$e.default.dim(s)}) does not appear to be a repository`});let o;try{o=await ts({root:s})}catch{return yt({success:!1,message:`Unable to read determine package manager details from ${$e.default.dim(s)}`})}let a=Bb(o,e);if(!a)return yt({success:!1,message:`Unable to infer the version of turbo being used by ${o.name}`});let u=e.to;try{u=await Ib(e)}catch(p){let d="UNKNOWN_ERROR";return p instanceof Error&&(d=p.message),yt({success:!1,message:d})}if(!u)return yt({success:!1,message:"Unable to fetch the latest version of turbo"});if(a===u)return yt({success:!0,message:`Nothing to do, current version (${$e.default.bold(a)}) is the same as the requested version (${$e.default.bold(u)})`});let l=jb({fromVersion:a,toVersion:u});l.length===0&&ne.log(`No codemods required to migrate from ${a} to ${u}`,on.default.EOL),e.dry||Ub({project:o}),ne.log(`Upgrading turbo from ${$e.default.bold(a)} to ${$e.default.bold(u)} (${l.length===0?"no codemods required":`${l.length} required codemod${l.length===1?"":"s"}`})`,on.default.EOL);let c=[];for(let[p,d]of l.entries()){ne.log(`(${p+1}/${l.length}) ${$e.default.bold(`Running ${d.name}`)}`);let m=await d.transformer({root:o.paths.root,options:e});ti.logResults(m),c.push(m)}if(c.some(p=>p.fatalError||Object.keys(p.changes).some(d=>p.changes[d].error)))return yt({success:!1,message:"Could not complete migration due to codemod errors. Please fix the errors and try again."});let h=await qb({project:o,to:e.to});if(!h)return yt({success:!1,message:"Unable to determine upgrade command"});if(e.install)if(e.dry)ne.log(`Upgrading turbo with ${$e.default.bold(h)} ${$e.default.dim("(dry run)")}`,on.default.EOL);else{ne.log(`Upgrading turbo with ${$e.default.bold(h)}`,on.default.EOL);try{(0,Gb.execSync)(h,{stdio:"pipe",cwd:o.paths.root})}catch(p){return yt({success:!1,message:`Unable to upgrade turbo: ${String(p)}`})}}else ne.log(`Upgrade turbo with ${$e.default.bold(h)}`,on.default.EOL);yt({success:!0})}var Fr=J(require("chalk")),Wb=require("inquirer");async function Yh(t,e,r){let i=ya();if(r.list)return ne.log(i.map(h=>`- ${Fr.default.cyan(h.name)}`).join(`
|
47
|
+
`)),process.exit(0);r.dry||ca({directory:e,force:r.force});let n=await(0,Wb.prompt)([{type:"input",name:"directoryInput",message:"Where is the root of the repo where the transform should run?",when:!e,default:".",validate:h=>{let{exists:p,absolute:d}=sn({directory:h});return p?!0:`Directory ${Fr.default.dim(`(${d})`)} does not exist`},filter:h=>h.trim()},{type:"list",name:"transformerInput",message:"Which transform would you like to apply?",when:!t,pageSize:i.length,choices:i.map(h=>({name:`${Fr.default.bold(h.name)} - ${Fr.default.gray(h.description)} ${Fr.default.gray(`(${h.introducedIn})`)}`,value:h.name}))}]),{directoryInput:s=e,transformerInput:o=t}=n,{exists:a,absolute:u}=sn({directory:s});if(!a)return ne.error(`Directory ${Fr.default.dim(`(${u})`)} does not exist`),process.exit(1);let l=i.map(h=>h.name),c=i.find(h=>h.name===o);if(!c)return ne.error(`Invalid transform choice ${Fr.default.dim(`(${t})`)}, pick one of:`),ne.error(l.map(h=>`- ${h}`).join(`
|
48
|
+
`)),process.exit(1);let f=await c.transformer({root:u,options:r});if(f.fatalError)return process.exit(1);ti.logResults(f)}var Vh=J(require("chalk")),Yb=J(require("update-check"));var AL=(0,Yb.default)(ia).catch(()=>null);async function Kh(){try{let t=await AL;if(t!=null&&t.latest){let{packageManager:e}=await ts({root:process.cwd()}),r="npm i -g @turbo/codemod";e==="yarn"?r="yarn global add @turbo/codemod":e==="pnpm"&&(r="pnpm i -g @turbo/codemod"),ne.log(),ne.log(Vh.default.yellow.bold("A new version of `@turbo/codemod` is available!")),ne.log(`You can update by running: ${Vh.default.cyan(r)}`),ne.log()}process.exit()}catch{}}var Da=new Kb.Command;Da.name("@turbo/codemod").description("Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.").version(ia.version,"-v, --version","output the current version");Da.command("migrate").aliases(["update","upgrade"]).description("Migrate a project to the latest version of Turborepo").argument("[path]","Directory where the transforms should be applied").option("--from <version>","Specify the version to migrate from (default: current version)").option("--to <version>","Specify the version to migrate to (default: latest)").option("--install","Install new version of turbo after migration",!0).option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(Wh);Da.command("transform",{isDefault:!0}).description("Apply a single code transformation to a project").argument("[transform]","The transformer to run").argument("[path]","Directory where the transforms should be applied").option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--list","List all available transforms",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(Yh);Da.parseAsync().then(Kh).catch(async t=>{ne.log(),ne.log(Vb.default.red("Unexpected error. Please report it as a bug:")),ne.log(t),ne.log(),await Kh(),process.exit(1)});
|
185
49
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
186
|
-
/*!
|
187
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
188
|
-
*
|
189
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
190
|
-
* Licensed under the MIT License.
|
191
|
-
*/
|
192
|
-
/*!
|
193
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
194
|
-
*
|
195
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
196
|
-
* Licensed under the MIT License.
|
197
|
-
*/
|
198
|
-
/*!
|
199
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
200
|
-
*
|
201
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
202
|
-
* Released under the MIT License.
|
203
|
-
*/
|
204
|
-
/*!
|
205
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
206
|
-
*
|
207
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
208
|
-
* Released under the MIT License.
|
209
|
-
*/
|
210
|
-
/*!
|
211
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
212
|
-
*
|
213
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
214
|
-
* Released under the MIT License.
|
215
|
-
*/
|
216
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
217
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
218
|
-
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
219
50
|
/*! Bundled license information:
|
220
51
|
|
52
|
+
@babel/runtime/helpers/regeneratorRuntime.js:
|
53
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
54
|
+
|
221
55
|
is-extglob/index.js:
|
222
56
|
(*!
|
223
57
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|